← Back
Editing: database.js
import{r as a,u as t,n as e}from"./utils-lib.js?v=1765440387";import{s,j as c,g as o}from"./base-lib.js?v=1765440387";const d=c("DATABASE-STORE",{state:()=>({tabActive:o(()=>a.currentRoute.value.name),isRefreshTable:!1,isRefreshClassList:!1,isLoading:!1,isHaveServer:!0,isSearchClick:!1,safetyStatus:!1,envStatus:{setup:!1,status:!1,version:""},softData:{setup:!1,status:!1,version:""}}),getters:{},actions:{refreshTableList(a=!0){this.isRefreshTable=!0,this.isLoading=a},resetRefresh(){this.isRefreshTable=!1,this.isLoading=!1},async getGlobalConfig(){const{getGlobalInfo:a}=t();await a()}},persist:[{storage:localStorage,paths:["tabActive"]}]}),b=()=>{const a=d();return{refs:s(a),...a}},p=a=>e.post("database/CheckDatabaseStatus",{data:a,customType:"default",check:"object"}),l=(a,t)=>{const s="database/".concat(t,"/CheckDatabaseStatus");return e.post(s,{data:a,customType:"model",check:"object"})},m=a=>e.post("/panel/public/get_soft_status",{data:a,check:"object",customType:"model"}),k=a=>e.post("database/ResDatabasePassword",{data:a,check:"object"}),h=(a,t)=>e.post("database/".concat(t,"/ResDatabasePassword"),{customType:"model",data:a,check:"object"}),u=a=>e.post("database/GetInfo",{data:a,check:"object"}),i=(a,t)=>e.post("database/".concat(t,"/GetInfo"),{customType:"model",data:a,check:"object"}),_=a=>e.post("database/ModifyTableComment",{data:a,check:"object"}),r=a=>e.post("database/export_table_structure",{data:a,check:"object"}),y=a=>e.post("database/AlTable",{data:a,check:"object"}),n=a=>e.post("database/OpTable",{data:a,check:"object"}),g=a=>e.post("database/ReTable",{data:a,check:"object"}),j=(a,t)=>e.post("database/".concat(t,"/AddDatabase"),{customType:"model",data:{data:JSON.stringify(a)},check:"object"}),T=a=>e.post("database/AddDatabase",{data:a,check:"object"}),q=a=>e.post("database/GetImportSize",{data:a,check:"object"}),f=a=>e.post("database/GetBackupSize",{data:a,check:"object"}),S=(a,t)=>e.post("database/".concat(t,"/GetDatabaseAccess"),{data:a,check:"object",customType:"model"}),G=(a,t)=>e.post("database/".concat(t,"/SetDatabaseAccess"),{data:a,check:"object",customType:"model"}),D=(a,t)=>0===t?e.post("database/SyncToDatabases&type=".concat(t),{data:a,check:"object"}):e.post("/datalist/batch/batch_sync_db_to_server",{data:a,check:"object",customType:"model"}),v=(a,t)=>e.post("database/".concat(t,"/SyncToDatabases"),{customType:"model",data:a,check:"object"}),A=a=>e.post("database/SyncGetDatabases",{data:a,check:"msg"}),C=(a,t)=>e.post("database/".concat(t,"/SyncGetDatabases"),{customType:"model",data:a,check:"msg"}),B=a=>e.post("database/mongodb/set_auth_status",{customType:"model",data:a,check:"msg"}),R=a=>e.post("datalist/data/get_data_list",{customType:"model",data:a,check:"object"}),w=(a,t)=>e.post("database/".concat(t,"/get_list"),{customType:"model",data:a,check:"object"}),O=()=>e.post("database/GetCloudServer",{check:"array"}),I=(a,t)=>e.post("database/".concat(t,"/GetCloudServer"),{customType:"model",check:"array",data:a}),L=()=>e.post("database/mongodb/get_root_pwd",{customType:"model",check:"object"}),J=a=>e.post("database/SetupPassword",{data:a,check:"msg"}),N=a=>e.post("database/RemoveCloudServer",{data:a,check:"object"}),U=(a,t)=>e.post("database/".concat(t,"/RemoveCloudServer"),{customType:"model",data:a,check:"object"}),M=a=>e.post("database/AddCloudServer",{data:a,check:"object"}),P=(a,t)=>e.post("database/".concat(t,"/AddCloudServer"),{customType:"model",data:a,check:"object"}),z=a=>e.post("database/ModifyCloudServer",{data:a,check:"object"}),x=(a,t)=>e.post("database/".concat(t,"/ModifyCloudServer"),{customType:"model",data:a,check:"object"}),E=a=>e.post("database/ToBackup",{data:a,check:"object"}),F=a=>e.post("/datalist/batch/batch_backup_mysql",{data:a,check:"object",customType:"model"}),V=(a,t)=>e.post("database/".concat(t,"/ToBackup"),{customType:"model",data:a,check:"object"}),H=a=>e.post("database/DelBackup",{data:a,check:"object"}),K=a=>e.post("database/InputSql",{data:a,check:"object"}),Q=(a,t)=>e.post("database/".concat(t,"/InputSql"),{data:a,check:"object",customType:"model"}),W=a=>e.post("database/GetBackup",{data:a,check:"object"}),X=(a,t)=>e.post("database/".concat(t,"/GetBackup"),{data:a,check:"object",customType:"model"}),Y=a=>e.post("database/check_del_data",{data:a,check:"object"}),Z=(a,t)=>e.post("database/".concat(t,"/check_del_data"),{data:a,customType:"model",check:"object"}),$=(a,t)=>t?e.post("database/".concat(t,"/DeleteDatabase"),{data:{data:JSON.stringify(a)},check:"msg",customType:"model"}):e.post("database/DeleteDatabase",{data:a,check:"msg"}),aa=a=>e.post("/datalist/batch/batch_delete_database",{data:a,check:"object",customType:"model"}),ta=a=>e.post("database/pgsql/set_root_pwd",{data:a,check:"object",customType:"model"}),ea=()=>e.post("database/pgsql/get_root_pwd",{check:"object",customType:"model"}),sa=a=>e.post("database/redis/get_list",{customType:"model",data:a,check:"array"}),ca=a=>e.post("database/redis/get_db_keylist",{customType:"model",check:"object",data:a}),oa=a=>e.post("database/redis/clear_flushdb",{data:a,check:"object",customType:"model"}),da=a=>e.post("database/redis/get_backup_list",{data:a,customType:"model",check:"array"}),ba=a=>e.post("database/redis/set_redis_val",{data:a,check:"object",customType:"model"}),pa=a=>e.post("database/redis/del_redis_val",{data:a,check:"object",customType:"model"}),la=a=>e.post("/datalist/batch/batch_delete_redis",{data:a,check:"object",customType:"model"}),ma=a=>e.post("data/getKey",{data:a,check:"string"}),ka=a=>e.post("database/GetAllBackup",{data:a,check:"object"}),ha=a=>e.post("database/GetBackupInfo",{data:a,check:"object"}),ua=a=>e.post("database/InputSqlAll",{data:a,check:"msg"}),ia=a=>e.post("database/GetBackupDatabase",{data:a,check:"object"}),_a=a=>e.post("database/ToBackupAll",{data:a,check:"object"}),ra=a=>e.post("database/GetDatabaseAccess",{data:a,check:"msg"}),ya=a=>e.post("database/SetDatabaseAccess",{data:a,check:"object"}),na=a=>e.post("project/quota/modify_database_quota",{data:{data:a},customType:"model",check:"msg"}),ga=a=>e.post("project/quota/recover_database_insert_accept",{customType:"model",data:a,check:"msg"}),ja=()=>e.post("database/GetImportLog",{check:"msg"}),Ta=a=>e.post("database/set_restart_task",{data:a,check:"msg"}),qa=()=>e.post("database/get_restart_task",{check:"ignore"}),fa=()=>e.post("panel/sitelink/get_mysql_info",{customType:"model",check:"array"}),Sa=()=>e.post("panel/sitelink/get_site_info",{check:"array",customType:"model"}),Ga=a=>e.post("panel/sitelink/modify_mysql_link",{data:a,check:"msg",customType:"model"}),Da=a=>e.post("database/GetMysqlUser",{data:a,check:"object"}),va=a=>e.post("database/DelMysqlUser",{data:a,check:"msg"}),Aa=a=>e.post("database/GetUserGrants",{data:a,check:"string"}),Ca=a=>e.post("database/GetDatabasesList",{data:a,check:"object"}),Ba=a=>e.post("database/AddMysqlUser",{data:a,check:"msg"}),Ra=a=>e.post("database/DelUserGrants",{data:a,check:"msg"}),wa=a=>e.post("database/AddUserGrants",{data:a,check:"msg"}),Oa=a=>e.post("database/ChangeUserPass",{data:a,check:"msg"}),Ia=a=>e.post("crontab/get_auto_config",{data:a,check:"msg"}),La=a=>e.post("crontab/set_auto_config",{data:a,check:"msg"}),Ja=a=>e.post("database/view_database_types",{data:a,check:"object"}),Na=a=>e.post("database/add_database_types",{data:a,check:"object"}),Ua=a=>e.post("database/delete_database_types",{data:a,check:"object"}),Ma=a=>e.post("database/update_database_types",{data:a,check:"object"}),Pa=a=>e.post("/database/pgsql/modify_pgsql_listen_ip",{data:a,check:"object",customType:"model"}),za=a=>e.post("database/sqlite/get_table_list",{data:{data:JSON.stringify(a)},customType:"model",check:"array"}),xa=a=>e.post("database/sqlite/query_sql",{data:{data:JSON.stringify(a)},customType:"model",check:"object"}),Ea=a=>e.post("database/sqlite/get_table_info",{data:{data:JSON.stringify(a)},customType:"model",check:"object"}),Fa=a=>e.post("database/sqlite/get_keys_bytable",{data:{data:JSON.stringify(a)},customType:"model",check:"array"}),Va=a=>e.post("database/sqlite/delete_table_data",{data:{data:JSON.stringify(a)},customType:"model",check:"msg"}),Ha=a=>e.post("database/sqlite/create_table_data",{data:a,customType:"model",check:"msg"}),Ka=a=>e.post("database/sqlite/update_table_info",{data:a,customType:"model",check:"msg"}),Qa=a=>e.post("database/sqlite/get_backup_list",{data:a,customType:"model",check:"array"}),Wa=a=>e.post("database/sqlite/DelBackup",{data:a,customType:"model",check:"msg"}),Xa=a=>e.post("database/sqlite/ToBackup",{data:a,customType:"model",check:"msg"}),Ya=a=>e.post("/datalist/batch/batch_set_mysql_type",{data:a,check:"object",customType:"model"}),Za=()=>e.post("database/GetTimeOut",{check:"object"}),$a=a=>e.post("database/SetTimeOut",{data:a,check:"object"}),at=()=>e.post("database/GetValidatePasswordConfig",{check:"object"}),tt=a=>e.post("database/SetValidatePasswordConfig",{data:a,check:"object"}),et=()=>e.post("database/GetLoginFailed",{check:"object"}),st=a=>e.post("database/SetLoginFailed",{data:a,check:"object"}),ct=()=>e.post("project/quota/database_quota_check",{check:"number",customType:"model"}),ot=a=>e.post("database/is_zip_password_protected",{data:a,check:"boolean"}),dt=a=>e.post("/datalist/batch/batch_backup_sqlite",{data:a,check:"object",customType:"model"}),bt=a=>e.post("/datalist/batch/batch_delete_sqlite",{data:a,check:"object",customType:"model"}),pt=a=>e.post("/datalist/batch/batch_set_mysql_access",{data:a,check:"object",customType:"model"}),lt=a=>e.post("/mod/mysql_binlog_backup/com/get_db_info",{data:a,check:"object",customType:"model"}),mt=a=>e.post("/mod/mysql_binlog_backup/com/add_binlog_backup_task",{data:a,check:"msg",customType:"model"}),kt=a=>e.post("/mod/mysql_binlog_backup/com/get_backup_task_list",{data:a,check:"object",customType:"model"}),ht=a=>e.post("/mod/mysql_binlog_backup/com/get_backup_files_list",{data:a,check:"object",customType:"model"}),ut=a=>e.post("/mod/mysql_binlog_backup/com/del_binlog_backup_task",{data:a,check:"msg",customType:"model"}),it=a=>e.post("/mod/mysql_binlog_backup/com/get_backup_logs",{data:a,check:"object",customType:"model"}),_t=a=>e.post("/mod/mysql_binlog_backup/com/delete_backup_file",{data:a,check:"msg",customType:"model"}),rt=a=>e.post("/mod/mysql_binlog_backup/com/restore_binlog_data",{data:a,check:"object",customType:"model"}),yt=a=>e.post("/mod/mysql_binlog_backup/com/get_restore_progress",{data:a,check:"object",customType:"model"}),nt=a=>e.post("/mod/mysql_binlog_backup/com/cleanup_all_backups",{data:a,check:"msg",customType:"model"});export{_t as $,v as A,Ya as B,m as C,F as D,E,V as F,N as G,U as H,r as I,u as J,i as K,y as L,n as M,g as N,_ as O,k as P,h as Q,f as R,q as S,Q as T,K as U,ja as V,W,X,ht as Y,ut as Z,it as _,Na as a,Ba as a$,nt as a0,rt as a1,kt as a2,lt as a3,yt as a4,H as a5,ot as a6,J as a7,aa as a8,Y as a9,M as aA,P as aB,z as aC,x as aD,mt as aE,ia as aF,ha as aG,ua as aH,ka as aI,_a as aJ,Aa as aK,va as aL,Da as aM,Sa as aN,fa as aO,Ga as aP,Ta as aQ,qa as aR,Za as aS,$a as aT,at as aU,tt as aV,et as aW,st as aX,Ka as aY,Ha as aZ,Ca as a_,Z as aa,d as ab,ra as ac,pt as ad,ya as ae,Pa as af,T as ag,ba as ah,j as ai,na as aj,ct as ak,ga as al,G as am,S as an,da as ao,oa as ap,ta as aq,ea as ar,za as as,Fa as at,Ea as au,xa as av,Va as aw,Xa as ax,Wa as ay,Qa as az,ma as b,Oa as b0,Ra as b1,wa as b2,O as c,Ua as d,Ja as e,R as f,b as g,Ia as h,I as i,w as j,B as k,L as l,Ma as m,sa as n,ca as o,la as p,pa as q,A as r,La as s,C as t,$ as u,dt as v,bt as w,l as x,p as y,D as z};
Save File
Cancel