Add files via upload

pull/3236/head
naden 2024-02-23 16:53:24 +01:00 committed by GitHub
parent baa9516f5e
commit 39e524f6f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 458 additions and 0 deletions

View File

@ -0,0 +1,7 @@
require("locale").name
Go to: https://banglejs.com/apps/
Search for app: Languages
Click The arrow Up or burger icon
Choose your language fro the dropdown
click "upload"

View File

@ -0,0 +1 @@
require("heatshrink").decompress(atob("mUvgP/AAM/AYQAB54FE8YFE/GfAof+kYMEhF/AofCh4FD8mBAof5mQyD/nM44kDmc4CQec54SD58zCQfj5n4Egfzn4SC/n85/nEgU/mf5CQUf5hrDx4YBNYXH/mPCQRuBk/+LwPx//JCoJ0B//yv/zAoN//kf/g2BE4JvBAYMD//D/4+B+Ef+BNBFYOA/kDFYX+g8wh6dC+EP4EnCILDDj/AAocHHIIAC+I5BXoZoBTwd/ZYZ5BA4IFCCAOHAonwIARYB/sH3/2hwgBgED+EOIwMggkAwEQgE+g/A/Efg/9/+/+/+DAMfwfwvwYMggA="))

View File

@ -0,0 +1,18 @@
{
"id": "regattatimer",
"name": "Regatta Timer",
"shortName": "Regatta Timer",
"version": "0.1",
"description": "Regatta Timer with classic 5-4-1 Countdown",
"icon": "icon.png",
"screenshots": [{"url":"screenshot.png"}],
"tags": "tool,outdoors,sailing,race,regatta,boat,timer",
"supports": ["BANGLEJS2"],
"readme": "README.md",
"storage": [
{"name":"regattatimer.app.js","url":"app.js"},
{"name":"regattatimer.settings.js","url":"settings.js"},
{"name":"regattatimer.img","url":"app-icon.js","evaluate":true}
],
"data": [{"name": "regattatimer.json"}]
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
{
"dial": "numeric",
"gps": false,
"compass": false,
"language": "en",
"fgColor": "#FFFF00",
"bgColor": "#000000"
}

View File

@ -0,0 +1,46 @@
(function(back) {
var file = "regattatimer.json";
// Load settings
var settings = Object.assign({
"dial": "numeric",
"gps": false,
"compass": false,
"language": "en",
"fgColor": "#FFFF00",
"bgColor": "#000000"
}, require('Storage').readJSON(file, true) || {});
function writeSettings() {
require('Storage').writeJSON(file, settings);
}
// Show the menu
E.showMenu({
"" : { "title" : "Regatta Timer" },
"< Back" : () => back(),
'GPS': {
value: !!settings.gps, // !! converts undefined to false
onchange: v => {
settings.gps = v;
writeSettings();
}
},
'COMPASS': {
value: !!settings.gps, // 0| converts undefined to 0
onchange: v => {
settings.compass = v;
writeSettings();
}
}
"DIAL": {
value: settings.dial,
min: 0,
max: 1,
format: v => ["Numeric", "Disc"][v],
onchange: v => {
settings.dial = v;
writeSettings();
}
}
});
})

View File

@ -0,0 +1,10 @@
{
"de": {
"speed": "FüG",
"speed_unit": "kn"
},
"en": {
"speed": "SOA",
"speed_unit": "kn"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB