This commit is contained in:
SuriyaR 2019-08-08 18:50:20 +05:30
parent e7962f753a
commit 24be8e79b6
8 changed files with 26 additions and 9 deletions

View File

@ -72,6 +72,21 @@ const controllers = [
new BlockchainOutputController() 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(errorMiddleware);
app.use(bodyParser.json({ limit: "50mb" })); app.use(bodyParser.json({ limit: "50mb" }));
app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.urlencoded({ extended: false }));

View File

@ -17,7 +17,7 @@
"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",
"LATEST_BLOCK1": "Neueste Block-Schwierigkeit", "LATEST_BLOCK1": "Aktuelle Schwierigkeit",
"COIN_IN": "Münzen in Existenz", "COIN_IN": "Münzen in Existenz",
"HEIGHT": "Höhe", "HEIGHT": "Höhe",
"HASH": "Hash", "HASH": "Hash",
@ -29,7 +29,8 @@
"INPUT" : "Eingang", "INPUT" : "Eingang",
"OUTPUTS" : "Ausgänge", "OUTPUTS" : "Ausgänge",
"OUTPUT" : "Ausgabe", "OUTPUT" : "Ausgabe",
"KERNELS" : "Kernel", "KERNEL" : "Kernel",
"KERNELS" : "Kernels",
"EPIC" : "Epic", "EPIC" : "Epic",
"EXPLORE" : "Erkunden", "EXPLORE" : "Erkunden",
"AGO" : "vor", "AGO" : "vor",

View File

@ -16,8 +16,8 @@
"EXPLORE_IT": "Explore", "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 Block",
"LATEST_BLOCK1": "Latest Block Difficulty", "LATEST_BLOCK1": "Current Difficulty",
"COIN_IN": "Coins in Existence", "COIN_IN": "Coins in Existence",
"HEIGHT": "Height", "HEIGHT": "Height",
"HASH": "Hash", "HASH": "Hash",
@ -29,6 +29,7 @@
"INPUT" : "Input", "INPUT" : "Input",
"OUTPUTS" : "Outputs", "OUTPUTS" : "Outputs",
"OUTPUT" : "Output", "OUTPUT" : "Output",
"KERNEL" : "Kernel",
"KERNELS" : "Kernels", "KERNELS" : "Kernels",
"EPIC" : "Epic", "EPIC" : "Epic",
"EXPLORE" : "Explore", "EXPLORE" : "Explore",

View File

@ -17,7 +17,7 @@ export class TransServiceService {
if (isPlatformBrowser(this.platformId)) { if (isPlatformBrowser(this.platformId)) {
translate.addLangs(["en", "de"]); translate.addLangs(["en", "de"]);
translate.setDefaultLang("en"); 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() 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'); // 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( translate.use(

View File

@ -124,7 +124,7 @@
<a href="JavaScript:void(0);" <a href="JavaScript:void(0);"
(click)="ChartFromView(GraphtDate, GraphtHour, GraphtKernal,'Kernal'); selectedItem8 = 2" id="2" (click)="ChartFromView(GraphtDate, GraphtHour, GraphtKernal,'Kernal'); selectedItem8 = 2" id="2"
#item2 #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);" <a href="JavaScript:void(0);"
(click)="ChartFromView(GraphtDate, GraphtHour, GraphtOutput,'Output'); selectedItem8 = 3" id="3" (click)="ChartFromView(GraphtDate, GraphtHour, GraphtOutput,'Output'); selectedItem8 = 3" id="3"
#item3 #item3

View File

@ -159,7 +159,7 @@
<a href="JavaScript:void(0);" (click)="transactionheatmapFunc(tDate, tHour, tInput,'Input'); selectedItem8 = 1" id="1" #item1 <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> [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 <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 <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> [ngClass]="{ active: selectedItem8 == item3.id, day30_txt: true }">{{'home.OUTPUT' | translate}}</a>
</div> </div>

View File

@ -260,7 +260,7 @@ export class GraphListComponent implements OnInit {
this.tDate, this.tDate,
this.tHour, this.tHour,
this.tInput, this.tInput,
'Input', 'Kernal',
); );
resolve(); resolve();
} }

View File

@ -20,7 +20,7 @@
</div> </div>
<div class="col-6 col-md-4 tble_col"> <div class="col-6 col-md-4 tble_col">
<div class="block_div"> <div class="block_div">
<h5 class="mb-0">{{'home.DIFFICULTY' | translate}}</h5> <h5 class="mb-0">{{'home.TARGET_DIFFICULTY' | translate}}</h5>
</div> </div>
</div> </div>
<div class="col-7 col-sm-6 col-md-4 tble_col"> <div class="col-7 col-sm-6 col-md-4 tble_col">