Merge branch 'master' of https://gitlab.com/epic-tech/explorer2.epic.tech-angular8
This commit is contained in:
commit
86a1e6a0ce
15
server.ts
15
server.ts
@ -72,6 +72,21 @@ const controllers = [
|
||||
new BlockchainOutputController()
|
||||
];
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
res.header('Access-Control-Allow-Origin', '*');
|
||||
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
|
||||
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, Content-Length, X-Requested-With, Accept, Authtoken,cookie_id');
|
||||
|
||||
// intercept OPTIONS method
|
||||
if ('OPTIONS' == req.method) {
|
||||
return res.status(200).end();
|
||||
}
|
||||
else {
|
||||
next();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
app.use(errorMiddleware);
|
||||
app.use(bodyParser.json({ limit: "50mb" }));
|
||||
app.use(bodyParser.urlencoded({ extended: false }));
|
||||
|
@ -17,7 +17,7 @@
|
||||
"VIEWALL": "Alle Diagramme anzeigen",
|
||||
"BLOCKCHAIN_HEIGHT": "Blockchain Höhe",
|
||||
"LATEST_BLOCK": "Letzter Block",
|
||||
"LATEST_BLOCK1": "Neueste Block-Schwierigkeit",
|
||||
"LATEST_BLOCK1": "Aktuelle Schwierigkeit",
|
||||
"COIN_IN": "Münzen in Existenz",
|
||||
"HEIGHT": "Höhe",
|
||||
"HASH": "Hash",
|
||||
@ -29,7 +29,8 @@
|
||||
"INPUT" : "Eingang",
|
||||
"OUTPUTS" : "Ausgänge",
|
||||
"OUTPUT" : "Ausgabe",
|
||||
"KERNELS" : "Kernel",
|
||||
"KERNEL" : "Kernel",
|
||||
"KERNELS" : "Kernels",
|
||||
"EPIC" : "Epic",
|
||||
"EXPLORE" : "Erkunden",
|
||||
"AGO" : "vor",
|
||||
|
@ -16,8 +16,8 @@
|
||||
"EXPLORE_IT": "Explore",
|
||||
"VIEWALL": "View All Charts",
|
||||
"BLOCKCHAIN_HEIGHT": "Blockchain Height",
|
||||
"LATEST_BLOCK": "Latest Blocks",
|
||||
"LATEST_BLOCK1": "Latest Block Difficulty",
|
||||
"LATEST_BLOCK": "Latest Block",
|
||||
"LATEST_BLOCK1": "Current Difficulty",
|
||||
"COIN_IN": "Coins in Existence",
|
||||
"HEIGHT": "Height",
|
||||
"HASH": "Hash",
|
||||
@ -29,6 +29,7 @@
|
||||
"INPUT" : "Input",
|
||||
"OUTPUTS" : "Outputs",
|
||||
"OUTPUT" : "Output",
|
||||
"KERNEL" : "Kernel",
|
||||
"KERNELS" : "Kernels",
|
||||
"EPIC" : "Epic",
|
||||
"EXPLORE" : "Explore",
|
||||
|
@ -2,7 +2,19 @@
|
||||
<nav class="navbar navbar-expand navbar-light bg-transparent">
|
||||
<div class="container-fluid">
|
||||
<div class="collapse navbar-collapse home_mble_hdr" id="navbarSupportedContent">
|
||||
<div class="home_tst_net">
|
||||
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- <li *ngIf="TimeArr" class="d-none d-sm-inline-block"><h1 class="test_msg d-inline-block mb-0 align-middle mr-3">{{'home.HEADER_TEXT' | translate}}</h1>
|
||||
<h1 class="test_msg align-middle mr-3 d-inline-block mb-0">{{'home.COUNTDOWN' | translate}}</h1>
|
||||
<ul class="list-unstyled d-inline-block bg-white p-2 mb-0 timer">
|
||||
<li class="d-inline-block"><span id="days">{{TimeArr.d}}d:</span></li>
|
||||
<li class="d-inline-block"><span id="hours">{{TimeArr.h}}h:</span></li>
|
||||
<li class="d-inline-block"><span id="minutes">{{TimeArr.m}}m:</span></li>
|
||||
<li class="d-inline-block"><span id="seconds">{{TimeArr.s}}s</span></li>
|
||||
</ul>
|
||||
|
||||
</li> -->
|
||||
<li class="home_tst_net mr-3">
|
||||
<span>You are viewing </span>
|
||||
<ul class="list-unstyled d-inline-block mb-0">
|
||||
<li class="nav-item dropdown">
|
||||
@ -23,20 +35,8 @@
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<span> Network </span>
|
||||
</div>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- <li *ngIf="TimeArr" class="d-none d-sm-inline-block"><h1 class="test_msg d-inline-block mb-0 align-middle mr-3">{{'home.HEADER_TEXT' | translate}}</h1>
|
||||
<h1 class="test_msg align-middle mr-3 d-inline-block mb-0">{{'home.COUNTDOWN' | translate}}</h1>
|
||||
<ul class="list-unstyled d-inline-block bg-white p-2 mb-0 timer">
|
||||
<li class="d-inline-block"><span id="days">{{TimeArr.d}}d:</span></li>
|
||||
<li class="d-inline-block"><span id="hours">{{TimeArr.h}}h:</span></li>
|
||||
<li class="d-inline-block"><span id="minutes">{{TimeArr.m}}m:</span></li>
|
||||
<li class="d-inline-block"><span id="seconds">{{TimeArr.s}}s</span></li>
|
||||
</ul>
|
||||
|
||||
</li> -->
|
||||
|
||||
|
||||
</li>
|
||||
<li class="nav-item px-2 dropdown bg-white">
|
||||
|
||||
<span class="flag " [ngStyle]="{ 'background-image': 'url(assets/img/' + translate.getCurrentLang() + '.jpg)'}"></span>
|
||||
|
@ -17,7 +17,7 @@ export class TransServiceService {
|
||||
if (isPlatformBrowser(this.platformId)) {
|
||||
translate.addLangs(["en", "de"]);
|
||||
translate.setDefaultLang("en");
|
||||
this.langLabel = { en: "English", de: "German" };
|
||||
this.langLabel = { en: "EN", de: "DE" };
|
||||
// console.log('this.getCookie() ifconf',this.getCookie() != 'undefined' ? 1: 2);
|
||||
// console.log("(this.getCookie() && this.getCookie() != null) ? this.getCookie() : (this.getCurrentLang() && this.getCurrentLang() != null) ? this.getCurrentLang() : 'en'",(this.getCookie() && this.getCookie() != 'undefined') ? this.getCookie() : (this.getCurrentLang() && this.getCurrentLang() != 'undefined') ? this.getCurrentLang() : 'en');
|
||||
translate.use(
|
||||
|
@ -124,7 +124,7 @@
|
||||
<a href="JavaScript:void(0);"
|
||||
(click)="ChartFromView(GraphtDate, GraphtHour, GraphtKernal,'Kernal'); selectedItem8 = 2" id="2"
|
||||
#item2
|
||||
[ngClass]="{ active: selectedItem8 == item2.id, day15_txt: true }">{{'home.KERNELS' | translate}}</a>
|
||||
[ngClass]="{ active: selectedItem8 == item2.id, day15_txt: true }">{{'home.KERNEL' | translate}}</a>
|
||||
<a href="JavaScript:void(0);"
|
||||
(click)="ChartFromView(GraphtDate, GraphtHour, GraphtOutput,'Output'); selectedItem8 = 3" id="3"
|
||||
#item3
|
||||
|
@ -6,7 +6,19 @@
|
||||
<!-- <span class="txn_count" *ngIf="this.lg_last.length > 0"><span *ngFor="let l of lg_last">{{
|
||||
this.l | number</span>
|
||||
}}</span> -->
|
||||
|
||||
<div class="chart_show">
|
||||
<div class="difficulty_filter day_filter p-0 bg-transparent mt-2">
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', difficultyRange,'cuckatoo'); selectedItem12 = 1
|
||||
" id="1" #item121 [ngClass]="{ active: selectedItem12 == item121.id, txt_primay: true }">Cuckoo</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', difficultyRange,'progpow'); selectedItem12 = 2
|
||||
" id="2" #item122 [ngClass]="{ active: selectedItem12 == item122.id, txt_primay: true }">ProgPow</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', difficultyRange,'randomx'); selectedItem12 = 3
|
||||
" id="3" #item123 [ngClass]="{ active: selectedItem12 == item123.id, txt_primay: true }">RandomX</a>
|
||||
</div>
|
||||
<epic-explorer-plotly *ngIf="linearGraphData.data" [data]="linearGraphData.data" [layout]="linearGraphData.layout">
|
||||
</epic-explorer-plotly>
|
||||
<div *ngIf="!linearGraphData.data" class="feedback_div news_desc text-center">
|
||||
@ -26,13 +38,13 @@
|
||||
<div class="day_filter diff_margin">
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', '1 day',''); selectedItem = 6; difficultyRange = '1 day'
|
||||
" id="6" #item6 [ngClass]="{ active: selectedItem == item6.id, txt_primay: true }">1 Day</a>
|
||||
" id="6" #item6 [ngClass]="{ active: selectedItem == item6.id, txt_primay: true }">1 day</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', '1 week',''); selectedItem = 1; difficultyRange = '1 week'
|
||||
" id="1" #item1 [ngClass]="{ active: selectedItem == item1.id, txt_primay: true }">1 {{'home.WEEK' | translate}}</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
<!-- <a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', '15 days',''); selectedItem = 2; difficultyRange = '15 days'
|
||||
" id="2" #item2 [ngClass]="{ active: selectedItem == item2.id, day15_txt: true }">15 {{'home.DAYS' | translate}}</a>
|
||||
" id="2" #item2 [ngClass]="{ active: selectedItem == item2.id, day15_txt: true }">15 {{'home.DAYS' | translate}}</a> -->
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', '30 days',''); selectedItem = 3; difficultyRange = '30 days'
|
||||
" id="3" #item3 [ngClass]="{ active: selectedItem == item3.id, day30_txt: true }">30 {{'home.DAYS' | translate}}</a>
|
||||
@ -45,17 +57,7 @@
|
||||
</div>
|
||||
|
||||
<div class="explore_all text-right">
|
||||
<div class="d-inline float-left difficulty_filter day_filter p-0 bg-transparent">
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', difficultyRange,'cuckatoo'); selectedItem12 = 1
|
||||
" id="1" #item121 [ngClass]="{ active: selectedItem12 == item121.id, txt_primay: true }">Cuckoo</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', difficultyRange,'progpow'); selectedItem12 = 2
|
||||
" id="2" #item122 [ngClass]="{ active: selectedItem12 == item122.id, txt_primay: true }">ProgPow</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('target', '', '', difficultyRange,'randomx'); selectedItem12 = 3
|
||||
" id="3" #item123 [ngClass]="{ active: selectedItem12 == item123.id, txt_primay: true }">RandomX</a>
|
||||
</div>
|
||||
|
||||
<a routerLink="/chart/target-difficulty"><span class="text-uppercase">{{'home.EXPLORE_IT' | translate}} <i
|
||||
class="fa fa-long-arrow-right"></i></span></a>
|
||||
</div>
|
||||
@ -68,7 +70,22 @@
|
||||
<!-- <span class="txn_count" *ngIf="this.lg_last.length > 0"><span *ngFor="let l of lg_last">{{
|
||||
this.l | number</span>
|
||||
}}</span> -->
|
||||
|
||||
<div class="chart_show">
|
||||
<div class="difficulty_filter day_filter p-0 bg-transparent mt-2">
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', TdifficultyRange,'cuckatoo'); selectedTarget12 = 1
|
||||
" id="1" #itemtarget121
|
||||
[ngClass]="{ active: selectedTarget12 == itemtarget121.id, txt_primay: true }">Cuckoo</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', TdifficultyRange,'progpow'); selectedTarget12 = 2
|
||||
" id="2" #itemtarget122
|
||||
[ngClass]="{ active: selectedTarget12 == itemtarget122.id, txt_primay: true }">ProgPow</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', TdifficultyRange,'randomx'); selectedTarget12 = 3
|
||||
" id="3" #itemtarget123
|
||||
[ngClass]="{ active: selectedTarget12 == itemtarget123.id, txt_primay: true }">RandomX</a>
|
||||
</div>
|
||||
<epic-explorer-plotly *ngIf="linearTotalGraphData.data" [data]="linearTotalGraphData.data"
|
||||
[layout]="linearTotalGraphData.layout">
|
||||
</epic-explorer-plotly>
|
||||
@ -89,15 +106,15 @@
|
||||
<div class="day_filter diff_margin">
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', '1 day',''); selectedTarget = 6; TdifficultyRange = '1 day'
|
||||
" id="6" #itemtarget6 [ngClass]="{ active: selectedTarget == itemtarget6.id, txt_primay: true }">1 Day</a>
|
||||
" id="6" #itemtarget6 [ngClass]="{ active: selectedTarget == itemtarget6.id, txt_primay: true }">1 day</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', '1 week',''); selectedTarget = 1; TdifficultyRange = '1 week'
|
||||
" id="1" #itemtarget1 [ngClass]="{ active: selectedTarget == itemtarget1.id, txt_primay: true }">1
|
||||
{{'home.WEEK' | translate}}</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
<!-- <a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', '15 days',''); selectedTarget = 2; TdifficultyRange = '15 days'
|
||||
" id="2" #itemtarget2 [ngClass]="{ active: selectedTarget == itemtarget2.id, day15_txt: true }">15
|
||||
{{'home.DAYS' | translate}}</a>
|
||||
{{'home.DAYS' | translate}}</a> -->
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', '30 days',''); selectedTarget = 3; TdifficultyRange = '30 days'
|
||||
" id="3" #itemtarget3 [ngClass]="{ active: selectedTarget == itemtarget3.id, day30_txt: true }">30
|
||||
@ -113,20 +130,7 @@
|
||||
</div>
|
||||
|
||||
<div class="explore_all text-right">
|
||||
<div class="d-inline float-left difficulty_filter day_filter p-0 bg-transparent">
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', TdifficultyRange,'cuckatoo'); selectedTarget12 = 1
|
||||
" id="1" #itemtarget121
|
||||
[ngClass]="{ active: selectedTarget12 == itemtarget121.id, txt_primay: true }">Cuckoo</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', TdifficultyRange,'progpow'); selectedTarget12 = 2
|
||||
" id="2" #itemtarget122
|
||||
[ngClass]="{ active: selectedTarget12 == itemtarget122.id, txt_primay: true }">ProgPow</a>
|
||||
<a href="JavaScript:void(0);" (click)="
|
||||
Difficultyreq('total', '', '', TdifficultyRange,'randomx'); selectedTarget12 = 3
|
||||
" id="3" #itemtarget123
|
||||
[ngClass]="{ active: selectedTarget12 == itemtarget123.id, txt_primay: true }">RandomX</a>
|
||||
</div>
|
||||
|
||||
<a routerLink="/chart/total-difficulty"><span class="text-uppercase">{{'home.EXPLORE_IT' | translate}} <i
|
||||
class="fa fa-long-arrow-right"></i></span></a>
|
||||
</div>
|
||||
@ -159,7 +163,7 @@
|
||||
<a href="JavaScript:void(0);" (click)="transactionheatmapFunc(tDate, tHour, tInput,'Input'); selectedItem8 = 1" id="1" #item1
|
||||
[ngClass]="{ active: selectedItem8 == item1.id, txt_primay: true }">{{'home.INPUT' | translate}}</a>
|
||||
<a href="JavaScript:void(0);" (click)="transactionheatmapFunc(tDate, tHour, tKernal,'Kernal'); selectedItem8 = 2" id="2" #item2
|
||||
[ngClass]="{ active: selectedItem8 == item2.id, day15_txt: true }">{{'home.KERNELS' | translate}}</a>
|
||||
[ngClass]="{ active: selectedItem8 == item2.id, day15_txt: true }">{{'home.KERNEL' | translate}}</a>
|
||||
<a href="JavaScript:void(0);" (click)="transactionheatmapFunc(tDate, tHour, tOutput,'Output'); selectedItem8 = 3" id="3" #item3
|
||||
[ngClass]="{ active: selectedItem8 == item3.id, day30_txt: true }">{{'home.OUTPUT' | translate}}</a>
|
||||
</div>
|
||||
|
@ -260,7 +260,7 @@ export class GraphListComponent implements OnInit {
|
||||
this.tDate,
|
||||
this.tHour,
|
||||
this.tInput,
|
||||
'Input',
|
||||
'Kernal',
|
||||
);
|
||||
resolve();
|
||||
}
|
||||
|
@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<div class="col-6 col-md-4 tble_col">
|
||||
<div class="block_div">
|
||||
<h5 class="mb-0">{{'home.DIFFICULTY' | translate}}</h5>
|
||||
<h5 class="mb-0">{{'home.TARGET_DIFFICULTY' | translate}}</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-7 col-sm-6 col-md-4 tble_col">
|
||||
|
@ -252,6 +252,7 @@ a:focus {
|
||||
background: #fff;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.difficulty_filter.day_filter a.active{border-color: #0056b3; color: #0056b3;}
|
||||
.explore_all {
|
||||
background: #ecf2ff;
|
||||
padding: 15px;
|
||||
@ -353,6 +354,9 @@ a:focus {
|
||||
right: 5px;
|
||||
top: 1px;
|
||||
}
|
||||
.chart_show {
|
||||
min-height: 268px;
|
||||
}
|
||||
/************************************************Footer*****************************************/
|
||||
.footer_div {
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.15);
|
||||
|
Loading…
Reference in New Issue
Block a user