How hosan-work/check_leave_system works
PawPuffPractice is a Vue and ASP.NET Core application for member accounts and administrator operations, including clock records, leave requests, calendar data, and LINE notifications. The main workflow runs from browser views through the API to MySQL; authentication is restored and maintained through a shared Vue composable and server cookies. The diagram includes documented major branches, but several frontend services and controllers were not sampled, so only explicitly evidenced calls are connected.
Main entry points: PawPuffPracticeMySQLDbContext.cs EF data context · index.js Page routing · AdminLeavesController.cs Leave API · useAuth.js Auth state
Components 24
Vue application
- App shell
PawPuffPractice.vue/src/App.vue - Auth state
PawPuffPractice.vue/src/composables/useAuth.js - Page routing
PawPuffPractice.vue/src/router/index.js - Login and register
PawPuffPractice.vue/src/views/LoginView.vue - Member profile
PawPuffPractice.vue/src/views/MemberView.vue - User administration
PawPuffPractice.vue/src/views/AdminUsersView.vue - Clock management
PawPuffPractice.vue/src/views/AdminClockView.vue - Leave management
PawPuffPractice.vue/src/views/AdminLeaveView.vue
ASP.NET API
- API host
PawPuffPractice.Api/Program.cs - Authentication
PawPuffPractice.Api/Controllers/AuthController.cs - User administration API
PawPuffPractice.Api/Controllers/AdminUsersController.cs
Business features
- Clock API
PawPuffPractice.Api/Controllers/AdminClocksController.cs - Leave API
PawPuffPractice.Api/Controllers/AdminLeavesController.cs - Calendar API
PawPuffPractice.Api/Controllers/CalendarController.cs - Calendar file service
PawPuffPractice.Api/Services/CalendarFileService.cs - CSV converter
PawPuffPractice.Api/Services/CalendarCsvConverter.cs - Leave notifications
PawPuffPractice.Api/Hubs/AdminLeaveHub.cs
Persistence
- EF data context
PawPuffPractice.Api/Data/PawPuffPracticeMySQLDbContext.cs - MySQL database
- Development seeder
PawPuffPractice.Api/Data/DevelopmentDataSeeder.cs
External services
- LINE messaging
PawPuffPractice.Api/Services/LineMessageService.cs - LINE platform
Other components
- Member or admin
- Browser
Connections 30
- Member or admin → Browser: uses
- Browser → App shell: opens
- App shell → Auth state: initializes
PawPuffPractice.vue/src/App.vue - App shell → Page routing: renders routes
PawPuffPractice.vue/src/App.vue - Page routing → Login and register: routes to
PawPuffPractice.vue/src/router/index.js - Page routing → Member profile: routes to
PawPuffPractice.vue/src/router/index.js - Page routing → User administration: routes to
PawPuffPractice.vue/src/router/index.js - Page routing → Clock management: routes to
PawPuffPractice.vue/src/router/index.js - Page routing → Leave management: routes to
PawPuffPractice.vue/src/router/index.js - Login and register → Auth state: uses
- Member profile → Auth state: uses
- Browser → API host: sends API requests
- Auth state → Authentication: calls auth endpoints
PawPuffPractice.vue/src/composables/useAuth.js - API host → EF data context: configures
PawPuffPractice.Api/Program.cs - API host → Development seeder: runs seeding
PawPuffPractice.Api/Program.cs - Authentication → EF data context: queries and saves
PawPuffPractice.Api/Controllers/AuthController.cs - User administration API → EF data context: queries and saves
PawPuffPractice.Api/Controllers/AdminUsersController.cs - Clock API → EF data context: queries and saves
PawPuffPractice.Api/Controllers/AdminClocksController.cs - Leave API → EF data context: queries and saves
PawPuffPractice.Api/Controllers/AdminLeavesController.cs - Calendar API → Calendar file service: loads calendar
PawPuffPractice.Api/Controllers/CalendarController.cs - Leave API → Calendar file service: loads calendar
PawPuffPractice.Api/Controllers/AdminLeavesController.cs - Calendar file service → CSV converter: converts CSV
PawPuffPractice.Api/Services/CalendarFileService.cs - Leave API → Leave notifications: broadcasts changes
PawPuffPractice.Api/Controllers/AdminLeavesController.cs - Clock API → LINE messaging: sends notifications
PawPuffPractice.Api/Controllers/AdminClocksController.cs - LINE messaging → LINE platform: pushes message
PawPuffPractice.Api/Services/LineMessageService.cs - Development seeder → EF data context: seeds records
PawPuffPractice.Api/Data/DevelopmentDataSeeder.cs - EF data context → MySQL database: persists entities
- Clock management → Clock API: calls clock API
- Leave management → Leave API: calls leave API
- User administration → User administration API: calls admin API