mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-20 22:11:11 -04:00
fixed minify problem with new library #7107
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
6467947904
commit
e47626a688
2
public/scripts/agent-rdp-0.0.1-min.js
vendored
2
public/scripts/agent-rdp-0.0.1-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/agent-redir-rtc-0.1.0-min.js
vendored
2
public/scripts/agent-redir-rtc-0.1.0-min.js
vendored
@ -1 +1 @@
|
|||||||
var CreateKvmDataChannel=function(e,t,n){var o={},l=(((o.m=t).parent=o).webchannel=e,o.State=0,o.protocol=t.protocol,o.onStateChanged=null,o.onControlMsg=null,o.debugmode=0,o.keepalive=n,o.rtcKeepAlive=null,o.Start=function(){1==o.debugmode&&console.log("start"),o.xxStateChange(3),o.webchannel.onmessage=o.xxOnMessage,o.rtcKeepAlive=setInterval(o.xxSendRtcKeepAlive,3e4)},new FileReader),i=!1,s=[];return l.readAsBinaryString?l.onload=function(e){o.xxOnSocketData(e.target.result),0==s.length?i=!1:l.readAsBinaryString(new Blob([s.shift()]))}:l.readAsArrayBuffer&&(l.onloadend=function(e){o.xxOnSocketData(e.target.result),0==s.length?i=!1:l.readAsArrayBuffer(s.shift())}),o.xxOnMessage=function(e){if("string"==typeof e.data)null!=o.onControlMsg&&o.onControlMsg(e.data);else if("object"==typeof e.data)if(1==i)s.push(e.data);else if(l.readAsBinaryString)i=!0,l.readAsBinaryString(new Blob([e.data]));else if(f.readAsArrayBuffer)i=!0,l.readAsArrayBuffer(e.data);else{for(var t="",n=new Uint8Array(e.data),a=n.byteLength,r=0;r<a;r++)t+=String.fromCharCode(n[r]);o.xxOnSocketData(t)}else o.xxOnSocketData(e.data)},o.xxOnSocketData=function(e){if(e){if("object"==typeof e){for(var t="",n=new Uint8Array(e),a=n.byteLength,r=0;r<a;r++)t+=String.fromCharCode(n[r]);e=t}else if("string"!=typeof e)return;return o.m.ProcessData(e)}},o.sendCtrlMsg=function(e){"string"==typeof e&&(o.webchannel.send(e),null!=o.keepalive)&&o.keepalive.sendKeepAlive()},o.send=function(e){if("string"==typeof e){for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);e=t}o.webchannel.send(e)},o.xxStateChange=function(e){o.State!=e&&(o.State=e,o.m.xxStateChange(o.State),null!=o.onStateChanged)&&o.onStateChanged(o,o.State)},o.Stop=function(){1==o.debugmode&&console.log("stop"),null!=o.rtcKeepAlive&&(clearInterval(o.rtcKeepAlive),o.rtcKeepAlive=null),o.xxStateChange(0)},o.xxSendRtcKeepAlive=function(){o.sendCtrlMsg(JSON.stringify({action:"ping"}))},o}
|
var CreateKvmDataChannel=function(e,t,n){var a={};a.m=t,t.parent=a,a.webchannel=e,a.State=0,a.protocol=t.protocol,a.onStateChanged=null,a.onControlMsg=null,a.debugmode=0,a.keepalive=n,a.rtcKeepAlive=null,a.Start=function(){1==a.debugmode&&console.log("start"),a.xxStateChange(3),a.webchannel.onmessage=a.xxOnMessage,a.rtcKeepAlive=setInterval(a.xxSendRtcKeepAlive,3e4)};var r=new FileReader,o=!1,l=[];return r.readAsBinaryString?r.onload=function(e){a.xxOnSocketData(e.target.result),0==l.length?o=!1:r.readAsBinaryString(new Blob([l.shift()]))}:r.readAsArrayBuffer&&(r.onloadend=function(e){a.xxOnSocketData(e.target.result),0==l.length?o=!1:r.readAsArrayBuffer(l.shift())}),a.xxOnMessage=function(e){if("string"!=typeof e.data)if("object"==typeof e.data){if(1==o)return void l.push(e.data);if(r.readAsBinaryString)o=!0,r.readAsBinaryString(new Blob([e.data]));else if(f.readAsArrayBuffer)o=!0,r.readAsArrayBuffer(e.data);else{for(var t="",n=new Uint8Array(e.data),i=n.byteLength,s=0;s<i;s++)t+=String.fromCharCode(n[s]);a.xxOnSocketData(t)}}else a.xxOnSocketData(e.data);else null!=a.onControlMsg&&a.onControlMsg(e.data)},a.xxOnSocketData=function(e){if(e){if("object"==typeof e){for(var t="",n=new Uint8Array(e),r=n.byteLength,o=0;o<r;o++)t+=String.fromCharCode(n[o]);e=t}else if("string"!=typeof e)return;return a.m.ProcessData(e)}},a.sendCtrlMsg=function(e){"string"==typeof e&&(a.webchannel.send(e),null!=a.keepalive&&a.keepalive.sendKeepAlive())},a.send=function(e){if("string"==typeof e){for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);e=t}a.webchannel.send(e)},a.xxStateChange=function(e){a.State!=e&&(a.State=e,a.m.xxStateChange(a.State),null!=a.onStateChanged&&a.onStateChanged(a,a.State))},a.Stop=function(){1==a.debugmode&&console.log("stop"),null!=a.rtcKeepAlive&&(clearInterval(a.rtcKeepAlive),a.rtcKeepAlive=null),a.xxStateChange(0)},a.xxSendRtcKeepAlive=function(){a.sendCtrlMsg(JSON.stringify({action:"ping"}))},a}
|
2
public/scripts/agent-redir-ws-0.1.1-min.js
vendored
2
public/scripts/agent-redir-ws-0.1.1-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-0.2.0-min.js
vendored
2
public/scripts/amt-0.2.0-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-desktop-0.0.2-min.js
vendored
2
public/scripts/amt-desktop-0.0.2-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-ider-ws-0.0.1-min.js
vendored
2
public/scripts/amt-ider-ws-0.0.1-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-redir-ws-0.1.0-min.js
vendored
2
public/scripts/amt-redir-ws-0.1.0-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-script-0.2.0-min.js
vendored
2
public/scripts/amt-script-0.2.0-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-setupbin-0.1.0-min.js
vendored
2
public/scripts/amt-setupbin-0.1.0-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-terminal-0.0.2-min.js
vendored
2
public/scripts/amt-terminal-0.0.2-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-wsman-0.2.0-min.js
vendored
2
public/scripts/amt-wsman-0.2.0-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/amt-wsman-ws-0.2.0-min.js
vendored
2
public/scripts/amt-wsman-ws-0.2.0-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/common-0.0.1-min.js
vendored
2
public/scripts/common-0.0.1-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/meshcentral-min.js
vendored
2
public/scripts/meshcentral-min.js
vendored
@ -1 +1 @@
|
|||||||
var MeshServerCreateControl=function(t,e){var o={State:0,connectstate:0,pingTimer:null};return o.authCookie=e,o.xxStateChange=function(e,t){var n;o.State!=e&&(n=o.State,o.State=e,o.onStateChanged)&&o.onStateChanged(o,o.State,n,t)},o.Start=function(){var e;0==o.connectstate&&(o.connectstate=0,e=window.location.protocol.replace("http","ws")+"//"+window.location.host+t+"control.ashx"+(urlargs.key?"?key="+urlargs.key:""),o.authCookie&&""!=o.authCookie&&(e+="?moreargs=1"),o.socket=new WebSocket(e),o.socket.onopen=function(e){o.connectstate=1,o.authCookie&&""!=o.authCookie&&o.send({action:"urlargs",args:{auth:o.authCookie}})},o.socket.onmessage=o.xxOnMessage,o.socket.onclose=function(e){o.Stop(e.code)},o.xxStateChange(1,0),null!=o.pingTimer&&clearInterval(o.pingTimer),o.pingTimer=setInterval(function(){o.send({action:"ping"})},29e3))},o.Stop=function(e){o.connectstate=0,o.socket&&(o.socket.close(),delete o.socket),null!=o.pingTimer&&(clearInterval(o.pingTimer),o.pingTimer=null),o.xxStateChange(0,e)},o.xxOnMessage=function(e){var t;1==o.State&&o.xxStateChange(2);try{t=JSON.parse(e.data)}catch(e){return}"object"==typeof t&&"pong"!=t.action&&("ping"==t.action&&o.send({action:"pong"}),"close"==t.action?(t.msg&&console.log(t.msg),o.Stop(t.cause)):(1==o.trace?console.log("RECV",t):2==o.trace&&console.log("RECV",JSON.stringify(t)),o.onMessage&&o.onMessage(o,t)))},o.send=function(e){null!=o.socket&&1==o.connectstate&&("ping"!=e.action&&(1==o.trace?console.log("SEND",e):2==o.trace&&console.log("SEND",JSON.stringify(e))),o.socket.send(JSON.stringify(e)))},o}
|
var MeshServerCreateControl=function(e,t){var n={State:0,connectstate:0,pingTimer:null};return n.authCookie=t,n.xxStateChange=function(e,t){if(n.State!=e){var o=n.State;n.State=e,n.onStateChanged&&n.onStateChanged(n,n.State,o,t)}},n.Start=function(){if(0==n.connectstate){n.connectstate=0;var t=window.location.protocol.replace("http","ws")+"//"+window.location.host+e+"control.ashx"+(urlargs.key?"?key="+urlargs.key:"");n.authCookie&&""!=n.authCookie&&(t+="?moreargs=1"),n.socket=new WebSocket(t),n.socket.onopen=function(e){n.connectstate=1,n.authCookie&&""!=n.authCookie&&n.send({action:"urlargs",args:{auth:n.authCookie}})},n.socket.onmessage=n.xxOnMessage,n.socket.onclose=function(e){n.Stop(e.code)},n.xxStateChange(1,0),null!=n.pingTimer&&clearInterval(n.pingTimer),n.pingTimer=setInterval((function(){n.send({action:"ping"})}),29e3)}},n.Stop=function(e){n.connectstate=0,n.socket&&(n.socket.close(),delete n.socket),null!=n.pingTimer&&(clearInterval(n.pingTimer),n.pingTimer=null),n.xxStateChange(0,e)},n.xxOnMessage=function(e){var t;1==n.State&&n.xxStateChange(2);try{t=JSON.parse(e.data)}catch(e){return}if("object"==typeof t&&"pong"!=t.action){if("ping"==t.action&&n.send({action:"pong"}),"close"==t.action)return t.msg&&console.log(t.msg),void n.Stop(t.cause);1==n.trace?console.log("RECV",t):2==n.trace&&console.log("RECV",JSON.stringify(t)),n.onMessage&&n.onMessage(n,t)}},n.send=function(e){null!=n.socket&&1==n.connectstate&&("ping"!=e.action&&(1==n.trace?console.log("SEND",e):2==n.trace&&console.log("SEND",JSON.stringify(e))),n.socket.send(JSON.stringify(e)))},n}
|
9
public/scripts/ol3-contextmenu-min.js
vendored
9
public/scripts/ol3-contextmenu-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/u2f-api-min.js
vendored
2
public/scripts/u2f-api-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/xterm-addon-fit-min.js
vendored
2
public/scripts/xterm-addon-fit-min.js
vendored
@ -1 +1 @@
|
|||||||
((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FitAddon=t():e.FitAddon=t()})(window,function(){return r=[function(e,t,r){function n(){}Object.defineProperty(t,"__esModule",{value:!0}),n.prototype.activate=function(e){this._terminal=e},n.prototype.dispose=function(){},n.prototype.fit=function(){var e,t=this.proposeDimensions();t&&this._terminal&&(e=this._terminal._core,this._terminal.rows===t.rows&&this._terminal.cols===t.cols||(e._renderService.clear(),this._terminal.resize(t.cols,t.rows)))},n.prototype.proposeDimensions=function(){var e,t,r,n;if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement)return e=this._terminal._core,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue("height")),n=Math.max(0,parseInt(n.getPropertyValue("width"))),t=window.getComputedStyle(this._terminal.element),r=r-(parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"))),n=n-(parseInt(t.getPropertyValue("padding-right"))+parseInt(t.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth,{cols:Math.max(2,Math.floor(n/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(r/e._renderService.dimensions.actualCellHeight))}},t.FitAddon=n}],n={},o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0);function o(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var r,n})
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FitAddon=t():e.FitAddon=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.activate=function(e){this._terminal=e},e.prototype.dispose=function(){},e.prototype.fit=function(){var e=this.proposeDimensions();if(e&&this._terminal){var t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}},e.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var e=this._terminal._core,t=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(t.getPropertyValue("height")),n=Math.max(0,parseInt(t.getPropertyValue("width"))),o=window.getComputedStyle(this._terminal.element),i=r-(parseInt(o.getPropertyValue("padding-top"))+parseInt(o.getPropertyValue("padding-bottom"))),a=n-(parseInt(o.getPropertyValue("padding-right"))+parseInt(o.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(a/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(i/e._renderService.dimensions.actualCellHeight))}}},e}();t.FitAddon=n}])}))
|
2
public/scripts/xterm-min.js
vendored
2
public/scripts/xterm-min.js
vendored
File diff suppressed because one or more lines are too long
2
public/scripts/zlib-adler32-min.js
vendored
2
public/scripts/zlib-adler32-min.js
vendored
@ -1 +1 @@
|
|||||||
"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-adler32.js"),(()=>{var b=65521,v=5552;ZLIB.adler32=function(r,e,o,t){if("string"==typeof e){var a,d=r,c=e,C=o,h=t,A=d>>>16&65535;if(d&=65535,1==h)d+=255&c.charCodeAt(C),b<=d&&(d-=b),b<=(A+=d)&&(A-=b);else{if(null===c)return 1;if(h<16){for(;h--;)A+=d+=255&c.charCodeAt(C++);return b<=d&&(d-=b),d|(A%=b)<<16}for(;v<=h;){for(h-=v,a=347;A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=d+=255&c.charCodeAt(C++))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)),--a;);d%=b,A%=b}if(h){for(;16<=h;)h-=16,A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=d+=255&c.charCodeAt(C++))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++)))+(d+=255&c.charCodeAt(C++));for(;h--;)A+=d+=255&c.charCodeAt(C++);d%=b,A%=b}}return d|A<<16}var f,n=r,i=e,l=o,u=t,s=n>>>16&65535;if(n&=65535,1==u)n+=i[l],b<=n&&(n-=b),b<=(s+=n)&&(s-=b);else{if(null===i)return 1;if(u<16){for(;u--;)s+=n+=i[l++];return b<=n&&(n-=b),n|(s%=b)<<16}for(;v<=u;){for(u-=v,f=347;s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s+=n+=i[l++])+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]),--f;);n%=b,s%=b}if(u){for(;16<=u;)u-=16,s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s+=n+=i[l++])+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]))+(n+=i[l++]);for(;u--;)s+=n+=i[l++];n%=b,s%=b}}return n|s<<16},ZLIB.adler32_combine=function(r,e,o){var t,a;return o<0?4294967295:(a=(o%=b)*(t=65535&r),b<=(t+=(65535&e)+b-1)&&(t-=b),b<=t&&(t-=b),b<<1<=(a=a%b+((r>>16&65535)+(e>>16&65535)+b-o))&&(a-=b<<1),b<=a&&(a-=b),t|a<<16)}})()
|
"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-adler32.js"),function(){var r=65521,e=5552;ZLIB.adler32=function(o,t,d,a){return"string"==typeof t?function(o,t,d,a){var c,h;if(c=o>>>16&65535,o&=65535,1==a)return(o+=255&t.charCodeAt(d))>=r&&(o-=r),(c+=o)>=r&&(c-=r),o|c<<16;if(null===t)return 1;if(a<16){for(;a--;)c+=o+=255&t.charCodeAt(d++);return o>=r&&(o-=r),o|(c%=r)<<16}for(;a>=e;){a-=e,h=347;do{c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++)}while(--h);o%=r,c%=r}if(a){for(;a>=16;)a-=16,c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++);for(;a--;)c+=o+=255&t.charCodeAt(d++);o%=r,c%=r}return o|c<<16}(o,t,d,a):function(o,t,d,a){var c,h;if(c=o>>>16&65535,o&=65535,1==a)return(o+=t[d])>=r&&(o-=r),(c+=o)>=r&&(c-=r),o|c<<16;if(null===t)return 1;if(a<16){for(;a--;)c+=o+=t[d++];return o>=r&&(o-=r),o|(c%=r)<<16}for(;a>=e;){a-=e,h=347;do{c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++]}while(--h);o%=r,c%=r}if(a){for(;a>=16;)a-=16,c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++];for(;a--;)c+=o+=t[d++];o%=r,c%=r}return o|c<<16}(o,t,d,a)},ZLIB.adler32_combine=function(e,o,t){var d,a,c;return t<0?4294967295:(a=(c=t%=r)*(d=65535&e),a%=r,(d+=(65535&o)+r-1)>=r&&(d-=r),d>=r&&(d-=r),(a+=(e>>16&65535)+(o>>16&65535)+r-c)>=131042&&(a-=131042),a>=r&&(a-=r),d|a<<16)}}()
|
2
public/scripts/zlib-crc32-min.js
vendored
2
public/scripts/zlib-crc32-min.js
vendored
@ -1 +1 @@
|
|||||||
"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-crc32.js"),(()=>{var C=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function a(r,e){for(var o=0,n=0;e;)1&e&&(n^=r[o]),e>>=1,o++;return n}function i(r,e){for(var o=0;o<32;o++)r[o]=a(e,e[o])}ZLIB.crc32=function(r,e,o,n){if("string"==typeof e){var t=r,f=e,c=o,a=n;if(null==f)return 0;for(t^=4294967295;8<=a;)t=C[255&(t^f.charCodeAt(c++))]^t>>>8,t=C[255&(t^f.charCodeAt(c++))]^t>>>8,t=C[255&(t^f.charCodeAt(c++))]^t>>>8,t=C[255&(t^f.charCodeAt(c++))]^t>>>8,t=C[255&(t^f.charCodeAt(c++))]^t>>>8,t=C[255&(t^f.charCodeAt(c++))]^t>>>8,t=C[255&(t^f.charCodeAt(c++))]^t>>>8,t=C[255&(t^f.charCodeAt(c++))]^t>>>8,a-=8;if(a)for(;t=C[255&(t^f.charCodeAt(c++))]^t>>>8,--a;);return 4294967295^t}var i=r,d=e,u=o,A=n;if(null==d)return 0;for(i^=4294967295;8<=A;)i=C[255&(i^d[u++])]^i>>>8,i=C[255&(i^d[u++])]^i>>>8,i=C[255&(i^d[u++])]^i>>>8,i=C[255&(i^d[u++])]^i>>>8,i=C[255&(i^d[u++])]^i>>>8,i=C[255&(i^d[u++])]^i>>>8,i=C[255&(i^d[u++])]^i>>>8,i=C[255&(i^d[u++])]^i>>>8,A-=8;if(A)for(;i=C[255&(i^d[u++])]^i>>>8,--A;);return 4294967295^i},ZLIB.crc32_combine=function(r,e,o){var n,t,f,c;if(!(o<=0)){for(f=new Array(32),(c=new Array(32))[0]=3988292384,n=t=1;n<32;n++)c[n]=t,t<<=1;for(i(f,c),i(c,f);i(f,c),1&o&&(r=a(f,r)),0!=(o>>=1)&&(i(c,f),1&o&&(r=a(c,r)),0!=(o>>=1)););r^=e}return r}})()
|
"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-crc32.js"),function(){var r=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];ZLIB.crc32=function(e,n,o,t){return"string"==typeof n?function(e,n,o,t){if(null==n)return 0;for(e^=4294967295;t>=8;)e=r[255&(e^n.charCodeAt(o++))]^e>>>8,e=r[255&(e^n.charCodeAt(o++))]^e>>>8,e=r[255&(e^n.charCodeAt(o++))]^e>>>8,e=r[255&(e^n.charCodeAt(o++))]^e>>>8,e=r[255&(e^n.charCodeAt(o++))]^e>>>8,e=r[255&(e^n.charCodeAt(o++))]^e>>>8,e=r[255&(e^n.charCodeAt(o++))]^e>>>8,e=r[255&(e^n.charCodeAt(o++))]^e>>>8,t-=8;if(t)do{e=r[255&(e^n.charCodeAt(o++))]^e>>>8}while(--t);return 4294967295^e}(e,n,o,t):function(e,n,o,t){if(null==n)return 0;for(e^=4294967295;t>=8;)e=r[255&(e^n[o++])]^e>>>8,e=r[255&(e^n[o++])]^e>>>8,e=r[255&(e^n[o++])]^e>>>8,e=r[255&(e^n[o++])]^e>>>8,e=r[255&(e^n[o++])]^e>>>8,e=r[255&(e^n[o++])]^e>>>8,e=r[255&(e^n[o++])]^e>>>8,e=r[255&(e^n[o++])]^e>>>8,t-=8;if(t)do{e=r[255&(e^n[o++])]^e>>>8}while(--t);return 4294967295^e}(e,n,o,t)};function e(r,e){var n,o=0;for(n=0;e;)1&e&&(n^=r[o]),e>>=1,o++;return n}function n(r,n){var o;for(o=0;o<32;o++)r[o]=e(n,n[o])}ZLIB.crc32_combine=function(r,o,t){var c,f,i,u;if(t<=0)return r;for(i=new Array(32),(u=new Array(32))[0]=3988292384,f=1,c=1;c<32;c++)u[c]=f,f<<=1;n(i,u),n(u,i);do{if(n(i,u),1&t&&(r=e(i,r)),0==(t>>=1))break;n(u,i),1&t&&(r=e(u,r)),t>>=1}while(0!=t);return r^=o}}()
|
2
public/scripts/zlib-inflate-min.js
vendored
2
public/scripts/zlib-inflate-min.js
vendored
File diff suppressed because one or more lines are too long
@ -101,7 +101,6 @@ var minifyMeshCentralSourceFiles = [
|
|||||||
"../public/scripts/amt-wsman-ws-0.2.0.js",
|
"../public/scripts/amt-wsman-ws-0.2.0.js",
|
||||||
"../public/scripts/common-0.0.1.js",
|
"../public/scripts/common-0.0.1.js",
|
||||||
"../public/scripts/meshcentral.js",
|
"../public/scripts/meshcentral.js",
|
||||||
"../public/scripts/ol3-contextmenu.js",
|
|
||||||
"../public/scripts/u2f-api.js",
|
"../public/scripts/u2f-api.js",
|
||||||
"../public/scripts/xterm-addon-fit.js",
|
"../public/scripts/xterm-addon-fit.js",
|
||||||
"../public/scripts/xterm.js",
|
"../public/scripts/xterm.js",
|
||||||
@ -168,7 +167,7 @@ function setup() {
|
|||||||
|
|
||||||
function start() { startEx(process.argv); }
|
function start() { startEx(process.argv); }
|
||||||
|
|
||||||
function startEx(argv) {
|
async function startEx(argv) {
|
||||||
// Load dependencies
|
// Load dependencies
|
||||||
jsdom = require('jsdom');
|
jsdom = require('jsdom');
|
||||||
esprima = require('esprima'); // https://www.npmjs.com/package/esprima
|
esprima = require('esprima'); // https://www.npmjs.com/package/esprima
|
||||||
@ -366,7 +365,7 @@ function startEx(argv) {
|
|||||||
if (sourceFile.endsWith('.handlebars') >= 0) { inFile = inFile.split('{{{pluginHandler}}}').join('"{{{pluginHandler}}}"'); }
|
if (sourceFile.endsWith('.handlebars') >= 0) { inFile = inFile.split('{{{pluginHandler}}}').join('"{{{pluginHandler}}}"'); }
|
||||||
if (sourceFile.endsWith('.js')) { inFile = '<script>' + inFile + '</script>'; }
|
if (sourceFile.endsWith('.js')) { inFile = '<script>' + inFile + '</script>'; }
|
||||||
|
|
||||||
minify(inFile, {
|
var minifiedOut = await minify(inFile, {
|
||||||
collapseBooleanAttributes: true,
|
collapseBooleanAttributes: true,
|
||||||
collapseInlineTagWhitespace: false, // This is not good.
|
collapseInlineTagWhitespace: false, // This is not good.
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
@ -381,12 +380,12 @@ function startEx(argv) {
|
|||||||
removeTagWhitespace: true,
|
removeTagWhitespace: true,
|
||||||
preserveLineBreaks: false,
|
preserveLineBreaks: false,
|
||||||
useShortDoctype: true
|
useShortDoctype: true
|
||||||
}).then(function (minifiedOut) {
|
|
||||||
// Perform minification post-processing
|
|
||||||
if (sourceFile.endsWith('.js')) { minifiedOut = minifiedOut.substring(8, minifiedOut.length - 9); }
|
|
||||||
if (sourceFile.endsWith('.handlebars') >= 0) { minifiedOut = minifiedOut.split('"{{{pluginHandler}}}"').join('{{{pluginHandler}}}'); }
|
|
||||||
fs.writeFileSync(destinationFile, minifiedOut, { flag: 'w+' });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Perform minification post-processing
|
||||||
|
if (sourceFile.endsWith('.js')) { minifiedOut = minifiedOut.substring(8, minifiedOut.length - 9); }
|
||||||
|
if (sourceFile.endsWith('.handlebars') >= 0) { minifiedOut = minifiedOut.split('"{{{pluginHandler}}}"').join('{{{pluginHandler}}}'); }
|
||||||
|
fs.writeFileSync(destinationFile, minifiedOut, { flag: 'w+' });
|
||||||
}
|
}
|
||||||
} else if (sourceFiles[i].endsWith('.json')) {
|
} else if (sourceFiles[i].endsWith('.json')) {
|
||||||
// Minify the file .json file
|
// Minify the file .json file
|
||||||
@ -440,7 +439,7 @@ function startEx(argv) {
|
|||||||
|
|
||||||
var minifiedOut = null;
|
var minifiedOut = null;
|
||||||
try {
|
try {
|
||||||
minify(inFile, {
|
minifiedOut = await minify(inFile, {
|
||||||
collapseBooleanAttributes: true,
|
collapseBooleanAttributes: true,
|
||||||
collapseInlineTagWhitespace: false, // This is not good.
|
collapseInlineTagWhitespace: false, // This is not good.
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
@ -456,16 +455,16 @@ function startEx(argv) {
|
|||||||
preserveLineBreaks: false,
|
preserveLineBreaks: false,
|
||||||
useShortDoctype: true,
|
useShortDoctype: true,
|
||||||
log: function(a) { if (typeof a !== 'string') { console.log(a); } } // Log errors from UglifyJS to console output
|
log: function(a) { if (typeof a !== 'string') { console.log(a); } } // Log errors from UglifyJS to console output
|
||||||
}).then(function (minifiedOut) {
|
|
||||||
// Perform minification post-processing
|
|
||||||
if (outname.endsWith('.js')) { minifiedOut = minifiedOut.substring(8, minifiedOut.length - 9); }
|
|
||||||
if (outname.endsWith('.handlebars') >= 0) { minifiedOut = minifiedOut.split('"{{{pluginHandler}}}"').join('{{{pluginHandler}}}'); }
|
|
||||||
fs.writeFileSync(outnamemin, minifiedOut, { flag: 'w+' });
|
|
||||||
});
|
});
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
console.log(ex);
|
console.log(ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Perform minification post-processing
|
||||||
|
if (outname.endsWith('.js')) { minifiedOut = minifiedOut.substring(8, minifiedOut.length - 9); }
|
||||||
|
if (outname.endsWith('.handlebars') >= 0) { minifiedOut = minifiedOut.split('"{{{pluginHandler}}}"').join('{{{pluginHandler}}}'); }
|
||||||
|
fs.writeFileSync(outnamemin, minifiedOut, { flag: 'w+' });
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (outname.endsWith('.js')) {
|
if (outname.endsWith('.js')) {
|
||||||
var compressHandler = function compressHandlerFunc(err, buffer, outnamemin2) {
|
var compressHandler = function compressHandlerFunc(err, buffer, outnamemin2) {
|
||||||
@ -508,7 +507,7 @@ function startEx(argv) {
|
|||||||
if (outname.endsWith('.handlebars') >= 0) { inFile = inFile.split('{{{pluginHandler}}}').join('"{{{pluginHandler}}}"'); }
|
if (outname.endsWith('.handlebars') >= 0) { inFile = inFile.split('{{{pluginHandler}}}').join('"{{{pluginHandler}}}"'); }
|
||||||
if (outname.endsWith('.js')) { inFile = '<script>' + inFile + '</script>'; }
|
if (outname.endsWith('.js')) { inFile = '<script>' + inFile + '</script>'; }
|
||||||
|
|
||||||
minify(inFile, {
|
var minifiedOut = await minify(inFile, {
|
||||||
collapseBooleanAttributes: true,
|
collapseBooleanAttributes: true,
|
||||||
collapseInlineTagWhitespace: false, // This is not good.
|
collapseInlineTagWhitespace: false, // This is not good.
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
@ -523,12 +522,13 @@ function startEx(argv) {
|
|||||||
removeTagWhitespace: true,
|
removeTagWhitespace: true,
|
||||||
preserveLineBreaks: false,
|
preserveLineBreaks: false,
|
||||||
useShortDoctype: true
|
useShortDoctype: true
|
||||||
}).then(function (minifiedOut) {
|
|
||||||
// Perform minification post-processing
|
|
||||||
if (outname.endsWith('.js')) { minifiedOut = minifiedOut.substring(8, minifiedOut.length - 9); }
|
|
||||||
if (outname.endsWith('.handlebars') >= 0) { minifiedOut = minifiedOut.split('"{{{pluginHandler}}}"').join('{{{pluginHandler}}}'); }
|
|
||||||
fs.writeFileSync(outnamemin, minifiedOut, { flag: 'w+' });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Perform minification post-processing
|
||||||
|
if (outname.endsWith('.js')) { minifiedOut = minifiedOut.substring(8, minifiedOut.length - 9); }
|
||||||
|
if (outname.endsWith('.handlebars') >= 0) { minifiedOut = minifiedOut.split('"{{{pluginHandler}}}"').join('{{{pluginHandler}}}'); }
|
||||||
|
fs.writeFileSync(outnamemin, minifiedOut, { flag: 'w+' });
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -934,7 +934,7 @@ function translateAllInJson(xlang, langFile, file) {
|
|||||||
fs.writeFileSync(file, JSON.stringify(json, null, 2), { flag: 'w+' });
|
fs.writeFileSync(file, JSON.stringify(json, null, 2), { flag: 'w+' });
|
||||||
}
|
}
|
||||||
|
|
||||||
function translateFromHtml(lang, file, createSubDir) {
|
async function translateFromHtml(lang, file, createSubDir) {
|
||||||
var data = fs.readFileSync(file);
|
var data = fs.readFileSync(file);
|
||||||
if (file.endsWith('.js')) { data = '<html><head></head><body><script>' + data + '</script></body></html>'; }
|
if (file.endsWith('.js')) { data = '<html><head></head><body><script>' + data + '</script></body></html>'; }
|
||||||
var { JSDOM } = jsdom;
|
var { JSDOM } = jsdom;
|
||||||
@ -988,7 +988,7 @@ function translateFromHtml(lang, file, createSubDir) {
|
|||||||
// Minify the file
|
// Minify the file
|
||||||
if (minifyLib = 2) {
|
if (minifyLib = 2) {
|
||||||
if (outnamemin.endsWith('.handlebars') >= 0) { out = out.split('{{{pluginHandler}}}').join('"{{{pluginHandler}}}"'); }
|
if (outnamemin.endsWith('.handlebars') >= 0) { out = out.split('{{{pluginHandler}}}').join('"{{{pluginHandler}}}"'); }
|
||||||
minify(out, {
|
var minifiedOut = await minify(out, {
|
||||||
collapseBooleanAttributes: true,
|
collapseBooleanAttributes: true,
|
||||||
collapseInlineTagWhitespace: false, // This is not good.
|
collapseInlineTagWhitespace: false, // This is not good.
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
@ -1003,10 +1003,9 @@ function translateFromHtml(lang, file, createSubDir) {
|
|||||||
removeTagWhitespace: true,
|
removeTagWhitespace: true,
|
||||||
preserveLineBreaks: false,
|
preserveLineBreaks: false,
|
||||||
useShortDoctype: true
|
useShortDoctype: true
|
||||||
}).then(function (minifiedOut) {
|
|
||||||
if (outnamemin.endsWith('.handlebars') >= 0) { minifiedOut = minifiedOut.split('"{{{pluginHandler}}}"').join('{{{pluginHandler}}}'); }
|
|
||||||
fs.writeFileSync(outnamemin, minifiedOut, { flag: 'w+' });
|
|
||||||
});
|
});
|
||||||
|
if (outnamemin.endsWith('.handlebars') >= 0) { minifiedOut = minifiedOut.split('"{{{pluginHandler}}}"').join('{{{pluginHandler}}}'); }
|
||||||
|
fs.writeFileSync(outnamemin, minifiedOut, { flag: 'w+' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user