Reduce requested chapter data in queries

This commit is contained in:
schroda
2024-07-02 16:20:28 +02:00
parent 9b8ace003d
commit 2fa1de578c
19 changed files with 400 additions and 181 deletions

View File

@@ -11,7 +11,7 @@ import { SvgIconTypeMap } from '@mui/material/SvgIcon';
import { ParseKeys } from 'i18next';
import { Location } from 'react-router-dom';
import {
GetChapterQuery,
GetChaptersReaderQuery,
GetExtensionQuery,
GetMangaQuery,
GetServerSettingsQuery,
@@ -181,8 +181,6 @@ export interface IMangaChapter {
chapter: IChapter;
}
export type TChapter = GetChapterQuery['chapter'];
export enum IncludeInGlobalUpdate {
EXCLUDE = 0,
INCLUDE = 1,
@@ -297,7 +295,7 @@ export interface IReaderProps {
initialPage: number;
settings: IReaderSettings;
manga: TManga;
chapter: TChapter;
chapter: GetChaptersReaderQuery['chapters']['nodes'][number];
nextChapter: () => void;
prevChapter: () => void;
}