How leminhai2007/ts-web-exercise works
This React application brings several standalone games and productivity tools together behind a home-page catalog and routed project pages. Users choose a tool, interact with its page, and (for Sudoku) can request puzzles through an app API endpoint backed by the You Do Sudoku service. The README and project catalog also identify habit tracking, Pomodoro timers, flash cards, the lucky wheel, 2048, and cross-project data export/import. Core page-to-route relationships are shown from the sampled App source; unsampled page internals and persistence wiring are not inferred.
Main entry points: App.tsx Router and theme · HomePage.tsx Tool catalog · ProjectLayout.tsx Project page shell · AppIcons.tsx Shared icons
Components 18
App navigation
- Router and theme
src/App.tsx - Tool catalog
src/components/HomePage.tsx - Project page shell
src/components/ProjectLayout.tsx - Project registry
src/data/projects.ts - Animated backdrop
src/components/AnimatedBackground.tsx - Shared icons
src/components/AppIcons.tsx
Games
- 2048 game
src/components/Game2048.tsx - Sudoku game
src/components/Sudoku.tsx - Sudoku board
src/components/SudokuBoard.tsx - Lucky wheel
src/components/LuckyWheel.tsx
Productivity tools
- Flash cards
src/components/FlashCards.tsx - Data manager
src/components/DataManager.tsx - Habit tracker
src/components/HabitTracker.tsx - Pomodoro clock
src/components/PomodoroClock.tsx
Sudoku service
- Puzzle API client
src/api/sudokuApi.ts - Puzzle API handler
api/youdosudoku.ts
Other components
- Visitor
- You Do Sudoku
Connections 37
- Visitor → Router and theme: opens app
src/App.tsx - Router and theme → Tool catalog: routes to
src/App.tsx - Router and theme → 2048 game: routes to
src/App.tsx - Router and theme → Sudoku game: routes to
src/App.tsx - Router and theme → Lucky wheel: routes to
src/App.tsx - Router and theme → Flash cards: routes to
src/App.tsx - Router and theme → Data manager: routes to
src/App.tsx - Router and theme → Habit tracker: routes to
src/App.tsx - Router and theme → Pomodoro clock: routes to
src/App.tsx - Router and theme → Animated backdrop: renders
src/App.tsx - Tool catalog → Project registry: reads catalog
src/components/HomePage.tsx - Tool catalog → 2048 game: links to
- Tool catalog → Sudoku game: links to
- Tool catalog → Lucky wheel: links to
- Tool catalog → Flash cards: links to
- Tool catalog → Data manager: links to
- Tool catalog → Habit tracker: links to
- Tool catalog → Pomodoro clock: links to
- Sudoku game → Puzzle API client: requests puzzle
src/components/Sudoku.tsx - Sudoku game → Sudoku board: renders board
src/components/Sudoku.tsx - Puzzle API client → Puzzle API handler: posts request
- Puzzle API handler → You Do Sudoku: requests puzzle
- 2048 game → Project page shell: uses shell
src/components/Game2048.tsx - Sudoku game → Project page shell: uses shell
src/components/Sudoku.tsx - Lucky wheel → Project page shell: uses shell
src/components/LuckyWheel.tsx - Flash cards → Project page shell: uses shell
src/components/FlashCards.tsx - Data manager → Project page shell: uses shell
src/components/DataManager.tsx - Habit tracker → Project page shell: uses shell
src/components/HabitTracker.tsx - Pomodoro clock → Project page shell: uses shell
src/components/PomodoroClock.tsx - Project page shell → Shared icons: imports icon
src/components/ProjectLayout.tsx - 2048 game → Shared icons: imports icons
src/components/Game2048.tsx - Sudoku game → Shared icons: imports icons
src/components/Sudoku.tsx - Lucky wheel → Shared icons: imports icons
src/components/LuckyWheel.tsx - Flash cards → Shared icons: imports icons
src/components/FlashCards.tsx - Data manager → Shared icons: imports icons
src/components/DataManager.tsx - Habit tracker → Shared icons: imports icons
src/components/HabitTracker.tsx - Pomodoro clock → Shared icons: imports icons
src/components/PomodoroClock.tsx