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/time-config-legacy.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 t,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function a(e,o,u,i){var a=o&&o.prototype instanceof c?o:c,s=Object.create(a.prototype);return n(s,"_invoke",function(e,n,o){var u,i,a,c=0,s=o||[],f=!1,v={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return u=e,i=0,a=t,v.n=n,l}};function m(e,n){for(i=e,a=n,r=0;!f&&c&&!o&&r<s.length;r++){var o,u=s[r],m=v.p,p=u[2];e>3?(o=p===n)&&(a=u[(i=u[4])?5:(i=3,3)],u[4]=u[5]=t):u[0]<=m&&((o=e<2&&m<u[1])?(i=0,v.v=n,v.n=u[1]):m<p&&(o=e<3||u[0]>n||n>p)&&(u[4]=e,u[5]=n,v.n=p,i=0))}if(o||e>1)return l;throw f=!0,n}return function(o,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&m(s,p),i=s,a=p;(r=i<2?t:a)||!f;){u||(i?i<3?(i>1&&(v.n=-1),m(i,a)):v.n=a:v.v=a);try{if(c=2,u){if(i||(o="next"),r=u[o]){if(!(r=r.call(u,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,i<2&&(i=0)}else 1===i&&(r=u.return)&&r.call(u),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);u=t}else if((r=(f=v.n<0)?a:e.call(n,v))!==l)break}catch(r){u=t,i=1,a=r}finally{c=1}}return{value:r,done:f}}}(e,u,i),!0),s}var l={};function c(){}function s(){}function f(){}r=Object.getPrototypeOf;var v=[][u]?r(r([][u]())):(n(r={},u,function(){return this}),r),m=f.prototype=c.prototype=Object.create(v);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return s.prototype=f,n(m,"constructor",f),n(f,"constructor",s),s.displayName="GeneratorFunction",n(f,i,"GeneratorFunction"),n(m),n(m,i,"Generator"),n(m,u,function(){return this}),n(m,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:p}})()}function n(e,t,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}n=function(e,t,r,o){function i(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?u?u(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},n(e,t,r,o)}function t(e,n,t,r,o,u,i){try{var a=e[u](i),l=a.value}catch(e){return void t(e)}a.done?n(l):Promise.resolve(l).then(r,o)}System.register(["./base-lib-legacy.js?v=1777008528","./index-legacy190.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./useStore-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./config-legacy.js?v=1777008528"],function(n,r){"use strict";var o,u,i,a,l,c,s,f,v,m,p,d,b,y,g,h,_,j,w;return{setters:[function(e){o=e.c,u=e.r,i=e.H,a=e.o,l=e.j,c=e.k,s=e.e,f=e.v,v=e.q,m=e.p,p=e.Q,d=e.J,b=e.K,y=e.P,g=e.ad,h=e.ab},function(e){_=e.B},function(e){j=e.W},function(e){w=e.g},null,null],execute:function(){var r={class:"p-20px"},x={class:"flex items-center"},O={class:"ml-10px flex items-center"};n("default",o({__name:"time-config",setup:function(n,o){var P=o.expose,S=w(),k=S.refs.panelConfig,G=S.saveConfig,T=u(),V=i({time:5}),C=u([{num:43200,label:"12小时",value:"12小时"},{num:86400,label:"24小时",value:"24小时"},{num:259200,label:"72小时",value:"72小时"},{num:604800,label:"7天",value:"7天"},{num:2592e3,label:"30天",value:"30天"},{num:0,label:"自定义",value:"自定义"}]),E=function(e){if(T.value=e,"自定义"===e)V.time=5;else{var n=C.value.find(function(n){return n.label===e})||{num:86400};V.time=Number(n.num)/60}},F=function(){var n,r=(n=e().m(function n(t){var r,o;return e().w(function(e){for(;;)switch(e.n){case 0:return r=0,r="自定义"===T.value?60*V.time:null===(o=C.value.find(function(e){return e.label===T.value}))||void 0===o?void 0:o.num,e.n=1,G("正在设置超时时间,请稍候...",{session_timeout:r});case 1:t();case 2:return e.a(2)}},n)}),function(){var e=this,r=arguments;return new Promise(function(o,u){var i=n.apply(e,r);function a(e){t(i,o,u,a,l,"next",e)}function l(e){t(i,o,u,a,l,"throw",e)}a(void 0)})});return function(e){return r.apply(this,arguments)}}();return a(function(){var e;e=k.value.session_timeout,C.value.filter(function(e){return"自定义"!==e.label}).map(function(e){return e.label}).includes(e)?T.value=k.value.session_timeout:(T.value="自定义",V.time=k.value.session_timeout_source/60)}),P({onConfirm:F}),function(e,n){var t=j,o=_,u=g,i=h;return l(),c("div",r,[s(i,null,{default:f(function(){return[s(u,{label:"超时时间"},{default:f(function(){return[v("div",x,[s(t,{modelValue:m(T),"onUpdate:modelValue":n[0]||(n[0]=function(e){return p(T)?T.value=e:null}),options:m(C),class:"!w-[14rem]",onChange:E},null,8,["modelValue","options"]),d(v("div",O,[s(o,{class:"!w-[10rem]",modelValue:m(V).time,"onUpdate:modelValue":n[1]||(n[1]=function(e){return m(V).time=e}),"controls-position":"right",min:5,step:1,onKeyup:n[2]||(n[2]=y(function(e){return n=e,t=window.event?n.keyCode:n.which,void([189,190,109,110].includes(t)&&(n.target.value=""));var n,t},["native"]))},null,8,["modelValue"]),n[3]||(n[3]=v("span",{class:"ml-10px inline-block"},"分钟",-1))],512),[[b,"自定义"==m(T)]])])]}),_:1})]}),_:1}),n[4]||(n[4]=v("div",{class:"mt-20px text-danger"},"注意:超时时间超过一天可能存在安全风险。",-1))])}}}))}}})}();