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/index28.js
import{c as pe,e as E,_ as B,M as me,k as y,c4 as de,c7 as ce,cR as _e,c_ as be,b as fe,a as ve,d3 as ge,d4 as ye,w as ke}from"./utils-lib.js?v=1777008528";import{_ as we}from"./index118.js?v=1777008528";import{_ as xe}from"./index217.js?v=1777008528";import{c as Ve,r as m,g as U,H as z,e as o,w as Ce,o as Le,I as Se,j as d,k as O,p as a,C as T,v as l,y as De,q as r,x as c,Q as F,F as H,B as K,L as he,M as Re,s as Ne,J as $e,z as Ee,am as Be,an as Oe,aE as Te}from"./base-lib.js?v=1777008528";import{_ as Ae}from"./index175.js?v=1777008528";import{g as Pe}from"./useStore4.js?v=1777008528";import{getRedisKey as qe,getRedisKeyValue as Ie,delBatchRedisValue as Je,delRedisValue as Me,getModulesCloudServer as Ue}from"./database.js?v=1777008528";import{e as ze,g as Fe,t as He,b as Ke,a as je,c as Ge,v as Qe}from"./index3.js?v=1777008528";import{b as We,o as Xe,u as Ye}from"./useMethod5.js?v=1777008528";import{B as Ze}from"./index218.js?v=1777008528";import{_ as et}from"./index.vue_vue_type_script_setup_true_lang.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang.js?v=1777008528";import"./index116.js?v=1777008528";const tt={class:"flex items-center"},at={class:"flex items-center mx-4px inline-flex"},st={class:"flex items-center"},nt={class:"mr-[1.6rem] text-small"},ot={class:"!float-right mb-8px !w-[24rem] flex items-center gap-[1rem]"},xt=Ve({__name:"index",setup(lt){pe();const{refs:{isRefreshTable:A,envStatus:j,isHaveServer:k,softData:G},resetRefresh:Q,refreshTableList:P}=Pe(),u=m("0"),q=m(),W=m(!1),w=m(0),X=U(()=>!j.value.setup&&!k.value),i=z({serverList:[],keyList:[],valueList:[]}),x=m(0),n=z({search:"",sid:0,limit:10,db_idx:0,p:1}),f=m({db_status:!0,msg:"加载中"}),I=U(()=>f.value.db_status?"check":"close"),Y=async(t,e,V,p,b,C)=>{const{label:g,value:M}=p,{enable:L,exclude:S}=C;await t({title:"批量".concat(g,"键"),content:"即将批量".concat(g,"键,是否继续操作!"),column:[{label:"键名",prop:"name"},Ke()],onConfirm:async()=>{const D=V.value.map($=>({key:$.name})),h=je(!1,S,L,{params:{database_list:JSON.stringify(D),sid:n.sid,db_idx:Number(u.value)}}),R=await Je(h);P();const{data:N}=Ge(R.data);Qe(N,{title:"删除键"}),b==null||b()}})},Z=()=>{E({title:"数据库备份",area:78,compData:{sid:n.sid,keyList:i.keyList},component:()=>B(()=>import("./index223.js?v=1777008528"),__vite__mapDeps([]),import.meta.url)})},ee=()=>{E({title:"清理数据库",area:42,compData:{sid:n.sid,keyList:i.keyList},showFooter:!0,component:()=>B(()=>import("./index224.js?v=1777008528"),__vite__mapDeps([]),import.meta.url)})},te=async t=>{const e=me.load("正在切换服务器,请稍后...");n.sid=Number(t),await J(),e.close()},ae=async t=>{await ke({icon:"warning-filled",title:"提示",content:"此操作将删除选中的数据【".concat(t.name,"】, 是否继续?")}),await y({request:Me({data:JSON.stringify({sid:n.sid,db_idx:Number(u.value),key:t.name})}),message:!0}),P()},se=(t,e)=>{n.db_idx=Number(t),_()},ne=async()=>{const t=await y({request:Ue({data:JSON.stringify({type:"redis"})},"redis"),data:Array});return i.serverList=t,i.serverList.length&&(k.value=!0),t},v=async t=>{const e=await y({request:qe({data:JSON.stringify({sid:t})}),data:Array});return i.keyList=e,e},_=async()=>{const t=await y({request:Ie({data:JSON.stringify({...n})}),data:{data:Array,page:de(x)}});i.valueList=t.data||[]},oe=[ze({type:"page",key:"name"}),{label:"键",prop:"name"},{label:"值",prop:"val",width:320,render:t=>o("span",{class:"truncate !w-[30rem]",title:t.val},[t.val])},{label:"数据类型",prop:"type"},{label:"数据长度",prop:"len"},{label:"有效期",prop:"showtime"},Fe([{onClick:t=>{E({title:"编辑redis数据库",area:44,compData:{refresh:()=>v(n.sid),row:{...t,db_idx:Number(u.value)}},showFooter:!0,component:()=>B(()=>import("./index142.js?v=1777008528"),__vite__mapDeps([]),import.meta.url)})},title:"编辑"},{onClick:ae,title:"删除"}])],le=[{label:"删除",value:"delete",event:Y}],J=async()=>{try{const t=await Ye(n.sid);if(f.value=t,ne(),!t.db_status)return i.valueList=[],i.keyList=[],k.value=!1,!1;v(n.sid),_()}catch(t){}};return Ce(()=>A.value,async t=>{t&&(await v(n.sid),await _()),Q()}),Le(J),(t,e)=>{const V=Ae,p=Ee,b=ce,C=Be,g=Oe,M=Te,L=_e,S=be,D=fe,h=ve,R=ge,N=ye,$=xe,ie=we,re=Se("bt-loading");return d(),O("div",null,[a(X)?(d(),T(V,{key:0},{content:l(()=>[o(et,{type:"Redis"})]),_:1})):De("",!0),o(ie,null,{"header-left":l(()=>[r("div",tt,[o(p,{type:"primary",onClick:e[0]||(e[0]=s=>a(We)(()=>v(a(n).sid),a(n).sid,a(u)))},{default:l(()=>[...e[8]||(e[8]=[c("添加Key",-1)])]),_:1}),o(p,{onClick:a(Xe)},{default:l(()=>[...e[9]||(e[9]=[c("远程数据库",-1)])]),_:1},8,["onClick"]),o(p,{onClick:Z},{default:l(()=>[...e[10]||(e[10]=[c("备份列表",-1)])]),_:1}),o(p,{onClick:ee},{default:l(()=>[...e[11]||(e[11]=[c("清空数据库",-1)])]),_:1}),o(Ze,{pluginName:"redis","plugin-info":a(G),"is-request":!1,class:"ml-8px"},null,8,["plugin-info"]),o(b,{onClick:e[1]||(e[1]=s=>a(He)({name:"数据库",type:12,id:17})),class:"ml-[12px] <2xl:hidden"},{default:l(()=>[...e[12]||(e[12]=[c(" 需求反馈 ",-1)])]),_:1})])]),"header-right":l(()=>[r("div",at,[e[13]||(e[13]=r("span",{class:"text-warning inline-block whitespace-nowrap flex items-center"},[r("i",{class:"svgtofont-el-info-filled mt-2px mr-4px"}),c("当前所有操作都关联至 ")],-1)),o(g,{modelValue:a(w),"onUpdate:modelValue":e[2]||(e[2]=s=>F(w)?w.value=s:null),class:"!w-[16rem] mx-4px",onChange:te},{default:l(()=>[(d(!0),O(H,null,K(a(i).serverList,s=>(d(),T(C,{key:s.ps,label:s.ps,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),r("div",st,[r("i",{class:he("text-base mt-4px mr-2px svgtofont-el-circle-".concat(a(I),"-filled text-").concat(a(I)==="close"?"danger":"primary"))},null,2),r("div",nt,[e[14]||(e[14]=r("span",null,"状态:",-1)),r("span",{style:Re("color:".concat(a(f).db_status?"var(--el-color-primary)":"#ef0808"))},Ne(a(f).msg),5)])])]),content:l(()=>[o(L,{modelValue:a(u),"onUpdate:modelValue":e[3]||(e[3]=s=>F(u)?u.value=s:null),type:"card",onChange:se,class:"tab-switch"},{default:l(()=>[(d(!0),O(H,null,K(a(i).keyList,(s,ue)=>(d(),T(M,{class:"h-0 !p-0",key:ue,label:s.name+"【"+s.keynum+"】",name:String(s.id),lazy:!0},null,8,["label","name"]))),128))]),_:1},8,["modelValue"]),r("div",ot,[o(S,{modelValue:a(n).search,"onUpdate:modelValue":e[4]||(e[4]=s=>a(n).search=s),onSearch:_,placeholder:"请输入键名称"},null,8,["modelValue"]),o(h,{onClick:e[5]||(e[5]=s=>A.value=!0)},{default:l(()=>[o(D,{icon:"el-refresh"})]),_:1})]),$e(o(R,{ref_key:"redisTableRef",ref:q,column:oe,data:a(i).valueList,total:a(x)},null,8,["data","total"]),[[re,a(W)]])]),"footer-left":l(()=>[o(N,{"table-ref":a(q),options:le},null,8,["table-ref"])]),"footer-right":l(()=>[o($,{page:a(n).p,"onUpdate:page":e[6]||(e[6]=s=>a(n).p=s),row:a(n).limit,"onUpdate:row":e[7]||(e[7]=s=>a(n).limit=s),total:a(x),onChange:_},null,8,["page","row","total"])]),_:1})])}}});export{xt as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}