HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/back-sqlite.js
import{_ as h}from"./index118.js?v=1777008528";import{R as w,G as B,k as o,d3 as y}from"./utils-lib.js?v=1777008528";import{c as v,r as m,aF as D,o as q,I as x,j as S,k as C,e as n,v as r,x as E,J as N,p as d,z as O}from"./base-lib.js?v=1777008528";import{backupSqlite as T,delSqliteBackup as J,getSqliteBackup as L}from"./database.js?v=1777008528";import{g as z}from"./index3.js?v=1777008528";import{g as V}from"./useStore4.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";const j={class:"p-[20px] h-full"},W=v({__name:"back-sqlite",props:{compData:{default:()=>({})}},setup(u){const{refreshTableList:s}=V(),i=u,l=m(!1),c=m([]),_=async()=>{try{await o({loading:"正在备份数据库,请稍后...",message:!0,request:T({data:JSON.stringify({path:i.compData.path})})}),e(),s()}catch(t){}},f=[{label:"名称",prop:"name",showOverflowTooltip:!0},{label:"时间",width:160,render:t=>D("span",w(t.mtime))},{label:"大小",render:t=>B(t.size)},z([{onClick:t=>{window.open("/download?filename="+t.filepath,"_blank","noopener,noreferrer")},title:"下载"},{onClick:async t=>{try{await o({loading:"正在删除数据库备份文件...",message:!0,request:J({data:JSON.stringify({file:t.filepath})})}),e(),s()}catch(a){}},title:"删除"}])],e=async()=>{await o({loading:l,request:L({data:JSON.stringify({path:i.compData.path})}),data:[Array,c]})};return q(()=>{e()}),(t,a)=>{const g=O,b=y,k=h,p=x("bt-loading");return S(),C("div",j,[n(k,null,{"header-left":r(()=>[n(g,{type:"primary",onClick:_},{default:r(()=>[...a[0]||(a[0]=[E("备份",-1)])]),_:1})]),content:r(()=>[N(n(b,{ref:"routeBackup",data:d(c),"max-height":400,column:f},null,8,["data"]),[[p,d(l)],[p,"正在加载中,请稍后...","title"]])]),_:1})])}}});export{W as default};