fix: improve media fetching on collection page, add pagination (#788)

This commit is contained in:
Daniel Lautzenheiser
2023-05-09 16:07:16 -04:00
committed by GitHub
parent e78ebbe65e
commit 92cc4575f8
30 changed files with 918 additions and 215 deletions

View File

@ -37,6 +37,7 @@ import type {
STRIKETHROUGH_TOOLBAR_BUTTON,
UNORDERED_LIST_TOOLBAR_BUTTON,
} from './constants/toolbar_buttons';
import type { ViewStyle } from './constants/views';
import type { formatExtensions } from './formats/formats';
import type {
I18N_FIELD_DUPLICATE,
@ -1087,3 +1088,13 @@ export interface BackupEntry {
mediaFiles: MediaFile[];
i18n?: Record<string, { raw: string }>;
}
export interface CollectionEntryData {
collection: Collection;
imageFieldName: string | null | undefined;
viewStyle: ViewStyle;
entry: Entry;
key: string;
summaryFields: string[];
collectionLabel?: string;
}