mirror of
https://github.com/hwanny1128/HGZero.git
synced 2026-06-13 04:49:11 +00:00
작업 파일 정리 및 실시간 회의록 플로우 추가
- 가파팀 프로토타입 파일 삭제 - 가파팀 유저스토리 삭제 - 실시간 회의록 작성 플로우 설계서 추가 (Mermaid, Markdown) - 백업 및 데이터 디렉토리 추가 - AI 데이터 샘플 생성 도구 추가 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,691 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>대시보드 - 회의록 서비스</title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
<style>
|
||||
/* 레이아웃 */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.dashboard-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: var(--z-sticky);
|
||||
background-color: var(--color-white);
|
||||
border-bottom: 1px solid var(--color-gray-200);
|
||||
padding: 0 var(--spacing-6);
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-4);
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background-color: var(--color-primary-main);
|
||||
border-radius: var(--radius-md);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-white);
|
||||
font-weight: var(--font-weight-bold);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.service-name {
|
||||
font-size: var(--font-size-h4);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-gray-900);
|
||||
}
|
||||
|
||||
.header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-4);
|
||||
}
|
||||
|
||||
.user-menu {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.user-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-2);
|
||||
padding: var(--spacing-2);
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
border-radius: var(--radius-md);
|
||||
transition: background-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.user-button:hover {
|
||||
background-color: var(--color-gray-100);
|
||||
}
|
||||
|
||||
.user-avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: var(--radius-full);
|
||||
background-color: var(--color-primary-main);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--color-white);
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.user-dropdown {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 48px;
|
||||
right: 0;
|
||||
background-color: var(--color-white);
|
||||
border: 1px solid var(--color-gray-200);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
min-width: 200px;
|
||||
z-index: var(--z-dropdown);
|
||||
}
|
||||
|
||||
.user-dropdown.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dropdown-item {
|
||||
display: block;
|
||||
padding: var(--spacing-3) var(--spacing-4);
|
||||
color: var(--color-gray-700);
|
||||
text-decoration: none;
|
||||
transition: background-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.dropdown-item:hover {
|
||||
background-color: var(--color-gray-50);
|
||||
}
|
||||
|
||||
.dropdown-divider {
|
||||
height: 1px;
|
||||
background-color: var(--color-gray-200);
|
||||
margin: var(--spacing-2) 0;
|
||||
}
|
||||
|
||||
/* Layout */
|
||||
.dashboard-layout {
|
||||
display: flex;
|
||||
min-height: calc(100vh - 64px);
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar {
|
||||
width: 240px;
|
||||
background-color: var(--color-gray-50);
|
||||
border-right: 1px solid var(--color-gray-200);
|
||||
padding: var(--spacing-6) 0;
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
margin-bottom: var(--spacing-2);
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-3);
|
||||
padding: var(--spacing-3) var(--spacing-6);
|
||||
color: var(--color-gray-700);
|
||||
text-decoration: none;
|
||||
transition: all var(--transition-fast);
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
background-color: var(--color-gray-200);
|
||||
color: var(--color-gray-900);
|
||||
}
|
||||
|
||||
.nav-link.active {
|
||||
background-color: rgba(0, 217, 177, 0.1);
|
||||
color: var(--color-primary-main);
|
||||
font-weight: var(--font-weight-medium);
|
||||
border-right: 3px solid var(--color-primary-main);
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
padding: var(--spacing-8);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.welcome-section {
|
||||
margin-bottom: var(--spacing-8);
|
||||
}
|
||||
|
||||
.welcome-title {
|
||||
font-size: var(--font-size-h1);
|
||||
color: var(--color-gray-900);
|
||||
margin-bottom: var(--spacing-2);
|
||||
}
|
||||
|
||||
.welcome-subtitle {
|
||||
font-size: var(--font-size-body);
|
||||
color: var(--color-gray-500);
|
||||
}
|
||||
|
||||
/* Stats Grid */
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: var(--spacing-6);
|
||||
margin-bottom: var(--spacing-8);
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
padding: var(--spacing-6);
|
||||
background-color: var(--color-white);
|
||||
border: 1px solid var(--color-gray-200);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: all var(--transition-base);
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: var(--radius-md);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 24px;
|
||||
margin-bottom: var(--spacing-3);
|
||||
}
|
||||
|
||||
.stat-icon.primary { background-color: rgba(0, 217, 177, 0.1); color: var(--color-primary-main); }
|
||||
.stat-icon.warning { background-color: rgba(245, 158, 11, 0.1); color: var(--color-warning-main); }
|
||||
.stat-icon.success { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success-main); }
|
||||
|
||||
.stat-label {
|
||||
font-size: var(--font-size-body-small);
|
||||
color: var(--color-gray-500);
|
||||
margin-bottom: var(--spacing-2);
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: var(--font-size-h2);
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--color-gray-900);
|
||||
}
|
||||
|
||||
/* Section */
|
||||
.section {
|
||||
margin-bottom: var(--spacing-8);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: var(--spacing-4);
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: var(--font-size-h3);
|
||||
color: var(--color-gray-900);
|
||||
}
|
||||
|
||||
.view-all-link {
|
||||
font-size: var(--font-size-body-small);
|
||||
color: var(--color-primary-main);
|
||||
text-decoration: none;
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.view-all-link:hover {
|
||||
color: var(--color-primary-dark);
|
||||
}
|
||||
|
||||
/* Meeting Card */
|
||||
.meeting-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: var(--spacing-4);
|
||||
}
|
||||
|
||||
.meeting-card {
|
||||
background-color: var(--color-white);
|
||||
border: 1px solid var(--color-gray-200);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-5);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-base);
|
||||
}
|
||||
|
||||
.meeting-card:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.meeting-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
margin-bottom: var(--spacing-3);
|
||||
}
|
||||
|
||||
.meeting-title {
|
||||
font-size: var(--font-size-h4);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-gray-900);
|
||||
margin-bottom: var(--spacing-2);
|
||||
}
|
||||
|
||||
.meeting-meta {
|
||||
font-size: var(--font-size-body-small);
|
||||
color: var(--color-gray-500);
|
||||
margin-bottom: var(--spacing-1);
|
||||
}
|
||||
|
||||
/* Todo Card */
|
||||
.todo-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-3);
|
||||
}
|
||||
|
||||
.todo-item {
|
||||
background-color: var(--color-white);
|
||||
border: 1px solid var(--color-gray-200);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--spacing-4);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.todo-item:hover {
|
||||
box-shadow: var(--shadow-sm);
|
||||
border-color: var(--color-primary-main);
|
||||
}
|
||||
|
||||
.todo-left {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.todo-title {
|
||||
font-weight: var(--font-weight-medium);
|
||||
color: var(--color-gray-900);
|
||||
margin-bottom: var(--spacing-2);
|
||||
}
|
||||
|
||||
.todo-meta {
|
||||
font-size: var(--font-size-body-small);
|
||||
color: var(--color-gray-500);
|
||||
}
|
||||
|
||||
.todo-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: var(--spacing-2);
|
||||
}
|
||||
|
||||
.dday {
|
||||
font-size: var(--font-size-body-small);
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.dday.urgent { color: var(--color-error-main); }
|
||||
.dday.warning { color: var(--color-warning-main); }
|
||||
.dday.normal { color: var(--color-gray-500); }
|
||||
|
||||
/* Bottom Navigation (Mobile) */
|
||||
.bottom-nav {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: var(--color-white);
|
||||
border-top: 1px solid var(--color-gray-200);
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: var(--spacing-2) 0;
|
||||
z-index: var(--z-sticky);
|
||||
}
|
||||
|
||||
.bottom-nav-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--spacing-1);
|
||||
padding: var(--spacing-2);
|
||||
color: var(--color-gray-500);
|
||||
text-decoration: none;
|
||||
font-size: var(--font-size-caption);
|
||||
min-width: 60px;
|
||||
}
|
||||
|
||||
.bottom-nav-item.active {
|
||||
color: var(--color-primary-main);
|
||||
}
|
||||
|
||||
.bottom-nav-icon {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 1023px) {
|
||||
.sidebar { display: none; }
|
||||
.main-content { padding-bottom: 80px; }
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.bottom-nav { display: none; }
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.dashboard-header { padding: 0 var(--spacing-4); }
|
||||
.service-name { display: none; }
|
||||
.main-content { padding: var(--spacing-4); }
|
||||
.welcome-title { font-size: var(--font-size-h2); }
|
||||
.stats-grid { grid-template-columns: 1fr; }
|
||||
.meeting-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<header class="dashboard-header">
|
||||
<div class="header-left">
|
||||
<div class="logo">M</div>
|
||||
<span class="service-name">회의록 서비스</span>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<div class="user-menu">
|
||||
<button class="user-button" id="userMenuButton">
|
||||
<div class="user-avatar" id="userAvatar">U</div>
|
||||
<span class="hide-mobile" id="userName">사용자</span>
|
||||
</button>
|
||||
<div class="user-dropdown" id="userDropdown">
|
||||
<a href="#" class="dropdown-item">내 프로필</a>
|
||||
<a href="#" class="dropdown-item">설정</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item" id="logoutButton">로그아웃</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Main Layout -->
|
||||
<div class="dashboard-layout">
|
||||
<!-- Sidebar -->
|
||||
<aside class="sidebar">
|
||||
<nav>
|
||||
<ul class="sidebar-nav">
|
||||
<li class="nav-item">
|
||||
<a href="02-대시보드.html" class="nav-link active">
|
||||
<span>📊</span> 대시보드
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="12-회의록목록.html" class="nav-link">
|
||||
<span>📅</span> 회의 목록
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="09-Todo관리.html" class="nav-link">
|
||||
<span>✅</span> Todo 관리
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="02-대시보드.html" class="nav-link">
|
||||
<span>⚙️</span> 설정
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main class="main-content">
|
||||
<!-- Welcome Section -->
|
||||
<section class="welcome-section">
|
||||
<h1 class="welcome-title" id="welcomeTitle">안녕하세요!</h1>
|
||||
<p class="welcome-subtitle" id="welcomeSubtitle">오늘의 일정을 확인하세요</p>
|
||||
</section>
|
||||
|
||||
<!-- Stats Grid -->
|
||||
<section class="stats-grid">
|
||||
<div class="stat-card">
|
||||
<div class="stat-icon primary">📅</div>
|
||||
<div class="stat-label">예정된 회의</div>
|
||||
<div class="stat-value" id="upcomingMeetingsCount">0</div>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-icon warning">✅</div>
|
||||
<div class="stat-label">진행 중 Todo</div>
|
||||
<div class="stat-value" id="inProgressTodosCount">0</div>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-icon success">📈</div>
|
||||
<div class="stat-label">Todo 완료율</div>
|
||||
<div class="stat-value" id="todoCompletionRate">0%</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Recent Meetings -->
|
||||
<section class="section">
|
||||
<div class="section-header">
|
||||
<h2 class="section-title">최근 회의</h2>
|
||||
<a href="12-회의록목록.html" class="view-all-link">전체 보기 →</a>
|
||||
</div>
|
||||
<div class="meeting-grid" id="meetingGrid">
|
||||
<!-- Meetings will be rendered here -->
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- My Todos -->
|
||||
<section class="section">
|
||||
<div class="section-header">
|
||||
<h2 class="section-title">할당된 Todo</h2>
|
||||
<a href="09-Todo관리.html" class="view-all-link">전체 보기 →</a>
|
||||
</div>
|
||||
<div class="todo-list" id="todoList">
|
||||
<!-- Todos will be rendered here -->
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<!-- Bottom Navigation (Mobile) -->
|
||||
<nav class="bottom-nav hide-desktop">
|
||||
<a href="02-대시보드.html" class="bottom-nav-item active">
|
||||
<div class="bottom-nav-icon">📊</div>
|
||||
<div>대시보드</div>
|
||||
</a>
|
||||
<a href="12-회의록목록.html" class="bottom-nav-item">
|
||||
<div class="bottom-nav-icon">📅</div>
|
||||
<div>회의</div>
|
||||
</a>
|
||||
<a href="09-Todo관리.html" class="bottom-nav-item">
|
||||
<div class="bottom-nav-icon">✅</div>
|
||||
<div>Todo</div>
|
||||
</a>
|
||||
<a href="02-대시보드.html" class="bottom-nav-item">
|
||||
<div class="bottom-nav-icon">⚙️</div>
|
||||
<div>더보기</div>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<!-- FAB -->
|
||||
<button class="fab" id="fabButton" title="새 회의 예약">+</button>
|
||||
|
||||
<!-- JavaScript -->
|
||||
<script src="common.js"></script>
|
||||
<script>
|
||||
// 인증 체크 및 초기화
|
||||
window.MeetingApp.ready(() => {
|
||||
const authToken = window.MeetingApp.Storage.get('authToken');
|
||||
if (!authToken) {
|
||||
// 개발 환경에서는 자동 로그인
|
||||
window.MeetingApp.Storage.set('authToken', 'demo-token');
|
||||
window.MeetingApp.Storage.set('currentUser', window.MeetingApp.AppState.currentUser);
|
||||
}
|
||||
|
||||
const currentUser = window.MeetingApp.Storage.get('currentUser');
|
||||
if (currentUser) {
|
||||
// 사용자 정보 표시
|
||||
document.getElementById('userName').textContent = currentUser.name;
|
||||
document.getElementById('userAvatar').textContent = currentUser.name.charAt(0);
|
||||
document.getElementById('welcomeTitle').textContent = `안녕하세요, ${currentUser.name}님!`;
|
||||
|
||||
// AppState 업데이트
|
||||
window.MeetingApp.AppState.currentUser = currentUser;
|
||||
}
|
||||
|
||||
// 데이터 로드 및 렌더링
|
||||
loadDashboardData();
|
||||
renderMeetings();
|
||||
renderTodos();
|
||||
});
|
||||
|
||||
// 대시보드 통계 로드
|
||||
function loadDashboardData() {
|
||||
const meetings = window.MeetingApp.Storage.get('meetings', []);
|
||||
const todos = window.MeetingApp.Storage.get('todos', []);
|
||||
|
||||
// 예정된 회의 수
|
||||
const upcomingMeetings = meetings.filter(m => m.status === 'scheduled' || m.status === 'confirmed').length;
|
||||
document.getElementById('upcomingMeetingsCount').textContent = upcomingMeetings;
|
||||
|
||||
// 진행 중 Todo 수
|
||||
const inProgressTodos = todos.filter(t => t.status === 'in_progress').length;
|
||||
document.getElementById('inProgressTodosCount').textContent = inProgressTodos;
|
||||
|
||||
// Todo 완료율
|
||||
const completedTodos = todos.filter(t => t.status === 'done').length;
|
||||
const completionRate = todos.length > 0 ? Math.round((completedTodos / todos.length) * 100) : 0;
|
||||
document.getElementById('todoCompletionRate').textContent = `${completionRate}%`;
|
||||
}
|
||||
|
||||
// 회의 목록 렌더링
|
||||
function renderMeetings() {
|
||||
const meetings = window.MeetingApp.Storage.get('meetings', []).slice(0, 3);
|
||||
const meetingGrid = document.getElementById('meetingGrid');
|
||||
|
||||
if (meetings.length === 0) {
|
||||
meetingGrid.innerHTML = '<p style="color: var(--color-gray-500);">아직 등록된 회의가 없습니다.</p>';
|
||||
return;
|
||||
}
|
||||
|
||||
meetingGrid.innerHTML = meetings.map(meeting => `
|
||||
<div class="meeting-card" onclick="window.MeetingApp.navigateTo('12-회의록목록.html')">
|
||||
<div class="meeting-header">
|
||||
<div>
|
||||
<div class="meeting-title">${meeting.title}</div>
|
||||
<div class="meeting-meta">📅 ${window.MeetingApp.formatDateTime(meeting.date)}</div>
|
||||
<div class="meeting-meta">📍 ${meeting.location}</div>
|
||||
</div>
|
||||
<span class="badge ${window.MeetingApp.MeetingUtils.getStatusClass(meeting.status)}">
|
||||
${window.MeetingApp.MeetingUtils.getStatusLabel(meeting.status)}
|
||||
</span>
|
||||
</div>
|
||||
<div style="font-size: var(--font-size-body-small); color: var(--color-gray-600);">
|
||||
${meeting.description || '설명 없음'}
|
||||
</div>
|
||||
</div>
|
||||
`).join('');
|
||||
}
|
||||
|
||||
// Todo 목록 렌더링
|
||||
function renderTodos() {
|
||||
const todos = window.MeetingApp.Storage.get('todos', []).filter(t => t.status !== 'done').slice(0, 5);
|
||||
const todoList = document.getElementById('todoList');
|
||||
|
||||
console.log('Rendering todos:', todos);
|
||||
|
||||
if (todos.length === 0) {
|
||||
todoList.innerHTML = '<p style="color: var(--color-gray-500);">할당된 Todo가 없습니다.</p>';
|
||||
return;
|
||||
}
|
||||
|
||||
todoList.innerHTML = todos.map(todo => {
|
||||
const dday = window.MeetingApp.getDday(todo.dueDate);
|
||||
const ddayClass = dday.includes('지남') ? 'urgent' : (dday === '오늘' ? 'warning' : 'normal');
|
||||
const priorityLabel = window.MeetingApp.MeetingUtils.getPriorityLabel(todo.priority);
|
||||
|
||||
console.log(`Todo: ${todo.title}, Priority: ${todo.priority}, Label: ${priorityLabel}`);
|
||||
|
||||
return `
|
||||
<div class="todo-item" onclick="window.MeetingApp.navigateTo('09-Todo관리.html')">
|
||||
<div class="todo-left">
|
||||
<div class="todo-title">${todo.title}</div>
|
||||
<div class="todo-meta">담당: ${todo.assignee}</div>
|
||||
</div>
|
||||
<div class="todo-right">
|
||||
<div class="dday ${ddayClass}">${dday}</div>
|
||||
<span class="badge badge-${todo.priority === 'high' ? 'error' : 'neutral'}">
|
||||
${priorityLabel}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}).join('');
|
||||
}
|
||||
|
||||
// 사용자 메뉴 토글
|
||||
const userMenuButton = document.getElementById('userMenuButton');
|
||||
const userDropdown = document.getElementById('userDropdown');
|
||||
|
||||
userMenuButton.addEventListener('click', (e) => {
|
||||
e.stopPropagation();
|
||||
userDropdown.classList.toggle('show');
|
||||
});
|
||||
|
||||
document.addEventListener('click', () => {
|
||||
userDropdown.classList.remove('show');
|
||||
});
|
||||
|
||||
// 로그아웃
|
||||
document.getElementById('logoutButton').addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
window.MeetingApp.Storage.remove('authToken');
|
||||
window.MeetingApp.Storage.remove('currentUser');
|
||||
window.MeetingApp.Toast.success('로그아웃 되었습니다.');
|
||||
setTimeout(() => {
|
||||
window.location.href = '01-로그인.html';
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
// FAB 버튼
|
||||
document.getElementById('fabButton').addEventListener('click', () => {
|
||||
window.location.href = '03-회의예약.html';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user