PageSourceSearch

https://snooze.pub/assets/controllers/restaurant_pos_kitchen_contr…aca22b537a72cfec1d6e26ac6493e4ea83961798.js

js snooze.pub collected 2026-10-07 06:56:27 UTC 451 bytes, 20 lines download raw bytes

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.