Save chapter list options on server
This commit is contained in:
@@ -80,6 +80,11 @@ const APP_METADATA_OBJECT: Record<AppMetadataKeys, undefined> = {
|
||||
shouldInformAboutScanlatorChange: undefined,
|
||||
hideHistory: undefined,
|
||||
scrollAmount: undefined,
|
||||
reverse: undefined,
|
||||
bookmarked: undefined,
|
||||
downloaded: undefined,
|
||||
unread: undefined,
|
||||
showChapterNumber: undefined,
|
||||
};
|
||||
|
||||
export const VALID_APP_METADATA_KEYS = Object.keys(APP_METADATA_OBJECT);
|
||||
@@ -154,6 +159,14 @@ export const GLOBAL_METADATA_KEYS: AppMetadataKeys[] = [
|
||||
'customFilter',
|
||||
'shouldSkipDupChapters',
|
||||
'hotkeys',
|
||||
|
||||
// manga
|
||||
// chapter list options
|
||||
'reverse',
|
||||
'bookmarked',
|
||||
'downloaded',
|
||||
'unread',
|
||||
'showChapterNumber',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,6 +11,7 @@ import { MangaMetadataKeys } from '@/modules/manga/Manga.types.ts';
|
||||
import { SourceMetadataKeys } from '@/modules/source/Source.types.ts';
|
||||
import { CategoryMetadataKeys } from '@/modules/category/Category.types.ts';
|
||||
import { MetaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import { IReaderSettings } from '@/modules/reader/types/Reader.types.ts';
|
||||
|
||||
export interface IMetadataMigration {
|
||||
appKeyPrefix?: { oldPrefix: string; newPrefix: string };
|
||||
@@ -47,6 +48,7 @@ export type AppMetadataKeys =
|
||||
| keyof MetadataAppliedMigration
|
||||
| MetadataServerSettingKeys
|
||||
| MangaMetadataKeys
|
||||
| keyof IReaderSettings
|
||||
| SearchMetadataKeys
|
||||
| SourceMetadataKeys
|
||||
| CategoryMetadataKeys;
|
||||
|
||||
Reference in New Issue
Block a user