← Back
Editing: index-legacy96.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 r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,r,n){return(r=function(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}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 r};var e,r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new R(n||[]);return i(a,"_invoke",{value:S(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var v="suspendedStart",d="suspendedYield",y="executing",m="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!==n&&o.call(j,c)&&(x=j);var L=_.prototype=b.prototype=Object.create(x);function O(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,r){function n(i,a,u,c){var l=h(e[i],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function S(t,r,n){var o=v;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=E(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=h(t,r,n);if("normal"===l.type){if(o=n.done?m:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function W(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 R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(W,this),this.reset(!0)}function A(r){if(r||""===r){var n=r[c];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var i=-1,a=function t(){for(;++i<r.length;)if(o.call(r,i))return t.value=r[i],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(t(r)+" is not iterable")}return w.prototype=_,i(L,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},r.awrap=function(t){return{__await:t}},O(P.prototype),f(P.prototype,l,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(L),f(L,s,"Generator"),f(L,c,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,R.prototype={constructor:R,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 r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},r}function u(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useMethod-legacy5.js?v=VERSION_NUMBER","./form-item-legacy.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var n,i,u,l,s,f,p,h,v,d,y,m,g,b,w,_,x,k,j,L,O,P,S,E,W,C,R,A,D,T,q,F,B,M,N;return{setters:[function(t){n=t.L,i=t.u,u=t.p,l=t.aM,s=t.a6,f=t.R,p=t.cu,h=t.a7,v=t.n,d=t.a8},function(t){y=t._},function(t){m=t.j,g=t.r,b=t.k,w=t.s,_=t.g,x=t.e,k=t.B,j=t.c,L=t.q,O=t.M,P=t.A,S=t.x},function(t){E=t.c,W=t.a,C=t.u},function(t){R=t.e,A=t.f,D=t.h,T=t.i,q=t.b},function(t){F=t.h,B=t.b,M=t.e,N=t.f}],execute:function(){var G=t("u",m("WP-REMOTE-STORE",(function(){var t=g(!1),r=b({url:"",type:1,username:"",password:"",key:"",token:""}),o=b({Login_url:"",wp:"",php:"",sql:"",worker:"",username:"",language:"en"}),i=function(){var o=c(a().mark((function o(i){var u,c,l,s,f;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,n((function(){return e.import("./utils-lib-legacy.js?v=VERSION_NUMBER").then((function(t){return t.jF}))}),void 0,e.meta.url);case 3:return u=o.sent,c=u.useDataHandle,o.next=7,n((function(){return Promise.resolve().then((function(){return it}))}),void 0,e.meta.url);case 7:l=o.sent,s=l.getParams,f=l.getParamsKey,c({loading:"正在添加 Wordpress,请稍后...",request:1===r.type?R(s()):A(f()),data:{status:Boolean},message:!0,success:function(){t.value=!0,i&&i()}}),o.next=16;break;case 13:o.prev=13,o.t0=o.catch(0);case 16:case"end":return o.stop()}}),o,null,[[0,13]])})));return function(t){return o.apply(this,arguments)}}();return{addWordpressFormData:r,selectCofigFormData:o,addWordpressData:i,isRefreshRemoteList:t,resetAddWordpressData:function(){r.url="",r.type=1,r.username="",r.password="",r.key="",r.token=""},resetSelectCofigData:function(){o.Login_url="",o.wp="",o.php="",o.sql="",o.worker="",o.username="",o.language="en"}}}))),I=w(G()).isRefreshRemoteList,H=function(){var t=c(a().mark((function t(e){var r,n,o,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,D({keyword:e.search,p_size:e.limit,p:e.p});case 3:return r=t.sent,n=r.data,o=n.list,i=n.total,t.abrupt("return",{data:o,total:i});case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return",{data:[],total:0});case 14:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}(),K=function(){var t=c(a().mark((function t(e,r,n,o){var i,u,l,s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=o.label,u=o.value,l=new Map([["delete","批量删除已选的网站,删除后彻底失去访问和操作权限"]]),s=function(){var t=c(a().mark((function t(e,r){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.id,t.t0=u,t.next="delete"===t.t0?4:7;break;case 4:return t.next=6,T({remote_id:n});case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),t.next=5,e({title:"批量".concat(i,"网站"),content:"".concat(l.get(u),",是否继续操作!"),column:[{label:"网站",prop:"site_url"},E()],onConfirm:function(){var t=c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(s);case 2:return I.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,r,n,o){return t.apply(this,arguments)}}();i().payment.value;var U=w(G()),z=U.addWordpressFormData,Y=U.selectCofigFormData,Q=U.isRefreshRemoteList,$=G().addWordpressData,J=t("a",(function(t){var e={class:"!w-[300px]",clearable:!0},n=[{label:"凭据",value:1},{label:"密钥",value:2}];return _((function(){return[M("连接类型","type",n,{attrs:r({},e),labelAttrs:{labelWidth:"100px"}}),B("登录URL","url",{rules:[{required:!0,message:"请输入登录URL",trigger:"blur"}],attrs:r(r({},e),{},{placeholder:"请输入登录URL"}),labelAttrs:{labelWidth:"100px"}})].concat(o(1===t.value.type?V(e):X(e)))}))})),V=function(t){return[B("用户名","username",{attrs:r(r({},t),{},{placeholder:"请输入用户名"}),rules:[{required:!0,message:"请输入用户名",trigger:"blur"}],labelAttrs:{labelWidth:"100px"}}),B("密码","password",{attrs:r(r({},t),{},{placeholder:"请输入密码"}),rules:[{required:!0,message:"请输入密码",trigger:"blur"}],labelAttrs:{labelWidth:"100px"}})]},X=function(t){return[B("Security Key","key",{attrs:r(r({},t),{},{placeholder:"请输入Security Key"}),rules:[{required:!0,message:"请输入Security Key",trigger:"blur"}],labelAttrs:{labelWidth:"100px"}}),B("Security Token","token",{attrs:r(r({},t),{},{placeholder:"请输入Security Token"}),rules:[{required:!0,message:"请输入Security Token",trigger:"blur"}],labelAttrs:{labelWidth:"100px"}}),{type:"custom",render:function(){return x("span",{class:"leading-8"},[k("如何添加带有安全密钥的网站,遵循下面的步骤")])}},N("",[{content:x("span",null,[k("1. 下载"),x("span",{class:"bt-link",onClick:function(){return window.open("http://download.bt.cn/install/src/btpanel-wp-toolkit.zip","_blank","noopener,noreferrer")}},[k("WP工具包")])])},{content:"2. 将插件上传到您的网站"},{content:"3. 在您的网站上激活插件"},{content:"4. 单击您网站上的安全键链接 /wp-admin/plugins.php页面\t"},{content:"5. 将密钥和令牌复制到上面的两个输入框"},{content:"6. 单击确认按钮以完成全部"}])]},Z=function(){var t=c(a().mark((function t(e,r,n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r();case 3:return t.next=5,$();case 5: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,r,n){return t.apply(this,arguments)}}(),tt=t("g",(function(){var t={class:"w-[320px]",clearable:!0,disabled:!0};return _((function(){return[F("登录URL",(function(){return x("div",{class:"bt-link",onClick:function(){return nt(Y.value.Login_url)}},[Y.value.Login_url])})),B("WP版本","wp",{attrs:r({},t)}),B("插件版本","worker",{attrs:r({},t)}),B("PHP版本","php",{attrs:r({},t)}),B("MySQL版本","sql",{attrs:r({},t)}),B("用户名","username",{attrs:r({},t)}),B("网站语言","language",{attrs:r({},t)})]}))})),et=t("s",(function(t){Y.value.Login_url=t.login_url||"",Y.value.wp=t.env_info.wordpress_version||"",Y.value.php=t.env_info.php_version||"",Y.value.worker=t.env_info.plugin_version||"",Y.value.username=t.username||"",Y.value.language=t.env_info.locale||"",Y.value.sql=t.env_info.mysql_version||""})),rt=t("o",(function(t){q(t,"remote")})),nt=t("b",(function(t){window.open(t,"_blank","noopener,noreferrer")})),ot=function(){var t=c(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({title:"删除",content:"这将从列表中删除您的网站【".concat(e.site_url,"】,是否继续操作?"),onConfirm:function(){var t=c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T({remote_id:e.id});case 2:Q.value=!0;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),it=Object.freeze(Object.defineProperty({__proto__:null,addWordpress:Z,getAddWordpressFormOption:J,getParams:function(){return{login_url:z.value.url,username:z.value.username,password:z.value.password}},getParamsKey:function(){return{login_url:z.value.url,security_key:z.value.key,security_token:z.value.token}},getSelectCofigFormOption:tt,onDel:ot,onLogin:nt,onPay:rt,setSelectCofigFormData:et},Symbol.toStringTag,{value:"Module"})),at=j({__name:"index",setup:function(t){var r=w(G()).isRefreshRemoteList,o=i().mainHeight,a=function(t){return v({title:"站点修改【".concat(t.site_url,"】 -- 添加时间【").concat(f(t.create_time),"】"),area:55,compData:t,component:function(){return n((function(){return e.import("./index-legacy409.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},u=l({options:[{type:"button",label:"添加 Wordpress",active:!0,onClick:function(){return v({title:"添加 Wordpress",area:55,compData:H,component:function(){return n((function(){return e.import("./index-legacy410.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},btn:!0})}}]}).BtOperation,c=d([{label:"删除",value:"delete",event:K}]),m=s({request:function(t){return H(t)},columns:[W(),{label:"网站名",minWidth:180,isCustom:!0,prop:"site_url",render:function(t){return x("span",{class:"bt-link",onClick:function(){a(t)}},[t.site_url])}},{label:"WP 版本",isCustom:!0,minWidth:100,render:function(t){var e;return x("span",{class:"bt-link",onClick:function(){a(t)}},[null!==(e=t.env_info)&&void 0!==e&&e.wordpress_version?t.env_info.wordpress_version:"--"])}},{label:"插件版本",isCustom:!0,minWidth:100,render:function(t){var e;return x("span",{class:"bt-link",onClick:function(){a(t)}},[null!==(e=t.env_info)&&void 0!==e&&e.plugin_version?t.env_info.plugin_version:"--"])}},{label:"PHP版本",isCustom:!0,minWidth:100,render:function(t){var e;return x("span",{class:"bt-link",onClick:function(){a(t)}},[null!==(e=t.env_info)&&void 0!==e&&e.php_version?t.env_info.php_version:"--"])}},{label:"创建时间",align:"center",render:function(t){return f(t.create_time)}},C([{onClick:function(t){!function(t){v({title:"WP登录",area:42,compData:t,component:function(){return n((function(){return e.import("./index-legacy411.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})}(t)},title:"登录"},{onClick:function(t){ot(t)},title:"删除"}])],extension:[c,p("search",{name:"wp",list:[],showHistory:!1,showRecommend:!1}),h(r)]}),g=m.BtTable,b=m.BtPage,_=m.BtRecommendSearch,k=(m.BtRefresh,m.BtColumn,m.BtBatch);m.BtTableCategory,m.BtErrorMask,m.tableRef,m.classList,m.refresh;return function(t,e){var r=y;return L(),O(r,null,{"header-left":P((function(){return[x(S(u))]})),"header-right":P((function(){return[x(S(_),{type:"remote-wp",placeholder:"请输入域名",class:"!w-[270px] mr-[10px]"})]})),content:P((function(){return[x(S(g),{"min-height":S(o)},null,8,["min-height"])]})),"footer-left":P((function(){return[x(S(k))]})),"footer-right":P((function(){return[x(S(b))]})),_:1})}}}),ut=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));t("i",ut)}}}))}();
Save File
Cancel