1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 static values = { refreshUrl: String } 5 6 connect() { 7 this.timer = setInterval(() => this.refresh(), 15000) 8 } 9 10 disconnect() { 11 clearInterval(this.timer) 12 } 13 14 refresh() { 15 if (!this.refreshUrlValue) return 16 fetch(this.refreshUrlValue) 17 .then(r => r.json()) 18 .then(data => console.debug("KDS refresh", data.orders?.length)) 19 } 20};
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.