1import { Controller } from "@hotwired/stimulus" 2 3// Connects to data-controller="admin--pictures--search-form" 4export default class extends Controller { 5 static targets = ['searchForm'] 6 7 clearForm () { 8 this.searchFormTarget.querySelectorAll('input').forEach(input => input.value = ''); 9 this.searchFormTarget.querySelectorAll('select').forEach(select => select.selectedIndex = 0); 10 this.searchFormTarget.requestSubmit(); 11 } 12 13 search () { 14 this.searchFormTarget.requestSubmit(); 15 } 16}
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.