mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-10-06 21:01:29 -04:00
- Implemented auto import folder feature in the ImportLocal component. - Added methods to scan and import books from specified folders. - Created AutoImportDialog component for managing auto import folders. - Integrated auto import functionality into the application startup process. - Updated localization files for multiple languages to include new strings related to auto import. - Enhanced UI for adding and removing auto import folders with appropriate feedback messages.
26 lines
844 B
TypeScript
26 lines
844 B
TypeScript
import BookModel from "../../models/Book";
|
|
import { RouteComponentProps } from "react-router";
|
|
export interface ImportLocalProps extends RouteComponentProps<any> {
|
|
books: BookModel[];
|
|
deletedBooks: BookModel[];
|
|
|
|
isCollapsed: boolean;
|
|
isAuthed: boolean;
|
|
mode: string;
|
|
shelfTitle: string;
|
|
cloudSyncFunc: () => Promise<void>;
|
|
handleFetchBooks: () => void;
|
|
handleDrag: (isDrag: boolean) => void;
|
|
handleImportDialog: (isOpenImportDialog: boolean) => void;
|
|
handleOPDSDialog: (isOpen: boolean) => void;
|
|
handleAutoImportDialog: (isOpen: boolean) => void;
|
|
handleImportBookFunc: (importBookFunc: (file: any) => Promise<void>) => void;
|
|
handleReadingBook: (book: BookModel) => void;
|
|
t: (title: string) => string;
|
|
}
|
|
export interface ImportLocalState {
|
|
isOpenFile: boolean;
|
|
isMoreOptionsVisible: boolean;
|
|
width: number;
|
|
}
|