How zhangchen091488-collab/ggcamp works
瓜瓜训练营 is a local-first learning app for math practice, English spelling, and game-like progress. Learners choose a subject and practice scope, complete problems, and see results; practice records feed skill growth, quests, trophies, and collectible rewards. The README also describes calendar check-ins, appearance and audio settings, and resuming unfinished sessions. The graph focuses on runtime behavior; some relationships are supported by the SOURCE INDEX or README rather than sampled implementation, so unsampled details are not expanded.
Main entry points: home.js Home and routing · english-practice.js English practice engine · practice.js Math practice engine · play.js Math practice UI
Components 25
App and pages
- App setup
app.js - Home and routing
pages/home/home.js - Math practice UI
pages/play/play.js - Math results
pages/result/result.js - English practice UI
pages/english-play/english-play.js - English results
pages/english-result/english-result.js - Settings
pages/settings/settings.js
Learning workflows
- Math practice engine
lib/practice.js - English practice engine
lib/english-practice.js - Math problems
shared/problems.js - Skills and planning
shared/skills.js - English planning and answers
shared/english-answer.js - English content catalog
content/catalog.js
Progress and rewards
- Local persistence
lib/storage.js - State store
shared/store.js - Scoring
shared/scoring.js - Growth records
shared/growth.js - Quests and rewards
lib/features.js - Trophies
shared/trophies.js - Collectible unlocks
shared/unlocks.js - Practice calendar
lib/calendar-model.js
Presentation and content
- Audio
lib/audio.js - Visual appearance
lib/visual.js - Celebration effects
lib/celebration.js
Other components
- Learner
Connections 34
- Learner → Home and routing: opens app
- App setup → Local persistence: creates store
app.js - Local persistence → State store: uses backend
lib/storage.js - Home and routing → Math practice UI: starts or resumes
pages/home/home.js - Home and routing → English practice UI: starts or resumes
pages/home/home.js - Home and routing → English practice engine: starts English
pages/home/home.js - Math practice UI → Math practice engine: runs practice
pages/play/play.js - Math practice engine → Math problems: generates problems
lib/practice.js - Math practice engine → Skills and planning: plans skills
lib/practice.js - Math practice UI → Math results: shows completion
- Math results → Math practice engine: reads session
pages/result/result.js - English practice UI → English practice engine: runs practice
pages/english-play/english-play.js - English practice engine → English planning and answers: checks answers
lib/english-practice.js - English practice engine → English content catalog: loads content
lib/english-practice.js - English practice UI → English results: shows completion
- English results → English practice engine: reads session
pages/english-result/english-result.js - Math practice engine → Scoring: calculates score
lib/practice.js - English practice engine → Scoring: calculates score
lib/english-practice.js - Math practice engine → Quests and rewards: records events
lib/practice.js - English practice engine → Growth records: records progress
lib/english-practice.js - Quests and rewards → Trophies: evaluates awards
lib/features.js - Quests and rewards → Collectible unlocks: grants rewards
lib/features.js - Home and routing → Quests and rewards: loads home rewards
pages/home/home.js - Home and routing → Practice calendar: loads calendar
pages/home/home.js - Practice calendar → State store: reads records
lib/calendar-model.js - Settings → Local persistence: saves settings
pages/settings/settings.js - Math practice UI → Audio: plays audio
pages/play/play.js - English practice UI → Audio: plays audio
pages/english-play/english-play.js - Math practice UI → Visual appearance: renders appearance
pages/play/play.js - English practice UI → Visual appearance: renders appearance
pages/english-play/english-play.js - Trophies → Collectible unlocks: defines rewards
shared/unlocks.js - Learner → Settings: adjusts preferences
- Learner → Home and routing: views collection
- Math results → Celebration effects: triggers celebration