8 Commits

Author SHA1 Message Date
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 d3f3d9c91a Implement user API proxying and enhance missing fields handling 2026-03-30 14:28:40 +07:00
virtus f9bb247ff1 Refactor API routes and remove unused endpoints
- Deleted the following API routes:
  - `upload-cover`
  - `truyen/[id]/chapters`
  - `truyen/[id]/comments`
  - `truyen/[id]/rate`
  - `truyen/suggest`
  - `user/bookmarks`
  - `user/recommendations`
  - `user/settings`

- Updated `chapter-client.tsx` and `novel-client.tsx` to handle error messages more gracefully.
- Adjusted pagination logic in `tim-kiem/page.tsx` to improve user experience.
- Added support for additional search parameters in the search functionality.
- Introduced API rewrites in `next.config.mjs` to route requests to a reader API.
2026-03-30 11:35:03 +07:00
virtus ffd177718f Refactor code structure for improved readability and maintainability 2026-03-23 11:12:56 +07:00
virtus 7f7ee254d8 Refactor code structure for improved readability and maintainability 2026-03-14 02:15:09 +07:00
virtus ac9cecdcdb feat: add missing fields management for novels
- Implemented API routes for fetching and updating novels with missing fields.
- Created a client-side interface for moderators to manage novels with missing information.
- Added bulk update functionality for missing fields including author, cover, description, and genres.
- Integrated genre management with the ability to create new genres on the fly.
- Enhanced the home page with a carousel for displaying popular novels.
2026-03-13 18:50:56 +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