1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 static targets = ["issue", "image"] 5 6 connect() { 7 this.imageTargets.forEach((image) => { 8 if (image.complete && image.naturalWidth === 0) this.markFailed(image) 9 }) 10 } 11 12 imageFailed(event) { 13 this.markFailed(event.target) 14 } 15 16 markFailed(image) { 17 const card = image.closest(".og-card") 18 if (card) card.classList.add("is-failed") 19 20 this.issueTargets.forEach((issue) => { issue.hidden = false }) 21 } 22};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.