How ice2023-zx/eastc_portal_test works
EASTC is a browser-based lecture-notes portal: visitors can browse courses, students can search and download notes, lecturers can upload and manage PDF notes, and administrators can manage courses and lecturer accounts. The main flow is role selection and sign-in (students continue without signing in), followed by role-specific dashboard actions against Supabase. The graph captures the sampled JavaScript and documented page transitions; the README is empty, and unsampled page markup and other wiring are not inferred.
Main entry points: login.js Role-based login · lecturer-dashboard.js Lecturer dashboard · admin-dashboard.js Admin dashboard · student-dashboard.js Student notes
Components 12
Access and discovery
- Role-based login
login.js - Course landing
home.js - Password update
account.js
Learning and teaching
- Student notes
student-dashboard.js - Lecturer dashboard
lecturer-dashboard.js
Administration
- Admin dashboard
admin-dashboard.js
Supabase services
- Supabase client setup
supabase-config.js - Supabase Auth
- Supabase database
- Supabase Storage
- Supabase Edge Functions
Other components
- Visitor / user
Connections 23
- Visitor / user → Role-based login: chooses role
login.js - Visitor / user → Course landing: browses courses
home.js - Role-based login → Supabase Auth: signs in
login.js - Role-based login → Supabase database: checks profile role
login.js - Role-based login → Admin dashboard: routes admin
login.js - Role-based login → Lecturer dashboard: routes lecturer
login.js - Role-based login → Student notes: routes student
login.js - Course landing → Supabase database: reads courses
home.js - Course landing → Student notes: opens notes
home.js - Student notes → Supabase database: reads courses and notes
student-dashboard.js - Student notes → Supabase Storage: downloads PDFs
student-dashboard.js - Lecturer dashboard → Supabase Auth: checks user
lecturer-dashboard.js - Lecturer dashboard → Supabase database: reads and writes notes
lecturer-dashboard.js - Lecturer dashboard → Supabase Storage: uploads and removes PDFs
lecturer-dashboard.js - Lecturer dashboard → Supabase Storage: creates signed link
lecturer-dashboard.js - Admin dashboard → Supabase Auth: checks session
admin-dashboard.js - Admin dashboard → Supabase database: manages courses and profiles
admin-dashboard.js - Admin dashboard → Supabase database: reads note counts
admin-dashboard.js - Admin dashboard → Supabase Edge Functions: invokes lecturer actions
admin-dashboard.js - Password update → Supabase Auth: updates password
account.js - Supabase client setup → Supabase Auth: configures client
supabase-config.js - Supabase client setup → Supabase database: configures client
supabase-config.js - Supabase client setup → Supabase Storage: configures client
supabase-config.js