PageSourceSearch

https://kwain.net/resources/NetAlertx-DJvbNRi3.js

js kwain.net collected 2026-10-04 11:06:26 UTC 1,315 bytes, 1 lines download raw bytes

1import{c as e,d as t,l as n,m as r,n as i,o as a,p as o,r as s,s as c,v as l}from"./index-C32yDzkE.js";var u={name:`NetAlertx`,mixins:[i],props:{item:Object},data:()=>({total:0,connected:0,newdevices:0,downalert:0,serverError:!1}),created(){this.autoUpdateMethod=this.fetchStatus,this.fetchStatus()},methods:{fetchStatus:async function(){this.fetch(`/devices/totals`,{headers:{Authorization:`Bearer ${this.item.apikey}`}}).then(e=>{this.total=e.total||e[0]||0,this.connected=e.connected||e[1]||0,this.newdevices=e.new||e[3]||0,this.downalert=e.down||e[4]||0,this.serverError=!1}).catch(e=>{console.log(e),this.serverError=!0})}}},d={class:`notifs`},f={class:`notif total`,title:`Total Devices`},p={class:`notif connected`,title:`Connected Devices`},m={class:`notif newdevices`,title:`New Devices`},h={class:`notif alert`,title:`Down Alerts`},g={key:0,class:`notif alert`,title:`Connection error to NetAlertx server, check the url in config.yml`};function _(i,s,u,_,v,y){let b=o(`Generic`);return t(),c(b,{item:u.item},{indicator:r(()=>[a(`div`,d,[a(`strong`,f,l(i.total),1),a(`strong`,p,l(i.connected),1),a(`strong`,m,l(i.newdevices),1),a(`strong`,h,l(i.downalert),1),i.serverError?(t(),n(`strong`,g,`?`)):e(``,!0)])]),_:1},8,[`item`])}var v=s(u,[[`render`,_],[`__scopeId`,`data-v-6cd91e65`]]);export{v 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.