1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 connect() { 5 this.element.style.opacity = "0" 6 this.element.style.transform = "translateY(-0.5rem)" 7 this.element.style.transition = "opacity 0.25s ease-out, transform 0.25s ease-out" 8 9 requestAnimationFrame(() => { 10 this.element.style.opacity = "1" 11 this.element.style.transform = "translateY(0)" 12 }) 13 14 this.dismissTimeout = setTimeout(() => this.dismiss(), 3000) 15 } 16 17 disconnect() { 18 if (this.dismissTimeout) clearTimeout(this.dismissTimeout) 19 } 20 21 dismiss() { 22 this.element.style.transition = "opacity 0.25s ease-in, transform 0.25s ease-in" 23 this.element.style.opacity = "0" 24 this.element.style.transform = "translateY(-0.5rem)" 25 setTimeout(() => this.element.remove(), 250) 26 } 27};
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.