fix turbo on dashboard + optimize a few more things.

This commit is contained in:
KingKDot
2026-07-13 21:54:21 -05:00
parent b08d8ba028
commit feb712e2de
16 changed files with 194 additions and 83 deletions
+2 -5
View File
@@ -2,7 +2,6 @@ import { createBuildProfileManager } from "./build-profile-manager.js";
import {
createBuildHistoryManager,
formatFileSize,
updateExpirationTimer,
} from "./build-history-manager.js";
const form = document.getElementById("build-form");
@@ -2259,7 +2258,8 @@ function showBuildFiles(files, buildId, expiresAt) {
const timer = document.createElement("span");
timer.id = "expiration-timer";
timer.className = "text-yellow-400 font-medium";
timer.dataset.expires = String(expiresAt);
timer.dataset.controller = "countdown";
timer.dataset.countdownExpiresAtValue = String(expiresAt);
timer.textContent = "Calculating...";
right.appendChild(clockIcon);
right.appendChild(expiresLabel);
@@ -2270,9 +2270,6 @@ function showBuildFiles(files, buildId, expiresAt) {
buildInfoDiv.appendChild(infoRow);
buildFilesDiv.appendChild(buildInfoDiv);
updateExpirationTimer(timer, expiresAt);
setInterval(() => updateExpirationTimer(timer, expiresAt), 60000);
files.forEach((file) => {
const fileDiv = document.createElement("div");
fileDiv.className =