Rob Pilling
af81cbad04
layout: `render()` is called on the layout object
2025-06-04 21:17:16 +01:00
Rob Pilling
46795ed074
Merge pull request #3831 from bobrippling/feat/tally-app
...
New app/clkinfo: tally
2025-04-30 22:33:31 +01:00
Rob Pilling
45241325bc
typescript: update from espruino
...
as opposed to manual
2025-04-30 08:44:10 +01:00
Rob Pilling
260dff75f7
typescript: update
2025-04-28 21:37:06 +01:00
Rob Pilling
d8f65fec7b
typings: textinput
2025-04-25 23:16:21 +01:00
Rob Pilling
0d18a1fd76
promenu: fix settings being overwritten by alarm/settings apps
2025-03-25 18:02:00 +00:00
Gordon Williams
0c0498886c
handle 'defaultconfig' app type for default configurations
2025-02-04 12:23:03 +00:00
Rob Pilling
ab3944efda
Generate typescript
2024-12-03 18:15:09 +00:00
Rob Pilling
0cb0b0e467
typescript: support `scroller` on `MenuInstance`
2024-11-06 21:15:30 +00:00
Rob Pilling
3e67088354
typescript: add build script to post-process
2024-10-30 20:38:32 +00:00
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
1f9acd2704
typescript: update 4.9.4 -> 5.4.5
2024-04-25 12:57:26 +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