MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / resetVendorProgressPanel

Function resetVendorProgressPanel

static/js/payment.js:1323–1338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1321}
1322
1323function resetVendorProgressPanel() {
1324 vendorProgressState.cursor = 0;
1325 vendorProgressState.elapsedSeconds = 0;
1326 vendorProgressState.forceStopAfterSeconds = 120;
1327 const bar = document.getElementById("vendor-progress-bar");
1328 const percent = document.getElementById("vendor-progress-percent");
1329 const log = document.getElementById("vendor-progress-log");
1330 const title = document.getElementById("vendor-progress-title");
1331 const runtime = document.getElementById("vendor-progress-runtime");
1332 if (bar) bar.style.width = "0%";
1333 if (percent) percent.textContent = "0%";
1334 if (title) title.textContent = "卡商订阅进度";
1335 if (log) log.textContent = "等待执行...";
1336 if (runtime) runtime.textContent = "已运行 0 秒 / 可随时停止";
1337 setVendorRetryButtonState(false, false);
1338}
1339
1340function appendVendorLogs(logs) {
1341 if (!Array.isArray(logs) || !logs.length) return;

Callers 1

startVendorAutoBindFunction · 0.85

Calls 1

Tested by

no test coverage detected