clean up; fix test errors
parent
c4a8a46fb0
commit
e056d8b224
|
|
@ -3,4 +3,4 @@
|
||||||
0.05: Lot of cleanup
|
0.05: Lot of cleanup
|
||||||
0.06: Creating app v1
|
0.06: Creating app v1
|
||||||
0.07: Finishing touches for v1
|
0.07: Finishing touches for v1
|
||||||
0.08: Clean up
|
0.09: Clean up
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
const logFile = require("Storage").open("coin_info_log.txt", "a");
|
// const logFile = require("Storage").open("coin_info_log.txt", "a");
|
||||||
const db = require("Storage").readJSON("coin_info.cmc_key.json", 1) || {};
|
const db = require("Storage").readJSON("coin_info.cmc_key.json", 1) || {};
|
||||||
const csTokens = db.csTokens.split(',');
|
const csTokens = db.csTokens.split(',');
|
||||||
//
|
//
|
||||||
|
|
@ -37,7 +37,6 @@ Bangle.on("swipe", swipeHandler);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
var gridYValue = 5;
|
|
||||||
function renderGraph(l) {
|
function renderGraph(l) {
|
||||||
const bounds = ciLib.findMinMax(tknChrtData);
|
const bounds = ciLib.findMinMax(tknChrtData);
|
||||||
// logFile.write("?. graphy: " + JSON.stringify(bounds) + "\n");
|
// logFile.write("?. graphy: " + JSON.stringify(bounds) + "\n");
|
||||||
|
|
@ -46,7 +45,7 @@ function renderGraph(l) {
|
||||||
x: l.x, y: l.y, width: l.w, height: l.h,
|
x: l.x, y: l.y, width: l.w, height: l.h,
|
||||||
miny: bounds.min,
|
miny: bounds.min,
|
||||||
maxy: bounds.max,
|
maxy: bounds.max,
|
||||||
// gridy: gridYValue
|
// gridy: 5
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -107,9 +106,6 @@ function getChart(period) {
|
||||||
|
|
||||||
// just not readable
|
// just not readable
|
||||||
optSpacing = ciLib.calculateOptimalYAxisSpacing(tknChrtData);
|
optSpacing = ciLib.calculateOptimalYAxisSpacing(tknChrtData);
|
||||||
// logFile.write("Y-Axis:" + JSON.stringify(oSpcOjb));
|
|
||||||
// gridYValue = oSpcOjb.interval;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
g.clearRect(layout.tknGraph.x, layout.tknGraph.y, layout.tknGraph.w, layout.tknGraph.h);
|
g.clearRect(layout.tknGraph.x, layout.tknGraph.y, layout.tknGraph.w, layout.tknGraph.h);
|
||||||
layout.forgetLazyState(); // Force a full re-render
|
layout.forgetLazyState(); // Force a full re-render
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
const settings = require("Storage").readJSON("coin_info.settings.json", 1) || {};
|
const settings = require("Storage").readJSON("coin_info.settings.json", 1) || {};
|
||||||
const db = require("Storage").readJSON("coin_info.cmc_key.json", 1) || {};
|
const db = require("Storage").readJSON("coin_info.cmc_key.json", 1) || {};
|
||||||
const logFile = require("Storage").open("coin_info_log.txt", "a");
|
// const logFile = require("Storage").open("coin_info_log.txt", "a");
|
||||||
const ciLib = require("coin_info");
|
const ciLib = require("coin_info");
|
||||||
|
|
||||||
if (!(settings.tokenSelected instanceof Array)) settings.tokenSelected = [];
|
if (!(settings.tokenSelected instanceof Array)) settings.tokenSelected = [];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "coin_info",
|
{ "id": "coin_info",
|
||||||
"name": "Crypto-Coins Info",
|
"name": "Crypto-Coins Info",
|
||||||
"shortName":"Coins Info",
|
"shortName":"Coins Info",
|
||||||
"version": "0.08",
|
"version": "0.09",
|
||||||
"description": "Crypto-Coins Infos with the help of the Binance API",
|
"description": "Crypto-Coins Infos with the help of the Binance API",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "clkinfo",
|
"tags": "clkinfo",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue