0.18: Fix lint warnings, change anv->janv for fr_BE and fr_CH

master
Gordon Williams 2024-03-20 09:09:25 +00:00
parent 82942a1a33
commit 1332cba725
7 changed files with 21 additions and 20 deletions

View File

@ -59,13 +59,6 @@ module.exports = {
"no-unused-vars" "no-unused-vars"
] ]
}, },
"sleepphasealarm/app.js": {
"hash": "d234fea5d711ae5a149879e53b28bc9002860c6b6a75285e1fc04093fe400a88",
"rules": [
"no-unused-vars",
"no-undef"
]
},
"sleeplog/settings.js": { "sleeplog/settings.js": {
"hash": "bd5e3e1382321df6682ef1cb718b0e15ab355422bef77278eb086f213f643021", "hash": "bd5e3e1382321df6682ef1cb718b0e15ab355422bef77278eb086f213f643021",
"rules": [ "rules": [
@ -582,12 +575,6 @@ module.exports = {
"no-undef" "no-undef"
] ]
}, },
"locale/locales.js": {
"hash": "bf2fd659e673b34a1ffa98c7ae7ca89de86a4ff9f823244d028e85bc465ed3c7",
"rules": [
"no-unused-vars"
]
},
"sleeplog/lib.js": { "sleeplog/lib.js": {
"hash": "755e0d4c02b92181281fd6990df39c9446c73ff896b50b64d7e14cb1c0188556", "hash": "755e0d4c02b92181281fd6990df39c9446c73ff896b50b64d7e14cb1c0188556",
"rules": [ "rules": [

View File

@ -19,3 +19,4 @@
0.16: Remove global variables that used RAM 0.16: Remove global variables that used RAM
Add second 'dp' argument for decimal places in distance/speed/temp (fix #1523) Add second 'dp' argument for decimal places in distance/speed/temp (fix #1523)
0.17: Fix regression where long month names were 'undefined' (fix #1641) 0.17: Fix regression where long month names were 'undefined' (fix #1641)
0.18: Fix lint warnings, change anv->janv for fr_BE and fr_CH

View File

@ -1,4 +1,8 @@
/* jshint esversion: 6 */ /* jshint esversion: 6 */
/* exported distanceUnits */
/* exported speedUnits */
/* exported codePages */
/* exported locales */
const distanceUnits = { // how many meters per X? const distanceUnits = { // how many meters per X?
"m": 1, "m": 1,
"ft": 0.3048, "ft": 0.3048,
@ -59,6 +63,14 @@ timePattern / datePattern:
%S second (00..60) %S second (00..60)
%p locale's equivalent of either AM or PM; blank if not known %p locale's equivalent of either AM or PM; blank if not known
%P like %p, but lower case %P like %p, but lower case
in locales:
abmonth: short months (must be <5 chars, ideally 3)
month: normal month names
abday: short days (must be <5 chars, ideally 3)
day: normal day names
*/ */
var locales = { var locales = {
@ -459,7 +471,7 @@ var locales = {
ampm: { 0: "", 1: "" }, ampm: { 0: "", 1: "" },
timePattern: { 0: "%HH:%MM:%SS", 1: "%HH:%MM" }, timePattern: { 0: "%HH:%MM:%SS", 1: "%HH:%MM" },
datePattern: { 0: "%A %B %d %Y", "1": "%d/%m/%y" }, // dimanche 1 mars 2020 // 01/03/20 datePattern: { 0: "%A %B %d %Y", "1": "%d/%m/%y" }, // dimanche 1 mars 2020 // 01/03/20
abmonth: "anv.,févr.,mars,avril,mai,juin,juil.,août,sept.,oct.,nov.,déc.", abmonth: "janv.,févr.,mars,avril,mai,juin,juil.,août,sept.,oct.,nov.,déc.",
month: "janvier,février,mars,avril,mai,juin,juillet,août,septembre,octobre,novembre,décembre", month: "janvier,février,mars,avril,mai,juin,juillet,août,septembre,octobre,novembre,décembre",
abday: "dim,lun,mar,mer,jeu,ven,sam", abday: "dim,lun,mar,mer,jeu,ven,sam",
day: "dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi", day: "dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi",
@ -513,7 +525,7 @@ var locales = {
ampm: { 0: "AM", 1: "PM" }, ampm: { 0: "AM", 1: "PM" },
timePattern: { 0: "%HH:%MM:%SS", 1: "%HH:%MM" }, timePattern: { 0: "%HH:%MM:%SS", 1: "%HH:%MM" },
datePattern: { 0: "%A %d %B %Y", "1": "%d/%m/%y" }, // dimanche 1 mars 2020 // 01/03/20 datePattern: { 0: "%A %d %B %Y", "1": "%d/%m/%y" }, // dimanche 1 mars 2020 // 01/03/20
abmonth: "anv.,févr.,mars,avril,mai,juin,juil.,août,sept.,oct.,nov.,déc.", abmonth: "janv.,févr.,mars,avril,mai,juin,juil.,août,sept.,oct.,nov.,déc.",
month: "janvier,février,mars,avril,mai,juin,juillet,août,septembre,octobre,novembre,décembre", month: "janvier,février,mars,avril,mai,juin,juillet,août,septembre,octobre,novembre,décembre",
abday: "dim,lun,mar,mer,jeu,ven,sam", abday: "dim,lun,mar,mer,jeu,ven,sam",
day: "dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi", day: "dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi",

View File

@ -1,7 +1,7 @@
{ {
"id": "locale", "id": "locale",
"name": "Languages", "name": "Languages",
"version": "0.17", "version": "0.18",
"description": "Translations for different countries", "description": "Translations for different countries",
"icon": "locale.png", "icon": "locale.png",
"type": "locale", "type": "locale",

View File

@ -20,3 +20,4 @@
0.15: Convert Yes/No On/Off in settings to checkboxes 0.15: Convert Yes/No On/Off in settings to checkboxes
0.16: Fix Keep alarm enabled inverted settings 0.16: Fix Keep alarm enabled inverted settings
0.17: Fix handle dates saved as object with milliseconds 0.17: Fix handle dates saved as object with milliseconds
0.18: Fix lint warnings

View File

@ -105,8 +105,8 @@ function drawApp() {
} }
const period = drawSeconds ? 1000 : 60000; const period = drawSeconds ? 1000 : 60000;
if (this.drawTimeTimeout !== undefined) { if (drawTimeTimeout !== undefined) {
clearTimeout(this.drawTimeTimeout); clearTimeout(drawTimeTimeout);
} }
drawTimeTimeout = setTimeout(()=>{ drawTimeTimeout = setTimeout(()=>{
drawTimeTimeout = undefined; drawTimeTimeout = undefined;
@ -156,7 +156,7 @@ if (nextAlarmDate !== undefined) {
// minimum alert 30 minutes early // minimum alert 30 minutes early
minAlarm.setTime(nextAlarmDate.getTime() - (30*60*1000)); minAlarm.setTime(nextAlarmDate.getTime() - (30*60*1000));
run = () => { let run = () => {
layout.state.label = /*LANG*/"Start"; layout.state.label = /*LANG*/"Start";
layout.render(); layout.render();
Bangle.setOptions({powerSave: false}); // do not dynamically change accelerometer poll interval Bangle.setOptions({powerSave: false}); // do not dynamically change accelerometer poll interval

View File

@ -2,7 +2,7 @@
"id": "sleepphasealarm", "id": "sleepphasealarm",
"name": "SleepPhaseAlarm", "name": "SleepPhaseAlarm",
"shortName": "SleepPhaseAlarm", "shortName": "SleepPhaseAlarm",
"version": "0.17", "version": "0.18",
"description": "Uses the accelerometer to estimate sleep and wake states with the principle of Estimation of Stationary Sleep-segments (ESS, see https://ubicomp.eti.uni-siegen.de/home/datasets/ichi14/index.html.en). This app will read the next alarm from the alarm application and will wake you up to 30 minutes early at the best guessed time when you are almost already awake.", "description": "Uses the accelerometer to estimate sleep and wake states with the principle of Estimation of Stationary Sleep-segments (ESS, see https://ubicomp.eti.uni-siegen.de/home/datasets/ichi14/index.html.en). This app will read the next alarm from the alarm application and will wake you up to 30 minutes early at the best guessed time when you are almost already awake.",
"icon": "app.png", "icon": "app.png",
"tags": "tool,alarm", "tags": "tool,alarm",