Move library files into new folder

This commit is contained in:
schroda
2024-10-05 19:33:09 +02:00
parent abc40de47b
commit 91e1f01de5
24 changed files with 95 additions and 76 deletions

View File

@@ -14,15 +14,14 @@ import {
GetSourceBrowseQuery,
GetSourceSettingsQuery,
MangaReaderFieldsFragment,
MangaStatus,
MetaType,
SourcePreferenceChangeInput,
TrackerType,
} from '@/lib/graphql/generated/graphql.ts';
import { AppTheme } from '@/lib/ui/AppThemes.ts';
import { SortSettings } from '@/screens/Migration.types.ts';
import { NullAndUndefined, TranslationKey } from '@/Base.types.ts';
import { TranslationKey } from '@/Base.types.ts';
import { MangaMetadataKeys } from '@/modules/manga/MangaCard.types.tsx';
import { LibraryOptions, MetadataLibrarySettings } from '@/modules/library/Library.types.ts';
export interface IPos {
type: 'selectState' | 'textState' | 'checkBoxState' | 'triState' | 'sortState';
@@ -120,13 +119,6 @@ export type MetadataDownloadSettings = {
downloadAheadLimit: number;
};
export type MetadataLibrarySettings = {
showAddToLibraryCategorySelectDialog: boolean;
ignoreFilters: boolean;
removeMangaFromCategories: boolean;
showTabSize: boolean;
};
export type MetadataClientSettings = {
devices: string[];
};
@@ -226,39 +218,4 @@ export interface NavbarItem {
show: 'mobile' | 'desktop' | 'both';
}
export type LibrarySortMode =
| 'unreadChapters'
| 'totalChapters'
| 'alphabetically'
| 'dateAdded'
| 'lastRead'
| 'latestFetchedChapter'
| 'latestUploadedChapter';
enum GridLayout {
Compact = 0,
Comfortable = 1,
List = 2,
}
export interface LibraryOptions {
// display options
showContinueReadingButton: boolean;
showDownloadBadge: boolean;
showUnreadBadge: boolean;
gridLayout: GridLayout;
// sort options
sortBy: NullAndUndefined<LibrarySortMode>;
sortDesc: NullAndUndefined<boolean>;
// filter options
hasDownloadedChapters: NullAndUndefined<boolean>;
hasBookmarkedChapters: NullAndUndefined<boolean>;
hasUnreadChapters: NullAndUndefined<boolean>;
hasDuplicateChapters: NullAndUndefined<boolean>;
hasTrackerBinding: Record<TrackerType['id'], NullAndUndefined<boolean>>;
hasStatus: Record<MangaStatus, NullAndUndefined<boolean>>;
}
export type ServerSettings = GetServerSettingsQuery['settings'];