1import {ApplicationController, useThrottle} from 'stimulus-use' 2 3/* stimulusFetch: 'lazy' */ 4export default class extends ApplicationController { 5 static outlets = ["article-content-remote", "article-content-modal"] 6 static throttles = ['download'] 7 static targets = ['modal', 'export'] 8 static values = { 9 contentId: String 10 } 11 12 connect() { 13 useThrottle(this); 14 15 if (this.hasArticleContentRemoteOutlet && this.hasModalTarget) { 16 this.articleContentRemoteOutlet.modalsTarget.appendChild(this.modalTarget); 17 } 18 } 19 20 download(event) { 21 if (this.hasArticleContentModalOutlet) { 22 this.articleContentModalOutlet.download(event); 23 } 24 } 25 26 print(event) { 27 if (this.hasArticleContentModalOutlet) { 28 this.articleContentModalOutlet.print(event); 29 } 30 } 31}
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.