refactor(web-ui): Apply modular structure and refactor dashboard
This commit applies the modular refactoring to the web-ui,
including the new daily attendance tracking feature.
- **Modular Structure:** Re-introduced the modular files 'config.js',
'component-loader.js', and 'navigation.js' to centralize configuration,
component loading, and navigation logic.
- **Refactored Dashboard:** Refactored 'group-leader-dashboard.js' to use
the new 'apiCall' function from 'api-config.js' for API requests,
removing duplicated code and improving error handling.
- **ES6 Modules:** Updated 'group-leader.html' to load scripts as
ES6 modules ('type="module"'), ensuring compatibility with the
modular JavaScript files.
- **Clean-up:** Removed unnecessary global variables and duplicated
functions, improving code quality and maintainability.
This commit is contained in:
@@ -52,4 +52,4 @@ export function redirectToGroupLeaderDashboard() {
|
||||
}
|
||||
|
||||
// 필요에 따라 더 많은 리디렉션 함수를 추가할 수 있습니다.
|
||||
// export function redirectToUserProfile() { ... }
|
||||
// export function redirectToUserProfile() { ... }
|
||||
Reference in New Issue
Block a user