feat: 프로젝트 활성도 분석 시스템 및 크롤링 인증/중단 기능 구현 - DB 연결 최적화, 활성도 위젯 및 내비게이션, 관리자 인증 모달, 중단 기능, UI 레이아웃 최적화, 코드 리팩토링 및 파일 정리
This commit is contained in:
24
js/common.js
24
js/common.js
@@ -1,9 +1,25 @@
|
||||
// 공통 네비게이션 및 유틸리티 로직
|
||||
/**
|
||||
* Project Master Overseas Common JS
|
||||
* 공통 네비게이션, 유틸리티, 전역 이벤트 관리
|
||||
*/
|
||||
|
||||
function navigateTo(path) {
|
||||
location.href = path;
|
||||
}
|
||||
|
||||
// 상단바 클릭 시 홈으로 이동 등 공통 이벤트 설정
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// 필요한 경우 공통 초기화 로직 추가
|
||||
// --- 전역 이벤트: 모든 모달창 ESC 키로 닫기 ---
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Escape') {
|
||||
// 대시보드 모달
|
||||
if (typeof closeAuthModal === 'function') closeAuthModal();
|
||||
if (typeof closeActivityModal === 'function') closeActivityModal();
|
||||
|
||||
// 메일 시스템 모달
|
||||
if (typeof closeModal === 'function') closeModal();
|
||||
if (typeof closeAddressBook === 'function') closeAddressBook();
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// 공통 초기화 로직
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user