diff --git a/apps/readest-app/src/app/library/components/BookItem.tsx b/apps/readest-app/src/app/library/components/BookItem.tsx index 047b33e6..239916cf 100644 --- a/apps/readest-app/src/app/library/components/BookItem.tsx +++ b/apps/readest-app/src/app/library/components/BookItem.tsx @@ -9,7 +9,7 @@ import { useResponsiveSize } from '@/hooks/useResponsiveSize'; import { LibraryViewModeType } from '@/types/settings'; import { formatAuthors } from '@/utils/book'; import ReadingProgress from './ReadingProgress'; -import BookCover from './BookCover'; +import BookCover from '@/components/BookCover'; interface BookItemProps { mode: LibraryViewModeType; diff --git a/apps/readest-app/src/app/library/components/GroupItem.tsx b/apps/readest-app/src/app/library/components/GroupItem.tsx index 9415b0b3..4b0e28ac 100644 --- a/apps/readest-app/src/app/library/components/GroupItem.tsx +++ b/apps/readest-app/src/app/library/components/GroupItem.tsx @@ -2,7 +2,7 @@ import clsx from 'clsx'; import { MdCheckCircle, MdCheckCircleOutline } from 'react-icons/md'; import { useEnv } from '@/context/EnvContext'; import { BooksGroup } from '@/types/book'; -import BookCover from './BookCover'; +import BookCover from '@/components/BookCover'; interface GroupItemProps { group: BooksGroup; diff --git a/apps/readest-app/src/app/library/components/BookCover.tsx b/apps/readest-app/src/components/BookCover.tsx similarity index 96% rename from apps/readest-app/src/app/library/components/BookCover.tsx rename to apps/readest-app/src/components/BookCover.tsx index d4eb46d5..0059e44b 100644 --- a/apps/readest-app/src/app/library/components/BookCover.tsx +++ b/apps/readest-app/src/components/BookCover.tsx @@ -12,7 +12,7 @@ interface BookCoverProps { const BookCover: React.FC = ({ mode = 'grid', book, isPreview }) => { return ( -
+
{book.title}
-
- {formatTitle(book.title)} { - (e.target as HTMLImageElement).style.display = 'none'; - (e.target as HTMLImageElement).nextElementSibling?.classList.remove( - 'invisible', - ); - }} - /> -
- {formatTitle(book.title)} -
+
+
-

diff --git a/apps/readest-app/src/utils/txt.ts b/apps/readest-app/src/utils/txt.ts index 389fbcef..0be1ab63 100644 --- a/apps/readest-app/src/utils/txt.ts +++ b/apps/readest-app/src/utils/txt.ts @@ -102,8 +102,8 @@ export class TxtToEpubConverter { String.raw`(?:^|\n|\s)` + '(' + [ - String.raw`第[一二三四五六七八九十0-9][一二三四五六七八九十百千万0-9]*(?:[章卷节回讲篇封])(?:[::、  \(\)0-9]*[^\n-]{0,24})(?!\S)`, - String.raw`(?:^|\n|\s|《[^》]+》)[一二三四五六七八九十][一二三四五六七八九十百千万]*(?:[::  ][^\n-]{0,24})(?!\S)`, + String.raw`第[零〇一二三四五六七八九十0-9][零〇一二三四五六七八九十百千万0-9]*(?:[章卷节回讲篇封])(?:[::、  \(\)0-9]*[^\n-]{0,24})(?!\S)`, + String.raw`(?:^|\n|\s|《[^》]+》)[一二三四五六七八九十][零〇一二三四五六七八九十百千万]*(?:[::  ][^\n-]{0,24})(?!\S)`, String.raw`(?:楔子|前言|引言|序言|序章|总论|概论)(?:[::  ][^\n-]{0,24})?(?!\S)`, ].join('|') + ')',