From 4c8c1a6d2f523a399ea1fd90a7f45033752e5563 Mon Sep 17 00:00:00 2001 From: Diego Pereyra Date: Sat, 15 Jan 2022 16:09:58 -0300 Subject: [PATCH 01/13] Option to keep or not the textual translations --- apps/locale/locale.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/locale/locale.html b/apps/locale/locale.html index 90a2e8d40..fa857d9f8 100644 --- a/apps/locale/locale.html +++ b/apps/locale/locale.html @@ -10,6 +10,9 @@ +
+ +

Then click

@@ -106,12 +109,18 @@ exports = { name : "en_GB", currencySym:"£", const lang = languageSelector.options[languageSelector.selectedIndex].value; console.log(`Language ${lang}`); + const translations = document.getElementById('translations').checked; + console.log(`Translations: ${translations}`); + const locale = locales[lang]; if (!locale) { alert(`Language ${lang} not found!`); return; } + if (!translations) + locale.trans = null; + const codePageName = "ISO8859-1"; if (locale.codePage) codePageName = locale.codePage; From 58a9b19aa1e6ea3e7f5c49ef4427c07697669d42 Mon Sep 17 00:00:00 2001 From: Diego Pereyra Date: Sat, 15 Jan 2022 16:23:48 -0300 Subject: [PATCH 02/13] typo --- apps/locale/locale.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/locale/locale.html b/apps/locale/locale.html index fa857d9f8..d02dab3ac 100644 --- a/apps/locale/locale.html +++ b/apps/locale/locale.html @@ -11,7 +11,7 @@
- +

Then click

From 322bb60eef55c4a1f7c7b8e5cd16d54b8364a8c9 Mon Sep 17 00:00:00 2001 From: Andreas Rozek Date: Fri, 11 Feb 2022 09:23:14 +0100 Subject: [PATCH 03/13] Update Customizer.html --- apps/ac_ac/Customizer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ac_ac/Customizer.html b/apps/ac_ac/Customizer.html index f2aa79920..ae40be939 100644 --- a/apps/ac_ac/Customizer.html +++ b/apps/ac_ac/Customizer.html @@ -321,7 +321,7 @@ function chosenClockHands () { switch (ClockHands) { - case 'simple': return "require('https://raw.githubusercontent.com/rozek/banglejs-2-simpled-clock-hands/main/ClockHands.js')" + case 'simple': return "require('https://raw.githubusercontent.com/rozek/banglejs-2-simple-clock-hands/main/ClockHands.js')" case 'rounded': return "require('https://raw.githubusercontent.com/rozek/banglejs-2-rounded-clock-hands/main/ClockHands.js')" case 'hollow': return "require('https://raw.githubusercontent.com/rozek/banglejs-2-hollow-clock-hands/main/ClockHands.js')" case 'custom': return "require('" + ClockHandsURL + "')" From 77040fdc83da927075d2f54040afb9be5f549d41 Mon Sep 17 00:00:00 2001 From: Andreas Rozek Date: Fri, 11 Feb 2022 09:26:38 +0100 Subject: [PATCH 04/13] Update metadata.json --- apps/ac_ac/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ac_ac/metadata.json b/apps/ac_ac/metadata.json index a4f3de0ac..4dbe93834 100644 --- a/apps/ac_ac/metadata.json +++ b/apps/ac_ac/metadata.json @@ -1,7 +1,7 @@ { "id": "ac_ac", "name": "A Configurable Analog Clock", "shortName":"Configurable Clock", - "version":"0.03", + "version":"1.00", "description": "AC-AC, a highly customizable analog clock with several clock faces, hands and complications to choose from", "icon": "app-icon.png", "type": "clock", From 02feba3f45e1ec2ddcb4d02ca40900a4d966c7ad Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 11 Feb 2022 11:32:53 +0000 Subject: [PATCH 05/13] quick tweak - fix HID joystick selection --- apps/setting/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/setting/settings.js b/apps/setting/settings.js index 65e076753..9bd63491f 100644 --- a/apps/setting/settings.js +++ b/apps/setting/settings.js @@ -188,7 +188,7 @@ function showBLEMenu() { }, /*LANG*/'HID': { value: Math.max(0,0 | hidV.indexOf(settings.HID)), - min: 0, max: 3, + min: 0, max: hidN.length-1, format: v => hidN[v], onchange: v => { settings.HID = hidV[v]; From 868213bb0d845ce65e4fba4f21046e9a96b58440 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 11 Feb 2022 11:33:07 +0000 Subject: [PATCH 06/13] disable languages we know don't work --- lang/index.json | 6 +++--- loader.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lang/index.json b/lang/index.json index f2750cd72..2a9ecfd42 100644 --- a/lang/index.json +++ b/lang/index.json @@ -10,11 +10,11 @@ {"code":"nl_NL","name":"Dutch","url":"nl_NL.json"}, {"code":"sv_SE","name":"Swedish","url":"sv_SE.json"}, {"code":"tr_TR","name":"Turkish","url":"tr_TR.json"}, - {"code":"ru_RU","name":"Russian","url":"ru_RU.json"}, + {"code":"ru_RU","name":"Russian","url":"ru_RU.json", "disabled":"Characters not in ISO Latin codepage"}, {"code":"pt_PT","name":"Portuguese","url":"pt_PT.json"}, - {"code":"bg_BG","name":"Bulgarian","url":"bg_BG.json"}, + {"code":"bg_BG","name":"Bulgarian","url":"bg_BG.json", "disabled":"Characters not in ISO Latin codepage"}, {"code":"da_DA","name":"Danish","url":"da_DA.json"}, - {"code":"el_EL","name":"Greek","url":"el_EL.json"}, + {"code":"el_EL","name":"Greek","url":"el_EL.json", "disabled":"Characters not in ISO Latin codepage"}, {"code":"et_ET","name":"Estonian","url":"et_ET.json"}, {"code":"lt_LT","name":"Lithuanian","url":"lt_LT.json"}, {"code":"lv_LV","name":"Latvian","url":"lv_LV.json"}, diff --git a/loader.js b/loader.js index c6840cbb0..6b27736ae 100644 --- a/loader.js +++ b/loader.js @@ -179,6 +179,7 @@ window.addEventListener('load', (event) => { } catch(e) { console.error("lang/index.json Corrupted", e); } + languages = languages.filter( l=> l.disabled===undefined ); function reloadLanguage() { LANGUAGE = undefined; From 55430085f2ffb4ff14a840b630a804d76e379aed Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 11 Feb 2022 11:40:44 +0000 Subject: [PATCH 07/13] update locale docs --- apps/locale/locale.html | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/locale/locale.html b/apps/locale/locale.html index d02dab3ac..b23225d5f 100644 --- a/apps/locale/locale.html +++ b/apps/locale/locale.html @@ -11,7 +11,7 @@
- +

Then click

diff --git a/index.html b/index.html index 64bf1d44c..6c9a21bf8 100644 --- a/index.html +++ b/index.html @@ -144,7 +144,7 @@
  Translations (BETA - more info) +   Translations (BETA - more info). Any apps that are uploaded to Bangle.js after changing this will have any text automatically translated.
From 615519350af09ac81c817c14c9aa320a44525267 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 11 Feb 2022 11:58:34 +0000 Subject: [PATCH 08/13] route 0.03: Color/positioning change to allow it to work with Bangle.js 1 (although not pretty) --- apps/route/ChangeLog | 1 + apps/route/custom.html | 243 ++++++++++++++++++++------------------- apps/route/metadata.json | 4 +- 3 files changed, 127 insertions(+), 121 deletions(-) diff --git a/apps/route/ChangeLog b/apps/route/ChangeLog index 02779b6ea..f8c97a57b 100644 --- a/apps/route/ChangeLog +++ b/apps/route/ChangeLog @@ -1,2 +1,3 @@ 0.01: New App! 0.02: Change color from red->yellow to ease readability (fix #710) +0.03: Color/positioning change to allow it to work with Bangle.js 1 (although not pretty) diff --git a/apps/route/custom.html b/apps/route/custom.html index b958303d8..bdabb471c 100644 --- a/apps/route/custom.html +++ b/apps/route/custom.html @@ -104,141 +104,146 @@ document.getElementById('fileLoader').addEventListener('change', handleFileSelec document.getElementById("upload").addEventListener("click", function() { var app = `${js} -var gcoords = new Uint8Array(coords.length); -var coordDistance = new Uint16Array(coords.length/2); + var gcoords = new Uint8Array(coords.length); + var coordDistance = new Uint16Array(coords.length/2); + var colHL = g.theme.dark ? "#FF0" : "#00F"; + var W = g.getWidth(), H = g.getHeight(); -var PT_DISTANCE = 30; // distance to a point before we consider it complete + var PT_DISTANCE = 30; // distance to a point before we consider it complete -function toScr(p) { - return { - x : 10 + (p.x-min.x)*100/(max.x-min.x), - y : 230 - (p.y-min.y)*100/(max.y-min.y) - }; -} - -var last; -var totalDistance = 0; -for (var i=0;i Date: Fri, 11 Feb 2022 13:16:59 +0100 Subject: [PATCH 09/13] Update boot.js Fixes Uncaught Error: Expecting a string, got undefined see https://github.com/espruino/BangleApps/issues/1423 --- apps/sleeplog/boot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/sleeplog/boot.js b/apps/sleeplog/boot.js index 7ec71742c..883e497a5 100644 --- a/apps/sleeplog/boot.js +++ b/apps/sleeplog/boot.js @@ -90,7 +90,10 @@ if (global.sleeplog.enabled) { var storage = require("Storage"); // read previous logfile - var log = JSON.parse(atob(storage.read(this.logfile))); + var logContent = storage.read(this.logfile) || ""; + + // parse previous logfile + var log = JSON.parse(logContent.length > 0 ? atob(logContent) : "[]") ; // remove last state if it was unknown and is less then 10min ago if (log.length > 0 && log[0][1] === 0 && From ee104a2e8a1f29160df90fe46f285572c55913e3 Mon Sep 17 00:00:00 2001 From: Marco H Date: Fri, 11 Feb 2022 13:45:01 +0100 Subject: [PATCH 10/13] Update ChangeLog --- apps/sleeplog/ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sleeplog/ChangeLog b/apps/sleeplog/ChangeLog index 5560f00bc..7dee1a116 100644 --- a/apps/sleeplog/ChangeLog +++ b/apps/sleeplog/ChangeLog @@ -1 +1,2 @@ 0.01: New App! +0.02: Fix crash on start From 47d7aced6513ec197a8a58c7b8ca74b9dededaa8 Mon Sep 17 00:00:00 2001 From: Marco H Date: Fri, 11 Feb 2022 13:45:10 +0100 Subject: [PATCH 11/13] Update metadata.json --- apps/sleeplog/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sleeplog/metadata.json b/apps/sleeplog/metadata.json index 4a67af301..f4590f7c0 100644 --- a/apps/sleeplog/metadata.json +++ b/apps/sleeplog/metadata.json @@ -2,7 +2,7 @@ "id":"sleeplog", "name":"Sleep Log", "shortName": "SleepLog", - "version": "0.01", + "version": "0.02", "description": "Log and view your sleeping habits. This app derived from SleepPhaseAlarm and uses also the principe of Estimation of Stationary Sleep-segments (ESS).", "icon": "app.png", "type": "app", From 05c8dc9b7857640353564df25a8eadf45dd60be3 Mon Sep 17 00:00:00 2001 From: Andreas Rozek Date: Fri, 11 Feb 2022 13:51:04 +0100 Subject: [PATCH 12/13] Create ChangeLog.txt --- apps/ac_ac/ChangeLog.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 apps/ac_ac/ChangeLog.txt diff --git a/apps/ac_ac/ChangeLog.txt b/apps/ac_ac/ChangeLog.txt new file mode 100644 index 000000000..307e4165d --- /dev/null +++ b/apps/ac_ac/ChangeLog.txt @@ -0,0 +1,2 @@ +0.01: initial release +1.00: first official release (also fixes bug in Customizer) \ No newline at end of file From 2e2681853875e30190dd06c96a1384bd47726d63 Mon Sep 17 00:00:00 2001 From: Marco H Date: Fri, 11 Feb 2022 13:59:18 +0100 Subject: [PATCH 13/13] Update custom.html Fix typo --- apps/route/custom.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/route/custom.html b/apps/route/custom.html index bdabb471c..fd3148e2b 100644 --- a/apps/route/custom.html +++ b/apps/route/custom.html @@ -17,7 +17,7 @@
  • Go to https://umap.openstreetmap.fr/en/
  • Create a map
  • Draw a polyline (right hand side)
  • -
  • Embed and share (leb>ft hand side)
  • +
  • Embed and share (left hand side)
  • Download data as KML