zmp-cli 3.15.8 → 3.15.9
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/README.md +97 -37
- package/build/index.js +1 -1
- package/config/index.js +1 -1
- package/create/index.js +1 -1
- package/create/utils/generate-app-config.js +1 -1
- package/create/utils/generate-npm-scripts.js +1 -1
- package/create/utils/get-options.js +1 -1
- package/create/utils/npm-scripts.js +1 -1
- package/deploy/index.js +1 -1
- package/deploy/utils/get-options.js +1 -1
- package/deploy/utils/request-upload.js +1 -1
- package/deploy/utils/upload-app.js +1 -1
- package/index.js +1 -1
- package/login/index.js +1 -1
- package/login/utils/get-options.js +1 -1
- package/login/utils/zalo-login.js +1 -1
- package/migrate/icons/update-icon-v3.js +1 -1
- package/migrate/index.js +1 -1
- package/migrate/utils/get-options.js +1 -1
- package/migrate/utils/migrate-react.js +1 -1
- package/package.json +2 -2
- package/start/index.js +1 -1
- package/sync/index-to-app-config.js +1 -1
- package/sync/index.js +1 -1
- package/utils/axios.js +1 -1
- package/utils/check-update.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/env.js +1 -1
- package/utils/error.js +1 -1
- package/utils/find-files-by-ext.js +1 -1
- package/utils/find-free-port.js +1 -1
- package/utils/fs-extra.js +1 -1
- package/utils/generate-pages-map.js +1 -1
- package/utils/get-app-info.js +1 -1
- package/utils/get-current-project.js +1 -1
- package/utils/get-ip.js +1 -1
- package/utils/log.js +1 -1
- package/utils/node-blob.js +1 -1
- package/utils/resumable.d.js +1 -1
- package/utils/resumable.js +1 -1
- package/utils/spinner.js +1 -1
- package/utils/tunnel.js +1 -1
package/login/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x5e5dd0=_0x2c1b;(function(_0x1cbe1c,_0x9f5ee2){const _0x338f75=_0x2c1b,_0x50a661=_0x1cbe1c();while(!![]){try{const _0x195001=parseInt(_0x338f75(0x182))/0x1*(parseInt(_0x338f75(0x15f))/0x2)+parseInt(_0x338f75(0x17a))/0x3+parseInt(_0x338f75(0x184))/0x4+-parseInt(_0x338f75(0x173))/0x5*(-parseInt(_0x338f75(0x16a))/0x6)+-parseInt(_0x338f75(0x171))/0x7*(parseInt(_0x338f75(0x16f))/0x8)+-parseInt(_0x338f75(0x176))/0x9+-parseInt(_0x338f75(0x181))/0xa*(-parseInt(_0x338f75(0x188))/0xb);if(_0x195001===_0x9f5ee2)break;else _0x50a661['push'](_0x50a661['shift']());}catch(_0x222222){_0x50a661['push'](_0x50a661['shift']());}}}(_0x2cca,0x303ec));function _0x2cca(){const _0x4e50f0=['setEnv','238158KoVJku','data','../config','getQRCode','stop','path','generate','44750pOloOF','5643yoFjsh','loginMethod','142280iYEcyg','err','error_code','application/x-www-form-urlencoded','649wAOEDi','msg','Token\x20Invalid!','env','info','zmpsk','request_timeout','../utils/env','loginUrl','api_domain','start','zalo','chalk','statusStart','error','appId','text','token','no-cache','../utils/axios','jwt','34GvuLfg','qrcode-terminal','then','checkStatus','stringify','error_msg','bold','statusError','stderr','Login\x20failed!','login','1543236qFFCxj','log-symbols','jsonwebtoken','catch','ora','378520mLLOiE','Login\x20Success!','35RpbTfQ','decode','5NCCLKo','POST','./utils/zalo-login','2681379weuRKN','\x20(Time\x20out\x20after\x20','permission_denied'];_0x2cca=function(){return _0x4e50f0;};return _0x2cca();}function _0x2c1b(_0x5e4025,_0x4cf522){const _0x2cca70=_0x2cca();return _0x2c1b=function(_0x2c1b0d,_0x284c26){_0x2c1b0d=_0x2c1b0d-0x14e;let _0x1ebd68=_0x2cca70[_0x2c1b0d];return _0x1ebd68;},_0x2c1b(_0x5e4025,_0x4cf522);}const e=require(_0x5e5dd0(0x156)),t=require(_0x5e5dd0(0x16e)),r=require(_0x5e5dd0(0x16c)),a=require(_0x5e5dd0(0x160)),n=require(_0x5e5dd0(0x16b)),o=require(_0x5e5dd0(0x17c)),s=require(_0x5e5dd0(0x151)),i=require('../utils/log'),u=require(_0x5e5dd0(0x175)),{axiosClient:l}=require(_0x5e5dd0(0x15d)),c=require('qs'),d=e['gray']('Login...'),p=t(d);module['exports']=async(_0x2c5c7c={},_0x3130ea)=>{const _0x28a9a6=_0x5e5dd0;let _0x587ee4;_0x3130ea||(_0x3130ea={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x3130ea[_0x28a9a6(0x157)](d),p[_0x28a9a6(0x154)]();let _0x3c480c=_0x2c5c7c[_0x28a9a6(0x183)],_0xad0f0=_0x2c5c7c[_0x28a9a6(0x159)]||s['getEnv'](o[_0x28a9a6(0x18b)][_0x28a9a6(0x159)]),_0x48dc90=_0x2c5c7c[_0x28a9a6(0x15b)],_0x3b2e96=''+o[_0x28a9a6(0x153)]+o[_0x28a9a6(0x17f)][_0x28a9a6(0x169)];try{if(p[_0x28a9a6(0x154)](),_0x28a9a6(0x155)===_0x3c480c){let _0x8f20bf;await new Promise((_0xd6eb59,_0x632ef9)=>{const _0x13c6a3=_0x28a9a6;u[_0x13c6a3(0x17d)](_0xad0f0)['then'](function(_0xe5d287){const _0x235a05=_0x13c6a3;p[_0x235a05(0x17e)]();let _0x2afe83=_0xe5d287[_0x235a05(0x17b)];if(!_0x2afe83||_0x2afe83[_0x235a05(0x185)]<0x0)return _0x632ef9(Error(_0x2afe83[_0x235a05(0x189)]));let _0x4448a6=_0x2afe83[_0x235a05(0x17b)]&&_0x2afe83[_0x235a05(0x17b)][_0x235a05(0x152)];return _0x8f20bf=_0x2afe83[_0x235a05(0x17b)]&&_0x2afe83[_0x235a05(0x17b)][_0x235a05(0x14f)],a[_0x235a05(0x180)](_0x4448a6,{'small':!0x0},function(_0x11890c){const _0x1ac768=_0x235a05;let _0x97eea5=n[_0x1ac768(0x14e)]+'\x20'+e[_0x1ac768(0x165)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x11890c);_0x3130ea[_0x1ac768(0x15a)](_0x97eea5);}),s['setEnv'](o['env'][_0x235a05(0x159)],_0xad0f0),_0xd6eb59();})[_0x13c6a3(0x16d)](function(_0x591db2){const _0x2ba642=_0x13c6a3;return p[_0x2ba642(0x17e)](),_0x632ef9(_0x591db2);});}),await new Promise((_0x57e2d5,_0x5e6448)=>{const _0x1fcec3=_0x28a9a6;if(!_0x8f20bf)return _0x5e6448(Error(_0x1fcec3(0x18a)));let _0x3e9e0a=0x0;_0x587ee4=setInterval(()=>{const _0x58e84e=_0x1fcec3;if(_0x3130ea['statusText'](d+_0x58e84e(0x177)+(0x3c-_0x3e9e0a)+'s)'),_0x3e9e0a>0x3c)return clearInterval(_0x587ee4),_0x5e6448(Error(o[_0x58e84e(0x164)]['request_timeout']));_0x3e9e0a++,u[_0x58e84e(0x162)](_0x8f20bf)[_0x58e84e(0x161)](function(_0xdd3cd6){const _0x366050=_0x58e84e;p['stop']();let _0x1dffcb=_0xdd3cd6[_0x366050(0x17b)];if(_0x1dffcb&&_0x1dffcb[_0x366050(0x185)]===o[_0x366050(0x186)][_0x366050(0x178)])return clearInterval(_0x587ee4),_0x5e6448(Error(o['error_msg'][_0x366050(0x178)]));if(_0x1dffcb&&_0x1dffcb[_0x366050(0x185)]===o[_0x366050(0x186)][_0x366050(0x150)])return clearInterval(_0x587ee4),_0x5e6448(Error(o['error_msg'][_0x366050(0x150)]));if(_0x1dffcb&&_0x1dffcb[_0x366050(0x185)]>=0x0){clearInterval(_0x587ee4);let _0x51b22a=_0x1dffcb[_0x366050(0x17b)]&&_0x1dffcb[_0x366050(0x17b)][_0x366050(0x15e)];return s[_0x366050(0x179)](o[_0x366050(0x18b)]['token'],_0x51b22a),_0x3130ea['statusDone'](_0x366050(0x170)),_0x57e2d5();}})[_0x58e84e(0x16d)](function(_0x161459){return clearInterval(_0x587ee4),p['stop'](),_0x5e6448(_0x161459);});},0x7d0);});}else await new Promise((_0x3b55b1,_0x184d83)=>{const _0x3fc255=_0x28a9a6;l({'url':_0x3b2e96,'method':_0x3fc255(0x174),'headers':{'cache-control':_0x3fc255(0x15c),'content-type':_0x3fc255(0x187)},'data':c[_0x3fc255(0x163)]({'accessToken':_0x48dc90,'appId':_0xad0f0}),'withCredentials':!0x0})[_0x3fc255(0x161)](function(_0x28deba){const _0x5f2600=_0x3fc255;p[_0x5f2600(0x17e)]();let _0x36e2e9=_0x28deba[_0x5f2600(0x17b)];if(!_0x36e2e9||_0x36e2e9[_0x5f2600(0x185)]<0x0)return _0x184d83(Error(_0x36e2e9[_0x5f2600(0x189)]));let _0x36dc1e=_0x36e2e9[_0x5f2600(0x17b)]&&_0x36e2e9[_0x5f2600(0x17b)][_0x5f2600(0x15e)];try{let _0xf0ea7e=r[_0x5f2600(0x172)](_0x36dc1e);s[_0x5f2600(0x179)](o[_0x5f2600(0x18b)][_0x5f2600(0x159)],_0xf0ea7e[_0x5f2600(0x159)]),s[_0x5f2600(0x179)](o['env']['token'],_0x36dc1e);}catch(_0x3dabc2){return _0x184d83(_0x3dabc2);}return _0x3130ea['statusDone'](_0x5f2600(0x170)),_0x3b55b1();})['catch'](function(_0x323f91){const _0x21a4d3=_0x3fc255;return p[_0x21a4d3(0x17e)](),_0x184d83(_0x323f91);});});}catch(_0xbc102c){_0x3130ea[_0x28a9a6(0x166)](_0x28a9a6(0x168)),i[_0x28a9a6(0x158)](_0xbc102c[_0x28a9a6(0x167)]||_0xbc102c);return;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x158105=_0x1e55;function _0x45af(){const _0x3b58e6=['token','Mini\x20App\x20ID:','accessToken','prompt','1218PWujFT','Zalo\x20Access\x20Token:','env','loginMethod','length','Choose\x20a\x20Login\x20Method','614019WNynXV','1256200DSivVk','2347077aOwtUt','resolve','10755gkQXlL','getEnv','136ltMRVR','2.\x20Login\x20With\x20App\x20Access\x20Token','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','../../config','list','appId','2cFmkPD','Zalo\x20Access\x20Token\x20is\x20required','input','6190FwAcrI','../../utils/env','5270IvglaY','4252168bwgocM','12470898DPNIXw','exports'];_0x45af=function(){return _0x3b58e6;};return _0x45af();}(function(_0x14f671,_0x35fe15){const _0x448e4b=_0x1e55,_0x4e0daa=_0x14f671();while(!![]){try{const _0xc73087=-parseInt(_0x448e4b(0x1b2))/0x1+-parseInt(_0x448e4b(0x19e))/0x2*(-parseInt(_0x448e4b(0x194))/0x3)+parseInt(_0x448e4b(0x1a4))/0x4+parseInt(_0x448e4b(0x1a3))/0x5*(-parseInt(_0x448e4b(0x1ab))/0x6)+-parseInt(_0x448e4b(0x1b1))/0x7*(parseInt(_0x448e4b(0x198))/0x8)+parseInt(_0x448e4b(0x196))/0x9*(parseInt(_0x448e4b(0x1a1))/0xa)+parseInt(_0x448e4b(0x1a5))/0xb;if(_0xc73087===_0x35fe15)break;else _0x4e0daa['push'](_0x4e0daa['shift']());}catch(_0x490c56){_0x4e0daa['push'](_0x4e0daa['shift']());}}}(_0x45af,0xb8ee1));const e=require('inquirer'),i=require(_0x158105(0x1a2)),o=require(_0x158105(0x19b));function _0x1e55(_0x3a9c13,_0x48f29c){const _0x45af35=_0x45af();return _0x1e55=function(_0x1e5528,_0x2853a8){_0x1e5528=_0x1e5528-0x194;let _0x5240c1=_0x45af35[_0x1e5528];return _0x5240c1;},_0x1e55(_0x3a9c13,_0x48f29c);}module[_0x158105(0x1a6)]=function(){const _0x400fca=_0x158105;let _0x48530b=[{'type':_0x400fca(0x1a0),'name':_0x400fca(0x19d),'message':_0x400fca(0x1a8),'when':()=>!i[_0x400fca(0x197)](o[_0x400fca(0x1ad)][_0x400fca(0x19d)]),'validate':_0x1b5bdd=>new Promise((_0x1b524e,_0x4b1e01)=>{_0x1b5bdd?_0x1b524e(!0x0):_0x4b1e01(Error('Mimi\x20App\x20ID\x20is\x20required'));})},{'type':_0x400fca(0x19c),'name':'loginMethod','message':_0x400fca(0x1b0),'choices':[{'name':_0x400fca(0x19a),'value':'zalo'},{'name':_0x400fca(0x199),'value':_0x400fca(0x1a9)}],'validate':_0x3d719c=>new Promise((_0x225ee3,_0x570600)=>{const _0x2e11c5=_0x400fca;_0x3d719c&&_0x3d719c[_0x2e11c5(0x1af)]?_0x225ee3(!0x0):_0x570600(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x400fca(0x1a0),'name':_0x400fca(0x1a7),'message':_0x400fca(0x1ac),'when':_0x4767db=>_0x400fca(0x1a9)===_0x4767db[_0x400fca(0x1ae)],'validate':_0x415bab=>new Promise((_0xa783cb,_0x225491)=>{const _0x433c13=_0x400fca;_0x415bab?_0xa783cb(!0x0):_0x225491(Error(_0x433c13(0x19f)));})}];return e[_0x400fca(0x1aa)](_0x48530b)['then'](_0x548886=>Promise[_0x400fca(0x195)](_0x548886));};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1b98fc=_0x336d;(function(_0x1f0187,_0x3e95ce){const _0x262f26=_0x336d,_0x18d1f1=_0x1f0187();while(!![]){try{const _0x1f9091=parseInt(_0x262f26(0x1b9))/0x1*(-parseInt(_0x262f26(0x1c2))/0x2)+-parseInt(_0x262f26(0x1b8))/0x3+-parseInt(_0x262f26(0x1c0))/0x4+-parseInt(_0x262f26(0x1c4))/0x5+-parseInt(_0x262f26(0x1c8))/0x6+parseInt(_0x262f26(0x1c1))/0x7+parseInt(_0x262f26(0x1c5))/0x8;if(_0x1f9091===_0x3e95ce)break;else _0x18d1f1['push'](_0x18d1f1['shift']());}catch(_0x286ae1){_0x18d1f1['push'](_0x18d1f1['shift']());}}}(_0x2a6c,0xdb60f));function _0x336d(_0x241ca6,_0x3cdca2){const _0x2a6cab=_0x2a6c();return _0x336d=function(_0x336db9,_0x3c8572){_0x336db9=_0x336db9-0x1b8;let _0x1884cc=_0x2a6cab[_0x336db9];return _0x1884cc;},_0x336d(_0x241ca6,_0x3cdca2);}const e=require(_0x1b98fc(0x1ba)),{axiosClient:t}=require('../../utils/axios');function _0x2a6c(){const _0x4312e5=['2YocrZT','../../config','requestLogin','checkLoginStatus','no-cache','get','exports','5242716iWsxIl','8213751MrNQox','627316ZzaTgc','api_domain','60955fqmNSh','32408064OisGvh','?zmpsk=','path','8696250GekRTA','2778795tgXksf'];_0x2a6c=function(){return _0x4312e5;};return _0x2a6c();}module[_0x1b98fc(0x1bf)]=(function(){const _0x10d175=_0x1b98fc;let _0x2e82f0=''+e['api_domain']+e[_0x10d175(0x1c7)][_0x10d175(0x1bb)],_0x1b3ee4=''+e[_0x10d175(0x1c3)]+e['path'][_0x10d175(0x1bc)];return{'getQRCode':_0x444ddc=>t({'method':'get','url':_0x2e82f0+'?appId='+_0x444ddc,'headers':{'cache-control':_0x10d175(0x1bd)},'withCredentials':!0x0}),'checkStatus':_0x39dcb7=>t({'method':_0x10d175(0x1be),'url':_0x1b3ee4+_0x10d175(0x1c6)+_0x39dcb7,'headers':{'cache-control':_0x10d175(0x1bd)},'withCredentials':!0x0})};}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xcb0696=_0x46aa;(function(_0x972400,_0x441270){const _0x303994=_0x46aa,_0x494c13=_0x972400();while(!![]){try{const _0x463ea0=parseInt(_0x303994(0x1bc))/0x1+-parseInt(_0x303994(0x1b6))/0x2*(-parseInt(_0x303994(0x1be))/0x3)+-parseInt(_0x303994(0x1bf))/0x4+-parseInt(_0x303994(0x1c7))/0x5+-parseInt(_0x303994(0x1c1))/0x6*(parseInt(_0x303994(0x1b5))/0x7)+parseInt(_0x303994(0x1ba))/0x8*(-parseInt(_0x303994(0x1ca))/0x9)+-parseInt(_0x303994(0x1c0))/0xa*(-parseInt(_0x303994(0x1c3))/0xb);if(_0x463ea0===_0x441270)break;else _0x494c13['push'](_0x494c13['shift']());}catch(_0x161a06){_0x494c13['push'](_0x494c13['shift']());}}}(_0x4a0e,0xa1202));const e=require('../../utils/fs-extra'),s=require('path'),r=require(_0xcb0696(0x1b9));function _0x4a0e(){const _0x155d0e=['copyFileAsync','864313WYVtcw','./icons.css','573jwmscG','336692EIUFNn','9523550QJtttU','2514gTCuFP','uiFramework','11OEhyeS','exports','zmp-framework','npm\x20install\x20zmp-framework@latest','947370JQtWyV','npm\x20install\x20zmp-ui@latest','./src/css/icons.css','13203teliJY','18515qguNOy','12174xWgocs','cwd','resolve','exec-sh','5112InodEt'];_0x4a0e=function(){return _0x155d0e;};return _0x4a0e();}function _0x46aa(_0x1d819b,_0x3f0d9c){const _0x4a0ea4=_0x4a0e();return _0x46aa=function(_0x46aad1,_0x68a1ca){_0x46aad1=_0x46aad1-0x1b5;let _0x275804=_0x4a0ea4[_0x46aad1];return _0x275804;},_0x46aa(_0x1d819b,_0x3f0d9c);}async function i(_0x24ef83){const _0xd19530=_0xcb0696;if(_0xd19530(0x1c5)===_0x24ef83[_0xd19530(0x1c2)])e[_0xd19530(0x1bb)](s['resolve'](__dirname,_0xd19530(0x1bd)),s[_0xd19530(0x1b8)](_0x24ef83[_0xd19530(0x1b7)],_0xd19530(0x1c9))),await r['promise'](_0xd19530(0x1c6),!0x0);else{if('zmp-ui'!==_0x24ef83[_0xd19530(0x1c2)])return;await r['promise'](_0xd19530(0x1c8),!0x0);}}module[_0xcb0696(0x1c4)]=i;
|
package/migrate/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x426c(){const _0xb1c2fe=['8236233klPVAb','8rRHhXE','138125PTsaJv','../utils/error','10185077JfFeQI','15522060ymrJWt','zmpConfig','gray','30124094QsIREC','filename','bold','4597197FuduCw','statusDone','statusStart','5241812zSUgTF','react','Migration\x20error!','6LFGPzM','text','framework','statusError','exports','cwd','\x20is\x20not\x20yet\x20supported','5oaTaVc','join','2ENjjmW','log-symbols','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','../config'];_0x426c=function(){return _0xb1c2fe;};return _0x426c();}const _0x4d6947=_0xd029;(function(_0x204c16,_0x5a9605){const _0x51c058=_0xd029,_0x1b7860=_0x204c16();while(!![]){try{const _0x1e9f4e=-parseInt(_0x51c058(0x110))/0x1+parseInt(_0x51c058(0x10a))/0x2*(-parseInt(_0x51c058(0x119))/0x3)+parseInt(_0x51c058(0x11c))/0x4*(parseInt(_0x51c058(0x108))/0x5)+parseInt(_0x51c058(0x11f))/0x6*(parseInt(_0x51c058(0x112))/0x7)+parseInt(_0x51c058(0x10f))/0x8*(parseInt(_0x51c058(0x10e))/0x9)+parseInt(_0x51c058(0x113))/0xa+-parseInt(_0x51c058(0x116))/0xb;if(_0x1e9f4e===_0x5a9605)break;else _0x1b7860['push'](_0x1b7860['shift']());}catch(_0x4f7094){_0x1b7860['push'](_0x1b7860['shift']());}}}(_0x426c,0xc91b1));const r=require('chalk'),t=require('path'),e=require(_0x4d6947(0x10b)),s=require('./utils/migrate-react'),{errorExit:a}=require(_0x4d6947(0x111)),o=require(_0x4d6947(0x10d)),i=r[_0x4d6947(0x115)](_0x4d6947(0x10c));function _0xd029(_0x17eba8,_0x179fae){const _0x426c42=_0x426c();return _0xd029=function(_0xd02900,_0x2a4697){_0xd02900=_0xd02900-0x104;let _0x23f73c=_0x426c42[_0xd02900];return _0x23f73c;},_0xd029(_0x17eba8,_0x179fae);}async function u(_0x3c3479={},_0x7c1c23){const _0x1341e3=_0x4d6947;let _0x29fe29=_0x3c3479['cwd']||process[_0x1341e3(0x106)]();_0x7c1c23||(_0x7c1c23={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x7c1c23[_0x1341e3(0x11b)]('Migrating\x20Your\x20App\x20'+i);try{let _0x560a9a,_0x9c3b29=require((_0x560a9a=o[_0x1341e3(0x117)][_0x1341e3(0x114)],t[_0x1341e3(0x109)](_0x29fe29,_0x560a9a)));_0x1341e3(0x11d)===_0x9c3b29[_0x1341e3(0x121)]?await s(_0x3c3479):(_0x7c1c23[_0x1341e3(0x120)](e['error']+'\x20Project\x20using\x20ZMP\x20'+_0x9c3b29[_0x1341e3(0x121)]+_0x1341e3(0x107)),process['exit'](0x1)),_0x7c1c23[_0x1341e3(0x11a)](r[_0x1341e3(0x118)]['green']('Migration\x20Done!')+'\x20💪');}catch(_0x4dbafe){_0x7c1c23[_0x1341e3(0x104)](_0x1341e3(0x11e)),a(_0x4dbafe);}}module[_0x4d6947(0x105)]=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1979(){const _0x495d24=['uiFramework','11AHxGJY','142162krcQnB','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','prompt','zmp-ui','12486470PjYpYP','inquirer','Other','61840339uLrOXw','27HFCyXb','6243OGmzBt','zmp-framework','v1tov2','465924jrgSVd','1033768ZCWpPW','iconsv3','resolve','list','migrateVersion','85jiXrWi','other','1076MleDxx','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','9058938mMdShF'];_0x1979=function(){return _0x495d24;};return _0x1979();}const _0x33d2b0=_0x4717;(function(_0x4fb629,_0x3607eb){const _0x140797=_0x4717,_0x2675fa=_0x4fb629();while(!![]){try{const _0x2091f3=-parseInt(_0x140797(0x18b))/0x1*(parseInt(_0x140797(0x18c))/0x2)+parseInt(_0x140797(0x195))/0x3*(-parseInt(_0x140797(0x187))/0x4)+parseInt(_0x140797(0x185))/0x5*(-parseInt(_0x140797(0x198))/0x6)+-parseInt(_0x140797(0x189))/0x7+-parseInt(_0x140797(0x199))/0x8*(-parseInt(_0x140797(0x194))/0x9)+-parseInt(_0x140797(0x190))/0xa+parseInt(_0x140797(0x193))/0xb;if(_0x2091f3===_0x3607eb)break;else _0x2675fa['push'](_0x2675fa['shift']());}catch(_0x5c0893){_0x2675fa['push'](_0x2675fa['shift']());}}}(_0x1979,0xc4845));const e=require(_0x33d2b0(0x191)),r=[{'type':_0x33d2b0(0x19c),'name':_0x33d2b0(0x184),'message':_0x33d2b0(0x18d),'choices':[{'name':'Version\x201\x20=>\x20Version\x202','value':_0x33d2b0(0x197)},{'name':_0x33d2b0(0x188),'value':_0x33d2b0(0x19a)}]},{'type':'list','name':_0x33d2b0(0x18a),'message':'Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','when':_0x57f94b=>_0x33d2b0(0x19a)===_0x57f94b[_0x33d2b0(0x184)],'choices':[{'name':'zmp-framework','value':_0x33d2b0(0x196)},{'name':_0x33d2b0(0x18f),'value':_0x33d2b0(0x18f)},{'name':_0x33d2b0(0x192),'value':_0x33d2b0(0x186)}]}];function _0x4717(_0x339787,_0x2b876d){const _0x1979d8=_0x1979();return _0x4717=function(_0x47172b,_0x1be124){_0x47172b=_0x47172b-0x184;let _0x1002a9=_0x1979d8[_0x47172b];return _0x1002a9;},_0x4717(_0x339787,_0x2b876d);}module['exports']=function(){const _0x4bdba0=_0x33d2b0;return e[_0x4bdba0(0x18e)](r)['then'](_0x46f0cb=>Promise[_0x4bdba0(0x19b)](_0x46f0cb));};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x14a744=_0x317e;(function(_0xbe07b7,_0x54e930){const _0x55b572=_0x317e,_0x3dbec8=_0xbe07b7();while(!![]){try{const _0x22f443=-parseInt(_0x55b572(0xeb))/0x1*(-parseInt(_0x55b572(0x100))/0x2)+parseInt(_0x55b572(0x103))/0x3+parseInt(_0x55b572(0xea))/0x4*(-parseInt(_0x55b572(0xf1))/0x5)+-parseInt(_0x55b572(0xfc))/0x6+-parseInt(_0x55b572(0xf5))/0x7*(parseInt(_0x55b572(0xed))/0x8)+parseInt(_0x55b572(0xee))/0x9*(-parseInt(_0x55b572(0xf2))/0xa)+-parseInt(_0x55b572(0xf4))/0xb*(-parseInt(_0x55b572(0xfd))/0xc);if(_0x22f443===_0x54e930)break;else _0x3dbec8['push'](_0x3dbec8['shift']());}catch(_0x12f284){_0x3dbec8['push'](_0x3dbec8['shift']());}}}(_0x16f9,0x5fd57));function _0x16f9(){const _0x4c8087=['resolve','1551711cDgXGu','36eTMcZR','3eXjZQw','promise','1608sALpxw','8505EBGsDL','v1tov2','../templates/v2/vite.config.js','86880BUZryQ','2110ooRBNq','../templates/v2/generate-index.react','8168182UYKkOz','21847wpuxlk','cwd','exec-sh','exports','writeFileSync','join','index.html','3525804YmRSJu','12BSXIuM','migrateVersion','vite.config.js','468980BpQDWm','npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev'];_0x16f9=function(){return _0x4c8087;};return _0x16f9();}const e=require(_0x14a744(0xf3)),i=require('../../utils/fs-extra'),t=require('path'),s=require(_0x14a744(0xf7)),r=require('../icons/update-icon-v3');async function a(_0x888915){const _0x3c829f=_0x14a744;let _0x1f163d=e(_0x888915);i[_0x3c829f(0xf9)](t[_0x3c829f(0xfa)](_0x888915[_0x3c829f(0xf6)],_0x3c829f(0xfb)),_0x1f163d),i['copyFileAsync'](t[_0x3c829f(0x102)](__dirname,_0x3c829f(0xf0)),t[_0x3c829f(0x102)](_0x888915[_0x3c829f(0xf6)],_0x3c829f(0xff))),await s[_0x3c829f(0xec)](_0x3c829f(0x101),!0x0);}function _0x317e(_0x4ad8ff,_0x9cff04){const _0x16f963=_0x16f9();return _0x317e=function(_0x317e10,_0x3cc47f){_0x317e10=_0x317e10-0xea;let _0x189100=_0x16f963[_0x317e10];return _0x189100;},_0x317e(_0x4ad8ff,_0x9cff04);}async function n(_0x303323){const _0x416896=_0x14a744;switch(_0x303323[_0x416896(0xfe)]){case _0x416896(0xef):await a(_0x303323);break;case'iconsv3':await r(_0x303323);}}module[_0x14a744(0xf8)]=n;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zmp-cli",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.9",
|
|
4
4
|
"description": "ZMP command line utility (CLI)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"xhr2": "^0.2.1",
|
|
75
75
|
"xmlhttprequest": "^1.8.0",
|
|
76
76
|
"zip-local": "^0.3.4",
|
|
77
|
-
"zmp-cli-core": "1.0.
|
|
77
|
+
"zmp-cli-core": "~1.0.2"
|
|
78
78
|
}
|
|
79
79
|
}
|
package/start/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3cd5(_0x5de609,_0x248c62){const _0x26da60=_0x26da();return _0x3cd5=function(_0x3cd5e0,_0x4de1cc){_0x3cd5e0=_0x3cd5e0-0x1f4;let _0x2f22a1=_0x26da60[_0x3cd5e0];return _0x2f22a1;},_0x3cd5(_0x5de609,_0x248c62);}const _0x51b6b5=_0x3cd5;(function(_0x5f36ed,_0x26d911){const _0xca3776=_0x3cd5,_0x4166ac=_0x5f36ed();while(!![]){try{const _0x2ca563=parseInt(_0xca3776(0x218))/0x1+parseInt(_0xca3776(0x20d))/0x2+parseInt(_0xca3776(0x23c))/0x3*(parseInt(_0xca3776(0x1fe))/0x4)+-parseInt(_0xca3776(0x21b))/0x5+parseInt(_0xca3776(0x247))/0x6*(-parseInt(_0xca3776(0x238))/0x7)+parseInt(_0xca3776(0x219))/0x8+-parseInt(_0xca3776(0x244))/0x9*(parseInt(_0xca3776(0x208))/0xa);if(_0x2ca563===_0x26d911)break;else _0x4166ac['push'](_0x4166ac['shift']());}catch(_0x1d003c){_0x4166ac['push'](_0x4166ac['shift']());}}}(_0x26da,0x2290e));const e=require(_0x51b6b5(0x228)),r=require(_0x51b6b5(0x22b)),t=require('path'),i=require(_0x51b6b5(0x243)),o=require(_0x51b6b5(0x1f5)),n=require(_0x51b6b5(0x240)),{hri:s}=require(_0x51b6b5(0x1fb)),{startLocal:a,startDevice:p}=require(_0x51b6b5(0x24e)),l=require(_0x51b6b5(0x246)),c=require(_0x51b6b5(0x22c)),{errorExit:d}=require('../utils/error'),u=require(_0x51b6b5(0x20c)),f=require(_0x51b6b5(0x214)),{openTunnel:g}=require(_0x51b6b5(0x217)),$=r('Starting\x20mini\x20app...');module[_0x51b6b5(0x204)]=async(_0x4240a3={},_0x4096cd)=>{const _0x11e615=_0x51b6b5;let _0x3b4495;_0x4096cd||(_0x4096cd={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),$[_0x11e615(0x237)]();let _0xf75cf2=_0x4240a3[_0x11e615(0x231)]||process[_0x11e615(0x231)](),_0x445b34=_0x4240a3[_0x11e615(0x250)]||c[_0x11e615(0x216)](l['env'][_0x11e615(0x250)]),_0x323f5b=_0x4240a3[_0x11e615(0x23e)],_0x260876=_0x4240a3[_0x11e615(0x212)],_0xb100a7=_0x4240a3['iosHostName'],_0x5b120f=_0x4240a3[_0x11e615(0x235)],_0x58cd50=_0x260876?_0xb100a7:_0x11e615(0x21c),_0x5cc79a=_0x4240a3[_0x11e615(0x201)],_0x476670=_0x5cc79a-0x2,_0x497e0a=_0x4240a3[_0x11e615(0x249)]||require((_0x3b4495=l[_0x11e615(0x21e)][_0x11e615(0x203)],t[_0x11e615(0x23f)](_0xf75cf2,_0x3b4495))),_0x17e58f=_0x4240a3[_0x11e615(0x24f)];try{let _0x5ea9c9,_0x35c3b7,_0x26db27;if(_0x323f5b){let _0x2b42e9=t[_0x11e615(0x23f)](_0xf75cf2,_0x11e615(0x227)),_0x52a67c={'id':_0x11e615(0x23a),'innerHTML':_0x11e615(0x209)+_0x58cd50+':'+_0x476670+_0x11e615(0x20e),'type':_0x11e615(0x248)};if(u[_0x11e615(0x1f9)](_0x2b42e9)){let _0x2714fe=u[_0x11e615(0x230)](_0x2b42e9),_0x2a169c=JSON[_0x11e615(0x234)](_0x2714fe),_0x3b5054=_0x2a169c['listJS'];Array[_0x11e615(0x24a)](_0x3b5054)||(_0x3b5054=[]);let _0x2ec615=_0x3b5054[_0x11e615(0x21a)](_0x9c6439=>_0x11e615(0x23a)===_0x9c6439['id']);_0x2ec615<=0x0||_0x3b5054[_0x11e615(0x242)](_0x2ec615,0x1),_0x3b5054['push'](_0x52a67c),_0x2a169c[_0x11e615(0x233)]=_0x3b5054,u[_0x11e615(0x220)](_0x2b42e9,JSON[_0x11e615(0x24c)](_0x2a169c,void 0x0,0x4));}else u[_0x11e615(0x220)](_0x2b42e9,JSON[_0x11e615(0x24c)]({'listCSS':[],'listJS':[{'src':'/src/app.js','type':'module','async':!0x0},_0x52a67c]},void 0x0,0x4));}if(_0x17e58f){_0x5ea9c9=s[_0x11e615(0x226)](),_0x35c3b7=await f(),n['start']({'port':_0x35c3b7});let _0x530d75=await g(_0x35c3b7);_0x26db27=await p({'appId':_0x445b34,'chiiUrl':_0x530d75,'cwd':_0xf75cf2,'subdomain':_0x5ea9c9});}else{if(_0x26db27=await a({'cwd':_0xf75cf2,'appConfig':_0x497e0a,'config':{'host':_0x11e615(0x21f),'port':_0x5b120f?_0x5cc79a-0x1:_0x5cc79a},'hmr':_0x323f5b?{'host':_0x58cd50,'protocol':'ws'}:void 0x0}),_0x5b120f&&!_0x323f5b){let _0x3c8ab5=await _0x26db27[_0x11e615(0x210)][_0x11e615(0x1fd)]({'configFile':!0x1,'root':__dirname+_0x11e615(0x1f4),'server':{'port':_0x26db27[_0x11e615(0x1fa)][_0x11e615(0x252)][_0x11e615(0x23d)]()[_0x11e615(0x201)]+0x1,'strictPort':!0x0,'open':!0x0}});$['stop'](),await _0x3c8ab5[_0x11e615(0x22d)](),(0x0,_0x3c8ab5['config'][_0x11e615(0x232)][_0x11e615(0x1fc)])(e[_0x11e615(0x24d)](_0x11e615(0x223))),_0x3c8ab5['printUrls']();}else $[_0x11e615(0x22e)](),(0x0,_0x26db27['server'][_0x11e615(0x251)][_0x11e615(0x232)]['info'])(e[_0x11e615(0x24d)]('Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x0a')),_0x26db27[_0x11e615(0x20a)][_0x11e615(0x239)]();}let _0x39f5f6=_0x26db27[_0x11e615(0x1fa)];if(_0x323f5b)try{n[_0x11e615(0x237)]({'port':_0x476670}),_0x4096cd[_0x11e615(0x213)](e[_0x11e615(0x24d)](o['info']+'\x20'+e['bold'](_0x11e615(0x229)+_0x476670))),_0x260876||require(_0x11e615(0x224))[_0x11e615(0x21d)](_0x11e615(0x241),[_0x11e615(0x221),_0x11e615(0x23b)+_0x476670,_0x11e615(0x23b)+_0x476670])[_0x11e615(0x202)]['on'](_0x11e615(0x20b),function(_0x3d0071){_0x4096cd['error'](_0x3d0071['toString']());});}catch(_0x7c3c65){_0x4096cd[_0x11e615(0x213)](o[_0x11e615(0x1fc)]+'\x20'+e[_0x11e615(0x22a)](_0x11e615(0x1ff)));}if($[_0x11e615(0x22e)](),_0x323f5b){let _0x39b347=_0x11e615(0x200)+_0x445b34+_0x11e615(0x205)+_0x58cd50+':'+_0x39f5f6[_0x11e615(0x251)][_0x11e615(0x20a)][_0x11e615(0x201)];i[_0x11e615(0x245)](_0x39b347,{'small':!0x0},function(_0xf6db32){const _0x263188=_0x11e615;if(_0x4096cd[_0x263188(0x213)](e[_0x263188(0x24d)](o[_0x263188(0x1fc)]+'\x20'+e[_0x263188(0x22f)]('Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x20'+_0x58cd50+':'+_0x39f5f6[_0x263188(0x251)][_0x263188(0x20a)][_0x263188(0x201)]))),_0x4096cd[_0x263188(0x213)](e[_0x263188(0x24d)](o[_0x263188(0x1fc)]+'\x20'+e[_0x263188(0x22f)]('Trying\x20reverse\x20socket\x20connection'))),_0x260876){let _0x5e0724=o[_0x263188(0x1fc)]+'\x20'+e[_0x263188(0x22f)](_0x263188(0x24b)+_0xf6db32);_0x4096cd[_0x263188(0x213)](_0x5e0724);}else{let _0x21e843=require(_0x263188(0x224))[_0x263188(0x21d)](_0x263188(0x241),['reverse',_0x263188(0x23b)+_0x39f5f6[_0x263188(0x251)]['server'][_0x263188(0x201)],_0x263188(0x23b)+_0x39f5f6[_0x263188(0x251)]['server'][_0x263188(0x201)]]);_0x21e843[_0x263188(0x202)]['on'](_0x263188(0x20b),function(_0x327419){_0x4096cd['error'](_0x327419['toString']());}),_0x21e843['on'](_0x263188(0x207),function(_0x4d7e07){const _0x25e798=_0x263188;if(0x0!==_0x4d7e07)throw Error(_0x25e798(0x206)+_0x4d7e07);{let _0x3bdf11=o[_0x25e798(0x1fc)]+'\x20'+e[_0x25e798(0x22f)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0xf6db32);_0x4096cd['text'](_0x3bdf11),require(_0x25e798(0x224))[_0x25e798(0x21d)](_0x25e798(0x241),['devices'])['stdout']['on'](_0x25e798(0x20b),function(_0x69b9f5){const _0x3fcd0c=_0x25e798;_0x4096cd[_0x3fcd0c(0x213)](''+e['yellow'](_0x69b9f5[_0x3fcd0c(0x1f8)]()));});}});}});}if(_0x17e58f){let _0x319895=_0x39f5f6[_0x11e615(0x252)][_0x11e615(0x23d)]()[_0x11e615(0x201)],_0x42a8f3=await g(_0x319895,_0x5ea9c9),_0x51ca87=_0x11e615(0x200)+_0x445b34+_0x11e615(0x1f7)+_0x42a8f3;i['generate'](_0x51ca87,{'small':!0x0},function(_0x26ab6c){const _0x245fdf=_0x11e615;let _0x7093d7=o['info']+'\x20'+e['bold'](_0x245fdf(0x24b)+_0x26ab6c);_0x4096cd[_0x245fdf(0x213)](_0x7093d7),_0x4096cd[_0x245fdf(0x213)](o[_0x245fdf(0x1fc)]+'\x20'+e[_0x245fdf(0x22f)]('To\x20inspect\x20your\x20app,\x20open:\x20http://localhost:'+_0x35c3b7+_0x245fdf(0x20f)+e[_0x245fdf(0x24d)](_0x245fdf(0x225))+_0x245fdf(0x211)+e['blue'](_0x245fdf(0x215))+_0x245fdf(0x222)));});}return await new Promise(()=>{});}catch(_0x399a5f){$[_0x11e615(0x22e)](),_0x4096cd[_0x11e615(0x1f6)](_0x11e615(0x236)),d(_0x399a5f);return;}};function _0x26da(){const _0x448ade=['chii','adb','splice','qrcode-terminal','108KlKxfO','generate','../config','162Kktxpw','text/javascript','appConfigJson','isArray','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','stringify','green','zmp-cli-core','deviceMode','appId','config','httpServer','/frame','log-symbols','error','/?env=TESTING_LOCAL&clientIp=','toString','existsSync','app','human-readable-ids','info','createServer','52644tPzIrs','Can\x20not\x20start\x20remote\x20debug\x20server','https://zalo.me/app/link/zapps/','port','stderr','appConfig','exports','/?env=TESTING_LOCAL&clientIp=http://','adb\x20reverse\x20error:\x20','exit','67370OcwUOD','(function\x20()\x20{\x20var\x20script\x20=\x20document.createElement(\x27script\x27);\x20script.src=\x27http://','server','data','../utils/fs-extra','331880zjmOYO','/target.js\x27;\x20document.body.appendChild(script);\x20})()','\x20in\x20','vite','\x20or\x20a\x20','ios','text','../utils/find-free-port','Chromium-based','getEnv','../utils/tunnel','40430HcWRHu','1157520Olvqby','findIndex','619050CYNwZu','localhost','spawn','filename','0.0.0.0','writeFileSync','reverse','\x20browser.','Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x0a','child_process','Google\x20Chrome','random','hr.config.json','chalk','Remote\x20debugging\x20tool\x20is\x20running\x20at:\x20http://localhost:','red','ora','../utils/env','listen','stop','bold','readFileSync','cwd','logger','listJS','parse','frame','Error\x20starting\x20project','start','42196rrLClc','printUrls','remote-debug-script','tcp:','36sqarUL','address','previewOnZalo','join'];_0x26da=function(){return _0x448ade;};return _0x26da();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x118d42=_0xe12e;(function(_0x28362d,_0x4a4583){const _0x3668ca=_0xe12e,_0x3e6cbd=_0x28362d();while(!![]){try{const _0x3e1a19=-parseInt(_0x3668ca(0x12d))/0x1*(parseInt(_0x3668ca(0x138))/0x2)+-parseInt(_0x3668ca(0x13f))/0x3+-parseInt(_0x3668ca(0x11e))/0x4+parseInt(_0x3668ca(0x126))/0x5*(parseInt(_0x3668ca(0x136))/0x6)+-parseInt(_0x3668ca(0x111))/0x7*(-parseInt(_0x3668ca(0x141))/0x8)+-parseInt(_0x3668ca(0x124))/0x9*(parseInt(_0x3668ca(0x128))/0xa)+parseInt(_0x3668ca(0x13d))/0xb*(parseInt(_0x3668ca(0x11c))/0xc);if(_0x3e1a19===_0x4a4583)break;else _0x3e6cbd['push'](_0x3e6cbd['shift']());}catch(_0x1ee8ba){_0x3e6cbd['push'](_0x3e6cbd['shift']());}}}(_0x3f9d,0xdc4f4));const e=require(_0x118d42(0x117)),t=require('fs'),{axiosClient:r}=require('../utils/axios');function _0x3f9d(){const _0x134b29=['getElementsByTagName','type','data','.module.js','dom-parser','startsWith','://','src','#app','1139508SFcpUj','finish','6890020bVrYMR','stylesheet','stream','includes','substring','message','9849339UXDYbH','href','5362145QLzLut','module','10AfREkY','endsWith','meta','getAttribute','innerHTML','258MTarJU','outerHTML','replaceAll','error','\x20/>','module.js','forEach','get','cdn.','6xEuBje','push','8426AXQuVS','createWriteStream','pipe','\x0a⚠️\x20Unable\x20to\x20download\x20resource\x20from\x20CDN.\x20Please\x20handle\x20this\x20file\x20manually!','\x22\x20/>','484aMeXBx','rel','1969350HcGWou','document.head.innerHTML\x20+=\x20`','312OMbSLs','rename','unshift','link','document.body.innerHTML\x20+=\x20`','concat','parseFromString','map','<div\x20class=\x22','warn','join','inline.js','style','38059AHMOHy','text/html'];_0x3f9d=function(){return _0x134b29;};return _0x3f9d();}async function s(_0x20cac5,{outputDir:_0x26b108,rootElement:_0x4c4b7a}){const _0x18edab=_0x118d42;let _0x38ab1c=[],_0x459c2c=[],_0x5cbca9=[],_0x22415f='';try{let _0x10ac5e=new e()[_0x18edab(0x147)](_0x20cac5,_0x18edab(0x112)),_0x630c6d=[],_0x5b213b=[];for(let _0x3eb392 of _0x10ac5e['getElementsByTagName']('script')){let _0x326a08=_0x3eb392[_0x18edab(0x12b)](_0x18edab(0x11a)),_0x297209=_0x3eb392[_0x18edab(0x12b)](_0x18edab(0x114)),_0x5d8e94=_0x3eb392['getAttribute']('async'),_0x155823=_0x3eb392[_0x18edab(0x12c)];try{if(_0x155823)_0x5b213b[_0x18edab(0x137)](_0x3eb392[_0x18edab(0x12e)]);else{let _0x65722=_0x326a08;if(_0x326a08[_0x18edab(0x121)](_0x18edab(0x119))){let _0x3e1c0c=_0x326a08[_0x18edab(0x122)](_0x326a08['lastIndexOf']('/')+0x1);_0x3e1c0c=_0x18edab(0x135)+_0x3e1c0c;let _0x32d6f7=await r({'method':_0x18edab(0x134),'url':_0x326a08,'responseType':'stream'}),_0x380b72=t[_0x18edab(0x139)](_0x26b108+'/'+_0x3e1c0c);_0x32d6f7[_0x18edab(0x115)][_0x18edab(0x13a)](_0x380b72),await new Promise((_0x502fcf,_0x4e58c8)=>{const _0x3ac9bf=_0x18edab;_0x380b72['on'](_0x3ac9bf(0x11d),_0x502fcf),_0x380b72['on']('error',_0x4e58c8);}),_0x65722=_0x3e1c0c;}if(_0x18edab(0x127)===_0x297209&&!_0x65722[_0x18edab(0x129)](_0x18edab(0x132))){let _0x1ce2ca=_0x326a08['slice'](0x0,-0x3)[_0x18edab(0x146)](_0x18edab(0x116));t[_0x18edab(0x142)](_0x65722,_0x1ce2ca),_0x65722=_0x1ce2ca;}(_0x5d8e94?_0x5cbca9:_0x459c2c)['push'](_0x65722);}}catch(_0x340504){console[_0x18edab(0x10d)]('\x0a⚠️\x20Unable\x20to\x20download\x20resource\x20from\x20CDN.\x20Please\x20handle\x20this\x20file\x20manually!',_0x326a08),console[_0x18edab(0x130)](_0x340504[_0x18edab(0x123)]);}}for(let _0x2f52d3 of(_0x10ac5e['getElementsByTagName'](_0x18edab(0x110))[_0x18edab(0x133)](_0x12e4bf=>{const _0x512312=_0x18edab;_0x12e4bf[_0x512312(0x12c)]&&_0x630c6d['push'](_0x12e4bf[_0x512312(0x12e)]);}),_0x10ac5e[_0x18edab(0x113)](_0x18edab(0x144)))){let _0x3ec857=_0x2f52d3[_0x18edab(0x12b)](_0x18edab(0x13e)),_0x1e4e45=_0x2f52d3[_0x18edab(0x12b)](_0x18edab(0x125));try{if(_0x18edab(0x11f)===_0x3ec857){let _0x1d7ace=_0x1e4e45;if(_0x1e4e45[_0x18edab(0x121)](_0x18edab(0x119))){_0x1d7ace=_0x1e4e45[_0x18edab(0x122)](_0x1e4e45['lastIndexOf']('/')+0x1),_0x1d7ace=_0x18edab(0x135)+_0x1d7ace;let _0x20dba1=await r({'method':_0x18edab(0x134),'url':_0x1e4e45,'responseType':_0x18edab(0x120)}),_0x4bd977=t['createWriteStream'](_0x26b108+'/'+_0x1d7ace);_0x20dba1[_0x18edab(0x115)][_0x18edab(0x13a)](_0x4bd977),await new Promise((_0x524b29,_0x52e7a6)=>{const _0x147b19=_0x18edab;_0x4bd977['on'](_0x147b19(0x11d),_0x524b29),_0x4bd977['on'](_0x147b19(0x130),_0x52e7a6);});}_0x38ab1c[_0x18edab(0x137)](_0x1d7ace);}}catch(_0x246b39){console[_0x18edab(0x130)](_0x18edab(0x13b),_0x1e4e45),console['error'](_0x246b39[_0x18edab(0x123)]);}}if(_0x10ac5e[_0x18edab(0x113)](_0x18edab(0x12a))['forEach'](_0x560515=>{const _0x4de74a=_0x18edab;_0x630c6d['push'](_0x560515[_0x4de74a(0x12e)]);}),_0x4c4b7a&&_0x18edab(0x11b)!==_0x4c4b7a){let _0xcfd83e='<'+_0x4c4b7a+_0x18edab(0x131);_0x4c4b7a[_0x18edab(0x118)]('#')&&(_0xcfd83e='<div\x20id=\x22'+_0x4c4b7a['substring'](0x1)+_0x18edab(0x13c)),_0x4c4b7a['startsWith']('.')&&(_0xcfd83e=_0x18edab(0x149)+_0x4c4b7a['substring'](0x1)+_0x18edab(0x13c)),_0x4c4b7a[_0x18edab(0x118)]('<')&&(_0xcfd83e=_0x4c4b7a),_0x5b213b[_0x18edab(0x143)](_0xcfd83e);}_0x22415f+=_0x630c6d[_0x18edab(0x148)](_0x2be672=>_0x18edab(0x140)+_0x2be672[_0x18edab(0x12f)]('`','\x5c`')+'`;')[_0x18edab(0x10e)]('\x0a')+'\x0a'+_0x5b213b[_0x18edab(0x148)](_0x2da13e=>_0x18edab(0x145)+_0x2da13e[_0x18edab(0x12f)]('`','\x5c`')+'`;')[_0x18edab(0x10e)]('\x0a'),_0x459c2c[_0x18edab(0x143)](_0x18edab(0x10f));}catch(_0xd6892e){console[_0x18edab(0x130)](_0xd6892e[_0x18edab(0x123)]);}return{'listCSS':_0x38ab1c,'listSyncJS':_0x459c2c,'listAsyncJS':_0x5cbca9,'inlineJS':_0x22415f};}function _0xe12e(_0x5ec126,_0x35754d){const _0x3f9d31=_0x3f9d();return _0xe12e=function(_0xe12ef1,_0x2efc1e){_0xe12ef1=_0xe12ef1-0x10d;let _0x187439=_0x3f9d31[_0xe12ef1];return _0x187439;},_0xe12e(_0x5ec126,_0x35754d);}module['exports']={'generateListResourcesFromIndex':s};
|
package/sync/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x7c0e(){const _0x5d0a5b=['20QOjaWy','appConfig','../config','filename','60anCgmV','readFileSync','exports','./index-to-app-config','toString','../utils/error','text','2413586EZSXpH','stringify','16VJoCWT','join','2VsayBX','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','writeFileSync','4xxoedh','1642940ZNdryg','6UwNwEi','dirname','1700138Xsdceg','statusDone','1230843KkrHvG','100545oPKftP','\x20💪','error_msg','Configuration\x20synchronization\x20completed!','181422xPajEb','cwd','2926728WqXKOZ','/inline.js'];_0x7c0e=function(){return _0x5d0a5b;};return _0x7c0e();}const _0x2f130b=_0xf0d6;(function(_0x2da778,_0xa5fa67){const _0x3f2a2b=_0xf0d6,_0x59c3f9=_0x2da778();while(!![]){try{const _0x3a1bef=parseInt(_0x3f2a2b(0x1b1))/0x1*(parseInt(_0x3f2a2b(0x1a8))/0x2)+parseInt(_0x3f2a2b(0x1b6))/0x3+parseInt(_0x3f2a2b(0x1ab))/0x4*(parseInt(_0x3f2a2b(0x1b2))/0x5)+parseInt(_0x3f2a2b(0x1ad))/0x6*(parseInt(_0x3f2a2b(0x1a4))/0x7)+parseInt(_0x3f2a2b(0x1a6))/0x8*(-parseInt(_0x3f2a2b(0x1b8))/0x9)+parseInt(_0x3f2a2b(0x1ba))/0xa*(parseInt(_0x3f2a2b(0x1af))/0xb)+parseInt(_0x3f2a2b(0x1be))/0xc*(-parseInt(_0x3f2a2b(0x1ac))/0xd);if(_0x3a1bef===_0xa5fa67)break;else _0x59c3f9['push'](_0x59c3f9['shift']());}catch(_0xbc9284){_0x59c3f9['push'](_0x59c3f9['shift']());}}}(_0x7c0e,0xa6c30));const t=require('path'),e=require('chalk'),r=require('../utils/fs-extra'),i=require(_0x2f130b(0x1bc)),{errorExit:n}=require(_0x2f130b(0x1a2)),{generateListResourcesFromIndex:a}=require(_0x2f130b(0x1c1)),o=e['gray'](_0x2f130b(0x1a9)),s={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};function _0xf0d6(_0xd13e56,_0x2f8b35){const _0x7c0e28=_0x7c0e();return _0xf0d6=function(_0xf0d67a,_0x2ed1e9){_0xf0d67a=_0xf0d67a-0x1a2;let _0x3feb48=_0x7c0e28[_0xf0d67a];return _0x3feb48;},_0xf0d6(_0xd13e56,_0x2f8b35);}module[_0x2f130b(0x1c0)]=async(_0x262b1e={},_0x51f741=s)=>{const _0xa5e975=_0x2f130b;let _0x1a2cdc;_0x51f741['statusStart']('Synchronization\x20configuration\x20'+o);let _0x23a7ac=process[_0xa5e975(0x1b7)](),{source:_0x6e082,rootElement:_0x3942df}=_0x262b1e,_0xde168b=i[_0xa5e975(0x1bd)][_0xa5e975(0x1bb)],_0x2f9f07=_0x3f5797=>t[_0xa5e975(0x1a7)](_0x23a7ac,_0x3f5797);try{_0x1a2cdc=require(_0x2f9f07(_0xde168b));}catch(_0x777f83){n(Error(i[_0xa5e975(0x1b4)]['app_config_not_found']));}let _0x388c9c=r[_0xa5e975(0x1bf)](_0x6e082)[_0xa5e975(0x1c2)](),_0x3a884e=t[_0xa5e975(0x1ae)](_0x6e082),{listCSS:_0x409fb2,listSyncJS:_0x35f35d,listAsyncJS:_0x45a0ff,inlineJS:_0x51ce4f}=await a(_0x388c9c,{'outputDir':_0x3a884e,'rootElement':_0x3942df});Object['assign'](_0x1a2cdc,{'listCSS':_0x409fb2,'listSyncJS':_0x35f35d,'listAsyncJS':_0x45a0ff}),_0x51ce4f&&r['writeFileSync'](_0x2f9f07(_0x3a884e+_0xa5e975(0x1b9)),_0x51ce4f);let _0x38fe51=JSON[_0xa5e975(0x1a5)](_0x1a2cdc,null,0x2);r[_0xa5e975(0x1aa)](_0x2f9f07(_0xde168b),_0x38fe51),_0x51f741[_0xa5e975(0x1b0)](e['bold']['green'](_0xa5e975(0x1b5))+_0xa5e975(0x1b3)),_0x51f741[_0xa5e975(0x1a3)]({'listCSS':_0x409fb2,'listSyncJS':_0x35f35d,'listAsyncJS':_0x45a0ff});};
|
package/utils/axios.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x12e989=_0x3c38;(function(_0x5a5a7e,_0x3f1634){const _0xa8315c=_0x3c38,_0x56bd13=_0x5a5a7e();while(!![]){try{const _0x54e255=parseInt(_0xa8315c(0x138))/0x1*(-parseInt(_0xa8315c(0x132))/0x2)+parseInt(_0xa8315c(0x12f))/0x3+-parseInt(_0xa8315c(0x136))/0x4+parseInt(_0xa8315c(0x133))/0x5*(parseInt(_0xa8315c(0x12e))/0x6)+parseInt(_0xa8315c(0x130))/0x7*(parseInt(_0xa8315c(0x131))/0x8)+parseInt(_0xa8315c(0x137))/0x9+-parseInt(_0xa8315c(0x139))/0xa;if(_0x54e255===_0x3f1634)break;else _0x56bd13['push'](_0x56bd13['shift']());}catch(_0x344954){_0x56bd13['push'](_0x56bd13['shift']());}}}(_0xe7c1,0xe30b9));function _0x3c38(_0x24e0f8,_0x2fa56b){const _0xe7c182=_0xe7c1();return _0x3c38=function(_0x3c3872,_0xb601d1){_0x3c3872=_0x3c3872-0x12e;let _0x18c866=_0xe7c182[_0x3c3872];return _0x18c866;},_0x3c38(_0x24e0f8,_0x2fa56b);}function _0xe7c1(){const _0x5ae436=['5ZiXdkk','create','axios','6414604SWLLGd','1266111TOpHFL','175289YKfXSK','8251850cIZTBn','proxy-agent','exports','6524754vktjQz','4295658LHaPOh','112dcJHmX','612328qqWEfz','6IIwOdK'];_0xe7c1=function(){return _0x5ae436;};return _0xe7c1();}const {ProxyAgent:e}=require(_0x12e989(0x13a)),t=require(_0x12e989(0x135)),r=new e(),o=t[_0x12e989(0x134)]({'proxy':!0x1,'httpsAgent':r,'httpAgent':r});module[_0x12e989(0x13b)]={'agent':r,'axiosClient':o};
|
package/utils/check-update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0xca4b(){const _0x55e798=['22xwHFBw','forEach','catch','data','24320930OkSkaM','1683594WxiOzh','6jMQwIa','map','12753432FEBLGT','2647708CIyjUl','get','error','text','\x0anpm\x20install\x20zmp-cli\x20-g\x0a','done','\x20To\x20update\x20zmp-cli,\x20run\x20in\x20terminal:','Checking\x20for\x20available\x20updates...','9996028tcVagE','./log','738270JpFFKu','1WYOhmS','start','log-symbols','split','warning','https://registry.npmjs.org/zmp-cli/latest','exit','425778lEIYJJ','version','15PZnqHW','then','axios','./spinner'];_0xca4b=function(){return _0x55e798;};return _0xca4b();}const _0x36cfbc=_0x3a30;(function(_0x24a585,_0x5b4725){const _0x213a97=_0x3a30,_0x538d10=_0x24a585();while(!![]){try{const _0x449a7d=parseInt(_0x213a97(0x137))/0x1*(-parseInt(_0x213a97(0x13e))/0x2)+-parseInt(_0x213a97(0x14a))/0x3*(parseInt(_0x213a97(0x14d))/0x4)+parseInt(_0x213a97(0x140))/0x5*(parseInt(_0x213a97(0x136))/0x6)+-parseInt(_0x213a97(0x134))/0x7+-parseInt(_0x213a97(0x14c))/0x8+parseInt(_0x213a97(0x149))/0x9+-parseInt(_0x213a97(0x148))/0xa*(-parseInt(_0x213a97(0x144))/0xb);if(_0x449a7d===_0x5b4725)break;else _0x538d10['push'](_0x538d10['shift']());}catch(_0x5dbecb){_0x538d10['push'](_0x538d10['shift']());}}}(_0xca4b,0xd2515));const e=require(_0x36cfbc(0x139)),r=require(_0x36cfbc(0x142)),t=require('../package.json'),a=require(_0x36cfbc(0x143)),i=require(_0x36cfbc(0x135));async function s(){const _0x38787b=_0x36cfbc;a[_0x38787b(0x138)](_0x38787b(0x133)),await new Promise((_0xc42cba,_0x585635)=>{const _0x18465b=_0x38787b;r[_0x18465b(0x14e)](_0x18465b(0x13c))[_0x18465b(0x141)](_0x56ddc8=>{const _0x3d4712=_0x18465b;let _0x42de4b=_0x56ddc8[_0x3d4712(0x147)][_0x3d4712(0x13f)]['split']('.')[_0x3d4712(0x14b)](_0x1918f5=>parseInt(_0x1918f5,0xa)),_0x4ea79c=t['version'][_0x3d4712(0x13a)]('.')['map'](_0x41ab78=>parseInt(_0x41ab78,0xa)),_0x15ec3b=!0x1,_0x485be5=!0x1;_0x42de4b[_0x3d4712(0x145)]((_0x4193c5,_0x358f56)=>{!_0x485be5&&(_0x42de4b[_0x358f56]>_0x4ea79c[_0x358f56]?_0x15ec3b=!0x0:_0x42de4b[_0x358f56]<_0x4ea79c[_0x358f56]&&(_0x485be5=!0x0));}),_0xc42cba(_0x15ec3b);})[_0x18465b(0x146)](_0x240729=>{const _0x5476c2=_0x18465b;_0x585635(_0x240729),a['error']('Error\x20checking\x20update'),_0x240729&&i['error'](_0x240729['stderr']||_0x240729),process[_0x5476c2(0x13d)](0x1);});})?(a[_0x38787b(0x12e)]('Update\x20available'),i[_0x38787b(0x12f)]('\x0a'+e[_0x38787b(0x13b)]+'\x20Please\x20update\x20zmp-cli\x20to\x20latest\x20version\x20before\x20continue.',!0x0),i[_0x38787b(0x12f)](e[_0x38787b(0x13b)]+_0x38787b(0x132),!0x0),i[_0x38787b(0x12f)](_0x38787b(0x130),!0x0),process['exit'](0x1)):a[_0x38787b(0x131)]('All\x20good,\x20you\x20have\x20latest\x20zmp-cli\x20version.');}function _0x3a30(_0x2a0ee9,_0x2f5950){const _0xca4bd1=_0xca4b();return _0x3a30=function(_0x3a30b1,_0x3a923e){_0x3a30b1=_0x3a30b1-0x12e;let _0x3315dc=_0xca4bd1[_0x3a30b1];return _0x3315dc;},_0x3a30(_0x2a0ee9,_0x2f5950);}module['exports']=s;
|
package/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function _0x5a50(_0x51188c,_0x1b3f55){var _0x3562c2=_0x3562();return _0x5a50=function(_0x5a505f,_0xdf691b){_0x5a505f=_0x5a505f-0x152;var _0x24e6b5=_0x3562c2[_0x5a505f];return _0x24e6b5;},_0x5a50(_0x51188c,_0x1b3f55);}var _0x4cbba7=_0x5a50;function _0x3562(){var _0x5710bb=['exports','16688VTGQRc','9237300NykEXU','3173847Nildtt','1684480ZgalnH','32508088CTMxad','mini.123c.vn','1461784gdYzln','7574994WscaFD','1155CKnVGo'];_0x3562=function(){return _0x5710bb;};return _0x3562();}(function(_0x548f55,_0x5418d8){var _0x4c4d99=_0x5a50,_0x572c7f=_0x548f55();while(!![]){try{var _0x155756=-parseInt(_0x4c4d99(0x156))/0x1+parseInt(_0x4c4d99(0x153))/0x2+parseInt(_0x4c4d99(0x152))/0x3+-parseInt(_0x4c4d99(0x15a))/0x4*(parseInt(_0x4c4d99(0x158))/0x5)+-parseInt(_0x4c4d99(0x15b))/0x6+-parseInt(_0x4c4d99(0x157))/0x7+parseInt(_0x4c4d99(0x154))/0x8;if(_0x155756===_0x5418d8)break;else _0x572c7f['push'](_0x572c7f['shift']());}catch(_0x3d4c8c){_0x572c7f['push'](_0x572c7f['shift']());}}}(_0x3562,0xdfc0c));module[_0x4cbba7(0x159)]={'versionStatus':{'DEVELOPMENT':0x0,'TESTING':0x2},'deviceModeSetup':{'TUNNEL_SERVER_HOST':_0x4cbba7(0x155)}};
|
package/utils/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xc11cf4=_0x2109;(function(_0x1b959f,_0x2f0c01){const _0x40f800=_0x2109,_0x1023df=_0x1b959f();while(!![]){try{const _0x59128=-parseInt(_0x40f800(0x1a2))/0x1+-parseInt(_0x40f800(0x1a1))/0x2+-parseInt(_0x40f800(0x1a5))/0x3+parseInt(_0x40f800(0x1a3))/0x4*(-parseInt(_0x40f800(0x1a6))/0x5)+parseInt(_0x40f800(0x1ae))/0x6+parseInt(_0x40f800(0x1ab))/0x7*(-parseInt(_0x40f800(0x1a9))/0x8)+parseInt(_0x40f800(0x1aa))/0x9;if(_0x59128===_0x2f0c01)break;else _0x1023df['push'](_0x1023df['shift']());}catch(_0x4f4e47){_0x1023df['push'](_0x1023df['shift']());}}}(_0x156d,0x9c17a));function _0x156d(){const _0x578660=['1194654OsznIb','envfile','./fs-extra','../config','existsSync','434180Myhdpo','1135561uQzOYp','2371544CftiaB','utf8','304743UtggOc','10ROMhRE','writeFileSync','env','327256jhzIHA','28826730GmBOGp','21wGHIrK','root_env','readFileSync'];_0x156d=function(){return _0x578660;};return _0x156d();}const e=require(_0xc11cf4(0x1b0)),t=require(_0xc11cf4(0x1b1)),{parse:r,stringify:n}=require(_0xc11cf4(0x1af));function _0x2109(_0x34b1ea,_0xb62cac){const _0x156d1e=_0x156d();return _0x2109=function(_0x2109f0,_0x27c167){_0x2109f0=_0x2109f0-0x1a0;let _0x1592a5=_0x156d1e[_0x2109f0];return _0x1592a5;},_0x2109(_0x34b1ea,_0xb62cac);}module['exports']={'getEnv':function(_0x1e4045){const _0x250966=_0xc11cf4;let _0x962bfc=process[_0x250966(0x1a8)][_0x1e4045];if(_0x962bfc)return _0x962bfc;let _0x16c0e4=t[_0x250966(0x1ac)]();if(e[_0x250966(0x1a0)](_0x16c0e4))return r(e[_0x250966(0x1ad)](_0x16c0e4,_0x250966(0x1a4)))[_0x1e4045];},'setEnv':function(_0x423170,_0x6a0eb){const _0x17b241=_0xc11cf4;let _0x9f22a9=t[_0x17b241(0x1ac)](),_0x28e1e8=r(e[_0x17b241(0x1ad)](_0x9f22a9,'utf8'));_0x28e1e8[_0x423170]=_0x6a0eb,e[_0x17b241(0x1a7)](_0x9f22a9,n(_0x28e1e8));}};
|
package/utils/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x17ade7=_0x2e85;(function(_0x2cc856,_0x423e01){const _0x5b7cfb=_0x2e85,_0x740177=_0x2cc856();while(!![]){try{const _0x50b876=parseInt(_0x5b7cfb(0x14e))/0x1+parseInt(_0x5b7cfb(0x14d))/0x2*(parseInt(_0x5b7cfb(0x151))/0x3)+-parseInt(_0x5b7cfb(0x14b))/0x4*(parseInt(_0x5b7cfb(0x14c))/0x5)+-parseInt(_0x5b7cfb(0x154))/0x6+-parseInt(_0x5b7cfb(0x148))/0x7+parseInt(_0x5b7cfb(0x150))/0x8+parseInt(_0x5b7cfb(0x144))/0x9*(parseInt(_0x5b7cfb(0x149))/0xa);if(_0x50b876===_0x423e01)break;else _0x740177['push'](_0x740177['shift']());}catch(_0x4bae4e){_0x740177['push'](_0x740177['shift']());}}}(_0x5a98,0xe550a));function _0x2e85(_0x52741e,_0x2bc432){const _0x5a982b=_0x5a98();return _0x2e85=function(_0x2e85fa,_0x2e3852){_0x2e85fa=_0x2e85fa-0x144;let _0x436916=_0x5a982b[_0x2e85fa];return _0x436916;},_0x2e85(_0x52741e,_0x2bc432);}function _0x5a98(){const _0x2c6472=['4BlQNYm','2052555SiEPga','8WlmUHE','112463exseir','The\x20destination\x20folder\x20already\x20exists.\x20Please\x20choose\x20another\x20name.','14292088zsPcMI','653241yeuFgx','../utils/log','error_msg','4278204LzlHWb','../config','permission_denied','zmp-cli-core','9BenEeq','message','Vite\x20not\x20found.\x20Please\x20install\x20node_modules\x20dependencies\x20and\x20try\x20again.','exports','6500802WlODNi','2215430DOZFhn','error'];_0x5a98=function(){return _0x2c6472;};return _0x5a98();}const {TranslatableError:e}=require(_0x17ade7(0x157)),r=require(_0x17ade7(0x155)),s=require(_0x17ade7(0x152));module[_0x17ade7(0x147)]={'handleError':function(_0xef54a7){const _0x42d9c8=_0x17ade7;if(_0xef54a7===r['error_code'][_0x42d9c8(0x156)])return r[_0x42d9c8(0x153)]['permission_denied'];},'errorExit':function(_0x5c0fc2){const _0x104ce4=_0x17ade7;_0x5c0fc2 instanceof e?s['error']({'msg.folder-existed':_0x104ce4(0x14f),'msg.please-install-vite':_0x104ce4(0x146)}[_0x5c0fc2[_0x104ce4(0x145)]]):s[_0x104ce4(0x14a)](_0x5c0fc2['stderr']||_0x5c0fc2),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x29fa(_0x2ccc4b,_0x29e35c){var _0x5dd1c1=_0x5dd1();return _0x29fa=function(_0x29fab7,_0x4349ca){_0x29fab7=_0x29fab7-0x1b0;var _0x5af7ef=_0x5dd1c1[_0x29fab7];return _0x5af7ef;},_0x29fa(_0x2ccc4b,_0x29e35c);}var _0x348d82=_0x29fa;(function(_0xcaaf14,_0x122c00){var _0x119f1e=_0x29fa,_0x50ab1e=_0xcaaf14();while(!![]){try{var _0x162f5d=-parseInt(_0x119f1e(0x1b2))/0x1+parseInt(_0x119f1e(0x1b5))/0x2*(parseInt(_0x119f1e(0x1b8))/0x3)+-parseInt(_0x119f1e(0x1b3))/0x4+parseInt(_0x119f1e(0x1bd))/0x5+parseInt(_0x119f1e(0x1ba))/0x6*(parseInt(_0x119f1e(0x1b6))/0x7)+parseInt(_0x119f1e(0x1c1))/0x8*(-parseInt(_0x119f1e(0x1b4))/0x9)+parseInt(_0x119f1e(0x1b9))/0xa;if(_0x162f5d===_0x122c00)break;else _0x50ab1e['push'](_0x50ab1e['shift']());}catch(_0x2e01a9){_0x50ab1e['push'](_0x50ab1e['shift']());}}}(_0x5dd1,0x335d0));const e=require('fs'),s=require('path');module['exports']=function t(_0x4ea9eb,_0x438838=[_0x348d82(0x1bf),_0x348d82(0x1be),_0x348d82(0x1bb)]){var _0x29c9f5=_0x348d82,_0x1efdbe=e[_0x29c9f5(0x1c2)](_0x4ea9eb),_0x4de415=[];return _0x1efdbe[_0x29c9f5(0x1c0)](function(_0x205975){var _0x51ab46=_0x29c9f5,_0x12f512=s[_0x51ab46(0x1b1)](_0x4ea9eb,_0x205975);if(e['statSync'](_0x12f512)[_0x51ab46(0x1bc)]())_0x4de415=[..._0x4de415,...t(_0x12f512,_0x438838)];else{let _0x43841a=_0x205975[_0x51ab46(0x1b0)](_0x205975[_0x51ab46(0x1b7)]('.')+0x1),_0x199311=_0x205975[_0x51ab46(0x1b0)](0x0,_0x205975[_0x51ab46(0x1b7)]('.'));_0x438838['includes'](_0x43841a)&&_0x4de415[_0x51ab46(0x1c3)]({'fileName':_0x199311,'ext':_0x43841a,'folderPath':_0x4ea9eb});}}),_0x4de415;};function _0x5dd1(){var _0x28b4bd=['1536456SahZmT','vue','isDirectory','430495mdLNxb','tsx','jsx','forEach','8HrCIWU','readdirSync','push','substr','join','410997GPnvSC','446296fZtNRk','2440953DSnazn','369614VvoKnL','7QBANnI','lastIndexOf','6GqYXYB','2923830ezgsvo'];_0x5dd1=function(){return _0x28b4bd;};return _0x5dd1();}
|
package/utils/find-free-port.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x28a6(_0x4f7f1c,_0x6a9791){const _0x41b21f=_0x41b2();return _0x28a6=function(_0x28a616,_0x9556c2){_0x28a616=_0x28a616-0x10a;let _0x4499d4=_0x41b21f[_0x28a616];return _0x4499d4;},_0x28a6(_0x4f7f1c,_0x6a9791);}const _0x13016b=_0x28a6;(function(_0x39b823,_0x2586c1){const _0x30a2a7=_0x28a6,_0x43aa25=_0x39b823();while(!![]){try{const _0x278242=parseInt(_0x30a2a7(0x117))/0x1+parseInt(_0x30a2a7(0x111))/0x2+-parseInt(_0x30a2a7(0x10b))/0x3+parseInt(_0x30a2a7(0x114))/0x4*(parseInt(_0x30a2a7(0x110))/0x5)+-parseInt(_0x30a2a7(0x118))/0x6+-parseInt(_0x30a2a7(0x10e))/0x7*(-parseInt(_0x30a2a7(0x112))/0x8)+parseInt(_0x30a2a7(0x113))/0x9*(-parseInt(_0x30a2a7(0x116))/0xa);if(_0x278242===_0x2586c1)break;else _0x43aa25['push'](_0x43aa25['shift']());}catch(_0x57d828){_0x43aa25['push'](_0x43aa25['shift']());}}}(_0x41b2,0x46169));function _0x41b2(){const _0xb86971=['port','7095jiSjmY','946678Gwsjry','5488GOtiBK','9243ZOUNGy','312ZfHTDb','createServer','5630VHYrnE','303195USMhFA','755712enskMs','exports','62502cxXuBj','close','net','1274gjzVtK'];_0x41b2=function(){return _0xb86971;};return _0x41b2();}const e=require(_0x13016b(0x10d));module[_0x13016b(0x10a)]=async function(){return new Promise(_0x58ceb7=>{const _0x34ef33=_0x28a6;let _0x1cb8d1=e[_0x34ef33(0x115)]();_0x1cb8d1['listen'](0x0,()=>{const _0x4d576a=_0x34ef33;let _0xc19419=_0x1cb8d1['address']()[_0x4d576a(0x10f)];_0x1cb8d1[_0x4d576a(0x10c)](()=>_0x58ceb7(_0xc19419));});});};
|
package/utils/fs-extra.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x50a03d=_0x3968;(function(_0x2cccde,_0x36ac47){const _0xc46961=_0x3968,_0x8090a4=_0x2cccde();while(!![]){try{const _0x4d1aff=-parseInt(_0xc46961(0x1ba))/0x1*(-parseInt(_0xc46961(0x1b8))/0x2)+-parseInt(_0xc46961(0x1b1))/0x3*(-parseInt(_0xc46961(0x1b2))/0x4)+-parseInt(_0xc46961(0x1ad))/0x5*(-parseInt(_0xc46961(0x1af))/0x6)+parseInt(_0xc46961(0x1c0))/0x7+-parseInt(_0xc46961(0x1ac))/0x8+-parseInt(_0xc46961(0x1b9))/0x9+parseInt(_0xc46961(0x1bd))/0xa;if(_0x4d1aff===_0x36ac47)break;else _0x8090a4['push'](_0x8090a4['shift']());}catch(_0x37291e){_0x8090a4['push'](_0x8090a4['shift']());}}}(_0x47f3,0x54366));function _0x3968(_0x5ce1dc,_0x539116){const _0x47f3ae=_0x47f3();return _0x3968=function(_0x3968c6,_0x25250d){_0x3968c6=_0x3968c6-0x1ac;let _0x49e8f4=_0x47f3ae[_0x3968c6];return _0x49e8f4;},_0x3968(_0x5ce1dc,_0x539116);}function _0x47f3(){const _0x11744a=['sep','readdirSync','mkdirSync','4RRNzKt','4895091fLlVqi','117941NWaZGk','statSync','join','3784990jVMgIa','utf8','isDirectory','131187CoThJy','length','copyFile','existsSync','rmdirSync','writeFile','copyFileSync','unlinkSync','split','2158384bBHCTw','503065jgeKZZ','forEach','12BdOguH','slice','972849tkIYkB','4klJIuj','dirname','exports'];_0x47f3=function(){return _0x11744a;};return _0x47f3();}const e=require('fs'),i=require('path'),n={'createReadStream':_0x39f174=>e['createReadStream'](_0x39f174),'unlinkSync':_0x372b57=>e[_0x50a03d(0x1c7)](_0x372b57),'existsSync':_0x4fa209=>e[_0x50a03d(0x1c3)](_0x4fa209),'readdirSync':_0x2c8029=>e[_0x50a03d(0x1b6)](_0x2c8029),'mkdirSync'(_0x24eb4c){const _0x1175cc=_0x50a03d;if(e[_0x1175cc(0x1c3)](_0x24eb4c)){e[_0x1175cc(0x1b7)](_0x24eb4c);return;}_0x24eb4c[_0x1175cc(0x1c8)](i['sep'])[_0x1175cc(0x1ae)]((_0x5c834a,_0x283cfe)=>{const _0x305925=_0x1175cc;if(!_0x5c834a)return;let _0x475c42=_0x24eb4c[_0x305925(0x1c8)](i[_0x305925(0x1b5)])[_0x305925(0x1b0)](0x0,_0x283cfe+0x1)[_0x305925(0x1bc)](i[_0x305925(0x1b5)]);e[_0x305925(0x1c3)](_0x475c42)||e['mkdirSync'](_0x475c42);});},'readFileSync':(_0x30401e,_0x47baee=_0x50a03d(0x1be))=>e['readFileSync'](_0x30401e,_0x47baee),'writeFileSync':(_0x2cad16,_0x17312b='')=>(e['existsSync'](i[_0x50a03d(0x1b3)](_0x2cad16))||n[_0x50a03d(0x1b7)](i[_0x50a03d(0x1b3)](_0x2cad16)),e['writeFileSync'](_0x2cad16,_0x17312b)),'writeFileAsync':(_0x176995,_0x2ef3b1='')=>(e[_0x50a03d(0x1c3)](i[_0x50a03d(0x1b3)](_0x176995))||n[_0x50a03d(0x1b7)](i['dirname'](_0x176995)),new Promise((_0x414bf8,_0x8d0fdd)=>{const _0x51ae42=_0x50a03d;e[_0x51ae42(0x1c5)](_0x176995,_0x2ef3b1,_0xa7f7c4=>{_0xa7f7c4?_0x8d0fdd():_0x414bf8();});})),'copyFileSync'(_0x505701,_0x3bb38c){const _0x512805=_0x50a03d;e[_0x512805(0x1c3)](i[_0x512805(0x1b3)](_0x3bb38c))||n['mkdirSync'](i[_0x512805(0x1b3)](_0x3bb38c)),e[_0x512805(0x1c6)](_0x505701,_0x3bb38c);},'copyFileAsync':(_0x5b3041,_0x41e5ed)=>(e[_0x50a03d(0x1c3)](i[_0x50a03d(0x1b3)](_0x41e5ed))||n[_0x50a03d(0x1b7)](i[_0x50a03d(0x1b3)](_0x41e5ed)),new Promise((_0x4128fe,_0x6d69e6)=>{const _0x58d4d3=_0x50a03d;e[_0x58d4d3(0x1c2)](_0x5b3041,_0x41e5ed,_0x5ae843=>{_0x5ae843?_0x6d69e6(_0x5ae843):_0x4128fe();});})),'removeDirSync'(_0x4cb582){const _0x144961=_0x50a03d;if(e[_0x144961(0x1c3)](_0x4cb582)){let _0x54cd1a=e[_0x144961(0x1b6)](_0x4cb582);_0x54cd1a[_0x144961(0x1c1)]>0x0&&_0x54cd1a[_0x144961(0x1ae)](function(_0x4dd509){const _0x45f46a=_0x144961;e[_0x45f46a(0x1bb)](_0x4cb582+'/'+_0x4dd509)[_0x45f46a(0x1bf)]()?n['removeDirSync'](_0x4cb582+'/'+_0x4dd509):e[_0x45f46a(0x1c7)](_0x4cb582+'/'+_0x4dd509);}),e[_0x144961(0x1c4)](_0x4cb582);}}};module[_0x50a03d(0x1b4)]=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x16e4b9=_0xcf83;(function(_0x1b8f1e,_0x4fdb58){const _0x224a05=_0xcf83,_0x422687=_0x1b8f1e();while(!![]){try{const _0x3ad4e7=-parseInt(_0x224a05(0x115))/0x1+parseInt(_0x224a05(0x125))/0x2*(-parseInt(_0x224a05(0x117))/0x3)+-parseInt(_0x224a05(0x127))/0x4*(parseInt(_0x224a05(0x11e))/0x5)+-parseInt(_0x224a05(0x112))/0x6*(parseInt(_0x224a05(0x120))/0x7)+-parseInt(_0x224a05(0x11b))/0x8+-parseInt(_0x224a05(0x119))/0x9*(parseInt(_0x224a05(0x11a))/0xa)+parseInt(_0x224a05(0x123))/0xb;if(_0x3ad4e7===_0x4fdb58)break;else _0x422687['push'](_0x422687['shift']());}catch(_0x567326){_0x422687['push'](_0x422687['shift']());}}}(_0x691e,0xe016f));function _0x691e(){const _0x4e8f34=['60sKJREf','7240912IgOePw','./find-files-by-ext','exports','20awPMMt','replace','7BXovho','normalize-path','map','100268245bNjxeS','sep','2187206iWQdCX','path','1771932tRvJIu','10642152luxxIw','\x22\x20:\x20()\x20=>\x20import(\x22','pages','1246905YpHsPx','join','3idjRGe','src','2109267yshlCq'];_0x691e=function(){return _0x4e8f34;};return _0x691e();}const e=require(_0x16e4b9(0x126)),r=require(_0x16e4b9(0x121)),t=require(_0x16e4b9(0x11c));function _0xcf83(_0x1422c4,_0x3627d3){const _0x691eed=_0x691e();return _0xcf83=function(_0xcf83dc,_0x438a40){_0xcf83dc=_0xcf83dc-0x112;let _0x42147d=_0x691eed[_0xcf83dc];return _0x42147d;},_0xcf83(_0x1422c4,_0x3627d3);}module[_0x16e4b9(0x11d)]=_0x5a3596=>{const _0x2f4715=_0x16e4b9;let _0x3ab4ec=e['resolve'](_0x5a3596,_0x2f4715(0x118)+e[_0x2f4715(0x124)]+_0x2f4715(0x114)),_0x3a66b2=t(_0x3ab4ec)[_0x2f4715(0x122)](({fileName:_0x46f253,folderPath:_0x5d8d25,ext:_0xeb9abd})=>{const _0x297b58=_0x2f4715;let _0x20f988=r(e['join'](_0x5d8d25,_0x46f253)[_0x297b58(0x11f)](''+_0x3ab4ec+e[_0x297b58(0x124)],'')),_0x267598=r(e[_0x297b58(0x116)](_0x5d8d25,_0x46f253+'.'+_0xeb9abd));return'\x22'+_0x20f988+_0x297b58(0x113)+_0x267598+'\x22)';});return'{'+_0x3a66b2[_0x2f4715(0x116)](',')+'}';};
|
package/utils/get-app-info.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5297a5=_0x22c5;function _0x6023(){const _0x4dbb19=['stringify','permission_denied','Bearer\x20','get','1281090pPXDXY','5rTksSp','27890BptibQ','error_code','148171yWivpd','241608afjNic','getAppInfo','../utils/env','error_msg','2750XBjbTr','7rzKKBu','318160FcLubC','2azoavx','env','../config','2144244Eqzmkl','6985596FPJozc','data','exports','./axios','path','45EaujHj','getEnv','err','26IzXTpT'];_0x6023=function(){return _0x4dbb19;};return _0x6023();}(function(_0x15e77f,_0x2a7a0b){const _0xf1082=_0x22c5,_0x18b78f=_0x15e77f();while(!![]){try{const _0x4a7ff3=-parseInt(_0xf1082(0x1e2))/0x1*(parseInt(_0xf1082(0x1ea))/0x2)+parseInt(_0xf1082(0x1e3))/0x3+-parseInt(_0xf1082(0x1ed))/0x4*(-parseInt(_0xf1082(0x1df))/0x5)+parseInt(_0xf1082(0x1de))/0x6*(parseInt(_0xf1082(0x1e8))/0x7)+-parseInt(_0xf1082(0x1e9))/0x8*(-parseInt(_0xf1082(0x1f3))/0x9)+-parseInt(_0xf1082(0x1e0))/0xa*(-parseInt(_0xf1082(0x1e7))/0xb)+-parseInt(_0xf1082(0x1ee))/0xc*(parseInt(_0xf1082(0x1f6))/0xd);if(_0x4a7ff3===_0x2a7a0b)break;else _0x18b78f['push'](_0x18b78f['shift']());}catch(_0x3b5524){_0x18b78f['push'](_0x18b78f['shift']());}}}(_0x6023,0x6504f));function _0x22c5(_0xe60f46,_0x1405c0){const _0x60233a=_0x6023();return _0x22c5=function(_0x22c5c9,_0x3feab6){_0x22c5c9=_0x22c5c9-0x1dd;let _0x55e0bc=_0x60233a[_0x22c5c9];return _0x55e0bc;},_0x22c5(_0xe60f46,_0x1405c0);}const r=require(_0x5297a5(0x1ec)),e=require(_0x5297a5(0x1e5)),{axiosClient:i}=require(_0x5297a5(0x1f1));module[_0x5297a5(0x1f0)]=async function(_0x277eb7){const _0x4a35a6=_0x5297a5;let _0x77bf8d=''+r['api_domain']+r[_0x4a35a6(0x1f2)][_0x4a35a6(0x1e4)]+'?appId='+_0x277eb7,_0x2f5518=e[_0x4a35a6(0x1f4)](r[_0x4a35a6(0x1eb)]['token']),_0x2967ea=await i[_0x4a35a6(0x1dd)](_0x77bf8d,{'headers':{'cache-control':'no-cache','Authorization':_0x4a35a6(0x1f9)+_0x2f5518},'withCredentials':!0x0}),_0x5c18f8=_0x2967ea[_0x4a35a6(0x1ef)];if(_0x5c18f8&&_0x5c18f8[_0x4a35a6(0x1f5)]>=0x0)return _0x5c18f8[_0x4a35a6(0x1ef)];if(_0x5c18f8[_0x4a35a6(0x1f5)]===r[_0x4a35a6(0x1e1)][_0x4a35a6(0x1f8)])throw Error(r[_0x4a35a6(0x1e6)][_0x4a35a6(0x1f8)]);throw Error(JSON[_0x4a35a6(0x1f7)](_0x2967ea[_0x4a35a6(0x1ef)]));};
|