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 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 + "')" 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", diff --git a/apps/locale/locale.html b/apps/locale/locale.html index 90a2e8d40..b23225d5f 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; 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..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
  • @@ -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 hidN[v], onchange: v => { settings.HID = hidV[v]; 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 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 && 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", 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.
    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;