minor improvements

master
Martin Zwigl 2025-03-22 18:26:24 +01:00
parent f749ee524a
commit 24905947c9
3 changed files with 6 additions and 5 deletions

View File

@ -31,7 +31,7 @@ Martin Zwigl
- You also need a CoinStats API access key which is good for a fair amount of calls - You also need a CoinStats API access key which is good for a fair amount of calls
- I tried with gridy for the axis, but for this data - it is just not readable... - I tried with gridy for the axis, but for this data - it is just not readable...
- Let me know when you have good suggestions for improvement. - Let me know when you have good suggestions for improvement.
- "..." button shows current details for current token - ".." button shows current details for current token
- Swipe L-R changes token you supplied via interface - Swipe L-R changes token you supplied via interface
- Not much guard-rails in the app -> you should have at least one token (each) present - Not much guard-rails in the app -> you should have at least one token (each) present
- Also the API token - Also the API token

View File

@ -55,8 +55,8 @@ var layout = new Layout({
{type:"h", valign:-1, {type:"h", valign:-1,
c: [ c: [
{type:"txt", id:"tknName", font:"6x8:2", label:"", halign:-1, fillx:1}, {type:"txt", id:"tknName", font:"6x8:2", label:"", halign:-1, fillx:1},
{type:"btn", label:"...", halign:1, cb: d=>showDetails()}, {type:"btn", label:"..", halign:1, cb: d=>showDetails()},
{type:"btn", label:"L/H", halign:1, cb: d=>showDetails()} {type:"btn", label:"LH", halign:1, cb: d=>showDetails()}
] ]
}, },
{type:"txt", id:"loadMsg", font:"6x8", label:"", fillx:1 }, {type:"txt", id:"loadMsg", font:"6x8", label:"", fillx:1 },
@ -147,7 +147,8 @@ function showDetails() {
const msg = ` const msg = `
Price: ${priceFmt} Price: ${priceFmt}
M-Cap: ${mCapFmt} M-Cap: ${mCapFmt}
1h:${tokenInfo.priceChange1h} 1d:${tokenInfo.priceChange1d} 1w:${tokenInfo.priceChange1w} 1h:${tokenInfo.priceChange1h}
1d:${tokenInfo.priceChange1d} 1w:${tokenInfo.priceChange1w}
`; `;
E.showAlert(msg, title).then(function() { E.showAlert(msg, title).then(function() {
// print("Ok pressed"); // print("Ok pressed");

View File

@ -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.06.67", "version": "0.06.68",
"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",