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/log-cut-config-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={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(r){p=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof _?e:_,i=Object.create(o.prototype),u=new T(n||[]);return a(i,"_invoke",{value:z(t,r,u)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var m="suspendedStart",y="suspendedYield",d="executing",v="completed",g={};function _(){}function b(){}function w(){}var x={};p(x,l,(function(){return this}));var L=Object.getPrototypeOf,k=L&&L(L(P([])));k&&k!==o&&i.call(k,l)&&(x=k);var E=w.prototype=_.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function N(e,r){function n(o,a,u,l){var s=h(e[o],e,a);if("throw"!==s.type){var c=s.arg,p=c.value;return p&&"object"==t(p)&&i.call(p,"__await")?r.resolve(p.__await).then((function(t){n("next",t,u,l)}),(function(t){n("throw",t,u,l)})):r.resolve(p).then((function(t){c.value=t,u(c)}),(function(t){return n("throw",t,u,l)}))}l(s.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function z(t,e,n){var o=m;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:r,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var l=O(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===m)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=h(t,e,n);if("normal"===s.type){if(o=n.done?v:y,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function O(t,e){var n=e.method,o=t.iterator[n];if(o===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 i=h(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function S(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 V(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=p(w,c,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,p(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},n.awrap=function(t){return{__await:t}},j(N.prototype),p(N.prototype,s,(function(){return this})),n.AsyncIterator=N,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new N(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(E),p(E,c,"Generator"),p(E,l,(function(){return this})),p(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=P,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(V),!t)for(var e in this)"t"===e.charAt(0)&&i.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,o){return u.type="throw",u.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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),V(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;V(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(t,e,r,n,o,i,a){try{var u=t[i](a),l=u.value}catch(t){return void r(t)}u.done?e(l):Promise.resolve(l).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,l,"next",t)}function l(t){r(a,o,i,u,l,"throw",t)}u(void 0)}))}}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(t,r){"use strict";var o,i,a,u,l,s,c,p,f,h,m,y,d,v,g,_,b,w,x,L,k,E,j;return{setters:[function(t){o=t.c,i=t.r,a=t.h,u=t.o,l=t.k,s=t.l,c=t.e,p=t.x,f=t.y,h=t.q,m=t.p,y=t.C,d=t.D,v=t.N,g=t.a7,_=t.a4},function(t){b=t.ak,w=t.M,x=t.I,L=t.W,k=t.j,E=t.e},function(t){j=t.bb},null],execute:function(){var r={class:"container-dialog"},N={class:"flex items-center"},z={class:"tips mt-[1.6rem] list-square ml-[2rem]"},O={class:"mt-[.5rem]"},S=o({__name:"log-cut-config",props:{compData:{default:function(){return{}}}},emits:["close"],setup:function(t,o){var E=o.expose,S=o.emit,V=t,T=S,P=i({}),G=a({split_type:"size",split_hour:2,split_minute:0,save:"180",split_size:"10.00"}),q=i(),F={split_hour:[{required:!0,message:"请输入小时",trigger:"blur"}],split_minute:[{required:!0,message:"请输入分钟",trigger:"blur"}],save:[{required:!0,message:"请输入保留数量",trigger:"blur"}],split_size:[{required:!0,message:"请输入日志大小",trigger:"blur"}]},D=[{value:"size",label:"按日志大小"},{value:"day",label:"按执行时间"}],I=function(){var t=n(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:b("Path","/var/lib/docker/containers/history_logs"),window.location.href=window.location.origin+"/files";case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();u((function(){P.value=V.compData.data.value,G.split_type=P.value.split_type,G.split_size=P.value.split_size,G.split_hour=P.value.split_hour,G.split_minute=P.value.split_minute,G.save=P.value.save}));var U=function(){var t=n(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("size"!==G.split_type){t.next=6;break}if(!(Number(G.split_hour)<0)){t.next=4;break}return w.error("请填写正确的大小"),t.abrupt("return");case 4:t.next=12;break;case 6:if(!(Number(G.split_hour)>23||Number(G.split_hour)<0)){t.next=9;break}return w.error("请填写正确的小时"),t.abrupt("return");case 9:if(!(Number(G.split_minute)>59||Number(G.split_minute)<0)){t.next=12;break}return w.error("请填写正确的分钟"),t.abrupt("return");case 12:if(!(Number(G.save)>1800||Number(G.save)<0)){t.next=15;break}return w.error("请填写正确的保留份数(1-1800)"),t.abrupt("return");case 15:x({loading:"正在设置...",request:j({data:JSON.stringify({pid:V.compData.id,type:"add",log_path:V.compData.path,split_type:G.split_type,split_size:G.split_size,split_hour:G.split_hour,split_minute:G.split_minute,save:G.save})}),message:!0,success:function(t){t.status&&T("close")}});case 16:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return E({onConfirm:U}),function(t,e){var n=g,o=L,i=k,a=_;return l(),s("div",r,[c(a,{ref_key:"manualFormRef",ref:q,size:"small",model:m(G),rules:F,class:"relative w-full","label-position":"right",onSubmit:e[5]||(e[5]=v((function(){}),["prevent"]))},{default:p((function(){return[c(n,{prop:"name",label:"切割路径"},{default:p((function(){return[e[6]||(e[6]=f(" /var/lib/docker/containers/history_logs ")),h("span",{class:"bt-link text-[1.2rem] ml-[1rem]",onClick:I},"打开目录")]})),_:1}),c(n,{prop:"split_type",label:"切割方式"},{default:p((function(){return[c(o,{modelValue:m(G).split_type,"onUpdate:modelValue":e[0]||(e[0]=function(t){return m(G).split_type=t}),options:D},null,8,["modelValue"])]})),_:1}),y(c(n,{prop:"split_hour",label:"执行时间"},{default:p((function(){return[h("div",N,[c(i,{prependText:"每天",type:"number",min:0,max:23,modelValue:m(G).split_hour,"onUpdate:modelValue":e[1]||(e[1]=function(t){return m(G).split_hour=t}),class:"!w-[18rem] mr-[1rem]",textType:"时"},{prepend:p((function(){return e[7]||(e[7]=[f("每天")])})),append:p((function(){return e[8]||(e[8]=[f("时")])})),_:1},8,["modelValue"]),c(n,{prop:"split_minute",class:"!mb-0",label:""},{default:p((function(){return[c(i,{modelValue:m(G).split_minute,"onUpdate:modelValue":e[2]||(e[2]=function(t){return m(G).split_minute=t}),class:"!w-[14rem]",textType:"分",type:"number",min:0,max:59},{append:p((function(){return e[9]||(e[9]=[f("分")])})),_:1},8,["modelValue"])]})),_:1})])]})),_:1},512),[[d,"day"===m(G).split_type]]),y(c(n,{prop:"split_size",label:"日志大小"},{default:p((function(){return[c(i,{modelValue:m(G).split_size,"onUpdate:modelValue":e[3]||(e[3]=function(t){return m(G).split_size=t}),class:"!w-[15rem]",textType:"MB",type:"number",min:.1},{append:p((function(){return e[10]||(e[10]=[f("MB")])})),_:1},8,["modelValue"])]})),_:1},512),[[d,"size"===m(G).split_type]]),c(n,{label:"保留最新",prop:"save"},{default:p((function(){return[c(i,{modelValue:m(G).save,"onUpdate:modelValue":e[4]||(e[4]=function(t){return m(G).save=t}),class:"!w-[12rem]",textType:"份"},{append:p((function(){return e[11]||(e[11]=[f("份")])})),_:1},8,["modelValue"])]})),_:1})]})),_:1},8,["model"]),h("ul",z,[y(h("li",null,"每5分钟执行一次",512),[[d,"day"===m(G).split_type]]),y(h("li",O,"【日志大小】:日志文件大小超过指定大小时进行切割日志文件",512),[[d,"size"===m(G).split_type]]),e[12]||(e[12]=h("li",{class:"mt-[.5rem]"},"【保留最新】:保留最新的日志文件,超过指定数量时,将自动删除旧的日志文件",-1))])])}}});t("default",E(S,[["__scopeId","data-v-fb4e8f61"]]))}}}))}();