Commit Graph
51 Commits
Author SHA1 Message Date
Mitchell McCaffrey 3b8565ad54 Replace dexie observable with useLiveQuery 2021-06-25 20:54:29 +10:00
Mitchell McCaffrey 72f2c74e9d Add on upgrade listener for DB and overlay when upgrading 2021-06-24 16:14:20 +10:00
Mitchell McCaffrey 52fad1171a Remove worker loading from map and token data contexts 2021-06-11 15:38:23 +10:00
Mitchell McCaffrey 4bfe49f454 Optimisation to tile rendering 2021-06-10 20:08:11 +10:00
Mitchell McCaffrey ee34c599da Add remove group items for maps and tokens 2021-06-09 09:29:32 +10:00
Mitchell McCaffrey 7b5bbcf05d Remove unused map data update function 2021-06-05 16:38:18 +10:00
Mitchell McCaffrey 71b8aeec6c Add multi selection to tile grouping 2021-05-25 15:47:52 +10:00
Mitchell McCaffrey 05968c1964 Add sub groups to group table 2021-05-14 18:02:50 +10:00
Mitchell McCaffrey 140ac7d61c Add sort to token and map tiles and refactor 2021-05-09 12:04:31 +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 aa33e6c341 Moved database worker to database context to consolidate network requests 2021-03-19 15:32:17 +11:00
Mitchell McCaffrey b1e90c74f7 Added worker implementation of database put 2021-03-16 17:49:50 +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 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 f20173de35 Added shared grid context and moved away from calling useContext directly 2021-02-06 13:32:38 +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 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 aaa793ad71 Added multi-threaded initial map and token loading 2020-11-26 16:29:10 +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 e92c561a3a Added automatic cache invalidation for maps and tokens 2020-09-11 16:56:40 +10:00
Mitchell McCaffrey b4e52ebb23 Fixed 2 bugs with map loading and sending
When a map was sent the receiver didn't save the resolutions tihs meant that if the original map owner left or wasn't the party leader the map would be blank when new users joined. Also if a map sender left when sending a map and rejoined their version of the map would be overriden by a corrupted version.
2020-08-28 17:06:13 +10:00
Mitchell McCaffrey 76cad29f2b Added snap to grid option to map settings 2020-08-07 12:28:50 +10:00
Mitchell McCaffrey 8f9027c69f Fixed bug with map setting changes not being synced over to players 2020-07-17 19:22:12 +10:00
Mitchell McCaffrey 235dad9dbf Added await to token and map loading 2020-06-07 11:40:14 +10:00
Mitchell McCaffrey 73aec132e7 Fixed bug with large map sizes 2020-06-07 11:19:32 +10:00
Mitchell McCaffrey faddf03ecf Added show map grid option to maps 2020-05-31 16:25:05 +10:00
Mitchell McCaffrey 887bce81d1 Refactored peer sync logic to use the data providers 2020-05-19 22:15:08 +10:00