tacilytics 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/style.css +4 -0
- package/server.js +4 -1
package/package.json
CHANGED
package/public/style.css
CHANGED
|
@@ -409,3 +409,7 @@ header::after { content: ""; position: absolute; left: 18px; right: 18px; bottom
|
|
|
409
409
|
@keyframes taci-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(45,212,191,.18); } 50% { box-shadow: 0 0 0 6px rgba(45,212,191,.05); } }
|
|
410
410
|
@media (prefers-reduced-motion: reduce) { .realtime .dot { animation: none; } }
|
|
411
411
|
@media (max-width: 760px) { header { margin: 10px 0 18px; top: 8px; padding: 10px 12px; } .brand .subtitle { display: none; } }
|
|
412
|
+
|
|
413
|
+
/* native dropdown lists follow the dark theme (otherwise light text on a white popup) */
|
|
414
|
+
select { color-scheme: dark; }
|
|
415
|
+
select option { background: #0c1a1d; color: var(--text); }
|
package/server.js
CHANGED
|
@@ -419,7 +419,10 @@ function rangeFor(query) {
|
|
|
419
419
|
}
|
|
420
420
|
const period = PERIODS[query.period] ? query.period : '7d';
|
|
421
421
|
const days = PERIODS[period];
|
|
422
|
-
|
|
422
|
+
// Whole UTC days: "7d" = today + the 6 full days before it. Starting at now - 7×24h would
|
|
423
|
+
// cut the oldest day off at the current clock time and undercount it.
|
|
424
|
+
const today0 = Date.parse(new Date(now).toISOString().slice(0, 10) + 'T00:00:00Z');
|
|
425
|
+
const start = today0 - (days - 1) * 864e5;
|
|
423
426
|
return { start, end: now, days, period, hourly: period === 'today' };
|
|
424
427
|
}
|
|
425
428
|
|