← Back
Editing: index-legacy8.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 n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){r(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,n||"default");if("object"!=t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,u=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,o=Object.create(a.prototype),i=new z(r||[]);return u(o,"_invoke",{value:P(t,n,i)}),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var d="suspendedStart",v="suspendedYield",m="executing",y="completed",b={};function g(){}function w(){}function _(){}var k={};p(k,c,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(F([])));j&&j!==r&&o.call(j,c)&&(k=j);var O=_.prototype=g.prototype=Object.create(k);function E(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(e,n){function r(a,u,i,c){var s=h(e[a],e,u);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):n.resolve(p).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(s.arg)}var a;u(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,a){r(t,e,n,a)}))}return a=a?a.then(o,o):o()}})}function P(t,n,r){var a=d;return function(o,u){if(a===m)throw Error("Generator is already running");if(a===y){if("throw"===o)throw u;return{value:e,done:!0}}for(r.method=o,r.arg=u;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=h(t,n,r);if("normal"===s.type){if(a=r.done?y:v,s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=y,r.method="throw",r.arg=s.arg)}}}function S(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var u=o.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function F(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,u=function t(){for(;++a<n.length;)if(o.call(n,a))return t.value=n[a],t.done=!1,t;return t.value=e,t.done=!0,t};return u.next=u}}throw new TypeError(t(n)+" is not iterable")}return w.prototype=_,u(O,"constructor",{value:_,configurable:!0}),u(_,"constructor",{value:w,configurable:!0}),w.displayName=p(_,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},n.awrap=function(t){return{__await:t}},E(L.prototype),p(L.prototype,s,(function(){return this})),n.AsyncIterator=L,n.async=function(t,e,r,a,o){void 0===o&&(o=Promise);var u=new L(f(t,e,r,a),o);return n.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},E(O),p(O,l,"Generator"),p(O,c,(function(){return this})),p(O,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=F,z.prototype={constructor:z,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,a){return i.type="throw",i.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var u=this.tryEntries[a],i=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var c=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(c&&s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=t,u.arg=e,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:F(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},n}function o(t,e,n,r,a,o,u){try{var i=t[o](u),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(r,a)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var u=t.apply(e,n);function i(t){o(u,r,a,i,c,"next",t)}function c(t){o(u,r,a,i,c,"throw",t)}i(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useMethod-legacy2.js?v=VERSION_NUMBER","./config-legacy.js?v=VERSION_NUMBER","./useMethod-legacy3.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./index-legacy116.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var r,o,i,c,s,l,p,f,h,d,v,m,y,b,g,w,_,k,x,j,O,E,L,P,S,T,C,z,F,N,q,D,G,H,B,I,M,A,V,Y,J,U,K,R,W,Z,$,Q,X,tt,et,nt,rt,at;return{setters:[function(t){r=t.p,o=t.K,i=t.M,c=t.n,s=t.L,l=t.N,p=t.a3,f=t.a4,h=t.a5,d=t.u,v=t.a6,m=t.w,y=t.a7,b=t.a8,g=t.j,w=t.W},function(t){_=t.k,k=t.r,x=t.e,j=t.T,O=t.c,E=t.g,L=t.B,P=t.p,S=t.q,T=t.v,C=t.A,z=t.y,F=t.x,N=t.H,q=t.I,D=t.P,G=t.D,H=t.b0,B=t.b3,I=t.M},function(t){M=t._},function(t){A=t.a,V=t.d,Y=t.u,J=t.o,U=t.c},function(t){K=t.i,R=t.d},function(t){W=t.Y,Z=t.Z,$=t._,Q=t.$},function(t){X=t.p,tt=t.o,et=t.d},function(t){nt=t.restorePhpSiteData,rt=t.restorePhpSiteDataLog},function(t){at=t._}],execute:function(){var ot=function(){var t=u(a().mark((function t(){var e,n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,W();case 3:return e=t.sent,n=e.data,t.abrupt("return",{data:n.data,total:n.data.length,other:{}});case 8:t.prev=8,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),ut=function(){var t=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.open("/download?filename=".concat(e.backup_file),"_blank","noopener,noreferrer");case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),it=function(){var t=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r({title:"删除备份",content:"是否删除备份文件?",type:"calc"});case 3:return t.next=5,o({loading:"正在删除备份,请稍后...",request:Z({timestamp:e.timestamp}),message:!0});case 5:K.value=!0,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),ct=function(){var t=u(a().mark((function t(o,l){var p,f,h;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("confirm"!==l){t.next=8;break}return p=k(!1),f=0,t.next=5,r({title:"还原备份",content:function(){return x("div",null,[x("div",null,["网站【".concat(o.name,"】数据即将被覆盖,是否继续?")]),x("div",null,[x(j,{modelValue:p.value,"onUpdate:modelValue":function(t){return p.value=t},label:"还原网站配置文件"},null)])])},type:"calc"});case 5:try{nt({id:o.id,reconf:p.value?"True":"False"}),h=O({setup:function(){var t=k("获取中..."),e=function(){var n=u(a().mark((function n(){var r;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return clearTimeout(f),n.next=3,rt({pid:o.pid});case 3:r=n.sent,t.value=r.log,r.restore_status?i.request(r):f=setTimeout((function(){e()}),1500);case 7:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return e(),function(){return x("div",{class:"flex-wrap"},[x(at,{class:"h-[40rem] !rounded-none",content:t.value},null)])}}}),c({title:"还原日志",component:function(){return x(h,null,null)},area:55})}catch(d){}t.next=14;break;case 8:if(R.value=n({operateType:"restore"},o),"backup-running"!==o.status){t.next=12;break}return i.error("备份正在运行,请稍后再试"),t.abrupt("return");case 12:"restore-running"===o.status&&(X.value=tt()),c({title:"还原备份",component:function(){return s((function(){return e.import("./index-legacy114.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},area:84,btn:["确定还原","取消"],showFooter:!0});case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),st=function(){var t=u(a().mark((function t(r){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:R.value=n({operateType:"detail"},r),c({title:"【".concat(r.backup_name,"】备份还原详情"),component:function(){return s((function(){return e.import("./detail-back-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},area:78});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),lt=function(t){c({title:"上传文件",area:"72",component:function(){return s((function(){return e.import("./index-legacy115.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},compData:{path:"/www/backup/backup_restore"},onOpen:function(){var t=document.querySelector(".upload-files-tips");if(t){var e,n=document.createElement("ul");n.className="text-[#777] mt-[2px] leading-[2rem] text-[12px] ml-[20px] list-disc";var r=document.createElement("li");r.textContent="只有在此处备份的文件,才会在备份列表中显示",n.appendChild(r),null===(e=t.parentNode)||void 0===e||e.insertBefore(n,t.nextSibling)}},onCancel:function(){t()}})},pt=function(){var t=u(a().mark((function t(r){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:R.value=n({operateType:"log"},r),c({title:"备份日志",component:function(){return s((function(){return e.import("./log-back-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},area:60});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ft=t("b",_({backup_time:"",file_size:"",time_count:"",size:"",path:"","SHA-256":""})),ht=function(){var t=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,$({timestamp:e.timestamp});case 3:t.sent,X.value=tt(),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e){return t.apply(this,arguments)}}(),dt=t("a",k()),vt=(t("s",k(!1)),t("g",u(a().mark((function t(){var e,n,r,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,et.value=!0,e={timestamp:R.value.timestamp,type:gt.value},t.next=5,Q(e);case 5:return n=t.sent,r=n.data.data,ft.time_count=r.total_time,ft.size=r.backup_file_size,ft["SHA-256"]=r.backup_file_sha256,ft.path=r.backup_file,ft.backup_time=r.done_time,dt.value=r.data_status,o=vt(r.data_status),t.abrupt("return",{data:o,total:o.length,other:{}});case 17:t.prev=17,t.t0=t.catch(0);case 20:return t.prev=20,et.value=!1,t.finish(20);case 23:case"end":return t.stop()}}),t,null,[[0,17,20,23]])})))),function(t){var e={ssh_list:"防火墙",crontab_list:"计划任务",term_list:"终端",database_list:"数据库",site_list:"网站",ftp_list:"FTP",plugin_list:"插件",env_list:"运行环境"},n=Object.keys(t),r=[];return n.forEach((function(n){if(l(t[n])&&t[n].length>0){var a=t[n].filter((function(t){return t.status&&3===t.status}));a.length>0&&a.forEach((function(t){r.push({name:t.name,msg:t.err_msg||"未知错误"})}))}else p(t[n])&&3===t[n].status&&r.push({name:e[n],msg:t[n].err_msg||"未知错误"})})),r});k(!1),k([]),k([]),k([]),k([]),k([]),k([]);var mt=k(!1),yt=k(0),bt=function(){var t=u(a().mark((function t(e){var n,r,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(n=new FormData).append("blob",e.file),n.append("f_size",e.data.f_size),n.append("f_path",e.data.f_path),n.append("f_name",e.data.f_name),n.append("f_start",e.data.f_start),r={headers:{"Content-Type":"multipart/form-data","x-http-token":window.vite_public_request_token}},t.next=10,f.post("/files?action=upload",n,r);case 10:o=t.sent,h(o.data)?(mt.value||(mt.value=!0),yt.value=Math.floor(o.data/e.data.f_size*100),bt(e)):(mt.value=!1,i.request(o.data)),t.next=20;break;case 14:t.prev=14,t.t0=t.catch(0),i.error("导入失败"),mt.value=!1,K.value=!0;case 20:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(e){return t.apply(this,arguments)}}(),gt=t("d",k("backup")),wt=function(){var t=u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:R.value={operateType:"add"},c({title:"创建备份",area:84,showFooter:!0,component:function(){return s((function(){return e.import("./index-legacy114.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},btn:["备份","取消"]});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),_t={database:"数据库",site:"网站",ftp:"FTP",crontab:"计划任务",term:"终端",firewall:"防火墙",plugin:"插件",other:"其他",runtime:"运行环境"};k(Object.keys(_t).reduce((function(t,e){return t[e]={name:_t[e],list:[]},t}),{}));var kt={class:"flex items-center"},xt={class:"p-[20px]"},jt=O({__name:"index",setup:function(t){var e,n=d().panel,r=b([{label:"删除",value:"delete",event:(e=u(a().mark((function t(e,n,r,o,i,c){var s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=function(){var t=u(a().mark((function t(e,n){var r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z({timestamp:e.timestamp});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),t.next=3,e({title:"删除备份",column:[{label:"备份名称",prop:"backup_name"},U()],content:"删除后不可恢复,确定删除吗?",onConfirm:function(){var t=u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(s);case 2:return K.value=!0,t.abrupt("return",!1);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 3:case"end":return t.stop()}}),t)}))),function(t,n,r,a,o,u){return e.apply(this,arguments)})}]),o=v({request:ot,columns:E((function(){return[A({key:"timestamp"}),{label:"备份名称",prop:"backup_name"},{label:"状态",render:function(t){var e=1===t.backup_status||1===t.restore_status,n=0===t.backup_status,r=1===t.restore_status,a=x("div",null,[x("span",null,[L("成功("),t.backup_count.success||0,L(")")]),x("span",{class:"!ml-[4px]"},[L("失败("),t.backup_count.failed||0,L(")")])]),o=e||n;return x("div",{class:"inline-flex items-center"},[x("span",{style:"background:".concat(t.backup_count.failed?"#ef0808":"#20a53a"),class:"rounded-full w-[6px] h-[6px] mr-[4px] ".concat(o?"!hidden":"")},null),e&&x("span",{class:"ml-2px text-[#f1951d] cursor-pointer",onClick:function(){R.value.operateType=r?"restore":"backup",X.value=tt()}},[r?"还原中":"备份中"]),n&&x("span",{class:"ml-2px text-[#999]"},[L("等待备份")]),!e&&!n&&a])}},V({prop:"backup_path",label:"备份文件"}),{label:"备份大小",prop:"backup_file_size",sortable:!0,render:function(t){return x("span",null,[m(Number(t.backup_file_size))])}},{label:"备份时间",prop:"backup_time",sortable:!0},{label:"创建时间",prop:"create_time",sortable:!0},Y([{title:"立即备份",width:70,onClick:ht,isHide:function(t){return 0!==t.backup_status&&1!==t.backup_status}},{title:"下载",onClick:ut,isHide:function(t){return 0===t.backup_status||1===t.backup_status}},{title:"还原",onClick:ct,isHide:function(t){return 0===t.backup_status||1===t.backup_status}},{title:"详情",onClick:st},{title:"日志",onClick:pt},{title:"删除",onClick:it}])]})),extension:[y(K),r],empty:function(){return x("span",null,[L("您的列表为空,您可以"),x("span",{class:"bt-link",onClick:wt},[L("创建一个备份")])])}}),c=o.BtTable,s=o.BtBatch,l=o.BtRefresh,p={"x-http-token":window.vite_public_request_token},f=k(null),h=k(null),j=_({f_size:0,f_path:"/www/backup/backup_restore/",f_name:"",f_start:0}),O=function(t){j.f_size=t.size,j.f_name=t.name},I=function(t,e,n){i.error("导入失败"),mt.value=!1,K.value=!0},W=function(t,e,n){mt.value=!1,K.value=!0};return P((function(){window.openFilePath=function(){return J({path:"/www/backup/whole_machine_backup"})},setTimeout((function(){var t=localStorage.getItem("hasJump");n.value.migration&&t&&(tt("restore"),localStorage.removeItem("hasJump"))}),1e3)})),function(t,e){var n=G,r=H,a=M,o=B,u=g,i=w;return S(),T("div",null,[x(a,null,{"header-left":C((function(){return[z("div",kt,[x(r,{class:"upload-demo h-[0] w-[0]",ref_key:"upload",ref:f,name:"blob",data:F(j),action:"#",headers:p,"http-request":F(bt),accept:".tar,.gz","show-file-list":!1,multiple:!1,"auto-upload":!0,"on-error":I,"on-success":W,"on-change":O},{default:C((function(){return[N(x(n,{ref_key:"open",ref:h,size:"default",type:"default"},{default:C((function(){return e[2]||(e[2]=[L(" 选择文件 ")])})),_:1},512),[[q,!1]])]})),_:1},8,["data","http-request"]),x(n,{type:"primary",onClick:F(wt)},{default:C((function(){return e[3]||(e[3]=[L("创建备份")])})),_:1},8,["onClick"]),x(n,{onClick:e[0]||(e[0]=function(t){return F(lt)(W)})},{default:C((function(){return e[4]||(e[4]=[L("上传文件")])})),_:1}),e[5]||(e[5]=z("span",{class:"text-[#999] ml-4px"},"上传格式为.tar,.gz文件",-1))])]})),"header-right":C((function(){return[x(F(l))]})),content:C((function(){return[x(F(c))]})),"footer-left":C((function(){return[x(F(s))]})),_:1}),x(u,{modelValue:F(mt),"onUpdate:modelValue":e[1]||(e[1]=function(t){return D(mt)?mt.value=t:null}),area:52,title:!1},{default:C((function(){return[z("div",xt,[e[6]||(e[6]=z("span",{class:"mb-[0.8rem]"},null,-1)),x(o,{"text-inside":!0,"stroke-width":20,percentage:F(yt)},null,8,["percentage"])])]})),_:1},8,["modelValue"]),x(i,{class:"mt-[1rem]",options:[{isHtml:!0,content:"9.5以前版本的备份还原不会在备份列表中显示,如有需要请<span class='bt-link' onClick='openFilePath()'>点击查看</span>"}]})])}}}),Ot=O({__name:"index",setup:function(t){return function(t,e){return S(),I(jt)}}}),Et=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"}));t("i",Et)}}}))}();
Save File
Cancel