PageSourceSearch

https://newleftreview.org/assets/controllers/file_input_controller…7003616d9a8157292508efe8fb6f28a4b1c07857.js

js newleftreview.org collected 2026-10-02 02:31:48 UTC 368 bytes, 15 lines download raw bytes

1import { Controller } from '@hotwired/stimulus'
2
3export default class extends Controller {
4  static targets = ['label']
5
6  get value() {
7    return this.element.querySelector('input').value
8  }
9
10  handleChange() {
11    const fileName = this.value.replace(/^.*[\\\/]/, '')
12    this.labelTarget.textContent = fileName
13    this.labelTarget.classList.add('success')
14  }
15};

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.