mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat(book): add highlights tab with filters, export, and pagination
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export interface AnnotationItem {
|
||||
id: number;
|
||||
bookId: number;
|
||||
cfi: string;
|
||||
text: string;
|
||||
color: string;
|
||||
style: string;
|
||||
note: string | null;
|
||||
chapterTitle: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface AnnotationStats {
|
||||
totalHighlights: number;
|
||||
colorBreakdown: { color: string; count: number }[];
|
||||
chaptersWithHighlights: number;
|
||||
highlightsWithNotes: number;
|
||||
chapters: string[];
|
||||
}
|
||||
|
||||
export interface AnnotationListResponse {
|
||||
items: AnnotationItem[];
|
||||
total: number;
|
||||
page: number;
|
||||
pageSize: number;
|
||||
stats: AnnotationStats;
|
||||
}
|
||||
@@ -37,3 +37,4 @@ export * from "./font";
|
||||
export * from "./dictionary";
|
||||
export * from "./achievement";
|
||||
export * from "./reading-session";
|
||||
export * from "./annotation";
|
||||
|
||||
Reference in New Issue
Block a user