feat: 안전 코드 tksafety 이관 + 사용자 관리 정리 + UI Tailwind 전환

Phase 1: tksafety에 출입신청/체크리스트 API·웹 추가, tkfb 안전 코드 삭제
Phase 2: 사용자 관리 페이지 삭제, API 축소, 알림 수신자 tkuser 이관
Phase 3: tkuser 권한 페이지 정의 업데이트
Phase 4: 전체 34개 페이지 Tailwind CSS + tkfb-core.js 전환,
         미사용 CSS 20개·인프라 JS 10개·템플릿·컴포넌트 삭제

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-13 10:46:22 +09:00
parent 8373fe9e75
commit 9fda89a374
133 changed files with 5255 additions and 26181 deletions

View File

@@ -1,52 +0,0 @@
// /js/navigation.js
import { config } from './config.js';
/**
* 지정된 URL로 페이지를 리디렉션합니다.
* @param {string} url - 이동할 URL
*/
function redirect(url) {
window.location.href = url;
}
/**
* 로그인 페이지로 리디렉션합니다.
*/
export function redirectToLogin() {
const loginUrl = config.paths.loginPage + '?redirect=' + encodeURIComponent(window.location.href);
redirect(loginUrl);
}
/**
* 사용자의 기본 대시보드 페이지로 리디렉션합니다.
* 백엔드가 지정한 URL이 있으면 그곳으로, 없으면 기본 URL로 이동합니다.
* @param {string} [backendRedirectUrl=null] - 백엔드에서 전달받은 리디렉션 URL
*/
export function redirectToDefaultDashboard(backendRedirectUrl = null) {
const destination = backendRedirectUrl || config.paths.defaultDashboard;
// 부드러운 화면 전환 효과
document.body.style.transition = 'opacity 0.3s ease-out';
document.body.style.opacity = '0';
setTimeout(() => {
redirect(destination);
}, 300);
}
/**
* 시스템 대시보드 페이지로 리디렉션합니다.
*/
export function redirectToSystemDashboard() {
redirect(config.paths.systemDashboard);
}
/**
* 그룹 리더 대시보드 페이지로 리디렉션합니다.
*/
export function redirectToGroupLeaderDashboard() {
redirect(config.paths.groupLeaderDashboard);
}
// 필요에 따라 더 많은 리디렉션 함수를 추가할 수 있습니다.
// export function redirectToUserProfile() { ... }