1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 08:15:22 +03:00
Commit graph

29 commits

Author SHA1 Message Date
David Anson
183e89419d
Replace all 4 instances of jBox-style modal dialog boxes with HTML dialog element (#4484)
* Replace all 4 instances of jBox-style modal dialog boxes with HTML dialog element

Notes:
- The Power & Battery (2), OSD, and CLI tabs have been updated accordingly
- HTML default control behavior was used whereever possible
- HTML indent for the dialog tag is deliberately off to minimize diff noise in GitHub
- Layout is not 100% identical, but spiratually the same - in most cases no changes were needed
- OSD’s Font Manager dialog didn’t transition cleanly, so includes some slight restyling
- OSD Font Manager previously had a green background/color for the graphic - that “just works” now
- Specific cleanup (i.e., calling destroy()) does not seem necessary and was removed
- Removal of jBox from setup.js and global scope seems not to affect jBox tooltips
- Replacement of single quotes with double in main.js was done automatically by Prettier

* Fix unclickable "Select custom image..." button in OSD tab due to overlapping layout; replace with CSS grid.

* Update OSD's Font Manager dialog to not have scroll bars by default (PR feedback).

* Update OSD's Font Manager dialog to remove overflow-y:scroll in order to avoid even a disabled scroll bar on some platforms/browsers (PR feedback).
2025-06-27 21:29:10 +02:00
Mark Haslinghuis
7614ad3864
Execute prettier (#4291)
* Execute prettier

* Fix some sonar complaints

* Add git blame ignore rev
2025-01-04 22:43:46 +01:00
Richard Benkovsky
1657351598
Add a few unit tests for MspHelper class (#3425)
* Add a few unit tests for MSPHelper

* Simplify encode_message_v1

* Simplify MSP_BOARD_INFO handling
2023-04-19 21:44:05 +02:00
Richard Benkovsky
9d9edf9266
Add a few unit tests for MSP protocol (#3421)
* Add a few unit tests for msp protocol

* fixup! Add a few unit tests for msp protocol
2023-04-16 23:57:34 +02:00
Tomas Chmelevskij
293ca70077
refactor: drop bluebird dependency (#3279) 2023-02-03 15:50:22 +01:00
Tomas Chmelevskij
c086395def
Refactor msp to modules (#3214)
* feat: refactor everything to modules

* fix: a lot of circular deps fixes

* feat: use vitest instead of karma
2023-01-14 22:11:37 +01:00
Tomas Chmelevskij
4582f4d39e
Serial backend modules (#3192) 2023-01-08 17:13:20 +11:00
J Blackman
fd99e77335
RF: Moved Analytics to class (#3222)
* RF: Moved Analytics to class

* Modularisation of Google analytics.

* Removing the code smells

* Fix the unit tests

* Simplified

* Removed comment
2023-01-07 19:56:26 +01:00
Tomas Chmelevskij
483dec9103
Chore/move gui to modules (#3001)
Move `GUI` to esm
2022-12-28 21:08:48 +01:00
haslinghuis
23b74d9998
Bump gulp-debian library (#3155)
Update gulp-debian
2022-12-25 02:31:17 +01:00
Tomas Chmelevskij
5a74094df1 move tabs to use esm modules 2022-07-23 22:08:19 +03:00
Mathias Rasmussen
5974fcec5e Use GitHub Actions for CI 2022-01-09 23:42:54 +01:00
Mathias Rasmussen
d948281354 Add junit test reports 2022-01-04 17:46:30 +01:00
Tomas Chmelevskij
73172bdb04 chore: ESM for localization 2020-11-03 21:49:48 +01:00
Miguel Angel Mulero Martinez
a0f1cadb32 Fix Sonar issues Cli and CliAutoComplete 2020-10-19 11:29:37 +02:00
WalcoFPV
4f93e54ae6 Cordova framework integration, Android support, mobile UI & options tab
Cordova integration and android platform :
- Added cordova directory with required config
- Added cordova applications generation in gulpfile
- Added cordova development instructions
- Used cordova plugins to simulate missing chrome api  plugins (chrome.serial and chrome.fileSystem)
- Added cordova clipboard support
- Added android operating system and Cordova gui mode
- Fixed some css and js files to make them working on Android as well as on computers
- Added --skipdep argument to accelerate cordova build (gulp task)
- Added a webview helper to help people to update the webview app of their device

New options tab :
- Added options tab replacing the options dropdown
- Added option to switch between phones UI and computers UI

Mobile interface and global interface improvements :
- Simplified the structure of the header with flex css
- Made headerbar and tab container responsive (compact headerbar and side menu)
- All tabs are adapted to mobile interface (except firmware flasher)
- The servos and adjustments tabs are not fully adapted but are "usable"
- Improved header bar animation
- Improved log expandation animation
- Added swipe gesture to toggle side menu

Fixes during the development :
- Logo position
- Dark mode
- Auto connection
- Error messages (cordova_chromeapi.js)
- Responsive grid
- Testing
- Disconnection
- Width of boxes inside the OSD tab
- Fixed cli tab
- OSD tab
- Motor stop switch
- White spaces in boxes
- Dialogs size
- Connect button state
- Prevent tablet with a height larger than 575px to switch to computers ui
- Fixed logging tab
- Fixed code smell
- Fixed yarn cordova plugin install issue
- Fixed content_wrapper
- Fixed vibrations when scrolling
- Fixed scrolling bar alignment
- Fixed dialogReportProblem height
- Fixed rates logo
- Fixed auto connection default value (true)
- Fixed D to D max
- Fixed dialogs

Added required messages in locales/en/messages.json file

Requested changes
2020-07-03 16:19:33 +02:00
mikeller
9bfea852eb Fixed warning in tests. 2019-11-08 07:12:37 +13:00
Richard Cooper
7f87965b9c fix karma.conf.js after removing puppeteer. 2019-11-06 22:47:06 +00:00
Richard Cooper
a4f40455de fix missing trailing comma (sonarcloud) 2019-11-06 18:28:33 +00:00
Richard Cooper
bd296b8eb9 Use puppeteer for karma tests 2019-11-06 16:22:43 +00:00
Richard Cooper
21263087ec run karma tests as part of build 2019-11-06 14:58:27 +00:00
Richard Cooper
2a6fb63be2 fix test name 2019-11-06 14:49:00 +00:00
mikeller
41d09d9796 Fixed tests. 2019-09-15 23:31:23 +12:00
Kyle K
73fa4f981b update some libraries, wrestle with yarn/npm, refactor some css
* separate our styling from a libraries included .css
* update npm packages: bluebird, inflection, jbox, jquery, jquery-ui-npm
* ports and osd tabs needed small javascript changes for the above
* refactored CSS style sheets, in summary Cascading was being ignored
* tweaked colors in dark mode.
* tweaked betaflight logo for dark mode care of frozenskys
* dark mode can also trigger on `(prefers-color-scheme: dark)` signal from the OS when NW.js 0.40.0/Chrome 76 is released.
* changed how `gulp-appdmg` is brought in, mixing yarn and npm was causing trouble
* version.json is now written in a more gulpful manner

Note: this works fine with NW.js 0.40.0-beta1
2019-07-23 20:55:50 +00:00
Károly Kiripolszky
f386b0ce1a fix CLI unit tests 2019-04-29 10:27:37 +02:00
Cleric-K
f96fc0eec3 CLI Client-side Autocomplete
Executes silently various commands on CLI open. Parses the output
and build autocomplete cache. Autcomplete hints are displayed in
popup lists.
2019-04-15 14:45:53 +03:00
Adem Gaygusuz
3e69bc7cbd change check from === 'MacOS' to !== 'Windows' 2018-06-03 10:37:55 +01:00
Adem Gaygusuz
6fd0153b91 Fix cli cleanup exit command after auto completing 2018-06-02 13:14:56 +01:00
Adem Gaygusuz
2e5bdae80e Add npm test to travis ci 2018-06-01 22:12:35 +01:00