Commit graph

388 commits

Author SHA1 Message Date
Jeremie Pardou-Piquemal
bf34120260 Try to fix extra render 2020-08-21 23:18:03 +02:00
Jeremie Pardou-Piquemal
4b48501253 Fix cursor jumping to textarea end 2020-08-21 21:17:51 +02:00
Jeremie Pardou-Piquemal
f8b9a8da7a Fix broken notes 2020-08-13 18:55:12 +02:00
Jeremie Pardou-Piquemal
f1a16836f4 Fix regressions 2020-08-01 21:54:59 +02:00
Jeremie Pardou-Piquemal
bb2f045809 Use map instead of AtomFamily 2020-08-01 21:54:59 +02:00
Jeremie Pardou-Piquemal
5fbd6eb259 Closes #153 dont send bord update on game loading 2020-08-01 21:54:59 +02:00
Jeremie Pardou-Piquemal
15a749ef70 Clean some code 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
5f087a2def Avoid unecessary render 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
0c01beac18 Minor regressions 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
25b75645f3 Split item state from order to minimize render 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
93e681e32e Update recoil version 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
2653008a67 Show selected items while selecting 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
7eda777b73 Improve forms 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
b41fc50561 Fix colorpicker 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
6933a84043 Closes 141 - Add lock symbol 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
c3c74bec11 Enhance cursor 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
2c8a3162ad Improve perf by using translate for items 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
bb34cec541 Remove cursor move throttle 2020-07-31 21:57:43 +02:00
Jeremie Pardou-Piquemal
18b7b5275b Enhance dice 2020-07-29 20:28:59 +02:00
Jeremie Pardou-Piquemal
0792b26d99 Enhance counter 2020-07-29 20:28:59 +02:00
Jeremie Pardou-Piquemal
c3e4230c51 Add NO_WELCOME option for dev mode 2020-07-29 20:28:59 +02:00
Jeremie Pardou-Piquemal
2592b35c76 Refactor action to reuse action on sync 2020-07-23 19:54:17 +02:00
Jeremie Pardou-Piquemal
2a69a16084 Use only batch item update 2020-07-23 19:54:17 +02:00
Jeremie Pardou-Piquemal
21fad59773 Closes #93 - Add game information modal 2020-07-23 19:54:17 +02:00
Jeremie Pardou-Piquemal
c46f081f91 Fix bug when adding items 2020-07-23 19:54:17 +02:00
Jeremie Pardou-Piquemal
93f7423948 Closes #103 replace text by icons for action 2020-07-20 17:14:26 +02:00
Jeremie Pardou-Piquemal
50fde24990 Closes #135 - add clone action 2020-07-20 17:14:26 +02:00
Jeremie Pardou-Piquemal
f409d15de9 Closes #114 fix crash on item addition 2020-07-20 17:14:26 +02:00
Jeremie Pardou-Piquemal
7b847b9a05 Closes #140 dblclick dont generate remove or lock anymore 2020-07-20 17:14:26 +02:00
Jeremie Pardou-Piquemal
bccfc04c37 Add items type 2020-07-15 20:17:42 +02:00
Romain Garrigues
b56ffca13e Fixes typos on welcome modal 2020-07-14 20:21:33 +01:00
Jeremie Pardou-Piquemal
45c60b6273 Fix auto save 2020-07-14 19:58:07 +02:00
Jeremie Pardou-Piquemal
73781d8bc1 Fix unmount forbiden setState 2020-07-14 19:58:07 +02:00
Jeremie Pardou-Piquemal
93795427c0 Closes #96 show users that can see an item 2020-07-14 18:06:56 +02:00
Jeremie Pardou-Piquemal
c25c632da8 Better actions management 2020-07-14 18:06:56 +02:00
Jeremie Pardou-Piquemal
3c7b45d51a Fix wheel outside of board 2020-07-14 15:10:12 +02:00
Jeremie Pardou-Piquemal
95ed3a3164 First attempt to fix #112 message when connection lost 2020-07-14 15:10:12 +02:00
Jeremie Pardou-Piquemal
3255cea7de Closes #111 fix weird zoom 2020-07-14 15:01:54 +02:00
Jeremie Pardou-Piquemal
97dffbe0b9 Closes #118 fix cursor off 2020-07-13 21:22:46 +02:00
Jeremie Pardou-Piquemal
84c8f189f0 Refactor item to ease item addition 2020-07-13 21:22:46 +02:00
Romain Garrigues
6b0bd10e78 Adds "r" keyboard shortcut to remove any item(s). 2020-07-13 20:25:21 +02:00
Romain Garrigues
85f04f9643 Adds passive property on wheel event to be able to use preventDefault functionality and prevent Chrome native zoom feature. 2020-07-13 20:24:14 +02:00
Jeremie Pardou-Piquemal
df81b3d040 Closes #98 add zone widget 2020-07-13 13:51:44 +02:00
Jeremie Pardou-Piquemal
d95581ef0e Closes #123 2020-07-13 12:13:42 +02:00
Jeremie Pardou-Piquemal
c2bb498731 Closes #121 welcome popup 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
4679b3fc77 Selection still work even if going off board 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
d8f22ce938 Fix stiky move when going off board 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
432edc9ae9 Change background 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
c8c408010b Allow text selection 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
36c6389620 Enhance notes 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
d8ef58edc1 Perf enhancement when shuffling items 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
70a5ed9997 Big performance enhancement by using better recoil 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
f371e5f3d8 Add random id to box content if missing 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
405631243f Try to improve perf by doing deep comparaison 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
14f84bb16f Try to improve perf when edit mode is enabled 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
cfc747c46c Closes #116 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
5c250c4548 Fix typo in translation 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
15d72027d2 Closes #113 typo in property 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
98be82d3b7 Allow non master to add available items 2020-07-09 21:22:12 +02:00
Jeremie Pardou-Piquemal
8c48a816f0 Fix bug when no classes 2020-07-09 21:22:12 +02:00
Jeremie Pardou-Piquemal
123edee018 Fix label vs text and edit mode for all 2020-07-09 21:01:47 +02:00
Romain Garrigues
9d988ea309 Adds ctrlKey management to differentiate pinch from pan.
Warning: this change will only affect the OS X family.
2020-07-09 20:29:12 +02:00
Jeremie Pardou-Piquemal
7e715f2896 New game is now visible only if you try to create games 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
432a9f6ac8 Add rotate action 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
3584d65b78 Filter available actions only for selection 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
c08c6d2dff Add e2e tests first pass 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
037559fd3d Remove extra border around when no overlay 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
443fe66d58 Fix backface visibity hidden 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
5e149728df Fix stiky move on mac 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
24a3b7b539 Add board config 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
aedc79fc2c Center board on game loading 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
c2f0afbb17 Remove gap under all image items 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
d1ca731928 Avoid stiky move on mouse leave 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
c4c88880c8 first attempt to avoid zoom gap 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
ce4eb54000 Dim label size 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
ed1a67476c If alt key is pressed, avoid selector, if ctrl avoid zoom 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
fdd969273d Fix broken layer feature 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
88138bad1d Handle selection outside of board 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
bc70ad7760 Add transition to smooth cursor move 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
2b6d541e2f Closes #86 game box is updated if game as url 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
2cf86a3048 Reverse card order on flip 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
d07105d466 Allow ctrl selection and put selected on top 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
cf966cc6c1 Add navbar 2020-07-02 17:34:06 +02:00
Jeremie Pardou-Piquemal
e190dabfcc Add help modal 2020-07-02 17:34:06 +02:00
Jeremie Pardou-Piquemal
03dab656aa Add shortcut to actions 2020-06-30 22:00:58 +02:00
Jeremie Pardou-Piquemal
cf4e68ca34 Fix bug when counter was edited 2020-06-30 22:00:58 +02:00
Jeremie Pardou-Piquemal
7279baa964 Add animation to images 2020-06-30 22:00:58 +02:00
Jeremie Pardou-Piquemal
0e9fa4ed31 Add edit mode 2020-06-30 22:00:58 +02:00
Jeremie Pardou-Piquemal
6e83bd63c9 Add translation for all string 2020-06-29 20:20:37 +02:00
Jeremie Pardou-Piquemal
892299f7fc Change layout and split components 2020-06-29 19:59:37 +02:00
Jeremie Pardou-Piquemal
ffd4d492f3 Remove games 2020-06-25 23:25:18 +02:00
Jeremie Pardou-Piquemal
f0c4217748 Add colorpicker 2020-06-25 22:36:30 +02:00
Jeremie Pardou-Piquemal
35144ad7bd New game button 2020-06-25 22:36:30 +02:00
Jeremie Pardou-Piquemal
cc67a28903 First attempt to add items 2020-06-25 22:36:30 +02:00
Jeremie Pardou-Piquemal
1709524444 Add item edition 2020-06-24 21:42:30 +02:00
Jeremie Pardou-Piquemal
38e4b536d7 unify code 2020-06-24 21:42:30 +02:00
Jeremie Pardou-Piquemal
c3590fe7fb Reuse code 2020-06-24 21:42:30 +02:00
Jeremie Pardou-Piquemal
57faef3ce2 Avoid unecessary render 2020-06-24 21:42:30 +02:00
Jeremie Pardou-Piquemal
bc242addb6 Add wdyr 2020-06-24 21:42:30 +02:00
Romain Garrigues
a0d5c62bcd Only displays by default the group titles in the box item generation section of the menu. 2020-06-23 21:51:41 +02:00
Jeremie Pardou-Piquemal
9e6aa42e9a Can add/remove items 2020-06-21 18:18:06 +02:00
Jeremie Pardou-Piquemal
528d553f4a Fix #53 First pass on add note 2020-06-21 18:15:15 +02:00
Jeremie Pardou-Piquemal
01dcb27334 Enhance perfs 2020-06-21 17:26:29 +02:00
Jeremie Pardou-Piquemal
64836c5add Fix chrome unable to select multiple items 2020-06-21 17:26:29 +02:00
Jeremie Pardou-Piquemal
2d0880bf24 Fix cursor under elements 2020-06-21 17:26:29 +02:00
Jeremie Pardou-Piquemal
1d962a7bb3 Fix #65 force websocket 2020-06-21 17:26:29 +02:00
Jeremie Pardou-Piquemal
93810b3419 Enhance dice 2020-06-21 14:22:00 +02:00
Jeremie Pardou-Piquemal
d663673180 Fix #52 add layer managment 2020-06-21 14:22:00 +02:00
Jeremie Pardou-Piquemal
d655168ad5 fix #4 Add dice widget 2020-06-21 14:22:00 +02:00
Jeremie Pardou-Piquemal
7bdc0913dc Refactor Board components 2020-06-20 16:45:05 +02:00
Romain Garrigues
dccfc75ea7 Adds a form to be able to modify an Image label. 2020-06-20 16:11:35 +02:00
Jeremie Pardou-Piquemal
b5b0ee4b2d Gather user relative components 2020-06-20 14:17:11 +02:00
Jeremie Pardou-Piquemal
3cf7d6e66c Refactor user hooks 2020-06-20 14:04:32 +02:00
Jeremie Pardou-Piquemal
d36655069e Refactor list actions to avoid duplication 2020-06-19 22:21:02 +02:00
Jeremie Pardou-Piquemal
b50aa1ad64 Fix counter when no value 2020-06-19 22:21:02 +02:00
Jeremie Pardou-Piquemal
89b70b98c8 Split item in one file by component 2020-06-19 22:21:02 +02:00
Jeremie Pardou-Piquemal
26598ba713 Fix impossible to select locked element 2020-06-19 22:21:02 +02:00
Jeremie Pardou-Piquemal
91d9a1ae62 Fix #58 counter style 2020-06-19 22:19:16 +02:00
Jeremie Pardou-Piquemal
cdf0903583 Fix #57 split on undefined error 2020-06-19 22:19:16 +02:00
Romain Garrigues
61bf3cf354 Updates the gloomhaven box json file to only include item "template" information:
- Removes x/y coordinates,
- Removes item duplicate generation,
- Introduces labels and groupIds for better displaying possibilities.
2020-06-19 20:14:00 +02:00
Jeremie Pardou-Piquemal
d79dff0b72 First pass on item styling 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
c8cd8bb11e Style GameController 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
dd8d3938aa Fix perf problem 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
75fed10ed2 Style user list 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
aa8a91fcbd Style user config 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
27061e1a09 Styled panzoomrotate 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
9ad713d3ac Use styled component on cursor 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
59ca4097d9 Add styled components and style some 2020-06-19 18:05:48 +02:00
Jeremie Pardou
cba40b1581 Fix code style 2020-06-19 14:11:42 +02:00
Jeremie Pardou-Piquemal
53739f1553 Translate all files 2020-06-19 14:04:32 +02:00
Jeremie Pardou-Piquemal
92a707e2bc Add i18n 2020-06-19 14:04:32 +02:00
Jeremie Pardou-Piquemal
aadb0ebf30 Add eslint 2020-06-18 21:08:49 +02:00
Jeremie Pardou-Piquemal
7e540d1310 Change single quote for double quote 2020-06-18 20:57:28 +02:00
Jeremie Pardou-Piquemal
0269aff8c7 Use prettierrc 2020-06-18 20:51:47 +02:00
Jeremie Pardou-Piquemal
04db8d669c Remove extra dependencies 2020-06-18 20:43:16 +02:00
Romain Garrigues
e40278d4f9 Adds a new concept of "available item", used to represent the game content and to be able to easily add new content to an ongoing game. 2020-06-18 20:38:21 +02:00
Romain Garrigues
ae239764e0 Adds initial available items for Gloomhaven. 2020-06-17 21:34:03 +02:00
Romain Garrigues
9862aaf82c Adds battle goals to the first scenario of Gloomhaven 2020-06-17 21:22:15 +02:00
Romain Garrigues
6fbe41e371 Adds more materials for the first scenario of gloomhave (elements, ailments, ...) 2020-06-17 20:56:51 +02:00
Romain Garrigues
898cc3e077 Adds the possibility to add an Item overlay.
Currently used to display a normal/elite mask for monsters.
2020-06-17 20:56:07 +02:00
Jeremie Pardou-Piquemal
0490b296cf Add slider for rotation 2020-06-17 09:15:07 +02:00
Jeremie Pardou-Piquemal
5df0421800 Enhance style 2020-06-16 22:22:10 +02:00
Jeremie Pardou-Piquemal
40de4bf4ad Fix minor bug with localstorage 2020-06-16 21:53:52 +02:00
Jeremie Pardou-Piquemal
e410915bd6 Add localstorage save 2020-06-16 21:43:59 +02:00
Jeremie Pardou-Piquemal
7e67f9c07b Fix naming and url 2020-06-16 21:20:29 +02:00
Jeremie Pardou-Piquemal
498ad10450 Rename extraStyling -> extraStyle 2020-06-16 21:11:39 +02:00
Jeremie Pardou-Piquemal
9308454fae Replace class by className 2020-06-16 21:09:42 +02:00
Jeremie Pardou-Piquemal
c35ad31ace Update style 2020-06-16 21:07:29 +02:00
Romain Garrigues
23eabcab83 Adds possibility to display text on Image component. Useful for:
- Numbers on monster tokens,
- Numbers on map tiles.
2020-06-16 21:04:15 +02:00
Jeremie Pardou-Piquemal
82cfc665be Add import export game 2020-06-16 21:01:50 +02:00
Jeremie Pardou-Piquemal
39c1736b33 Add download link 2020-06-16 21:01:50 +02:00
Romain Garrigues
8faa63320e Adds lot of content for first scenario:
- Obstacles,
- Coins / Treasure,
- Doors, Traps,
- Character abilities for Brute and Spellweaver.
2020-06-16 20:59:15 +02:00
Jeremie Pardou-Piquemal
ea10f07fdf Add counter 2020-06-16 20:05:24 +02:00
Jeremie Pardou-Piquemal
19759f93a7 Add settlers 2020-06-16 20:04:15 +02:00
Romain Garrigues
1d9230250e Adds monter tokens for gloomhaven first scenario. 2020-06-16 09:21:59 +02:00
Romain Garrigues
9a4c2fda12 Allows to use "alt / option" key to scroll in the game view. 2020-06-15 21:26:06 +02:00
Jeremie Pardou-Piquemal
6a616fa3ce Update words 2020-06-15 08:59:21 +02:00
Jeremie Pardou-Piquemal
d33beed79c Add more elements and ease use 2020-06-14 22:25:43 +02:00
Jeremie Pardou-Piquemal
f92341eaff Add text when only watcher 2020-06-14 21:26:19 +02:00
Jeremie Pardou-Piquemal
4c3e7e5359 Allow to show only for yourself 2020-06-14 21:18:51 +02:00
Jeremie Pardou-Piquemal
863936bd1c Last selected element is moved on top of the stack 2020-06-14 15:37:54 +02:00
Jeremie Pardou-Piquemal
7af4b07912 Shuffle item position also 2020-06-14 15:25:46 +02:00
Jeremie Pardou-Piquemal
2539ba7c14 Add ability to shuffle and align items 2020-06-14 15:04:01 +02:00
Jeremie Pardou-Piquemal
0e087ed1c3 Improve perf and way items are synchronized 2020-06-14 10:23:20 +02:00
Jeremie Pardou-Piquemal
31f6c2807c Add selected item form 2020-06-13 23:01:23 +02:00
Jeremie Pardou-Piquemal
9ebe0b5d19 Can move all selected items 2020-06-13 16:47:28 +02:00
Jeremie Pardou-Piquemal
587c0c0049 Add action pane to handle all user interactions 2020-06-13 16:40:18 +02:00
Jeremie Pardou-Piquemal
0131c1176a Selection is working 2020-06-12 11:54:05 +02:00
Jeremie Pardou-Piquemal
28274870fc Add rotation and selection 2020-06-12 11:47:14 +02:00
Jeremie Pardou-Piquemal
0d08695ba1 Fix change state while unmounted 2020-06-12 11:31:36 +02:00
Jeremie Pardou-Piquemal
5fc01701da Add ability to change user color 2020-06-12 11:30:53 +02:00
Jeremie Pardou-Piquemal
f33ea300f7 First step of selector 2020-06-11 22:06:10 +02:00
Romain Garrigues
497c77e761 Adds initial Gloomhaven loading game.
Creates initial Gloomhaven json description file.
2020-06-10 21:44:02 +02:00
Jeremie Pardou-Piquemal
dba79e6237 Allow user to disconnect and reconnect 2020-06-09 22:36:23 +02:00
Jeremie Pardou-Piquemal
485ee59272 Prevent race condition with cursor when user leave 2020-06-08 22:19:10 +02:00
Jeremie Pardou-Piquemal
80b4a99661 Allow to change user name 2020-06-08 21:04:42 +02:00
Jeremie Pardou-Piquemal
98c4917b28 Add router to allow multiple rooms 2020-06-08 20:32:24 +02:00
Jeremie Pardou-Piquemal
37eb74d596 Add flippable image item with backContent 2020-06-07 22:56:00 +02:00
Jeremie Pardou-Piquemal
117edce247 Fix sync problem 2020-06-07 22:18:01 +02:00
Jeremie Pardou-Piquemal
b2ad17117c Fix delay problem 2020-06-07 22:10:56 +02:00
Jeremie Pardou-Piquemal
9c6d8c151e Resolve prefix problem 2020-06-07 21:54:10 +02:00
Jeremie Pardou-Piquemal
cb7c39e5c2 Solve cors problem 2020-06-07 21:03:54 +02:00
Jeremie Pardou-Piquemal
6377a50842 Clean before publish 2020-06-07 20:37:12 +02:00
Jeremie Pardou-Piquemal
5ab40a3501 Tiktok is good 2020-06-07 14:58:08 +02:00
Jeremie Pardou-Piquemal
faed323908 PanZoom working 2020-06-07 13:49:04 +02:00
Jeremie Pardou-Piquemal
1bc2c5f63d Tiktok not bad 2020-06-05 23:22:45 +02:00
Jeremie Pardou-Piquemal
81aedea655 Big rework 2020-06-05 22:58:53 +02:00
Jeremie Pardou-Piquemal
e98f5dd220 Initialize project using Create React App 2020-04-05 14:20:00 +02:00