tidying custom apps

pull/391/head
Gordon Williams 2020-05-06 09:59:28 +01:00
parent 620cdc1de1
commit 39b7569d8d
5 changed files with 5 additions and 7 deletions

View File

@ -558,14 +558,14 @@
}, },
{ "id": "route", { "id": "route",
"name": "Route Viewer", "name": "Route Viewer",
"icon": "route.png", "icon": "app.png",
"version":"0.01", "version":"0.01",
"description": "Upload a KML file of a route, and have your watch display a map with how far around it you are", "description": "Upload a KML file of a route, and have your watch display a map with how far around it you are",
"tags": "", "tags": "",
"custom": "route.html", "custom": "custom.html",
"storage": [ "storage": [
{"name":"route.app.js"}, {"name":"route.app.js"},
{"name":"route.img"} {"name":"route.img","url":"app-icon.js","evaluate":true}
] ]
}, },
{ {

View File

@ -147,7 +147,6 @@ TODO:
lon : centerlatlon.lng lon : centerlatlon.lng
})}); })});
mapFiles.unshift({"name":"openstmap.app.js","url":"app.js"}); mapFiles.unshift({"name":"openstmap.app.js","url":"app.js"});
mapFiles.unshift({"name":"openstmap.img","url":"app-icon.js","evaluate":true});
console.log(mapFiles); console.log(mapFiles);
}); });

1
apps/route/app-icon.js Normal file
View File

@ -0,0 +1 @@
require("heatshrink").decompress(atob("mEwgIkhvgFE/wEDgOHAocDgYFEgOAAp4XEEYsB4w1E5hBKnByFKw8/AQNAAQP/4EAAIMB4HggBABHoNwCwUGE4kOgEYBAMAhk+hgIBAoM/hkEAoMIv8MC4QFChARCAoIMCDoQXChkcjA1EAoJBBg5dCJoJHDKYWAsCGD4AJBAAXBDYIlCsYFBGwUzPok+AokcsOOmIUCAogAWA=="))

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -240,12 +240,10 @@ Bangle.setGPSPower(1);
Bangle.setCompassPower(1); Bangle.setCompassPower(1);
g.clear(); g.clear();
`; `;
var icon = `require("heatshrink").decompress(atob("mEwgIkhvgFE/wEDgOHAocDgYFEgOAAp4XEEYsB4w1E5hBKnByFKw8/AQNAAQP/4EAAIMB4HggBABHoNwCwUGE4kOgEYBAMAhk+hgIBAoM/hkEAoMIv8MC4QFChARCAoIMCDoQXChkcjA1EAoJBBg5dCJoJHDKYWAsCGD4AJBAAXBDYIlCsYFBGwUzPok+AokcsOOmIUCAogAWA=="))`;
sendCustomizedApp({ sendCustomizedApp({
storage:[ storage:[
{name:"route.app.js", content:app}, {name:"route.app.js", content:app}
{name:"route.img", content:icon, evaluate:true},
] ]
}); });
}); });