⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
panel
/
BTPanel
/
static
/
vite
/
js
/
View File Name :
logs.vue_vue_type_script_setup_true_lang2.js
import{_ as a}from"./public.js?v=1764233927359";import{_ as s}from"./index104.js?v=1764233927359";import{bf as e,q as t,cx as l,d as i}from"./page_layout.js?v=1764233927359";import{k as p,P as n,r as o,c,b as u,R as d,V as r,S as m,W as x,a2 as f,an as g,a4 as v,U as y,a3 as b,j as _}from"./vue.js?v=1764233927359";import{e2 as q,dc as w}from"./naive.js?v=1764233927359";const D=()=>e.post("/database?action=GetImportLog"),M={class:"w-680px p-20px"},j={class:"flex items-center"},k={class:"flex-1 leading-20px ml-10px"},$={class:"text-14px mb-4px"},S={class:"flex items-center gap-6px text-font2"},G={class:"my-20px"},O={class:"flex items-center leading-30px whitespace-pre"},T={class:"flex-1 w-0"},h={class:"leading-30px"},z={class:"leading-30px"},I={class:"h-400px mt-10px"},B=p({__name:"logs",props:{type:{type:String,default:"backup"},row:{type:Object,required:!0}},emits:["close"],setup(p,{emit:D}){const B=D,{t:L}=n(),P=o(!0),R=o(""),U=o(""),V=o(""),W=c(()=>"import"===p.type?L("Database.Mysql.type.import"):"recover"===p.type?L("Database.Mysql.type.recover"):L("Database.Mysql.type.backup"));let A=null;const C=()=>{P.value=!1,A&&(clearTimeout(A),A=null)},E=async()=>{const{message:a}="backup"===p.type?await(s={id:p.row.id},e.post("/database?action=GetBackupSize",s)):await(a=>e.post("/database?action=GetImportSize",a))({name:p.row.name});var s;if(i(a)){if(R.value=a.msg,!a.status)return void C();U.value=a.total,V.value=a.speed;const s=(-1!==a.msg.indexOf("successful")||-1!==a.msg.indexOf("Successfully"))&&a.status;if(s)return void setTimeout(()=>{F()},2e3);a.speed&&P.value&&!s&&(A=window.setTimeout(()=>{E()},1e3))}},F=()=>{P.value=!1,C(),B("close")};return u(()=>{C()}),E(),(e,i)=>{const n=t,o=w,c=q,u=l,D=s,B=a;return r(),d("div",M,[m("div",j,[i[0]||(i[0]=m("i",{class:"i-common:loading text-30px animate-spin"},null,-1)),m("div",k,[m("div",$,v(e.$t("Database.Mysql.logs.index_1",[y(W)])),1),m("div",S,[m("span",null,v(e.$t("Database.Mysql.logs.index_2",[y(W),y(W)])),1)])])]),m("div",G,[x(n)]),x(u,{class:"text-14px","x-gap":"12",cols:10},{default:b(()=>[x(c,{span:4},{default:b(()=>[m("div",O,[m("span",null,v(e.$t("Database.Mysql.logs.index_3")),1),m("div",T,[x(o,null,{default:b(()=>[_(v(p.row.name),1)]),_:1})])])]),_:1}),x(c,{span:3},{default:b(()=>[m("div",h,[m("span",null,v(e.$t("Database.Mysql.logs.index_4")),1),m("span",null,v(y(U)||"--"),1)])]),_:1}),x(c,{span:3},{default:b(()=>[m("div",z,[m("span",null,v(e.$t("Database.Mysql.logs.index_5")),1),m("span",null,v(y(V)||"--"),1)])]),_:1})]),_:1}),m("div",I,[x(D,{log:y(R)},null,8,["log"])]),"import"===p.type?(r(),f(B,{key:0,class:"mt-10px"},{default:b(()=>[m("li",null,v(e.$t("Database.Mysql.logs.index_6")),1)]),_:1})):g("",!0)])}}});export{B as _,D as g};