Repository navigation
Frontend Architecture
The frontend source lives in ydl-front and uses the original Vue 2 / Webpack 3 stack. It is used both with Django locally and with a browser mock adapter in the public Pages demo.
π¦ ydl-front/
β£ π build/ # Webpack build pipeline
β£ π config/ # Development and production asset paths
β£ π src/
β β£ π App.vue # App shell and session initialization
β β£ π main.js # Vue bootstrap
β β£ π router/
β β β π index.js # Hash-based routes
β β£ π store/
β β β£ π api.js # Axios client and demo adapter switch
β β β π store.js # Vuex data/actions
β β£ π demo/
β β β£ π data.js # Fictional sample data
β β β£ π mockApi.js # Simulated REST endpoints
β β β£ π session.js # Demo role/session behavior
β β β£ π announcements.js
β β β π resources.js
β β π components/
β β£ π Authorization/ # Login and signup views
β β£ π Course/ # Browse, create, edit, enroll
β β£ π Forum/ # Discussion and replies
β β£ π Quiz/ # Questions, answer components, quiz editing
β β£ π Calendar/ # Monthly calendar and timetable
β β£ π Profile/ # Dashboard and user settings
β β£ π Resources/ # Course resource list and upload form
β β£ π LandingPage/ # Branding and announcements
β β£ π Demo/ # Demo toolbar and teacher quiz editor
β β π Navigation/ # Navbar and sidebar
β£ π static/demo-resources/ # Downloadable fictional learning files
β π docs/ # Generated static build output
Only the important directories are shown. Older experimental prototypes and test scaffolding also exist in the historical repository.
flowchart TD
Router["Vue Router (hash mode)"] --> Shell["App.vue / ProfilePage.vue"]
Shell --> Course["Course components"]
Shell --> Forum["Forum components"]
Shell --> Quiz["Quiz components"]
Shell --> Calendar["Calendar / events"]
Course --> Vuex["Vuex store"]
Forum --> Vuex
Calendar --> Vuex
Vuex --> Axios["src/store/api.js β Axios"]
Axios -->|"Local full-stack"| DRF["/api/ β Django"]
Axios -->|"Pages build"| Mock["src/demo/mockApi.js"]
The components primarily interact with existing store actions and Axios APIs; the public demo swaps the transport behavior rather than rebuilding all screens.
Examples from the restored Vue hash router:
| View | Example fragment |
|---|---|
| Landing page | /#/ |
| Student dashboard | /#/profile/2/courses/ |
| Course catalog | /#/profile/2/allcourses |
| German Conversation A2 | /#/profile/2/courses/1 |
| Quiz | /#/profile/2/courses/1/quiz |
| Forum | /#/profile/2/courses/forum |
| Calendar | /#/profile/2/calendar/ |
| Teacher course editor | /#/profile/1/courses/1/edit |
| Teacher quiz editor | /#/profile/1/courses/1/quiz/edit |
User IDs here are fictional demo identities, not universal URL contracts. GitHub Pages is particularly suited to hash routing, because fragment routes do not require server-side rewrite rules.
- Course descriptions may contain rich text; rendering and editing need consistent treatment of paragraphs and line breaks.
- Interactive quizzes provide immediate local feedback in the demo; no Django attempt history is published.
- Vue components are subject to the project's historical ESLint/Standard rules (for example no semicolons and no trailing commas).
- The Pages-specific Webpack build uses
YDL_BUILD_TARGET=pagesand an asset base path/.

Next: Public demo mode Β· Feature showcase
Young & Digital Learning Β· Interactive demo Β· Archived API reference Β· Source repositories Β· Fictional demonstration data Β· Academic portfolio