()
| 20173 | </div> |
| 20174 | </div> |
| 20175 | `; |
| 20176 | } |
| 20177 | }); |
| 20178 | |
| 20179 | html += '</div>'; |
| 20180 | |
| 20181 | if (html === '<div class="space-y-6"></div>') { |
| 20182 | container.innerHTML = '<p class="text-gray-400">No credentials discovered yet</p>'; |
| 20183 | } else { |
| 20184 | container.innerHTML = html; |
| 20185 | } |
| 20186 | } |
| 20187 | |
| 20188 | function displayLootTable(data) { |
| 20189 | const container = document.getElementById('loot-table'); |
| 20190 | if (!container) return; |
| 20191 | |
| 20192 | if (!data || data.length === 0) { |
| 20193 | container.innerHTML = '<p class="text-gray-400">No loot data available</p>'; |
| 20194 | return; |
| 20195 | } |
| 20196 | |
| 20197 | const previewCount = 6; |
| 20198 | const hasMoreItems = data.length > previewCount; |
| 20199 | const previewItems = data.slice(0, previewCount); |
| 20200 | const hiddenItems = hasMoreItems ? data.slice(previewCount) : []; |
| 20201 | |
| 20202 | function createLootItemHTML(item) { |
| 20203 | const filename = escapeHtml(item.filename || 'Unknown File'); |
| 20204 | const size = escapeHtml(item.size || 'N/A'); |
no test coverage detected