Commit Graph

107 Commits (e7392aca3d4370ef980dd0ceb1315ed02426e412)

Author SHA1 Message Date
thyttan 50604037c1
Merge pull request #3565 from bobrippling/feat/pace-app
New app: pace
2024-10-18 13:24:51 +02:00
Rob Pilling 566042bdac typescript: generate types (boolean -> ShortBoolean)
also patch btadv
2024-10-15 08:23:26 +01:00
Rob Pilling 3ef013d002 exstats.d.ts: permit optional notify input, but non-optional on `ex.state.notify` 2024-10-15 08:23:26 +01:00
Rob Pilling 23a53f0284 utility.d.ts: add 2024-10-15 08:23:26 +01:00
Rob Pilling b2e788683a main.d.ts: fix `[].reduce` types 2024-10-15 08:23:26 +01:00
Rob Pilling 6f4a3b8c78 typescript: sched.d.ts: distinguish between Timer & Sched 2024-10-03 22:10:53 +01:00
Rob Pilling 2517f80754 typescript: update sched.d.ts 2024-10-03 22:09:35 +01:00
Rob Pilling 8d34e408e7 typescript: add time_utils 2024-09-22 22:14:35 +01:00
Rob Pilling 4b08b4b24c typescript: add exstats 2024-09-22 21:56:48 +01:00
Rob Pilling 36a50d1cee Layout: fix differing numeric types
With a slight hack
2024-09-09 21:43:57 +01:00
Rob Pilling e14d1f63d0 typescript: update types 2024-07-11 22:41:31 +01:00
Rob Pilling 650ceeac21 main.d.ts: make startsWith() 2nd arg optional 2024-07-11 21:21:34 +01:00
Rob Pilling bf3b572b9e power_usage: add module 2024-07-09 08:53:09 +01:00
Rob Pilling 1d2ec94f8d settings: add BLE privacy option 2024-06-16 17:35:15 +01:00
Rob Pilling 34f78f6457 Update TS types 2024-06-16 17:17:26 +01:00
Rob Pilling 5ed250fb97 update main.d.ts 2024-04-26 22:55:07 +01:00
Rob Pilling 513c07d6fd update main.d.ts 2024-04-26 22:55:07 +01:00
Rob Pilling 690799decc clock_info.d.ts: improve `img` type 2024-04-20 18:18:52 +01:00
Rob Pilling 2bbef9f740 clkinfo: make `CLKINFO_FOCUS` a counter
This avoids issues when we have multiple clkinfos visible. The first clkinfo may want to focus itself, but a second clkinfo may then unfocus, deleting the first's effects (i.e. setting `CLKINFO_FOCUS`).

In detail:

`CLKINFO_FOCUS` will be set (to `true`) by the first handler (left hand clkinfo) and then unset (/ `delete`d) by the second handler (right hand clkinfo).

This is done in [the `touchHandler`](c2ea454a3b/apps/clock_info/lib.js (L313-L324)).

This commit makes `CLKINFO_FOCUS` a count.

- When we have a tap on a previous clkinfo (previous as in, earlier in the event handler list), it'll focus itself, `CLKINFO_FOCUS++`
- The later handler comes along, unfocuses itself, `CLKINFO_FOCUS--`
- `CLKINFO_FOCUS` is now `1`, so clkinfo is registered as being focussed still, meaning quicklaunch will work because of:

> c2ea454a3b/apps/quicklaunch/boot.js (L36-L36)

Fixes #3355
2024-04-18 18:12:58 +01:00
Rob Pilling 7e38b9b677 Update typescript types 2024-03-25 20:52:34 +00:00
Anton 315d4b79d9 Add better deprecation descriptions 2024-03-21 11:29:02 +01:00
Anton 5684832970
Merge branch 'master' into deprecate-currency 2024-03-20 10:40:44 +01:00
Anton 436ead41b3 Mark currency info as deprecated in TS 2024-03-20 10:25:33 +01:00
Rob Pilling 10072d745e
Merge pull request #3252 from bobrippling/fix/layout-ts
Fix typescript for `Layout`
2024-03-20 08:34:37 +00:00
Rob Pilling 030765d409 layout.d.ts: permit assignment back to strings
... by making them strings instead of a string literal type
2024-03-16 13:08:09 +00:00
Rob Pilling b04bc434c9 layout.d.ts: correctly assign { [id]: T } for layout elements 2024-03-16 13:08:07 +00:00
Rob Pilling 6ff12f54cf layout.d.ts: Layout type - merge extracted ids union 2024-03-11 22:46:35 +00:00
Rob Pilling 19a041e410 layout.d.ts: Fix ExtractIds 2024-03-11 22:41:55 +00:00
Rob Pilling 736b9f0433 clock_info: permit focus/blur to cancel a redraw 2024-03-11 21:47:54 +00:00
Rob Pilling 2c92c94574 clock_info: s/unfocus/blur/ 2024-03-11 08:53:51 +00:00
Rob Pilling 8f86d9297b clock_info: add focus and unfocus to item 2024-03-11 08:53:42 +00:00
Rob Pilling 30d1bc7c4c clock_info: pass options through to show(), hide() & run() 2024-03-11 08:53:23 +00:00
Rob Pilling 40b718ed49 sched: add setting to buzz forever when alarm is fired 2024-02-28 22:35:58 +00:00
Rob Pilling 73218e4180 Regenerate typescript 2023-07-27 17:32:12 +01:00
Rob Pilling 76a60d6ae3 layout.d.ts: correct render() type 2023-06-30 12:23:22 +01:00
Rob Pilling 8036509b18 layout.d.ts: add btnBorder 2023-06-30 08:26:44 +01:00
Rob Pilling 553d363f90 layout.d.ts: alignment fixes 2023-06-30 08:26:44 +01:00
Rob Pilling 739ddb731f layout.d.ts: Layout's fill can be any proportion 2023-06-30 08:26:44 +01:00
Rob Pilling efd1891ff5 layout.d.ts: render(), layout(), debug() and clear() accept any layout hierarchy 2023-06-30 08:26:44 +01:00
Rob Pilling 9c72a8210d layout.d.ts: add rotation / l.r 2023-06-30 08:26:44 +01:00
Rob Pilling 557b426b63 typescript: remove `Layout_` naming hack 2023-06-30 08:26:44 +01:00
Rob Pilling a42e00dc20 Regenerate main.d.ts 2023-06-13 23:08:35 +01:00
Rob Pilling 5fcdbc2911 types: add BangleEvents 2023-05-16 23:16:34 +01:00
Rob Pilling 557f77f7c8 Regenerate types 2023-05-16 22:50:33 +01:00
Bruce Blore 06a7adca30 Made tags, type, and version optional 2023-05-13 14:28:10 -07:00
Bruce Blore 50789ad62c Added some fields to AppInfo 2023-05-13 08:08:01 -07:00
Rob Pilling 566400b26c Tweaks to sched.d.ts to type-check the docs example
[The docs example](https://github.com/espruino/BangleApps/tree/master/apps/sched#internals--library)
2023-05-10 20:54:38 +01:00
Rob Pilling 28fe46f77e widhid: disable if clkinfo is focused 2023-05-08 22:33:50 +01:00
Rob Pilling 69bfcfeb99 widhid: regenerate JS 2023-05-08 22:33:50 +01:00
Rob Pilling 9cdf97164c widhid: new widget 2023-05-08 22:33:50 +01:00