Commit Graph

181 Commits

Author SHA1 Message Date
Mitchell McCaffrey
05f68dcb92 Add back range tile select 2021-06-05 17:16:39 +10:00
Mitchell McCaffrey
7b5bbcf05d Remove unused map data update function 2021-06-05 16:38:18 +10:00
Mitchell McCaffrey
e3353c1c44 Add back tile search and action bar 2021-06-05 16:38:01 +10:00
Mitchell McCaffrey
5347e30b98 Move to a delayed asset cleanup function to fix bugs with custom token group images 2021-06-05 14:40:44 +10:00
Nicola Thouliss
bfd0529207 Added all files successfully converted 2021-06-05 13:35:31 +10:00
Mitchell McCaffrey
e22c614150 Add a token tile hidden badge 2021-06-05 13:34:17 +10:00
Mitchell McCaffrey
34461a7899 Change TileDragProvider cursor 2021-06-05 13:04:56 +10:00
Mitchell McCaffrey
5db2b30bc1 Add default props to GroupProvider 2021-06-05 13:04:26 +10:00
Mitchell McCaffrey
0f2776d774 Add back map edit bar and refactor select map modal edit functions 2021-06-04 21:54:26 +10:00
Mitchell McCaffrey
0a03387bf4 Change drag cursors to grab and show no-drag cursor if needed 2021-06-03 12:25:23 +10:00
Nicola Thouliss
ecc4f67f37 Converted /modals to typescript 2021-06-02 19:03:01 +10:00
Mitchell McCaffrey
bac3101886 Add ability to drag and drop a tile onto the map and added better drag cursors 2021-05-28 17:06:20 +10:00
Mitchell McCaffrey
57aafce938 Add support for ungrouping tiles and refactor tile drag functions 2021-05-28 13:13:21 +10:00
Mitchell McCaffrey
71b8aeec6c Add multi selection to tile grouping 2021-05-25 15:47:52 +10:00
Mitchell McCaffrey
0917ef05a1 Rename select helper to group 2021-05-24 15:17:23 +10:00
Mitchell McCaffrey
b776b86186 Refactored group functions into common context and added group overlay 2021-05-24 13:34:21 +10:00
Mitchell McCaffrey
05968c1964 Add sub groups to group table 2021-05-14 18:02:50 +10:00
Mitchell McCaffrey
2b8bc11b5c Update useAssetURL to avoid database access when not needed 2021-05-13 16:28:02 +10:00
Mitchell McCaffrey
140ac7d61c Add sort to token and map tiles and refactor 2021-05-09 12:04:31 +10:00
Mitchell McCaffrey
8aa3bda90d Move drag and drop to dnd-kit 2021-05-06 15:04:53 +10:00
Mitchell McCaffrey
f419029d56 Add default maps and tokens to db and split db upgrade into new file 2021-05-01 12:54:00 +10:00
Mitchell McCaffrey
a91d559ba6 Remove cache functions from map and tokens and add to assets 2021-04-30 11:56:37 +10:00
Mitchell McCaffrey
04cf5687dd Delete assets with maps and token 2021-04-30 09:54:35 +10:00
Mitchell McCaffrey
acbb00dc5b Fix map size label in map settings 2021-04-29 16:38:33 +10:00
Mitchell McCaffrey
71edf5c5c5 Add thumbnail sending to assets for map grid 2021-04-29 15:44:57 +10:00
Mitchell McCaffrey
0ccee84cbf Changed asset loading bar to show progress as a group of assets 2021-04-29 13:49:39 +10:00
Mitchell McCaffrey
9a9b778f04 Remove map preview sending and fix initial player map load 2021-04-24 12:39:04 +10:00
Mitchell McCaffrey
245a9cee43 Move tokenState to work without backing token, add asset sync 2021-04-23 17:10:10 +10:00
Mitchell McCaffrey
a023ef61ed Fix token and map editing and viewing 2021-04-23 11:48:24 +10:00
Mitchell McCaffrey
f078fb687e Add types to database context 2021-04-23 11:46:52 +10:00
Mitchell McCaffrey
9f11161b23 Moved assets into new table in the database 2021-04-22 16:53:35 +10:00
Mitchell McCaffrey
c7aac9d2ce Updated player session id syncing 2021-04-09 15:13:06 +10:00
Mitchell McCaffrey
0d8a4ef1b2 Fix quota exceeded error message 2021-04-09 11:32:36 +10:00
Mitchell McCaffrey
d8f3ae43f5 Moved database error to only show local error message 2021-04-01 11:48:10 +11:00
Mitchell McCaffrey
75f4b97135 Moved asset manifest to use partial network updates and fix asset cache ignoring changes 2021-03-22 21:23:43 +11:00
Mitchell McCaffrey
aa33e6c341 Moved database worker to database context to consolidate network requests 2021-03-19 15:32:17 +11:00
Mitchell McCaffrey
cfdff1e549 Moved to useBlur helper 2021-03-19 13:29:07 +11:00
Mitchell McCaffrey
815cc3aead Refactor error banners and add new slimlined reconnect and offline banners 2021-03-18 14:02:13 +11:00
Mitchell McCaffrey
44aafbe2f3 Remove unused import 2021-03-18 11:25:29 +11:00
Mitchell McCaffrey
1526e47eda Fix image sources getting set to undefined 2021-03-16 17:50:20 +11:00
Mitchell McCaffrey
b1e90c74f7 Added worker implementation of database put 2021-03-16 17:49:50 +11:00
Mitchell McCaffrey
89fb803398 Moved konva context bridging to shared component 2021-03-13 14:23:37 +11:00
Mitchell McCaffrey
c1ee335437 Fix bug with adding image sources quickly 2021-03-12 17:46:20 +11:00
Mitchell McCaffrey
5231d14937 Moved to global image source manager to allow resource sharing 2021-03-12 17:35:26 +11:00
Mitchell McCaffrey
e6fd10a904 Optimise grid and interaction context 2021-03-12 11:02:58 +11:00
Mitchell McCaffrey
7741171dee Merge branch 'master' into release/v1.8.0 2021-02-23 17:03:02 +11:00
Mitchell McCaffrey
b372e4504d Fix bug with player joining 2021-02-20 18:10:00 +11:00
Mitchell McCaffrey
77bb13e8e6 Combine session status events into one event 2021-02-20 14:40:00 +11:00
Mitchell McCaffrey
768b68dbe8 Moved map and token changes to observable 2021-02-16 18:31:24 +11:00
Mitchell McCaffrey
cf9e428447 Moved add/remove maps/tokens to Observables to allow for cross session syncing 2021-02-14 18:35:42 +11:00
Mitchell McCaffrey
9370365ab4 Fix warnings 2021-02-12 00:38:36 +11:00
Mitchell McCaffrey
85270859bb Move to new fog snapping with guides and vertex snapping 2021-02-11 19:57:34 +11:00
Mitchell McCaffrey
547a214149 Added distance calculation support for hex 2021-02-11 10:06:06 +11:00
Mitchell McCaffrey
96298e8943 Move measurement options to map settings 2021-02-10 19:59:15 +11:00
Mitchell McCaffrey
aad173830c Added check for name in unhandled error 2021-02-09 08:07:40 +11:00
Mitchell McCaffrey
24e64f9d32 Update maps and tokens to have thumbnails and removed loading of all files on load 2021-02-08 16:53:56 +11:00
Mitchell McCaffrey
23b0432bb2 Fix unused vars 2021-02-07 21:53:29 +11:00
Mitchell McCaffrey
fbea8bd7a7 Move grid snapping to hook and added math for hex snapping 2021-02-06 19:29:24 +11:00
Mitchell McCaffrey
f20173de35 Added shared grid context and moved away from calling useContext directly 2021-02-06 13:32:38 +11:00
Mitchell McCaffrey
de84e77e58 Add basic hex functionality and clean up hooks and Vector2 class 2021-02-04 15:06:34 +11:00
Mitchell McCaffrey
fa1f6fe18f Converted draw actions storage to collapsed representation
Moved to command pattern for action application
2021-02-04 09:11:27 +11:00
Mitchell McCaffrey
39f3034f91 Moved to Comlink.transfer for worker data loading to prevent memory issues 2021-01-27 16:24:13 +11:00
Mitchell McCaffrey
edffbd8971 Removed duplicate getToken function 2021-01-25 08:19:48 +11:00
Mitchell McCaffrey
bda0aa9ebe Merge branch 'master' into release/v1.7.1 2021-01-25 08:19:25 +11:00
Mitchell McCaffrey
1c143f5464 Moved token request to DB and added sanity check to putToken 2021-01-24 17:50:52 +11:00
Mitchell McCaffrey
ae32068ccb Update TokenDataContext.js 2021-01-24 09:21:22 +11:00
Mitchell McCaffrey
6d548e6fff Update TokenDataContext.js 2021-01-24 09:20:32 +11:00
Mitchell McCaffrey
31f9af583a Added more logging to token put error 2021-01-24 09:18:25 +11:00
Mitchell McCaffrey
3abf9c62fa Changed data contexts to use useCallback and fixed performance issues when changing party state 2021-01-22 14:59:05 +11:00
Mitchell McCaffrey
b9e681f7a1 Updated network state debounce to 500ms 2021-01-22 06:59:49 +11:00
Mitchell McCaffrey
7281e9b9ba Change note text input to allow for multiline editing 2021-01-14 12:36:48 +11:00
Mitchell McCaffrey
02ecf9bffc Changed useNetworkState to implement a partial update mechanism 2021-01-03 10:45:24 +11:00
Mitchell McCaffrey
f24156c44c Clean up imports 2021-01-02 09:13:26 +11:00
Mitchell McCaffrey
b9876c6a38 Fix offline mode and move to optional chaining for session socket 2021-01-01 12:44:56 +11:00
Mitchell McCaffrey
b13b46b17d Moved pointer out of player state and into separate socket event 2021-01-01 12:37:54 +11:00
Mitchell McCaffrey
501fc4377c Optimised pointer 2020-12-31 17:56:51 +11:00
Mitchell McCaffrey
6a4c6b30ec Moved peer connections to an optional pull model 2020-12-11 13:24:39 +11:00
Mitchell McCaffrey
b40f78042f Moved party to use socket networking 2020-12-08 15:58:01 +11:00
Mitchell McCaffrey
aaa793ad71 Added multi-threaded initial map and token loading 2020-11-26 16:29:10 +11:00
Mitchell McCaffrey
95d0509693 Added banner for quota exceeded error 2020-11-26 15:24:33 +11:00
Mitchell McCaffrey
6fedcc171d Added note edit flags 2020-11-05 16:21:52 +11:00
Mitchell McCaffrey
92fa7133bc Added notes to default map state 2020-11-04 15:02:56 +11:00
Mitchell McCaffrey
05e66e5e82 Reverted unnecessary changes to fix fake-indexeddb issue 2020-10-24 09:05:16 +11:00
Mitchell McCaffrey
b59efda436 Another possible fake-indexeddb work around 2020-10-24 08:52:31 +11:00
Mitchell McCaffrey
58b70a46de Fix another error with fake-indexeddb 2020-10-24 08:23:06 +11:00
Mitchell McCaffrey
e64d715498 Removed debug logs 2020-10-24 00:15:15 +11:00
Mitchell McCaffrey
f8d7f7f19f Updated update map 2020-10-24 00:01:46 +11:00
Mitchell McCaffrey
b70bcdabd2 Updated update map 2020-10-23 23:45:39 +11:00
Mitchell McCaffrey
97c436b5e4 Removed id from map update data 2020-10-23 23:35:43 +11:00
Mitchell McCaffrey
b91d0e4157 more logging 2020-10-23 23:18:57 +11:00
Mitchell McCaffrey
2e5d52b6ac Added more logging to getMapFromDB to test private browsing error 2020-10-23 22:39:01 +11:00
Mitchell McCaffrey
086a7beff3 Added more database sanity checks 2020-10-23 22:16:18 +11:00
Mitchell McCaffrey
6c8833feae Added check that database is available before joining a game
Fixes issue with joining a game already in progress on a browser with indexedDB disabled
2020-10-23 21:11:25 +11:00
Mitchell McCaffrey
3ce6203745 Added check for database in getMapFromDB 2020-10-23 20:50:05 +11:00
Mitchell McCaffrey
539f216cfe Added grid scale and offset to maps and refactored into grid object 2020-10-02 15:19:10 +10:00
Mitchell McCaffrey
f28d1b6690 Added search and groups to token select, refactored map search and group 2020-10-01 22:32:21 +10:00
Mitchell McCaffrey
3215efffa3 Added map group support 2020-10-01 15:05:30 +10:00
Mitchell McCaffrey
99b2bd0240 Added multi map remove to map data context 2020-09-30 15:44:48 +10:00
Mitchell McCaffrey
b7a89a4a4a Refactored keyboard shortcuts to be global and not dependent on map interaction 2020-09-30 13:26:39 +10:00
Mitchell McCaffrey
e92c561a3a Added automatic cache invalidation for maps and tokens 2020-09-11 16:56:40 +10:00