1
0
Fork 0

Fix lint errors

master
Anton 2024-03-14 11:18:18 +01:00
parent c077a24512
commit c91e632033
5 changed files with 6 additions and 5 deletions

View File

@ -26,7 +26,7 @@ exports.addItems = function(menu, callback, items) {
};
break;
case "hideWidgets":
case "hideWidgets": {
let options = [/*LANG*/"Show",/*LANG*/"Hide"];
if (process.env.HWVERSION===2) options.push(/*LANG*/"Swipe");
menu[label] = {
@ -35,6 +35,7 @@ exports.addItems = function(menu, callback, items) {
format: v => options[v|0],
onchange: v => callback(key, v),
};
}
}
});
};

View File

@ -186,7 +186,7 @@ Layout.prototype.render = function (l) {
x+4,y+h-1,
x,y+h-5,
x,y+4
], bg = l.bgCol!==undefined?l.bgCol:gfx.theme.bg,
],
btnborder = l.btnBorderCol!==undefined?l.btnBorderCol:gfx.theme.fg2,
btnface = l.btnFaceCol!==undefined?l.btnFaceCol:gfx.theme.bg2;
if(l.selected){

View File

@ -112,6 +112,7 @@ exports.create = function(cb, conf) {
// Function to pass to `Bangle.on('drag', )`
o.f.dragSlider = e=>{
"ram";
let exFirst, eyFirst;
if (o.v.ebLast==0) {
exFirst = o.c.horizontal?e.y:e.x;
eyFirst = o.c.horizontal?e.x:e.y;

View File

@ -34,7 +34,6 @@ exports.dow = (i, abbreviated) => {
*/
exports.dows = (firstDayOfWeek, abbreviated) => {
var dows = [];
var locale = require("locale");
for (var i = 0; i < 7; i++) {
dows.push(exports.dow(i + (firstDayOfWeek || 0), abbreviated))
}

View File

@ -335,7 +335,7 @@ SunCalc.getMoonTimes = function (date, lat, lng, inUTC) {
// export as Node module / AMD module / browser variable
if (typeof exports === 'object' && typeof module !== 'undefined') module.exports = SunCalc;
else if (typeof define === 'function' && define.amd) define(SunCalc);
else window.SunCalc = SunCalc;
//else if (typeof define === 'function' && define.amd) define(SunCalc);
//else window.SunCalc = SunCalc;
}());