Commit Graph

16 Commits

Author SHA1 Message Date
virtus 669addf799 feat: Revamp EPUB import process with batch upload support and enhanced API integration
Build and Push Reader Image / docker (push) Failing after 22s
- Introduced a new batch import client for handling multiple EPUB files simultaneously.
- Updated API routes for previewing and importing EPUB files, improving error handling and response management.
- Enhanced genre management during import, allowing for dynamic creation and association of genres.
- Implemented long-fetch handling to accommodate lengthy processing times for large EPUB files.
- Refined UI components for better user experience in the import workflow.
2026-05-11 15:27:13 +07:00
virtus 36ecff2725 Refactor ImportClient component: add pagination, tab switching, and auto-review functionality; remove unused models and scripts
Build and Push Reader Image / docker (push) Failing after 10s
2026-05-01 19:20:19 +07:00
virtus 9b1f7bb060 Refactor Google Identity handling: improve script loading, enhance error management, and streamline authentication flow
Build and Push Reader Image / docker (push) Successful in 39s
2026-04-24 02:54:54 +07:00
virtus 6e0d1831a5 Refactor Google Identity handling: improve script loading, enhance error management, and streamline token request process
Build and Push Reader Image / docker (push) Successful in 37s
2026-04-24 02:44:50 +07:00
virtus 223850922e Add Google Client ID fetching in auth context and create auth config API route
Build and Push Reader Image / docker (push) Successful in 38s
2026-04-24 02:08:33 +07:00
virtus 7c4404ded8 Refactor authentication system: replace NextAuth with custom login/logout/session handling, improve cookie management, and enhance error handling
Build and Push Reader Image / docker (push) Successful in 39s
2026-04-24 01:53:32 +07:00
virtus d9a6629d31 Add NODE_OPTIONS for IPv4-first DNS resolution and set timeout for Google provider in auth options
Build and Push Reader Image / docker (push) Successful in 38s
2026-04-24 01:16:09 +07:00
virtus 0be9b5d577 Refactor authentication options to improve environment variable handling and add error logging for API sync failures
Build and Push Reader Image / docker (push) Successful in 1m25s
2026-04-24 01:05:29 +07:00
virtus 41aca718c9 Refactor API integration and data fetching for genre, novel, and chapter pages
- Replace Prisma database calls with API fetches from the reader API in GenreDetailPage, GenresPage, SearchPage, ChapterReaderPage, and NovelDetailPage.
- Introduce new utility functions for API requests in server-api.ts, including error handling.
- Update authentication flow in auth.ts to sync Google login with the reader API.
- Modify NextAuth session and JWT types to include additional user information.
- Clean up unused imports and code related to Prisma and MongoDB connections.
- Adjust the configuration in next.config.mjs to remove unnecessary API routes.
2026-03-30 13:54:51 +07:00
virtus ffd177718f Refactor code structure for improved readability and maintainability 2026-03-23 11:12:56 +07:00
virtus e345d9ccce Refactor code structure for improved readability and maintainability 2026-03-14 02:25:36 +07:00
virtus 5686753ab7 Refactor code structure for improved readability and maintainability 2026-03-11 17:02:31 +07:00
virtus 8908395867 Refactor code structure for improved readability and maintainability 2026-03-10 16:37:55 +07:00
virtus 75ed8e233b Add moderation APIs and admin UI
Add moderator/admin backend APIs and client features for managing novels and chapters. New endpoints include mod chapter routes (paginated list, single GET, PUT, DELETE, and bulk optimize), mod novel routes (create, GET by id, update, delete), genre CRUD, user bookmarks, novel comments, and rating endpoints. Update EPUB import to use a shared slugify util. Enhance moderator UI: chapter manager gains pagination, bulk optimization preview/apply, edit/delete dialogs; novel client adds genre management and edit/delete flows. Also update Prisma schema, add a DB wipe script, remove unused lib/data.ts, and adjust related types/utils and bookmark context.
2026-03-06 17:30:56 +07:00
virtus ce805adb08 Add EPUB upload + DB integration
Add server-side EPUB import and integrate Prisma + Mongo for novels/chapters. Introduces a new moderator API route (app/api/mod/epub/route.ts) that parses .epub files, creates a novel record in Prisma, and inserts chapter documents into MongoDB via the Chapter Mongoose model. Frontend: novel management UI now supports EPUB upload (app/mod/truyen/novel-client.tsx) with progress/toasts and preserves the manual 'Add novel' dialog. Convert app pages to fetch real data from Prisma and Mongo (app/page.tsx, app/truyen/[slug]/page.tsx, app/truyen/[slug]/[chapterId]/page.tsx), adapt types/props to use authorName, and adjust chapter/comment IDs to use Mongo _id strings. Minor fixes: TTS player logs playback errors, UI text fixes (e.g. "Chương"), and novel-card/other components updated for authorName. package.json updated with epub2, html-to-text and types; pnpm lock updated. Adds tsconfig.tsbuildinfo.
2026-03-05 18:02:11 +07:00
virtus 112e8604e2 Initial commit 2026-03-05 16:46:38 +07:00