1import { BridgeComponent, BridgeElement } from "@hotwired/hotwire-native-bridge" 2 3export default class extends BridgeComponent { 4 static component = "form" 5 static targets = ["submit"] 6 7 connect() { 8 super.connect() 9 this.notifyBridgeOfConnect() 10 } 11 12 notifyBridgeOfConnect() { 13 const submitButton = new BridgeElement(this.submitTarget) 14 const submitTitle = submitButton.title 15 16 this.send("connect", { submitTitle }, () => { 17 this.submitTarget.click() 18 }) 19 } 20 21 submitStart(event) { 22 this.submitTarget.disabled = true 23 this.send("submitDisabled") 24 } 25 26 submitEnd(event) { 27 this.submitTarget.disabled = false 28 this.send("submitEnabled") 29 } 30}
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.