| 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/c.pacim.de/web/backup/resources/ |
Upload File : |
import{s as a}from"./service-DfnCLkIR.js";import{_ as c,G as f,r as l,o as n,c as m,w as g,a as d,b as s,t as r,e as o}from"./index-UxwdVxub.js";const u={name:"Medusa",mixins:[a],props:{item:Object},components:{Generic:f},data:()=>({config:null,serverError:!1}),created:function(){this.fetchConfig()},methods:{fetchConfig:function(){this.fetch("/api/v2/config",{headers:{"X-Api-Key":this.item.apikey}}).then(e=>{this.config=e}).catch(e=>{console.log(e),this.serverError=!0})}}},h={class:"notifs"},p={key:0,class:"notif news",title:"News"},_={key:1,class:"notif warnings",title:"Warning"},y={key:2,class:"notif errors",title:"Error"},k={key:3,class:"notif errors",title:"Connection error to Medusa API, check url and apikey in config.yml"};function v(e,w,t,E,C,B){const i=l("Generic");return n(),m(i,{item:t.item},{indicator:g(()=>[d("div",h,[e.config!==null&&e.config.system.news.unread>0?(n(),s("strong",p,r(e.config.system.news.unread),1)):o("",!0),e.config!==null&&e.config.main.logs.numWarnings>0?(n(),s("strong",_,r(e.config.main.logs.numWarnings),1)):o("",!0),e.config!==null&&e.config.main.logs.numErrors>0?(n(),s("strong",y,r(e.config.main.logs.numErrors),1)):o("",!0),e.serverError?(n(),s("strong",k,"?")):o("",!0)])]),_:1},8,["item"])}const N=c(u,[["render",v],["__scopeId","data-v-0ade670a"]]);export{N as default};