Merge branch 'espruino:master' into master

master
Peer David 2022-08-18 22:16:16 +02:00 committed by GitHub
commit d5eb9716da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 19 additions and 16 deletions

View File

@ -63,3 +63,4 @@
0.47: Add new Icons (Nextbike, Mattermost, etc.)
0.48: When getting new message from the clock, only buzz once the messages app is loaded
0.49: Change messages icon (to fit within 24px) and ensure widget renders icons centrally
0.50: Option to disable auto-open of messages

View File

@ -62,12 +62,10 @@ exports.pushMessage = function(event) {
var quiet = (require('Storage').readJSON('setting.json',1)||{}).quiet;
var appSettings = require('Storage').readJSON('messages.settings.json',1)||{};
var unlockWatch = appSettings.unlockWatch;
var quietNoAutOpn = appSettings.quietNoAutOpn;
delete appSettings;
// don't auto-open messages in quiet mode if quietNoAutOpn is true
if(quiet && quietNoAutOpn) {
if((quiet && appSettings.quietNoAutOpn) || appSettings.noAutOpn)
loadMessages = false;
}
delete appSettings;
// after a delay load the app, to ensure we have all the messages
if (exports.messageTimeout) clearTimeout(exports.messageTimeout);
exports.messageTimeout = setTimeout(function() {

View File

@ -1,7 +1,7 @@
{
"id": "messages",
"name": "Messages",
"version": "0.49",
"version": "0.50",
"description": "App to display notifications from iOS and Gadgetbridge/Android",
"icon": "app.png",
"type": "app",

View File

@ -64,6 +64,10 @@
value: !!settings().quietNoAutOpn,
onchange: v => updateSetting("quietNoAutOpn", v)
},
/*LANG*/'Disable auto-open': {
value: !!settings().noAutOpn,
onchange: v => updateSetting("noAutOpn", v)
},
/*LANG*/'Widget messages': {
value:0|settings().maxMessages,
min: 1, max: 5,

View File

@ -1,4 +1,4 @@
#!/usr/bin/nodejs
#!/usr/bin/env nodejs
/* Simple Command-line app loader for Node.js
===============================================

View File

@ -1,4 +1,4 @@
#!/usr/bin/nodejs
#!/usr/bin/env nodejs
/* Quick hack to add proper 'supports' field to apps.json
*/

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# ================================================================
# apps.json used to contain the metadata for every app. Now the
# metadata is stored in each apps's directory - app/yourapp/metadata.js

View File

@ -1,4 +1,4 @@
#!/usr/bin/nodejs
#!/usr/bin/env nodejs
/*
Mashes together a bunch of different apps to make
a single firmware JS file which can be uploaded.

View File

@ -1,4 +1,4 @@
#!/usr/bin/node
#!/usr/bin/env node
/*
Mashes together a bunch of different apps into a big binary blob.
We then store this *inside* the Bangle.js firmware and can use it

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd `dirname $0`/..
nodejs bin/sanitycheck.js || exit 1

View File

@ -1,4 +1,4 @@
#!/usr/bin/node
#!/usr/bin/env node
/* Checks for any obvious problems in apps.json
*/

View File

@ -1,4 +1,4 @@
#!/usr/bin/node
#!/usr/bin/env node
/*
var EMULATOR = "banglejs2";

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd `dirname $0`/..
ls tests/*.js | xargs -I{} bin/runtest.sh {}

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Requires Linux x64 (for ./espruino)
# Also imagemagick for display