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/add-net-dialog-legacy.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var r,n={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(r){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),u=new I(n||[]);return i(a,"_invoke",{value:P(e,r,u)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var d="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,l,(function(){return this}));var j=Object.getPrototypeOf,O=j&&j(j(U([])));O&&O!==o&&a.call(O,l)&&(x=O);var V=_.prototype=b.prototype=Object.create(x);function L(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function E(t,r){function n(o,i,u,l){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==e(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,u,l)}),(function(e){n("throw",e,u,l)})):r.resolve(f).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(a,a):a()}})}function P(e,t,n){var o=d;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:r,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var l=k(u,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var c=h(e,t,n);if("normal"===c.type){if(o=n.done?y:v,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=t.method,o=e.iterator[n];if(o===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function U(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(a.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=_,i(V,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,s,"GeneratorFunction")),e.prototype=Object.create(V),e},n.awrap=function(e){return{__await:e}},L(E.prototype),f(E.prototype,c,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var i=new E(p(e,t,r,o),a);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(V),f(V,s,"Generator"),f(V,l,(function(){return this})),f(V,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=U,I.prototype={constructor:I,reset:function(e){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(N),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return u.type="throw",u.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:U(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function a(e,t,r,n,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void r(e)}u.done?t(l):Promise.resolve(l).then(n,o)}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./useStore-legacy4.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],(function(e,r){"use strict";var o,i,u,l,c,s,f,p,h,d,v,m,y,g,b,w,_,x,j,O,V,L,E,P,k,S;return{setters:[function(e){o=e.c,i=e.r,u=e.h,l=e.k,c=e.l,s=e.e,f=e.x,p=e.p,h=e.q,d=e.F,v=e.v,m=e.C,y=e.D,g=e.M,b=e.N,w=e.a7,_=e.aj,x=e.a4},function(e){j=e.dq,O=e.M,V=e.I,L=e.j,E=e.a6,P=e.e},function(e){k=e.g,S=e.bo},null],execute:function(){var r={class:"p-[1.6rem]"},N={class:"ml-[1rem] text-[#20a53a] w-[16rem] select-none"},I={class:"flex items-center mb-[1.5rem]"},U={class:"flex items-center mb-[1.5rem]"},G=o({__name:"add-net-dialog",props:{compData:{default:function(){return{}}}},emits:["close"],setup:function(e,o){var P=o.expose,G=o.emit,q=i(!1),F=k().refs.isRefreshNetworkList,T=u({name:"",driver:"bridge",options:"",subnet:"",gateway:"",iprange:"",labels:"",remark:"",subnet_v6:"",gateway_v6:""});i(!1);var D=i(),C=i(!1),A={name:[{required:!0,message:"请输入网络名",trigger:["blur"]}],subnet:[{required:!1,validator:function(e,t,r){return M(t,r,"请输入正确的ipv4子网")},trigger:["blur"]}],gateway:[{required:!1,validator:function(e,t,r){return M(t,r,"请输入正确的ipv4网关")},trigger:["blur"]}],iprange:[{required:!1,validator:function(e,t,r){return M(t,r,"请输入正确的IP范围")},trigger:["blur"]}]},M=function(e,t,r){""===e||j(e)?t():t(new Error(r))},R=[{label:"bridge",value:"bridge"},{label:"ipvlan",value:"ipvlan"},{label:"macvlan",value:"macvlan"},{label:"overlay",value:"overlay"}],Y=function(){var e,r=(e=t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,C.value&&q){e.next=6;break}T.subnet_v6="",T.gateway_v6="",e.next=12;break;case 6:if(""!==T.subnet_v6){e.next=9;break}return O.error("请输入正确的ipv6子网"),e.abrupt("return");case 9:if(""!==T.gateway_v6){e.next=12;break}return O.error("请输入正确的ipv6网关"),e.abrupt("return");case 12:return e.next=14,D.value.validate();case 14:V({request:S({data:JSON.stringify(n(n({},T),{},{status:C.value?1:0}))}),message:!0,loading:"正在设置网络...",success:function(e){e.status&&(F.value=!0,G("close"))}}),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),console.log(e.t0);case 20:case"end":return e.stop()}}),e,null,[[0,17]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,l,"next",e)}function l(e){a(i,n,o,u,l,"throw",e)}u(void 0)}))});return function(e){return r.apply(this,arguments)}}();return P({onConfirm:Y}),function(e,t){var n=L,o=w,a=E,i=_,u=x;return l(),c("div",r,[s(u,{ref_key:"cmdFormRef",ref:D,model:p(T),rules:A,onSubmit:t[10]||(t[10]=b((function(){}),["prevent"]))},{default:f((function(){return[s(o,{prop:"name",label:"网络名"},{default:f((function(){return[s(n,{modelValue:p(T).name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return p(T).name=e}),width:"40rem",placeholder:"请输入网络名"},null,8,["modelValue"])]})),_:1}),h("div",{class:"flex items-center cursor-pointer pl-[10rem] my-[2rem] px-[2rem]",onClick:t[1]||(t[1]=function(e){return q.value=!p(q)})},[h("i",{class:d(p(q)?"svgtofont-el-arrow-down":"svgtofont-el-arrow-right")},null,2),h("div",N,v("更多设置,".concat(p(q)?"点击收回":"点击查看")),1)]),m(s(o,{prop:"path",label:"设备"},{default:f((function(){return[s(a,{modelValue:p(T).driver,"onUpdate:modelValue":t[2]||(t[2]=function(e){return p(T).driver=e}),options:R,class:"!w-[40rem]"},null,8,["modelValue"])]})),_:1},512),[[y,p(q)]]),m(h("div",I,[s(o,{prop:"subnet",class:"!mb-0",label:"ipv4子网"},{default:f((function(){return[s(n,{modelValue:p(T).subnet,"onUpdate:modelValue":t[3]||(t[3]=function(e){return p(T).subnet=e}),width:"15rem",placeholder:"例:124.42.0.0/16"},null,8,["modelValue"])]})),_:1}),s(o,{id:"two",prop:"gateway",label:"ipv4网关",class:"!mb-[0rem]"},{default:f((function(){return[s(n,{modelValue:p(T).gateway,"onUpdate:modelValue":t[4]||(t[4]=function(e){return p(T).gateway=e}),width:"15rem",placeholder:"例:124.42.0.254"},null,8,["modelValue"])]})),_:1})],512),[[y,p(q)]]),m(s(o,{prop:"iprange",label:"ipv4范围",class:"!mb-[1rem]"},{default:f((function(){return[s(n,{modelValue:p(T).iprange,"onUpdate:modelValue":t[5]||(t[5]=function(e){return p(T).iprange=e}),width:"40rem",placeholder:"例:124.42.0.0/24"},null,8,["modelValue"])]})),_:1},512),[[y,p(q)]]),m(s(o,{label:"开启IPV6","label-width":"8rem"},{default:f((function(){return[s(i,{modelValue:p(C),"onUpdate:modelValue":t[6]||(t[6]=function(e){return g(C)?C.value=e:null})},null,8,["modelValue"])]})),_:1},512),[[y,p(q)]]),m(h("div",U,[s(o,{class:"!mb-0",label:"IPV6子网"},{default:f((function(){return[s(n,{modelValue:p(T).subnet_v6,"onUpdate:modelValue":t[7]||(t[7]=function(e){return p(T).subnet_v6=e}),width:"15rem",placeholder:"例:2001:db8::/48"},null,8,["modelValue"])]})),_:1}),s(o,{label:"IPV6网关","label-width":"8rem",class:"!mb-[0rem]"},{default:f((function(){return[s(n,{modelValue:p(T).gateway_v6,"onUpdate:modelValue":t[8]||(t[8]=function(e){return p(T).gateway_v6=e}),width:"15rem",placeholder:"例:2001:db8::1"},null,8,["modelValue"])]})),_:1})],512),[[y,p(C)&&p(q)]]),m(s(o,{prop:"path",label:"备注"},{default:f((function(){return[s(n,{modelValue:p(T).remark,"onUpdate:modelValue":t[9]||(t[9]=function(e){return p(T).remark=e}),type:"textarea",width:"40rem",placeholder:"备注"},null,8,["modelValue"])]})),_:1},512),[[y,p(q)]])]})),_:1},8,["model"])])}}});e("default",P(G,[["__scopeId","data-v-98468a83"]]))}}}))}();