← Back
Editing: index-legacy95.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(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,o,i,u=[],c=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,a=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return n};var e,n={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),u=new T(r||[]);return o(i,"_invoke",{value:S(t,n,u)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,c,(function(){return this}));var k=Object.getPrototypeOf,j=k&&k(k(A([])));j&&j!==r&&a.call(j,c)&&(x=j);var L=_.prototype=b.prototype=Object.create(x);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function C(e,n){function r(o,i,u,c){var s=d(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,a){r(t,e,n,a)}))}return i=i?i.then(a,a):a()}})}function S(t,n,r){var a=h;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var c=O(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===h)throw a=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var s=d(t,n,r);if("normal"===s.type){if(a=r.done?y:v,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=y,r.method="throw",r.arg=s.arg)}}}function O(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,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=d(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(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 W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function A(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 o=-1,i=function t(){for(;++o<n.length;)if(a.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(t(n)+" is not iterable")}return w.prototype=_,o(L,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,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__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},n.awrap=function(t){return{__await:t}},P(C.prototype),f(C.prototype,s,(function(){return this})),n.AsyncIterator=C,n.async=function(t,e,r,a,o){void 0===o&&(o=Promise);var i=new C(p(t,e,r,a),o);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},P(L),f(L,l,"Generator"),f(L,c,(function(){return this})),f(L,"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=A,T.prototype={constructor:T,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(W),!t)for(var n in this)"t"===n.charAt(0)&&a.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 u.type="throw",u.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},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),g},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),W(n),g}},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;W(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function u(t,e,n,r,a,o,i){try{var u=t[o](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,a)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function i(t){u(o,r,a,i,c,"next",t)}function c(t){u(o,r,a,i,c,"throw",t)}i(void 0)}))}}System.register(["./index-legacy103.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./useMethod-legacy5.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useController-legacy5.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./useStore-legacy13.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var r,o,u,s,l,f,p,d,h,v,m,y,g,b,w,_,x,k,j,L,P,C,S,O,E,W,T,A,N,I,R,B,D,M,F,G,q,z,H,U,V,Y,K,Q,$,J,X,Z,tt,et,nt;return{setters:[function(t){r=t._},function(t){o=t._},function(t){u=t.df,s=t.fP,l=t.L,f=t.a3,p=t.N,d=t.x,h=t.fQ,v=t.bU,m=t.u,y=t.aj,g=t.p,b=t.K,w=t.n,_=t.aM,x=t.a6,k=t.cu,j=t.a7,L=t.a8},function(t){P=t.j,C=t.r,S=t.k,O=t.g,E=t.n,W=t.s,T=t.e,A=t.B,N=t.c,I=t.q,R=t.v,B=t.x,D=t.A},function(t){M=t.u,F=t.a,G=t.s,q=t.b,z=t.c,H=t.d},function(t){U=t._},function(t){V=t.a,Y=t.b,K=t.d,Q=t.l,$=t.u,J=t.c},function(t){X=t.u,Z=t.s,tt=t.n},function(t){et=t.u},function(t){nt=t.u}],execute:function(){var rt=t("u",P("WP-LOCAL-ADD-STORE",(function(){var t=C("single"),n=S({domain:"",weblog_title:"",language:"zh_CN",php_version:null,wp_version:null,user_name:u(6),admin_password:s(16),pw_weak:!1,admin_email:"",Login_url:"wp-admin",redirection_url:"404",prefix:"wp_"+u(6)+"_",enable_cache:!1,wps:!1,datapassword:"",datauser:""}),r=S({method:1,bak_file:"",domain:"",sub_path:"",php_version:null,enable_cache:!1}),o=S({validatePasswordLength:"",validatePasswordMixedCaseCount:"",validatePasswordNumberCount:"",validatePasswordSpecialCharCount:"",status:"off"}),m=O((function(){return r.domain?"/".concat(r.domain,"/"):"/"})),y=C("/www/wwwroot"),g=C({setup:!0,version:"",status:!1}),b=C({setup:!0}),w=C({setup:!0,type:"",version:"",status:!1}),_=C([{label:"English",value:"en"},{label:"简体中文",value:"zh"}]),x=C([]),k=C([{label:"WordPress 5.8",value:"5.8"},{label:"WordPress 5.9",value:"5.9"}]),j=C(null),L=C(null),P=M(),W=P.loading,T=P.setLoading,A=M(),N=A.loading,I=A.setLoading,R=M(),B=R.loading,D=R.setLoading,F=function(){var t=c(i().mark((function t(){var n,r,a,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l((function(){return e.import("./utils-lib-legacy.js?v=VERSION_NUMBER").then((function(t){return t.jE}))}),void 0,e.meta.url);case 2:return n=t.sent,r=n.getPublicConfig,t.next=6,r();case 6:a=t.sent,o=a.data,f(o)&&(b.value.setup=!!o.php.length,y.value=o.sites_path||"/www/wwwroot",f(o.web)&&(w.value=o.web),f(o.mysql)&&(g.value=o.mysql));case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),G=function(){var t=c(i().mark((function t(){var r,u,c,s,v,m,y,g,b,w,j,L,P,C,S,O;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,T(!0),I(!0),D(!0),t.next=6,l((function(){return e.import("./useMethod-legacy5.js?v=VERSION_NUMBER").then((function(t){return t.a4}))}),void 0,e.meta.url);case 6:return r=t.sent,u=r.getLanguageList,c=r.getWpVersionList,t.next=11,l((function(){return e.import("./site-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url);case 11:return s=t.sent,v=s.GetPHPVersion,t.next=15,l((function(){return e.import("./database-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url);case 15:return m=t.sent,y=m.getDatabasePasswordConfig,t.next=19,u();case 19:return g=t.sent,b=g.data.msg,f(b)&&(_.value=Object.entries(b).map((function(t){var e=a(t,2),n=e[0];return{label:e[1],value:n}}))),t.next=24,v();case 24:if(w=t.sent,j=w.data,!p(j)){t.next=31;break}return x.value=j.reverse().filter((function(t){return"00"!==t.version})).map((function(t){return{label:t.name,value:t.version}})),t.next=30,E();case 30:j.length>0&&(L=j[0].version,n.php_version="00"===L?"":L||null);case 31:return t.next=33,c({php_version_short:n.php_version||""});case 33:if(P=t.sent,C=P.data.msg,!p(C)){t.next=40;break}return k.value=C.map((function(t){return{label:t.version,value:t.version}})),t.next=39,E();case 39:C.length>0&&(n.wp_version=C[0].version||"");case 40:return t.next=42,y();case 42:S=t.sent,"off"===(null==(O=S.data)?void 0:O.status)?(n.datapassword=d(16),o.status=O.status||""):(o.validatePasswordLength=O.validate_password_length||"",o.validatePasswordMixedCaseCount=O.validate_password_mixed_case_count||"",o.validatePasswordNumberCount=O.validate_password_number_count||"",o.validatePasswordSpecialCharCount=O.validate_password_special_char_count||"",o.status=O.status||"",n.datapassword=h(o));case 45:return t.prev=45,T(!1),I(!1),D(!1),t.finish(45);case 50:case"end":return t.stop()}}),t,null,[[0,,45,50]])})));return function(){return t.apply(this,arguments)}}();return{tabActive:t,addWordpressFormData:n,mysql:g,php:b,web:w,getConfig:F,addSelectOption:_,selectLoading:W,getInitData:G,addPHPSelectOption:x,addWPSelectOption:k,domainPath:m,sitePath:y,addBackupFormData:r,phpLoading:N,wpLoading:B,setWpLoading:D,createSiteSubmit:j,createImportSubmit:L,resetCreateForm:function(){n.domain="",n.weblog_title="",n.language="zh_CN",n.php_version=null,n.wp_version=null,n.user_name=u(6),n.admin_password=v(16,"wp"),n.pw_weak=!1,n.admin_email="",n.Login_url="wp-admin",n.redirection_url="404",n.prefix="wp_"+u(6)+"_",n.enable_cache=!1,n.wps=!1,n.datauser="",n.datapassword="",o.validatePasswordLength="",o.validatePasswordMixedCaseCount="",o.validatePasswordNumberCount="",o.validatePasswordSpecialCharCount="",o.status="off"},resetImportForm:function(){r.method=1,r.bak_file="",r.domain="",r.sub_path="",r.php_version=null,r.enable_cache=!1},passwordConfig:o}}))),at=t("b",P("WP-Wordpress-Setting-STORE",(function(){var t=C("setup"),e=S({Login_url:"",redirection_url:"",wps:!1,admin_email:"",home_url:""}),n=M(),r=n.loading,a=n.setLoading,o=C(!1),i=C("--"),u=C("--"),c=O((function(){return o.value?"有一个新版本 (".concat(u.value,") 可用于更新"):"WordPress ".concat(i.value," 已经是最新版本")})),s=C([]),l=C(!1),f=C(null),p=C("zh_CN"),d=C(""),h=C("--"),v=C(!1),m=C(!1),y=C(!1),g=C(!1);return{tabActive:t,form:e,isUpdate:o,currentVersion:i,updateVersion:u,versionText:c,isCache:l,username:f,language:p,password:d,login_url:h,isRefreshPluginList:v,isRefreshThemeList:y,isRefreshPluginInstall:m,isRefreshThemeInstall:g,loading:r,setLoading:a,siteLanguageOption:s}}))),ot=W(X()),it=ot.localRow,ut=ot.loginUrl,ct=ot.isRefreshLocalList,st=ot.cloneLocalForm;m();var lt=et(),ft=lt.siteInfo,pt=lt.siteType,dt=W(rt()),ht=dt.createSiteSubmit,vt=dt.tabActive,mt=dt.createImportSubmit,yt=W(nt()).tabActive,gt=W(at()).tabActive,bt=function(){var t=c(i().mark((function t(e){var r,a,o,u,c,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,F(n(n({},e),{},{table:"sites",project_type:"WP2"}));case 3:return r=t.sent,a=r.data,o=a.data,u=a.page,c=a.search_history,s=a.error,t.abrupt("return",{data:o,total:y(u),other:{search_history:c,error:s}});case 12:return t.prev=12,t.t0=t.catch(0),t.abrupt("return",{data:[],total:0,other:{search_history:[]}});case 16:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e){return t.apply(this,arguments)}}(),wt=function(){return[V(),{label:"网站名",minWidth:180,isCustom:!0,showOverflowTooltip:!0,prop:"name",render:function(t){return T("span",{class:"bt-link",onClick:function(){it.value=t,ft.value=t,pt.value="php",kt(t,"domain")}},[t.name])}},Y({width:100,event:(t=c(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g({title:"".concat("0"===e.status?"开启":"暂定"," 网站 【").concat(e.name,"】"),content:"".concat("0"===e.status?"即将开启此网站,您确定继续吗?":"关闭网站时无法访问,您确定继续吗?"),onConfirm:function(){var t=c(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b({loading:"正在操作中,请稍后...",message:!0,request:G("0"===e.status,{id:e.id,name:e.name}),success:function(t){t.status&&(ct.value=!0)}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 2:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)}),data:["已停用","已启用"]}),{label:"备份",minWidth:80,isCustom:!0,prop:"backup_count",render:function(t){return T("span",{class:"bt-link",onClick:function(){it.value=t,w({title:"网站备份数据【".concat(t.name,"】"),area:85,component:function(){return l((function(){return e.import("./index-legacy403.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},style:t.backup_count>0?"":"color:#f0ad4e !important"},[t.backup_count>0?"有备份(".concat(t.backup_count,")"):"点击备份"])}},K({prop:"path",minWidth:120,width:200}),Q({label:"缓存",prop:"cache_status",size:"small",event:function(t,e){b({loading:"".concat(t?"开启":"关闭","缓存中,请稍候..."),message:!0,request:z({version:e.php_version,sitename:e.name,act:t?"enable":"disable"}),success:function(t){t.status||(e.cache_status=!e.cache_status)}})}}),$((function(t){return[{onClick:function(){gt.value="setup",kt(t,"wordpress")},title:"00"==t.wp_version?"Static":t.wp_version},{onClick:function(){it.value=t,st.value.cache_status=t.cache_status,w({title:"克隆网站",btn:!0,area:60,component:function(){return l((function(){return e.import("./index-legacy404.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},title:"克隆"},{onClick:function(){gt.value="plugin",kt(t,"wordpress")},title:"插件"},{onClick:function(){gt.value="theme",kt(t,"wordpress")},title:"主题"},{onClick:function(){it.value=t,w({title:"安全工具【".concat(t.name,"】"),area:60,component:function(){return l((function(){return e.import("./index-legacy405.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},title:"保护"},{onClick:function(){it.value=t,w({title:"检查WordPress完整性【".concat(t.name,"】"),area:60,component:function(){return l((function(){return e.import("./index-legacy406.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},title:"完整性检查"}]}),{label:"WP 设置",fixed:!1,width:350}),{label:"PHP",isCustom:!0,width:100,minWidth:100,render:function(t){var e=!t.php_version_status;return T("span",{class:"cursor-pointer "+(e&&"静态"!==t.php_version?"bt-warn":"bt-link"),onClick:function(){return kt(t,"php")}},[e&&"静态"!==t.php_version?t.php_version+"[未安装]":"其它"==t.php_version?"自定义":t.php_version])}},{label:"SSL",minWidth:100,isCustom:!0,prop:"ssl",render:function(t){var e=t.ssl;return f(e)?T("span",{class:"bt-link",style:e.endtime<0?"color:#ef0808 !important":"",onClick:function(){kt(t,"ssl")}},[e.endtime<0?"已过期":"在".concat(e.endtime,"天内到期")]):T("span",{class:"bt-link",style:"color:#f0ad4e !important",onClick:function(){kt(t,"ssl")}},[A("未设置")])}},$((function(t){return[{title:"登录",render:function(){return T("div",{class:"inline-block"},["0"==t.status?T("span",{class:"text-[#999]",style:"cursor:not-allowed"},[A("登录")]):T("span",{class:"bt-link",onClick:function(){it.value=t,w({title:"WP登录",area:42,component:function(){return l((function(){return e.import("./index-legacy407.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})}},[A("登录")]),T(U,null,null)])}},{onClick:function(){kt(t)},title:"设置"},{onClick:function(t){it.value=t,_t(t)},title:"删除"}]}),{fixed:"right",width:150,label:"操作"})];var t},_t=(t("a",(function(){window.open(ut.value,"_blank","noopener,noreferrer")})),t("o",(function(){q(it.value.id,"local")})),function(){var t=c(i().mark((function t(n){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:w({title:"删除站点确认",component:function(){return l((function(){return e.import("./index-legacy215.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},area:"auto",compData:n});case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),xt=function(){var t=c(i().mark((function t(e,n,r,a){var o,u,s,l;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.label,u=a.value,s=new Map([["start","批量启用选中的站点后,站点将恢复正常访问"],["stop","批量停用选中的站点后,站点将无法正常访问,用户访问会显示当前网站停用后的提示页"],["backSite","批量备份选中的站点,可能耗费时间较长"]]),l=function(){var t=c(i().mark((function t(e,n){var r,a,o,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=new Map([["backSite",H]]),a=e.id,e.name,null==(o=e.project_config)||o.type,c=r.get(u),t.t0=u,t.next="backSite"===t.t0?7:10;break;case 7:if(!c){t.next=9;break}return t.abrupt("return",c({s_id:a,bak_type:3}));case 9:return t.abrupt("break",10);case 10:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),t.next=5,e({title:"批量".concat(o),content:"".concat(s.get(u),",是否继续操作?"),column:[{label:"网站名",prop:"rname"},J()],onConfirm:function(){var t=c(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(l);case 2:return ct.value=!0,t.abrupt("return",!1);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 5:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),kt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"domain";it.value=t,ft.value=t,pt.value="php",yt.value=n,w({title:"站点修改【".concat(t.name,"】 -- 添加时间【").concat(t.addtime,"】"),area:[84,70],component:function(){return l((function(){return e.import("./index-legacy408.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},jt=N({__name:"index",setup:function(t){var n,a=W(X()).isRefreshLocalList,u=m().mainHeight,s=_({options:[{type:"button",label:"添加 Wordpress",active:!0,onClick:function(){var t;w({title:"添加站点",btn:!0,area:60,component:function(){return l((function(){return e.import("./index-legacy400.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},onConfirm:(t=c(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,"single"!==vt.value){t.next=8;break}if(t.t0=ht.value,!t.t0){t.next=6;break}return t.next=6,ht.value();case 6:t.next=12;break;case 8:if(t.t1=mt.value,!t.t1){t.next=12;break}return t.next=12,mt.value();case 12:t.next=17;break;case 14:return t.prev=14,t.t2=t.catch(0),t.abrupt("return",!1);case 17:case"end":return t.stop()}}),t,null,[[0,14]])}))),function(){return t.apply(this,arguments)})})}},{type:"button",label:"迁移站点",onClick:function(){w({title:"迁移站点",area:60,component:function(){return l((function(){return e.import("./index-legacy401.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})}},{type:"button",label:"WP 套件",onClick:function(){w({title:"WP 套件",area:60,component:function(){return l((function(){return e.import("./index-legacy402.js?v=VERSION_NUMBER").then((function(t){return t.i}))}),void 0,e.meta.url)}})}}]}),f=s.BtOperation,p=L([{label:"启动站点",value:"start",event:Z},{label:"停用站点",value:"stop",event:Z},{label:"备份站点",value:"backSite",event:xt},{label:"删除站点",value:"delete",event:(n=c(i().mark((function t(e,n,r,a){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:tt(r.value);case 1:case"end":return t.stop()}}),t)}))),function(t,e,r,a){return n.apply(this,arguments)})}]),d=x({request:function(t){return bt(t)},columns:wt(),extension:[k("search",{name:"wp",list:[],showHistory:!1,showRecommend:!1}),p,j(a)]}),h=d.BtTable,v=d.BtPage,y=d.BtRecommendSearch,g=(d.BtRefresh,d.BtColumn,d.BtBatch),b=(d.BtTableCategory,d.BtErrorMask,d.tableRef,d.classList,d.refresh);return function(t,e){var n=r;return I(),R("div",null,[T(o,{ref:"envRef",onInit:B(b)},null,8,["onInit"]),T(n,null,{"header-left":D((function(){return[T(B(f))]})),"header-right":D((function(){return[T(B(y),{type:"remote-wp",placeholder:"请输入域名",class:"!w-[270px] mr-[10px]"})]})),content:D((function(){return[T(B(h),{"min-height":B(u)},null,8,["min-height"])]})),"footer-left":D((function(){return[T(B(g))]})),"footer-right":D((function(){return[T(B(v))]})),_:1})])}}}),Lt=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"}));t("i",Lt)}}}))}();
Save File
Cancel