mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-01-20 22:36:49 +08:00
系统设置新增功能 1. 是否启用登录密码加密: 在许多现代系统中,登录密码加密是默认启用的,以确保用户密码的安全性。所以新增了一个系统配置项,允许管理员决定是否启用登录密码的加密传输。这一功能增强了用户密码的安全性,防止密码泄露风险。 2. UID登录(允许通过UID的方式登录验证): 引入UID(用户唯一标识符)登录方式,除了传统的用户名/邮箱/手机号登录外,用户还可以通过其UID进行登录验证,为系统访问提供另一种灵活的身份验证方式。 3. 用户在线时间更新时长: 管理员可以自定义更新用户在线时间的时间频率,这有助于更准确地反映用户的活跃状态,并对系统资源的使用进行优化。 4. 图片处理库类型: 系统新增了图片处理库类型的选择功能,允许管理员根据实际需求选择合适的图像处理库来处理缩略图和水印,以满足不同的性能和效果需求。 新增性能优化栏 1. 禁止浏览器缓冲: 通过此设置,管理员可以控制是否禁止浏览器对页面内容进行缓存。在某些场景下,禁用缓存可以提高页面的实时性和准确性。 2. 在线保持时间: 设置用户会话(session)的在线保持时间,即用户在不进行任何操作后,多久后会被视为离线。这有助于管理系统的会话资源,避免资源浪费。 3. 关闭session机制: 提供选项关闭系统的session管理机制。在某些特殊应用场景下,可能不需要使用session来跟踪用户状态,关闭session可以减少服务器负担,提高性能。 系统工具新增文件权限检查栏: 系统工具中新增了文件权限检查功能,帮助管理员快速识别和修复文件权限问题,确保系统的正常运行和数据安全。 优化提示消息框UI: 对系统的提示消息框进行了UI优化,使其更加美观、易用,提升了用户的使用体验。 压缩css、js代码优化前端性能 对前端的CSS和JS代码进行了压缩处理,减少了文件体积,加快了加载速度,从而提升了前端性能。
1 line
2.9 KiB
JavaScript
1 line
2.9 KiB
JavaScript
!function(e){var t=null,n=!1,c=null,u=!1,i=null,o=null,s=!1,l=null;function r(){n=!1}function a(){u&&(window.clearTimeout(o),u=!1,i=null)}function d(e){u||(u=!0,i=e.changedTouches[0],o=window.setTimeout(v,800))}function v(){u=!1;var e=i,t=document.createEvent("MouseEvent");t.initMouseEvent("mouseup",!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t),(t=document.createEvent("MouseEvent")).initMouseEvent("mousedown",!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,2,null),e.target.dispatchEvent(t),(t=document.createEvent("MouseEvent")).initMouseEvent("contextmenu",!0,!0,window,1,e.screenX+50,e.screenY+5,e.clientX+50,e.clientY+5,!1,!1,!1,!1,2,null),e.target.dispatchEvent(t),(t=document.createEvent("MouseEvent")).initMouseEvent("mouseup",!0,!0,window,1,e.screenX+50,e.screenY+5,e.clientX+50,e.clientY+5,!1,!1,!1,!1,2,null),e.target.dispatchEvent(t),s=!0,i=null}function E(e){var u=e.changedTouches[0],i="mousedown";simulatedEvent=document.createEvent("MouseEvent"),simulatedEvent.initMouseEvent(i,!0,!0,window,1,u.screenX,u.screenY,u.clientX,u.clientY,!1,!1,!1,!1,0,null),u.target.dispatchEvent(simulatedEvent),n?(window.clearTimeout(c),u.target==t?(t=null,n=!1,i="click",simulatedEvent=document.createEvent("MouseEvent"),simulatedEvent.initMouseEvent(i,!0,!0,window,1,u.screenX,u.screenY,u.clientX,u.clientY,!1,!1,!1,!1,0,null),u.target.dispatchEvent(simulatedEvent),i="dblclick",simulatedEvent=document.createEvent("MouseEvent"),simulatedEvent.initMouseEvent(i,!0,!0,window,1,u.screenX,u.screenY,u.clientX,u.clientY,!1,!1,!1,!1,0,null),u.target.dispatchEvent(simulatedEvent)):(t=u.target,n=!0,c=window.setTimeout(r,600),d(e))):(t=u.target,n=!0,c=window.setTimeout(r,600),d(e))}function h(e){return e.targetTouches&&e.targetTouches[0]?document.elementFromPoint(e.targetTouches[0].pageX-window.pageXOffset,e.targetTouches[0].pageY-window.pageYOffset):null}function m(c){var u="";if(!(c.touches.length>1)){switch(c.type){case"touchstart":if(e(c.changedTouches[0].target).is("select"))return;return E(c),c.preventDefault(),l=h(c),!1;case"touchmove":a(),u="mousemove",c.preventDefault(),l=h(c);break;case"touchend":if(s)return s=!1,c.preventDefault(),!1;a(),u="mouseup";break;default:return}var i=c.changedTouches[0],o=document.createEvent("MouseEvent");o.initMouseEvent(u,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),l.dispatchEvent(o),"mouseup"==u&&n&&i.target==t&&((o=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),l.dispatchEvent(o))}}e.extend(e.support,{touch:"ontouchend"in document}),e.fn.addTouch=function(){return e.support.touch&&this.each(function(e,t){t.addEventListener("touchstart",m,!1),t.addEventListener("touchmove",m,!1),t.addEventListener("touchend",m,!1),t.addEventListener("touchcancel",m,!1)}),this}}(jQuery); |