How jiebozhang/mylazyenglish works
MyLazyEnglish is a child-focused English-learning frontend prototype with a parent console. Its visible workflow is navigating among the home, video library, immersive player, vocabulary review, and progress/profile screens; the player-related components also support subtitle context and adding words to vocabulary. The sampled app routes establish page dispatch, but most page internals were not excerpted, and the README provides no further architecture detail. The API client is configured for /api, though no sampled page shows it being used.
Main entry points: App.tsx App Shell · VocabularyPage.tsx Vocabulary Review · ContextDictionarySheet.tsx Word Context Sheet · mock.ts Prototype Learning Data
Components 19
App Navigation
- App Shell
frontend/src/App.tsx - Animated Routes
frontend/src/components/AnimatedRoutes.tsx - Device Frame
frontend/src/components/lazyeng/DeviceFrame.tsx - Bottom Navigation
frontend/src/components/lazyeng/BottomNav.tsx
Learning Experience
- Home
frontend/src/pages/HomePage.tsx - Video Library
frontend/src/pages/LibraryPage.tsx - Learning Player
frontend/src/pages/PlayerPage.tsx - Word Context Sheet
frontend/src/components/lazyeng/ContextDictionarySheet.tsx - Subtitle View
frontend/src/components/lazyeng/SubtitleView.tsx - Video Artwork
frontend/src/components/lazyeng/VideoArtwork.tsx
Review And Progress
- Vocabulary Review
frontend/src/pages/VocabularyPage.tsx - Learning Progress
frontend/src/pages/MePage.tsx - Parent Console
frontend/src/pages/ParentConsolePage.tsx
Shared Services
- Prototype Learning Data
frontend/src/data/mock.ts - Player State Hook
frontend/src/hooks/use-player.ts - API Client
frontend/src/lib/api-client.ts - Motion Primitives
frontend/src/components/MotionPrimitives.tsx
Other components
- Learner
- Backend API
Connections 15
- Learner → App Shell: opens
- App Shell → Animated Routes: routes through
frontend/src/App.tsx - App Shell → Device Frame: wraps in
frontend/src/App.tsx - App Shell → Bottom Navigation: shows navigation
frontend/src/App.tsx - App Shell → Home: routes to
frontend/src/App.tsx - App Shell → Video Library: routes to
frontend/src/App.tsx - App Shell → Learning Player: routes to
frontend/src/App.tsx - App Shell → Vocabulary Review: routes to
frontend/src/App.tsx - App Shell → Learning Progress: routes to
frontend/src/App.tsx - App Shell → Parent Console: routes to
frontend/src/App.tsx - App Shell → Motion Primitives: transitions pages
- Word Context Sheet → Prototype Learning Data: reads entries
frontend/src/components/lazyeng/ContextDictionarySheet.tsx - Word Context Sheet → Vocabulary Review: offers add-word callback
- Vocabulary Review → Prototype Learning Data: reads vocabulary items
frontend/src/pages/VocabularyPage.tsx - API Client → Backend API: sends API requests
frontend/src/lib/api-client.ts