Merge branch 'master' of https://gitlab.com/epic-tech/explorer2.epic.tech-angular8
This commit is contained in:
commit
c425d84467
@ -60,19 +60,40 @@
|
|||||||
title="Target / Total Block Difficulty"
|
title="Target / Total Block Difficulty"
|
||||||
[ngClass]="latestblockdetail.blink == true ? 'item-highlight' : ''"
|
[ngClass]="latestblockdetail.blink == true ? 'item-highlight' : ''"
|
||||||
>
|
>
|
||||||
|
|
||||||
<!-- <p class="difficulty_datas">Cuckaroo : {{latestblockdetail.targetdifficultycuckaroo | number}} / {{latestblockdetail.TotalDifficultyCuckatoo | number}}</p> -->
|
<!-- <p class="difficulty_datas">Cuckaroo : {{latestblockdetail.targetdifficultycuckaroo | number}} / {{latestblockdetail.TotalDifficultyCuckatoo | number}}</p> -->
|
||||||
<p class="difficulty_datas">
|
<div class="difficulty_datas">
|
||||||
Cuckoo : {{ latestblockdetail.targetdifficultycuckatoo | number }} /
|
<span class="day60_txt">Cuckoo</span>
|
||||||
{{ latestblockdetail.TotalDifficultyCuckatoo | number }}
|
<div>
|
||||||
</p>
|
<span>Target Difficulty:</span><span>{{ latestblockdetail.targetdifficultycuckatoo | number }}</span><br>
|
||||||
<p class="difficulty_datas">
|
<span>Total Difficulty</span><span>{{ latestblockdetail.TotalDifficultyCuckatoo | number }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="difficulty_datas">
|
||||||
|
<span class="day60_txt">ProgPow </span>
|
||||||
|
<div>
|
||||||
|
<span>Target Difficulty:</span><span>{{ latestblockdetail.targetdifficultyprogpow | number }}</span><br>
|
||||||
|
<span>Total Difficulty</span><span>{{ latestblockdetail.TotalDifficultyProgpow | number }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="difficulty_datas">
|
||||||
|
<span class="day60_txt"> RandomX </span>
|
||||||
|
<div>
|
||||||
|
<span>Target Difficulty:</span><span>{{ latestblockdetail.targetdifficultyrandomx | number }}</span><br>
|
||||||
|
<span>Total Difficulty</span><span>{{ latestblockdetail.TotalDifficultyRandomx | number }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- <p class="difficulty_datas">
|
||||||
ProgPow : {{ latestblockdetail.targetdifficultyprogpow | number }} /
|
ProgPow : {{ latestblockdetail.targetdifficultyprogpow | number }} /
|
||||||
{{ latestblockdetail.TotalDifficultyProgpow | number }}
|
{{ latestblockdetail.TotalDifficultyProgpow | number }}
|
||||||
</p>
|
</p>
|
||||||
<p class="difficulty_datas">
|
<p class="difficulty_datas">
|
||||||
RandomX : {{ latestblockdetail.targetdifficultyrandomx | number }} /
|
RandomX : {{ latestblockdetail.targetdifficultyrandomx | number }} /
|
||||||
{{ latestblockdetail.TotalDifficultyRandomx | number }}
|
{{ latestblockdetail.TotalDifficultyRandomx | number }}
|
||||||
</p>
|
</p> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -776,7 +776,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
rangemode: 'nonnegative',
|
rangemode: 'nonnegative',
|
||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
tickformat :".0f",
|
//tickformat :".0f",
|
||||||
tickprefix: ' '
|
tickprefix: ' '
|
||||||
},
|
},
|
||||||
margin: {
|
margin: {
|
||||||
|
@ -2,6 +2,8 @@ import { Component, OnInit, Inject, AfterViewInit } from '@angular/core';
|
|||||||
import { DOCUMENT } from '@angular/common';
|
import { DOCUMENT } from '@angular/common';
|
||||||
import { Utils } from 'src/app/shared/utils';
|
import { Utils } from 'src/app/shared/utils';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'epic-explorer-home-worksapce',
|
selector: 'epic-explorer-home-worksapce',
|
||||||
@ -46,7 +48,7 @@ export class HomeWorksapceComponent extends Utils
|
|||||||
implements OnInit, AfterViewInit {
|
implements OnInit, AfterViewInit {
|
||||||
viewchartvar: boolean;
|
viewchartvar: boolean;
|
||||||
constructor(@Inject(DOCUMENT) public document: Document,
|
constructor(@Inject(DOCUMENT) public document: Document,
|
||||||
private router: Router) {
|
private router: Router,private route: ActivatedRoute,private titleService: Title) {
|
||||||
super(document);
|
super(document);
|
||||||
if (this.router.url == '/all') {
|
if (this.router.url == '/all') {
|
||||||
this.viewchartvar = false;
|
this.viewchartvar = false;
|
||||||
@ -55,7 +57,10 @@ export class HomeWorksapceComponent extends Utils
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {
|
||||||
|
this.titleService.setTitle(
|
||||||
|
this.route.snapshot.data.title,
|
||||||
|
);}
|
||||||
|
|
||||||
viewchartenable() {
|
viewchartenable() {
|
||||||
this.viewchartvar = false;
|
this.viewchartvar = false;
|
||||||
|
@ -7,6 +7,9 @@ const viewRoutes: Routes = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
loadChildren: './home/home.module#HomeModule',
|
loadChildren: './home/home.module#HomeModule',
|
||||||
|
data: {
|
||||||
|
title: 'Epic Explorer - Home',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'all',
|
path: 'all',
|
||||||
@ -21,6 +24,9 @@ const siteRoutes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'blockdetail/:hash',
|
path: 'blockdetail/:hash',
|
||||||
loadChildren: './block-view/block-view.module#BlockViewModule',
|
loadChildren: './block-view/block-view.module#BlockViewModule',
|
||||||
|
data: {
|
||||||
|
title: 'Epic Explorer - Block',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'chart',
|
path: 'chart',
|
||||||
|
@ -288,6 +288,9 @@ a:focus {
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
transition: 0.3s linear all;
|
transition: 0.3s linear all;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.detail_div .count {
|
.detail_div .count {
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
|
Loading…
Reference in New Issue
Block a user