- 토큰 저장 키 통일 (access_token으로 일관성 확보) - 일일공수 페이지 API 스크립트 로딩 순서 수정 - 프로젝트 관리 페이지 비활성 프로젝트 표시 문제 해결 - 업로드 카테고리에 '기타' 항목 추가 (백엔드 schemas.py 포함) - 비밀번호 변경 기능 API 연동으로 수정 - 프로젝트 드롭다운 z-index 문제 해결 - CORS 설정 및 Nginx 구성 개선 - 비밀번호 해싱 방식 pbkdf2_sha256으로 변경 (bcrypt 72바이트 제한 해결)
121 lines
4.2 KiB
HTML
121 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>프로젝트 데이터 확인</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
padding: 20px;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
pre {
|
|
background: #f4f4f4;
|
|
padding: 15px;
|
|
border-radius: 5px;
|
|
overflow-x: auto;
|
|
}
|
|
.info {
|
|
background: #e3f2fd;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border-radius: 5px;
|
|
}
|
|
button {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
margin: 5px;
|
|
cursor: pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>프로젝트 데이터 확인</h1>
|
|
|
|
<div class="info">
|
|
<p><strong>화면 크기:</strong> <span id="screenSize"></span></p>
|
|
<p><strong>User Agent:</strong> <span id="userAgent"></span></p>
|
|
<p><strong>현재 시간:</strong> <span id="currentTime"></span></p>
|
|
</div>
|
|
|
|
<h2>localStorage 데이터</h2>
|
|
<pre id="localStorageData"></pre>
|
|
|
|
<h2>프로젝트 목록</h2>
|
|
<div id="projectList"></div>
|
|
|
|
<h2>액션</h2>
|
|
<button onclick="createDefaultProjects()">기본 프로젝트 생성</button>
|
|
<button onclick="clearProjects()">프로젝트 초기화</button>
|
|
<button onclick="location.reload()">새로고침</button>
|
|
<button onclick="location.href='index.html'">메인으로</button>
|
|
|
|
<script>
|
|
// 화면 정보 표시
|
|
document.getElementById('screenSize').textContent = `${window.innerWidth} x ${window.innerHeight}`;
|
|
document.getElementById('userAgent').textContent = navigator.userAgent;
|
|
document.getElementById('currentTime').textContent = new Date().toLocaleString('ko-KR');
|
|
|
|
// localStorage 데이터 표시
|
|
function showLocalStorageData() {
|
|
const data = {};
|
|
for (let i = 0; i < localStorage.length; i++) {
|
|
const key = localStorage.key(i);
|
|
try {
|
|
data[key] = JSON.parse(localStorage.getItem(key));
|
|
} catch (e) {
|
|
data[key] = localStorage.getItem(key);
|
|
}
|
|
}
|
|
document.getElementById('localStorageData').textContent = JSON.stringify(data, null, 2);
|
|
}
|
|
|
|
// 프로젝트 목록 표시
|
|
function showProjects() {
|
|
const saved = localStorage.getItem('work-report-projects');
|
|
const projectListDiv = document.getElementById('projectList');
|
|
|
|
if (saved) {
|
|
try {
|
|
const projects = JSON.parse(saved);
|
|
let html = `<p>총 ${projects.length}개의 프로젝트</p><ul>`;
|
|
projects.forEach(p => {
|
|
html += `<li>${p.jobNo} - ${p.projectName} (${p.isActive ? '활성' : '비활성'})</li>`;
|
|
});
|
|
html += '</ul>';
|
|
projectListDiv.innerHTML = html;
|
|
} catch (e) {
|
|
projectListDiv.innerHTML = '<p style="color: red;">프로젝트 데이터 파싱 에러: ' + e.message + '</p>';
|
|
}
|
|
} else {
|
|
projectListDiv.innerHTML = '<p style="color: orange;">프로젝트 데이터가 없습니다.</p>';
|
|
}
|
|
}
|
|
|
|
// 기본 프로젝트 생성
|
|
function createDefaultProjects() {
|
|
alert('프로젝트 관리 페이지에서 프로젝트를 생성하세요.');
|
|
location.href = 'project-management.html';
|
|
}
|
|
|
|
// 프로젝트 초기화
|
|
function clearProjects() {
|
|
if (confirm('정말로 모든 프로젝트를 삭제하시겠습니까?')) {
|
|
localStorage.removeItem('work-report-projects');
|
|
alert('프로젝트가 초기화되었습니다.');
|
|
location.reload();
|
|
}
|
|
}
|
|
|
|
// 초기 로드
|
|
showLocalStorageData();
|
|
showProjects();
|
|
</script>
|
|
</body>
|
|
</html>
|