MX
189c87cb08
Merge remote-tracking branch 'OFW/dev' into dev
2024-12-24 14:04:07 +03:00
dependabot[bot]
5fb9558dbb
Bump cross-spawn in /applications/system/js_app/packages/create-fz-app ( #4043 )
...
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn ) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md )
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6 )
---
updated-dependencies:
- dependency-name: cross-spawn
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com >
2024-12-24 11:24:01 +09:00
MX
9c5341edb1
Merge remote-tracking branch 'OFW/dev' into dev
2024-12-23 15:56:12 +03:00
Anna Antonenko
631d7a40dd
[FL-3940] Work around incorrect serial port handling by the OS ( #4040 )
...
* fix: js sdk flipper detection
* chore: bump ver
Co-authored-by: あく <alleteam@gmail.com >
2024-12-23 10:34:05 +09:00
Anna Antonenko
51aafd1b5e
fix: bump fz-sdk to 0.1.2 ( #3989 )
2024-11-05 20:58:19 +09:00
WillyJL
b86b9b87b8
JS: Add die() typedoc ( #3985 )
...
* JS: Add die() to typedocs
* JS: Never type for die()
---------
Co-authored-by: Anna Antonenko <portasynthinca3@gmail.com >
2024-11-05 14:41:03 +03:00
Anna Antonenko
c741727b96
I am own the JS ( #3982 )
...
* fix: js app template
* i am own the js
* farewell
2024-11-05 19:53:24 +09:00
MX
462ab255a1
upd examples
2024-11-05 09:52:24 +03:00
MX
79caf7bf72
Add js sdk changes
...
With type declarations and various missing parts added by Willy-JL
2024-11-05 09:49:46 +03:00
WillyJL
69aa4cd254
JS: Fix merge of 3963 and 3961 ( #3980 )
...
* toString() was moved, not duplicated
* These had gotten lost
* This is now implemented
* Add missing version doctags
2024-11-01 13:52:54 +09:00
MX
91af1cdd46
restore require func
2024-11-01 06:00:46 +03:00
MX
7ce036fd9b
missing parts [ci skip]
2024-11-01 05:42:49 +03:00
MX
3c6a621da2
merge fix [ci skip]
...
with some parts from PR by Willy-JL
https://github.com/flipperdevices/flipperzero-firmware/pull/3980/files
2024-11-01 05:30:33 +03:00
MX
04c8093672
Merge remote-tracking branch 'OFW/dev' into dev
2024-10-31 21:17:01 +03:00
Anna Antonenko
f4887ed31c
fix: npm deps ( #3978 )
2024-10-31 19:52:32 +04:00
WillyJL
c807ffc324
JS: Backport³ and more additions & fixes ( #3961 )
...
* JS: Fix file select for fbt launch js_app
* JS: badusb: Add numpad keys
Co-authored-by: oldip <oldip@users.noreply.github.com >
* JS: badusb: Layout support
* JS: badusb: altPrint() and altPrintln()
Co-authored-by: oldip <oldip@users.noreply.github.com >
* JS: badusb: quit()
* JS: serial: readAny()
* JS: serial: end()
* JS: serial: Auto disable expansion service
* JS: storage: Add example script
* JS: gui: text_input: Fix NULL ptr when no prop given
* JS: gui: text_input: Default text props
Co-authored-by: xMasterX <xMasterX@users.noreply.github.com >
* JS: gui: byte_input
Co-authored-by: xMasterX <xMasterX@users.noreply.github.com >
* JS: gui: file_picker
* JS: gui: viewDispatcher.currentView
* JS: gui: view.hasProperty()
* JS: gui: Add some missing typedefs comments
* JS: globals: Fix toString() with negative numbers
* JS: globals: parseInt()
Co-authored-by: Spooks4576 <Spooks4576@users.noreply.github.com >
* JS: globals: toUpperCase() and toLowerCase()
Co-authored-by: Spooks4576 <Spooks4576@users.noreply.github.com >
* JS: globals: Add some missing typedefs
* JS: Add example for string functions
Co-authored-by: Spooks4576 <Spooks4576@users.noreply.github.com >
* JS: globals: __dirpath and __filepath
Co-authored-by: jamisonderek <jamisonderek@users.noreply.github.com >
* JS: globals: load() typedef missing scope param
* JS: Add interactive REPL script example
* JS: Add missing icon for file picker
* JS: Rename to __filename and __dirname
* JS: Move toUpperCase() and toLowerCase() to string class
* JS: parseInt() refactor
* JS: Typedef base param for parseInt()
* Revert "JS: gui: view.hasProperty()"
This reverts commit 1967ec06d4f2e9cafc4e18384ad370f7a7c44468.
* JS: Move toString() to Number class
* JS: Fix duplicate plugin files
in plugins, `requires` is used to determine which app to distribute the .fal under `apps_data/appid/plugins`
* JS: math: Missing typedefs, use camelCase
* JS: badusb: layoutPath is optional in typedef
* Fix ASS scoping
* Rename mjs term prop type value
* Change load() description
* Enlarge buffers in default prop assign
* More checks for default data/text size
* Make PVS happy
* Fix icon symbol
* Update types for JS SDK
* toString() was moved to number class
Co-authored-by: oldip <oldip@users.noreply.github.com >
Co-authored-by: xMasterX <xMasterX@users.noreply.github.com >
Co-authored-by: Spooks4576 <Spooks4576@users.noreply.github.com >
Co-authored-by: jamisonderek <jamisonderek@users.noreply.github.com >
Co-authored-by: hedger <hedger@users.noreply.github.com >
Co-authored-by: あく <alleteam@gmail.com >
2024-10-31 14:22:05 +09:00
Anna Antonenko
72272b3b34
[FL-3922] Fix JS memory corruption ( #3971 )
...
Co-authored-by: あく <alleteam@gmail.com >
2024-10-31 13:15:52 +09:00
Anna Antonenko
85e5642b2a
[FL-3918] Full-fledged JS SDK + npm packages ( #3963 )
...
* feat: js sdk
* refactor: move js back where it belongs
* docs: generate docs using typedoc
* feat: sdk versioning scheme
* ci: silence pvs warning
* docs: bring back old incomplete js docs
* style: readAnalog naming
* fix: rename script compatibility screens
Co-authored-by: あく <alleteam@gmail.com >
2024-10-31 11:42:57 +09:00
Skorpionm
6d823835df
FurEventLoop: add support for FuriEventFlag, simplify API ( #3958 )
...
* Core: event_flag, removing duplicate code
* event_loop: add support furi_event_flags
* Examples: add missing free in event loop examples
* Furi: fix event flag
* Sync api symbols
* Unit_test: evet_loop_event_flags
* Fix multiple waiting list elements handling
* Unit_test: add event_loop_event_flag test
* FURI: event_loop add restrictions
* Fix multiple waiting lists items for good
* Improve FuriEventLoop unit tests
* Abolish callback return value
* Remove return value from callback signature
* Use bool level value instead of int32_t
* Add unit tests for FuriStreamBuffer
* Add unit tests for FuriSemaphore
* Speed up test execution
* Improve docs
* Add a stub for furi os-level primitives
* Add more checks for edge cases
* Allow event loop notification from ISR
* Bump api version
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com >
Co-authored-by: Georgii Surkov <37121527+gsurkov@users.noreply.github.com >
2024-10-31 10:58:16 +09:00
MX
e87356af72
Merge remote-tracking branch 'OFW/portasynthinca3/3922-gpio-crash' into dev [ci skip]
2024-10-28 23:20:13 +03:00
MX
e630f44afd
merge p2
2024-10-28 22:22:21 +03:00
MX
6b6d98da2a
merge js changes
...
changes by Willy-JL
spi module by jamisonderek
2024-10-28 22:21:42 +03:00
Anna Antonenko
d0214c7b27
fix: incorrect usage of mjs_own
2024-10-23 20:07:03 +03:00
MX
48acd9f075
merge examples
2024-10-20 16:01:21 +03:00
MX
8c960a990c
merge js upds
...
by jamisonderek & Willy-JL
2024-10-20 16:00:10 +03:00
MX
0b7f174162
fix icon
2024-10-19 12:33:57 +03:00
MX
fe3228b63e
merge p2
2024-10-18 20:22:21 +03:00
MX
bc73b13b1b
merge js stuff
...
https://github.com/Next-Flip/Momentum-Firmware/commits/js-backport-of-backport/
2024-10-18 20:21:09 +03:00
MX
e2d0a86d3e
merge js stuff
...
by Willy-JL
2024-10-17 17:06:51 +03:00
MX
521b793011
merge js 2
2024-10-16 18:09:02 +03:00
MX
38fb892cbb
merge js upds 1
2024-10-16 18:07:58 +03:00
MX
cd46d8ca07
more js stuff
...
https://github.com/Next-Flip/Momentum-Firmware/commits/js-backport-of-backport/
2024-10-16 15:09:51 +03:00
MX
f37799e0f4
merge examples fixes [ci skip]
...
by Willy-JL
p2
2024-10-16 14:50:05 +03:00
MX
63d1890156
merge missing js backports of backports by Willy-JL
...
p1
2024-10-16 12:03:31 +03:00
MX
a1993a528d
badusb js paritally fix
2024-10-16 01:11:34 +03:00
MX
ac3c6dc4f9
move examples
2024-10-16 01:07:03 +03:00
MX
7de26fb99b
Merge remote-tracking branch 'OFW/dev' into dev
2024-10-16 01:06:19 +03:00
MX
004d8382d3
implement byte input, add missing args in text input
...
TODO: add missing filebrowser dialog
2024-10-16 00:57:44 +03:00
Astra
a34e09094b
[FL-3914] BackUSB ( #3951 )
...
* Revert "[FL-3896] Split BadUSB into BadUSB and BadBLE (#3931 )"
This reverts commit 0eaad8bf64 .
* Better USB-BLE switch UX
* Format sources
* Format images
Co-authored-by: あく <alleteam@gmail.com >
2024-10-15 18:11:41 +01:00
porta
a6cf08523c
Small JS fixes ( #3950 )
2024-10-15 18:03:15 +01:00
MX
8233534d6a
merge p3
2024-10-15 03:27:04 +03:00
MX
edc58c5a0e
merge p2
2024-10-15 03:16:21 +03:00
porta
8a95cb8d6b
[FL-3893] JS modules ( #3841 )
...
* feat: backport js_gpio from unleashed
* feat: backport js_keyboard, TextInputModel::minimum_length from unleashed
* fix: api version inconsistency
* style: js_gpio
* build: fix submodule ._ .
* refactor: js_gpio
* docs: type declarations for gpio
* feat: gpio interrupts
* fix: js_gpio freeing, resetting and minor stylistic changes
* style: js_gpio
* style: mlib array, fixme's
* feat: js_gpio adc
* feat: js_event_loop
* docs: js_event_loop
* feat: js_event_loop subscription cancellation
* feat: js_event_loop + js_gpio integration
* fix: js_event_loop memory leak
* feat: stop event loop on back button
* test: js: basic, math, event_loop
* feat: js_event_loop queue
* feat: js linkage to previously loaded plugins
* build: fix ci errors
* feat: js module ordered teardown
* feat: js_gui_defer_free
* feat: basic hourglass view
* style: JS ASS (Argument Schema for Scripts)
* fix: js_event_loop mem leaks and lifetime problems
* fix: crashing test and pvs false positives
* feat: mjs custom obj destructors, gui submenu view
* refactor: yank js_gui_defer_free (yuck)
* refactor: maybe_unsubscribe
* empty_screen, docs, typing fix-ups
* docs: navigation event & demo
* feat: submenu setHeader
* feat: text_input
* feat: text_box
* docs: text_box availability
* ci: silence irrelevant pvs low priority warning
* style: use furistring
* style: _get_at -> _safe_get
* fix: built-in module name assignment
* feat: js_dialog; refactor, optimize: js_gui
* docs: js_gui
* ci: silence pvs warning: Memory allocation is infallible
* style: fix storage spelling
* feat: foreign pointer signature checks
* feat: js_storage
* docs: js_storage
* fix: my unit test was breaking other tests ;_;
* ci: fix ci?
* Make doxygen happy
* docs: flipper, math, notification, global
* style: review suggestions
* style: review fixups
* fix: badusb demo script
* docs: badusb
* ci: add nofl
* ci: make linter happy
* Bump api version
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-10-14 19:42:11 +01:00
MX
e3f393e505
Merge remote-tracking branch 'OFW/dev' into dev
2024-10-14 18:00:10 +03:00
SUMUKH
d9d3867ce1
Fixes Mouse Clicker Should have a "0" value setting for "as fast as possible" #3876 ( #3894 )
...
* fixes mouse clicking rate
* Hid: limit max clicks to 100/s, rewrite code to make it more robust
Co-authored-by: あく <alleteam@gmail.com >
2024-10-14 15:33:51 +01:00
MX
3ee8e3b18b
Merge remote-tracking branch 'noproto/nestednonces' into dev
2024-10-09 10:49:54 +03:00
Silent
5b36c5465d
FuriThread: Improve state callbacks ( #3881 )
...
State callbacks assumed they were invoked from the thread that changed
its state, but this wasn't true for FuriThreadStateStarting in the past,
and now it's not true for FuriThreadStateStopped either.
Now it is safe to release the thread memory form the state callback
once it switches to FuriThreadStateStopped. Therefore, pending deletion
calls can be removed.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-10-08 20:50:31 +01:00
Astra
0eaad8bf64
[FL-3896] Split BadUSB into BadUSB and BadBLE ( #3931 )
...
* Remove BLE from BadUSB
* Add the BadBLE app
* Format images to 1-bit B/W
* BadUsb: remove dead bits and pieces
Co-authored-by: あく <alleteam@gmail.com >
2024-10-06 20:21:31 +01:00
MX
94492eaa5e
Merge remote-tracking branch 'OFW/astra/3896-bad-usble' into dev
2024-10-05 06:05:33 +03:00
Astra
0aefb1c0f2
Format images to 1-bit B/W
2024-10-04 22:12:32 +09:00