| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/clients/client2/web30/web/backup/resources/ |
Upload File : |
import{s as l}from"./service-DfnCLkIR.js";import{_ as h,G as m,r as d,o as s,c as f,w as g,a as p,b as i,t as o,e as n}from"./index-UxwdVxub.js";const a="/api/v1",y={name:"Readarr",mixins:[l],props:{item:Object},components:{Generic:m},data:()=>({activity:null,missing:null,warnings:null,errors:null,serverError:!1}),created:function(){this.fetchConfig()},methods:{fetchConfig:function(){const e=t=>{console.error(t),this.serverError=!0};this.fetch(`${a}/health?apikey=${this.item.apikey}`).then(t=>{this.warnings=t.filter(r=>r.type==="warning").length,this.errors=t.filter(r=>r.type==="errors").length}).catch(e),this.fetch(`${a}/queue?apikey=${this.item.apikey}`).then(t=>{this.activity=t.totalRecords}).catch(e),this.fetch(`${a}/wanted/missing?apikey=${this.item.apikey}`).then(t=>{this.missing=t.totalRecords}).catch(e)}}},u={class:"notifs"},_={key:0,class:"notif activity",title:"Activity"},k={key:1,class:"notif missing",title:"Missing"},v={key:2,class:"notif warnings",title:"Warning"},w={key:3,class:"notif errors",title:"Error"},$={key:4,class:"notif errors",title:"Connection error to Readarr API, check url and apikey in config.yml"};function C(e,t,r,E,R,B){const c=d("Generic");return s(),f(c,{item:r.item},{indicator:g(()=>[p("div",u,[e.activity>0?(s(),i("strong",_,o(e.activity),1)):n("",!0),e.missing>0?(s(),i("strong",k,o(e.missing),1)):n("",!0),e.warnings>0?(s(),i("strong",v,o(e.warnings),1)):n("",!0),e.errors>0?(s(),i("strong",w,o(e.errors),1)):n("",!0),e.serverError?(s(),i("strong",$,"?")):n("",!0)])]),_:1},8,["item"])}const I=h(y,[["render",C],["__scopeId","data-v-205ec076"]]);export{I as default};