| 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 d}from"./service-DfnCLkIR.js";import{_ as m,G as h,r as f,o as n,c as _,w as i,a as c,t as s,b as o,F as r,d as u,e as p,n as b}from"./index-UxwdVxub.js";const k={name:"AdGuardHome",mixins:[d],props:{item:Object},components:{Generic:h},data:()=>({status:null,stats:null}),computed:{percentage:function(){return this.stats?(this.stats.num_blocked_filtering*100/this.stats.num_dns_queries).toFixed(2):""},protection:function(){return this.status?this.status.protection_enabled?"enabled":"disabled":"unknown"}},created:function(){this.fetchStatus(),this.item.subtitle||this.fetchStats()},methods:{fetchStatus:async function(){this.status=await this.fetch("/control/status").catch(t=>console.log(t))},fetchStats:async function(){this.stats=await this.fetch("/control/stats").catch(t=>console.log(t))}}},g={class:"title is-4"},x={class:"subtitle is-6"};function G(t,w,e,y,S,a){const l=f("Generic");return n(),_(l,{item:e.item},{content:i(()=>[c("p",g,s(e.item.name),1),c("p",x,[e.item.subtitle?(n(),o(r,{key:0},[u(s(e.item.subtitle),1)],64)):t.stats?(n(),o(r,{key:1},[u(s(a.percentage)+"% blocked ",1)],64)):p("",!0)])]),indicator:i(()=>[c("div",{class:b(["status",a.protection])},s(a.protection),3)]),_:1},8,["item"])}const C=m(k,[["render",G],["__scopeId","data-v-e280e4f8"]]);export{C as default};