feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
31
web-ui/js/user-dashboard.js
Normal file
31
web-ui/js/user-dashboard.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import { API, getAuthHeaders } from '/js/api-config.js';
|
||||
|
||||
// 오늘 일정 로드
|
||||
async function loadTodaySchedule() {
|
||||
// 구현 필요
|
||||
document.getElementById('today-schedule').innerHTML =
|
||||
'<p>오늘의 작업 일정이 여기에 표시됩니다.</p>';
|
||||
}
|
||||
|
||||
// 작업 통계 로드
|
||||
async function loadWorkStats() {
|
||||
// 구현 필요
|
||||
document.getElementById('work-stats').innerHTML =
|
||||
'<p>이번 달 작업 시간: 160시간</p>';
|
||||
}
|
||||
|
||||
// 환영 메시지 개인화
|
||||
function personalizeWelcome() {
|
||||
const user = window.currentUser;
|
||||
if (user) {
|
||||
document.getElementById('welcome-message').textContent =
|
||||
`${user.name}님, 환영합니다!`;
|
||||
}
|
||||
}
|
||||
|
||||
// 초기화
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
personalizeWelcome();
|
||||
loadTodaySchedule();
|
||||
loadWorkStats();
|
||||
});
|
||||
Reference in New Issue
Block a user