← Back
Editing: add-result-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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var r,n={},a=Object.prototype,o=a.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.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(r){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var a=e&&e.prototype instanceof x?e:x,o=Object.create(a.prototype),c=new T(n||[]);return i(o,"_invoke",{value:j(t,r,c)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var m="suspendedStart",y="suspendedYield",v="executing",d="completed",g={};function x(){}function w(){}function b(){}var D={};f(D,s,(function(){return this}));var S=Object.getPrototypeOf,L=S&&S(S(G([])));L&&L!==a&&o.call(L,s)&&(D=L);var E=b.prototype=x.prototype=Object.create(D);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(e,r){function n(a,i,c,s){var u=h(e[a],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):r.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,a){n(t,e,r,a)}))}return a=a?a.then(o,o):o()}})}function j(t,e,n){var a=m;return function(o,i){if(a===v)throw Error("Generator is already running");if(a===d){if("throw"===o)throw i;return{value:r,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var s=O(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=v;var u=h(t,e,n);if("normal"===u.type){if(a=n.done?d:y,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=d,n.method="throw",n.arg=u.arg)}}}function O(t,e){var n=e.method,a=t.iterator[n];if(a===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(a,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,g;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function P(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 q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function G(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function t(){for(;++a<e.length;)if(o.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=b,i(E,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:w,configurable:!0}),w.displayName=f(b,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,b):(t.__proto__=b,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},n.awrap=function(t){return{__await:t}},_(k.prototype),f(k.prototype,u,(function(){return this})),n.AsyncIterator=k,n.async=function(t,e,r,a,o){void 0===o&&(o=Promise);var i=new k(p(t,e,r,a),o);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(E),f(E,l,"Generator"),f(E,s,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),n.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}},n.values=G,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(q),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},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 e=this;function n(n,a){return c.type="throw",c.arg=t,e.next=n,a&&(e.method="next",e.arg=r),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.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 a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),q(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 a=n.arg;q(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:G(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(t,e,r,n,a,o,i){try{var c=t[o](i),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,a)}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var a,o,i,c,s,u,l,f,p,h,m,y,v,d,g,x,w;return{setters:[function(t){a=t.K,o=t.c},function(t){i=t.c,c=t.r,s=t.p,u=t.q,l=t.v,f=t.y,p=t.J,h=t.B,m=t.e,y=t.z,v=t.C,d=t.A,g=t.M,x=t.a$},function(t){w=t.setSiteDns},null],execute:function(){var n={class:"p-28px"},b={class:"flex items-center"},D={key:0,class:"flex flex-col flex-shrink w-full ml-32px",style:{gap:"12px"}},S={key:0,class:"flex flex-col"},L={class:"flex items-center"},E={class:"flex items-center"},_={key:1,class:"text-danger my-8px"},k={key:2,class:"text-danger my-8px"},j={key:3,class:"flex flex-col"},O={key:0,class:"flex items-center"},P={class:"flex items-center"},q={class:"flex items-center"},T={key:1,class:"flex items-center"},G={key:4,class:"flex items-center"},N={key:5,class:"text-danger my-8px"},F={key:6,class:"my-8px"},A={key:1,class:"ml-1rem"};t("default",i({__name:"add-result",props:{compData:{default:function(){return{ftp:!0,sql:!0,ftpStatus:!0,databaseStatus:!0,ftpData:{username:"",password:""},sqlData:{username:"",password:""},siteStatus:!0,site:{name:""},accessSite:""}}}},setup:function(t){var i=t,I=c([]);c([{label:"域名",prop:"domain",width:120},{label:"结果",prop:"msg",align:"right",showOverflowTooltip:!0,render:function(t){return t.msg?m("div",{class:"truncate ".concat(t.status?"text-primary":"text-danger")},[t.msg]):m("div",{class:"svgtofont-el-loading text-[1.4rem]"},null)}}]);var Y=function(){var t,n=(t=e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i.compData.dns&&(I.value=i.compData.dns,a({request:w({domains:null===(r=I.value.map((function(t){return t.domain})))||void 0===r?void 0:r.join(",")}),data:[Array,I]}));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(a,o){var i=t.apply(e,n);function c(t){r(i,a,o,c,s,"next",t)}function s(t){r(i,a,o,c,s,"throw",t)}c(void 0)}))});return function(){return n.apply(this,arguments)}}();return s((function(){Y()})),function(t,e){var r=x,a=o;return u(),l("div",n,[f("div",b,[f("i",{class:p(["svgtofont-el-success-filled text-primary","".concat(t.compData.title?"!text-[4rem]":"!text-[10rem]")])},null,2),t.compData.ftp||t.compData.sql?(u(),l("div",D,[t.compData.ftp&&t.compData.ftpStatus?(u(),l("div",S,[e[2]||(e[2]=h(" FTP账号资料 ")),m(r,{class:"!my-8px"}),f("span",L,[e[0]||(e[0]=h(" 用户: ")),f("strong",null,y(t.compData.ftpData.username),1)]),f("span",E,[e[1]||(e[1]=h(" 密码: ")),f("strong",null,y(t.compData.ftpData.password),1)])])):v("",!0),t.compData.ftp&&!t.compData.ftpStatus?(u(),l("div",_,"FTP账号添加失败!")):v("",!0),t.compData.sql&&!t.compData.databaseStatus?(u(),l("div",k,"数据库添加失败!")):v("",!0),t.compData.sql&&t.compData.databaseStatus?(u(),l("div",j,[e[7]||(e[7]=h(" 数据库账号资料 ")),m(r,{class:"!my-8px"}),t.compData.siteStatus?(u(),l("span",O,[e[3]||(e[3]=h(" 数据库名: ")),f("strong",null,y(t.compData.sqlData.username),1)])):v("",!0),f("span",P,[e[4]||(e[4]=h(" 用户: ")),f("strong",null,y(t.compData.sqlData.username),1)]),f("span",q,[e[5]||(e[5]=h(" 密码: ")),f("strong",null,y(t.compData.sqlData.password),1)]),t.compData.siteStatus&&t.compData.site.name?(u(),l("span",T,[e[6]||(e[6]=h(" 访问站点: ")),m(a,{href:"http://"+t.compData.site.name},{default:d((function(){return[h(y("http://"+t.compData.site.name),1)]})),_:1},8,["href"])])):v("",!0)])):v("",!0),t.compData.accessSite?(u(),l("span",G,[e[8]||(e[8]=f("div",{class:"whitespace-nowrap"},"初次启动url:",-1)),t.compData.accessSite?(u(),g(a,{key:0,href:t.compData.accessSite},{default:d((function(){return[h(y(t.compData.accessSite),1)]})),_:1},8,["href"])):v("",!0)])):v("",!0),t.compData.siteStatus?v("",!0):(u(),l("div",N,"网站添加失败!")),t.compData.siteStatus?(u(),l("div",F,"网站添加成功!")):v("",!0)])):(u(),l("div",A,y(t.compData.title),1))])])}}}))}}}))}();
Save File
Cancel