From 60dc41e83fbbd5e78a59af2421b17a91333749d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Wed, 24 Jun 2026 17:42:31 +0400 Subject: [PATCH] =?UTF-8?q?v1.0.175:=20=D0=BE=D0=B1=D1=89=D0=B5=D0=B5=20?= =?UTF-8?q?=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=E2=86=92=20compareCard,=20diffBody=20=D1=82=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=BA=D0=BE=20=D0=B4=D0=BB=D1=8F=20=D0=B3=D1=80=D1=83=D0=BF?= =?UTF-8?q?=D0=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/app.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/deploy/app.js b/deploy/app.js index 5b05d68..d14ddb1 100644 --- a/deploy/app.js +++ b/deploy/app.js @@ -401,7 +401,7 @@ window.runCompareForGroup = async function(gi) { var body = sec.querySelector('.diff-section-body'); body.style.display = body.style.display === 'none' ? 'block' : 'none'; }); - diffBody.appendChild(sec); + compareBody.appendChild(sec); sections[d.supplement_id] = sec; } else if (d.type === 'llm_done') { @@ -501,16 +501,16 @@ document.getElementById('llmBtn').addEventListener('click', function() { btn.disabled = true; btn.innerHTML = ' Сравнение...'; - var diffCard = document.getElementById('diffCard'); - var diffBody = document.getElementById('diffBody'); - var diffStatus = document.getElementById('diffStatus'); - diffCard.style.display = 'block'; - diffBody.innerHTML = ''; - diffStatus.textContent = '⏳ 0.0с'; + var compareCard = document.getElementById('compareCard'); + var compareBody = document.getElementById('compareBody'); + var compareStatus = document.getElementById('compareStatus'); + compareCard.style.display = 'block'; + compareBody.innerHTML = ''; + compareStatus.textContent = '⏳ 0.0с'; var llmStart = Date.now(); var timerInterval = setInterval(function() { - diffStatus.textContent = '⏳ ' + ((Date.now() - llmStart) / 1000).toFixed(1) + 'с'; + compareStatus.textContent = '⏳ ' + ((Date.now() - llmStart) / 1000).toFixed(1) + 'с'; }, 200); var order = fileQueue.map(function(f) { return f.supp_id; }).filter(Boolean).join(','); @@ -528,7 +528,7 @@ document.getElementById('llmBtn').addEventListener('click', function() { var body = sec.querySelector('.diff-section-body'); body.style.display = body.style.display === 'none' ? 'block' : 'none'; }); - diffBody.appendChild(sec); + compareBody.appendChild(sec); sections[d.supplement_id] = sec; } else if (d.type === 'llm_done') { @@ -562,16 +562,16 @@ document.getElementById('llmBtn').addEventListener('click', function() { } } else if (d.type === 'extract_error' || d.type === 'apply_error') { - diffBody.innerHTML += '
✗ ' + d.filename + ': ' + d.error + '
'; + compareBody.innerHTML += '
✗ ' + d.filename + ': ' + d.error + '
'; } else if (d.type === 'done') { clearInterval(timerInterval); es.close(); - diffStatus.textContent = '✓ ' + d.total_time_s + 'с'; + compareStatus.textContent = '✓ ' + d.total_time_s + 'с'; btn.innerHTML = ' ✓ Готово'; stepDone('stepCompare'); if (d.total_unresolved > 0) { - diffBody.innerHTML += '
⚠ ' + d.total_unresolved + ' неразрешённых строк — разобрать
'; + compareBody.innerHTML += '
⚠ ' + d.total_unresolved + ' неразрешённых строк — разобрать
'; } document.getElementById('chatCard').style.display = 'block'; lucide.createIcons(); @@ -579,8 +579,8 @@ document.getElementById('llmBtn').addEventListener('click', function() { else if (d.type === 'error') { clearInterval(timerInterval); es.close(); - diffBody.innerHTML += '
✗ ' + d.message + '
'; - btn.innerHTML = ' Общее сравнение'; + compareBody.innerHTML += '
✗ ' + d.message + '
'; + btn.innerHTML = ' Общее сравнение'; btn.disabled = false; } }; @@ -588,10 +588,10 @@ document.getElementById('llmBtn').addEventListener('click', function() { es.onerror = function() { clearInterval(timerInterval); es.close(); - if (diffBody.innerHTML === '') { - diffBody.innerHTML = '
✗ Ошибка соединения
'; + if (compareBody.innerHTML === '') { + compareBody.innerHTML = '
✗ Ошибка соединения
'; } - btn.innerHTML = ' Общее сравнение'; + btn.innerHTML = ' Общее сравнение'; btn.disabled = false; lucide.createIcons(); };