refactor: Remove series-related fields and components to streamline novel management
Build and Push Reader Image / docker (push) Successful in 41s

- Eliminated seriesId and related fields from various models and components to simplify the data structure.
- Updated UI components to reflect the removal of series dependencies, enhancing clarity and maintainability.
- Adjusted API calls and data handling to ensure compatibility with the new structure.
This commit is contained in:
2026-05-12 14:37:37 +07:00
parent 09734cdadd
commit 3036854cf2
14 changed files with 48 additions and 687 deletions
+1 -2
View File
@@ -26,7 +26,6 @@ type BrowseNovel = {
views: number
totalChapters: number
status: string
seriesId?: string | null
}
type BrowseResponse = {
@@ -55,7 +54,7 @@ export default async function GenreDetailPage({
}
const browse = await readerApiFetch<BrowseResponse>(
`/api/novels/browse?genre=${encodeURIComponent(slug)}&sort=${sort}&page=${requestedPage}&limit=${PAGE_SIZE}&collapse_series=true`
`/api/novels/browse?genre=${encodeURIComponent(slug)}&sort=${sort}&page=${requestedPage}&limit=${PAGE_SIZE}`
)
const totalPages = Math.max(1, browse.totalPages || 1)