Commit Graph

246 Commits

Author SHA1 Message Date
Florent Chehab ce16a9d999
refacto(frontend): clean ES2020 private field with getter 2020-05-11 17:32:56 +02:00
Florent Chehab efaa4b795c
refacto(backend): regrouped config related handling 2020-05-11 17:32:56 +02:00
Florent Chehab ca47c41c69
feat: throttling configuration 2020-05-11 17:32:56 +02:00
Florent Chehab 409681b217
feat(front): creating throttling service
* ease throttling of events accross the frontend
2020-05-11 17:32:38 +02:00
Florent Chehab b0337d9f5b
feat: dynamic frontend configuration 2020-05-11 17:32:38 +02:00
Florent Chehab 9fda0a2c4b
fix(back): prevent crash 2020-05-11 17:32:38 +02:00
Florent Chehab 52f52b62e4
feat(ci): run test 2020-05-11 17:32:37 +02:00
Florent Chehab 0b1d1943ec
feat(backend): new config handling based on file
* Config should be provided as Yaml file now
* Other way to provide configuration are now deprectaed
* The config format is checked agaist a schema with the json-schema standard
* Tests are are added to the project (in the backend for config parsing)
2020-05-11 17:32:37 +02:00
Florent Chehab 4476ce3284
refacto: handling of smallest screen size as a whiteboard info
* Also started a bit of config handling cleaning
2020-05-11 17:32:37 +02:00
Florent Chehab 685caffd43
feat: 'new websocket' to share whiteboard info
* share whiteboard info only on change and at specific frequency
* front update to track nb user connected
2020-05-10 15:34:19 +02:00
Florent Chehab 6475fdd5db
feat(front): cleaned hanling of whiteboard info
* Created an InfoService to centralized the logic
* Added an info icon
2020-05-10 14:16:12 +02:00
raphael 5b4eeb7a98 fix readme style 2020-05-09 18:24:09 +02:00
Cracker 4b42a7bb32
Update README.md 2020-05-09 18:19:16 +02:00
Cracker 69d7ebbe34
Merge pull request #51 from FloChehab/style/setup_prettier
Features: auto-formating and CI to ckeck formating and docker build
2020-05-09 18:10:55 +02:00
Florent Chehab d4a30ea3ed
style: formatted entire repo 2020-05-09 15:45:17 +02:00
Florent Chehab dafb9f4646
feat: build docker image in CI 2020-05-09 15:44:26 +02:00
FloChehab c675ed398e
feat: setup linting CI 2020-05-09 15:44:26 +02:00
Florent Chehab a61debebb4
feat: configured prettier, pretty-quick and husky 2020-05-09 15:44:26 +02:00
Florent Chehab c67b369d83
feat: added .editorconfig 2020-05-09 15:39:00 +02:00
Florent Chehab 2cf6c78003
feat: added prettier, pretty-quick & husky dependencies 2020-05-09 15:37:27 +02:00
raphael 4bd2ebacaf hide log data 2020-05-09 15:09:54 +02:00
raphael 9f9fca40b7 transmit cursor movement while drawing 2020-05-09 15:08:49 +02:00
raphael 684a7d80e0 make mouse movement smooth as default 2020-05-09 15:07:54 +02:00
raphael e3cec1a194 remove volatile because problems even on local connections (not drawn lines) 2020-05-09 15:06:21 +02:00
Florent Chehab 677f3d95a1
fix(front): definite fix to getRoundedAngles
* Switched to pure math transformation
2020-05-06 23:13:44 +02:00
Florent Chehab c93d3e643a
feat(front): deactivate readOnly in dev by default 2020-05-06 22:21:09 +02:00
Florent Chehab 3dd889b800
fix: restore upstream master changes 2020-05-06 22:12:56 +02:00
Florent Chehab dde88ae2fb
refacto(frontend): use new Point class
* standardized pos from event
* Also transformed some vars into const
2020-05-06 21:59:20 +02:00
Florent Chehab 9933930a73
refacto(frontend): added and used ReadOnlyService 2020-05-06 21:57:48 +02:00
Florent Chehab 67fd33c66b
refactor(frontend): event threshold handling
* Created const and utils helpers
* Created point class
2020-05-06 21:57:47 +02:00
Florent Chehab 7a81491ffa
fix(front): show cursor on load 2020-05-06 21:57:00 +02:00
Florent Chehab fcdda2c344
refacto(front): modularized shortcutFunctions
* Also made them un-reactive when read-only by default
2020-05-06 21:57:00 +02:00
Florent Chehab 7ec4ef0df0
feat(frontend): cleaned read-only & style
* cleaned unsued css classes
* Reorganized buttons based on if they are edit related or not
* meaningful css when locking for better ui experience
* renamed viewOnly to more standard readOnly
2020-05-06 21:57:00 +02:00
Florent Chehab c454a23e71
fix(css): more straightforward handling of borders
* don't rely on last child selector that might be incorrect due to display:none elements
2020-05-06 21:57:00 +02:00
Florent Chehab 8117be3f52
feat(frontend): add read-only mode and default to it 2020-05-06 21:56:59 +02:00
Florent Chehab b0501824cf
feat(frontend): default to mouse and don't emit cursor while drawing 2020-05-06 21:56:59 +02:00
Florent Chehab 8a1f1b4210
feat(frontend): reduce the number of cursor messages sent
* require a minimum position / time variation between emitions
2020-05-06 21:56:57 +02:00
Florent Chehab db89dd819b
feat(frontend): track the number of messages received / sent 2020-05-06 21:55:13 +02:00
Florent Chehab 6f68f9f21f
feat(backend): no compression & volatile
* Should enable for more performances when there are a lot of users
* Messages are pretty small so compression might not be needed
* Volatile reduces the number of exchanges between the server and the clients
2020-05-06 21:55:13 +02:00
Cracker e2ddcbf162
Update README.md 2020-05-06 18:00:40 +02:00
raphael 30acafc1ec catch error on smallestScreenResolutions not set 2020-05-06 17:27:07 +02:00
raphael 774db98cc7 fix shift draw line things 2020-05-04 17:23:47 +02:00
raphael 97326481e4 fix favicon 2020-05-04 14:56:48 +02:00
raphael 9c3713d0c6 always set shift to true on press 2020-05-04 14:42:25 +02:00
raphael 89dbabf1d2 always set tool intern to mouse while image drop is active 2020-05-04 14:40:24 +02:00
raphael ea0e9f8452 draw lines on shift press when pen is selected 2020-05-04 14:22:08 +02:00
raphael 9a4f32c99a fix README and alert text 2020-04-29 19:24:24 +02:00
raphael d173c7728c improve performance of pdf to image function 2020-04-29 16:01:22 +02:00
raphael c86ee45f11 working with multiple pages 2020-04-29 15:50:31 +02:00
raphael 66898e03ef update package*json 2020-04-29 15:33:19 +02:00