Commit graph

262 commits

Author SHA1 Message Date
jamesdeacon
f41585396d Server checks token to see if user is moderator before clear 2022-07-25 16:20:14 +01:00
jamesdeacon
a8bb9fb3b5 Add clear button for moderators 2022-07-21 16:29:21 +01:00
James Deacon
a0c45d9da4 Remove conditional spreading 2022-01-17 19:58:02 +00:00
James Deacon
9258ce99a9 Only apply token param to socket when valid 2022-01-17 11:56:10 +00:00
James Deacon
1bdcdad3e3 Authenticates websockets & adds jwt test env 2022-01-10 11:47:50 +00:00
lovasoa
c8f4cc3fbf
increase the width of the language selector 2021-09-12 11:56:53 +02:00
Ophir LOJKINE
51988ff42b Revert selection icon changes 2021-06-05 02:46:01 +02:00
Ophir LOJKINE
2aee70e26d
Merge pull request #200 from sents/selector_buttons
Selector buttons
2021-06-05 02:02:24 +02:00
Ophir LOJKINE
516ff8f214 small svg and js optimizations 2021-06-05 02:00:36 +02:00
Ophir LOJKINE
b8478dc5da Fix selection UI remaining visible but inactive when switching tools 2021-06-05 01:14:30 +02:00
Ophir LOJKINE
ed12e5d7e5 Fix incoherent formatting 2021-06-05 01:04:22 +02:00
Ophir LOJKINE
4887f539de remove unused variable 2021-06-05 00:58:26 +02:00
Ophir LOJKINE
d9fe603fff Remove zoom in downloaded svg 2021-06-02 19:03:11 +02:00
Ophir LOJKINE
259486b855 format 2021-06-02 18:58:49 +02:00
Finn Krein
d7b341d86e Fix elements disappearing when scaling them near 0.
element.getCTM() returns `null` if one of the transformation matrices
is zero. This fix uses get_transform_matrix instead.
2021-06-02 16:33:33 +02:00
Finn Krein
3e2db5c424 Add configuration option to block specific selection buttons 2021-06-02 16:32:55 +02:00
Finn Krein
5086d9a81d Add handle to scale selection 2021-06-02 16:32:55 +02:00
Finn Krein
fd1da74515 Add buttons for deleteSelection and duplicateSelection 2021-06-02 16:32:54 +02:00
Finn Krein
6b4ec13a0f Add deletion and duplication of selection 2021-06-02 16:32:06 +02:00
Finn Krein
7802f0071b Make selector compatible with IE9 2021-06-02 16:32:04 +02:00
DanielHabenicht
c932c0f838 make download work in IE 2021-05-31 10:33:36 +00:00
DanielHabenicht
9f806fa837 add filter function for stylesheets
Co-authored-by: sents <finn@krein.moe>
2021-05-31 10:02:33 +00:00
DanielHabenicht
af18dd5de4 resolve remarks
* use join
* don't use arrow functions
2021-05-31 09:53:43 +00:00
DanielHabenicht
e7727bb36c Add stylesheets from document instead of manually specifying them
Co-authored-by: sents <finn@krein.moe>
2021-05-28 11:09:51 +00:00
DanielHabenicht
cf981aa358 use Tool.svg 2021-05-28 10:58:23 +00:00
DanielHabenicht
932385003c fix influence of custom style on main canvas
add board name for downloaded file
2021-05-27 17:04:28 +00:00
DanielHabenicht
613cfc3246 remove style nodes for svg drawing 2021-05-27 16:37:49 +00:00
DanielHabenicht
f84950c744 resize svg stroke 2021-05-27 16:37:27 +00:00
DanielHabenicht
8850dc2f49 resolve ellipse comment 2021-05-27 15:56:17 +00:00
DanielHabenicht
991c37dc56 Merge branch 'download-button' of https://github.com/ChaituVR/whitebophir into download 2021-05-26 10:40:45 +00:00
Ophir LOJKINE
91273404f7
Merge pull request #193 from sents/selector
Replace mover tool by selector tool
2021-05-24 09:50:06 +02:00
Finn Krein
16d1140a0d Remove unneeded css for selectionRect 2021-05-24 09:27:49 +02:00
Ophir LOJKINE
22e866b8aa Remove unused functions 2021-05-23 23:53:14 +02:00
Ophir LOJKINE
d279041aec fix indentation 2021-05-23 23:51:24 +02:00
Finn Krein
e6e47ebef9 Make menu draggable 2021-05-23 22:34:49 +02:00
Finn Krein
9e1bfffa80 Make selector rect stroke width non-scaling 2021-05-21 23:56:05 +02:00
Finn Krein
e5e43b87c6 Make batch messages consistent. 2021-05-21 18:48:34 +02:00
Finn Krein
6bbb8c8d60 Add selector tool 2021-05-21 18:48:25 +02:00
lovasoa
e5673060ad
board names are case sensitive
@nneka-nu : please do not change that again

Windows has case-insensitive file names by default,
but wbo itself handles boards with case differences correctly.
If you are using wbo on windows (which I do not recommend),
please set the case sensitivity flag of the folder where you store boards.
Alternatively, use WSL or Docker.
2021-04-02 09:18:41 +02:00
Nneka
89f2ef8e8c fix translations 2021-04-01 18:46:24 -07:00
lovasoa
b0a428ab29
Convert to old javascript for compatibility 2021-04-01 20:40:55 +02:00
Nneka
4439457520 add list of recent boards to home page 2021-04-01 09:09:38 -07:00
Russ Tedrake
d5111afdc8 Adds support for query parameter "hideMenu"
This adds the ability to load a board with the menu hidden; it provides a form of "read-only" mode, but the key bindings are still active.
Use with, e.g.:
http://localhost:5001/boards/qYAZyGdym6HqjnfaGI4yNtpdx0IMHd9qp6kaJPwbJqE-?hideMenu=true

The alternative, proposed in #116, was to remove the menu completely, but this would require more substantial changes to board.js (which hangs on "Loading..." if the menu is removed).
Related to #150
Related to #116

Adds support for query parameter "hideMenu"

This adds the ability to load a board with the menu hidden; it provides a form of "read-only" mode, but the key bindings are still active.
Use with, e.g.:
http://localhost:5001/boards/qYAZyGdym6HqjnfaGI4yNtpdx0IMHd9qp6kaJPwbJqE-?hideMenu=true

The alternative, proposed in #116, was to remove the menu completely, but this would require more substantial changes to board.js (which hangs on "Loading..." if the menu is removed).
Related to #150
Related to #116
2021-02-17 08:35:22 -05:00
Ophir LOJKINE
5bc3f02dae Revert "Adds support for query parameter "hideMenu" (#170)"
This reverts commit 71d8be5df1.
2021-02-17 12:09:41 +01:00
Russ Tedrake
71d8be5df1
Adds support for query parameter "hideMenu" (#170)
This adds the ability to load a board with the menu hidden; it provides a form of "read-only" mode, but the key bindings are still active.
Use with, e.g.:
http://localhost:5001/boards/qYAZyGdym6HqjnfaGI4yNtpdx0IMHd9qp6kaJPwbJqE-?hideMenu

The alternative, proposed in #116, was to remove the menu completely, but this would require more substantial changes to board.js (which hangs on "Loading..." if the menu is removed).
Related to #150
Related to #116
2021-02-17 12:05:38 +01:00
Ilya Shabalin
89faff35b6
Remember and restore white-out size (#166)
There is now a separate size for the main pencil and the whiteout tool. This is helpful when using "White-Out" as an eraser and switching frequently, as one typically wants eraser to have larger radius.

* Remember and restore white-out size

* Isolate size toggle in pencil.js

* Undo toggle back to Pencil on tool change, replace Pencil size concept with Drawing size

Co-authored-by: ishabalin <ishabalin@apple.com>
2021-02-08 11:35:09 +01:00
Ilya Shabalin
edf31cd6c2
Auto white-out with a finger when using apple stylus (#167)
When using an iPad with an apple stylus, finger touches now trigger the whiteout tool.
This behavior can be disabled by setting the environment variable AUTO_FINGER_WHITEOUT=disabled

* Auto white-out with a finger when using stylus

* Add AUTO_FINGER_WHITEOUT config variable

* Use local variable to remember if stylus was used and make behavior configurable

* Delete "stylus" property

* Make AUTO_FINGER_WHITEOUT on by default

Co-authored-by: Ophir LOJKINE <pere.jobs@gmail.com>

* Delete parseBool, add note about iPad/Pencil

Co-authored-by: ishabalin <ishabalin@apple.com>
Co-authored-by: Ophir LOJKINE <pere.jobs@gmail.com>
2021-02-08 11:28:24 +01:00
ophir
a1dfb9871d Fix cropped language selection menu 2021-01-31 17:06:24 +01:00
ophir
244eaf3895 formatting 2021-01-10 21:25:12 +01:00
ophir
6e8d99d57a Better zooming and scrooling experience 2021-01-10 20:52:15 +01:00