1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 static values = { url: String } 5 6 connect() { 7 // fire once 8 if (this.element.dataset.loaded) return 9 this.element.dataset.loaded = "1" 10 11 fetch(this.urlValue, { 12 headers: { Accept: "text/vnd.turbo-stream.html" }, 13 credentials: "same-origin", 14 }) 15 .then(r => r.text()) 16 .then(html => Turbo.renderStreamMessage(html)) 17 } 18};
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.