Kavita/API/Data/Migrations
Joseph Milazzo a01613f80f
EPUB Support (#178)
* Added book filetype detection and reorganized tests due to size of file

* Added ability to get basic Parse Info from Book and Pages.

* We can now scan books and get them in a library with cover images.

* Take the first image in the epub if the cover isn't set.

* Implemented the ability to unzip the ebup to cache. Implemented a test api to load html files.

* Just some test code to figure out how to approach this.

* Fixed some merge conflicts

* Removed some dead code from merge

* Snapshot: I can now load everything properly into the UI by rewriting the urls before I send them back. I don't notice any lag from this method. It can be optimized further.

* Implemented a way to load the content in the browser not via an iframe.

* Added a note

* Anchor mappings is complete. New anchors are updated so references now resolve to javascript:void() for UI to take care of internally loading and the appropriate page is mapped to it. Anchors that are external have target="_blank" added so they don't force you out of the app and styles are of course inlined.

* Oops i need this

* Table of contents api implemented (rough) and some small enhancements to codebase for books.

* GetBookPageResources now only loads files from within the book. Nested chapter list support and images now use html parsing instead of string parsing.

* Fonts now are remapped to load from endpoint.

* book-resources now uses a key, ensuring the file is in proper format for lookup. Changed chapter list based on structure with one HEADER and nested chapters.

* Properly handle svg resource requests and when there are part anchors that are clickable, make sure we handle them in the UI by adding a kavita-page handler.

* Add Chapter group page even if one isn't set by using first page (without part) from nestedChildren.

* Added extra debug code for issue #163.

* Added new user preferences for books and updated the css so we scope it to our reading section.

* Cleaned up style code

* Implemented ability to save book preferences and some cleanup on existing apis.

* Added an api for checking if a user has read something in a library type before.

* Forgot to make sure the has reading progress is against a user lol.

* Remove cacheservice code for books, sine we use an in-memory method

* Handle svg images as well

* Enhanced cover image extraction to check for a "cover" image if the cover image wasn't set in OPF before falling back to the first image.

* Fixed an issue with special books not properly generating metadata due to not having filename set.

* Cleanup, removed warmup task code from statup/program and changed taskscheduler to schedule tasks on startup only (or if tasks are changed from UI).

* Code cleanup

* Code cleanup

* So much code. Lots of refactors to try to test scanner service. Moved a lot of the queries into Extensions to allow to easier test, even though it's hacky. Support @font-face src:url swaps with ' and ". Source summary information from epubs.

* Well...baseURL needs to come from BE and not from UI lol.

* Adjusted migrations so default values match Entity

* Removed comment

* I think I finally fixed #163! The issue was that when i checked if it had a parserInfo, i wasn't considering that the chapter range might have a - in it (0-6) and so when the code to check if range could parse out a number failed, it treated it like a special and checked range against info's filename.

* Some bugfixes

* Lots of testing, extracting code to make it easier to test. This code is buggy, but fixed a bug where 1) If we changed the normalization code, we would remove the whole db during a scan and 2) We weren't actually removing series properly.

Other than that, code is being extracted to remove duplication and centralize logic.

* More code cleanup and test cleanup to ensure scan loop is working as expected and matches expectaions from tests.

* Cleaned up the code and made it so if I change normalization, which I do in this branch, it wont break existing DBs.

* Some comic parser changes for partial chapter support.

* Added some code for directory service and scanner service along with python code to generate test files (not used yet). Fixed up all the tests.

* Code smells
2021-04-28 16:16:22 -05:00
..
20201213205325_AddUser.cs Added User with ability to login and register. By default, user is not an admin. DTO expects an integer and will convert to Boolean. 2020-12-13 16:07:25 -06:00
20201213205325_AddUser.Designer.cs Added User with ability to login and register. By default, user is not an admin. DTO expects an integer and will convert to Boolean. 2020-12-13 16:07:25 -06:00
20201215195007_AddedLibrary.cs Lots of changes to get code ready to add library. 2020-12-17 11:27:19 -06:00
20201215195007_AddedLibrary.Designer.cs Lots of changes to get code ready to add library. 2020-12-17 11:27:19 -06:00
20201218173135_ManyToManyLibraries.cs Added new many to many migration for libraries and users. Add Library now works and you can get Library (entity) objects from a user. LibraryDto project is upcoming. 2020-12-18 12:01:45 -06:00
20201218173135_ManyToManyLibraries.Designer.cs Added new many to many migration for libraries and users. Add Library now works and you can get Library (entity) objects from a user. LibraryDto project is upcoming. 2020-12-18 12:01:45 -06:00
20201221141047_IdentityAdded.cs Forgot to add migrations 2020-12-21 11:18:51 -06:00
20201221141047_IdentityAdded.Designer.cs Forgot to add migrations 2020-12-21 11:18:51 -06:00
20201224155621_MiscCleanup.cs Added Hangfire with LiteDB for a task running system. At the most basic, this allows us to monitor tasks running on the system (during dev only) and run tasks on a reoccuring or ad-hoc basis. 2020-12-26 14:03:35 -06:00
20201224155621_MiscCleanup.Designer.cs Added Policy for getUsers and moved some APIs. 2020-12-24 10:13:22 -06:00
20201229190216_SeriesAndVolumeEntities.cs Rough version of Saving Series, Volumes, and MangaFiles to the DB. Relies on Cascaded delete rather than manually handling updating of file changes. 2020-12-30 11:30:12 -06:00
20201229190216_SeriesAndVolumeEntities.Designer.cs Rough version of Saving Series, Volumes, and MangaFiles to the DB. Relies on Cascaded delete rather than manually handling updating of file changes. 2020-12-30 11:30:12 -06:00
20210101180935_AddedCoverImageToSeries.cs Fixed a bug in ScanLibrary that caused duplicated Volumes. Implemented APIs for navigating down to Volume for webui. 2021-01-01 14:04:31 -06:00
20210101180935_AddedCoverImageToSeries.Designer.cs Fixed a bug in ScanLibrary that caused duplicated Volumes. Implemented APIs for navigating down to Volume for webui. 2021-01-01 14:04:31 -06:00
20210102165536_EntityTimestamps.cs Added ability to automatically track last modified and created timestamps for entities via an interface. DBContext will automatically update for us. 2021-01-02 10:59:52 -06:00
20210102165536_EntityTimestamps.Designer.cs Added ability to automatically track last modified and created timestamps for entities via an interface. DBContext will automatically update for us. 2021-01-02 10:59:52 -06:00
20210102173326_VolumeNumberRefactor.cs Refactored Volume to have Name and Number (int) so that we can properly sort and still handle possible split volumes. 2021-01-02 12:21:36 -06:00
20210102173326_VolumeNumberRefactor.Designer.cs Refactored Volume to have Name and Number (int) so that we can properly sort and still handle possible split volumes. 2021-01-02 12:21:36 -06:00
20210103201043_RemoveUserIsAdmin.cs Added migration for removing IsAdmin column since we use IdentityService Roles instead. 2021-01-03 14:16:06 -06:00
20210103201043_RemoveUserIsAdmin.Designer.cs Added migration for removing IsAdmin column since we use IdentityService Roles instead. 2021-01-03 14:16:06 -06:00
20210103230812_SeriesCoverImage.cs adding initial coverimage functionality 2021-01-03 19:50:10 -06:00
20210103230812_SeriesCoverImage.Designer.cs adding initial coverimage functionality 2021-01-03 19:50:10 -06:00
20210104011624_VolumeCoverImage.cs adding initial coverimage functionality 2021-01-03 19:50:10 -06:00
20210104011624_VolumeCoverImage.Designer.cs adding initial coverimage functionality 2021-01-03 19:50:10 -06:00
20210109205034_CacheMetadata.cs Refactored ScanLibrary to produce page numbers on the Manga File, Format and to update existing series/volumes rather than always create new entries. 2021-01-09 15:27:04 -06:00
20210109205034_CacheMetadata.Designer.cs Refactored ScanLibrary to produce page numbers on the Manga File, Format and to update existing series/volumes rather than always create new entries. 2021-01-09 15:27:04 -06:00
20210111231840_VolumePages.cs Refactored volume to contain pages and removed /reader/info API endpoint. 2021-01-11 17:36:11 -06:00
20210111231840_VolumePages.Designer.cs Refactored volume to contain pages and removed /reader/info API endpoint. 2021-01-11 17:36:11 -06:00
20210114214506_UserProgress.cs Very messy code that implements read status tracking. Needs major cleanup. 2021-01-17 15:05:27 -06:00
20210114214506_UserProgress.Designer.cs Very messy code that implements read status tracking. Needs major cleanup. 2021-01-17 15:05:27 -06:00
20210117180406_ReadStatusModifications.cs Very messy code that implements read status tracking. Needs major cleanup. 2021-01-17 15:05:27 -06:00
20210117180406_ReadStatusModifications.Designer.cs Very messy code that implements read status tracking. Needs major cleanup. 2021-01-17 15:05:27 -06:00
20210117181421_SeriesPages.cs Very messy code that implements read status tracking. Needs major cleanup. 2021-01-17 15:05:27 -06:00
20210117181421_SeriesPages.Designer.cs Very messy code that implements read status tracking. Needs major cleanup. 2021-01-17 15:05:27 -06:00
20210119213837_AppUserRatingAndReviews.cs Implemented ability to leave a rating (up to 5 stars) and a text review (not UI supported until v0.2). 2021-01-19 17:06:26 -06:00
20210119213837_AppUserRatingAndReviews.Designer.cs Implemented ability to leave a rating (up to 5 stars) and a text review (not UI supported until v0.2). 2021-01-19 17:06:26 -06:00
20210121180051_AddedServerSettings.cs Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
20210121180051_AddedServerSettings.Designer.cs Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
20210121215532_ServerSettingsAdjustment.cs Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
20210121215532_ServerSettingsAdjustment.Designer.cs Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
20210122165809_ServerSettingsChange.cs Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
20210122165809_ServerSettingsChange.Designer.cs Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
20210122172455_ServerSettingsPrimaryKey.cs Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
20210122172455_ServerSettingsPrimaryKey.Designer.cs Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit) 2021-01-23 09:01:10 -06:00
20210128143348_SeriesVolumeChapterChange.cs Refactored DB to be Series->Volumes->Chapters instead. All functionality that previously worked still works. Cleanup still needed. 2021-02-01 09:29:11 -06:00
20210128143348_SeriesVolumeChapterChange.Designer.cs Refactored DB to be Series->Volumes->Chapters instead. All functionality that previously worked still works. Cleanup still needed. 2021-02-01 09:29:11 -06:00
20210128201832_MangaFileChapterRelationship.cs Refactored DB to be Series->Volumes->Chapters instead. All functionality that previously worked still works. Cleanup still needed. 2021-02-01 09:29:11 -06:00
20210128201832_MangaFileChapterRelationship.Designer.cs Refactored DB to be Series->Volumes->Chapters instead. All functionality that previously worked still works. Cleanup still needed. 2021-02-01 09:29:11 -06:00
20210203164258_ServerSettingsKey.cs Ability to update settings. Take effect on next reboot. 2021-02-04 16:49:48 -06:00
20210203164258_ServerSettingsKey.Designer.cs Ability to update settings. Take effect on next reboot. 2021-02-04 16:49:48 -06:00
20210205220227_UserPreferences.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
20210205220227_UserPreferences.Designer.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
20210207231256_SeriesNormalizedName.cs A hefty refactor of the ScanLibrary code. There were significant fallouts due to duplicate entities getting created and SingleOrDefaults failing. 2021-02-08 12:03:52 -06:00
20210207231256_SeriesNormalizedName.Designer.cs A hefty refactor of the ScanLibrary code. There were significant fallouts due to duplicate entities getting created and SingleOrDefaults failing. 2021-02-08 12:03:52 -06:00
20210225150830_AddLocalizedName.cs Implemented the ability to correct a match from UI and further scans will show that new Series name. 2021-03-08 09:33:35 -06:00
20210225150830_AddLocalizedName.Designer.cs Implemented the ability to correct a match from UI and further scans will show that new Series name. 2021-03-08 09:33:35 -06:00
20210315134028_SearchIndexAndProgressDates.cs Hangfire now dies gracefully when using CTRL+C rather than Stop button in Rider. Implemented one stream method for testing. Regenerated a few migrations due to oversight in index not taking account of library. 2021-03-15 08:43:43 -05:00
20210315134028_SearchIndexAndProgressDates.Designer.cs Hangfire now dies gracefully when using CTRL+C rather than Stop button in Rider. Implemented one stream method for testing. Regenerated a few migrations due to oversight in index not taking account of library. 2021-03-15 08:43:43 -05:00
20210322212724_MangaFileToPages.cs Some code cleanup 2021-03-23 12:22:47 -05:00
20210322212724_MangaFileToPages.Designer.cs Some code cleanup 2021-03-23 12:22:47 -05:00
20210323213507_LastModifiedOnMangaFiles.cs When we scan a library, store the last write time for a file so we can skip page calculation if there were no modifications. 2021-03-23 17:28:48 -05:00
20210323213507_LastModifiedOnMangaFiles.Designer.cs When we scan a library, store the last write time for a file so we can skip page calculation if there were no modifications. 2021-03-23 17:28:48 -05:00
20210330134414_IsSpecialOnChapters.cs Special Grouping (#134) 2021-03-31 12:10:26 -05:00
20210330134414_IsSpecialOnChapters.Designer.cs Special Grouping (#134) 2021-03-31 12:10:26 -05:00
20210419222000_BookReaderPreferences.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00
20210419222000_BookReaderPreferences.Designer.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00
20210419234652_BookReaderPreferencesFontSize.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00
20210419234652_BookReaderPreferencesFontSize.Designer.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00
20210423132900_CustomChapterTitle.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00
20210423132900_CustomChapterTitle.Designer.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00
DataContextModelSnapshot.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00