Commit Graph

5 Commits

Author SHA1 Message Date
msksbr 4820370b6a feat(ui): add navigation header and wire up real page routes
- Add sticky header with book management nav links and logout button
- Replace placeholder page components with real feature imports
- Add login page route to router
- Fix date-time formatting for consistent YYYY-MM-DD HH:mm output
2026-05-24 19:28:29 +08:00
msksbr 1ca3417f0e refactor(api): convert API functions to async/await with typed returns
Replace raw axios promise returns with async functions that unwrap
response data, providing stronger type guarantees at call sites.

- Unwrap `res.data.data` in all API functions instead of exposing
  AxiosResponse to consumers
- Add missing return types (LoginVo, BorrowInfoVo, Book, etc.)
- Convert all exported functions to async syntax
2026-05-24 19:23:37 +08:00
msksbr ffc1f34331 refactor(api): convert API functions to async/await with typed returns
Replace raw axios promise returns with async functions that unwrap
response data, providing stronger type guarantees at call sites.

- Unwrap `res.data.data` in all API functions instead of exposing
  AxiosResponse to consumers
- Add missing return types (LoginVo, BorrowInfoVo, Book, etc.)
- Convert all exported functions to async syntax
2026-05-24 19:22:18 +08:00
msksbr 60e83d49dd feat: initialize app with routing, query management, and UI framework
- Replace Vite boilerplate with React Router for page navigation
- Add React Query for server state and cache management
- Integrate shadcn/ui component library with Tailwind CSS v4
- Configure @/ path alias for clean module imports
- Set up Vite dev proxy to API backend
- Remove default App.css, App.tsx, and react.svg assets
2026-05-24 19:19:08 +08:00
msksbr 072f959949 init 2026-05-24 18:56:50 +08:00