Go to file
kyuuseiryuu 80aebac57a feat: implement user favorite player system with Logto sync
- Add `FavPlayerDAO` for database operations (create, read, delete, check) against `user_fav` table.
- Integrate Prisma ORM with MariaDB adapter in `src/prisma/db.ts`.
- Implement backend API routes (`/api/fav`) to handle GET, PUT, and DELETE requests for managing favorites based on user audience (aud).
- Create `FavePlayersPage` with support for:
  - Viewing local stored favorites.
  - Syncing server-side favorites via Logto authentication.
  - Visual distinction between "Local" and "Account" favorite lists using Segmented control.
  - Loading states and empty state handling with Ant Design components.
- Enhance `Logto/Callback` to redirect users back to their intended destination (e.g., `FavePlayersPage`) after authentication if a `redirect` param was stored in session storage.
- Update `UserCenter` page to include "Backup Codes" management option under account settings.
- Add necessary dependencies: `@logto/react`, `ahooks`, and update UI imports accordingly.
2026-03-09 10:16:27 +09:00
__test__ feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00
.vscode feat(global): find user 2026-02-10 11:11:08 +09:00
prisma feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00
src feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00
.env.example feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00
.gitignore feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00
bun-env.d.ts init 2026-01-29 22:00:49 +09:00
bun.lock feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00
bunfig.toml init 2026-01-29 22:00:49 +09:00
docker-compose.yml chore(docker): add restart policy for app service 2026-02-10 21:21:11 +09:00
dockerfile init 2026-01-29 22:00:49 +09:00
package.json feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00
prisma.config.ts feat: implement user favorite player system with Logto sync 2026-03-09 10:16:27 +09:00
README.md init 2026-01-29 22:00:49 +09:00
tsconfig.json init 2026-01-29 22:00:49 +09:00

bun-react-template

To install dependencies:

bun install

To start a development server:

bun dev

To run for production:

bun start

This project was created using bun init in bun v1.2.21. Bun is a fast all-in-one JavaScript runtime.