PageSourceSearch

https://salle-s.org/resources/UptimeKuma-BgOKg7QE.js

js salle-s.org collected 2026-10-06 15:02:32 UTC 2,260 bytes, 1 lines download raw bytes

1import{B as e,R as t,_ as n,a as r,i,l as a,m as o,n as s,o as c,s as l,t as u,y as d}from"./_plugin-vue_export-helper-LledoY8b.js";import{t as f}from"./service-AWe6Zi3q.js";var p={name:`UptimeKuma`,mixins:[f],props:{item:Object},data:()=>({incident:null,heartbeat:null}),computed:{dashboard:function(){return this.item.slug?this.item.slug:`default`},status:function(){return this.incident?this.incident.incident==null?this.pageStatus:`bad`:``},lastHeartBeatList:function(){let e={};for(let t in this.heartbeat.heartbeatList){let n=this.heartbeat.heartbeatList[t].length-1;e[t]=this.heartbeat.heartbeatList[t][n]}return e},pageStatus:function(){if(!this.heartbeat||Object.keys(this.heartbeat.heartbeatList).length===0)return``;let e=`good`,t=!1;for(let n in this.lastHeartBeatList)this.lastHeartBeatList[n].status==1?t=!0:e=`warn`;return t||(e=`bad`),e},statusMessage:function(){if(!this.incident)return``;if(this.incident.incident)return this.incident.incident.title;let e;switch(this.pageStatus){case`good`:e=`All Systems Operational`;break;case`warn`:e=`Partially Degraded Service`;break;case`bad`:e=`Degraded Service`;break;default:e=`Unknown service status`}return e},uptime:function(){if(!this.heartbeat)return 0;let e=Object.values(this.heartbeat.uptimeList);return((e.reduce((e,t)=>e+t,0)/e.length||0)*100).toFixed(1)}},created(){this.item.url=`${this.item.url}/status/${this.dashboard}`,this.autoUpdateMethod=this.fetchStatus,this.fetchStatus()},methods:{fetchStatus:function(){let e=Date.now();this.fetch(`/api/status-page/${this.dashboard}?cachebust=${e}`).catch(e=>console.error(e)).then(e=>this.incident=e),this.fetch(`/api/status-page/heartbeat/${this.dashboard}?cachebust=${e}`).catch(e=>console.error(e)).then(e=>this.heartbeat=e)}}},m={class:`title is-4`},h={class:`subtitle is-6`};function g(u,f,p,g,_,v){let y=n(`Generic`);return o(),r(y,{item:p.item},{content:d(()=>[i(`p`,m,e(p.item.name),1),i(`p`,h,[p.item.subtitle?(o(),l(s,{key:0},[a(e(p.item.subtitle),1)],64)):v.status?(o(),l(s,{key:1},[a(e(v.statusMessage),1)],64)):c(``,!0)])]),indicator:d(()=>[v.status?(o(),l(`div`,{key:0,class:t([`status`,v.status])},e(v.uptime)+`% `,3)):c(``,!0)]),_:1},8,[`item`])}var _=u(p,[[`render`,g],[`__scopeId`,`data-v-326890a8`]]);export{_ 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.