1import { Controller } from "@hotwired/stimulus" 2 3// ÐонÑÑÐ¾Ð»Ð»ÐµÑ Ð´Ð»Ñ Ð¾ÑÑÐ»ÐµÐ¶Ð¸Ð²Ð°Ð½Ð¸Ñ ÐºÐ»Ð¸ÐºÐ¾Ð² по пеÑнÑм в ÑезÑлÑÑаÑÐ°Ñ Ð¿Ð¾Ð¸Ñка 4export default class extends Controller { 5 static values = { songId: Number } 6 7 track(event) { 8 const songId = event.currentTarget.dataset.searchClickSongIdValue 9 if (songId) { 10 fetch(`/search_clicks/${songId}`, { 11 method: "POST", 12 headers: { "X-CSRF-Token": document.querySelector("meta[name='csrf-token']").content } 13 }) 14 } 15 } 16}
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.