refactor: 코드 관리 페이지 삭제 및 프론트엔드 모듈화
- codes.html, code-management.js 삭제 (tasks.html에서 동일 기능 제공) - 사이드바에서 코드 관리 링크 제거 - daily-work-report, tbm, workplace-management JS 모듈 분리 - common/security.js 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,79 +1,141 @@
|
||||
/* daily-patrol.css - 일일순회점검 페이지 스타일 */
|
||||
|
||||
/* 세션 선택 영역 */
|
||||
.patrol-session-selector {
|
||||
/* 점검 시작 영역 */
|
||||
.patrol-start-section {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1.5rem;
|
||||
padding: 1.5rem;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 2rem;
|
||||
padding: 3rem 1.5rem;
|
||||
background: var(--surface-color, #fff);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.patrol-date-time {
|
||||
.patrol-start-section .btn-lg {
|
||||
padding: 1.25rem 3rem;
|
||||
font-size: 1.25rem;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.patrol-date-time .form-group {
|
||||
min-width: 140px;
|
||||
.patrol-start-section .btn-icon {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.patrol-time-buttons {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.patrol-time-btn {
|
||||
padding: 0.5rem 1.25rem;
|
||||
border: 2px solid var(--border-color, #e2e8f0);
|
||||
/* 공장 선택 영역 */
|
||||
.factory-selection-area {
|
||||
padding: 2rem;
|
||||
background: var(--surface-color, #fff);
|
||||
border-radius: 8px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.factory-selection-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.factory-selection-header h3 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
margin: 0 0 0.5rem;
|
||||
}
|
||||
|
||||
.factory-selection-subtitle {
|
||||
color: var(--text-secondary, #64748b);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.factory-cards-container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1.5rem;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.factory-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 2rem 1.5rem;
|
||||
background: var(--bg-color, #f8fafc);
|
||||
border: 2px solid var(--border-color, #e2e8f0);
|
||||
border-radius: 16px;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.patrol-time-btn:hover {
|
||||
.factory-card:hover {
|
||||
border-color: var(--primary-color, #3b82f6);
|
||||
background: #eff6ff;
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
|
||||
}
|
||||
|
||||
.patrol-time-btn.active {
|
||||
background: var(--primary-color, #3b82f6);
|
||||
border-color: var(--primary-color, #3b82f6);
|
||||
color: #fff;
|
||||
.factory-card:active {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.factory-card-icon {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 12px;
|
||||
background: var(--surface-color, #fff);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 1rem;
|
||||
overflow: hidden;
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.factory-card-icon img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.factory-card-name {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 오늘 점검 현황 요약 */
|
||||
.today-status-summary {
|
||||
flex: 1;
|
||||
min-width: 300px;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
gap: 1.5rem;
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
justify-content: center;
|
||||
padding: 1rem 2rem;
|
||||
background: var(--bg-color, #f8fafc);
|
||||
border-radius: 8px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.status-card {
|
||||
text-align: center;
|
||||
padding: 0.75rem 1rem;
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--surface-color, #fff);
|
||||
border-radius: 8px;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
.status-label {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary, #64748b);
|
||||
margin-bottom: 0.25rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.status-value {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.status-value.completed {
|
||||
@@ -84,6 +146,12 @@
|
||||
color: var(--warning-color, #f59e0b);
|
||||
}
|
||||
|
||||
.status-sub {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary, #64748b);
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
/* 점검 영역 */
|
||||
.patrol-area {
|
||||
background: var(--surface-color, #fff);
|
||||
@@ -265,12 +333,15 @@
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* 작업장 목록 (지도 대체) */
|
||||
/* 작업장 목록 */
|
||||
.workplace-list-container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||
gap: 0.75rem;
|
||||
margin-top: 1rem;
|
||||
padding: 0.5rem;
|
||||
background: var(--bg-color, #f8fafc);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.workplace-card {
|
||||
@@ -292,11 +363,21 @@
|
||||
background: #f0fdf4;
|
||||
}
|
||||
|
||||
.workplace-card.selected {
|
||||
.workplace-card.in-progress {
|
||||
border-color: var(--primary-color, #3b82f6);
|
||||
background: #eff6ff;
|
||||
}
|
||||
|
||||
.workplace-card.selected {
|
||||
border-color: var(--primary-color, #3b82f6);
|
||||
background: var(--primary-color, #3b82f6);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.workplace-card.selected .workplace-card-status {
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.workplace-card-name {
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.25rem;
|
||||
@@ -586,17 +667,47 @@
|
||||
|
||||
/* 반응형 */
|
||||
@media (max-width: 768px) {
|
||||
.patrol-session-selector {
|
||||
flex-direction: column;
|
||||
.patrol-start-section {
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
|
||||
.patrol-date-time {
|
||||
flex-direction: column;
|
||||
.patrol-start-section .btn-lg {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.today-status-summary {
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.patrol-date-time .form-group {
|
||||
width: 100%;
|
||||
.status-card {
|
||||
flex: 1;
|
||||
min-width: auto;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.factory-selection-area {
|
||||
padding: 1.5rem 1rem;
|
||||
}
|
||||
|
||||
.factory-cards-container {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.factory-card {
|
||||
padding: 1.5rem 1rem;
|
||||
}
|
||||
|
||||
.factory-card-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.factory-card-name {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.patrol-content {
|
||||
|
||||
Reference in New Issue
Block a user