feat: MySQL DB 정규화(Master/History) 및 시계열 데이터 수집 시스템 통합

1. 마스터/히스토리 테이블 분리 및 마이그레이션 완료\n2. 날짜별 데이터 축적 및 대시보드 필터링 기능 추가\n3. Playwright 수집 로직(날짜필터, 좌표클릭, 정밀합산) 완전 복구
This commit is contained in:
2026-03-10 16:24:13 +09:00
parent 743cce543b
commit 4a995c11f4
9 changed files with 268 additions and 89 deletions

View File

@@ -55,52 +55,45 @@
box-shadow: var(--box-shadow-lg);
}
.portal-card .icon {
font-size: 32px;
width: 64px;
height: 64px;
background: var(--bg-muted);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: 0.3s;
}
.portal-card:hover .icon {
background: var(--primary-color);
color: #fff;
}
.portal-card h2 {
font-size: 20px;
font-weight: 700;
}
.portal-card p {
color: var(--text-sub);
font-size: 14px;
line-height: 1.5;
}
@media screen and (max-width: 600px) {
.button-grid {
grid-template-columns: 1fr;
}
}
/* Dashboard List & Console */
header {
position: fixed;
top: 36px;
left: 0;
right: 0;
z-index: 1000;
background: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-md) var(--space-lg);
border-bottom: 1px solid var(--border-color);
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.main-content {
margin-top: 100px;
padding: var(--space-lg);
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}
.log-console {
position: sticky;
top: 100px;
z-index: 999;
background: #000;
color: #0f0;
font-family: monospace;
padding: 15px;
margin-bottom: 20px;
border-radius: 4px;
max-height: 200px;
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 {
@@ -126,6 +119,10 @@
}
.accordion-list-header {
position: sticky;
top: 100px;
background: var(--bg-muted);
z-index: 10;
font-size: 11px;
font-weight: 700;
color: var(--text-sub);
@@ -186,7 +183,7 @@
font-weight: 700;
}
/* Accordion Multi-level (Continent/Country) */
/* Multi-level Groups */
.continent-group,
.country-group {
margin-bottom: 10px;
@@ -263,24 +260,7 @@
font-weight: 600;
}
/* Header & Sync Button */
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-lg);
padding-bottom: var(--space-md);
border-bottom: 1px solid var(--border-color);
}
.main-content {
margin-top: 36px;
padding: var(--space-lg);
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}
/* Sync Button & Admin Info */
.sync-btn {
display: flex;
align-items: center;
@@ -291,6 +271,8 @@ header {
border-radius: var(--radius-lg);
font-size: 13px;
font-weight: 600;
cursor: pointer;
border: none;
box-shadow: var(--box-shadow);
}
@@ -316,3 +298,18 @@ header {
color: var(--primary-color);
font-weight: 700;
}
.base-date-info {
font-size: 13px;
color: var(--text-sub);
background: #f8f9fa;
padding: 6px 15px;
border-radius: 6px;
border: 1px solid var(--border-color);
}
.base-date-info strong {
color: #333;
font-weight: 700;
margin-left: 5px;
}