How ysoseri1224/cet-6-training-camp works
CET-6 训练营 is a browser-based English exam-preparation platform. Learners enter through the routed React interface and use separate modules for word-by-word translation, grammar analysis, writing practice, vocabulary lookup, spaced sentence review, and lessons. AI-backed exercises send prompts to configured language-model APIs; other capabilities use local vocabulary and sentence data, browser-side review scheduling, and lesson articles. The graph includes the documented workflow and major capabilities; some page internals were not sampled, so those links rely on README statements rather than inspected implementation.
Main entry points: App.jsx App routes · WordLookup.jsx Word lookup · aiClient.js AI client · GrammarHighlighterApp.jsx Grammar highlighter
Components 26
App shell
- App routes
src/App.jsx - Page layout
src/components/Layout.jsx
Practice tools
- Word translation
src/pages/WordTranslation.jsx - Writing studio
src/pages/WritingStudio.jsx - Sentence transform
src/modules/sentence-transform/SentenceTransform.jsx - Word lookup
src/pages/WordLookup.jsx
Grammar analysis
- Grammar page
src/pages/GrammarHighlighter.jsx - Grammar highlighter
src/modules/grammar-highlighter/GrammarHighlighterApp.jsx - Grammar engine
src/modules/grammar-highlighter/engine/grammarEngine.js - AI grammar analysis
src/modules/grammar-highlighter/engine/deepseekAnalyze.js - Grammar state
src/modules/grammar-highlighter/store/grammarStore.js - Analysis controls
src/modules/grammar-highlighter/components/ControlPanel.jsx
Review and lessons
- Daily sentences
src/pages/DailySentences.jsx - Sentence collection
src/data/cet6Sentences.json - Review scheduler
src/utils/ebbinghaus.js - CET-6 vocabulary
src/data/cet6Words.js - Lesson index
src/pages/XuanXuan.jsx - Lesson reader
src/pages/EpisodeDetail.jsx - Episode loader
src/utils/episodeLoader.js - Lesson articles
src/data/episodes
Shared services
- Module state
src/store/moduleStores.js - AI client
src/utils/aiClient.js
Other components
- Learner
- DeepSeek API
- OpenAI API
- Dictionary API
Connections 33
- Learner → App routes: opens
README.md - App routes → Page layout: wraps pages
src/App.jsx - App routes → Word translation: routes to
src/App.jsx - App routes → Grammar page: routes to
src/App.jsx - App routes → Writing studio: routes to
src/App.jsx - App routes → Word lookup: routes to
src/App.jsx - App routes → Daily sentences: routes to
src/App.jsx - App routes → Lesson index: routes to
src/App.jsx - App routes → Lesson reader: routes to
src/App.jsx - Writing studio → Sentence transform: renders
src/pages/WritingStudio.jsx - Word translation → AI client: requests analysis
src/pages/WordTranslation.jsx - Writing studio → AI client: requests writing help
src/pages/WritingStudio.jsx - Sentence transform → AI client: requests transformation
src/modules/sentence-transform/SentenceTransform.jsx - Word lookup → AI client: requests translation
src/pages/WordLookup.jsx - Word lookup → CET-6 vocabulary: checks vocabulary
src/pages/WordLookup.jsx - Word lookup → Dictionary API: looks up definitions
src/pages/WordLookup.jsx - Grammar page → Grammar highlighter: renders
src/pages/GrammarHighlighter.jsx - Grammar highlighter → Grammar engine: analyzes locally
src/modules/grammar-highlighter/GrammarHighlighterApp.jsx - Grammar highlighter → AI grammar analysis: requests analysis
src/modules/grammar-highlighter/GrammarHighlighterApp.jsx - Grammar highlighter → Grammar state: updates state
src/modules/grammar-highlighter/GrammarHighlighterApp.jsx - Grammar highlighter → Analysis controls: renders controls
src/modules/grammar-highlighter/GrammarHighlighterApp.jsx - Analysis controls → Grammar state: reads settings
src/modules/grammar-highlighter/components/ControlPanel.jsx - Daily sentences → Sentence collection: reads sentences
src/pages/DailySentences.jsx - Daily sentences → Review scheduler: schedules review
src/pages/DailySentences.jsx - Daily sentences → Word lookup: offers word lookup
src/pages/DailySentences.jsx - Lesson index → Episode loader: loads articles
src/pages/XuanXuan.jsx - Lesson reader → Episode loader: loads article
src/pages/EpisodeDetail.jsx - Episode loader → Lesson articles: reads articles
src/utils/episodeLoader.js - Word translation → Module state: uses state
src/pages/WordTranslation.jsx - Writing studio → Module state: uses state
src/pages/WritingStudio.jsx - Word lookup → Module state: uses state
src/pages/WordLookup.jsx - AI client → DeepSeek API: calls API
src/utils/aiClient.js - AI client → OpenAI API: fallback call
src/utils/aiClient.js