Merge branch 'master' of https://gitlab.com/epic-tech/explorer2.epic.tech-angular8
This commit is contained in:
commit
987c132f7b
@ -734,7 +734,7 @@ export class BlockchainBlockController {
|
|||||||
BlockchainBlockFetchQuery['Timestamp'] = moment
|
BlockchainBlockFetchQuery['Timestamp'] = moment
|
||||||
.utc(BlockchainBlockFetchQuery['Timestamp'])
|
.utc(BlockchainBlockFetchQuery['Timestamp'])
|
||||||
.utc()
|
.utc()
|
||||||
.format('YYYY-MM-DD,HH:MM:SS UTC');
|
.format('YYYY-MM-DD, HH:MM:SS UTC');
|
||||||
|
|
||||||
BlockchainBlockFetchQuery['hashstart'] = BlockchainBlockFetchQuery[
|
BlockchainBlockFetchQuery['hashstart'] = BlockchainBlockFetchQuery[
|
||||||
'Hash'
|
'Hash'
|
||||||
|
@ -16,6 +16,7 @@ import {
|
|||||||
TransactionFeeDto,
|
TransactionFeeDto,
|
||||||
} from '../dtos';
|
} from '../dtos';
|
||||||
import { Paginate } from '../utils';
|
import { Paginate } from '../utils';
|
||||||
|
const https = require('https');
|
||||||
|
|
||||||
var moment = require('moment');
|
var moment = require('moment');
|
||||||
|
|
||||||
@ -134,6 +135,29 @@ export class BlockchainKernelController {
|
|||||||
this.Translator,
|
this.Translator,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @swagger
|
||||||
|
* /epic_explorer/v1/getpeers:
|
||||||
|
* get:
|
||||||
|
* tags:
|
||||||
|
* - name: Translator | Translator CONTROLLER
|
||||||
|
* summary: create a translator
|
||||||
|
* description: create a translator
|
||||||
|
* consumes:
|
||||||
|
* - application/json
|
||||||
|
* produces:
|
||||||
|
* - application/json
|
||||||
|
* parameters:
|
||||||
|
* - name: lang
|
||||||
|
* responses:
|
||||||
|
* 200:
|
||||||
|
* description: Transaction fee chart fetched successfully
|
||||||
|
*/
|
||||||
|
this.router.get(
|
||||||
|
`${this.path}/getpeers`,
|
||||||
|
this.getPeers,
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @swagger
|
* @swagger
|
||||||
* /epic_explorer/v1/blockchain_kernel/transactionheatmap:
|
* /epic_explorer/v1/blockchain_kernel/transactionheatmap:
|
||||||
@ -476,6 +500,24 @@ export class BlockchainKernelController {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
private getPeers = async (
|
||||||
|
request: Request,
|
||||||
|
response: Response,
|
||||||
|
next: NextFunction,
|
||||||
|
) => {
|
||||||
|
try {
|
||||||
|
https.get('http://5.9.174.122:3413/v1/peers/connected', (resp) => {
|
||||||
|
console.log('resp resp respresp',resp);
|
||||||
|
let data = '';
|
||||||
|
|
||||||
|
// A chunk of data has been recieved.
|
||||||
|
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
next(new InternalServerErrorException(error));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
private TransactionFee = async (
|
private TransactionFee = async (
|
||||||
request: Request,
|
request: Request,
|
||||||
response: Response,
|
response: Response,
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"total-difficulty" : "Gesamtschwierigkeit",
|
"total-difficulty" : "Gesamtschwierigkeit",
|
||||||
"transactions-by-time" : "Transkationen nach Zeit",
|
"transactions-by-time" : "Transaktionen im Zeitverlauf",
|
||||||
"blocks" : "Blöcke",
|
"blocks" : "Blöcke",
|
||||||
"transaction-fees" : "Transkationsgebühren",
|
"transaction-fees" : "Transkationsgebühren",
|
||||||
"supply-growth" : "Angebotswachstum",
|
"supply-growth" : "Angebotswachstum",
|
||||||
"blocks-mined" : "Blöcke abgebaut",
|
"blocks-mined" : "Blöcke abgebaut",
|
||||||
"hashrate-growth-chart" : "HashRate-Wachstumstabelle",
|
"hashrate-growth-chart" : "HashRate-Wachstumstabelle",
|
||||||
"block-interval" : "Sperrintervall",
|
"block-interval" : "Sperrintervall",
|
||||||
"transactions-vs-date" : "Transaktionen gegen Datum",
|
"transactions-vs-date" : "Transaktionen nach Datum",
|
||||||
"home": {
|
"home": {
|
||||||
"HEADER_TEXT": "Sie befinden sich in Beta",
|
"HEADER_TEXT": "Sie befinden sich in Beta",
|
||||||
"COUNTDOWN": "Mainnet-Countdown",
|
"COUNTDOWN": "Mainnet-Countdown",
|
||||||
"EXPLORE_IT": "Entdecke es",
|
"EXPLORE_IT": "Entdecke",
|
||||||
"VIEWALL": "Alle Diagramme anzeigen",
|
"VIEWALL": "Alle Diagramme anzeigen",
|
||||||
"BLOCKCHAIN_HEIGHT": "Blockchain Höhe",
|
"BLOCKCHAIN_HEIGHT": "Blockchain Höhe",
|
||||||
"LATEST_BLOCK": "Letzter Block",
|
"LATEST_BLOCK": "Letzter Block",
|
||||||
@ -22,19 +22,19 @@
|
|||||||
"AGE": "Alter",
|
"AGE": "Alter",
|
||||||
"FEE": "Gebühr",
|
"FEE": "Gebühr",
|
||||||
"DIFFICULTY" : "Schwierigkeit",
|
"DIFFICULTY" : "Schwierigkeit",
|
||||||
"POW_ALGO" : "Pow Algo",
|
"POW_ALGO" : "PoW Algo",
|
||||||
"INPUTS" : "Eingänge",
|
"INPUTS" : "Eingänge",
|
||||||
"INPUT" : "Eingang",
|
"INPUT" : "Eingang",
|
||||||
"OUTPUTS" : "Ausgänge",
|
"OUTPUTS" : "Ausgänge",
|
||||||
"OUTPUT" : "Ausgabe",
|
"OUTPUT" : "Ausgabe",
|
||||||
"KERNELS" : "Kernel",
|
"KERNELS" : "Kernel",
|
||||||
"EPIC" : "Epos",
|
"EPIC" : "Epic",
|
||||||
"EXPLORE" : "Erkunden",
|
"EXPLORE" : "Erkunden",
|
||||||
"AGO" : "vor",
|
"AGO" : "vor",
|
||||||
"MINUTE" : "minute",
|
"MINUTE" : "minute",
|
||||||
"BLOCKS_PER_PAGE" : "Blöcke pro Seite",
|
"BLOCKS_PER_PAGE" : "Blöcke pro Seite",
|
||||||
"TOTAL_DIFFICULTY" : "Gesamtschwierigkeit",
|
"TOTAL_DIFFICULTY" : "Gesamtschwierigkeit",
|
||||||
"TRANSACTIONS_BY_TIME" : "Transkationen nach Zeit",
|
"TRANSACTIONS_BY_TIME" : "Transaktionen im Zeitverlauf",
|
||||||
"BLOCKS" : "Blöcke",
|
"BLOCKS" : "Blöcke",
|
||||||
"BLOCK" : "Block",
|
"BLOCK" : "Block",
|
||||||
"BLOCKS_MINED" : "Blöcke abgebaut",
|
"BLOCKS_MINED" : "Blöcke abgebaut",
|
||||||
@ -52,7 +52,7 @@
|
|||||||
"NOT_FOUND1" : "Die von Ihnen gesuchte Seite wurde nicht gefunden",
|
"NOT_FOUND1" : "Die von Ihnen gesuchte Seite wurde nicht gefunden",
|
||||||
"NOT_FOUND2" : "Gehe zum Explorer",
|
"NOT_FOUND2" : "Gehe zum Explorer",
|
||||||
"COMMIT" : "verpflichten",
|
"COMMIT" : "verpflichten",
|
||||||
"ALGORITHM" : "Pow-Algorithmus",
|
"ALGORITHM" : "PoW Algorithmus",
|
||||||
"TYPE" : "Art",
|
"TYPE" : "Art",
|
||||||
"SPEND" : "Verbringen",
|
"SPEND" : "Verbringen",
|
||||||
"FEATURES" : "Eigenschaften",
|
"FEATURES" : "Eigenschaften",
|
||||||
@ -61,6 +61,13 @@
|
|||||||
"SEARCH_RESULT1" : "Ihr Suchbegriff",
|
"SEARCH_RESULT1" : "Ihr Suchbegriff",
|
||||||
"SEARCH_RESULT2" : "ist zu kurz",
|
"SEARCH_RESULT2" : "ist zu kurz",
|
||||||
"SEARCH_RESULT3" : "Bitte geben Sie mindestens sechs Zeichen ein, wenn Sie nach Hash suchen",
|
"SEARCH_RESULT3" : "Bitte geben Sie mindestens sechs Zeichen ein, wenn Sie nach Hash suchen",
|
||||||
"total-difficulty" : "Gesamtschwierigkeit"
|
"total-difficulty" : "Gesamtschwierigkeit",
|
||||||
|
"PEERS" : "Gleichaltrigen",
|
||||||
|
"CAPABILITIES" : "Fähigkeiten",
|
||||||
|
"USER_AGENT" : "User Agent",
|
||||||
|
"VERSION" : "Ausführung",
|
||||||
|
"ADDR" : "Adr",
|
||||||
|
"DIRECTION" : "Richtung",
|
||||||
|
"SPENT" : "Verbraucht"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"total-difficulty" : "Total Difficulty",
|
"total-difficulty" : "Total Difficulty",
|
||||||
"transactions-by-time" : "Transactions By Time",
|
"transactions-by-time" : "Transactions over time",
|
||||||
"blocks" : "Blocks",
|
"blocks" : "Blocks",
|
||||||
"transaction-fees" : "Transaction Fees",
|
"transaction-fees" : "Transaction Fees",
|
||||||
"supply-growth" : "Supply Growth",
|
"supply-growth" : "Supply Growth",
|
||||||
"blocks-mined" : "Blocks Mined",
|
"blocks-mined" : "Blocks Mined",
|
||||||
"hashrate-growth-chart" : "HashRate Growth Chart",
|
"hashrate-growth-chart" : "HashRate Growth Chart",
|
||||||
"block-interval" : "Block Interval",
|
"block-interval" : "Block Interval",
|
||||||
"transactions-vs-date" : "Transactions Vs Date",
|
"transactions-vs-date" : "Transactions by Date",
|
||||||
"home": {
|
"home": {
|
||||||
"HEADER_TEXT": "You are on Beta",
|
"HEADER_TEXT": "You are on Beta",
|
||||||
"COUNTDOWN": "Mainnet Countdown",
|
"COUNTDOWN": "Mainnet Countdown",
|
||||||
"EXPLORE_IT": "Explore it",
|
"EXPLORE_IT": "Explore",
|
||||||
"VIEWALL": "View All Charts",
|
"VIEWALL": "View All Charts",
|
||||||
"BLOCKCHAIN_HEIGHT": "Blockchain Height",
|
"BLOCKCHAIN_HEIGHT": "Blockchain Height",
|
||||||
"LATEST_BLOCK": "Latest Blocks",
|
"LATEST_BLOCK": "Latest Blocks",
|
||||||
@ -22,7 +22,7 @@
|
|||||||
"AGE": "Age",
|
"AGE": "Age",
|
||||||
"FEE": "Fee",
|
"FEE": "Fee",
|
||||||
"DIFFICULTY" : "Difficulty",
|
"DIFFICULTY" : "Difficulty",
|
||||||
"POW_ALGO" : "Pow Algo",
|
"POW_ALGO" : "PoW Algo",
|
||||||
"INPUTS" : "Inputs",
|
"INPUTS" : "Inputs",
|
||||||
"INPUT" : "Input",
|
"INPUT" : "Input",
|
||||||
"OUTPUTS" : "Outputs",
|
"OUTPUTS" : "Outputs",
|
||||||
@ -34,7 +34,7 @@
|
|||||||
"BLOCKS_PER_PAGE" : "Blocks per page",
|
"BLOCKS_PER_PAGE" : "Blocks per page",
|
||||||
"MINUTE" : "minute",
|
"MINUTE" : "minute",
|
||||||
"TOTAL_DIFFICULTY" : "Total Difficulty",
|
"TOTAL_DIFFICULTY" : "Total Difficulty",
|
||||||
"TRANSACTIONS_BY_TIME" : "Transactions By Time",
|
"TRANSACTIONS_BY_TIME" : "Transactions over time",
|
||||||
"BLOCKS" : "Blocks",
|
"BLOCKS" : "Blocks",
|
||||||
"BLOCK" : "Block",
|
"BLOCK" : "Block",
|
||||||
"BLOCKS_MINED" : "Blocks Mined",
|
"BLOCKS_MINED" : "Blocks Mined",
|
||||||
@ -42,7 +42,7 @@
|
|||||||
"SUPPLY_GROWTH" : "Supply Growth",
|
"SUPPLY_GROWTH" : "Supply Growth",
|
||||||
"HASHRATE_GROWTH_CHART" : "HashRate Growth Chart",
|
"HASHRATE_GROWTH_CHART" : "HashRate Growth Chart",
|
||||||
"BLOCK_INTERVAL" : "Block Interval",
|
"BLOCK_INTERVAL" : "Block Interval",
|
||||||
"TRANSACTIONS_VS_DATE" : "Transactions Vs Date",
|
"TRANSACTIONS_VS_DATE" : "Transactions by Date",
|
||||||
"DAYS" : "days",
|
"DAYS" : "days",
|
||||||
"MONTHS" : "months",
|
"MONTHS" : "months",
|
||||||
"WEEK" : "week",
|
"WEEK" : "week",
|
||||||
@ -51,7 +51,7 @@
|
|||||||
"NOT_FOUND" : "Page Not Found",
|
"NOT_FOUND" : "Page Not Found",
|
||||||
"NOT_FOUND1" : "Page you are looking for is not found",
|
"NOT_FOUND1" : "Page you are looking for is not found",
|
||||||
"NOT_FOUND2" : "Go to Explorer",
|
"NOT_FOUND2" : "Go to Explorer",
|
||||||
"ALGORITHM" : "Pow Algorithm",
|
"ALGORITHM" : "PoW Algorithm",
|
||||||
"COMMIT" : "commit",
|
"COMMIT" : "commit",
|
||||||
"TYPE" : "Type",
|
"TYPE" : "Type",
|
||||||
"SPEND" : "Spend",
|
"SPEND" : "Spend",
|
||||||
@ -66,6 +66,7 @@
|
|||||||
"USER_AGENT" : "User Agent",
|
"USER_AGENT" : "User Agent",
|
||||||
"VERSION" : "Version",
|
"VERSION" : "Version",
|
||||||
"ADDR" : "Addr",
|
"ADDR" : "Addr",
|
||||||
"DIRECTION" : "Direction"
|
"DIRECTION" : "Direction",
|
||||||
|
"SPENT" : "Spent"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,9 +69,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="d-inline-block align-middle ml-2">
|
<div class="d-inline-block align-middle ml-2">
|
||||||
<span class="">{{'home.DIFFICULTY' | translate}}</span>
|
<span class="">{{'home.DIFFICULTY' | translate}}</span>
|
||||||
</div>
|
|
||||||
<h6 class="view_txt">{{(hashdata.BlockchainBlockFetchQuery.Proof == 'Cuckoo') ? ((hashdata.BlockchainBlockFetchQuery.TotalDifficultyCuckatoo + hashdata.BlockchainBlockFetchQuery.TotalDifficultyCuckaroo) | number) : (hashdata.BlockchainBlockFetchQuery.Proof == 'RandomX') ? (hashdata.BlockchainBlockFetchQuery.TotalDifficultyRandomx | number) : (hashdata.BlockchainBlockFetchQuery.Proof == 'ProgPow') ? (hashdata.BlockchainBlockFetchQuery.TotalDifficultyProgpow | number) : 0}}</h6>
|
<h6 class="view_txt">{{(hashdata.BlockchainBlockFetchQuery.Proof == 'Cuckoo') ? ((hashdata.BlockchainBlockFetchQuery.TotalDifficultyCuckatoo + hashdata.BlockchainBlockFetchQuery.TotalDifficultyCuckaroo) | number) : (hashdata.BlockchainBlockFetchQuery.Proof == 'RandomX') ? (hashdata.BlockchainBlockFetchQuery.TotalDifficultyRandomx | number) : (hashdata.BlockchainBlockFetchQuery.Proof == 'ProgPow') ? (hashdata.BlockchainBlockFetchQuery.TotalDifficultyProgpow | number) : 0}}</h6>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-sm-6 col-md-4 mt-4 pt-2">
|
<div class="col-sm-6 col-md-4 mt-4 pt-2">
|
||||||
<div class="d-inline-block align-middle">
|
<div class="d-inline-block align-middle">
|
||||||
<img src="assets/img/block_reward.png" height="60" />
|
<img src="assets/img/block_reward.png" height="60" />
|
||||||
@ -233,7 +233,7 @@
|
|||||||
<div class="block_div"><h5 class="mb-0">{{'home.FEATURES' | translate}}</h5></div>
|
<div class="block_div"><h5 class="mb-0">{{'home.FEATURES' | translate}}</h5></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4 ">
|
<div class="col-lg-4 ">
|
||||||
<div class="block_div"><h5 class="mb-0">{{'home.LOCK' | translate}} {{'home.HEIGHT' | translate}}</h5></div>
|
<div class="block_div"><h5 class="mb-0">{{'home.BLOCK' | translate}} {{'home.HEIGHT' | translate}}</h5></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4 ">
|
<div class="col-lg-4 ">
|
||||||
<div class="block_div"><h5 class="mb-0">{{'home.FEE' | translate}}</h5></div>
|
<div class="block_div"><h5 class="mb-0">{{'home.FEE' | translate}}</h5></div>
|
||||||
@ -248,7 +248,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 col-sm-4 col-md-4 col-lg-4">
|
<div class="col-12 col-sm-4 col-md-4 col-lg-4">
|
||||||
<div class="block_div"><h6>{{'home.LOCK' | translate}} {{'home.HEIGHT' | translate}}</h6><span class="blck_value">{{ hashkernel.LockHeight }}</span></div>
|
<div class="block_div"><h6>{{'home.BLOCK' | translate}} {{'home.HEIGHT' | translate}}</h6><span class="blck_value">{{ hashkernel.LockHeight }}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-sm-4 col-md-4 col-lg-4">
|
<div class="col-12 col-sm-4 col-md-4 col-lg-4">
|
||||||
<div class="block_div"><h6>{{'home.FEE' | translate}}</h6><span class="blck_value">{{ hashkernel.Fee }} Epic</span></div>
|
<div class="block_div"><h6>{{'home.FEE' | translate}}</h6><span class="blck_value">{{ hashkernel.Fee }} Epic</span></div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<h2 class="chart_heading text-uppercase d-inline-block">{{this.chartType | translate}}</h2>
|
<h2 class="chart_heading text-uppercase d-inline-block">{{this.chartType | translate}}</h2>
|
||||||
<epic-explorer-plotly *ngIf="hashdata.data" [data]="hashdata.data" [layout]="hashdata.layout">
|
<epic-explorer-plotly *ngIf="hashdata.data" [data]="hashdata.data" [layout]="hashdata.layout">
|
||||||
</epic-explorer-plotly>
|
</epic-explorer-plotly>
|
||||||
<div class="day_filter" *ngIf="this.title!='Transactions by time'">
|
<div class="day_filter" *ngIf="this.title!='Transactions over time'">
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
ChartFromView('', '', '1 week', true, false); selectedItem = 1
|
ChartFromView('', '', '1 week', true, false); selectedItem = 1
|
||||||
" id="1" #item1 [ngClass]="{ active: selectedItem == item1.id, txt_primay: true }">1 {{'home.WEEK' | translate}}</a>
|
" id="1" #item1 [ngClass]="{ active: selectedItem == item1.id, txt_primay: true }">1 {{'home.WEEK' | translate}}</a>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
ChartFromView('', '', '3 months', true, false); selectedItem = 5
|
ChartFromView('', '', '3 months', true, false); selectedItem = 5
|
||||||
" id="5" #item5 [ngClass]="{ active: selectedItem == item5.id, day3m_txt: true }">3 {{'home.MONTHS' | translate}}</a>
|
" id="5" #item5 [ngClass]="{ active: selectedItem == item5.id, day3m_txt: true }">3 {{'home.MONTHS' | translate}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="day_filter" *ngIf="this.title=='Transactions by time'">
|
<div class="day_filter" *ngIf="this.title=='Transactions over time'">
|
||||||
<a href="JavaScript:void(0);" (click)="ChartFromView(GraphtDate, GraphtHour, GraphtInput,'Input'); selectedItem8 = 1" id="1" #item1
|
<a href="JavaScript:void(0);" (click)="ChartFromView(GraphtDate, GraphtHour, GraphtInput,'Input'); selectedItem8 = 1" id="1" #item1
|
||||||
[ngClass]="{ active: selectedItem8 == item1.id, txt_primay: true }">{{'home.INPUT' | translate}}</a>
|
[ngClass]="{ active: selectedItem8 == item1.id, txt_primay: true }">{{'home.INPUT' | translate}}</a>
|
||||||
<a href="JavaScript:void(0);" (click)="ChartFromView(GraphtDate, GraphtHour, GraphtKernal,'Kernal'); selectedItem8 = 2" id="2" #item2
|
<a href="JavaScript:void(0);" (click)="ChartFromView(GraphtDate, GraphtHour, GraphtKernal,'Kernal'); selectedItem8 = 2" id="2" #item2
|
||||||
@ -58,14 +58,14 @@
|
|||||||
<h2 class="chart_heading mb-2 d-inline-block">{{'home.EXPLORE' | translate}}</h2>
|
<h2 class="chart_heading mb-2 d-inline-block">{{'home.EXPLORE' | translate}}</h2>
|
||||||
<ul class="list-unstyled pl-3">
|
<ul class="list-unstyled pl-3">
|
||||||
<li class="mb-1" *ngIf="this.title!='Total Difficulty'"><a routerLink="/chart/total-difficulty">{{'home.TOTAL_DIFFICULTY' | translate}}</a></li>
|
<li class="mb-1" *ngIf="this.title!='Total Difficulty'"><a routerLink="/chart/total-difficulty">{{'home.TOTAL_DIFFICULTY' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Transactions by time'"><a routerLink="/chart/transactions-by-time">{{'home.TRANSACTIONS_BY_TIME' | translate}}</a></li>
|
<li class="mb-1" *ngIf="this.title!='Transactions over time'"><a routerLink="/chart/transactions-by-time">{{'home.TRANSACTIONS_BY_TIME' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Blocks'"><a routerLink="/chart/blocks">{{'home.BLOCKS' | translate}}</a></li>
|
<li class="mb-1" *ngIf="this.title!='Blocks'"><a routerLink="/chart/blocks">{{'home.BLOCKS' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Blocks Mined'"><a routerLink="/chart/blocks-mined">{{'home.BLOCKS_MINED' | translate}}</a></li>
|
<li class="mb-1" *ngIf="this.title!='Blocks Mined'"><a routerLink="/chart/blocks-mined">{{'home.BLOCKS_MINED' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Transaction Fees'"><a routerLink="/chart/transaction-fees">{{'home.TRANSACTION_FEES' | translate}}</a></li>
|
<li class="mb-1" *ngIf="this.title!='Transaction Fees'"><a routerLink="/chart/transaction-fees">{{'home.TRANSACTION_FEES' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Supply Growth'"><a routerLink="/chart/supply-growth">{{'home.SUPPLY_GROWTH' | translate}}</a></li>
|
<li class="mb-1" *ngIf="this.title!='Supply Growth'"><a routerLink="/chart/supply-growth">{{'home.SUPPLY_GROWTH' | translate}}</a></li>
|
||||||
<!-- <li class="mb-1" *ngIf="this.title!='HashRate Growth Chart'"><a routerLink="/chart/hashrate-growth-chart">{{'home.HASHRATE_GROWTH_CHART' | translate}}</a></li> -->
|
<!-- <li class="mb-1" *ngIf="this.title!='HashRate Growth Chart'"><a routerLink="/chart/hashrate-growth-chart">{{'home.HASHRATE_GROWTH_CHART' | translate}}</a></li> -->
|
||||||
<li class="mb-1" *ngIf="this.title!='Transactions by time'"><a routerLink="/chart/block-interval">{{'home.BLOCK_INTERVAL' | translate}}</a></li>
|
<li class="mb-1" *ngIf="this.title!='Transactions over time'"><a routerLink="/chart/block-interval">{{'home.BLOCK_INTERVAL' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Transactions Vs Date'"><a routerLink="/chart/transactions-vs-date">{{'home.TRANSACTIONS_VS_DATE' | translate}}</a></li>
|
<li class="mb-1" *ngIf="this.title!='Transactions by Date'"><a routerLink="/chart/transactions-vs-date">{{'home.TRANSACTIONS_VS_DATE' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Stackbar Chart'"><a routerLink="/chart/stackchart">Stackbar Chart</a></li>
|
<li class="mb-1" *ngIf="this.title!='Stackbar Chart'"><a routerLink="/chart/stackchart">Stackbar Chart</a></li>
|
||||||
<!-- <li class="mb-1" *ngIf="this.title!='Pie Chart'"><a routerLink="/chart/piechart">Pie Chart</a></li> -->
|
<!-- <li class="mb-1" *ngIf="this.title!='Pie Chart'"><a routerLink="/chart/piechart">Pie Chart</a></li> -->
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -65,7 +65,7 @@ export class GraphDetailComponent implements OnInit {
|
|||||||
this.hashdata.layout.height = 500;
|
this.hashdata.layout.height = 500;
|
||||||
// this.hashdata.layout.width =
|
// this.hashdata.layout.width =
|
||||||
// window.innerWidth - (window.innerWidth / 2.8);
|
// window.innerWidth - (window.innerWidth / 2.8);
|
||||||
this.title = 'Transactions by time';
|
this.title = 'Transactions over time';
|
||||||
this.GraphtDate = this.comp.tDate;
|
this.GraphtDate = this.comp.tDate;
|
||||||
this.GraphtHour = this.comp.tHour;
|
this.GraphtHour = this.comp.tHour;
|
||||||
this.GraphtInput = this.comp.tInput;
|
this.GraphtInput = this.comp.tInput;
|
||||||
@ -172,7 +172,7 @@ export class GraphDetailComponent implements OnInit {
|
|||||||
// this.hashdata.layout.width =
|
// this.hashdata.layout.width =
|
||||||
// window.innerWidth - window.innerWidth / 2.8;
|
// window.innerWidth - window.innerWidth / 2.8;
|
||||||
//console.log(this.hashdata.layout.width);
|
//console.log(this.hashdata.layout.width);
|
||||||
this.title = 'Transactions Vs Date';
|
this.title = 'Transactions by Date';
|
||||||
this.titleService.setTitle(
|
this.titleService.setTitle(
|
||||||
this.route.snapshot.data.title + ' - ' + this.title,
|
this.route.snapshot.data.title + ' - ' + this.title,
|
||||||
);
|
);
|
||||||
@ -206,7 +206,7 @@ export class GraphDetailComponent implements OnInit {
|
|||||||
this.hashdata.layout.height = 500;
|
this.hashdata.layout.height = 500;
|
||||||
// this.hashdata.layout.width =
|
// this.hashdata.layout.width =
|
||||||
// window.innerWidth - window.innerWidth / 2.8;
|
// window.innerWidth - window.innerWidth / 2.8;
|
||||||
this.title = 'Transactions by time';
|
this.title = 'Transactions over time';
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'blocks':
|
case 'blocks':
|
||||||
@ -279,7 +279,7 @@ export class GraphDetailComponent implements OnInit {
|
|||||||
this.hashdata.layout.height = 500;
|
this.hashdata.layout.height = 500;
|
||||||
// this.hashdata.layout.width =
|
// this.hashdata.layout.width =
|
||||||
// window.innerWidth - window.innerWidth / 2.8;
|
// window.innerWidth - window.innerWidth / 2.8;
|
||||||
this.title = 'Transactions Vs Date';
|
this.title = 'Transactions by Date';
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -27,26 +27,35 @@
|
|||||||
<div class="row" *ngIf="latestblockdetail">
|
<div class="row" *ngIf="latestblockdetail">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="text-center detail_div" [ngStyle]="{'min-height.px': minHeight}">
|
<div class="text-center detail_div" [ngStyle]="{'min-height.px': minHeight}">
|
||||||
<p class="count mb-0">{{ latestblockdetail.block_height | number }}</p>
|
|
||||||
<p class="mb-0 desc">{{'home.BLOCKCHAIN_HEIGHT' | translate}}</p>
|
<p class="mb-0 desc">{{'home.BLOCKCHAIN_HEIGHT' | translate}}</p>
|
||||||
|
<p class="count mb-0">{{ latestblockdetail.block_height | number }}</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="text-center detail_div" [ngStyle]="{'min-height.px': minHeight}">
|
<div class="text-center detail_div" [ngStyle]="{'min-height.px': minHeight}">
|
||||||
<p class="count mb-0">{{latestblockdetail.letest_block_num}} <span class="">{{latestblockdetail.letest_block_duration}}</span></p>
|
|
||||||
<p class="mb-0 desc">{{'home.LATEST_BLOCK' | translate}}</p>
|
<p class="mb-0 desc">{{'home.LATEST_BLOCK' | translate}}</p>
|
||||||
|
<p class="count mb-0">{{latestblockdetail.letest_block_num}} <span class="">{{latestblockdetail.letest_block_duration}}</span></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="text-center detail_div" #minhgt>
|
<div class="text-center detail_div" #minhgt>
|
||||||
<p class="difficulty_datas">Cuckaroo : {{latestblockdetail.targetdifficultycuckaroo | number}}, Cuckatoo : {{latestblockdetail.targetdifficultycuckatoo | number}}, ProgPow : {{latestblockdetail.targetdifficultyprogpow | number}}, RandomX : {{latestblockdetail.targetdifficultyrandomx | number}}</p>
|
<p class="mb-2 desc">{{'home.LATEST_BLOCK1' | translate}}</p>
|
||||||
<p class="mb-0 desc">{{'home.LATEST_BLOCK1' | translate}}</p>
|
<div class=" text-left d-inline-block">
|
||||||
|
<p class="difficulty_datas">Cuckaroo : {{latestblockdetail.targetdifficultycuckaroo | number}}</p>
|
||||||
|
<p class="difficulty_datas">Cuckatoo : {{latestblockdetail.targetdifficultycuckatoo | number}}</p>
|
||||||
|
<p class="difficulty_datas">ProgPow : {{latestblockdetail.targetdifficultyprogpow | number}}</p>
|
||||||
|
<p class="difficulty_datas">RandomX : {{latestblockdetail.targetdifficultyrandomx | number}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="text-center detail_div" [ngStyle]="{'min-height.px': minHeight}">
|
<div class="text-center detail_div" [ngStyle]="{'min-height.px': minHeight}">
|
||||||
<p class="count mb-0">{{latestblockdetail.coin_existence | number}} <span class="">Epic</span></p>
|
|
||||||
<p class="mb-0 desc">{{'home.COIN_IN' | translate}}</p>
|
<p class="mb-0 desc">{{'home.COIN_IN' | translate}}</p>
|
||||||
|
<p class="count mb-0">{{latestblockdetail.coin_existence | number}} <span class="">Epic</span></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -332,6 +332,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
.apiGetRequest(params, '/blockchain_block/supplygrowth')
|
.apiGetRequest(params, '/blockchain_block/supplygrowth')
|
||||||
.subscribe(
|
.subscribe(
|
||||||
res => {
|
res => {
|
||||||
|
res = {"status":200,"timestamp":1564734317476,"message":"period of blocks generation per second fetched Successfully","response":{"date":["2019-08-01"],"total_reward_per_day":[4600],"addedreward":[4600]}}
|
||||||
if (res['status'] == 200) {
|
if (res['status'] == 200) {
|
||||||
let gDate = res.response.date;
|
let gDate = res.response.date;
|
||||||
let gReward = res.response.total_reward_per_day;
|
let gReward = res.response.total_reward_per_day;
|
||||||
@ -548,7 +549,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
showline: false,
|
showline: false,
|
||||||
title: 'Block',
|
title: 'Blocks',
|
||||||
rangemode: 'nonnegative',
|
rangemode: 'nonnegative',
|
||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
@ -586,7 +587,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
tickformat: '%m-%d',
|
tickformat: '%m-%d',
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Block',
|
title: 'Blocks',
|
||||||
},
|
},
|
||||||
margin: {
|
margin: {
|
||||||
l: 50,
|
l: 50,
|
||||||
@ -626,7 +627,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
tickformat: '%m-%d',
|
tickformat: '%m-%d',
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Block',
|
title: 'Blocks',
|
||||||
},
|
},
|
||||||
margin: {
|
margin: {
|
||||||
l: 50,
|
l: 50,
|
||||||
@ -658,9 +659,15 @@ export class GraphListComponent implements OnInit {
|
|||||||
xaxis: {
|
xaxis: {
|
||||||
tickangle: -45,
|
tickangle: -45,
|
||||||
tickformat: '%m-%d',
|
tickformat: '%m-%d',
|
||||||
|
rangemode: 'nonnegative',
|
||||||
|
fixedrange: true,
|
||||||
|
showgrid: true,
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Tx Fee',
|
title: 'Tx Fee',
|
||||||
|
rangemode: 'nonnegative',
|
||||||
|
fixedrange: true,
|
||||||
|
showgrid: true,
|
||||||
},
|
},
|
||||||
margin: {
|
margin: {
|
||||||
l: 50,
|
l: 50,
|
||||||
@ -700,9 +707,16 @@ export class GraphListComponent implements OnInit {
|
|||||||
linewidth: 2,
|
linewidth: 2,
|
||||||
tickformat: '%m-%d',
|
tickformat: '%m-%d',
|
||||||
tickangle: -45,
|
tickangle: -45,
|
||||||
|
rangemode: 'nonnegative',
|
||||||
|
fixedrange: true,
|
||||||
|
showgrid: true
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Total Reward Supply',
|
title: 'Total Reward Supply',
|
||||||
|
rangemode: 'nonnegative',
|
||||||
|
fixedrange: true,
|
||||||
|
showgrid: true,
|
||||||
|
tickformat :".0f"
|
||||||
},
|
},
|
||||||
margin: {
|
margin: {
|
||||||
l: 50,
|
l: 50,
|
||||||
@ -744,7 +758,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
showgrid: true,
|
showgrid: true,
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Block / sec',
|
title: 'Blocks / sec',
|
||||||
rangemode: 'nonnegative',
|
rangemode: 'nonnegative',
|
||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-6 col-sm-6 col-md-3 tble_col">
|
<div class="col-6 col-sm-6 col-md-3 tble_col">
|
||||||
<div class="block_div">
|
<div class="block_div">
|
||||||
<h6 class="mb-0">Pow Algo</h6><span class="blck_value">{{ hashvalue.powalgo }}</span>
|
<h6 class="mb-0">PoW Algo</h6><span class="blck_value">{{ hashvalue.powalgo }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6 col-sm-6 col-md-3 tble_col">
|
<div class="col-6 col-sm-6 col-md-3 tble_col">
|
||||||
|
@ -235,6 +235,7 @@ a:focus {
|
|||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
float: right;
|
||||||
}
|
}
|
||||||
.day_filter {
|
.day_filter {
|
||||||
background-color: #f9f9f7;
|
background-color: #f9f9f7;
|
||||||
@ -626,7 +627,7 @@ margin-right: 10px;
|
|||||||
margin-top: -4px;
|
margin-top: -4px;
|
||||||
}
|
}
|
||||||
.langbut:focus{outline: none;}
|
.langbut:focus{outline: none;}
|
||||||
.detail_div .difficulty_datas{font-size: 14px !important; color: #0091ff}
|
.detail_div .difficulty_datas{font-size: 14px !important; color: #0091ff; margin-bottom: 0px;}
|
||||||
.net_dropdwn{
|
.net_dropdwn{
|
||||||
min-width: 5rem;
|
min-width: 5rem;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user