(selectedLicense, elementId = 'model-license')
| 15687 | header.innerHTML = `<span class="duplicate-count">${files.length} duplicates found</span>`; |
| 15688 | filesList.appendChild(header); |
| 15689 | |
| 15690 | files.forEach((file) => { |
| 15691 | const fileDiv = document.createElement('div'); |
| 15692 | fileDiv.className = 'duplicate-file'; |
| 15693 | |
| 15694 | // Check if this is a ZIP entry |
| 15695 | const isZipEntry = file.filePath.includes('::'); |
| 15696 | if (isZipEntry) { |
| 15697 | fileDiv.classList.add('zip-entry'); |
| 15698 | } |
| 15699 | |
| 15700 | const checkbox = document.createElement('input'); |
| 15701 | checkbox.type = 'checkbox'; |
| 15702 | checkbox.setAttribute('data-filepath', file.filePath); |
| 15703 | |
| 15704 | // Disable checkbox for ZIP entries |
| 15705 | if (isZipEntry) { |
| 15706 | checkbox.disabled = true; |
| 15707 | checkbox.title = 'Cannot delete files inside ZIP archives'; |
| 15708 | } |
| 15709 | |
| 15710 | const filePath = document.createElement('span'); |
| 15711 | filePath.className = 'duplicate-file-path'; |
| 15712 | |
| 15713 | // Add ZIP badge indicator if it's a ZIP entry |
| 15714 | if (isZipEntry) { |
no outgoing calls
no test coverage detected