Kavita/UI/Web
Joe Milazzo 7616eb5b0f
UTC Dates + CDisplayEx API Enhancements (#1781)
* Introduced a new claim on the Token to get UserId as well as Username, thus allowing for many places of reduced DB calls. All users will need to reauthenticate.

Introduced UTC Dates throughout the application, they are not exposed in all DTOs, that will come later when we fully switch over. For now, Utc dates will be updated along side timezone specific dates.

Refactored get-progress/progress api to be 50% faster by reducing how much data is loaded from the query.

* Speed up the following apis:
collection/search, download/bookmarks, reader/bookmark-info, recommended/quick-reads, recommended/quick-catchup-reads, recommended/highly-rated, recommended/more-in, recommended/rediscover, want-to-read/

* Added a migration to sync all dates with their new UTC counterpart.

* Added LastReadingProgressUtc onto ChapterDto for some browsing apis, but not all.

Added LastReadingProgressUtc to reading list items.

Refactored the migration to run raw SQL which is much faster.

* Added LastReadingProgressUtc onto ChapterDto for some browsing apis, but not all.

Added LastReadingProgressUtc to reading list items.

Refactored the migration to run raw SQL which is much faster.

* Fixed the unit tests

* Fixed an issue with auto mapper which was causing progress page number to not get sent to UI

* series/volume has chapter last reading progress

* Added filesize and library name on reading list item dto for CDisplayEx.

* Some minor code cleanup

* Forgot to fill a field
2023-02-11 04:01:24 -08:00
..
.github/workflows On Deck + Misc Fixes and Changes (#1215) 2022-04-11 15:43:40 -07:00
src UTC Dates + CDisplayEx API Enhancements (#1781) 2023-02-11 04:01:24 -08:00
.editorconfig Angular 15 (#1764) 2023-01-30 06:27:52 -08:00
.eslintrc.json Angular 15 (#1764) 2023-01-30 06:27:52 -08:00
.gitignore On Deck + Misc Fixes and Changes (#1215) 2022-04-11 15:43:40 -07:00
angular.json Angular 15 (#1764) 2023-01-30 06:27:52 -08:00
LICENSE The big one (#396) 2021-07-17 14:03:11 -05:00
package-lock.json Angular 15 (#1765) 2023-01-30 10:47:34 -08:00
package.json Angular 15 (#1764) 2023-01-30 06:27:52 -08:00
README.md [Manga Reader] Swipe Support (#1735) 2023-01-09 06:48:18 -08:00
tsconfig.app.json Angular 15 (#1764) 2023-01-30 06:27:52 -08:00
tsconfig.json Angular 15 (#1764) 2023-01-30 06:27:52 -08:00
tsconfig.spec.json The big one (#396) 2021-07-17 14:03:11 -05:00

Kavita Webui

This project was generated with Angular CLI version 11.0.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files. Your backend must be served on port 5000.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Run npx playwright test --reporter=line or npx playwright test to run e2e tests.

Connecting to your dev server via your phone

ng serve --host 0.0.0.0 and update environment.ts to your local ip.