@unotest/viewer 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +130 -0
- package/dist/server/main.d.ts +9 -1
- package/dist/server/main.js +1 -1
- package/dist/server/session.js +1 -1
- package/dist/web/assets/{DslEditor-wifnRBrr.js → DslEditor-CV43IwH6.js} +2 -2
- package/dist/web/assets/index-LOIsj_xr.js +55 -0
- package/dist/web/assets/index-RCE6y6j4.css +32 -0
- package/dist/web/index.html +2 -2
- package/package.json +6 -6
- package/dist/web/assets/index-BLJmmyy1.css +0 -32
- package/dist/web/assets/index-NnxVWV8z.js +0 -55
package/dist/server/session.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x25b64b=_0x3b21;(function(_0x2c4363,_0x4048fe){const _0x3ab26d={_0x3f8911:0x182,_0x2bbf13:0x184,_0x2c25e6:0x18a,_0x2a122e:0x18f,_0x5dd682:0x190},_0x5d2f4a=_0x3b21,_0x376fd4=_0x2c4363();while(!![]){try{const _0x1e2517=-parseInt(_0x5d2f4a(0x198))/0x1+parseInt(_0x5d2f4a(0x183))/0x2+-parseInt(_0x5d2f4a(_0x3ab26d._0x3f8911))/0x3+-parseInt(_0x5d2f4a(_0x3ab26d._0x2bbf13))/0x4+parseInt(_0x5d2f4a(_0x3ab26d._0x2c25e6))/0x5+-parseInt(_0x5d2f4a(0x18e))/0x6+parseInt(_0x5d2f4a(_0x3ab26d._0x2a122e))/0x7*(parseInt(_0x5d2f4a(_0x3ab26d._0x5dd682))/0x8);if(_0x1e2517===_0x4048fe)break;else _0x376fd4['push'](_0x376fd4['shift']());}catch(_0x49bf9f){_0x376fd4['push'](_0x376fd4['shift']());}}}(_0x4872,0x52c4c));function _0x3b21(_0x2c6d39,_0x3a6b17){_0x2c6d39=_0x2c6d39-0x181;const _0x4872f0=_0x4872();let _0x3b21e6=_0x4872f0[_0x2c6d39];if(_0x3b21['hyWHMj']===undefined){var _0x39c4e1=function(_0x584a2f){const _0x10a132='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2af93c='',_0x9acbd1='';for(let _0x1c222f=0x0,_0x45b945,_0x28808f,_0x4a95cb=0x0;_0x28808f=_0x584a2f['charAt'](_0x4a95cb++);~_0x28808f&&(_0x45b945=_0x1c222f%0x4?_0x45b945*0x40+_0x28808f:_0x28808f,_0x1c222f++%0x4)?_0x2af93c+=String['fromCharCode'](0xff&_0x45b945>>(-0x2*_0x1c222f&0x6)):0x0){_0x28808f=_0x10a132['indexOf'](_0x28808f);}for(let _0x17f1d0=0x0,_0xef0589=_0x2af93c['length'];_0x17f1d0<_0xef0589;_0x17f1d0++){_0x9acbd1+='%'+('00'+_0x2af93c['charCodeAt'](_0x17f1d0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x9acbd1);};_0x3b21['qPmTvx']=_0x39c4e1,_0x3b21['jvCzfR']={},_0x3b21['hyWHMj']=!![];}const _0x43b9cc=_0x4872f0[0x0],_0xb3e954=_0x2c6d39+_0x43b9cc,_0xffc397=_0x3b21['jvCzfR'][_0xb3e954];return!_0xffc397?(_0x3b21e6=_0x3b21['qPmTvx'](_0x3b21e6),_0x3b21['jvCzfR'][_0xb3e954]=_0x3b21e6):_0x3b21e6=_0xffc397,_0x3b21e6;}var __defProp=Object['defineProperty'],__name=(_0x2af93c,_0x9acbd1)=>__defProp(_0x2af93c,'name',{'value':_0x9acbd1,'configurable':!![]}),FULL_CAPABILITIES={'canRun':!![],'canEditFiles':!![],'canTerminal':!![],'canBrowseFs':!![]},STANDALONE_SESSION={'capabilities':FULL_CAPABILITIES,'identity':null},VIEWER_SESSION_HEADER=_0x25b64b(0x185);function encodeViewerSession(_0x1c222f){const _0x27f261={_0x3ccc85:0x18d,_0x5d96cb:0x195},_0x269393=_0x25b64b;return Buffer[_0x269393(0x186)](JSON[_0x269393(0x181)](_0x1c222f),_0x269393(0x193))[_0x269393(_0x27f261._0x3ccc85)](_0x269393(_0x27f261._0x5d96cb));}__name(encodeViewerSession,'encodeViewerSession');function decodeViewerSession(_0x45b945){const _0x50ff14=_0x25b64b;if(_0x45b945===void 0x0||_0x45b945==='')return null;let _0x28808f;try{_0x28808f=JSON['parse'](Buffer['from'](_0x45b945,_0x50ff14(0x195))['toString']('utf8'));}catch{return null;}if(typeof _0x28808f!=='object'||_0x28808f===null)return null;const {capabilities:_0x4a95cb,identity:_0x17f1d0}=_0x28808f,_0xef0589=readCapabilities(_0x4a95cb);if(_0xef0589===null)return null;return{'capabilities':_0xef0589,'identity':readIdentity(_0x17f1d0)};}__name(decodeViewerSession,_0x25b64b(0x18b));function readCapabilities(_0x2cea0f){const _0x44a1ce={_0xdbd45a:0x199,_0x50c20b:0x187,_0x301e3a:0x18c},_0x227d2e=_0x25b64b;if(typeof _0x2cea0f!==_0x227d2e(_0x44a1ce._0xdbd45a)||_0x2cea0f===null)return null;const _0x41f5fe=_0x2cea0f,_0x1ac972=__name(_0x165834=>_0x41f5fe[_0x165834]===!![],_0x227d2e(0x192));return{'canRun':_0x1ac972(_0x227d2e(0x197)),'canEditFiles':_0x1ac972(_0x227d2e(_0x44a1ce._0x50c20b)),'canTerminal':_0x1ac972(_0x227d2e(_0x44a1ce._0x301e3a)),'canBrowseFs':_0x1ac972(_0x227d2e(0x194))};}__name(readCapabilities,_0x25b64b(0x196));function _0x4872(){const _0xfb89aa=['mtC1mZK2mhDmt0Xdza','Ec11BM90zxn0lxzPzxDLCI1ZzxnZAw9U','zNjVBq','y2fUrwrPDezPBgvZ','C3rYAw5N','zw52','mtC4nZu2nu1jseTHDW','zgvJB2rLvMLLD2vYu2vZC2LVBG','y2fUvgvYBwLUywW','Dg9tDhjPBMC','mtu2odyYofvVDuv6ra','mtriBfP3tMG','ndGWmZKZnMfqvgTgrW','Bg9NB3v0vxjS','zMXHzW','DxrMoa','y2fUqNjVD3nLrNm','yMfZzty0DxjS','CMvHzenHCgfIAwXPDgLLCW','y2fUuNvU','mJa2mdq5s1jjz1bN','B2jQzwn0','C3rYAw5NAwz5','mtu2otCWoenwsLjMDW','nde5ndCYEMPoChzs'];_0x4872=function(){return _0xfb89aa;};return _0x4872();}function readIdentity(_0x2879ae){const _0x41274f={_0x555d3d:0x189,_0x2a3791:0x189,_0x1157b5:0x191},_0x124424=_0x25b64b;if(typeof _0x2879ae!=='object'||_0x2879ae===null)return null;const _0x5aa2a2=_0x2879ae,{user:_0x3b9da8,role:_0x552107}=_0x5aa2a2;if(typeof _0x3b9da8!=='string'||typeof _0x552107!=='string')return null;return{'user':_0x3b9da8,'role':_0x552107,...typeof _0x5aa2a2[_0x124424(_0x41274f._0x555d3d)]==='string'?{'env':_0x5aa2a2[_0x124424(_0x41274f._0x2a3791)]}:{},...typeof _0x5aa2a2[_0x124424(_0x41274f._0x1157b5)]===_0x124424(0x188)?{'logoutUrl':_0x5aa2a2['logoutUrl']}:{}};}__name(readIdentity,'readIdentity');export{FULL_CAPABILITIES,STANDALONE_SESSION,VIEWER_SESSION_HEADER,decodeViewerSession,encodeViewerSession};
|