1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 static targets = ["form", "searchInput", "result"]; 5 6 find(event) { 7 const formData = new FormData(this.formTarget); 8 const url = new URL(this.formTarget.action); 9 10 formData.forEach((value, key) => { 11 url.searchParams.append(key, value); 12 }); 13 14 this.resultTarget.src = url.toString(); 15 } 16 17 clearInput() { 18 this.searchInputTarget.value = ""; 19 this.find(); 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.