1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 static targets = ["select", "group"] 5 6 connect() { 7 this.showGroup() 8 } 9 10 showGroup() { 11 const selectedId = this.selectTarget.value 12 13 this.groupTargets.forEach((group) => { 14 if (group.dataset.groupId === selectedId) { 15 group.style.display = "block" 16 } else { 17 group.style.display = "none" 18 } 19 }) 20 } 21}
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.