1import { Controller } from "@hotwired/stimulus" 2 3// A whole upload usually gets weighted as one wave, so this fills every weight 4// input in the form at once. It only stages the value -- saving is still the 5// form's own submit. 6export default class extends Controller { 7 static targets = ["source", "weight"] 8 9 apply() { 10 const value = this.sourceTarget.value 11 if (value === "") return 12 13 this.weightTargets.forEach((input) => { 14 input.value = value 15 }) 16 } 17}
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.