1import { Controller } from "@hotwired/stimulus"; 2import { debounce } from 'utils/debounce'; 3 4export default class extends Controller { 5 connect() { 6 // When any input form inside this controller changes, debounce form submission 7 this.element.querySelectorAll('input').forEach(input => { 8 input.addEventListener('input', debounce(() => { 9 input.form.requestSubmit(); 10 }, 1000)); 11 }); 12 } 13}
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.