PageSourceSearch

https://www.wikiloops.com/build/assets/ForumManager-ChSu7Int.js

js wikiloops.com collected 2026-10-03 20:37:22 UTC 979 bytes, 1 lines download raw bytes

1import{H as c}from"./app-BR1fBiXY.js";class d{constructor(e){this._handleClick=t=>{const s=t.target.closest("[data-action]");s&&s.dataset.action==="rate-thread"&&this.mgr.likeForumPost(t,s)},this.mgr=e,this.container=document.body}setListeners(){this.container.addEventListener("click",e=>this._handleClick(e))}}class i{constructor(e){this.state=e,this.httpService=c.getInstance(e),this.eventRouter=new d(this),this.eventRouter.setListeners()}static getInstance(e){return i.instance||(i.instance=new i(e)),i.instance}likeForumPost(e,t){if(e.preventDefault(),!t||!(t instanceof HTMLButtonElement))return;const s=t.dataset.threadId;if(!s)return;t.disabled=!0,t.style.display="none";const r=t.dataset.thread;this.httpService.wlPost(this.state.d.a+"forum-thread-like","id="+s+"&user="+t.dataset.author+"&thread="+r,"",h=>{const n=document.getElementById("postlike"+r);if(n){const a=parseInt(n.textContent.replace("+",""))+1;n.textContent="+"+a}t.disabled=!1})}}export{i as default};

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.