From 6ec80ccd562bdc5b4be2aca8bd34f112f021a1ca Mon Sep 17 00:00:00 2001 From: "raja.blaze" Date: Thu, 8 Aug 2019 18:52:44 +0530 Subject: [PATCH 1/3] Title issue fixed --- src/app/view/home/home-worksapce.component.ts | 11 ++++++++--- src/app/view/view-routing.module.ts | 6 ++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/app/view/home/home-worksapce.component.ts b/src/app/view/home/home-worksapce.component.ts index 538436d..c10cf40 100644 --- a/src/app/view/home/home-worksapce.component.ts +++ b/src/app/view/home/home-worksapce.component.ts @@ -2,6 +2,8 @@ import { Component, OnInit, Inject, AfterViewInit } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { Utils } from 'src/app/shared/utils'; import { Router } from '@angular/router'; +import { Title } from '@angular/platform-browser'; +import { ActivatedRoute } from '@angular/router'; @Component({ selector: 'epic-explorer-home-worksapce', @@ -31,7 +33,7 @@ import { Router } from '@angular/router'; - +
@@ -46,7 +48,7 @@ export class HomeWorksapceComponent extends Utils implements OnInit, AfterViewInit { viewchartvar: boolean; constructor(@Inject(DOCUMENT) public document: Document, - private router: Router) { + private router: Router,private route: ActivatedRoute,private titleService: Title) { super(document); if (this.router.url == '/all') { this.viewchartvar = false; @@ -55,7 +57,10 @@ export class HomeWorksapceComponent extends Utils } } - ngOnInit() {} + ngOnInit() { + this.titleService.setTitle( + this.route.snapshot.data.title, + );} viewchartenable() { this.viewchartvar = false; diff --git a/src/app/view/view-routing.module.ts b/src/app/view/view-routing.module.ts index df811f9..9690f7e 100755 --- a/src/app/view/view-routing.module.ts +++ b/src/app/view/view-routing.module.ts @@ -7,6 +7,9 @@ const viewRoutes: Routes = [ { path: '', loadChildren: './home/home.module#HomeModule', + data: { + title: 'Epic Explorer - Home', + }, }, { path: 'all', @@ -21,6 +24,9 @@ const siteRoutes: Routes = [ { path: 'blockdetail/:hash', loadChildren: './block-view/block-view.module#BlockViewModule', + data: { + title: 'Epic Explorer - Block', + }, }, { path: 'chart', From b9c9785c303d7aaea86e42986f3ffb9559669352 Mon Sep 17 00:00:00 2001 From: Prema Date: Thu, 8 Aug 2019 19:07:00 +0530 Subject: [PATCH 2/3] UI changes --- .../block-detail-list.component.html | 33 +++++++++++++++---- src/assets/css/style.css | 3 ++ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/app/view/home/block-detail-list/block-detail-list.component.html b/src/app/view/home/block-detail-list/block-detail-list.component.html index 05ea132..8834194 100644 --- a/src/app/view/home/block-detail-list/block-detail-list.component.html +++ b/src/app/view/home/block-detail-list/block-detail-list.component.html @@ -60,19 +60,40 @@ title="Target / Total Block Difficulty" [ngClass]="latestblockdetail.blink == true ? 'item-highlight' : ''" > + -

- Cuckoo : {{ latestblockdetail.targetdifficultycuckatoo | number }} / - {{ latestblockdetail.TotalDifficultyCuckatoo | number }} -

-

+

+ Cuckoo +
+ Target Difficulty:{{ latestblockdetail.targetdifficultycuckatoo | number }}
+ Total Difficulty{{ latestblockdetail.TotalDifficultyCuckatoo | number }} +
+ +
+
+ ProgPow +
+ Target Difficulty:{{ latestblockdetail.targetdifficultyprogpow | number }}
+ Total Difficulty{{ latestblockdetail.TotalDifficultyProgpow | number }} +
+ +
+
+ RandomX +
+ Target Difficulty:{{ latestblockdetail.targetdifficultyrandomx | number }}
+ Total Difficulty{{ latestblockdetail.TotalDifficultyRandomx | number }} +
+ +
+
diff --git a/src/assets/css/style.css b/src/assets/css/style.css index c548b6d..d013216 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -288,6 +288,9 @@ a:focus { padding: 20px; transition: 0.3s linear all; min-height: 100%; + display: flex; + flex-direction: column; + justify-content: center; } .detail_div .count { font-size: 25px; From 44d5ab9e4fd2f1fddbb165cd46f183b700e6528a Mon Sep 17 00:00:00 2001 From: "raja.blaze" Date: Thu, 8 Aug 2019 19:07:11 +0530 Subject: [PATCH 3/3] graph issue fixed --- src/app/view/home/graph-list/graph-list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/view/home/graph-list/graph-list.component.ts b/src/app/view/home/graph-list/graph-list.component.ts index 32fe5e0..4889f38 100644 --- a/src/app/view/home/graph-list/graph-list.component.ts +++ b/src/app/view/home/graph-list/graph-list.component.ts @@ -775,7 +775,7 @@ export class GraphListComponent implements OnInit { rangemode: 'nonnegative', fixedrange: true, showgrid: true, - tickformat :".0f", + //tickformat :".0f", tickprefix: ' ' }, margin: {