diff --git a/.gitignore b/.gitignore index ec134c9..e726d78 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ __pycache__/ *.pyc *.pyo venv/ +venv-convert/ .venv/ # Data / state @@ -27,6 +28,7 @@ batch_crossings.csv *.log *.jpg *.png +calib_images/ # Superpowers / scratch .superpowers/ diff --git a/static/img/sun_light mode.svg b/static/img/sun_light mode.svg index b23ad1b..3438f90 100644 --- a/static/img/sun_light mode.svg +++ b/static/img/sun_light mode.svg @@ -1 +1,40 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/dashboard.html b/templates/dashboard.html index e299b2c..94b7b02 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -172,14 +172,13 @@ color: var(--text-muted); } .btn-theme { -.btn-theme img { width: 20px; height: 20px; display: block; } -html[data-theme="dark"] #themeIcon { filter: invert(1) brightness(1.2); } min-width: var(--touch-min); min-height: var(--touch-min); padding: 8px; border-radius: 8px; background: var(--btn-ghost-bg); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; } + .btn-theme img { width: 20px; height: 20px; display: block; } /* ── Main ── */ .main { @@ -794,15 +793,14 @@ html[data-theme="dark"] #themeIcon { filter: invert(1) brightness(1.2); } background: rgba(0,0,0,0.18); } .modal-table th:nth-child(1), .modal-table td:nth-child(1) { width: 9%; } - .modal-table th:nth-child(2), .modal-table td:nth-child(2) { width: 14%; } - .modal-table th:nth-child(3), .modal-table td:nth-child(3) { width: 11%; } + .modal-table th:nth-child(2), .modal-table td:nth-child(2) { width: 15%; } + .modal-table th:nth-child(3), .modal-table td:nth-child(3) { width: 13%; } .modal-table th:nth-child(4), .modal-table td:nth-child(4), .modal-table th:nth-child(5), .modal-table td:nth-child(5) { width: 10%; } - .modal-table th:nth-child(6), .modal-table td:nth-child(6) { width: 10%; } - .modal-table th:nth-child(7), .modal-table td:nth-child(7) { width: 10%; } - .modal-table th:nth-child(8), .modal-table td:nth-child(8) { width: 10%; } - .modal-table th:nth-child(9), .modal-table td:nth-child(9) { width: 9%; } - .modal-table th:nth-child(10), .modal-table td:nth-child(10) { width: 7%; } + .modal-table th:nth-child(6), .modal-table td:nth-child(6) { width: 11%; } + .modal-table th:nth-child(7), .modal-table td:nth-child(7) { width: 11%; } + .modal-table th:nth-child(8), .modal-table td:nth-child(8) { width: 11%; } + .modal-table th:nth-child(9), .modal-table td:nth-child(9) { width: 10%; } .modal-table .mono { font-family: var(--mono); font-weight: 600; } .modal-empty { color: var(--text-muted); font-size: 12px; padding: 16px; text-align: center; @@ -886,7 +884,7 @@ html[data-theme="dark"] #themeIcon { filter: invert(1) brightness(1.2); }
{{ site_name }}
Counting Day: --
- + @@ -1195,7 +1193,6 @@ html[data-theme="dark"] #themeIcon { filter: invert(1) brightness(1.2); } Mulai Selesai Durasi - Porsi @@ -1293,8 +1290,9 @@ function chartThemeColors() { function syncThemeToggleUi() { const icon = document.getElementById('themeIcon'); - const sunUrl = "{{ url_for('static', filename='img/sun_light mode.svg') }}"; + const sunUrl = "{{ url_for('static', filename='img/sun_light mode.svg') }}?v=2"; const moonUrl = "{{ url_for('static', filename='img/moon_dark mode.svg') }}"; + const btn = document.getElementById('themeToggle'); if (!btn) return; const light = getTheme() === 'light'; if (icon) icon.src = light ? moonUrl : sunUrl; @@ -1974,7 +1972,6 @@ async function showDayDetail(date) { const typePill = bType === 'mixed' ? 'MIXED' : `${bType.toUpperCase()}`; - const pct = total > 0 ? (b.count / total) * 100 : 0; return ` #${b.batch_number} @@ -1986,7 +1983,6 @@ async function showDayDetail(date) { ${formatTime(b.start_time)} ${formatTime(b.end_time)} ${b.duration_minutes} menit - ${pct.toFixed(1)}% `; }).join(''); @@ -2001,10 +1997,9 @@ async function showDayDetail(date) { ${batches[0] ? formatTime(batches[0].start_time) : '--'} ${batches[batches.length - 1] ? formatTime(batches[batches.length - 1].end_time) : '--'} ${Math.round(totalDuration * 10) / 10} menit - 100% `; } else { - tableHtml = `Tidak ada batch pada tanggal ini`; + tableHtml = `Tidak ada batch pada tanggal ini`; } document.getElementById('modal-table-body').innerHTML = tableHtml;