()
| 1321 | } |
| 1322 | |
| 1323 | function 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 | |
| 1340 | function appendVendorLogs(logs) { |
| 1341 | if (!Array.isArray(logs) || !logs.length) return; |
no test coverage detected