zmp-cli 4.0.1 → 4.0.2
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/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/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 +1 -1
- 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/get-latest-version.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/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x23b7c9=_0x59c8;(function(_0x463612,_0x276084){const _0x3705ae=_0x59c8,_0x303cc6=_0x463612();while(!![]){try{const _0x58a707=parseInt(_0x3705ae(0x18a))/0x1+parseInt(_0x3705ae(0x171))/0x2*(parseInt(_0x3705ae(0x185))/0x3)+-parseInt(_0x3705ae(0x17b))/0x4*(parseInt(_0x3705ae(0x17e))/0x5)+-parseInt(_0x3705ae(0x169))/0x6+-parseInt(_0x3705ae(0x187))/0x7*(-parseInt(_0x3705ae(0x16d))/0x8)+parseInt(_0x3705ae(0x18c))/0x9+parseInt(_0x3705ae(0x174))/0xa*(-parseInt(_0x3705ae(0x179))/0xb);if(_0x58a707===_0x276084)break;else _0x303cc6['push'](_0x303cc6['shift']());}catch(_0x2045ca){_0x303cc6['push'](_0x303cc6['shift']());}}}(_0x1572,0x4c00c));function _0x59c8(_0x3e1e39,_0x3bd211){const _0x157214=_0x1572();return _0x59c8=function(_0x59c8b4,_0x13ba7c){_0x59c8b4=_0x59c8b4-0x166;let _0x122627=_0x157214[_0x59c8b4];return _0x122627;},_0x59c8(_0x3e1e39,_0x3bd211);}const e=require(_0x23b7c9(0x18e)),r=require(_0x23b7c9(0x18f)),t=require(_0x23b7c9(0x16c))[_0x23b7c9(0x186)],i=require(_0x23b7c9(0x166)),{buildApp:o}=require(_0x23b7c9(0x168)),n=require(_0x23b7c9(0x17c)),s=require(_0x23b7c9(0x16e)),{errorExit:a}=require(_0x23b7c9(0x16f)),u=require(_0x23b7c9(0x176)),l=require(_0x23b7c9(0x191)),{existsSync:p}=require('fs'),g=require(_0x23b7c9(0x172)),c=s[_0x23b7c9(0x16a)](_0x23b7c9(0x17a))||_0x23b7c9(0x190),w=e['gray'](_0x23b7c9(0x181)),d=e[_0x23b7c9(0x177)](_0x23b7c9(0x167));function _0x1572(){const _0xf41e5f=['yellow','nextVersion','605LsHmfe','NODE_ENV','140892gTGBhA','../utils/fs-extra','env','25aUmUgK','zmp-framework','Build\x20Done!\x20✅','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','error','Building\x20for\x20production...\x20','join','6588mOUKJq','default','837886KPAEVv','mode','appConfig','211730BjTaKA','statusStart','4421889WRkFOB','green','chalk','path','production','../utils/generate-pages-map','filename','statusDone','latestVersion','appConfigJson','@rollup/plugin-replace','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','zmp-cli-core','26658twjdVd','getEnv','cwd','@rollup/plugin-dynamic-import-vars','16sHxSfb','../utils/env','../utils/error','www','368duQzIQ','../utils/get-latest-version','NODE_TLS_REJECT_UNAUTHORIZED','155390WmZoSi','text','../config'];_0x1572=function(){return _0xf41e5f;};return _0x1572();}module['exports']=async(_0x3489b0={},_0xebba43)=>{const _0x462148=_0x23b7c9;_0xebba43||(_0xebba43={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0xebba43[_0x462148(0x18b)]((_0x462148(0x190)===c?_0x462148(0x183):'Building\x20development\x20version...\x20')+w),process['env'][_0x462148(0x173)]='1';let _0x3e34d7=_0x3489b0[_0x462148(0x16b)]||process[_0x462148(0x16b)](),_0x27870f=_0x294209=>r[_0x462148(0x184)](_0x3e34d7,_0x294209),_0xe9fa47=_0x3489b0[_0x462148(0x195)]||require(_0x27870f(u['filename'][_0x462148(0x189)]));p(r[_0x462148(0x184)](_0x3e34d7,'node_modules',_0x462148(0x17f)))&&_0xebba43[_0x462148(0x175)](d);try{let _0x11eac9,_0x4d93cb=s[_0x462148(0x16a)](u[_0x462148(0x17d)]['appId']);if(!_0x4d93cb)throw Error(u['error_msg']['permission_denied']);let _0x13b7be=_0x3489b0[_0x462148(0x178)];if(!_0x13b7be){let _0x19a023=await g(_0x4d93cb),_0x490601=_0x19a023&&_0x19a023['latestVersion']&&Number(_0x19a023[_0x462148(0x194)]);null==_0x490601&&(_0x490601=0x0);}let _0x3eab66=await o({'cwd':_0x3e34d7,'mode':_0x3489b0[_0x462148(0x188)]||c,'appId':_0x4d93cb,'nextVersion':_0x13b7be,'currentVersion':_0x11eac9,'target':_0x3489b0['versionStatus']??0x2,'appConfig':_0xe9fa47,'outDir':_0x462148(0x170),'vite2RollupPlugins':[i({'values':{'ZMP_IMPORT_PAGES':()=>l(_0x3e34d7)}}),t({'warnOnError':!0x0})],'customLogger':{'info':_0xebba43[_0x462148(0x175)],'warn':_0xebba43[_0x462148(0x175)],'warnOnce':_0xebba43['text'],'error':_0xebba43[_0x462148(0x182)]}});return _0x3eab66&&_0x3eab66['appConfigJson']&&n['writeFileSync'](_0x27870f('www/'+u[_0x462148(0x192)][_0x462148(0x189)]),JSON['stringify'](_0x3eab66[_0x462148(0x195)])),_0xebba43[_0x462148(0x193)](''+e['bold'][_0x462148(0x18d)](_0x462148(0x180))),_0x3eab66?.['appConfigJson'];}catch(_0x506e87){_0xebba43['statusError']('Error\x20building\x20project'),a(_0x506e87);return;}};
|
package/config/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2215b1=_0x2c89;(function(_0x4953c8,_0x3a19c6){var _0x5e3c3e=_0x2c89,_0x401408=_0x4953c8();while(!![]){try{var _0x3d4f1a=-parseInt(_0x5e3c3e(0x145))/0x1+parseInt(_0x5e3c3e(0x154))/0x2*(parseInt(_0x5e3c3e(0x147))/0x3)+parseInt(_0x5e3c3e(0x149))/0x4*(parseInt(_0x5e3c3e(0x14a))/0x5)+-parseInt(_0x5e3c3e(0x148))/0x6+-parseInt(_0x5e3c3e(0x152))/0x7*(parseInt(_0x5e3c3e(0x159))/0x8)+parseInt(_0x5e3c3e(0x14d))/0x9*(-parseInt(_0x5e3c3e(0x158))/0xa)+parseInt(_0x5e3c3e(0x144))/0xb;if(_0x3d4f1a===_0x3a19c6)break;else _0x401408['push'](_0x401408['shift']());}catch(_0x169e88){_0x401408['push'](_0x401408['shift']());}}}(_0x2e46,0x8c312));function _0x2c89(_0x47aa10,_0x5683aa){var _0x2e460c=_0x2e46();return _0x2c89=function(_0x2c89ac,_0x3fae50){_0x2c89ac=_0x2c89ac-0x140;var _0x7421b1=_0x2e460c[_0x2c89ac];return _0x7421b1;},_0x2c89(_0x47aa10,_0x5683aa);}module[_0x2215b1(0x150)]={'filename':{'appConfig':_0x2215b1(0x157),'zmpConfig':'zmp-cli.json','packageJson':_0x2215b1(0x155)},'api_domain':_0x2215b1(0x14b),'zdn_url':_0x2215b1(0x140),'path':{'login':_0x2215b1(0x143),'requestLogin':_0x2215b1(0x153),'checkLoginStatus':_0x2215b1(0x151),'uploadAppByChunk':'app/upload-chunk','requestUploadResumable':'app/request-upload','getAppInfo':'app/get-info','getLatestVersion':_0x2215b1(0x14c)},'dirname':__dirname,'root_env':()=>process[_0x2215b1(0x14f)]()+_0x2215b1(0x14e),'env':{'appId':'APP_ID','token':'ZMP_TOKEN'},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x2215b1(0x146),'permission_denied':_0x2215b1(0x141),'request_timeout':_0x2215b1(0x142)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x2215b1(0x156),'forceChunkSize':!0x1}};function _0x2e46(){var _0x15e851=['dev-tools/app/get-info','190521OagOJP','/.env','cwd','exports','admin/get-login-status','2039807LLFOfl','admin/request-login','18dirhAy','package.json','octet','app-config.json','300PXGGac','16OcfqLF','//h5.zdn.vn/zapps/','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','Request\x20Timeout','admin/login','20760179fkycVR','438679yuZlMP','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','44937sKeyJo','2877384aGcEPb','5284PMNzrX','2605MFVKKu','https://zmp-api.developers.zalo.me/'];_0x2e46=function(){return _0x15e851;};return _0x2e46();}
|
package/create/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3b2a(_0x2b3171,_0x33a12f){const _0xc675c9=_0xc675();return _0x3b2a=function(_0x3b2a1d,_0x114ae7){_0x3b2a1d=_0x3b2a1d-0x1b3;let _0x29883b=_0xc675c9[_0x3b2a1d];return _0x29883b;},_0x3b2a(_0x2b3171,_0x33a12f);}const _0x391e96=_0x3b2a;(function(_0x36b90f,_0x3bedd6){const _0x3b16c2=_0x3b2a,_0x5b944b=_0x36b90f();while(!![]){try{const _0x4429a6=-parseInt(_0x3b16c2(0x1c4))/0x1+-parseInt(_0x3b16c2(0x1cd))/0x2+parseInt(_0x3b16c2(0x1ed))/0x3*(-parseInt(_0x3b16c2(0x1c2))/0x4)+parseInt(_0x3b16c2(0x1e6))/0x5*(parseInt(_0x3b16c2(0x1ea))/0x6)+-parseInt(_0x3b16c2(0x1e9))/0x7+-parseInt(_0x3b16c2(0x1da))/0x8+-parseInt(_0x3b16c2(0x1c9))/0x9*(-parseInt(_0x3b16c2(0x1bc))/0xa);if(_0x4429a6===_0x3bedd6)break;else _0x5b944b['push'](_0x5b944b['shift']());}catch(_0x2a99d5){_0x5b944b['push'](_0x5b944b['shift']());}}}(_0xc675,0x98971));const e=require(_0x391e96(0x1d3)),t=require(_0x391e96(0x1b9)),n=require(_0x391e96(0x1ca)),r=require(_0x391e96(0x1d8)),{initProject:i}=require(_0x391e96(0x1bf)),o=require(_0x391e96(0x1d1)),{errorExit:s}=require(_0x391e96(0x1d5)),a=require(_0x391e96(0x1d2)),c=require(_0x391e96(0x1e3)),l=require(_0x391e96(0x1b7)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x391e96(0x1df)](_0x391e96(0x1b8));async function f(_0x2d1434,_0x35f84a){const _0x414db1=_0x391e96;_0x35f84a[_0x414db1(0x1d7)]('Creating\x20project\x20files');try{let {cwd:_0x361625,template:_0x2aa1fc,folderName:_0x312a5a,name:_0x41e1b5}=_0x2d1434;await i({'cwd':_0x361625,'template':_0x2aa1fc,'folderName':_0x312a5a,'projectName':_0x41e1b5});}catch(_0x2d3c26){_0x35f84a[_0x414db1(0x1bb)](_0x414db1(0x1c0)),s(_0x2d3c26);}_0x35f84a[_0x414db1(0x1ba)](_0x414db1(0x1eb));}async function m(_0x37b9e4){const _0x5d5a24=_0x391e96;let _0x318f34=t[_0x5d5a24(0x1ee)](_0x37b9e4[_0x5d5a24(0x1c1)],_0x5d5a24(0x1d0)),_0x269e32=t[_0x5d5a24(0x1ee)](_0x37b9e4['cwd'],_0x37b9e4[_0x5d5a24(0x1f0)],'.env');p(_0x318f34)&&!p(_0x269e32)&&u(_0x318f34,_0x269e32);}async function g(_0xfaef8c,_0x25705c){const _0x2325bb=_0x391e96;let {cwd:_0x420f42}=_0xfaef8c;_0x25705c[_0x2325bb(0x1d7)](_0x2325bb(0x1e4));let _0x461605=c(_0xfaef8c);o[_0x2325bb(0x1c8)](t[_0x2325bb(0x1bd)](_0x420f42,a[_0x2325bb(0x1cc)]['appConfig']),_0x461605[_0x2325bb(0x1cf)]),_0x25705c[_0x2325bb(0x1ba)](_0x2325bb(0x1e4));}async function $(_0x14888f,_0x397566){const _0x4dfbe3=_0x391e96;let _0x5efe17=t[_0x4dfbe3(0x1bd)](_0x14888f[_0x4dfbe3(0x1c1)],_0x14888f[_0x4dfbe3(0x1f0)]);_0x397566['statusStart'](_0x4dfbe3(0x1d9)+d);let _0x2c2775=_0x5efe17===process[_0x4dfbe3(0x1c1)]();try{_0x2c2775?await e[_0x4dfbe3(0x1be)](_0x4dfbe3(0x1c3),!0x0):await e[_0x4dfbe3(0x1be)](_0x4dfbe3(0x1d4)+_0x5efe17[_0x4dfbe3(0x1cb)](/ /g,'\x5c\x20')+_0x4dfbe3(0x1b6),!0x0);}catch(_0x268ef2){_0x397566['statusError'](_0x4dfbe3(0x1e1)),s(_0x268ef2);return;}_0x397566[_0x4dfbe3(0x1ba)]('Installing\x20NPM\x20Dependencies');}async function h(_0x19a5f0,_0x28c667){const _0x3c640d=_0x391e96;let _0x1324e3=l(['s','r'])[_0x3c640d(0x1c6)](_0xaf3277=>'-\x20'+_0xaf3277[_0x3c640d(0x1ec)]+'\x20Run\x20\x22npm\x20run\x20'+_0xaf3277['name']+'\x22\x20-\x20'+_0xaf3277[_0x3c640d(0x1b3)]),_0x5cc6a2='\x0a'+n[_0x3c640d(0x1c7)](r[_0x3c640d(0x1dc)])+'\x20'+n[_0x3c640d(0x1c7)](_0x3c640d(0x1e5))+_0x3c640d(0x1d6)+n[_0x3c640d(0x1c7)](r['info'])+'\x20'+n['bold']('Next\x20steps:')+_0x3c640d(0x1e0)+_0x19a5f0[_0x3c640d(0x1f0)]+'\x22\x0a'+_0x1324e3[_0x3c640d(0x1bd)]('\x0a')+'\x0a-\x20📖\x20Visit\x20documentation\x20at\x20'+n[_0x3c640d(0x1c7)](_0x3c640d(0x1ce))+_0x3c640d(0x1dd)+n[_0x3c640d(0x1c7)](_0x3c640d(0x1b5))+_0x3c640d(0x1de);_0x28c667[_0x3c640d(0x1b4)](_0x5cc6a2);}async function y(_0x28e0bc,_0x142958){const _0x320b3f=_0x391e96;let _0x345470='\x0a'+n[_0x320b3f(0x1c7)](r[_0x320b3f(0x1dc)])+'\x20'+n[_0x320b3f(0x1c7)](_0x320b3f(0x1e5))+_0x320b3f(0x1d6)+n[_0x320b3f(0x1c7)](r[_0x320b3f(0x1c5)])+'\x20'+n[_0x320b3f(0x1c7)](_0x320b3f(0x1e8))+_0x320b3f(0x1e2)+n[_0x320b3f(0x1c7)](_0x320b3f(0x1ef))+_0x320b3f(0x1db);_0x142958[_0x320b3f(0x1b4)](_0x345470);}function _0xc675(){const _0x555f0a=['(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','path','statusDone','statusError','100xkhewg','join','promise','zmp-cli-core','Error\x20creating\x20project\x20files','cwd','408356iOGsDC','npm\x20install','756263cPaSrX','info','map','bold','writeFileSync','2896236gfoqJn','chalk','replace','filename','47370gSMvaz','https://mini.zalo.me/','content','.env','../utils/fs-extra','../config','exec-sh','cd\x20','../utils/error','\x20✅\x0a\x0a','statusStart','log-symbols','Installing\x20NPM\x20Dependencies\x20','929704iphhZn','\x0a\x20\x20','success','\x0a-\x20📖\x20Check\x20','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','gray','\x0a-\x20👉\x20Run\x20\x22cd\x20','Error\x20installing\x20NPM\x20Dependencies','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','./utils/generate-app-config','Generating\x20app-config.json','Done!','13285dfyKNy','newProject','Next\x20steps:','6342112UDPEBk','750weGpmE','Creating\x20project\x20files','icon','33goSuqu','resolve','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','folderName','description','text','README.md','\x20&&\x20npm\x20install','./utils/generate-npm-scripts'];_0xc675=function(){return _0x555f0a;};return _0xc675();}module['exports']=async(_0x2a7d5f={},_0x236b85)=>{const _0x501650=_0x391e96;for(let _0x3e1a3b of(_0x236b85||(_0x236b85={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x2a7d5f[_0x501650(0x1e7)]?[f,m,$,h]:[g,y]))await _0x3e1a3b(_0x2a7d5f,_0x236b85);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4378(){const _0x323803=['#1843EF','4VoTqoY','white','552789RZjMIk','back','1884804iSoqte','16kkZpsM','3424098ltduNw','75477RxBKKT','330FfHncQ','1591541IiCCrJ','stringify','181616KalMFX','exports','3361020bYPERz','normal'];_0x4378=function(){return _0x323803;};return _0x4378();}const _0x2c70ef=_0x32ac;function _0x32ac(_0x113c59,_0x340646){const _0x4378f2=_0x4378();return _0x32ac=function(_0x32ac2c,_0x5b8782){_0x32ac2c=_0x32ac2c-0x121;let _0x1af3a7=_0x4378f2[_0x32ac2c];return _0x1af3a7;},_0x32ac(_0x113c59,_0x340646);}(function(_0x40c7d1,_0x5828d5){const _0x523a1a=_0x32ac,_0x564bc6=_0x40c7d1();while(!![]){try{const _0x369a86=parseInt(_0x523a1a(0x124))/0x1+-parseInt(_0x523a1a(0x12d))/0x2+-parseInt(_0x523a1a(0x130))/0x3*(-parseInt(_0x523a1a(0x129))/0x4)+-parseInt(_0x523a1a(0x126))/0x5+-parseInt(_0x523a1a(0x12f))/0x6+-parseInt(_0x523a1a(0x122))/0x7*(-parseInt(_0x523a1a(0x12e))/0x8)+parseInt(_0x523a1a(0x12b))/0x9*(parseInt(_0x523a1a(0x121))/0xa);if(_0x369a86===_0x5828d5)break;else _0x564bc6['push'](_0x564bc6['shift']());}catch(_0xa3b3e3){_0x564bc6['push'](_0x564bc6['shift']());}}}(_0x4378,0x7ad41));module[_0x2c70ef(0x125)]=function(_0x5ea77a){const _0x554cb7=_0x2c70ef;let {name:_0x542694}=_0x5ea77a,_0x4d9ea0={'title':_0x542694,'headerTitle':_0x542694,'headerColor':_0x554cb7(0x128),'textColor':_0x554cb7(0x12a),'leftButton':_0x554cb7(0x12c),'statusBar':_0x554cb7(0x127),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x554cb7(0x123)]({'app':_0x4d9ea0,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x4d9ea0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x57b1cb=_0x20ae;(function(_0x3e0fd0,_0x366312){const _0x381a80=_0x20ae,_0x3a1c21=_0x3e0fd0();while(!![]){try{const _0x16ef41=parseInt(_0x381a80(0x1b4))/0x1+parseInt(_0x381a80(0x1a6))/0x2+-parseInt(_0x381a80(0x1ad))/0x3+parseInt(_0x381a80(0x1af))/0x4+-parseInt(_0x381a80(0x1b3))/0x5+-parseInt(_0x381a80(0x1b1))/0x6*(-parseInt(_0x381a80(0x1ae))/0x7)+-parseInt(_0x381a80(0x1ac))/0x8;if(_0x16ef41===_0x366312)break;else _0x3a1c21['push'](_0x3a1c21['shift']());}catch(_0x33f4b5){_0x3a1c21['push'](_0x3a1c21['shift']());}}}(_0x3141,0x77a61));function _0x20ae(_0x252e88,_0x3f8668){const _0x31416b=_0x3141();return _0x20ae=function(_0x20aecb,_0x502fd6){_0x20aecb=_0x20aecb-0x1a6;let _0x958589=_0x31416b[_0x20aecb];return _0x958589;},_0x20ae(_0x252e88,_0x3f8668);}const i=require('./npm-scripts');module[_0x57b1cb(0x1b2)]=(_0x223a87=['s','r'])=>_0x223a87[_0x57b1cb(0x1a7)](_0x9eff15=>({'icon':i[_0x57b1cb(0x1b5)][_0x9eff15][_0x57b1cb(0x1aa)],'name':i[_0x57b1cb(0x1b5)][_0x9eff15]['name'],'script':i[_0x57b1cb(0x1b5)][_0x9eff15]['script'],'description':i[_0x57b1cb(0x1b5)][_0x9eff15][_0x57b1cb(0x1a8)]})),module['exports'][_0x57b1cb(0x1b6)]=(_0x4a3c62=['t'])=>_0x4a3c62[_0x57b1cb(0x1a7)](_0x85c82b=>({'icon':i[_0x57b1cb(0x1ab)][_0x85c82b][_0x57b1cb(0x1aa)],'name':i['tailwind'][_0x85c82b][_0x57b1cb(0x1a9)],'script':i['tailwind'][_0x85c82b][_0x57b1cb(0x1b0)],'description':i['tailwind'][_0x85c82b][_0x57b1cb(0x1a8)]}));function _0x3141(){const _0x23a4a7=['name','icon','tailwind','5572936XMhntv','2378577DdcGsV','6797938AQTuak','505540pgnJMF','script','6bCUKCj','exports','381010AZfKcR','800705edodLm','default','generateTailWindScripts','315070BetcwT','map','description'];_0x3141=function(){return _0x23a4a7;};return _0x3141();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2f8a9a=_0x1847;(function(_0xa1b4f7,_0x506f6c){const _0x551716=_0x1847,_0x76e011=_0xa1b4f7();while(!![]){try{const _0xfabba=parseInt(_0x551716(0x139))/0x1+parseInt(_0x551716(0x13a))/0x2+parseInt(_0x551716(0x140))/0x3*(parseInt(_0x551716(0x137))/0x4)+-parseInt(_0x551716(0x13c))/0x5+parseInt(_0x551716(0x125))/0x6+-parseInt(_0x551716(0x131))/0x7+parseInt(_0x551716(0x134))/0x8;if(_0xfabba===_0x506f6c)break;else _0x76e011['push'](_0x76e011['shift']());}catch(_0x4897e1){_0x76e011['push'](_0x76e011['shift']());}}}(_0x174b,0x5178e));function _0x1847(_0x598721,_0x209780){const _0x174b14=_0x174b();return _0x1847=function(_0x1847e2,_0x4c0ff6){_0x1847e2=_0x1847e2-0x121;let _0x4bab72=_0x174b14[_0x1847e2];return _0x4bab72;},_0x1847(_0x598721,_0x209780);}const e=require(_0x2f8a9a(0x12c)),t=require(_0x2f8a9a(0x13b)),{getTemplates:r,BLANK_TEMPLATES:a}=require('zmp-cli-core'),{axiosClient:n}=require(_0x2f8a9a(0x123)),i=[{'type':_0x2f8a9a(0x13d),'name':'newProject','message':_0x2f8a9a(0x122),'choices':[{'name':_0x2f8a9a(0x129),'value':!0x0,'short':_0x2f8a9a(0x12d)},{'name':_0x2f8a9a(0x127),'value':!0x1,'short':_0x2f8a9a(0x12f)}]},{'type':_0x2f8a9a(0x13d),'name':'template','when':_0x1c1ffb=>_0x1c1ffb[_0x2f8a9a(0x138)],'message':'Choose\x20a\x20template:','choices':async()=>{const _0x30367c=_0x2f8a9a;let _0x331cf0=await r({'request':_0x56a63d=>n(_0x56a63d)[_0x30367c(0x121)](_0x35b082=>_0x35b082[_0x30367c(0x130)])});return[...a[_0x30367c(0x13e)](_0x54b8c4=>({'name':_0x54b8c4[_0x30367c(0x128)],'value':_0x54b8c4[_0x30367c(0x135)]})),new e['Separator'](),..._0x331cf0[_0x30367c(0x13e)](_0x4342b7=>({'name':_0x4342b7[_0x30367c(0x128)],'value':_0x4342b7[_0x30367c(0x135)]}))];}},{'type':_0x2f8a9a(0x12e),'name':_0x2f8a9a(0x128),'message':_0x2f8a9a(0x141),'default':_0x2f8a9a(0x126),'validate':_0x4439f1=>new Promise((_0x17dc54,_0x3eaa87)=>{const _0x263300=_0x2f8a9a;_0x4439f1?_0x17dc54(!0x0):_0x3eaa87(Error(_0x263300(0x12b)));})},{'type':'input','name':'folderName','when':_0x53f860=>_0x53f860['newProject'],'message':'Folder\x20name:','suffix':'\x0a'+t[_0x2f8a9a(0x12a)](_0x2f8a9a(0x124)),'default':_0x34970f=>{const _0x42cb7c=_0x2f8a9a;let {name:_0x43dd5a}=_0x34970f;return _0x43dd5a[_0x42cb7c(0x136)](/ /g,'-')[_0x42cb7c(0x136)](/[^a-zA-Z0-9-]/g,'')[_0x42cb7c(0x133)]();},'validate':_0x596ab9=>new Promise((_0x2575e4,_0x115efb)=>{_0x596ab9?_0x2575e4(!0x0):_0x115efb(Error('Folder\x20name\x20is\x20required'));})}];module[_0x2f8a9a(0x13f)]=function(){const _0x3bd5b2=_0x2f8a9a;return e[_0x3bd5b2(0x132)](i)[_0x3bd5b2(0x121)](_0x3d0ef6=>Promise['resolve'](_0x3d0ef6));};function _0x174b(){const _0x7c7e9=['data','3404891wDhsfz','prompt','toLowerCase','2345144nzstrd','github','replace','1628ZoAMgn','newProject','304957MkbMns','247002vSuQgS','chalk','3072740xKDGAj','list','map','exports','2541sbQRPW','App\x20(project)\x20name:','then','What\x20action\x20you\x20want\x20to\x20do?','../../utils/axios','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','2210046gTXoTB','My\x20App','Using\x20ZMP\x20to\x20deploy\x20only','name','Create\x20a\x20new\x20ZMP\x20project','italic','App\x20name\x20is\x20required','inquirer','New\x20project','input','Existing\x20project'];_0x174b=function(){return _0x7c7e9;};return _0x174b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3f82a0=_0x3e69;(function(_0x566827,_0x2c33fd){const _0x64837c=_0x3e69,_0x1b84f7=_0x566827();while(!![]){try{const _0x31862c=parseInt(_0x64837c(0x1e6))/0x1*(-parseInt(_0x64837c(0x1d9))/0x2)+-parseInt(_0x64837c(0x1db))/0x3*(-parseInt(_0x64837c(0x1e8))/0x4)+parseInt(_0x64837c(0x1e4))/0x5+-parseInt(_0x64837c(0x1ed))/0x6+-parseInt(_0x64837c(0x1e5))/0x7*(parseInt(_0x64837c(0x1d5))/0x8)+parseInt(_0x64837c(0x1eb))/0x9+-parseInt(_0x64837c(0x1e7))/0xa;if(_0x31862c===_0x2c33fd)break;else _0x1b84f7['push'](_0x1b84f7['shift']());}catch(_0x38490e){_0x1b84f7['push'](_0x1b84f7['shift']());}}}(_0x4500,0x4db9f));const e={'d':'dev','p':_0x3f82a0(0x1e2),'s':_0x3f82a0(0x1d3),'v':'serve','r':_0x3f82a0(0x1ec),'t':_0x3f82a0(0x1d6)};function s(_0x4f47b8){const _0x3f5dd0=_0x3f82a0;return _0x4f47b8[_0x3f5dd0(0x1dc)]('_')[0x0][_0x3f5dd0(0x1dc)]('')[_0x3f5dd0(0x1ea)](_0x2a0db3=>e[_0x2a0db3])[_0x3f5dd0(0x1d4)]('-');}function _0x3e69(_0x6a9491,_0x13190b){const _0x4500a0=_0x4500();return _0x3e69=function(_0x3e694e,_0xee7792){_0x3e694e=_0x3e694e-0x1d3;let _0x12ac6d=_0x4500a0[_0x3e694e];return _0x12ac6d;},_0x3e69(_0x6a9491,_0x13190b);}function _0x4500(){const _0x239e52=['build\x20tailwind\x20css','name','run\x20development\x20server','prod','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','1785440bMmarW','119WCCSpO','98393nZXlQf','2231440qcpqyB','2214104omsXWI','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','map','5670180asxXVy','deploy','2452980XwKwtq','forEach','start','join','46272qrQTQD','build:css','httpServer','zmp\x20deploy','10QfaVbD','exports','3UxYBzy','split','tailwind','keys'];_0x4500=function(){return _0x239e52;};return _0x4500();}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x3f82a0(0x1e1)},'r':{'icon':'🙏','script':_0x3f82a0(0x1d8),'description':'deploy\x20mini\x20app\x20for\x20production'}},'httpServer':{'v':{'icon':'🔧','script':_0x3f82a0(0x1e3),'description':_0x3f82a0(0x1e1)},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':_0x3f82a0(0x1e1)}},'tailwind':{'t':{'icon':'🔧','script':_0x3f82a0(0x1e9),'description':_0x3f82a0(0x1df)}}};Object['keys'](t['default'])[_0x3f82a0(0x1ee)](_0x8e69b3=>{const _0x8d74c=_0x3f82a0;t['default'][_0x8e69b3][_0x8d74c(0x1e0)]=s(_0x8e69b3);}),Object[_0x3f82a0(0x1de)](t[_0x3f82a0(0x1d7)])['forEach'](_0x5306e3=>{const _0x5d0b42=_0x3f82a0;t[_0x5d0b42(0x1d7)][_0x5306e3][_0x5d0b42(0x1e0)]=s(_0x5306e3);}),Object[_0x3f82a0(0x1de)](t[_0x3f82a0(0x1dd)])['forEach'](_0x4b19c0=>{const _0x533264=_0x3f82a0;t[_0x533264(0x1dd)][_0x4b19c0]['name']=s(_0x4b19c0);}),module[_0x3f82a0(0x1da)]=t;
|
package/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0xdd0d(_0x520247,_0x3a56ab){const _0xb012b=_0xb012();return _0xdd0d=function(_0xdd0dbf,_0x2c8a1a){_0xdd0dbf=_0xdd0dbf-0x1ce;let _0x192680=_0xb012b[_0xdd0dbf];return _0x192680;},_0xdd0d(_0x520247,_0x3a56ab);}const _0x4cd554=_0xdd0d;(function(_0x197c79,_0x467b64){const _0x5d70f4=_0xdd0d,_0x2d5328=_0x197c79();while(!![]){try{const _0x8179cc=parseInt(_0x5d70f4(0x1e0))/0x1*(parseInt(_0x5d70f4(0x1d4))/0x2)+parseInt(_0x5d70f4(0x1dd))/0x3+-parseInt(_0x5d70f4(0x1d3))/0x4+-parseInt(_0x5d70f4(0x1fb))/0x5+-parseInt(_0x5d70f4(0x1f8))/0x6+-parseInt(_0x5d70f4(0x1ed))/0x7+parseInt(_0x5d70f4(0x1f3))/0x8*(parseInt(_0x5d70f4(0x1f6))/0x9);if(_0x8179cc===_0x467b64)break;else _0x2d5328['push'](_0x2d5328['shift']());}catch(_0x90d98){_0x2d5328['push'](_0x2d5328['shift']());}}}(_0xb012,0xc7c21));const e=require(_0x4cd554(0x1de)),r=require('file-api')[_0x4cd554(0x1d6)],t=require(_0x4cd554(0x1dc)),o=require(_0x4cd554(0x1f7)),a=require('qrcode-terminal'),i=require(_0x4cd554(0x1d8)),s=require(_0x4cd554(0x1da)),n=require(_0x4cd554(0x1e8)),{errorExit:u}=require(_0x4cd554(0x1fd)),{deploy:l}=require(_0x4cd554(0x1e1)),{axiosClient:d}=require(_0x4cd554(0x1fe));function _0xb012(){const _0x361b6d=['File','Version:','../config','desc','../build/index','\x20Deploying\x20Your\x20App','chalk','3421890GAiELy','../utils/resumable','padStart','5JXQGYn','zmp-cli-core','permission_denied','bold','green','versionId','push','cwd','../utils/env','getEnv','err','text','generate','3048192qPFvFQ','statusText','env','Deploy\x20Done!','statusError','appUrl','8lbdisl','exports','versionStatus','2096586tgWbqV','log-symbols','567714dtlzTf','token','error_msg','4395285RQuuYN','\x20View\x20app\x20at:\x0a','../utils/error','../utils/axios','error_code','outputDir','data','statusStart','www','1647152MQvYWG','506218csTBFO','stringify'];_0xb012=function(){return _0x361b6d;};return _0xb012();}module[_0x4cd554(0x1f4)]=async(_0x411981={},_0x1093c7)=>{const _0x5616ed=_0x4cd554;let _0x31d6f6=[];try{let _0x2b0751=_0x411981['customProject'],_0x2dfbde=_0x411981[_0x5616ed(0x1cf)]||_0x5616ed(0x1d2),_0x61163c=_0x411981['cwd']||process[_0x5616ed(0x1e7)](),_0x5e873c=_0x411981[_0x5616ed(0x1f5)],_0x2aabe2=_0x411981[_0x5616ed(0x1d9)],_0x1a7ed3=()=>n[_0x5616ed(0x1e9)](i[_0x5616ed(0x1ef)][_0x5616ed(0x1f9)]);_0x2b0751||await s(_0x411981,_0x1093c7),_0x1093c7[_0x5616ed(0x1d1)]();let _0x27e3cf=_0x55c102=>{const _0x3eea71=_0x5616ed;let _0x1cbf07=t['gray']('['+Math['round'](_0x55c102)['toString']()[_0x3eea71(0x1df)](0x2,'\x20')+'%]')+_0x3eea71(0x1db);_0x1093c7[_0x3eea71(0x1ee)](_0x1cbf07);};_0x27e3cf(0x1e);let _0x1d76f8=await l({'isCustom':_0x2b0751,'outputDir':_0x2dfbde,'cwd':_0x61163c,'target':_0x5e873c,'description':_0x2aabe2,'ResumableClass':e,'FileClass':r,'getToken':_0x1a7ed3,'request':async({url:_0x25ccab,method:_0x28da59,data:_0x593558})=>{const _0x1c44f5=_0x5616ed;let _0xe204fb={'Authorization':'Bearer\x20'+_0x1a7ed3(),'cache-control':'no-cache'},_0x49756c=(await d(_0x25ccab,{'method':_0x28da59,...'GET'===_0x28da59?{'params':_0x593558}:{'data':_0x593558},'headers':_0xe204fb,'withCredentials':!0x0}))[_0x1c44f5(0x1d0)];if(!_0x49756c||_0x49756c[_0x1c44f5(0x1ea)]<0x0){if(_0x49756c&&_0x49756c[_0x1c44f5(0x1ea)]===i[_0x1c44f5(0x1ce)][_0x1c44f5(0x1e2)])throw Error(i[_0x1c44f5(0x1fa)]['permission_denied']);throw Error(JSON[_0x1c44f5(0x1d5)](_0x49756c));}return _0x49756c[_0x1c44f5(0x1d0)];},'customLogger':{'info':_0x299043=>{const _0x17c540=_0x5616ed;_0x31d6f6[_0x17c540(0x1e6)](_0x299043);},'warn':_0x16c15e=>{_0x31d6f6['push'](_0x16c15e);}},'onProgress':_0x572277=>{_0x27e3cf(0x1e+0x46*_0x572277/0x64);}}),_0xb6f05f=_0x1d76f8&&_0x1d76f8['data']&&_0x1d76f8[_0x5616ed(0x1d0)][_0x5616ed(0x1f2)],_0x5b4343=_0x1d76f8&&_0x1d76f8[_0x5616ed(0x1d0)]&&_0x1d76f8[_0x5616ed(0x1d0)][_0x5616ed(0x1e5)];for(let _0x464bc7 of(a[_0x5616ed(0x1ec)](_0xb6f05f,{'small':!0x0},function(_0x12066b){const _0x3b43fb=_0x5616ed;let _0x3f1e12=''+t[_0x3b43fb(0x1e3)](o['info']+_0x3b43fb(0x1fc)+_0x12066b);_0x1093c7['statusDone'](t['bold'][_0x3b43fb(0x1e4)](_0x3b43fb(0x1f0))+'\x20✅'),_0x1093c7['statusDone'](t[_0x3b43fb(0x1e3)][_0x3b43fb(0x1e4)](_0x3b43fb(0x1d7))+'\x20'+_0x5b4343),_0x1093c7[_0x3b43fb(0x1eb)](_0x3f1e12);}),_0x31d6f6))_0x1093c7['text'](_0x464bc7);}catch(_0x470d4f){for(let _0x3364b6 of(_0x1093c7[_0x5616ed(0x1f1)]('Error\x20deploying\x20your\x20app'),_0x31d6f6))_0x1093c7['text'](_0x3364b6);u(_0x470d4f);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x105c(){const _0x270790=['336950DlHzAL','676308BLBhXy','resolve','Description\x20is\x20required!','435627sCjJjv','6xSXGjP','Where\x20is\x20your\x20dist\x20folder?','versionStatus','943120DKFVdp','length','quit','desc','57096LoMkiv','Description:','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','outputDir','738871yQDKGV','40NRwchz','input','../../utils/constants','4953619RjEmDx','Quit','10WkJVDO','customProject','www','4WPQvuZ','inquirer','list','capitalize','map','Deploy\x20your\x20existing\x20project'];_0x105c=function(){return _0x270790;};return _0x105c();}const _0xec93a7=_0x56c4;(function(_0x4d03e1,_0x51e6d6){const _0x2bd1c7=_0x56c4,_0x439417=_0x4d03e1();while(!![]){try{const _0x5d5aed=-parseInt(_0x2bd1c7(0xe7))/0x1+parseInt(_0x2bd1c7(0xec))/0x2*(-parseInt(_0x2bd1c7(0xf3))/0x3)+parseInt(_0x2bd1c7(0xe1))/0x4*(parseInt(_0x2bd1c7(0xef))/0x5)+parseInt(_0x2bd1c7(0xe8))/0x6+parseInt(_0x2bd1c7(0xd8))/0x7+-parseInt(_0x2bd1c7(0xd9))/0x8*(parseInt(_0x2bd1c7(0xeb))/0x9)+parseInt(_0x2bd1c7(0xde))/0xa*(parseInt(_0x2bd1c7(0xdc))/0xb);if(_0x5d5aed===_0x51e6d6)break;else _0x439417['push'](_0x439417['shift']());}catch(_0x3c450d){_0x439417['push'](_0x439417['shift']());}}}(_0x105c,0x35feb));function _0x56c4(_0x2d3858,_0x537395){const _0x105ca4=_0x105c();return _0x56c4=function(_0x56c49b,_0x8e9d85){_0x56c49b=_0x56c49b-0xd6;let _0x5cc20c=_0x105ca4[_0x56c49b];return _0x5cc20c;},_0x56c4(_0x2d3858,_0x537395);}const e=require(_0xec93a7(0xe2)),{versionStatus:t}=require(_0xec93a7(0xdb)),i=require('lodash'),r=[{'type':_0xec93a7(0xe3),'name':_0xec93a7(0xee),'message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object['keys'](t)[_0xec93a7(0xe5)](_0x46de9a=>({'name':i[_0xec93a7(0xe4)](_0x46de9a),'value':t[_0x46de9a]})),'when':_0x32843d=>!_0x32843d[_0xec93a7(0xf1)],'validate':_0x30f4d7=>new Promise((_0x4a4c9d,_0x5087a1)=>{const _0x5277fb=_0xec93a7;_0x30f4d7&&_0x30f4d7[_0x5277fb(0xf0)]?_0x4a4c9d(!0x0):_0x5087a1(Error('Server\x20type\x20is\x20required!'));})},{'type':_0xec93a7(0xda),'name':_0xec93a7(0xf2),'message':_0xec93a7(0xf4),'when':_0x3bde71=>!_0x3bde71[_0xec93a7(0xf1)],'validate':_0x1ba0ba=>new Promise((_0x556476,_0x2e7db3)=>{const _0x17da34=_0xec93a7;_0x1ba0ba&&_0x1ba0ba['length']?_0x556476(!0x0):_0x2e7db3(Error(_0x17da34(0xea)));})}],s=[{'type':_0xec93a7(0xe3),'name':'quit','message':_0xec93a7(0xd6),'choices':[{'name':_0xec93a7(0xe6),'value':!0x1},{'name':_0xec93a7(0xdd),'value':!0x0}]},{'type':_0xec93a7(0xda),'name':_0xec93a7(0xd7),'message':_0xec93a7(0xed),'when':_0x319fb9=>!_0x319fb9[_0xec93a7(0xf1)],'default':_0xec93a7(0xe0)}];module['exports']=async function(_0x34080f){const _0x8bf3ea=_0xec93a7;let _0x37f05f=_0x34080f?[...r]:[...s,...r];return e['prompt'](_0x37f05f)['then'](_0x44f7fd=>(_0x44f7fd[_0x8bf3ea(0xdf)]=!0x1,!0x1===_0x44f7fd[_0x8bf3ea(0xf1)]&&(_0x44f7fd[_0x8bf3ea(0xdf)]=!0x0),Promise[_0x8bf3ea(0xe9)](_0x44f7fd)));};
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const _0x28dbd9=_0x414f;function _0x414f(_0x6c31e1,_0x48a864){const _0x37b33b=_0x37b3();return _0x414f=function(_0x414fb9,_0x751fa1){_0x414fb9=_0x414fb9-0xbf;let _0x26ae55=_0x37b33b[_0x414fb9];return _0x26ae55;},_0x414f(_0x6c31e1,_0x48a864);}function _0x37b3(){const _0x48c5a6=['Login\x20ZMP','length','./package.json','5503872MOSLPi','118106Jfquuh','showMobileUi','migrate','./deploy/index','resolve','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','Deploy\x20existing\x20project','./login/index','command:*','passive','Env\x20mode','Preview\x20on\x20Zalo','1660ykhtzD','versionStatus','ZMP\x20CLI','exit','device','log-symbols','-o,\x20--outputDir\x20<output>','-D,\x20--device','init','./create/utils/get-options','ios','<command>\x20[options]','6HaGRBv','build','-p,\x20--passive','6267HqVMyz','commander','--app-id\x20<appId>','Mini\x20App\x20ID','Run\x20on\x20ios','7986937KfhExQ','action','./utils/get-current-project','done','./build/index','argv','skipUpdate','Deploy\x20a\x20ZMP\x20project','hostname','./sync/index','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','appId','args','1744205FfrRLR','option','mode','537219FxJEVH','error','text','writeFileSync','zaloApp','./utils/log','version','sync-config\x20<source>','Version\x20description','testing','--token\x20<token>','Deploy\x20testing\x20version','./create/index','start','6bblEfJ','figlet','./utils/spinner','-P,\x20--port\x20<n>','Custom\x20entry\x20point,\x20default\x20is\x20#app','7126350QWvwoq','./login/utils/get-options','-m,\x20--desc\x20<message>','./start/index','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','Start\x20a\x20ZMP\x20project','./config','port','code','cwd','parse','token','./migrate/index','full','Version:\x20','customProject','./utils/fs-extra','login','quit','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','.local','frame','usage','cyan','command','-Z,\x20--zalo-app','Access\x20token','existing','outputHelp','-M,\x20--mode\x20<m>','./migrate/utils/get-options','root_env','./utils/constants','./deploy/utils/get-options','-ios,\x20--ios','Output\x20folder.\x20Default\x20www','log','description'];_0x37b3=function(){return _0x48c5a6;};return _0x37b3();}(function(_0x3751b8,_0x577095){const _0x429544=_0x414f,_0x2dae66=_0x3751b8();while(!![]){try{const _0x3833c7=parseInt(_0x429544(0x10f))/0x1*(parseInt(_0x429544(0x127))/0x2)+-parseInt(_0x429544(0x12a))/0x3*(-parseInt(_0x429544(0x11b))/0x4)+-parseInt(_0x429544(0xcf))/0x5+parseInt(_0x429544(0xe0))/0x6*(parseInt(_0x429544(0xc2))/0x7)+-parseInt(_0x429544(0x10e))/0x8+parseInt(_0x429544(0xd2))/0x9+-parseInt(_0x429544(0xe5))/0xa;if(_0x3833c7===_0x577095)break;else _0x2dae66['push'](_0x2dae66['shift']());}catch(_0x2c42f0){_0x2dae66['push'](_0x2dae66['shift']());}}}(_0x37b3,0xa42db));const e=require('chalk'),o=require('clear'),t=require(_0x28dbd9(0xe1)),i=require(_0x28dbd9(0x12b)),s=require(_0x28dbd9(0x120)),n=require(_0x28dbd9(0xf5)),r=require('./utils/check-update'),a=require(_0x28dbd9(0xe2)),p=require(_0x28dbd9(0xd7)),c=require(_0x28dbd9(0xc4)),u=require(_0x28dbd9(0x124)),l=require(_0x28dbd9(0xe6)),d=require(_0x28dbd9(0x106)),m=require(_0x28dbd9(0x103)),g=require(_0x28dbd9(0x116)),x=require(_0x28dbd9(0xde)),y=require(_0x28dbd9(0xe8)),w=require(_0x28dbd9(0xc6)),v=require(_0x28dbd9(0x112)),f=require(_0x28dbd9(0xcb)),q=require(_0x28dbd9(0xf1)),h=require('os'),M=require(_0x28dbd9(0x10d)),k=require(_0x28dbd9(0xeb)),{versionStatus:P}=require(_0x28dbd9(0x105)),j=process[_0x28dbd9(0xee)](),I={'statusStart':_0x195c40=>a[_0x28dbd9(0xdf)](_0x195c40),'statusDone':_0x47beae=>a[_0x28dbd9(0xc5)](_0x47beae),'statusText':_0x3571c5=>a[_0x28dbd9(0xd4)](_0x3571c5),'statusError':_0x4e0777=>a['error'](_0x4e0777),'text':_0x39202b=>p['text'](_0x39202b),'error':_0x6d35cb=>p['error'](_0x6d35cb),'showOnUI':()=>{}};o(),n['existsSync'](k[_0x28dbd9(0x104)]())||n[_0x28dbd9(0xd5)](k['root_env']()),console[_0x28dbd9(0x109)](e[_0x28dbd9(0xfc)](t['textSync'](_0x28dbd9(0x11d),{'horizontalLayout':'full','verticalLayout':_0x28dbd9(0xf2)})),e[_0x28dbd9(0xfc)](_0x28dbd9(0xf3)+M[_0x28dbd9(0xd8)]+'\x0a')),i[_0x28dbd9(0xd8)](M[_0x28dbd9(0xd8)])[_0x28dbd9(0xfb)]('<command>\x20[options]')[_0x28dbd9(0xfd)](_0x28dbd9(0x123))['option']('--skipUpdate',_0x28dbd9(0xe9))[_0x28dbd9(0x10a)]('Init\x20ZMP\x20project')[_0x28dbd9(0xc3)](async _0x5d01e6=>{const _0x9be2a3=_0x28dbd9;_0x5d01e6[_0x9be2a3(0xc8)]||await r();let _0x25b432=await l();await g({'cwd':j,..._0x25b432},I);let _0x5ee46a=await u();await x({'cwd':j,..._0x5ee46a},I),process['exit'](0x0);}),i['usage'](_0x28dbd9(0x126))[_0x28dbd9(0xfd)](_0x28dbd9(0xf6))['option'](_0x28dbd9(0xbf),_0x28dbd9(0xc0))['option'](_0x28dbd9(0xdc),_0x28dbd9(0xff))[_0x28dbd9(0x10a)](_0x28dbd9(0x10b))['action'](async _0x56a6b4=>{const _0x55e15f=_0x28dbd9;_0x56a6b4[_0x55e15f(0xcd)]&&_0x56a6b4['token']&&(await g({'cwd':j,'appId':_0x56a6b4[_0x55e15f(0xcd)],'token':_0x56a6b4[_0x55e15f(0xf0)],'loginMethod':'accessToken'},I),process[_0x55e15f(0x11e)](0x0));let _0x128b75=await l();await g({'cwd':j,..._0x128b75},I),process[_0x55e15f(0x11e)](0x0);}),i[_0x28dbd9(0xfb)](_0x28dbd9(0x126))[_0x28dbd9(0xfd)](_0x28dbd9(0xdf))[_0x28dbd9(0xd0)]('-iosH,\x20--ios-host-name\x20<n>',_0x28dbd9(0x114))['option'](_0x28dbd9(0xe3),'Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000',parseInt)[_0x28dbd9(0xd0)](_0x28dbd9(0xfe),_0x28dbd9(0x11a))[_0x28dbd9(0xd0)](_0x28dbd9(0x107),_0x28dbd9(0xc1))['option']('-nF,\x20--no-frame','Run\x20without\x20Zalo\x20frame')['option'](_0x28dbd9(0x122),'Device\x20mode')[_0x28dbd9(0xd0)](_0x28dbd9(0x102),'Env\x20mode')[_0x28dbd9(0x10a)](_0x28dbd9(0xea))[_0x28dbd9(0xc3)](async _0x3f525d=>{const _0x184217=_0x28dbd9;if(c(j)||(p[_0x184217(0xd4)](s[_0x184217(0xd3)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x184217(0x11e)](0x1)),_0x3f525d&&_0x3f525d[_0x184217(0x110)])try{console['log'](require[_0x184217(0x113)]('nw'));}catch(_0x4fd8ae){console['error'](_0x184217(0xcc)),process[_0x184217(0x11e)](_0x4fd8ae[_0x184217(0xed)]);}let _0xe3cbc6=h[_0x184217(0xca)]();_0xe3cbc6['includes'](_0x184217(0xf9))||(_0xe3cbc6=_0xe3cbc6+'.local'),await y({'cwd':j,'port':_0x3f525d&&_0x3f525d[_0x184217(0xec)]||0xbb8,'iosHostName':_0x3f525d&&_0x3f525d['iosHostName']||_0xe3cbc6,'showMobileUI':_0x3f525d&&_0x3f525d['showMobileUi']||!0x1,'previewOnZalo':_0x3f525d&&_0x3f525d[_0x184217(0xd6)]||!0x1,'ios':_0x3f525d&&_0x3f525d[_0x184217(0x125)]||!0x1,'mode':_0x3f525d&&_0x3f525d[_0x184217(0xd1)],'frame':!!_0x3f525d&&(void 0x0===_0x3f525d[_0x184217(0xfa)]||null===_0x3f525d['frame'])||_0x3f525d[_0x184217(0xfa)],'deviceMode':_0x3f525d&&_0x3f525d[_0x184217(0x11f)]||!0x1},I),process[_0x184217(0x11e)](0x0);}),i[_0x28dbd9(0xfb)](_0x28dbd9(0x126))[_0x28dbd9(0xfd)](_0x28dbd9(0x128))[_0x28dbd9(0xd0)](_0x28dbd9(0x102),_0x28dbd9(0x119))[_0x28dbd9(0x10a)]('Build\x20a\x20ZMP\x20project')[_0x28dbd9(0xc3)](async _0x496081=>{const _0x425f60=_0x28dbd9;c(j)||(p[_0x425f60(0xd4)](s[_0x425f60(0xd3)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process['exit'](0x1)),await w({'cwd':j,'mode':_0x496081&&_0x496081['mode']},I),process[_0x425f60(0x11e)](0x0);}),i[_0x28dbd9(0xfb)](_0x28dbd9(0x126))[_0x28dbd9(0xfd)]('deploy')[_0x28dbd9(0xd0)](_0x28dbd9(0x102),_0x28dbd9(0x119))[_0x28dbd9(0xd0)](_0x28dbd9(0x129),'Passive\x20mode\x20(non-interactive)')[_0x28dbd9(0xd0)]('-e,\x20--existing',_0x28dbd9(0x115))[_0x28dbd9(0xd0)]('-t,\x20--testing',_0x28dbd9(0xdd))[_0x28dbd9(0xd0)](_0x28dbd9(0xe7),_0x28dbd9(0xda))[_0x28dbd9(0xd0)](_0x28dbd9(0x121),_0x28dbd9(0x108))[_0x28dbd9(0xd0)](_0x28dbd9(0xe3),'Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)['description'](_0x28dbd9(0xc9))['action'](async _0x563ab2=>{const _0x2bc556=_0x28dbd9;let _0x6b9836=c(j),_0x3f08bf=_0x563ab2;_0x563ab2[_0x2bc556(0x100)]?_0x3f08bf[_0x2bc556(0xf4)]=!0x0:_0x563ab2[_0x2bc556(0x118)]||(_0x3f08bf=await d(_0x6b9836)),_0x563ab2[_0x2bc556(0xdb)]&&(_0x3f08bf[_0x2bc556(0x11c)]=P['TESTING']),_0x3f08bf[_0x2bc556(0xf7)]&&process[_0x2bc556(0x11e)](0x1),await v({'cwd':j,'mode':_0x563ab2&&_0x563ab2[_0x2bc556(0xd1)],..._0x3f08bf},I),process[_0x2bc556(0x11e)](0x0);}),i[_0x28dbd9(0xfb)](_0x28dbd9(0x126))[_0x28dbd9(0xfd)](_0x28dbd9(0xd9))[_0x28dbd9(0xd0)]('-r,\x20--root-element\x20<selector>',_0x28dbd9(0xe4))[_0x28dbd9(0x10a)](_0x28dbd9(0xf8))['action'](async(_0x6cdd5b,_0x2e03de)=>{const _0x3d9bb6=_0x28dbd9;await f({'source':_0x6cdd5b,..._0x2e03de},I),process[_0x3d9bb6(0x11e)](0x0);}),i[_0x28dbd9(0xfb)](_0x28dbd9(0x126))[_0x28dbd9(0xfd)](_0x28dbd9(0x111))[_0x28dbd9(0xc3)](async function(){const _0x440faa=_0x28dbd9;let _0x1254f5=c(j);_0x1254f5||(I[_0x440faa(0xd4)](s[_0x440faa(0xd3)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x440faa(0x11e)](0x1));let _0x28503a=await m();await q({'cwd':j,..._0x28503a,..._0x1254f5},I),process[_0x440faa(0x11e)](0x0);}),i['on'](_0x28dbd9(0x117),_0x393cdf=>{i['outputHelp'](),p['text']('\x0a\x20Unknown\x20command\x20'+_0x393cdf);}),i[_0x28dbd9(0xef)](process[_0x28dbd9(0xc7)]),i[_0x28dbd9(0xce)][_0x28dbd9(0x10c)]||i[_0x28dbd9(0x101)]();
|
package/login/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4f7614=_0x43b7;function _0x449f(){const _0x18ae21=['statusDone','api_domain','no-cache','7705560yGgxsX','../utils/env','setEnv','request_timeout','853925DDaVbo','path','login','err','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','getEnv','catch','checkStatus','log-symbols','14PYueHu','1747263ubwsDo','25605340vJGMBA','22BeUhvn','2205320CYyMZl','stringify','data','chalk','statusText','../config','error','35615LKPzIU','zalo','error_code','start','token','error_msg','Login\x20failed!','then','jsonwebtoken','4GpZlQt','bold','Login\x20Success!','jwt','zmpsk','exports','application/x-www-form-urlencoded','stop','info','Login...','env','statusError','stderr','loginMethod','statusStart','permission_denied','../utils/log','ora','msg','decode','gray','697320ZGjEdC','appId','loginUrl'];_0x449f=function(){return _0x18ae21;};return _0x449f();}(function(_0x46571b,_0x3b0185){const _0x14b58c=_0x43b7,_0xc415e1=_0x46571b();while(!![]){try{const _0x3b4cc8=-parseInt(_0x14b58c(0x100))/0x1*(parseInt(_0x14b58c(0xf8))/0x2)+parseInt(_0x14b58c(0xf6))/0x3*(parseInt(_0x14b58c(0x109))/0x4)+-parseInt(_0x14b58c(0xec))/0x5+-parseInt(_0x14b58c(0xe8))/0x6+-parseInt(_0x14b58c(0xf5))/0x7*(parseInt(_0x14b58c(0xf9))/0x8)+-parseInt(_0x14b58c(0xe2))/0x9+parseInt(_0x14b58c(0xf7))/0xa;if(_0x3b4cc8===_0x3b0185)break;else _0xc415e1['push'](_0xc415e1['shift']());}catch(_0x169a3e){_0xc415e1['push'](_0xc415e1['shift']());}}}(_0x449f,0xa2ec7));const e=require(_0x4f7614(0xfc)),t=require(_0x4f7614(0xde)),r=require(_0x4f7614(0x108)),a=require('qrcode-terminal'),n=require(_0x4f7614(0xf4)),o=require(_0x4f7614(0xfe)),s=require(_0x4f7614(0xe9)),i=require(_0x4f7614(0xdd)),u=require('./utils/zalo-login'),{axiosClient:l}=require('../utils/axios'),c=require('qs'),d=e[_0x4f7614(0xe1)](_0x4f7614(0x112)),p=t(d);function _0x43b7(_0x19f14e,_0x23c248){const _0x449fa9=_0x449f();return _0x43b7=function(_0x43b770,_0x429ae8){_0x43b770=_0x43b770-0xd9;let _0x5cabad=_0x449fa9[_0x43b770];return _0x5cabad;},_0x43b7(_0x19f14e,_0x23c248);}module[_0x4f7614(0x10e)]=async(_0x3441b7={},_0x2625c1)=>{const _0x37963b=_0x4f7614;let _0x50537b;_0x2625c1||(_0x2625c1={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x2625c1[_0x37963b(0xdb)](d),p[_0x37963b(0x103)]();let _0x2b592f=_0x3441b7[_0x37963b(0xda)],_0x58727f=_0x3441b7[_0x37963b(0xe3)]||s[_0x37963b(0xf1)](o[_0x37963b(0x113)]['appId']),_0x5d9d58=_0x3441b7['token'],_0xe6012c=''+o[_0x37963b(0xe6)]+o[_0x37963b(0xed)][_0x37963b(0xee)];try{if(p[_0x37963b(0x103)](),_0x37963b(0x101)===_0x2b592f){let _0x1a2552;await new Promise((_0x51ae64,_0x101a28)=>{const _0x2416bc=_0x37963b;u['getQRCode'](_0x58727f)[_0x2416bc(0x107)](function(_0x4404cf){const _0x15c584=_0x2416bc;p[_0x15c584(0x110)]();let _0x3dc566=_0x4404cf[_0x15c584(0xfb)];if(!_0x3dc566||_0x3dc566['err']<0x0)return _0x101a28(Error(_0x3dc566[_0x15c584(0xdf)]));let _0x47af7a=_0x3dc566['data']&&_0x3dc566[_0x15c584(0xfb)][_0x15c584(0xe4)];return _0x1a2552=_0x3dc566[_0x15c584(0xfb)]&&_0x3dc566[_0x15c584(0xfb)][_0x15c584(0x10d)],a['generate'](_0x47af7a,{'small':!0x0},function(_0x3233aa){const _0x561612=_0x15c584;let _0x5b8144=n[_0x561612(0x111)]+'\x20'+e[_0x561612(0x10a)](_0x561612(0xf0)+_0x3233aa);_0x2625c1['text'](_0x5b8144);}),s['setEnv'](o[_0x15c584(0x113)][_0x15c584(0xe3)],_0x58727f),_0x51ae64();})[_0x2416bc(0xf2)](function(_0x322194){const _0x29edeb=_0x2416bc;return p[_0x29edeb(0x110)](),_0x101a28(_0x322194);});}),await new Promise((_0x3b78a9,_0x11dfbe)=>{if(!_0x1a2552)return _0x11dfbe(Error('Token\x20Invalid!'));let _0x20e9c1=0x0;_0x50537b=setInterval(()=>{const _0xae1021=_0x43b7;if(_0x2625c1[_0xae1021(0xfd)](d+'\x20(Time\x20out\x20after\x20'+(0x3c-_0x20e9c1)+'s)'),_0x20e9c1>0x3c)return clearInterval(_0x50537b),_0x11dfbe(Error(o[_0xae1021(0x105)]['request_timeout']));_0x20e9c1++,u[_0xae1021(0xf3)](_0x1a2552)[_0xae1021(0x107)](function(_0x5ae5a7){const _0x3b5a4e=_0xae1021;p[_0x3b5a4e(0x110)]();let _0x282381=_0x5ae5a7[_0x3b5a4e(0xfb)];if(_0x282381&&_0x282381[_0x3b5a4e(0xef)]===o[_0x3b5a4e(0x102)][_0x3b5a4e(0xdc)])return clearInterval(_0x50537b),_0x11dfbe(Error(o['error_msg'][_0x3b5a4e(0xdc)]));if(_0x282381&&_0x282381[_0x3b5a4e(0xef)]===o[_0x3b5a4e(0x102)][_0x3b5a4e(0xeb)])return clearInterval(_0x50537b),_0x11dfbe(Error(o['error_msg'][_0x3b5a4e(0xeb)]));if(_0x282381&&_0x282381[_0x3b5a4e(0xef)]>=0x0){clearInterval(_0x50537b);let _0x32d68f=_0x282381['data']&&_0x282381[_0x3b5a4e(0xfb)][_0x3b5a4e(0x10c)];return s[_0x3b5a4e(0xea)](o['env'][_0x3b5a4e(0x104)],_0x32d68f),_0x2625c1['statusDone'](_0x3b5a4e(0x10b)),_0x3b78a9();}})[_0xae1021(0xf2)](function(_0x5133bf){const _0x12019b=_0xae1021;return clearInterval(_0x50537b),p[_0x12019b(0x110)](),_0x11dfbe(_0x5133bf);});},0x7d0);});}else await new Promise((_0x5779f9,_0x245038)=>{const _0x138b47=_0x37963b;l({'url':_0xe6012c,'method':'POST','headers':{'cache-control':_0x138b47(0xe7),'content-type':_0x138b47(0x10f)},'data':c[_0x138b47(0xfa)]({'accessToken':_0x5d9d58,'appId':_0x58727f}),'withCredentials':!0x0})[_0x138b47(0x107)](function(_0xa8d4bb){const _0x29900d=_0x138b47;p['stop']();let _0x487b78=_0xa8d4bb['data'];if(!_0x487b78||_0x487b78[_0x29900d(0xef)]<0x0)return _0x245038(Error(_0x487b78[_0x29900d(0xdf)]));let _0x2f4bbb=_0x487b78[_0x29900d(0xfb)]&&_0x487b78[_0x29900d(0xfb)][_0x29900d(0x10c)];try{let _0x1ad9c2=r[_0x29900d(0xe0)](_0x2f4bbb);s['setEnv'](o[_0x29900d(0x113)][_0x29900d(0xe3)],_0x1ad9c2[_0x29900d(0xe3)]),s[_0x29900d(0xea)](o[_0x29900d(0x113)][_0x29900d(0x104)],_0x2f4bbb);}catch(_0x1b073a){return _0x245038(_0x1b073a);}return _0x2625c1[_0x29900d(0xe5)]('Login\x20Success!'),_0x5779f9();})[_0x138b47(0xf2)](function(_0x216efa){const _0x3421b9=_0x138b47;return p[_0x3421b9(0x110)](),_0x245038(_0x216efa);});});}catch(_0x4bd55c){_0x2625c1[_0x37963b(0x114)](_0x37963b(0x106)),i[_0x37963b(0xff)](_0x4bd55c[_0x37963b(0xd9)]||_0x4bd55c);return;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x228caf=_0x78ef;(function(_0x52fa4a,_0x5428e7){const _0x171be3=_0x78ef,_0x2148f3=_0x52fa4a();while(!![]){try{const _0x20c290=-parseInt(_0x171be3(0x77))/0x1+parseInt(_0x171be3(0x71))/0x2+-parseInt(_0x171be3(0x7f))/0x3+parseInt(_0x171be3(0x79))/0x4*(-parseInt(_0x171be3(0x82))/0x5)+-parseInt(_0x171be3(0x6f))/0x6+-parseInt(_0x171be3(0x7c))/0x7+parseInt(_0x171be3(0x76))/0x8;if(_0x20c290===_0x5428e7)break;else _0x2148f3['push'](_0x2148f3['shift']());}catch(_0x2b3e79){_0x2148f3['push'](_0x2148f3['shift']());}}}(_0x5980,0x57d40));function _0x5980(){const _0x2686c3=['length','list','loginMethod','appId','token','prompt','3852348rTguWj','resolve','123718ARFtYy','../../utils/env','Mini\x20App\x20ID:','getEnv','accessToken','19831280uqjtjx','104549JDPXnE','Choose\x20a\x20Login\x20Method','2084NdHRCJ','Mimi\x20App\x20ID\x20is\x20required','then','4532493mNQPhE','zalo','exports','1458906VubZvL','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','../../config','2885WdSlgk'];_0x5980=function(){return _0x2686c3;};return _0x5980();}const e=require('inquirer'),i=require(_0x228caf(0x72)),o=require(_0x228caf(0x81));function _0x78ef(_0x519cd4,_0x5cc6e0){const _0x5980db=_0x5980();return _0x78ef=function(_0x78ef6a,_0x13068e){_0x78ef6a=_0x78ef6a-0x6a;let _0xb693da=_0x5980db[_0x78ef6a];return _0xb693da;},_0x78ef(_0x519cd4,_0x5cc6e0);}module[_0x228caf(0x7e)]=function(){const _0x523320=_0x228caf;let _0x20f7f4=[{'type':'input','name':'appId','message':_0x523320(0x73),'when':()=>!i[_0x523320(0x74)](o['env'][_0x523320(0x6c)]),'validate':_0x3b39a1=>new Promise((_0x5ce1eb,_0x12b850)=>{const _0x35de51=_0x523320;_0x3b39a1?_0x5ce1eb(!0x0):_0x12b850(Error(_0x35de51(0x7a)));})},{'type':_0x523320(0x6a),'name':_0x523320(0x6b),'message':_0x523320(0x78),'choices':[{'name':_0x523320(0x80),'value':_0x523320(0x7d)},{'name':'2.\x20Login\x20With\x20App\x20Access\x20Token','value':_0x523320(0x75)}],'validate':_0x1d2b47=>new Promise((_0x3ea8ed,_0x4f22c0)=>{const _0x218ea9=_0x523320;_0x1d2b47&&_0x1d2b47[_0x218ea9(0x83)]?_0x3ea8ed(!0x0):_0x4f22c0(Error('Login\x20method\x20is\x20required!'));})},{'type':'input','name':_0x523320(0x6d),'message':'Zalo\x20Access\x20Token:','when':_0x29558c=>_0x523320(0x75)===_0x29558c[_0x523320(0x6b)],'validate':_0xadd2a0=>new Promise((_0x2e6720,_0xc551a7)=>{_0xadd2a0?_0x2e6720(!0x0):_0xc551a7(Error('Zalo\x20Access\x20Token\x20is\x20required'));})}];return e[_0x523320(0x6e)](_0x20f7f4)[_0x523320(0x7b)](_0x5778df=>Promise[_0x523320(0x70)](_0x5778df));};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x466593=_0x4813;function _0x4813(_0x5bb636,_0x52b797){const _0x2db557=_0x2db5();return _0x4813=function(_0x48138a,_0xca94b){_0x48138a=_0x48138a-0x6a;let _0x4ff677=_0x2db557[_0x48138a];return _0x4ff677;},_0x4813(_0x5bb636,_0x52b797);}(function(_0x4d5fca,_0x170ecc){const _0x448b1d=_0x4813,_0x24a428=_0x4d5fca();while(!![]){try{const _0x4f0146=-parseInt(_0x448b1d(0x6a))/0x1+-parseInt(_0x448b1d(0x6c))/0x2+parseInt(_0x448b1d(0x78))/0x3*(parseInt(_0x448b1d(0x73))/0x4)+parseInt(_0x448b1d(0x6d))/0x5*(parseInt(_0x448b1d(0x70))/0x6)+parseInt(_0x448b1d(0x7d))/0x7+-parseInt(_0x448b1d(0x6b))/0x8*(-parseInt(_0x448b1d(0x6f))/0x9)+-parseInt(_0x448b1d(0x77))/0xa;if(_0x4f0146===_0x170ecc)break;else _0x24a428['push'](_0x24a428['shift']());}catch(_0x278668){_0x24a428['push'](_0x24a428['shift']());}}}(_0x2db5,0x431d4));const e=require(_0x466593(0x7a)),{axiosClient:t}=require(_0x466593(0x71));function _0x2db5(){const _0x29cbb9=['259116PRXIye','8HjTguN','999262CzCNUu','22530Ltxwsp','requestLogin','4357053hlBZsY','54ndgIUi','../../utils/axios','?appId=','7948tBpGHv','exports','no-cache','?zmpsk=','801600bYySKr','759XFLjtA','path','../../config','get','api_domain','604975dRdtPH'];_0x2db5=function(){return _0x29cbb9;};return _0x2db5();}module[_0x466593(0x74)]=(function(){const _0x59fe6c=_0x466593;let _0x2bac0d=''+e[_0x59fe6c(0x7c)]+e[_0x59fe6c(0x79)][_0x59fe6c(0x6e)],_0x37f56f=''+e[_0x59fe6c(0x7c)]+e[_0x59fe6c(0x79)]['checkLoginStatus'];return{'getQRCode':_0x496dab=>t({'method':_0x59fe6c(0x7b),'url':_0x2bac0d+_0x59fe6c(0x72)+_0x496dab,'headers':{'cache-control':_0x59fe6c(0x75)},'withCredentials':!0x0}),'checkStatus':_0x476f67=>t({'method':_0x59fe6c(0x7b),'url':_0x37f56f+_0x59fe6c(0x76)+_0x476f67,'headers':{'cache-control':_0x59fe6c(0x75)},'withCredentials':!0x0})};}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4cdc75=_0x8c0e;(function(_0x15ee3b,_0x5616c1){const _0xf1d3c2=_0x8c0e,_0xdc3e04=_0x15ee3b();while(!![]){try{const _0x172a8e=parseInt(_0xf1d3c2(0x1bc))/0x1+-parseInt(_0xf1d3c2(0x1ad))/0x2+parseInt(_0xf1d3c2(0x1b1))/0x3+-parseInt(_0xf1d3c2(0x1b5))/0x4+parseInt(_0xf1d3c2(0x1b7))/0x5*(-parseInt(_0xf1d3c2(0x1b9))/0x6)+-parseInt(_0xf1d3c2(0x1ae))/0x7+parseInt(_0xf1d3c2(0x1af))/0x8;if(_0x172a8e===_0x5616c1)break;else _0xdc3e04['push'](_0xdc3e04['shift']());}catch(_0x18440f){_0xdc3e04['push'](_0xdc3e04['shift']());}}}(_0x207f,0x9b730));function _0x207f(){const _0x238f1a=['12IbeZyF','uiFramework','path','97873omOZnP','npm\x20install\x20zmp-ui@latest','276512LSLBzk','3506132wLmwyB','21791000lzkuZd','zmp-framework','2057085YefqRb','promise','cwd','exports','4086676UVvHTh','../../utils/fs-extra','3024805oveync','exec-sh'];_0x207f=function(){return _0x238f1a;};return _0x207f();}const e=require(_0x4cdc75(0x1b6)),s=require(_0x4cdc75(0x1bb)),r=require(_0x4cdc75(0x1b8));function _0x8c0e(_0x58d4d6,_0x3cbf46){const _0x207f26=_0x207f();return _0x8c0e=function(_0x8c0e05,_0x58c20d){_0x8c0e05=_0x8c0e05-0x1ad;let _0xc6ac1c=_0x207f26[_0x8c0e05];return _0xc6ac1c;},_0x8c0e(_0x58d4d6,_0x3cbf46);}async function i(_0x25176d){const _0x59ceb9=_0x4cdc75;if(_0x59ceb9(0x1b0)===_0x25176d['uiFramework'])e['copyFileAsync'](s['resolve'](__dirname,'./icons.css'),s['resolve'](_0x25176d[_0x59ceb9(0x1b3)],'./src/css/icons.css')),await r[_0x59ceb9(0x1b2)]('npm\x20install\x20zmp-framework@latest',!0x0);else{if('zmp-ui'!==_0x25176d[_0x59ceb9(0x1ba)])return;await r[_0x59ceb9(0x1b2)](_0x59ceb9(0x1bd),!0x0);}}module[_0x4cdc75(0x1b4)]=i;
|
package/migrate/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x26ec(){const _0x15c128=['Migration\x20error!','green','375725NkKTFC','1737190pFCEgp','209298NaMwwj','1558200HKluaS','cwd','log-symbols','filename','9zsbojC','gray','react','text','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','Migrating\x20Your\x20App\x20','framework','../utils/error','exit','bold','Migration\x20Done!','2fpDsYv','3017poSYex','292176ppMbuy','statusError','chalk','statusDone','82470EihGxb','5484IpeMBA','../config','statusStart'];_0x26ec=function(){return _0x15c128;};return _0x26ec();}const _0x4a7649=_0x11b4;(function(_0x4efed4,_0x5ea1c3){const _0x356b60=_0x11b4,_0x3bbfe8=_0x4efed4();while(!![]){try{const _0x17000a=-parseInt(_0x356b60(0xa2))/0x1*(-parseInt(_0x356b60(0xb2))/0x2)+-parseInt(_0x356b60(0x9a))/0x3+parseInt(_0x356b60(0xa3))/0x4+-parseInt(_0x356b60(0xa0))/0x5+parseInt(_0x356b60(0x9b))/0x6*(-parseInt(_0x356b60(0xb3))/0x7)+parseInt(_0x356b60(0xb4))/0x8*(-parseInt(_0x356b60(0xa7))/0x9)+parseInt(_0x356b60(0xa1))/0xa;if(_0x17000a===_0x5ea1c3)break;else _0x3bbfe8['push'](_0x3bbfe8['shift']());}catch(_0x1333df){_0x3bbfe8['push'](_0x3bbfe8['shift']());}}}(_0x26ec,0x3a774));const r=require(_0x4a7649(0x98)),t=require('path'),e=require(_0x4a7649(0xa5)),s=require('./utils/migrate-react'),{errorExit:a}=require(_0x4a7649(0xae)),o=require(_0x4a7649(0x9c)),i=r[_0x4a7649(0xa8)](_0x4a7649(0xab));function _0x11b4(_0x4a86e9,_0x402ef9){const _0x26ec94=_0x26ec();return _0x11b4=function(_0x11b40c,_0x115d7b){_0x11b40c=_0x11b40c-0x97;let _0x2d4ce0=_0x26ec94[_0x11b40c];return _0x2d4ce0;},_0x11b4(_0x4a86e9,_0x402ef9);}async function u(_0x4f232d={},_0x53f41f){const _0x47b05d=_0x4a7649;let _0x1e6b90=_0x4f232d[_0x47b05d(0xa4)]||process[_0x47b05d(0xa4)]();_0x53f41f||(_0x53f41f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x53f41f[_0x47b05d(0x9d)](_0x47b05d(0xac)+i);try{let _0x10bb53,_0x598d6b=require((_0x10bb53=o[_0x47b05d(0xa6)]['zmpConfig'],t['join'](_0x1e6b90,_0x10bb53)));_0x47b05d(0xa9)===_0x598d6b['framework']?await s(_0x4f232d):(_0x53f41f[_0x47b05d(0xaa)](e['error']+'\x20Project\x20using\x20ZMP\x20'+_0x598d6b[_0x47b05d(0xad)]+'\x20is\x20not\x20yet\x20supported'),process[_0x47b05d(0xaf)](0x1)),_0x53f41f[_0x47b05d(0x99)](r[_0x47b05d(0xb0)][_0x47b05d(0x9f)](_0x47b05d(0xb1))+'\x20✅');}catch(_0xccf5a0){_0x53f41f[_0x47b05d(0x97)](_0x47b05d(0x9e)),a(_0xccf5a0);}}module['exports']=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x200c4c=_0xc127;(function(_0x489c22,_0x51f838){const _0x49d9da=_0xc127,_0x480896=_0x489c22();while(!![]){try{const _0xc42bf=parseInt(_0x49d9da(0x79))/0x1+parseInt(_0x49d9da(0x78))/0x2*(-parseInt(_0x49d9da(0x77))/0x3)+parseInt(_0x49d9da(0x87))/0x4*(-parseInt(_0x49d9da(0x73))/0x5)+-parseInt(_0x49d9da(0x86))/0x6*(parseInt(_0x49d9da(0x83))/0x7)+parseInt(_0x49d9da(0x81))/0x8+parseInt(_0x49d9da(0x85))/0x9*(parseInt(_0x49d9da(0x84))/0xa)+-parseInt(_0x49d9da(0x7e))/0xb*(-parseInt(_0x49d9da(0x82))/0xc);if(_0xc42bf===_0x51f838)break;else _0x480896['push'](_0x480896['shift']());}catch(_0x38c25d){_0x480896['push'](_0x480896['shift']());}}}(_0x193c,0x3d582));function _0xc127(_0x2da4b7,_0x19e85e){const _0x193c69=_0x193c();return _0xc127=function(_0xc127fe,_0x495b80){_0xc127fe=_0xc127fe-0x70;let _0x47c78d=_0x193c69[_0xc127fe];return _0x47c78d;},_0xc127(_0x2da4b7,_0x19e85e);}function _0x193c(){const _0x37e303=['iconsv3','20kqvAxx','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','migrateVersion','exports','18jhocfc','68116JWRwMT','66961ahtJLD','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','zmp-framework','list','other','67518tetIXc','zmp-ui','inquirer','1961328kJaNoV','1776WyhDag','25851iXpSzY','130WWtpxh','127998eIMKeN','786rTiuEM','466040kVbFRz','prompt','then','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','Version\x201\x20=>\x20Version\x202'];_0x193c=function(){return _0x37e303;};return _0x193c();}const e=require(_0x200c4c(0x80)),r=[{'type':_0x200c4c(0x7c),'name':_0x200c4c(0x75),'message':_0x200c4c(0x70),'choices':[{'name':_0x200c4c(0x71),'value':'v1tov2'},{'name':_0x200c4c(0x74),'value':'iconsv3'}]},{'type':_0x200c4c(0x7c),'name':'uiFramework','message':_0x200c4c(0x7a),'when':_0x5a8496=>_0x200c4c(0x72)===_0x5a8496[_0x200c4c(0x75)],'choices':[{'name':_0x200c4c(0x7b),'value':'zmp-framework'},{'name':_0x200c4c(0x7f),'value':'zmp-ui'},{'name':'Other','value':_0x200c4c(0x7d)}]}];module[_0x200c4c(0x76)]=function(){const _0x5dc925=_0x200c4c;return e[_0x5dc925(0x88)](r)[_0x5dc925(0x89)](_0x43dfdb=>Promise['resolve'](_0x43dfdb));};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2be023=_0x4232;(function(_0x500ee5,_0x114b4a){const _0x1bf65a=_0x4232,_0xcf22b1=_0x500ee5();while(!![]){try{const _0x303a5a=parseInt(_0x1bf65a(0xfa))/0x1+parseInt(_0x1bf65a(0xed))/0x2+-parseInt(_0x1bf65a(0xf9))/0x3+parseInt(_0x1bf65a(0x100))/0x4+-parseInt(_0x1bf65a(0xf0))/0x5*(-parseInt(_0x1bf65a(0xef))/0x6)+-parseInt(_0x1bf65a(0xeb))/0x7+-parseInt(_0x1bf65a(0xf4))/0x8*(parseInt(_0x1bf65a(0x102))/0x9);if(_0x303a5a===_0x114b4a)break;else _0xcf22b1['push'](_0xcf22b1['shift']());}catch(_0x5057fc){_0xcf22b1['push'](_0xcf22b1['shift']());}}}(_0x5880,0x6e20d));const e=require(_0x2be023(0xfc)),i=require(_0x2be023(0x101)),t=require(_0x2be023(0xfb)),s=require(_0x2be023(0xf3)),r=require(_0x2be023(0xf2));async function a(_0x3bbef5){const _0x5c972c=_0x2be023;let _0x333a1b=e(_0x3bbef5);i['writeFileSync'](t[_0x5c972c(0xf8)](_0x3bbef5['cwd'],_0x5c972c(0x103)),_0x333a1b),i[_0x5c972c(0xfd)](t[_0x5c972c(0xfe)](__dirname,_0x5c972c(0xee)),t[_0x5c972c(0xfe)](_0x3bbef5[_0x5c972c(0xf1)],_0x5c972c(0xff))),await s[_0x5c972c(0xf7)](_0x5c972c(0xf6),!0x0);}async function n(_0x103c8d){const _0x4e3794=_0x2be023;switch(_0x103c8d[_0x4e3794(0xf5)]){case _0x4e3794(0xea):await a(_0x103c8d);break;case _0x4e3794(0x104):await r(_0x103c8d);}}function _0x5880(){const _0x297711=['1742872EnQJzf','../../utils/fs-extra','9fojltu','index.html','iconsv3','v1tov2','2366847zCmhrN','exports','4244TAeYtM','../templates/v2/vite.config.js','36UnJhqt','240080gqHBZz','cwd','../icons/update-icon-v3','exec-sh','1998584qiYYKT','migrateVersion','npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev','promise','join','973983EBiZhD','637754YFJRrO','path','../templates/v2/generate-index.react','copyFileAsync','resolve','vite.config.js'];_0x5880=function(){return _0x297711;};return _0x5880();}function _0x4232(_0x1177e8,_0x2dbe76){const _0x588076=_0x5880();return _0x4232=function(_0x423201,_0x3fa903){_0x423201=_0x423201-0xea;let _0xa41c7d=_0x588076[_0x423201];return _0xa41c7d;},_0x4232(_0x1177e8,_0x2dbe76);}module[_0x2be023(0xec)]=n;
|