feat: 크롤러 부서 정보 수집 추가 및 대시보드 데이터 정확도 개선

- getData API 가로채기 기능을 통한 부서(department) 자동 수집 구현
- 파일 0개 기준의 "데이터 없음" 분류 로직 최적화 (LEFT JOIN 적용)
- 관리자 권한 인증 모달 스타일 복구 및 UI 정밀 조정
- 중복 등록 프로젝트(sm-25-032-phlinfra) DB 정리 및 테스트 파일 삭제
This commit is contained in:
2026-03-11 17:52:12 +09:00
parent 9f06857bea
commit 600c54c1f0
7 changed files with 178 additions and 81 deletions

View File

@@ -36,7 +36,7 @@
.portal-card h3 { font-size: 20px; color: var(--text-main); margin: 0; }
.portal-card p { font-size: 14px; color: var(--text-sub); margin: 0; }
/* Dashboard Layout */
/* Dashboard Fixed Elements */
header {
position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 1001;
background: #fff; height: var(--header-h); display: flex; justify-content: space-between; align-items: center; padding: 0 32px; border-bottom: 1px solid #f5f5f5;
@@ -59,50 +59,46 @@ header {
.main-content { margin-top: var(--fixed-total-h); padding: 32px; max-width: 1400px; margin-left: auto; margin-right: auto; }
/* 로그 콘솔 - 초기 디자인 복구 (Sticky Terminal 스타일) */
/* 로그 콘솔 (Terminal Style) */
.log-console {
position: sticky;
top: var(--fixed-total-h);
z-index: 999;
background: #000;
color: #0f0;
font-family: 'Consolas', 'Monaco', monospace;
padding: 15px;
margin-bottom: 20px;
border-radius: 4px;
max-height: 250px;
overflow-y: auto;
font-size: 12px;
line-height: 1.5;
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
position: sticky; top: var(--fixed-total-h); z-index: 999;
background: #000; color: #0f0; font-family: 'Consolas', monospace; padding: 15px; margin-bottom: 20px;
border-radius: 4px; max-height: 250px; overflow-y: auto; font-size: 12px; line-height: 1.5; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.log-console-header { color: #fff; border-bottom: 1px solid #333; margin-bottom: 10px; padding-bottom: 5px; font-weight: bold; }
.log-console-header {
color: #fff;
border-bottom: 1px solid #333;
margin-bottom: 10px;
padding-bottom: 5px;
font-weight: bold;
}
/* 모달 정중앙 배치 */
/* 인증 모달 */
.activity-modal-overlay {
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 3000;
display: flex; align-items: center; justify-content: center; padding: 20px;
}
.activity-modal-content { background: #fff; width: 600px; max-height: 85vh; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.auth-modal-content { background: #fff; width: 440px; border-radius: 16px; padding: 40px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); display: flex; flex-direction: column; gap: 32px; border: 1px solid rgba(0,0,0,0.05); }
.activity-modal-content {
background: #fff; width: 600px; max-height: 85vh; border-radius: 12px;
display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
.auth-header i { font-size: 32px; color: var(--primary-color); margin-bottom: 16px; }
.auth-header h3 { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 8px; }
.auth-header p { font-size: 13px; color: var(--text-sub); }
.auth-body { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 12px; font-weight: 700; color: var(--text-main); }
.input-group input {
height: 48px; padding: 0 16px; border: 1px solid var(--border-color); border-radius: 8px;
font-size: 14px; transition: 0.2s; background: #f9f9f9;
}
.input-group input:focus { border-color: var(--primary-color); background: #fff; box-shadow: 0 0 0 3px var(--primary-lv-0); outline: none; }
.auth-modal-content {
background: #fff; width: 400px; border-radius: 16px; padding: 40px;
text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
display: flex; flex-direction: column; gap: 25px;
.error-text { color: var(--error-color); font-size: 12px; font-weight: 600; text-align: center; margin-top: -10px; }
.auth-footer { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; }
.auth-footer button {
height: 48px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: 0.2s;
}
.cancel-btn { background: #f1f3f5; color: #495057; }
.cancel-btn:hover { background: #e9ecef; }
.login-btn { background: var(--primary-color); color: #fff; }
.login-btn:hover { background: #153a34; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,81,73,0.3); }
.modal-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 16px; color: var(--primary-color); }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-sub); }
@@ -110,31 +106,68 @@ header {
.modal-row { cursor: pointer; border-bottom: 1px solid #f5f5f5; }
.modal-row:hover { background: var(--primary-lv-0); }
/* 인증 모달 내부 요소 */
.auth-header i { font-size: 40px; color: var(--primary-color); margin-bottom: 15px; }
.auth-header h3 { font-size: 22px; color: var(--text-main); margin: 0; font-weight: 800; }
.auth-header p { font-size: 14px; color: var(--text-sub); margin-top: 8px; }
.auth-body { display: flex; flex-direction: column; gap: 15px; text-align: left; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.input-group input { padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; transition: 0.2s; }
.input-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-lv-1); }
.error-text { color: var(--error-color); font-size: 13px; font-weight: 600; margin-top: 10px; text-align: center; }
.auth-footer { display: flex; gap: 10px; margin-top: 10px; }
.auth-footer button { flex: 1; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; border: none; }
.cancel-btn { background: #f3f4f6; color: var(--text-sub); }
.login-btn { background: var(--primary-color); color: #fff; }
/* Accordion Layout - 정밀 정렬 개선 */
.accordion-list-header {
position: sticky; top: var(--fixed-total-h); background: #fff; z-index: 900;
font-size: 11px; font-weight: 700; color: var(--text-sub);
padding: 12px 24px; /* 패딩 통일 */
border-bottom: 2px solid var(--primary-color);
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
display: grid; grid-template-columns: 2.5fr 1fr 1fr 0.8fr 2fr; gap: 16px; align-items: center;
}
/* Accordion Layout */
.accordion-list-header { position: sticky; top: var(--fixed-total-h); background: #fff; z-index: 900; font-size: 11px; font-weight: 700; color: var(--text-sub); padding: 14px 24px; border-bottom: 2px solid var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: grid; grid-template-columns: 2.5fr 1fr 1fr 0.8fr 2fr; gap: 16px; align-items: center; }
.accordion-header { display: grid; grid-template-columns: 2.5fr 1fr 1fr 0.8fr 2fr; gap: 16px; padding: 16px 24px; align-items: center; cursor: pointer; border-bottom: 1px solid var(--border-color); transition: background 0.1s; }
.accordion-header {
display: grid; grid-template-columns: 2.5fr 1fr 1fr 0.8fr 2fr; gap: 16px;
padding: 12px 24px; /* 패딩 통일 */
align-items: center; cursor: pointer; border-bottom: 1px solid var(--border-color);
transition: background 0.1s;
}
.accordion-item:hover .accordion-header { background: var(--primary-lv-0); }
.accordion-item.active .accordion-header { background: var(--primary-lv-0); border-bottom: none; }
.repo-title { font-weight: 700; color: var(--primary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-dept, .repo-admin { font-size: 12px; color: var(--text-main); }
.repo-files { text-align: center; font-weight: 600; }
.repo-log { font-size: 11px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accordion-body { display: none; padding: 24px; background: var(--bg-muted); border-bottom: 1px solid var(--border-color); }
.accordion-body {
display: none;
padding: 24px 24px 32px 24px; /* 좌우 패딩을 행 헤더와 일치시킴 */
background: #fff; /* 일체감을 위해 흰색 배경 사용 가능 (필요시 var(--bg-muted)) */
border-bottom: 1px solid var(--border-color);
}
.accordion-item.active .accordion-body { display: block; }
/* 상세 표 정밀 정렬 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.detail-section h4 {
font-size: 13px; margin-bottom: 12px; color: var(--text-main);
border-left: 3px solid var(--primary-color); padding-left: 10px;
font-weight: 700;
}
.data-table {
width: 100%; border-collapse: collapse; font-size: 12px;
table-layout: fixed; /* 컬럼 너비 고정을 위해 필수 */
}
.data-table th, .data-table td {
padding: 10px 8px; border-bottom: 1px solid var(--border-color);
text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.data-table th { color: var(--text-sub); font-weight: 600; background: #fcfcfc; }
/* 컬럼별 너비 고정 (위아래 일치 및 정리) */
/* 참여 인원 상세 표 비율 */
#personnel-table th:nth-child(1), #personnel-table td:nth-child(1) { width: 25%; }
#personnel-table th:nth-child(2), #personnel-table td:nth-child(2) { width: 45%; }
#personnel-table th:nth-child(3), #personnel-table td:nth-child(3) { width: 30%; }
/* 최근 활동 표 비율 */
#activity-table th:nth-child(1), #activity-table td:nth-child(1) { width: 20%; }
#activity-table th:nth-child(2), #activity-table td:nth-child(2) { width: 50%; }
#activity-table th:nth-child(3), #activity-table td:nth-child(3) { width: 30%; }
/* Status Styles */
.status-warning { background: #fffcf0; }
.status-error { background: #fff5f4; }
.warning-text { color: var(--error-color) !important; font-weight: 700; }
@@ -146,9 +179,6 @@ header {
.continent-body, .country-body { display: none; padding: 10px 0 10px 15px; }
.active>.continent-body, .active>.country-body { display: block; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { padding: 10px 8px; border-bottom: 1px solid var(--border-color); text-align: left; }
.data-table th { color: var(--text-sub); font-weight: 600; background: #fcfcfc; }
.sync-btn { display: flex; align-items: center; gap: 8px; background-color: var(--primary-color); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.admin-info { font-size: 12px; color: var(--text-sub); margin-left: 16px; padding: 6px 12px; background: #f8f9fa; border-radius: 4px; border: 1px solid var(--border-color); }
.admin-info strong { color: var(--primary-color); font-weight: 700; }