Filtering First Pass (#442)
# Added - Added: Added "In Progress" view to see everything you are currently reading - Added: Added the ability to filter series based on format from "In Progress", "Recently Added", "Library Detail" pages. - Added: Added total items to the above pages to showcase total series within Kavita ============================== * Added filtering to recently added * Cleaned up the documentation on the APIs and removed params no longer needed. * Implemented Filtering on library detail, in progress, and recently added for format. UI is non-final. * Moved filtering to an expander panel * Cleaned up filtering UI a bit * Cleaned up some code and added titles on touched pages * Fixed recently added not re-rendering page * Removed commented out code * Version bump * Added an animation to the filtering section * Stashing changes, needing to switch lazy loading libraries out due to current version not trigging on dom mutation events * Finally fixed all the lazy loading issues and made it so pagination works without reloading the whole page.
This commit is contained in:
parent
434bcdae4c
commit
b9f20f4d19
29 changed files with 422 additions and 99 deletions
39
UI/Web/src/app/_models/series-filter.ts
Normal file
39
UI/Web/src/app/_models/series-filter.ts
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import { MangaFormat } from "./manga-format";
|
||||
|
||||
export interface FilterItem {
|
||||
title: string;
|
||||
value: any;
|
||||
selected: boolean;
|
||||
}
|
||||
|
||||
export interface SeriesFilter {
|
||||
mangaFormat: MangaFormat | null;
|
||||
}
|
||||
|
||||
export const mangaFormatFilters = [
|
||||
{
|
||||
title: 'Format: All',
|
||||
value: null,
|
||||
selected: false
|
||||
},
|
||||
{
|
||||
title: 'Format: Images',
|
||||
value: MangaFormat.IMAGE,
|
||||
selected: false
|
||||
},
|
||||
{
|
||||
title: 'Format: EPUB',
|
||||
value: MangaFormat.EPUB,
|
||||
selected: false
|
||||
},
|
||||
{
|
||||
title: 'Format: PDF',
|
||||
value: MangaFormat.PDF,
|
||||
selected: false
|
||||
},
|
||||
{
|
||||
title: 'Format: ARCHIVE',
|
||||
value: MangaFormat.ARCHIVE,
|
||||
selected: false
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue