How g6-pnc-studend-score/g6-pnc-studend-score-front works
This Vue SPA supports school staff managing academic records and students viewing their own results. The principal workflow is authenticated navigation into student/class/subject setup, score entry, and reporting; a separate student portal presents scores and transcripts. Views call domain services through the shared Axios client, while Pinia stores hold cross-page state. The README documents Google Sheets score integration and administration features; some links are omitted because their view implementations were not sampled.
Main entry points: routes.ts Route map · auth.ts Auth state · apiHttp.ts HTTP client · useStudents.ts Student operations
Components 34
Shell & Access
- App shell
src/App.vue - Route guards
src/router/index.ts - Route map
src/router/routes.ts - Sign-in
src/views/auth/LoginPage.vue - Protected layout
src/layouts/MainLayout.vue
Academic Records
- Student management
src/views/students/StudentPage.vue - Student operations
src/views/students/composables/useStudents.ts - Student API
src/services/studentService.ts - Class management
src/views/classes/ClassPage.vue - Subject management
src/views/SubjectPage.vue - Teacher management
src/views/teachers/TeacherPage.vue
Scores & Reporting
- Score navigation
src/views/scores/ScorePage.vue - Term subjects
src/views/scores/TermSubjectsView.vue - Score sheet
src/views/scores/ScoreSheetView.vue - Score service
src/services/scoreService.ts - Sheets integration
src/components/GoogleSheetsModal.vue - Dashboard
src/views/DashboardView.vue - Reports
src/views/reports/ReportPage.vue - Report export
src/utils/reportExport.ts - Student portal
src/views/portal/StudentPortalPage.vue - Student scores
src/views/portal/StudentScoresPage.vue - Transcript
src/views/portal/StudentTranscriptPage.vue
Users & Policy
- Users & roles
src/views/roles/RolesPage.vue - User management
src/views/users/UsersPage.vue - Profile
src/views/UserProfile.vue - Activity logs
src/views/activity/ActivityLogPage.vue
API & State
- Auth state
src/stores/auth.ts - Authentication API
src/services/authService.ts - HTTP client
src/services/apiHttp.ts - Toast state
src/composables/useToast.ts
Other components
- Staff
- Student
- Laravel API
- Google Sheets
Connections 36
- Staff → Sign-in: signs in
- Student → Sign-in: signs in
- Sign-in → Auth state: authenticates
- Auth state → Authentication API: calls
src/stores/auth.ts - Auth state → HTTP client: sets token
src/stores/auth.ts - Route guards → Route map: loads routes
src/router/index.ts - Route guards → Auth state: checks access
src/router/index.ts - Route map → Protected layout: routes through
src/router/routes.ts - Route map → Student management: routes to
src/router/routes.ts - Route map → Class management: routes to
src/router/routes.ts - Route map → Subject management: routes to
src/router/routes.ts - Route map → Teacher management: routes to
src/router/routes.ts - Route map → Score navigation: routes to
src/router/routes.ts - Route map → Term subjects: routes to
src/router/routes.ts - Route map → Score sheet: routes to
src/router/routes.ts - Route map → Dashboard: routes to
src/router/routes.ts - Route map → Reports: routes to
src/router/routes.ts - Route map → Student portal: routes to
src/router/routes.ts - Route map → Student scores: routes to
src/router/routes.ts - Route map → Transcript: routes to
src/router/routes.ts - App shell → Toast state: renders
src/App.vue - Student management → Student operations: uses
- Student operations → Student API: calls
src/views/students/composables/useStudents.ts - Student operations → Toast state: notifies
src/views/students/composables/useStudents.ts - Score sheet → Score service: calls
src/views/scores/ScoreSheetView.vue - Sheets integration → Score service: calls
src/components/GoogleSheetsModal.vue - Score service → HTTP client: sends requests
src/services/scoreService.ts - Authentication API → HTTP client: sends requests
src/services/authService.ts - Student API → HTTP client: sends requests
src/services/studentService.ts - HTTP client → Laravel API: REST requests
src/services/apiHttp.ts - Sheets integration → Google Sheets: integrates
- Reports → Report export: exports
- Profile → Auth state: reads identity
src/views/UserProfile.vue - Users & roles → Auth state: reads theme
- User management → Auth state: checks permission
src/views/users/UsersPage.vue - Teacher management → Auth state: checks permission
src/views/teachers/TeacherPage.vue