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-file-monitor-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(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(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)?r(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 r(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 n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function u(r,n,a,i){var u=n&&n.prototype instanceof l?n:l,f=Object.create(u.prototype);return o(f,"_invoke",function(r,n,o){var a,i,u,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,i=0,u=t,p.n=r,c}};function d(r,n){for(i=r,u=n,e=0;!s&&l&&!o&&e<f.length;e++){var o,a=f[e],d=p.p,y=a[2];r>3?(o=y===n)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&d<a[1])?(i=0,p.v=n,p.n=a[1]):d<y&&(o=r<3||a[0]>n||n>y)&&(a[4]=r,a[5]=n,p.n=y,i=0))}if(o||r>1)return c;throw s=!0,n}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,y),i=f,u=y;(e=i<2?t:u)||!s;){a||(i?i<3?(i>1&&(p.n=-1),d(i,u)):p.n=u:p.v=u);try{if(l=2,a){if(i||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,i<2&&(i=0)}else 1===i&&(e=a.return)&&e.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((e=(s=p.n<0)?u:r.call(n,p))!==c)break}catch(e){a=t,i=1,u=e}finally{l=1}}return{value:e,done:s}}}(r,a,i),!0),f}var c={};function l(){}function f(){}function s(){}e=Object.getPrototypeOf;var p=[][a]?e(e([][a]())):(o(e={},a,function(){return this}),e),d=s.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,o(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return f.prototype=s,o(d,"constructor",s),o(s,"constructor",f),f.displayName="GeneratorFunction",o(s,i,"GeneratorFunction"),o(d),o(d,i,"Generator"),o(d,a,function(){return this}),o(d,"toString",function(){return"[object Generator]"}),(n=function(){return{w:u,m:y}})()}function o(t,e,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}o=function(t,e,r,n){function i(e,r){o(t,e,function(t){return this._invoke(e,r,t)})}e?a?a(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},o(t,e,r,n)}function a(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 i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function u(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 c(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528","./firewall-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528"],function(t,r){"use strict";var o,a,u,l,f,s,p,d,y,m,b,v,h,g,j,O,w,S,_,P,D,x,k;return{setters:[function(t){o=t.k,a=t.cP},function(t){u=t.c,l=t.H,f=t.r,s=t.g,p=t.o,d=t.j,y=t.k,m=t.e,b=t.v,v=t.p,h=t.F,g=t.B,j=t.q,O=t.s,w=t.ad,S=t.U,_=t.ag,P=t.ab},function(t){D=t._},function(t){x=t.az},function(t){k=t.w},null,null],execute:function(){var r={class:"p-20px"};t("default",u({__name:"add-file-monitor",props:{compData:{default:function(){}}},setup:function(t,u){var E=u.expose,T=t,A=l({path:"",type:"dir",domain:T.compData.name,actions:[]}),G=f(),V=s(function(){return"dir"===A.type}),F=[{name:"read",title:"读取"},{name:"del",title:"删除"},{name:"reit",title:"修改/增加"}],q={path:[{required:!0,message:"请选择监测路径",trigger:"blur"}],actions:[{required:!0,message:"请选择告警操作",trigger:"change"}]},C=function(){T.compData.row||k({type:"all",path:A.path,change:function(t,e){A.path=t,A.type=e,A.actions="dir"===e?["read"]:["read","del","reit"]}})},I=function(){var t,e=(t=n().m(function t(e){var r,a;return n().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,G.value.validate();case 1:return r=i({},A),a=[0,0,0,0],A.actions.includes("read")&&(a[0]=1),A.actions.includes("del")&&(a[1]=1),A.actions.includes("reit")&&(a[2]=1,a[3]=1),r.actions=a.join(","),t.n=2,o({loading:"正在添加文件监视器,请稍后...",request:x(!!T.compData.row,i({},r)),message:!0,success:function(t){t.status&&(T.compData.refresh&&T.compData.refresh(),e())}});case 2:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){c(a,n,o,i,u,"next",t)}function u(t){c(a,n,o,i,u,"throw",t)}i(void 0)})});return function(t){return e.apply(this,arguments)}}();return p(function(){return function(){if(T.compData.path&&(A.path=T.compData.path.replace("//","/")),T.compData.row){var t=["del","read","reit"],r=[];Object.entries(T.compData.row).forEach(function(n){var o=e(n,2),a=o[0],i=o[1];t.includes(a)&&Number(i)&&r.push(a)}),A.type=T.compData.row.type,A.actions=r}}()}),E({onConfirm:I}),function(t,e){var n=D,o=w,i=S,u=_,c=P,l=a;return d(),y("div",r,[m(c,{model:v(A),ref_key:"addFileMonitorRef",ref:G,rules:q},{default:b(function(){return[m(o,{prop:"path",label:"监测路径"},{default:b(function(){return[m(n,{modelValue:v(A).path,"onUpdate:modelValue":e[0]||(e[0]=function(t){return v(A).path=t}),class:"!w-[28rem]",icon:"icon-file_mode",onIconClick:C,disabled:!!T.compData.row,onChangePassive:e[1]||(e[1]=function(t){A.path=A.path.replace(/\s+/g,"")}),placeholder:"请选择文件目录"},null,8,["modelValue","disabled"])]}),_:1}),m(o,{label:"告警操作",prop:"actions"},{default:b(function(){return[m(u,{modelValue:v(A).actions,"onUpdate:modelValue":e[2]||(e[2]=function(t){return v(A).actions=t})},{default:b(function(){return[(d(),y(h,null,g(F,function(t,e){return m(i,{key:e,label:t.name,disabled:v(V)&&e>0},{default:b(function(){return[j("div",null,[j("span",null,O(t.title),1)])]}),_:2},1032,["label","disabled"])}),64))]}),_:1},8,["modelValue"])]}),_:1})]}),_:1},8,["model"]),m(l,{options:[{content:"目录暂时只支持读取告警操作"}],class:"ml-20px mt-20px","list-style":"disc"})])}}}))}}})}();