2237 Commits

Author SHA1 Message Date
Robbie Davis
f88f62afcb
Tidying up (#1944)
* Fixing nav logo

* Adding emulate book for single renderer

* enabling control

* forcing hardware acceleration on infinite scroller

* Fixing review comments

- Refactoring bookshadow to use shared css
- Adding issue comment for hardware acceleration hack

* Fixing bookshadow happening on first and last page
2023-04-26 07:48:23 -07:00
majora2007
d14e8823c8 Bump versions by dotnet-bump-version. 2023-04-25 00:03:07 +00:00
Joe Milazzo
19198beadf
Reading List Bug (#1943)
* Refactored how we calculate start and end dates for a reading list generated from Scan.

* Cleaned up the logging messages a bit

* By default, allow DB statements to include params, since there's no PPI involved.
2023-04-24 16:51:15 -07:00
majora2007
868d20a18e Bump versions by dotnet-bump-version. 2023-04-22 19:56:40 +00:00
Joe Milazzo
3eb2874bbd
Logging Change (#1941)
* Tweaked trace logging for foreign constraint issue.

Removed some locks where we werent touching important code that needed locking on.

* Reverted back some code
2023-04-22 12:43:41 -07:00
majora2007
201f8526f9 Bump versions by dotnet-bump-version. 2023-04-22 18:19:46 +00:00
Joe Milazzo
c70154f428
Release Testing Day 2 (#1937)
* Removed unneded ngModel on password field

* Fixed some bad validation messages on Edit Reading List modal and disabled save button

* Added a lot of trace code to help debug a foreign constraint issue.

* Fixed a bug where after a series is scanned, generate covers for series didn't respect webp cover generation.

* Fixed library last scan being stored in Utc, but expected to be server time.

* Fixed up some of that trace logging being way too verbose. Fixed a case where when a missing storyarc number, the whole pair was dropped. Now, it will default that item to the end of the reading list.

Fixed a bug where Start and End dates weren't being calculated after generating a reading list.

* Fixed a bug where the default admin user for reading list creation from files was selecting the wrong user.

Changed so that when there is a bad pair (aka number missing) and only 1 pair, then we wont constantly reorder the item.

* Fixed unit test
2023-04-22 11:04:09 -07:00
majora2007
66f84a0ee3 Bump versions by dotnet-bump-version. 2023-04-19 22:53:53 +00:00
Joe Milazzo
e3467457ea
Release Testing Day 1 (#1933)
* Enhance plugin/authenticate to allow RefreshToken to be returned as well.

* When typing a series name, min, or max filter, press enter to apply metadata filter.

* Cleaned up the documentation around MaxCount and TotalCount

* Fixed a bug where PublicationStatus wasn't being correctly set due to some strange logic I coded.

* Fixed bookmark mode not having access to critical page dimensions. Fetching bookmark info api now returns dimensions by default.

* Fixed pagination scaling code for different fitting options

* Fixed missing code to persist page split in manga reader

* Removed unneeded prefetch of blank images in bookmark mode
2023-04-19 15:41:21 -07:00
majora2007
f99a75c2d7 Bump versions by dotnet-bump-version. 2023-04-17 00:41:54 +00:00
Joe Milazzo
e7618861e0
Pre-Release Shakeout (#1932)
* Allow users to setup an account with a fake email and the same username without hitting the validate username code.

* Fixed a bug where opds url could have //.

Fixed a bug where baseurl wasn't being used for invite link generation

* Fixed enum mismatch causing age rating to display incorrectly on UI
2023-04-16 17:28:21 -07:00
majora2007
202a35dc7c Bump versions by dotnet-bump-version. 2023-04-15 15:57:04 +00:00
Joe Milazzo
4791da1447
Library Settings for Reading List Creation (#1930)
* Added the code for Library Settings to allow turning off Reading List creation.

* Fixed a typo
2023-04-15 08:42:22 -07:00
Joe Milazzo
7f53eadfda
ComicInfo Derived Reading Lists (#1929)
* Implemented the ability to generate reading lists from StoryArc and StoryArcNumber ComicInfo fields.

* Refactored to add AlternativeSeries support.

* Fixed up the handling when we need to update reading list where order is already present.

* Refactored how skipping empty reading list pairs works
2023-04-15 08:28:49 -07:00
majora2007
1e535d27fa Bump versions by dotnet-bump-version. 2023-04-15 12:13:49 +00:00
Joe Milazzo
10e4b318cb
Bugfixes from last PR (#1928)
* Fixed a regression where confirm-email was validating for a real email when it's not required.

* Fixed fit to screen breaking as canvas was still showing on the screen when it should have been hidden.

* Fixed a missing age rating in the pipe

* Fixed fit to height not properly aligning the image

* Tweaked Startup check for base url
2023-04-15 04:58:54 -07:00
majora2007
2b1570b144 Bump versions by dotnet-bump-version. 2023-04-15 00:57:01 +00:00
Joe Milazzo
21a9f28923
Random Cleanup + OPDS Base Url Support (#1926)
* Updated a ton of dependencies. PDFs reader got a big update from PDF.js 2.6 -> 3.x

* Rolled back fontawesome update

* Updated to latest angular patch. Fixed search being too long instead of just to the end of the browser screen.

* Fixed alignment on download icon for download indicator in cards

* Include progress information on Want To Read API and when marking something as Read, perform cleanup service on want to read.

* Removed mark-read updating want to read. As there are series restrictions and it could be misleading.

* Tweaked login page spacing when form is dirty

* Replaced an object instantiation

* Commented out a few tests that always break when updating NetVips (but always work)

* Updated ngx-toastr

* Added styles for alerts to Kavita. They were somehow missing. Fixed an issue where when OPDS was disabled, user preferences wouldn't tell them.

* Wired up a reset base url button to match Ip Addresses

* Disable ipAddress and port for docker users

* Removed cache dir since it's kinda pointless currently

* Started the update for OPDS BaseUrl support

* Fixed OPDS url not reflecting base url on localhost

* Added extra plumbing to allow sending a real email when testing a custom service.

* Implemented OPDS support under Base Url. Added pagination to all APIs where applicable.

* Added a swallowing of permission denied on Updating baseurl in index.html for inapplicable users.

* Fixed a bad test
2023-04-14 17:44:35 -07:00
majora2007
1bf4fde58f Bump versions by dotnet-bump-version. 2023-04-14 19:04:35 +00:00
Andy
c8a16a4370
Bugfix/base url in docker (#1901)
* fixed: BaseUrl option is not supported in Docker

- discussion in #1824, the checks should not have been added in the first place

* changed: contributors require .NET 7.0+ in order to build
2023-04-14 11:48:44 -07:00
majora2007
f80382ecef Bump versions by dotnet-bump-version. 2023-04-13 20:20:26 +00:00
Joe Milazzo
5c1e9c0521
Manga Reader Fixes (#1925)
* Fixed up an issue where image might be cut off in fit to height

* Removed some calls to backend for translating age rating to a string

* Fixed an issue with sizing on page splitting right to left.

* Ensure all image access requires apikey

* Removed a TODO
2023-04-13 13:07:11 -07:00
majora2007
ff18389954 Bump versions by dotnet-bump-version. 2023-04-13 15:31:51 +00:00
Joe Milazzo
154f6a8140
More Google Security Changes (#1923)
* Removed packages not used anymore

* Reverted removing lazysizes

* Removed the svg for image in case it's causing google security issues.

* Removed unneeded service
2023-04-13 08:19:18 -07:00
majora2007
75168842ed Bump versions by dotnet-bump-version. 2023-04-03 19:55:56 +00:00
Robbie Davis
552a5fe947
Password Validation and Google phishing error pass (#1913)
* Updating password validation

# Changed:
- Changed: Updated password validation to use pattern so user can not submit or create passwords <6 or >32 characters long.

* Removed the svg for image in case it's causing google security issues.

---------

Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
2023-04-03 14:40:58 -05:00
majora2007
34e556f0ab Bump versions by dotnet-bump-version. 2023-03-31 11:21:26 +00:00
Robbie Davis
139460d19c
OPDS formatting fix (#1905)
# Fixed
- Fixed a formatting issue where there was a unnecessary - at the beginning of titles. (develop)

# Changed
- Updated github action version. (develop)
2023-03-31 06:05:54 -05:00
majora2007
97baab44a9 Bump versions by dotnet-bump-version. 2023-03-30 23:59:50 +00:00
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