1638 Commits

Author SHA1 Message Date
Joe Milazzo
a8f48a6e9d
OPDS Flattening (#1904)
* Flattening OPDS Structure

# Changed
- Flattened OPDS structure to reduce user taps.

* Fixing format

* Fixing book series titles

* Optimized file size to use pre-calculated data to avoid an I/O touch.

* Fixes #1898 by aligning all content headers to the correct MIME types

* Remove dead code

* Fixed a bug with continue point where it fails on chapters or volumes tagged with a range

---------

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
2023-03-30 16:45:46 -07:00
majora2007
449827f285 Bump versions by dotnet-bump-version. 2023-03-19 18:09:45 +00:00
Joe Milazzo
385f61f9f0
Tweaks (#1890)
* Updated number inputs with a more mobile friendly control

* Started writing lots of unit tests on PersonHelper to try and hammer out foreign constraint

* Fixes side-nav actionable alignment

* Added some unit tests

* Buffed out the unit tests

* Applied input modes throughout the app

* Fixed a small bug in refresh token validation to make it work correctly

* Try out a new way to block multithreading from interacting with people during series metadata update.

* Fixed the lock code to properly lock, which should help with any constraint issues.

* Locking notes

* Tweaked locking on people to prevent a constraint issue. This slows down the scanner a bit, but not much. Will tweak after validating on a user's server.

* Replaced all DBFactory.Series with SeriesBuilder.

* Replaced all DBFactory.Volume() with VolumeBuilder

* Replaced SeriesMetadata with Builder

* Replaced DBFactory.CollectionTag

* Lots of refactoring to streamline entity creation

* Fixed one of the unit tests

* Refactored all of new Library()

* Removed tag and genre

* Removed new SeriesMetadata

* Refactored new Volume()

* MangaFile()

* ReadingList()

* Refactored all of Chapter and ReadingList

* Add title to all event widget flows

* Updated Base Url to inform user it doesn't work for docker users with non-root user.

* Added unit test coverage to FormatChapterTitle and FormatChapterName.

* Started on Unit test for scanner, but need to finish it later.

---------

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
2023-03-19 10:52:44 -07:00
Kizaing
eec03d7e96 Bump versions by dotnet-bump-version. 2023-03-17 16:12:36 +00:00
Chris Plaatjes
dfb029e328
Merge pull request #1887 from Kareadita/bugfix/workflow-fixes
Fix workflow
2023-03-17 11:57:42 -04:00
Robbie Davis
0365fe4ea7 Fix workflow
# Fixed:
- Fixed ghcr.io build
- Updated PR action
2023-03-17 11:44:14 -04:00
majora2007
4f72784f73 Bump versions by dotnet-bump-version. 2023-03-17 15:15:43 +00:00
Robbie Davis
f41fed7a7b
Donate styling (#1886)
* Donate styling

# Changed
- Changed the styling and positioning of the donate button to still be visible but less intrusive and more cohesive to the application.

* Updated pr action

* Revert "Updated pr action"

This reverts commit d3f7c7b2edfdcdbb79acb9e7816247ef5ebc30ea.
2023-03-17 08:02:11 -07:00
majora2007
bade2293f6 Bump versions by dotnet-bump-version. 2023-03-17 14:44:44 +00:00
Chris Plaatjes
8296fafaa6
Added push to ghcr.io (#1885)
* Added container push to ghcr.io

* Updated login method
2023-03-17 07:28:18 -07:00
majora2007
a6d4b3ddf6 Bump versions by dotnet-bump-version. 2023-03-17 00:19:16 +00:00
Joe Milazzo
d070da2834
Some fixes from last release (#1884)
* Removed SecurityEvent middleware solution. It was out of scope originally.

* Fixed manage users still calling pending when the api is no more

* Added back the online indicator on manage users
2023-03-16 17:03:56 -07:00
majora2007
93bd7d7c19 Bump versions by dotnet-bump-version. 2023-03-16 22:20:22 +00:00
Joe Milazzo
49df0919e7
Security Event Logging & Bugfixes (rerelease) (#1883)
* Fixed bookmarking failing to convert to webp

* Brought the ag-swipe/ng-swipe code into Kavita due to being abandoned by developer and angular requirements.

* Fixed average reading time per week finally

* Cleaned up some extra decimals on time duration pipe

* Don't try to update index.html for base url on local. Fixed ag-swipe on prod mode.

* Updated a link on theme manager to point to the new github

* Range knobs should be primary color on firefox too

* Implemented the ability to get thumbnails of pages inside an archive or pdf.

* Updated packages and fixed opds-ps 1.2 issue

* Fixed lock file

* Allow Kavita's Swagger to hit instances with CORS

* Added IP/Request logging for Security Audits

* Linked up Summary tag from CBL into Kavita.

* Redid the migration so SecurityEvent now has UTC date as well.

* Split security logging to a separate file

* Update to new versions of checkout and setup

* Added a PR check on PR body to ensure that it doesn't contain any characters that break our discord hook.

* Updating action

* optimize regex in action

* Fixed an issue where fit to width would cause the actual height of the image to be shown for pagination bars, instead of rendered.

* Added some new code in GetPageFromFiles to ensure pages that exceed array map down to last file.

* Added comment about robots

* Fixed up unit tests for new ReaderService signature

* Kavita now cleans up empty reading lists at night

* Don't allow nightly cleanup to run if we are running media conversion tasks

* Fixed some bugs in typeahead, it should behave much more reliably.

* Fix an issue where emulate comic book wasn't extending to the bottom properly

* Added support for Series Chapter 001 Volume 001

* Refactor XFrameOptions="SameOrigins" out to allow users to override in appsettings.json.

* Added a rate limiter for some endpoints, but it doesn't seem to be triggering

* Fixed bad yaml

---------

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
2023-03-16 15:05:50 -07:00
Joe Milazzo
c10acb1279
Security Event Logging & Bugfixes (#1882)
* Fixed bookmarking failing to convert to webp

* Brought the ag-swipe/ng-swipe code into Kavita due to being abandoned by developer and angular requirements.

* Fixed average reading time per week finally

* Cleaned up some extra decimals on time duration pipe

* Don't try to update index.html for base url on local. Fixed ag-swipe on prod mode.

* Updated a link on theme manager to point to the new github

* Range knobs should be primary color on firefox too

* Implemented the ability to get thumbnails of pages inside an archive or pdf.

* Updated packages and fixed opds-ps 1.2 issue

* Fixed lock file

* Allow Kavita's Swagger to hit instances with CORS

* Added IP/Request logging for Security Audits

* Linked up Summary tag from CBL into Kavita.

* Redid the migration so SecurityEvent now has UTC date as well.

* Split security logging to a separate file

* Update to new versions of checkout and setup

* Added a PR check on PR body to ensure that it doesn't contain any characters that break our discord hook.

* Updating action

* optimize regex in action

* Fixed an issue where fit to width would cause the actual height of the image to be shown for pagination bars, instead of rendered.

* Added some new code in GetPageFromFiles to ensure pages that exceed array map down to last file.

* Added comment about robots

* Fixed up unit tests for new ReaderService signature

* Kavita now cleans up empty reading lists at night

* Don't allow nightly cleanup to run if we are running media conversion tasks

* Fixed some bugs in typeahead, it should behave much more reliably.

* Fix an issue where emulate comic book wasn't extending to the bottom properly

* Added support for Series Chapter 001 Volume 001

* Refactor XFrameOptions="SameOrigins" out to allow users to override in appsettings.json.

* Added a rate limiter for some endpoints, but it doesn't seem to be triggering

---------

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
2023-03-16 13:57:34 -07:00
majora2007
21203414f0 Bump versions by dotnet-bump-version. 2023-03-14 18:45:59 +00:00
Joe Milazzo
0617d71d6b
Fixed an issue where docker installs were trying to update wwwroot, when docker doesn't do reverse proxy stuff. (#1880)
Fixed a bug in reading list date calculations.
2023-03-14 11:31:00 -07:00
majora2007
71cb26752d Bump versions by dotnet-bump-version. 2023-03-14 14:03:07 +00:00
Joe Milazzo
fd6ee42f5f
Reading List Polish (#1879)
* Use Reading Order to count epub pages rather than raw HTML files.

* Send email on background thread for initial invite flow.

* Reorder default writing style for new users so Horizontal is default

* Changed reading activity to use average hours read rather than events to bring more meaningful data.

* added ability to start reading incognito from the top of series detail, needs a bit of styling help though.

* Refactored extensions out into their own package, added new fields for reading list to cover total run, cbl import now takes those dates and overrides on import. Replaced many instances of numbers to be comma separated.

* Added ability to edit reading list run start and end year/month. Refactored some code for valid month/year into a helper method.

* Added a way to see the reading list's release years.

* Added some merged image code, but had to remove due to cover dimensions not fixed.

* tweaked style for accessibility mode on reading list items

* Tweaked css for non virtualized and virtualized containers

* Fixed release updates failing

* Commented out the merge code.

* Typo on words read per year

* Fixed unit tests

* Fixed virtualized scroll

* Cleanup CSS
2023-03-14 06:45:22 -07:00
majora2007
266f302823 Bump versions by dotnet-bump-version. 2023-03-11 13:59:01 +00:00
Gazy Mahomar
2cff1bcebe
Base Url implementation (#1824)
* Base Url implementation

* PR requested changes
2023-03-11 05:47:40 -08:00
majora2007
74f62fd5e2 Bump versions by dotnet-bump-version. 2023-03-11 01:57:40 +00:00
CKolle
1f8b591ed5
Reworks how the image sizes in the book reader gets handled (#1872)
* Fixes bus in vertical writing mode.

* Reworks how the images gets resized. They should be more adaptive and pages with single images will get centered.

* Adds back an unintended change

* Revert "Fixes bus in vertical writing mode."

This reverts commit a1cf9675def45fd626a149d90f573104b5d280cd.

* Added debounce and timeout to the updateImageSize to prevent it from getting run before the page loads

* Fixes semicolons missing semicolons

* Improves the detection in checkSingleImagePage.
2023-03-10 19:40:27 -06:00
majora2007
e5e2d02e04 Bump versions by dotnet-bump-version. 2023-03-11 01:25:38 +00:00
Joe Milazzo
bd19b282d5
Misc Fixes + Enhancements (#1875)
* Moved Collapse Series with relationships into a user preference rather than library setting.

* Fixed bookmarks not converting to webp after initial save

* Fixed a bug where when merging we'd print out a duplicate series error when we shouldn't have

* Fixed a bug where clicking on a genre or tag from server stats wouldn't load all-series page in a filtered state.

* Implemented the ability to have Login role and thus disable accounts.

* Ensure first time flow gets the Login role

* Refactored user management screen so that pending users can be edited or deleted before the end user accepts the invite. A side effect is old legacy users that were here before email was required can now be deleted.

* Show a progress bar under the main series image on larger viewports to show whole series progress.

* Removed code no longer needed

* Cleanup tags, people, collections without connections after editing series metadata.

* Moved the Entity Builders to the main project
2023-03-10 17:09:38 -08:00
majora2007
c62e594792 Bump versions by dotnet-bump-version. 2023-03-10 14:01:31 +00:00
CKolle
549292eb75
Fixes bus in vertical writing mode. (#1871) 2023-03-10 05:50:18 -08:00
majora2007
ef89a2500e Bump versions by dotnet-bump-version. 2023-03-10 01:00:36 +00:00
Joe Milazzo
47269b4c51
OPDS-PS v1.2 Support + a few bugfixes (#1869)
* Fixed up a localization lookup test case

* Refactored some webp to a unified method

* Cleaned up some code

* Expanded webp conversion for covers to all entities

* Code cleanup

* Prompt the user when they are about to delete multiple series via bulk actions

* Aligned Kavita to OPDS-PS 1.2.

* Fixed a bug where clearing metadata filter of series name didn't clear the actual field.

* Added some documentation

* Refactored how covert covers to webp works. Now we will handle all custom covers for all entities. Volumes and Series will not be touched but instead be updated via a RefreshCovers call. This will fix up the references much faster.

* Fixed up the OPDS-PS 1.2 attributes to only show on PS links
2023-03-09 16:41:42 -08:00
majora2007
1f34068662 Bump versions by dotnet-bump-version. 2023-03-09 21:22:52 +00:00
Robbie Davis
a692c0c531
Fix for themes not applying (#1873)
# Fixed:
- Fixed: Fixed an issue where themes would not apply properly.
2023-03-09 15:05:14 -06:00
majora2007
c599907928 Bump versions by dotnet-bump-version. 2023-03-07 21:31:13 +00:00
Joe Milazzo
b55d9e3994
CBL Import Rework (#1862)
* Fixed a typo in a log

* Invalid XML files now "validate" correctly by sending back a failure.

* Cleaned up messaging on backend and frontend to provide some linking on series name when collision, handle corrupt xml files, etc.

* When reading list conflict occurs, show the reading list name that's conflicting. Started refactoring the code to allow multiple files to be imported at once.

* Started adding new CBL elements for some enhancements I have planned with maintainers.

* Default to empty string for IpAddress to allow to fallback into existing experience

* Tweaked the layout of reading list page (not complete), moved some not used much controls to page extras and reordered the buttons for reading list

* Edit Reading Lists now allows selection of cover image from existing items

* Fixed a bug where cover chooser base64 to image would fail to write webp files.

* Refactored the validate step to now handle multiple files in one go.

* Clean up code

* Don't show CBL name if there were xml errors that prevented showing it

* Don't allow user to go prev step after they perform the import.

* Cleaned up the heading code for accordions

* Fixed a bug with import keeping failed items

* Sort the failures to the bottom of result windows

* CBL import is pretty solid. Need one pass from Robbie on Reading List Page
2023-03-07 13:18:26 -08:00
therobbiedavis
c846b36047 Bump versions by dotnet-bump-version. 2023-03-07 03:46:17 +00:00
Robbie Davis
a491de0a04
Default to empty string for IpAddress to allow to fallback into existing experience (#1859)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
2023-03-06 21:25:45 -05:00
majora2007
f85e131af9 Bump versions by dotnet-bump-version. 2023-03-06 21:18:12 +00:00
Robbie Davis
6d9869567e
Fix for docker bind (#1857)
#Added:
- Added: null IpAddresses to appsettings
2023-03-06 13:03:59 -08:00
majora2007
646b3835d4 Bump versions by dotnet-bump-version. 2023-03-06 20:48:36 +00:00
Joe Milazzo
15cb672b30
Bumped css budget (#1856) 2023-03-06 12:34:31 -08:00
majora2007
cac8d915cf Bump versions by dotnet-bump-version. 2023-03-06 20:18:02 +00:00
CKolle
3484211132
Added vertical reading mode to the book reader (#1787)
* Add vertical reading mode support and update API for reading mode preference

* Removed dead code, added a fix for scroll end margins in chrome when in vertical mode(book reader). Added back some comments

* Added Description()] annotation for the ReadingMode enum, like other enums, and added summary documentation

* Added the ability to scroll in vertical writing style without holding down shift. Also renamed the book reader's readingMode to writing style.

* Renamed the BookReadingMode to BookWritingStyle. And changed the migrations accordingly.

* Fixed some minor bugs, regarding scrolling and vertical writing style when the book settings is open.

* Fixed a minor bug where the graphics regarding the current page would require the mouse to be moved before it got updated when switching between writing styles.

* Fixed some bugs regarding furigana getting a bit cropped same for images

* Add vertical reading mode support and update API for reading mode preference

* Removed dead code, added a fix for scroll end margins in chrome when in vertical mode(book reader). Added back some comments

* Added Description()] annotation for the ReadingMode enum, like other enums, and added summary documentation

* Added the ability to scroll in vertical writing style without holding down shift. Also renamed the book reader's readingMode to writing style.

* Renamed the BookReadingMode to BookWritingStyle. And changed the migrations accordingly.

* Fixed some minor bugs, regarding scrolling and vertical writing style when the book settings is open.

* Fixed a minor bug where the graphics regarding the current page would require the mouse to be moved before it got updated when switching between writing styles.

* Fixed some bugs regarding furigana getting a bit cropped same for images

* Added reset support for writing style, after rebase.

* Changes pagination for vertical scrolling such as the user will need to scroll to end before being able to paginate. Previously it felt unnatural and the user could accidentally paginate while scrolling on mobile.

* Pagination would not stick to the left if the content was smaller than the reader in vertical writing style.

* Fixed summary text

* Added missing line, fixes build error

* Addresses the comments given in code-review.

* Moved columnGap outside the class, and changed it to a const
2023-03-06 12:02:29 -08:00
therobbiedavis
5fb942bfe1 Bump versions by dotnet-bump-version. 2023-03-06 19:49:38 +00:00
Robbie Davis
56243758d4
fix (#1855) 2023-03-06 14:36:17 -05:00
Robbie Davis
87a29bc111
Docker bind fix (#1854)
* Fixing docker bind issue

# Fixed:
- Fixed an issue for docker users conflicting with a previous feature inclusion for multiple IP addresses

* build error fix

* re-raise
2023-03-06 11:07:13 -08:00
Robbie Davis
9e8f1cd04c
Docker bind fix (#1853)
* Fixing docker bind issue

# Fixed:
- Fixed an issue for docker users conflicting with a previous feature inclusion for multiple IP addresses

* build error fix
2023-03-06 10:42:37 -08:00
Robbie Davis
4c837170d7
Fixing docker bind issue (#1852)
# Fixed:
- Fixed an issue for docker users conflicting with a previous feature inclusion for multiple IP addresses
2023-03-06 10:33:55 -08:00
majora2007
c07f174baf Bump versions by dotnet-bump-version. 2023-03-06 15:02:18 +00:00
Joe Milazzo
94830300f2
Fixed docker instances not being able to start due to misconfigured default for IpAddress binding (#1851) 2023-03-06 06:43:53 -08:00
majora2007
84fe4b849b Bump versions by dotnet-bump-version. 2023-03-05 22:12:12 +00:00
Joe Milazzo
45e69b087e
Added noindex to prevent SEO from indexing user's sites. Reverted http3 support as docker users were having port issue (#1850) 2023-03-05 14:00:21 -08:00