카카오톡 인앱 WebView는 서브도메인 간 쿠키를 공유하지 않아 tkds에서 로그인 후 tkfb로 리다이렉트 시 인증이 풀리는 문제. - sso-relay.js: URL hash의 _sso= 토큰을 로컬 쿠키+localStorage로 설정 - gateway dashboard: 로그인 후 redirect URL에 #_sso=<token> 추가 - 전 서비스 HTML: core JS 직전에 sso-relay.js 로드 (81개 파일) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
112 lines
4.7 KiB
HTML
112 lines
4.7 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>
|
|
|
|
<!-- Tailwind CSS -->
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
<!-- Font Awesome -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
|
|
<!-- Custom Styles -->
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-gray-50 min-h-screen">
|
|
<!-- 공통 헤더가 여기에 자동으로 삽입됩니다 -->
|
|
|
|
<!-- Main Content -->
|
|
<main class="container mx-auto px-4 py-8" style="padding-top: 80px;">
|
|
<!-- 페이지 헤더 -->
|
|
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
|
|
<div class="flex items-center justify-between mb-4">
|
|
<div>
|
|
<h1 class="text-2xl font-bold text-gray-900 flex items-center">
|
|
<i class="fas fa-calendar-week text-blue-500 mr-3"></i>
|
|
주간보고서
|
|
</h1>
|
|
<p class="text-gray-600 mt-1">주간 단위로 집계된 부적합 현황 및 처리 결과를 확인하세요</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 준비중 안내 -->
|
|
<div class="bg-white rounded-xl shadow-sm p-12 text-center">
|
|
<div class="max-w-md mx-auto">
|
|
<div class="w-24 h-24 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6">
|
|
<i class="fas fa-calendar-week text-blue-500 text-3xl"></i>
|
|
</div>
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-4">주간보고서 준비중</h2>
|
|
<p class="text-gray-600 mb-6">
|
|
주간 단위로 집계된 부적합 현황 및 처리 결과를 정리한 보고서 기능을 준비하고 있습니다.
|
|
</p>
|
|
<div class="bg-blue-50 p-4 rounded-lg">
|
|
<h3 class="font-semibold text-blue-800 mb-2">예정 기능</h3>
|
|
<ul class="text-sm text-blue-700 space-y-1">
|
|
<li>• 주간 부적합 발생 현황</li>
|
|
<li>• 주간 처리 완료 현황</li>
|
|
<li>• 부서별 처리 성과</li>
|
|
<li>• 주간 트렌드 분석</li>
|
|
</ul>
|
|
</div>
|
|
<div class="mt-6">
|
|
<button onclick="window.history.back()"
|
|
class="px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors">
|
|
<i class="fas fa-arrow-left mr-2"></i>이전 페이지로
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<!-- JavaScript -->
|
|
<script src="/static/js/core/permissions.js?v=2026031401"></script>
|
|
<script src="/static/js/components/common-header.js?v=2026031401"></script>
|
|
<script src="/static/js/api.js?v=2026031401"></script>
|
|
<script src="/static/js/sso-relay.js?v=20260401"></script>
|
|
<script src="/static/js/core/auth-manager.js?v=2026031401"></script>
|
|
|
|
<script>
|
|
// 페이지 초기화
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
console.log('주간보고서 페이지 로드 시작');
|
|
|
|
// AuthManager 로드 대기
|
|
const checkAuthManager = async () => {
|
|
if (window.authManager) {
|
|
try {
|
|
// 인증 확인
|
|
const isAuthenticated = await window.authManager.checkAuth();
|
|
if (!isAuthenticated) {
|
|
window.location.href = '/login.html';
|
|
return;
|
|
}
|
|
|
|
// 공통 헤더 초기화
|
|
const user = JSON.parse(localStorage.getItem('currentUser') || '{}');
|
|
if (window.commonHeader && user.id) {
|
|
await window.commonHeader.init(user, 'reports_weekly');
|
|
}
|
|
|
|
console.log('주간보고서 페이지 로드 완료');
|
|
} catch (error) {
|
|
console.error('페이지 초기화 오류:', error);
|
|
}
|
|
} else {
|
|
setTimeout(checkAuthManager, 100);
|
|
}
|
|
};
|
|
checkAuthManager();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|