mirror of https://github.com/espruino/BangleApps
Fix lint errors
parent
c077a24512
commit
c91e632033
|
@ -26,7 +26,7 @@ exports.addItems = function(menu, callback, items) {
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "hideWidgets":
|
case "hideWidgets": {
|
||||||
let options = [/*LANG*/"Show",/*LANG*/"Hide"];
|
let options = [/*LANG*/"Show",/*LANG*/"Hide"];
|
||||||
if (process.env.HWVERSION===2) options.push(/*LANG*/"Swipe");
|
if (process.env.HWVERSION===2) options.push(/*LANG*/"Swipe");
|
||||||
menu[label] = {
|
menu[label] = {
|
||||||
|
@ -35,6 +35,7 @@ exports.addItems = function(menu, callback, items) {
|
||||||
format: v => options[v|0],
|
format: v => options[v|0],
|
||||||
onchange: v => callback(key, v),
|
onchange: v => callback(key, v),
|
||||||
};
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -186,7 +186,7 @@ Layout.prototype.render = function (l) {
|
||||||
x+4,y+h-1,
|
x+4,y+h-1,
|
||||||
x,y+h-5,
|
x,y+h-5,
|
||||||
x,y+4
|
x,y+4
|
||||||
], bg = l.bgCol!==undefined?l.bgCol:gfx.theme.bg,
|
],
|
||||||
btnborder = l.btnBorderCol!==undefined?l.btnBorderCol:gfx.theme.fg2,
|
btnborder = l.btnBorderCol!==undefined?l.btnBorderCol:gfx.theme.fg2,
|
||||||
btnface = l.btnFaceCol!==undefined?l.btnFaceCol:gfx.theme.bg2;
|
btnface = l.btnFaceCol!==undefined?l.btnFaceCol:gfx.theme.bg2;
|
||||||
if(l.selected){
|
if(l.selected){
|
||||||
|
|
|
@ -112,6 +112,7 @@ exports.create = function(cb, conf) {
|
||||||
// Function to pass to `Bangle.on('drag', )`
|
// Function to pass to `Bangle.on('drag', )`
|
||||||
o.f.dragSlider = e=>{
|
o.f.dragSlider = e=>{
|
||||||
"ram";
|
"ram";
|
||||||
|
let exFirst, eyFirst;
|
||||||
if (o.v.ebLast==0) {
|
if (o.v.ebLast==0) {
|
||||||
exFirst = o.c.horizontal?e.y:e.x;
|
exFirst = o.c.horizontal?e.y:e.x;
|
||||||
eyFirst = o.c.horizontal?e.x:e.y;
|
eyFirst = o.c.horizontal?e.x:e.y;
|
||||||
|
|
|
@ -34,7 +34,6 @@ exports.dow = (i, abbreviated) => {
|
||||||
*/
|
*/
|
||||||
exports.dows = (firstDayOfWeek, abbreviated) => {
|
exports.dows = (firstDayOfWeek, abbreviated) => {
|
||||||
var dows = [];
|
var dows = [];
|
||||||
var locale = require("locale");
|
|
||||||
for (var i = 0; i < 7; i++) {
|
for (var i = 0; i < 7; i++) {
|
||||||
dows.push(exports.dow(i + (firstDayOfWeek || 0), abbreviated))
|
dows.push(exports.dow(i + (firstDayOfWeek || 0), abbreviated))
|
||||||
}
|
}
|
||||||
|
|
|
@ -335,7 +335,7 @@ SunCalc.getMoonTimes = function (date, lat, lng, inUTC) {
|
||||||
|
|
||||||
// export as Node module / AMD module / browser variable
|
// export as Node module / AMD module / browser variable
|
||||||
if (typeof exports === 'object' && typeof module !== 'undefined') module.exports = SunCalc;
|
if (typeof exports === 'object' && typeof module !== 'undefined') module.exports = SunCalc;
|
||||||
else if (typeof define === 'function' && define.amd) define(SunCalc);
|
//else if (typeof define === 'function' && define.amd) define(SunCalc);
|
||||||
else window.SunCalc = SunCalc;
|
//else window.SunCalc = SunCalc;
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Reference in New Issue