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/index132.js
import{e as E,_ as N,k as g,d3 as T,w as B}from"./utils-lib.js?v=1777008528";import{_ as L}from"./index118.js?v=1777008528";import{c as V,r as A,o as F,j as n,k as r,e as p,v as u,x as M,p as t,q as f,s as d,y as h,F as O,B as $,z as H}from"./base-lib.js?v=1777008528";import{getMysqlCloudServer as J,getModulesCloudServer as P,removeServer as j,removeModuleServer as z}from"./database.js?v=1777008528";import{g as I}from"./useStore4.js?v=1777008528";import{g as R}from"./index3.js?v=1777008528";import{q as a}from"./useMethod5.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";const G={class:"p-[20px]"},K={class:"ml-20px mt-12px leading-8 text-small list-disc"},Q={key:0},U={key:1},ie=V({__name:"index",setup(W){const{refs:{tabActive:s,isHaveServer:y},refreshTableList:C}=I(),m=A([]),x=[{content:"支持阿里云、腾讯云等云厂商的云数据库"},{content:"注意1:请确保本服务器有访问数据库的权限"},{content:"注意2:请确保填写的管理员帐号具备足够的权限"}],_=e=>{E({title:"".concat(e?"编辑":"添加","远程数据库"),area:[42],compData:{row:e,refreshEvent:()=>l()},showFooter:!0,component:()=>N(()=>import("./add-cloud-server.js?v=1777008528"),__vite__mapDeps([]),import.meta.url)})},k=async e=>{await B({title:"删除【".concat(e.db_host,"】远程数据库"),content:"该操作仅删除管理关系以及面板中的数据库记录,不会删除远程数据库中的数据,是否继续?",icon:"warning-filled"}),await g({loading:"正在删除中,请稍后...",request:s.value==="mysql"?j({id:e.id}):z({data:JSON.stringify({id:e.id})},s.value),message:!0}),l(),C()},l=async()=>{const e=await g({loading:"正在获取数据中,请稍后...",request:s.value==="mysql"?J():P({data:JSON.stringify({type:s.value})},s.value),data:[Array,o=>o.filter(i=>i.id!==0)]});return m.value=e||[],y.value=e.length,e},S=[{prop:"db_host",label:"服务器地址",width:120},{prop:"db_port",label:"数据库端口"},{prop:"db_type",label:"数据库类型"},{prop:"db_user",label:"管理员名称"},{prop:"db_password",label:"管理员密码",width:150},{label:"备注",prop:"ps"},R([{onClick:e=>_(e),title:"编辑"},{onClick:e=>k(e),title:"删除"}])];return F(()=>{l()}),(e,o)=>{var c,b;const i=H,w=T,q=L;return n(),r("div",G,[p(q,null,{"header-left":u(()=>[p(i,{type:"primary",onClick:o[0]||(o[0]=v=>_())},{default:u(()=>[...o[1]||(o[1]=[M("添加远程数据库",-1)])]),_:1})]),content:u(()=>[p(w,{column:t(S),data:t(m),"max-height":300},null,8,["column","data"])]),_:1}),f("ul",K,[(c=t(a))!=null&&c.length&&t(a)[0]?(n(),r("li",Q,d(t(a)[0]),1)):h("",!0),(n(),r(O,null,$(x,(v,D)=>f("li",{key:D},d(v.content),1)),64)),(b=t(a))!=null&&b.length&&t(a)[1]?(n(),r("li",U,d(t(a)[1]),1)):h("",!0)])])}}});export{ie as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}