PageSourceSearch

https://foro.hardlimit.com/es/assets/admin/federation-errors.9697887ea813b1e09d13.min.js

js hardlimit.com collected 2026-09-25 14:15:59 UTC 2,962 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1091,8756,34271,99127],{34034(x,d,s){s.r(d),s.d(d,{init:()=>p});var u=s(49897);function p(){const l=document.getElementById("errors");l&&l.addEventListener("toggle",m,!0);const n=document.getElementById("hostnameFilter"),a=document.getElementById("typeFilter");n&&n.addEventListener("input",utils.debounce(c,300)),a&&a.addEventListener("change",c)}function c(){const l=document.getElementById("hostnameFilter"),n=document.getElementById("typeFilter"),a={};l.value.trim()&&(a.hostname=l.value.trim()),n.value&&(a.type=n.value),(0,u.get)(`/api${ajaxify.data.url}`,a).then(async i=>{const y=await app.parseAndTranslate("admin/federation/errors","errors",{errors:i.errors}),f=document.getElementById("errors");f&&($(f).html(y),f.addEventListener("toggle",m,!0)),$("#payload").text("")})}function m(l){const n=document.getElementById("payload");if(l.target.open){const a=l.target.getAttribute("data-index"),i=ajaxify.data.errors[a];console.log(i),n.innerText=i.body}else n.innerText=""}},49897(x,d,s){s.r(d),s.d(d,{del:()=>T,get:()=>i,head:()=>y,patch:()=>O,post:()=>f,put:()=>P});var u=s(91749),p=s.n(u),c=s(33530),m=s.n(c);const l=config.relative_path+"/api/v3";async function n(e,r){if(e.url=e.url.startsWith("/api")?config.relative_path+e.url:l+e.url,typeof r=="function"){a(e).then(t=>r(null,t),t=>r(t));return}try{return await a(e)}catch(t){if(t.message==="A valid login session was not found. Please log in and try again."){const{url:h}=await(0,u.fire)("filter:admin.reauth",{url:"login"});return(0,c.confirm)("[[error:api.reauth-required]]",g=>{g&&ajaxify.go(h)})}throw t}}async function a(e){const{url:r}=e;delete e.url,e.data&&!(e.data instanceof FormData)&&(e.data=JSON.stringify(e.data||{}),e.headers["content-type"]="application/json; charset=utf-8"),{options:e}=await(0,u.fire)("filter:api.options",{options:e}),e.data&&(e.body=e.data,delete e.data);const t=await fetch(r,e),{headers:h}=t;if(h.get("x-redirect"))return a({url:h.get("x-redirect"),...e});const g=h.get("content-type"),E=g&&g.startsWith("application/json");let o;if(e.method!=="HEAD"&&(E?o=await t.json():o=await t.text()),!t.ok){if(o){const v=E&&(o.status?.message||o.error||"");throw new Error(E&&v?v:o)}throw new Error(t.statusText)}return E&&o&&o.hasOwnProperty("status")&&o.hasOwnProperty("response")?o.response:o}function i(e,r,t){return n({url:e+(r&&Object.keys(r).length?"?"+$.param(r):"")},t)}function y(e,r,t){return n({url:e+(r&&Object.keys(r).length?"?"+$.param(r):""),method:"HEAD"},t)}function f(e,r,t){return n({url:e,method:"POST",data:r,headers:{"x-csrf-token":config.csrf_token}},t)}function O(e,r,t){return n({url:e,method:"PATCH",data:r,headers:{"x-csrf-token":config.csrf_token}},t)}function P(e,r,t){return n({url:e,method:"PUT",data:r,headers:{"x-csrf-token":config.csrf_token}},t)}function T(e,r,t){return n({url:e,method:"DELETE",data:r,headers:{"x-csrf-token":config.csrf_token}},t)}}}]);

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.