Added countdown timer to loading page — progress bar with sweep ETA

This commit is contained in:
Virgílio Santos
2026-03-14 15:53:55 -03:00
parent 1933e063ae
commit 4c601ed142
3 changed files with 81 additions and 9 deletions

18
scripts/clean.mjs Normal file
View File

@@ -0,0 +1,18 @@
import { rm, access } from 'fs/promises';
import { join } from 'path';
const targets = [
'runs/latest.json',
'runs/memory',
];
for (const target of targets) {
const full = join(process.cwd(), target);
try {
await access(full);
await rm(full, { recursive: true });
console.log(`removed: ${target}`);
} catch {
// not found — skip silently
}
}