Gordon Williams
2fd2caaacc
use eslint to fix indentation of app loader js
2020-05-27 16:51:14 +01:00
Simon Weis
7f83f2afd4
Require correct module in apploader.js and fix typo in appinfo.js
2020-05-26 22:42:13 +02:00
Gordon Williams
6b09377414
Added workarounds for Apple's iOS browser
2020-05-23 13:28:06 +01:00
Gordon Williams
36009ed212
tweaks to allow `appinfo` to work under node.js
2020-05-14 11:42:10 +01:00
Gordon Williams
20ddb0cb44
drop chunk size again - too tight
2020-05-07 10:19:57 +01:00
Gordon Williams
0541a66640
* Included image and compression tools in repo
...
* Added better upload of large files (incl. compression)
2020-05-07 10:04:24 +01:00
Gordon Williams
f1f1f11158
Added image background clock
2020-05-06 11:03:04 +01:00
Gordon Williams
8c9233d27f
Fix firmwaremaker.js regression under Node.js
2020-05-04 14:07:17 +01:00
Gordon Williams
0c08e16151
* Added code to handle Settings
...
* Added espruinotools.js for pretokenisation
2020-04-29 09:20:18 +01:00
Gordon Williams
c38f58fc9c
disable minify, keep pretokenise
2020-04-28 15:05:21 +01:00
Gordon Williams
44054aaf9e
update after fixing some pretokeniser issues
2020-04-27 17:00:54 +01:00
Gordon Williams
727d7a1452
Online minification test
2020-04-27 16:12:13 +01:00
Richard de Boer
c7f2a18caa
Remove "settings" from appid.info
2020-04-17 21:08:07 +02:00
Richard de Boer
9f0adf1900
Data files: remove settings magic, some more sanitychecks
2020-04-16 20:42:23 +02:00
Richard de Boer
9e0fd91339
Data files: save all data files as a single string
...
Separate regular and storage files by a semicolon
2020-04-16 14:30:37 +02:00
Richard de Boer
217d198154
Add a "data" section to apps.json, with data files to clean on uninstall
...
These are added to `appid.info` as "dataFiles" or "storageFiles", and
can contain wildcards.
2020-04-16 14:30:37 +02:00
Richard de Boer
39621bfae0
Settings: Add support for app/widget settings
...
Apps and widgets can add a `<appid>.settings.js` file which can be
opened from the "App/widget settings" submenu.
This file should define a single function to configure the app/widget.
The function is passed a `back` argument, which can be used to return to
the settings menu by calling `back()`.
Example `<appid>.settings.js`:
```
function settings(back) {
const mySettingsMenu = {
'': { 'title': 'My Widget' },
'< Back': back, // go back to settings menu
'Sound': {
value: false,
format: s => s ? 'on' : 'off',
onchange: s => {if(s) Bangle.beep()} // TODO: save new value
},
};
E.showMenu(mySettingsMenu)
}
```
2020-04-03 01:46:43 +02:00
Gordon Williams
04f8cbcd13
write code in chunks, in case it is too big to fit in RAM ( fix #157 )
2020-03-31 13:37:03 +01:00
Gordon Williams
b40c9031e1
refactor - move JS into its own directory
2020-03-31 13:18:31 +01:00