From 09c892df7e97d784727fd18783daae46e59cc9ce Mon Sep 17 00:00:00 2001 From: shunmugam Date: Mon, 16 Sep 2019 14:25:09 +0530 Subject: [PATCH] api view modification and circulating supply prefix change --- server.ts | 2 +- server/i18n/de.json | 3 ++- server/i18n/en.json | 3 ++- src/app/view/api-view/api-view.component.html | 25 +++++++++++-------- .../home/graph-list/graph-list.component.ts | 4 +-- 5 files changed, 22 insertions(+), 15 deletions(-) diff --git a/server.ts b/server.ts index 7bd74b5..7756f49 100644 --- a/server.ts +++ b/server.ts @@ -129,7 +129,7 @@ try { { let result; //500 if(option == "circulating") - result= blockDetails.coin_existence; + result= blockDetails.coin_existence * 100000000; else if(option == "getblockcount") result= blockDetails.block_height; else if(option == "getdifficulty-randomx") diff --git a/server/i18n/de.json b/server/i18n/de.json index b17c9d8..114db23 100644 --- a/server/i18n/de.json +++ b/server/i18n/de.json @@ -101,7 +101,8 @@ "getblockhash" : "Nimmt einen Höhenparameter und gibt den entsprechenden Block-Hash zurück", "getblockheight" : "Nimmt einen Hash-Parameter und gibt die entsprechende Blockhöhe zurück.", "getblocktime" : "Nimmt einen Höhenparameter und gibt die unixtime des Blocks zurück.", - "takes":"nimmt ein" + "takes":"nimmt ein", + "Note" : "Hinweis" }, "commit-id-view": { "output-commit":"Output Commit", diff --git a/server/i18n/en.json b/server/i18n/en.json index ed916e8..701ee4b 100644 --- a/server/i18n/en.json +++ b/server/i18n/en.json @@ -101,7 +101,8 @@ "getblockhash" : " parameter and returns corresponding block hash.", "getblockheight" : " parameter and returns corresponding block height.", "getblocktime" : " parameter and returns unixtime of the block.", - "takes" : "takes a" + "takes" : "takes a", + "Note" : "Note" }, "commit-id-view": { "output-commit":"Output Commit", diff --git a/src/app/view/api-view/api-view.component.html b/src/app/view/api-view/api-view.component.html index fd2eb50..2e6c8b5 100644 --- a/src/app/view/api-view/api-view.component.html +++ b/src/app/view/api-view/api-view.component.html @@ -1,5 +1,5 @@
-
+

{{'api-view.query-api' | translate}}

@@ -8,12 +8,12 @@

{{'api-view.real-time-simple-query' | translate}}

{{'api-view.Block-Queries' | translate}}

@@ -21,9 +21,14 @@ {{'api-view.block-query-text' | translate}}

    -
  • getblockhash: takes a height {{'api-view.getblockhash' | translate}}
  • -
  • getblockheight: takes a hash {{'api-view.getblockheight' | translate}}
  • -
  • getblocktime: takes a height {{'api-view.getblocktime' | translate}}
  • +
  • getblockhash: takes a height {{'api-view.getblockhash' | translate}}
  • +
  • getblockheight: takes a hash {{'api-view.getblockheight' | translate}}
  • +
  • getblocktime: takes a height {{'api-view.getblocktime' | translate}}
+
+

{{'api-view.Note' | translate}}

+ + If you require another API, please request it by sending an email to xxx@epic.tech +
diff --git a/src/app/view/home/graph-list/graph-list.component.ts b/src/app/view/home/graph-list/graph-list.component.ts index b1abd66..570d3cf 100644 --- a/src/app/view/home/graph-list/graph-list.component.ts +++ b/src/app/view/home/graph-list/graph-list.component.ts @@ -639,7 +639,7 @@ export class GraphListComponent implements OnInit { xaxis: { tickangle: -45, tickformat: tickformat, - fixedrange: true, + // fixedrange: true, rangemode: 'nonnegative', domain: [domain_start, 0.9], // showgrid: true @@ -1380,7 +1380,7 @@ export class GraphListComponent implements OnInit { xaxis: { tickangle: -40, tickformat: tickformat, - fixedrange: true, + // fixedrange: true, domain: [domain_start, 0.9] // showgrid: true },