← Back
Editing: database-legacy.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,o)}return a}function a(e,a,o){return(a=function(e){var a=function(e,a){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var c=o.call(e,a||"default");if("object"!=t(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)}(e,"string");return"symbol"==t(a)?a:a+""}(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e}function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",r=a.toStringTag||"@@toStringTag";function s(a,o,n,r){var s=o&&o.prototype instanceof d?o:d,i=Object.create(s.prototype);return c(i,"_invoke",function(a,o,c){var n,r,s,d=0,i=c||[],b=!1,p={p:0,n:0,v:t,a:l,f:l.bind(t,4),d:function(e,a){return n=e,r=0,s=t,p.n=a,u}};function l(a,o){for(r=a,s=o,e=0;!b&&d&&!c&&e<i.length;e++){var c,n=i[e],l=p.p,f=n[2];a>3?(c=f===o)&&(s=n[(r=n[4])?5:(r=3,3)],n[4]=n[5]=t):n[0]<=l&&((c=a<2&&l<n[1])?(r=0,p.v=o,p.n=n[1]):l<f&&(c=a<3||n[0]>o||o>f)&&(n[4]=a,n[5]=o,p.n=f,r=0))}if(c||a>1)return u;throw b=!0,o}return function(c,i,f){if(d>1)throw TypeError("Generator is already running");for(b&&1===i&&l(i,f),r=i,s=f;(e=r<2?t:s)||!b;){n||(r?r<3?(r>1&&(p.n=-1),l(r,s)):p.n=s:p.v=s);try{if(d=2,n){if(r||(c="next"),e=n[c]){if(!(e=e.call(n,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,r<2&&(r=0)}else 1===r&&(e=n.return)&&e.call(n),r<2&&(s=TypeError("The iterator does not provide a '"+c+"' method"),r=1);n=t}else if((e=(b=p.n<0)?s:a.call(o,p))!==u)break}catch(e){n=t,r=1,s=e}finally{d=1}}return{value:e,done:b}}}(a,n,r),!0),i}var u={};function d(){}function i(){}function b(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(c(e={},n,function(){return this}),e),l=b.prototype=d.prototype=Object.create(p);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,r,"GeneratorFunction")),t.prototype=Object.create(l),t}return i.prototype=b,c(l,"constructor",b),c(b,"constructor",i),i.displayName="GeneratorFunction",c(b,r,"GeneratorFunction"),c(l),c(l,r,"Generator"),c(l,n,function(){return this}),c(l,"toString",function(){return"[object Generator]"}),(o=function(){return{w:s,m:f}})()}function c(t,e,a,o){var n=Object.defineProperty;try{n({},"",{})}catch(t){n=0}c=function(t,e,a,o){function r(e,a){c(t,e,function(t){return this._invoke(e,a,t)})}e?n?n(t,e,{value:a,enumerable:!o,configurable:!o,writable:!o}):t[e]=a:(r("next",0),r("throw",1),r("return",2))},c(t,e,a,o)}function n(t,e,a,o,c,n,r){try{var s=t[n](r),u=s.value}catch(t){return void a(t)}s.done?e(u):Promise.resolve(u).then(o,c)}System.register(["./utils-lib-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387"],function(t,c){"use strict";var r,s,u,d,i,b;return{setters:[function(t){r=t.r,s=t.u,u=t.n},function(t){d=t.s,i=t.j,b=t.g}],execute:function(){var c=t("ab",i("DATABASE-STORE",{state:function(){return{tabActive:b(function(){return r.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:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isRefreshTable=!0,this.isLoading=t},resetRefresh:function(){this.isRefreshTable=!1,this.isLoading=!1},getGlobalConfig:function(){return(t=o().m(function t(){var e,a;return o().w(function(t){for(;;)switch(t.n){case 0:return e=s(),a=e.getGlobalInfo,t.n=1,a();case 1:return t.a(2)}},t)}),function(){var e=this,a=arguments;return new Promise(function(o,c){var r=t.apply(e,a);function s(t){n(r,o,c,s,u,"next",t)}function u(t){n(r,o,c,s,u,"throw",t)}s(void 0)})})();var t}},persist:[{storage:localStorage,paths:["tabActive"]}]}));t("g",function(){var t=c();return function(t){for(var o=1;o<arguments.length;o++){var c=null!=arguments[o]?arguments[o]:{};o%2?e(Object(c),!0).forEach(function(e){a(t,e,c[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(c)):e(Object(c)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(c,e))})}return t}({refs:d(t)},t)}),t("y",function(t){return u.post("database/CheckDatabaseStatus",{data:t,customType:"default",check:"object"})}),t("x",function(t,e){var a="database/".concat(e,"/CheckDatabaseStatus");return u.post(a,{data:t,customType:"model",check:"object"})}),t("C",function(t){return u.post("/panel/public/get_soft_status",{data:t,check:"object",customType:"model"})}),t("P",function(t){return u.post("database/ResDatabasePassword",{data:t,check:"object"})}),t("Q",function(t,e){return u.post("database/".concat(e,"/ResDatabasePassword"),{customType:"model",data:t,check:"object"})}),t("J",function(t){return u.post("database/GetInfo",{data:t,check:"object"})}),t("K",function(t,e){return u.post("database/".concat(e,"/GetInfo"),{customType:"model",data:t,check:"object"})}),t("O",function(t){return u.post("database/ModifyTableComment",{data:t,check:"object"})}),t("I",function(t){return u.post("database/export_table_structure",{data:t,check:"object"})}),t("L",function(t){return u.post("database/AlTable",{data:t,check:"object"})}),t("M",function(t){return u.post("database/OpTable",{data:t,check:"object"})}),t("N",function(t){return u.post("database/ReTable",{data:t,check:"object"})}),t("ai",function(t,e){return u.post("database/".concat(e,"/AddDatabase"),{customType:"model",data:{data:JSON.stringify(t)},check:"object"})}),t("ag",function(t){return u.post("database/AddDatabase",{data:t,check:"object"})}),t("S",function(t){return u.post("database/GetImportSize",{data:t,check:"object"})}),t("R",function(t){return u.post("database/GetBackupSize",{data:t,check:"object"})}),t("an",function(t,e){return u.post("database/".concat(e,"/GetDatabaseAccess"),{data:t,check:"object",customType:"model"})}),t("am",function(t,e){return u.post("database/".concat(e,"/SetDatabaseAccess"),{data:t,check:"object",customType:"model"})}),t("z",function(t,e){return 0===e?u.post("database/SyncToDatabases&type=".concat(e),{data:t,check:"object"}):u.post("/datalist/batch/batch_sync_db_to_server",{data:t,check:"object",customType:"model"})}),t("A",function(t,e){return u.post("database/".concat(e,"/SyncToDatabases"),{customType:"model",data:t,check:"object"})}),t("r",function(t){return u.post("database/SyncGetDatabases",{data:t,check:"msg"})}),t("t",function(t,e){return u.post("database/".concat(e,"/SyncGetDatabases"),{customType:"model",data:t,check:"msg"})}),t("k",function(t){return u.post("database/mongodb/set_auth_status",{customType:"model",data:t,check:"msg"})}),t("f",function(t){return u.post("datalist/data/get_data_list",{customType:"model",data:t,check:"object"})}),t("j",function(t,e){return u.post("database/".concat(e,"/get_list"),{customType:"model",data:t,check:"object"})}),t("c",function(){return u.post("database/GetCloudServer",{check:"array"})}),t("i",function(t,e){return u.post("database/".concat(e,"/GetCloudServer"),{customType:"model",check:"array",data:t})}),t("l",function(){return u.post("database/mongodb/get_root_pwd",{customType:"model",check:"object"})}),t("a7",function(t){return u.post("database/SetupPassword",{data:t,check:"msg"})}),t("G",function(t){return u.post("database/RemoveCloudServer",{data:t,check:"object"})}),t("H",function(t,e){return u.post("database/".concat(e,"/RemoveCloudServer"),{customType:"model",data:t,check:"object"})}),t("aA",function(t){return u.post("database/AddCloudServer",{data:t,check:"object"})}),t("aB",function(t,e){return u.post("database/".concat(e,"/AddCloudServer"),{customType:"model",data:t,check:"object"})}),t("aC",function(t){return u.post("database/ModifyCloudServer",{data:t,check:"object"})}),t("aD",function(t,e){return u.post("database/".concat(e,"/ModifyCloudServer"),{customType:"model",data:t,check:"object"})}),t("E",function(t){return u.post("database/ToBackup",{data:t,check:"object"})}),t("D",function(t){return u.post("/datalist/batch/batch_backup_mysql",{data:t,check:"object",customType:"model"})}),t("F",function(t,e){return u.post("database/".concat(e,"/ToBackup"),{customType:"model",data:t,check:"object"})}),t("a5",function(t){return u.post("database/DelBackup",{data:t,check:"object"})}),t("U",function(t){return u.post("database/InputSql",{data:t,check:"object"})}),t("T",function(t,e){return u.post("database/".concat(e,"/InputSql"),{data:t,check:"object",customType:"model"})}),t("W",function(t){return u.post("database/GetBackup",{data:t,check:"object"})}),t("X",function(t,e){return u.post("database/".concat(e,"/GetBackup"),{data:t,check:"object",customType:"model"})}),t("a9",function(t){return u.post("database/check_del_data",{data:t,check:"object"})}),t("aa",function(t,e){return u.post("database/".concat(e,"/check_del_data"),{data:t,customType:"model",check:"object"})}),t("u",function(t,e){return e?u.post("database/".concat(e,"/DeleteDatabase"),{data:{data:JSON.stringify(t)},check:"msg",customType:"model"}):u.post("database/DeleteDatabase",{data:t,check:"msg"})}),t("a8",function(t){return u.post("/datalist/batch/batch_delete_database",{data:t,check:"object",customType:"model"})}),t("aq",function(t){return u.post("database/pgsql/set_root_pwd",{data:t,check:"object",customType:"model"})}),t("ar",function(){return u.post("database/pgsql/get_root_pwd",{check:"object",customType:"model"})}),t("n",function(t){return u.post("database/redis/get_list",{customType:"model",data:t,check:"array"})}),t("o",function(t){return u.post("database/redis/get_db_keylist",{customType:"model",check:"object",data:t})}),t("ap",function(t){return u.post("database/redis/clear_flushdb",{data:t,check:"object",customType:"model"})}),t("ao",function(t){return u.post("database/redis/get_backup_list",{data:t,customType:"model",check:"array"})}),t("ah",function(t){return u.post("database/redis/set_redis_val",{data:t,check:"object",customType:"model"})}),t("q",function(t){return u.post("database/redis/del_redis_val",{data:t,check:"object",customType:"model"})}),t("p",function(t){return u.post("/datalist/batch/batch_delete_redis",{data:t,check:"object",customType:"model"})}),t("b",function(t){return u.post("data/getKey",{data:t,check:"string"})}),t("aI",function(t){return u.post("database/GetAllBackup",{data:t,check:"object"})}),t("aG",function(t){return u.post("database/GetBackupInfo",{data:t,check:"object"})}),t("aH",function(t){return u.post("database/InputSqlAll",{data:t,check:"msg"})}),t("aF",function(t){return u.post("database/GetBackupDatabase",{data:t,check:"object"})}),t("aJ",function(t){return u.post("database/ToBackupAll",{data:t,check:"object"})}),t("ac",function(t){return u.post("database/GetDatabaseAccess",{data:t,check:"msg"})}),t("ae",function(t){return u.post("database/SetDatabaseAccess",{data:t,check:"object"})}),t("aj",function(t){return u.post("project/quota/modify_database_quota",{data:{data:t},customType:"model",check:"msg"})}),t("al",function(t){return u.post("project/quota/recover_database_insert_accept",{customType:"model",data:t,check:"msg"})}),t("V",function(){return u.post("database/GetImportLog",{check:"msg"})}),t("aQ",function(t){return u.post("database/set_restart_task",{data:t,check:"msg"})}),t("aR",function(){return u.post("database/get_restart_task",{check:"ignore"})}),t("aO",function(){return u.post("panel/sitelink/get_mysql_info",{customType:"model",check:"array"})}),t("aN",function(){return u.post("panel/sitelink/get_site_info",{check:"array",customType:"model"})}),t("aP",function(t){return u.post("panel/sitelink/modify_mysql_link",{data:t,check:"msg",customType:"model"})}),t("aM",function(t){return u.post("database/GetMysqlUser",{data:t,check:"object"})}),t("aL",function(t){return u.post("database/DelMysqlUser",{data:t,check:"msg"})}),t("aK",function(t){return u.post("database/GetUserGrants",{data:t,check:"string"})}),t("a_",function(t){return u.post("database/GetDatabasesList",{data:t,check:"object"})}),t("a$",function(t){return u.post("database/AddMysqlUser",{data:t,check:"msg"})}),t("b1",function(t){return u.post("database/DelUserGrants",{data:t,check:"msg"})}),t("b2",function(t){return u.post("database/AddUserGrants",{data:t,check:"msg"})}),t("b0",function(t){return u.post("database/ChangeUserPass",{data:t,check:"msg"})}),t("h",function(t){return u.post("crontab/get_auto_config",{data:t,check:"msg"})}),t("s",function(t){return u.post("crontab/set_auto_config",{data:t,check:"msg"})}),t("e",function(t){return u.post("database/view_database_types",{data:t,check:"object"})}),t("a",function(t){return u.post("database/add_database_types",{data:t,check:"object"})}),t("d",function(t){return u.post("database/delete_database_types",{data:t,check:"object"})}),t("m",function(t){return u.post("database/update_database_types",{data:t,check:"object"})}),t("af",function(t){return u.post("/database/pgsql/modify_pgsql_listen_ip",{data:t,check:"object",customType:"model"})}),t("as",function(t){return u.post("database/sqlite/get_table_list",{data:{data:JSON.stringify(t)},customType:"model",check:"array"})}),t("av",function(t){return u.post("database/sqlite/query_sql",{data:{data:JSON.stringify(t)},customType:"model",check:"object"})}),t("au",function(t){return u.post("database/sqlite/get_table_info",{data:{data:JSON.stringify(t)},customType:"model",check:"object"})}),t("at",function(t){return u.post("database/sqlite/get_keys_bytable",{data:{data:JSON.stringify(t)},customType:"model",check:"array"})}),t("aw",function(t){return u.post("database/sqlite/delete_table_data",{data:{data:JSON.stringify(t)},customType:"model",check:"msg"})}),t("aZ",function(t){return u.post("database/sqlite/create_table_data",{data:t,customType:"model",check:"msg"})}),t("aY",function(t){return u.post("database/sqlite/update_table_info",{data:t,customType:"model",check:"msg"})}),t("az",function(t){return u.post("database/sqlite/get_backup_list",{data:t,customType:"model",check:"array"})}),t("ay",function(t){return u.post("database/sqlite/DelBackup",{data:t,customType:"model",check:"msg"})}),t("ax",function(t){return u.post("database/sqlite/ToBackup",{data:t,customType:"model",check:"msg"})}),t("B",function(t){return u.post("/datalist/batch/batch_set_mysql_type",{data:t,check:"object",customType:"model"})}),t("aS",function(){return u.post("database/GetTimeOut",{check:"object"})}),t("aT",function(t){return u.post("database/SetTimeOut",{data:t,check:"object"})}),t("aU",function(){return u.post("database/GetValidatePasswordConfig",{check:"object"})}),t("aV",function(t){return u.post("database/SetValidatePasswordConfig",{data:t,check:"object"})}),t("aW",function(){return u.post("database/GetLoginFailed",{check:"object"})}),t("aX",function(t){return u.post("database/SetLoginFailed",{data:t,check:"object"})}),t("ak",function(){return u.post("project/quota/database_quota_check",{check:"number",customType:"model"})}),t("a6",function(t){return u.post("database/is_zip_password_protected",{data:t,check:"boolean"})}),t("v",function(t){return u.post("/datalist/batch/batch_backup_sqlite",{data:t,check:"object",customType:"model"})}),t("w",function(t){return u.post("/datalist/batch/batch_delete_sqlite",{data:t,check:"object",customType:"model"})}),t("ad",function(t){return u.post("/datalist/batch/batch_set_mysql_access",{data:t,check:"object",customType:"model"})}),t("a3",function(t){return u.post("/mod/mysql_binlog_backup/com/get_db_info",{data:t,check:"object",customType:"model"})}),t("aE",function(t){return u.post("/mod/mysql_binlog_backup/com/add_binlog_backup_task",{data:t,check:"msg",customType:"model"})}),t("a2",function(t){return u.post("/mod/mysql_binlog_backup/com/get_backup_task_list",{data:t,check:"object",customType:"model"})}),t("Y",function(t){return u.post("/mod/mysql_binlog_backup/com/get_backup_files_list",{data:t,check:"object",customType:"model"})}),t("Z",function(t){return u.post("/mod/mysql_binlog_backup/com/del_binlog_backup_task",{data:t,check:"msg",customType:"model"})}),t("_",function(t){return u.post("/mod/mysql_binlog_backup/com/get_backup_logs",{data:t,check:"object",customType:"model"})}),t("$",function(t){return u.post("/mod/mysql_binlog_backup/com/delete_backup_file",{data:t,check:"msg",customType:"model"})}),t("a1",function(t){return u.post("/mod/mysql_binlog_backup/com/restore_binlog_data",{data:t,check:"object",customType:"model"})}),t("a4",function(t){return u.post("/mod/mysql_binlog_backup/com/get_restore_progress",{data:t,check:"object",customType:"model"})}),t("a0",function(t){return u.post("/mod/mysql_binlog_backup/com/cleanup_all_backups",{data:t,check:"msg",customType:"model"})})}}})}();
Save File
Cancel