Kavita/API/Data
Joseph Milazzo eb88967545
Webtoon Reader Fixup (#405)
* Navigate users to library page instead of home to prevent history block.

* Cleaned up the Contributing to describe new code structure

* Fixed a critical bug for how we find files for a chapter download (use ChapterId for lookup, not MangaFile.Id). Refactored how downloading works on the UI side to use the backend's filename whenever possible, else provide a custom name (and use backend's extension) for bundled downloads.

* Fixed a bug where scroll intersection wasn't working on books without a table of content, even though it should have.

* If user is using a direct url and hits an authentication guard, cache the url, allow authentication, then redirect them to said url

* Added a transaction for bookmarking due to a rare case (in dev machines) where bookmark progress can duplicate

* Re-enabled webtoon preference in reader settings. Refactored gotopage into it's own, dedicated handler to simplify logic.

* Moved the prefetching code to occur whenever the page number within infinite scroller changes. This results in an easier to understand functioning.

* Fixed isElementVisible() which was not properly calculating element visibility

* GoToPage going forwards is working as expected, going backwards is completly broken

* After performing a gotopage, make sure we update the scrolling direction based on the delta.

* Removed some stuff thats not used, split the prefetching code up into separate functions to prepare for a rewrite.

* Reworked prefetching to ensure we have a buffer of pages around ourselves. It is not fully tested, but working much better than previous implementation. Will be enhanced with DOM Pruning.

* Cleaned up some old cruft from the backend code

* Cleaned up the webtoon page change handler to use setPageNum, which will handle the correct prefetching of next/prev chapter

* More cleanup around the codebase

* Refactored the code to use a map to keep track of what is loaded or not, which works better than max/min in cases where you jump to a page that doesn't have anything preloaded and loads images out of order

* Fixed a bad placement of code for when you are unauthenticated, the code will now redirect to the original location you requested before you had to login.

* Some cleanup. Fixed the scrolling issue with prev page, spec seems to not work on intersection observer. using 0.01 instead of 0.0.
2021-07-19 18:55:01 -05:00
..
Migrations Manga Redesign (#321) 2021-06-24 19:31:42 -05:00
AppUserProgressRepository.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00
CollectionTagRepository.cs Collection Support (#234) 2021-05-30 17:24:23 -05:00
DataContext.cs Collection Support (#234) 2021-05-30 17:24:23 -05:00
DbFactory.cs Bugfix/sentry and fixes (#243) 2021-06-01 19:42:43 -05:00
FileRepository.cs Feat/usage stats collection (#317) 2021-06-20 17:26:35 -05:00
LibraryRepository.cs The big one (#396) 2021-07-17 14:03:11 -05:00
LogLevelOptions.cs Implemented a startup task that will instantiate all the DI so first API isn't having to eat that overhead. 2021-03-13 17:44:29 -06:00
Seed.cs Feat/usage stats collection (#317) 2021-06-20 17:26:35 -05:00
SeriesRepository.cs Manga Redesign (#321) 2021-06-24 19:31:42 -05:00
SettingsRepository.cs Lots of cleanup 2021-02-07 12:02:47 -06:00
UnitOfWork.cs Manga Redesign (#321) 2021-06-24 19:31:42 -05:00
UserRepository.cs Fixed a deployment bug where we weren't listening on port properly. New way will force firewall exception dialog on Windows and work across board. Implemented user preferences and ability to update them. 2021-02-06 13:08:48 -06:00
VolumeRepository.cs Webtoon Reader Fixup (#405) 2021-07-19 18:55:01 -05:00