HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index-legacy347.js
!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,l="function"==typeof Symbol?Symbol:{},o=l.iterator||"@@iterator",u=l.toStringTag||"@@toStringTag";function a(e,l,o,u){var a=l&&l.prototype instanceof c?l:c,s=Object.create(a.prototype);return t(s,"_invoke",function(e,t,l){var o,u,a,c=0,s=l||[],p=!1,f={p:0,n:0,v:n,a:d,f:d.bind(n,4),d:function(e,t){return o=e,u=0,a=n,f.n=t,i}};function d(e,t){for(u=e,a=t,r=0;!p&&c&&!l&&r<s.length;r++){var l,o=s[r],d=f.p,v=o[2];e>3?(l=v===t)&&(a=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=n):o[0]<=d&&((l=e<2&&d<o[1])?(u=0,f.v=t,f.n=o[1]):d<v&&(l=e<3||o[0]>t||t>v)&&(o[4]=e,o[5]=t,f.n=v,u=0))}if(l||e>1)return i;throw p=!0,t}return function(l,s,v){if(c>1)throw TypeError("Generator is already running");for(p&&1===s&&d(s,v),u=s,a=v;(r=u<2?n:a)||!p;){o||(u?u<3?(u>1&&(f.n=-1),d(u,a)):f.n=a:f.v=a);try{if(c=2,o){if(u||(l="next"),r=o[l]){if(!(r=r.call(o,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,u<2&&(u=0)}else 1===u&&(r=o.return)&&r.call(o),u<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),u=1);o=n}else if((r=(p=f.n<0)?a:e.call(t,f))!==i)break}catch(r){o=n,u=1,a=r}finally{c=1}}return{value:r,done:p}}}(e,o,u),!0),s}var i={};function c(){}function s(){}function p(){}r=Object.getPrototypeOf;var f=[][o]?r(r([][o]())):(t(r={},o,function(){return this}),r),d=p.prototype=c.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,t(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=p,t(d,"constructor",p),t(p,"constructor",s),s.displayName="GeneratorFunction",t(p,u,"GeneratorFunction"),t(d),t(d,u,"Generator"),t(d,o,function(){return this}),t(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:v}})()}function t(e,n,r,l){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}t=function(e,n,r,l){function u(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?o?o(e,n,{value:r,enumerable:!l,configurable:!l,writable:!l}):e[n]=r:(u("next",0),u("throw",1),u("return",2))},t(e,n,r,l)}function n(e,t,n,r,l,o,u){try{var a=e[o](u),i=a.value}catch(e){return void n(e)}a.done?t(i):Promise.resolve(i).then(r,l)}function r(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./index-legacy88.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy118.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1777008528","./index-legacy175.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy116.js?v=1777008528","./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang-legacy.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./site-legacy.js?v=1777008528","./index-legacy218.js?v=1777008528","./index-legacy151.js?v=1777008528","./index-legacy152.js?v=1777008528","./useController-legacy8.js?v=1777008528","./ssl-legacy.js?v=1777008528","./useStore-legacy3.js?v=1777008528","./useController-legacy18.js?v=1777008528","./useMethod-legacy3.js?v=1777008528","./useController-legacy13.js?v=1777008528","./useController-legacy19.js?v=1777008528","./useMethod-legacy12.js?v=1777008528","./index-legacy192.js?v=1777008528","./useController-legacy20.js?v=1777008528"],function(t,l){"use strict";var o,u,a,i,c,s,p,f,d,v,y,m,g,w,b,h,_,j,x,P,O;return{setters:[function(e){o=e.c,u=e.X,a=e.cO,i=e.du,c=e.B,s=e.cN,p=e.dO},function(e){f=e.c,d=e.r,v=e.t,y=e.g,m=e.e,g=e.aB,w=e.x,b=e.o,h=e.j,_=e.C,j=e.p},function(e){x=e.e},function(e){P=e.a,O=e.o},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){t("default",f({__name:"index",setup:function(t,l){var f,T,F=l.expose,S=d(!1),A=o().panel,C=v(A.value).sitePath,E=y(function(){var e;return C.value?null===(e=C.value+"/")||void 0===e?void 0:e.replace(/\/\//g,"/"):"/www/wwwroot/"}),k=d({webname:"",path:"/www/wwwroot",ftp:!1,ps:"",port:80,ftp_username:"",ftp_password:""}),G=u({data:k.value,options:function(e){return y(function(){return e.value.hasOwnProperty("ftp")||(e.value.ftp=!1),[{type:"custom",render:function(t){return t.value.hasOwnProperty("webname")||(t.value.webname=""),m(c,{label:"绑定域名",prop:"webname"},{default:function(){return[m(g,{ref:"popover",placement:"top-start","popper-class":"green-tips-popover !p-0",title:"",width:"370",visible:S.value,"onUpdate:visible":function(e){return S.value=e},"trigger-keys":[],trigger:"focus"},{default:function(){return m("div",{class:"!p-[12px] bg-primary text-white"},[w("如需填写多个域名,请换行填写,每行一个域名,默认为80端口"),m("br",null,null),w("IP地址格式:192.168.1.199"),m("br",null,null),w("如另加端口格式为 www.domain.com:88"),m("br",null,null),w("ipv6格式:[2001:db8:85a3::8a2e:370:7334]:88")])},reference:function(){return m(a,{rows:6,resize:"none",width:"42rem",modelValue:e.value.webname,"onUpdate:modelValue":function(t){return e.value.webname=t},onInput:function(t){var n,r,l;"string"==typeof t&&(e.value.ps=t.split("\n")[0],e.value.path=(null===(n=E.value)||void 0===n?void 0:n.replace(/\/\//g,"/"))+(null===(r=t.split("\n")[0])||void 0===r||null===(r=r.replace(/:/g,"_"))||void 0===r?void 0:r.trim()),e.value.ftp_username=null===(l=t.split("\n")[0])||void 0===l||null===(l=l.toString())||void 0===l?void 0:l.replace(/\W/g,"_").substring(0,16),e.value.ftp_password=i(12))},onFocus:function(){S.value=!0},type:"textarea",placeholder:"如需填写多个域名,请换行填写,每行一个域名,默认为80端口\nIP地址格式:192.168.1.199\n如另加端口格式为 www.domain.com:88\nipv6格式:[2001:db8:85a3::8a2e:370:7334]:88"},null)}})]}})},key:"webname",rules:{webname:[s({message:"请输入域名",trigger:"blur"}),p()]}},{type:"input",label:"备注",key:"ps",attrs:{placeholder:"请输入备注,可为空",width:"42rem"}},x("根目录","path",{attrs:{width:"42rem",placeholder:"请输入根目录"},rules:[s({message:"请选择路径"})]},function(){O(e.value.path,function(t){e.value.path=t})}),{type:"select",label:"FTP",key:"ftp",options:[{label:"不创建",value:!1},{label:"创建",value:!0}],attrs:{style:"width: 16rem;"}}].concat(r(e.value.ftp?[{type:"custom",render:function(t){return t.value.hasOwnProperty("ftp_username")||(t.value.ftp_username="",t.value.ftp_password=""),m(c,{label:"FTP账号"},{default:function(){return[m("div",{class:"flex items-center mb-[12px]"},[m(c,{prop:"ftp_username"},{default:function(){return[m(a,{placeholder:"创建FTP账号",width:"16rem",modelValue:e.value.ftp_username,"onUpdate:modelValue":function(t){return e.value.ftp_username=t}},null)]}}),m(c,{label:"密码",class:"!mt-0",prop:"ftp_password"},{default:function(){return[m(a,{width:"16rem",placeholder:"FTP密码",modelValue:e.value.ftp_password,"onUpdate:modelValue":function(t){return e.value.ftp_password=t}},null)]}})]),m("span",{class:"text-tertiary text-small"},[w("创建站点的同时,为站点创建一个对应FTP帐户,并且FTP目录指向站点所在目录。")])]}})},rules:{ftp_username:[{validator:function(t,n,r){e.value.ftp?0===n.length?r(new Error("FTP用户名不能为空!")):/^[a-zA-Z0-9_]+$/g.test(n)?n.length<=3?r(new Error("FTP用户名长度错误,不能少于3个字符!")):r():r(new Error("FTP用户名只能包含字母、数字和下划线!")):r()},trigger:["blur","change"]}],ftp_password:[{validator:function(t,n,r){""===n&&e.value.ftp?r(new Error("FTP密码不能为空!")):r()},trigger:["blur","change"]}]}}]:[]))})},submit:(f=e().m(function t(n,r){return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,r();case 1:return e.n=2,P(n.value);case 2:return e.a(2,e.v)}},t)}),T=function(){var e=this,t=arguments;return new Promise(function(r,l){var o=f.apply(e,t);function u(e){n(o,r,l,u,a,"next",e)}function a(e){n(o,r,l,u,a,"throw",e)}u(void 0)})},function(e,t){return T.apply(this,arguments)})}),I=G.BtForm,V=G.submit;return b(function(){C.value&&Object.assign(k.value,{path:C.value})}),F({onConfirm:V}),function(e,t){return h(),_(j(I),{class:"p-2rem"})}}}))}}})}();