Changes
This commit is contained in:
parent
e7962f753a
commit
24be8e79b6
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",
|
||||
|
@ -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
|
||||
|
@ -159,7 +159,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">
|
||||
|
Loading…
Reference in New Issue
Block a user