jjb-cmd 2.1.12 → 2.1.14
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 +4 -0
- package/bin/command.js +5 -0
- package/package.json +1 -1
- package/src/new/cmd.auth/index.js +1 -1
- package/src/new/cmd.init/index.js +1 -1
- package/src/new/cmd.install/config.js +1 -1
- package/src/new/cmd.install/index.js +1 -1
- package/src/new/cmd.install/tools.js +1 -1
- package/src/new/cmd.install.app/index.js +1 -1
- package/src/new/cmd.push/index.js +1 -1
- package/src/new/cmd.push/java.js +1 -1
- package/src/new/cmd.refresh/index.js +1 -0
- package/src/new/cmd.reglist/index.js +1 -1
- package/src/new/cmd.rm-rf/index.js +1 -1
- package/src/new/cmd.version/index.js +1 -1
- package/src/old/cli.init.js +1 -1
- package/src/old/cli.install/config.js +1 -1
- package/src/old/cli.install/index.js +1 -1
- package/src/old/cli.install/tools.js +1 -1
- package/src/old/cli.merge.js +1 -1
- package/src/old/cli.pull.js +1 -1
- package/src/old/cli.pull2.js +1 -1
- package/src/old/cli.rm-rf.js +1 -1
- package/src/old/progress-bar.js +1 -1
- package/src/old/util.js +1 -1
package/README.md
CHANGED
package/bin/command.js
CHANGED
@@ -134,4 +134,9 @@ commander.command('install.app').description('-- 安装').action(stdin => {
|
|
134
134
|
require('../src/new/cmd.install.app/index.js')(stdin);
|
135
135
|
});
|
136
136
|
|
137
|
+
//从服务端更新本地文件
|
138
|
+
commander.command('refresh').description('-- 更新').action(stdin => {
|
139
|
+
require('../src/new/cmd.refresh/index.js')(stdin);
|
140
|
+
});
|
141
|
+
|
137
142
|
commander.parse(process.argv);
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a0_0x4195e8=a0_0x3b50;function a0_0x1a3a(){const _0x2cf9f7=['Auth\x20Fail!','data','log','Auth\x20Success!','13PuBJUA','../cmd.install/config','30UeSIuZ','join','589039WoSwrl','10973504PCcwcZ','path','unlinkSync','../../../.auth','348tmQJbj','post','148694VPwjFC','Auth\x20NetWork\x20Fail!','4938588LNxKvk','28KpiMle','429155zSqcOS','existsSync','/api/auth','3697749JBKrTV','127004ndpEPP','axios'];a0_0x1a3a=function(){return _0x2cf9f7;};return a0_0x1a3a();}(function(_0x5e130f,_0x1d5737){const _0x192f76=a0_0x3b50,_0x2ecd91=_0x5e130f();while(!![]){try{const _0x20a3de=parseInt(_0x192f76(0xab))/0x1*(parseInt(_0x192f76(0xa5))/0x2)+-parseInt(_0x192f76(0xa4))/0x3+-parseInt(_0x192f76(0xb9))/0x4*(-parseInt(_0x192f76(0xba))/0x5)+-parseInt(_0x192f76(0xb4))/0x6*(-parseInt(_0x192f76(0xb6))/0x7)+-parseInt(_0x192f76(0xb0))/0x8+parseInt(_0x192f76(0xb8))/0x9+parseInt(_0x192f76(0xad))/0xa*(parseInt(_0x192f76(0xaf))/0xb);if(_0x20a3de===_0x1d5737)break;else _0x2ecd91['push'](_0x2ecd91['shift']());}catch(_0x49551f){_0x2ecd91['push'](_0x2ecd91['shift']());}}}(a0_0x1a3a,0xba65f));function a0_0x3b50(_0x3e284d,_0x11fb4f){const _0x1a3af8=a0_0x1a3a();return a0_0x3b50=function(_0x3b5072,_0x1bca97){_0x3b5072=_0x3b5072-0xa3;let _0x3eba69=_0x1a3af8[_0x3b5072];return _0x3eba69;},a0_0x3b50(_0x3e284d,_0x11fb4f);}const axios=require(a0_0x4195e8(0xa6)),fs=require('fs'),path=require(a0_0x4195e8(0xb1)),{API_HOST}=require(a0_0x4195e8(0xac));module['exports']=_0x50a9e6=>{const _0x2cca8d=a0_0x4195e8;console['log'](_0x50a9e6);const [_0x534ab0,_0x50a705]=_0x50a9e6;axios[_0x2cca8d(0xb5)](API_HOST+_0x2cca8d(0xa3),{'username':_0x534ab0,'password':_0x50a705})['then'](_0x3b03aa=>{const _0x5c752a=_0x2cca8d,_0x358fbb=path[_0x5c752a(0xae)](__dirname,_0x5c752a(0xb3));_0x3b03aa[_0x5c752a(0xa8)]['status']?(console[_0x5c752a(0xa9)](_0x5c752a(0xaa)),fs['writeFileSync'](_0x358fbb,_0x534ab0+'/'+_0x50a705)):(console[_0x5c752a(0xa9)](_0x5c752a(0xa7)),fs[_0x5c752a(0xbb)](_0x358fbb)&&fs[_0x5c752a(0xb2)](_0x358fbb));})['catch'](_0x54e156=>{const _0x2ee09e=_0x2cca8d;console['log'](_0x2ee09e(0xb7));});};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a1_0x443c34=a1_0x5caf;(function(_0x2822e2,_0x10e3cd){const _0x5ae9f1=a1_0x5caf,_0x180d66=_0x2822e2();while(!![]){try{const _0xbedcef=parseInt(_0x5ae9f1(0x1cf))/0x1+-parseInt(_0x5ae9f1(0x1c7))/0x2+-parseInt(_0x5ae9f1(0x1ca))/0x3+parseInt(_0x5ae9f1(0x1b2))/0x4+-parseInt(_0x5ae9f1(0x1c5))/0x5*(parseInt(_0x5ae9f1(0x1ba))/0x6)+parseInt(_0x5ae9f1(0x1d3))/0x7+parseInt(_0x5ae9f1(0x1b5))/0x8*(-parseInt(_0x5ae9f1(0x1be))/0x9);if(_0xbedcef===_0x10e3cd)break;else _0x180d66['push'](_0x180d66['shift']());}catch(_0x7e974c){_0x180d66['push'](_0x180d66['shift']());}}}(a1_0x1f10,0x9e87c));function a1_0x5caf(_0x2cc0fc,_0x3b3edb){const _0x1f1095=a1_0x1f10();return a1_0x5caf=function(_0x5caf49,_0x45f634){_0x5caf49=_0x5caf49-0x1b1;let _0x5b8009=_0x1f1095[_0x5caf49];return _0x5b8009;},a1_0x5caf(_0x2cc0fc,_0x3b3edb);}const path=require('path'),{f_file_copy}=require(a1_0x443c34(0x1b9)),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require(a1_0x443c34(0x1d1)),fs=require('fs'),os=require('os'),utils=require(a1_0x443c34(0x1b1)),request=require('request'),compressing=require(a1_0x443c34(0x1b3));module[a1_0x443c34(0x1bd)]=_0x520170=>{const _0x3dcc07=a1_0x443c34,_0x58f0e2=path[_0x3dcc07(0x1c6)]('./'),_0x377eb9=CLOUD_PROJECT[_0x520170]||undefined;if(_0x377eb9){const _0x45a471=os[_0x3dcc07(0x1cd)](),_0x5c405f=_0x45a471+'/'+GIT_TEMP_DIR+'/'+_0x520170+'.zip',_0x5272ad=_0x45a471+'/'+GIT_TEMP_DIR+_0x3dcc07(0x1c2);utils[_0x3dcc07(0x1cc)](_0x45a471+'/'+GIT_TEMP_DIR,()=>{const _0x437dfa=_0x3dcc07;fs['mkdirSync'](_0x45a471+'/'+GIT_TEMP_DIR);let _0x7eacd2=fs['createWriteStream'](_0x5c405f);request(GIT_HOST+_0x437dfa(0x1c0)+_0x377eb9[_0x437dfa(0x1c3)]+_0x437dfa(0x1ce)+_0x377eb9['token']+_0x437dfa(0x1c4))['pipe'](_0x7eacd2)['on'](_0x437dfa(0x1b4),()=>{const _0x43998c=_0x437dfa;fs[_0x43998c(0x1b8)](_0x5272ad),compressing[_0x43998c(0x1bf)][_0x43998c(0x1d2)](_0x5c405f,_0x5272ad)[_0x43998c(0x1c9)](()=>{setTimeout(()=>{const _0x3855b9=a1_0x5caf;fs['readdirSync'](_0x5272ad)[_0x3855b9(0x1b6)](_0x5832be=>{const _0x175c6e=_0x3855b9;_0x5832be[_0x175c6e(0x1bc)]('-master-')!==-0x1&&utils[_0x175c6e(0x1b7)](_0x5272ad+_0x5832be,_0x58f0e2,()=>{const _0x2084a8=_0x175c6e;console[_0x2084a8(0x1bb)](_0x2084a8(0x1d0)),process[_0x2084a8(0x1cb)](0x0);});});},0x7d0);});});});}else console[_0x3dcc07(0x1bb)](_0x3dcc07(0x1c1)+_0x520170+_0x3dcc07(0x1c8));};function a1_0x1f10(){const _0x20d93d=['6986777cujSkk','../../old/util','4400456fkEgYb','compressing','close','8lErBWK','forEach','CopyFolder','mkdirSync','../cmd.install/tools','1540644ZDAIiH','log','indexOf','exports','8584605Inmvwn','zip','/api/v4/projects/','【Error】:初始化失败,','/unzip/','projectId','&ref=master','20EhBaQP','resolve','53362uvUpxO','不存在。','then','165084rZvDng','exit','DeleteDirAllFile','tmpdir','/repository/archive.zip?private_token=','613765dZrDaG','初始化完成!','../cmd.install/config','uncompress'];a1_0x1f10=function(){return _0x20d93d;};return a1_0x1f10();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a2_0x57cd52=a2_0x324f;function a2_0x324f(_0x5ead3b,_0x33b585){const _0x229540=a2_0x2295();return a2_0x324f=function(_0x324f8b,_0x458520){_0x324f8b=_0x324f8b-0x116;let _0x401ee0=_0x229540[_0x324f8b];return _0x401ee0;},a2_0x324f(_0x5ead3b,_0x33b585);}function a2_0x2295(){const _0x443a71=['55omaJSx','7V-YUxhmh51Mdhgx4rq4','http://120.26.210.58:8088','3972sJtLda','dev','TEMPLATE_FOLDER','886HihHse','API_HOST','test','29405100MDOCSb','jjb-assembly-','G4HJRsHr9D7Ssmixegw2','prod','http://192.168.1.242:10985','CLOUD_PROJECT','76164gRtuRa','9BmzUTk','8743760AqjXJu','now','d4wQ7dzEjYPsgVbKnYei','GIT_TEMP_JAVA','10773567nJzycs','GIT_JAVA_ENV_JSON','FqNrmFAgrxasMrbbjvq9','https://cdn.cqjjb.cn/jjb-cloud-config','e9njpBd1nS_LREN8GFpR','1565188IEnPkI','4164234LWwvvT','GIT_HOST','CONFIG_FILE_HOST','GIT_TEMP_DIR','FT3pKzxpRynFkmddJ9Bs'];a2_0x2295=function(){return _0x443a71;};return a2_0x2295();}(function(_0x1d9258,_0x595029){const _0x1fc199=a2_0x324f,_0x5ea111=_0x1d9258();while(!![]){try{const _0x576cd4=parseInt(_0x1fc199(0x122))/0x1+parseInt(_0x1fc199(0x12e))/0x2*(-parseInt(_0x1fc199(0x12b))/0x3)+parseInt(_0x1fc199(0x117))/0x4*(parseInt(_0x1fc199(0x128))/0x5)+-parseInt(_0x1fc199(0x123))/0x6+-parseInt(_0x1fc199(0x11d))/0x7+-parseInt(_0x1fc199(0x119))/0x8*(parseInt(_0x1fc199(0x118))/0x9)+parseInt(_0x1fc199(0x131))/0xa;if(_0x576cd4===_0x595029)break;else _0x5ea111['push'](_0x5ea111['shift']());}catch(_0x51f225){_0x5ea111['push'](_0x5ea111['shift']());}}}(a2_0x2295,0xc3edf));const os=require('os');exports[a2_0x57cd52(0x125)]=a2_0x57cd52(0x120),exports[a2_0x57cd52(0x12f)]=a2_0x57cd52(0x12a),exports[a2_0x57cd52(0x124)]=a2_0x57cd52(0x135),exports[a2_0x57cd52(0x126)]=a2_0x57cd52(0x132)+Date[a2_0x57cd52(0x11a)](),exports[a2_0x57cd52(0x11c)]='jjb-assembly-java',exports[a2_0x57cd52(0x11e)]={'development':a2_0x57cd52(0x12c),'production':a2_0x57cd52(0x134),'test':a2_0x57cd52(0x130)},exports[a2_0x57cd52(0x116)]={'common':{'token':a2_0x57cd52(0x133),'projectId':0x117},'react-admin-component':{'token':a2_0x57cd52(0x127),'projectId':0x154},'jjb-dva-runtime':{'token':'hLqARY89CN6fUD3yg4NL','projectId':0x23b},'jjb-common-lib':{'token':a2_0x57cd52(0x121),'projectId':0x23c},'jjb-common-decorator':{'token':'gPSit8aJsLVmNzuQ5Cy4','projectId':0x23e},'vue-unisass-component':{'token':a2_0x57cd52(0x11b),'projectId':0x153},'react-component':{'token':'snBxJ2i5kYarGGcsojhY','projectId':0x33f},'micro-app-ts':{'token':a2_0x57cd52(0x129),'projectId':0x33e},'micro-app':{'token':a2_0x57cd52(0x11f),'projectId':0x33d},'lib':{'token':'ywPtT3xCG6b_vAxp6sTj','projectId':0x33c}},exports[a2_0x57cd52(0x12d)]=os['tmpdir']()+'\x5c'+exports[a2_0x57cd52(0x126)];
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a3_0x3c94(_0x5f2f4d,_0x397f01){const _0x2eb7aa=a3_0x2eb7();return a3_0x3c94=function(_0x3c9423,_0x1d10ec){_0x3c9423=_0x3c9423-0x104;let _0x1f8d02=_0x2eb7aa[_0x3c9423];return _0x1f8d02;},a3_0x3c94(_0x5f2f4d,_0x397f01);}const a3_0x4d5138=a3_0x3c94;(function(_0x38b1d0,_0x20bc18){const _0x881d89=a3_0x3c94,_0x300b66=_0x38b1d0();while(!![]){try{const _0x4ea8e5=parseInt(_0x881d89(0x136))/0x1*(-parseInt(_0x881d89(0x137))/0x2)+-parseInt(_0x881d89(0x128))/0x3*(parseInt(_0x881d89(0x117))/0x4)+-parseInt(_0x881d89(0x11a))/0x5*(parseInt(_0x881d89(0x11d))/0x6)+-parseInt(_0x881d89(0x118))/0x7+parseInt(_0x881d89(0x127))/0x8*(-parseInt(_0x881d89(0x11f))/0x9)+parseInt(_0x881d89(0x122))/0xa*(-parseInt(_0x881d89(0x10b))/0xb)+parseInt(_0x881d89(0x10a))/0xc;if(_0x4ea8e5===_0x20bc18)break;else _0x300b66['push'](_0x300b66['shift']());}catch(_0x12eb60){_0x300b66['push'](_0x300b66['shift']());}}}(a3_0x2eb7,0x61716));function a3_0x2eb7(){const _0x3a1bc3=['installResources','map','zip','_zip','includes','src\x5c','name','jjb-common-lib','\x5ctypes','resolve','find','repository','40382544sNEoBD','1177OTRcqk','【jjb-cmd】:install命令执行完成,用时','push','1.0.0','path','rmdirSync','length','log','request','close','import_list','.idea','167928Hiwonf','3808679dXdUGR','pipe','760hiRVcg','【Error】:安装失败,node_modules目录不存在。','compressing','24468WwhJLT','unlinkSync','40041WDioDA','src','join','4790WItGrv','now','createWriteStream','.gitignore','replace','568TRJXkE','51NtubIx','index.js','【Error】:安装失败,src目录不存在。','pure_name','node_modules','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','mkdirSync','./tools','existsSync','setting.json','importList','filter','installTarget','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','1CSwOwe','1442614WRBzHN','readdirSync','forEach','exit'];a3_0x2eb7=function(){return _0x3a1bc3;};return a3_0x2eb7();}const fs=require('fs'),path=require(a3_0x4d5138(0x10f)),request=require(a3_0x4d5138(0x113)),compressing=require(a3_0x4d5138(0x11c)),{f_rm_rf,f_file_copy,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a3_0x4d5138(0x12f)),{TEMPLATE_FOLDER}=require('./config'),start_time=Date['now']();module['exports']=()=>{const _0x5db54b=a3_0x4d5138,_0x449559=path[_0x5db54b(0x107)]('./'),_0x9d5ad=[_0x449559,_0x5db54b(0x140)]['join']('\x5c'),_0x3f4265=[_0x449559,_0x5db54b(0x12c)][_0x5db54b(0x121)]('\x5c'),_0xd58594=[_0x449559,'package.json'][_0x5db54b(0x121)]('\x5c');if(f_scan_jjb_config_json(_0x449559)){const _0x58a765=f_scan_jjb_config_json_rules(_0x449559);_0x58a765[_0x5db54b(0x134)]==='node_modules'?!fs[_0x5db54b(0x130)](_0x3f4265)?(console[_0x5db54b(0x112)](_0x5db54b(0x11b)),process[_0x5db54b(0x13a)](0x0)):console[_0x5db54b(0x112)](_0x5db54b(0x135)):!fs['existsSync'](_0x9d5ad)&&(console[_0x5db54b(0x112)](_0x5db54b(0x12a)),process[_0x5db54b(0x13a)](0x0));fs[_0x5db54b(0x12e)](TEMPLATE_FOLDER),f_pull_git_repository(_0x58a765[_0x5db54b(0x13b)])['map'](_0x372346=>{const _0x471b36=_0x5db54b,_0x227aec=fs[_0x471b36(0x124)](_0x372346[_0x471b36(0x10f)]);request(_0x372346[_0x471b36(0x109)])[_0x471b36(0x119)](_0x227aec)['on'](_0x471b36(0x114),()=>{const _0x410bfb=_0x471b36;fs['mkdirSync'](_0x372346['compress']),compressing[_0x410bfb(0x13d)]['uncompress'](_0x372346[_0x410bfb(0x10f)],_0x372346['compress']);});});const _0x262155=setInterval(()=>{const _0x55bf37=_0x5db54b,_0x326ae2=fs[_0x55bf37(0x138)](TEMPLATE_FOLDER),_0x585b83=_0x326ae2[_0x55bf37(0x133)](_0x30ae4b=>_0x58a765[_0x55bf37(0x13b)][_0x55bf37(0x13c)](_0x4b0c09=>_0x4b0c09[_0x55bf37(0x104)]+_0x55bf37(0x13e))[_0x55bf37(0x13f)](_0x30ae4b));if(_0x585b83['length']===_0x58a765['installResources'][_0x55bf37(0x111)]){clearInterval(_0x262155);const _0x3755b6=[];_0x585b83[_0x55bf37(0x139)](_0x3ab727=>{const _0x339429=_0x55bf37,_0x19763d=[TEMPLATE_FOLDER,_0x3ab727][_0x339429(0x121)]('\x5c');fs[_0x339429(0x138)](_0x19763d)[_0x339429(0x139)](_0x8d5510=>_0x3755b6[_0x339429(0x10d)]({'name':_0x3ab727,'path':[_0x19763d,_0x8d5510]['join']('\x5c'),'pure_name':_0x3ab727[_0x339429(0x126)](/_zip$/,''),'import_list':_0x58a765[_0x339429(0x13b)][_0x339429(0x108)](_0x539259=>_0x539259['name']+_0x339429(0x13e)===_0x3ab727)[_0x339429(0x132)]}));}),_0x3755b6[_0x55bf37(0x139)](_0x3151e8=>{const _0x3cdad5=_0x55bf37,_0x5e8748=_0x3151e8[_0x3cdad5(0x12b)],_0x335ed6=_0x3151e8[_0x3cdad5(0x115)],_0x249a6b=[_0x3151e8[_0x3cdad5(0x10f)],_0x3cdad5(0x116)][_0x3cdad5(0x121)]('//'),_0x526f4f=[_0x3151e8['path'],_0x3cdad5(0x125)]['join']('//');fs['existsSync'](_0x249a6b)&&(f_rm_rf(_0x249a6b),fs[_0x3cdad5(0x110)](_0x249a6b));fs['existsSync'](_0x526f4f)&&fs[_0x3cdad5(0x11e)](_0x526f4f);_0x335ed6[_0x3cdad5(0x111)]&&fs[_0x3cdad5(0x138)](_0x3151e8[_0x3cdad5(0x10f)])[_0x3cdad5(0x133)](_0x1e4ce0=>!_0x335ed6[_0x3cdad5(0x13f)](_0x1e4ce0)&&_0x1e4ce0!==_0x3cdad5(0x129)&&_0x1e4ce0!==_0x3cdad5(0x131))[_0x3cdad5(0x139)](_0x1d05aa=>{const _0x5c2885=_0x3cdad5,_0x5776d1=_0x3151e8[_0x5c2885(0x10f)]+'\x5c'+_0x1d05aa;f_rm_rf(_0x5776d1),fs[_0x5c2885(0x110)](_0x5776d1);});if(_0x58a765[_0x3cdad5(0x134)]===_0x3cdad5(0x12c)){const _0x3688d6=_0x5e8748;fs['existsSync'](_0x3f4265+'\x5c'+_0x3688d6)?f_rm_rf(_0x3f4265+'\x5c'+_0x3688d6):fs[_0x3cdad5(0x12e)](_0x3f4265+'\x5c'+_0x3688d6),_0x3688d6!==_0x3cdad5(0x105)?(f_file_copy(_0x3151e8[_0x3cdad5(0x10f)],_0x3f4265+'\x5c'+_0x3688d6),f_create_package_json(_0x3f4265+'\x5c'+_0x3688d6,_0x3688d6,_0x3cdad5(0x10e))):f_file_copy(_0x3151e8[_0x3cdad5(0x10f)]+_0x3cdad5(0x106),_0x3f4265+'\x5c'+_0x3688d6),f_update_project_package_json(_0xd58594,_0x3688d6,_0x3cdad5(0x10e));}else _0x58a765['installTarget']===_0x3cdad5(0x120)&&(fs[_0x3cdad5(0x130)](_0x9d5ad+_0x5e8748)?f_rm_rf(_0x9d5ad+_0x5e8748):fs[_0x3cdad5(0x12e)](_0x9d5ad+_0x5e8748),f_file_copy(_0x3151e8[_0x3cdad5(0x10f)],_0x9d5ad+_0x5e8748));}),setTimeout(()=>{const _0x5e31d4=_0x55bf37;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0x4c4b2f=Date[_0x5e31d4(0x123)]();console[_0x5e31d4(0x112)](_0x5e31d4(0x10c)+(_0x4c4b2f-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console['log'](_0x5db54b(0x12d));};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a4_0x4b7142=a4_0x93bd;(function(_0x57a564,_0x105a12){const _0x561276=a4_0x93bd,_0x5b066f=_0x57a564();while(!![]){try{const _0x178400=-parseInt(_0x561276(0xe0))/0x1+parseInt(_0x561276(0xd1))/0x2+parseInt(_0x561276(0xf0))/0x3+-parseInt(_0x561276(0xed))/0x4*(-parseInt(_0x561276(0xe8))/0x5)+parseInt(_0x561276(0xc0))/0x6*(-parseInt(_0x561276(0xc5))/0x7)+-parseInt(_0x561276(0xd4))/0x8*(parseInt(_0x561276(0xe7))/0x9)+parseInt(_0x561276(0xf2))/0xa;if(_0x178400===_0x105a12)break;else _0x5b066f['push'](_0x5b066f['shift']());}catch(_0x74e435){_0x5b066f['push'](_0x5b066f['shift']());}}}(a4_0x2f93,0xebf33));function a4_0x93bd(_0x10b05d,_0x55605a){const _0x2f9398=a4_0x2f93();return a4_0x93bd=function(_0x93bdf3,_0x56a011){_0x93bdf3=_0x93bdf3-0xa9;let _0x4be71e=_0x2f9398[_0x93bdf3];return _0x4be71e;},a4_0x93bd(_0x10b05d,_0x55605a);}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a4_0x4b7142(0xb9));exports[a4_0x4b7142(0xe3)]=function(_0x548561){const _0x19fcfc=a4_0x4b7142;if(fs[_0x19fcfc(0xcb)](_0x548561)){const _0x52ec21=fs[_0x19fcfc(0xd5)](_0x548561);for(let _0xafc4b0=0x0;_0xafc4b0<_0x52ec21[_0x19fcfc(0xcd)];_0xafc4b0++){const _0x3bd97a=_0x52ec21[_0xafc4b0],_0x227fd6=_0x548561+'/'+_0x3bd97a;fs['statSync'](_0x227fd6)[_0x19fcfc(0xad)]()?(exports['f_rm_rf'](_0x227fd6),fs['rmdirSync'](_0x227fd6)):fs[_0x19fcfc(0xc2)](_0x227fd6);}}},exports[a4_0x4b7142(0xae)]=function(_0xd48aa=[]){const _0x2bfee9=a4_0x4b7142;return _0xd48aa[_0x2bfee9(0xb7)](_0x2f0ddc=>{const _0x5a387a=_0x2bfee9,_0x7db372=CLOUD_PROJECT[_0x2f0ddc[_0x5a387a(0xe1)]]||undefined,_0x345378=os[_0x5a387a(0xc4)]();return{'path':_0x345378+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x2f0ddc[_0x5a387a(0xe1)]+'.zip','compress':_0x345378+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x2f0ddc['name']+_0x5a387a(0xb0),'repository':GIT_HOST+_0x5a387a(0xee)+_0x7db372[_0x5a387a(0xef)]+_0x5a387a(0xaa)+_0x7db372[_0x5a387a(0xea)]+_0x5a387a(0xdc)};});},exports['f_scan_jjb_config_json']=function(_0x49985a){const _0x3d79a5=a4_0x4b7142;return fs[_0x3d79a5(0xcb)](_0x49985a+_0x3d79a5(0xc8));},exports[a4_0x4b7142(0xd0)]=function(_0x46b820){const _0x2e2737=a4_0x4b7142;let _0x437141={};try{_0x437141=JSON['parse'](fs[_0x2e2737(0xbb)](_0x46b820+_0x2e2737(0xc8))['toString']());}catch(_0x42208e){console['log']('【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。'),process[_0x2e2737(0xbe)](0x0);}!(_0x2e2737(0xa9)in _0x437141)&&(console[_0x2e2737(0xde)](_0x2e2737(0xe4)),process[_0x2e2737(0xbe)](0x0));!(_0x2e2737(0xe6)in _0x437141)&&(console[_0x2e2737(0xde)](_0x2e2737(0xc1)),process[_0x2e2737(0xbe)](0x0));!(_0x2e2737(0xb1)in _0x437141)&&(console[_0x2e2737(0xde)](_0x2e2737(0xe2)),process['exit'](0x0));typeof _0x437141[_0x2e2737(0xa9)]!==_0x2e2737(0xc6)&&(console[_0x2e2737(0xde)](_0x2e2737(0xd9)),process[_0x2e2737(0xbe)](0x0));![_0x2e2737(0xca),_0x2e2737(0xb4),_0x2e2737(0xda),_0x2e2737(0xcc)][_0x2e2737(0xbc)](_0x437141[_0x2e2737(0xa9)])&&(console[_0x2e2737(0xde)](_0x2e2737(0xce)),process[_0x2e2737(0xbe)](0x0));typeof _0x437141[_0x2e2737(0xe6)]!==_0x2e2737(0xc6)&&(console[_0x2e2737(0xde)](_0x2e2737(0xd2)),process['exit'](0x0));![_0x2e2737(0xe9),_0x2e2737(0xcf)][_0x2e2737(0xbc)](_0x437141['installTarget'])&&(console[_0x2e2737(0xde)](_0x2e2737(0xaf)),process[_0x2e2737(0xbe)](0x0));!Array[_0x2e2737(0xf1)](_0x437141['installResources'])&&(console[_0x2e2737(0xde)](_0x2e2737(0xb3)),process['exit'](0x0));_0x437141[_0x2e2737(0xb1)][_0x2e2737(0xcd)]===0x0&&(console[_0x2e2737(0xde)](_0x2e2737(0xd8)),process[_0x2e2737(0xbe)](0x0));const _0x473999=exports[_0x2e2737(0xdb)](_0x437141[_0x2e2737(0xb1)]);return _0x473999['map'](_0x1d4e1e=>_0x1d4e1e[_0x2e2737(0xe1)])[_0x2e2737(0xc7)](_0x377c21=>!['jjb-common','jjb-dva-runtime','jjb-common-lib',_0x2e2737(0xd3),_0x2e2737(0xab),'vue-unisass-component'][_0x2e2737(0xbc)](_0x377c21))['length']!==0x0&&(console[_0x2e2737(0xde)](_0x2e2737(0xdf)),process[_0x2e2737(0xbe)](0x0)),_0x437141[_0x2e2737(0xb1)]=_0x473999,_0x437141;},exports[a4_0x4b7142(0xac)]=function(_0x878597,_0x9b3a74,_0x78b881){const _0xbe0d41=a4_0x4b7142;fs[_0xbe0d41(0xc3)](_0x878597+'\x5cpackage.json',_0xbe0d41(0xba)+_0x9b3a74+_0xbe0d41(0xd6)+_0x78b881+_0xbe0d41(0xbd));},exports[a4_0x4b7142(0xdb)]=function(_0x609a8a=[]){const _0xa6d293=a4_0x4b7142,_0x9f1444=[];return Array['isArray'](_0x609a8a)&&_0x609a8a[_0xa6d293(0xe5)](_0x3e07fb=>{const _0x344bac=_0xa6d293;if(Array[_0x344bac(0xf1)](_0x3e07fb)){const [_0x4128f6,_0x329bd1=[]]=_0x3e07fb;_0x9f1444['push']({'name':_0x4128f6,'importList':_0x329bd1});}else _0x9f1444[_0x344bac(0xd7)]({'name':_0x3e07fb,'importList':[]});}),_0x9f1444;},exports[a4_0x4b7142(0xc9)]=function(_0x4cee8f,_0x1403a6,_0x26475a){const _0x45d6b4=a4_0x4b7142,_0x2af96e=JSON[_0x45d6b4(0xb2)](fs['readFileSync'](_0x4cee8f)[_0x45d6b4(0xb5)]());_0x2af96e['dependencies'][_0x1403a6]=_0x26475a,fs[_0x45d6b4(0xc3)](_0x4cee8f,JSON['stringify'](_0x2af96e,null,0x2));},exports[a4_0x4b7142(0xdd)]=function(_0x44646c,_0x4d351c){const _0x19e14b=a4_0x4b7142;fs[_0x19e14b(0xd5)](_0x44646c)['forEach'](_0x5835a8=>{const _0xdc4ff=_0x19e14b,_0x160fd5=_0x44646c+'\x5c'+_0x5835a8,_0x536cdf=_0x4d351c+'\x5c'+_0x5835a8;fs[_0xdc4ff(0xb8)](_0x160fd5)[_0xdc4ff(0xad)]()?(fs[_0xdc4ff(0xbf)](_0x536cdf),exports[_0xdc4ff(0xdd)](_0x160fd5,_0x536cdf)):fs[_0xdc4ff(0xc3)](_0x536cdf,fs[_0xdc4ff(0xbb)](_0x160fd5)[_0xdc4ff(0xb5)]());});},exports[a4_0x4b7142(0xb6)]=function(_0x34eed0=[],_0x3443f7){const _0x4aaee9=a4_0x4b7142;_0x34eed0[_0x4aaee9(0xe5)](_0x83b6a9=>{const _0x1c60cb=_0x4aaee9,_0x260819=_0x3443f7+_0x83b6a9[_0x1c60cb(0xeb)];if(fs[_0x1c60cb(0xcb)](_0x260819)){let _0x4545ed=fs[_0x1c60cb(0xbb)](_0x260819)[_0x1c60cb(0xb5)]();_0x83b6a9[_0x1c60cb(0xec)]['forEach'](_0x38290a=>{const _0x252a95=_0x1c60cb;_0x4545ed=_0x4545ed[_0x252a95(0xec)](_0x38290a[0x0],_0x38290a[0x1]);}),fs[_0x1c60cb(0xc3)](_0x260819,_0x4545ed);}});};function a4_0x2f93(){const _0x1455ff=['【Error】:[jjb.config.json.installTarget]类型是一个string。','jjb-common-decorator','64DvqaNm','readdirSync','\x22,\x22version\x22:\x22','push','【Error】:[jjb.config.json.installResources]无资源。','【Error】:[jjb.config.json.projectType]类型是一个string。','uniapp','f_resolve_install_resources','&ref=master','f_file_copy','log','【Error】:[jjb.config.json.installResources]配置无效,有效值<common\x20|\x20react-admin-component\x20|\x20vue-unisass-component\x20|\x20jjb-common-decorator\x20|\x20jjb-dva-runtime\x20|\x20jjb-common-lib>。','1783356IlJnxn','name','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','f_rm_rf','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','forEach','installTarget','165312eFqCsG','2403710VHXWOm','node_modules','token','path','replace','12Ukvopl','/api/v4/projects/','projectId','5475942kHZIkj','isArray','9027460YPFBCo','projectType','/repository/archive.zip?private_token=','react-admin-component','f_create_package_json','isDirectory','f_pull_git_repository','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','_zip','installResources','parse','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','spa','toString','f_content_replace','map','statSync','./config','{\x22name\x22:\x22','readFileSync','includes','\x22,\x22main\x22:\x20\x22index.js\x22}','exit','mkdirSync','57804HwpFVK','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','unlinkSync','writeFileSync','tmpdir','1050ByUYgv','string','filter','\x5cjjb.config.json','f_update_project_package_json','multi','existsSync','micro-spa','length','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','src','f_scan_jjb_config_json_rules','343130svGlTq'];a4_0x2f93=function(){return _0x1455ff;};return a4_0x2f93();}
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a5_0x3d25e2=a5_0x553d;(function(_0x6c7290,_0x3a6148){const _0x4a6053=a5_0x553d,_0x5bb8d7=_0x6c7290();while(!![]){try{const _0x5c1665=-parseInt(_0x4a6053(0x108))/0x1*(-parseInt(_0x4a6053(0x104))/0x2)+-parseInt(_0x4a6053(0xf3))/0x3+-parseInt(_0x4a6053(0xf0))/0x4+-parseInt(_0x4a6053(0x106))/0x5+-parseInt(_0x4a6053(0xf6))/0x6*(parseInt(_0x4a6053(0x101))/0x7)+-parseInt(_0x4a6053(0xf1))/0x8+-parseInt(_0x4a6053(0x102))/0x9*(-parseInt(_0x4a6053(0xf2))/0xa);if(_0x5c1665===_0x3a6148)break;else _0x5bb8d7['push'](_0x5bb8d7['shift']());}catch(_0x5810ef){_0x5bb8d7['push'](_0x5bb8d7['shift']());}}}(a5_0x15bf,0xd2655));function a5_0x553d(_0x27cec7,_0x1080fb){const _0x15bf61=a5_0x15bf();return a5_0x553d=function(_0x553d5e,_0x4c6b79){_0x553d5e=_0x553d5e-0xee;let _0x1d63f7=_0x15bf61[_0x553d5e];return _0x1d63f7;},a5_0x553d(_0x27cec7,_0x1080fb);}const child_process=require('child_process'),path=require(a5_0x3d25e2(0xfd)),fs=require('fs');module[a5_0x3d25e2(0x107)]=_0x2dd92f=>{const _0x2cf0cc=a5_0x3d25e2;![_0x2cf0cc(0xfe),_0x2cf0cc(0xf5)][_0x2cf0cc(0x103)](_0x2dd92f)&&(console[_0x2cf0cc(0xfb)]('【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]'),process[_0x2cf0cc(0xf8)](0x0));const _0x3a3bc5=path[_0x2cf0cc(0xf9)]('./');console[_0x2cf0cc(0xfb)](_0x2cf0cc(0x100)),child_process[_0x2cf0cc(0xee)](_0x2dd92f==='yarn'?_0x2cf0cc(0xf5):_0x2cf0cc(0xef),{'cwd':_0x3a3bc5}),!fs[_0x2cf0cc(0xf7)](_0x3a3bc5+_0x2cf0cc(0xf4))&&(console[_0x2cf0cc(0xfb)](_0x2cf0cc(0xff)),child_process[_0x2cf0cc(0xee)](_0x2cf0cc(0xfa),{'cwd':_0x3a3bc5})),console[_0x2cf0cc(0xfb)]('install\x20husky\x20please\x20wait....'),child_process['execSync'](_0x2cf0cc(0x105),{'cwd':_0x3a3bc5}),console[_0x2cf0cc(0xfb)](_0x2cf0cc(0xfc));};function a5_0x15bf(){const _0x301b5b=['resolve','git\x20init','log','Finish!','path','npm','git\x20init\x20please\x20wait....','install\x20modules\x20please\x20wait....','3057369LVyfsb','919017IBVHCj','includes','847504gtrgeH','npx\x20husky\x20install','4616600BOZRps','exports','4EqtFia','execSync','npm\x20install','2538736WHjfll','3231760CJVPpf','290LgkTTu','1566687aQVXjv','/.git','yarn','18JqzLlB','existsSync','exit'];a5_0x15bf=function(){return _0x301b5b;};return a5_0x15bf();}
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a6_0xed05(){const _0x171c5f=['\x5cpackage.json','platform','268336VBVidT','/api/auth','data','754156XVZhhv','existsSync','网络异常。','../../../.auth','toString','catch','2NqWuGp','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','发布失败!根目录缺少‘package.json’文件,无法完成发布。','axios','status','2077269WClvlD','split','4008536mgQWYb','exports','then','【Error】:no\x20auth\x20login','\x5cdist\x5cindex.js','parse','stringify','hostname','message','join','post','2285736dHMDCs','1933099YPrxJv','10fNNhpS','exit','readFileSync','14746644ycxZhH','log'];a6_0xed05=function(){return _0x171c5f;};return a6_0xed05();}function a6_0x4612(_0x1faf2c,_0x3006aa){const _0xed0578=a6_0xed05();return a6_0x4612=function(_0x4612bf,_0x31cf9d){_0x4612bf=_0x4612bf-0x166;let _0x57841d=_0xed0578[_0x4612bf];return _0x57841d;},a6_0x4612(_0x1faf2c,_0x3006aa);}const a6_0x302f13=a6_0x4612;(function(_0x3dc037,_0x3e160f){const _0xab485d=a6_0x4612,_0xb46f4e=_0x3dc037();while(!![]){try{const _0x4a7917=-parseInt(_0xab485d(0x188))/0x1*(-parseInt(_0xab485d(0x17f))/0x2)+-parseInt(_0xab485d(0x169))/0x3+parseInt(_0xab485d(0x182))/0x4+parseInt(_0xab485d(0x178))/0x5*(-parseInt(_0xab485d(0x176))/0x6)+parseInt(_0xab485d(0x177))/0x7+-parseInt(_0xab485d(0x16b))/0x8+parseInt(_0xab485d(0x17b))/0x9;if(_0x4a7917===_0x3e160f)break;else _0xb46f4e['push'](_0xb46f4e['shift']());}catch(_0x3e9875){_0xb46f4e['push'](_0xb46f4e['shift']());}}}(a6_0xed05,0x65992));const path=require('path'),fs=require('fs'),os=require('os'),axios=require(a6_0x302f13(0x167)),{API_HOST}=require('../cmd.install/config');module[a6_0x302f13(0x16c)]=_0x43d9be=>{const _0x3278b4=a6_0x302f13,_0x3c671a=path[_0x3278b4(0x174)](__dirname,_0x3278b4(0x185));!fs[_0x3278b4(0x183)](_0x3c671a)&&(console[_0x3278b4(0x17c)](_0x3278b4(0x16e)),process[_0x3278b4(0x179)](0x0));const [_0x524580,_0x4cef21]=fs[_0x3278b4(0x17a)](_0x3c671a)[_0x3278b4(0x186)]()[_0x3278b4(0x16a)]('/');axios[_0x3278b4(0x175)](API_HOST+_0x3278b4(0x180),{'username':_0x524580,'password':_0x4cef21})[_0x3278b4(0x16d)](_0x15143d=>{const _0xe05e18=_0x3278b4;if(_0x15143d[_0xe05e18(0x181)][_0xe05e18(0x168)]){const _0x597343=path['resolve']('./'),_0x26566b=_0x597343+_0xe05e18(0x16f),_0x3574a7=_0x597343+_0xe05e18(0x17d),_0x40af22=[os[_0xe05e18(0x172)](),os[_0xe05e18(0x17e)](),os['arch'](),new Date()[_0xe05e18(0x186)](),JSON[_0xe05e18(0x171)](os['networkInterfaces'](),null,'\x09')];if(fs[_0xe05e18(0x183)](_0x3574a7)){if(fs[_0xe05e18(0x183)](_0x26566b)){const _0x509b6f=JSON[_0xe05e18(0x170)](fs[_0xe05e18(0x17a)](_0x3574a7)[_0xe05e18(0x186)]()),{name:_0x43bcee,version:_0x25f6fd}=_0x509b6f;_0x40af22['push'](JSON['stringify'](_0x509b6f)),axios[_0xe05e18(0x175)](API_HOST+'/api/file/push',{'username':_0x524580,'log_text':_0x40af22[_0xe05e18(0x174)]('\x0a'),'package_name':_0x43bcee,'package_version':_0x43d9be?_0x43d9be:_0x25f6fd,'package_content':fs[_0xe05e18(0x17a)](_0x26566b)['toString']()})[_0xe05e18(0x16d)](_0x349024=>{const _0x37fd6a=_0xe05e18;console[_0x37fd6a(0x17c)](_0x349024['data'][_0x37fd6a(0x173)]),process['exit'](0x0);})[_0xe05e18(0x187)](_0x1769bf=>{const _0x37686c=_0xe05e18;console[_0x37686c(0x17c)](_0x1769bf),console[_0x37686c(0x17c)](_0x37686c(0x184)),process['exit'](0x0);});}else console[_0xe05e18(0x17c)](_0xe05e18(0x189)),process[_0xe05e18(0x179)](0x0);}else console[_0xe05e18(0x17c)](_0xe05e18(0x166)),process['exit'](0x0);}else console['log']('Auth\x20Fail!');})['catch'](_0x307c91=>{const _0xe6cb03=_0x3278b4;console[_0xe6cb03(0x17c)]('Auth\x20NetWork\x20Fail!');});};
|
package/src/new/cmd.push/java.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a7_0xe18532=a7_0x2d4c;(function(_0x460f0b,_0x356449){const _0x26089f=a7_0x2d4c,_0x47408a=_0x460f0b();while(!![]){try{const _0x263c24=-parseInt(_0x26089f(0x1ac))/0x1*(-parseInt(_0x26089f(0x1b0))/0x2)+-parseInt(_0x26089f(0x1c0))/0x3+parseInt(_0x26089f(0x1c3))/0x4+parseInt(_0x26089f(0x1ad))/0x5*(-parseInt(_0x26089f(0x1d9))/0x6)+-parseInt(_0x26089f(0x1ba))/0x7+parseInt(_0x26089f(0x1d1))/0x8*(-parseInt(_0x26089f(0x1c8))/0x9)+parseInt(_0x26089f(0x1d7))/0xa;if(_0x263c24===_0x356449)break;else _0x47408a['push'](_0x47408a['shift']());}catch(_0x1c2cb5){_0x47408a['push'](_0x47408a['shift']());}}}(a7_0x5737,0xef4bf));function a7_0x2d4c(_0x139251,_0x1eac05){const _0x5737cb=a7_0x5737();return a7_0x2d4c=function(_0x2d4cad,_0x254e22){_0x2d4cad=_0x2d4cad-0x1ac;let _0x1a619e=_0x5737cb[_0x2d4cad];return _0x1a619e;},a7_0x2d4c(_0x139251,_0x1eac05);}const fs=require('fs'),os=require('os'),path=require('path'),child_process=require(a7_0xe18532(0x1b3)),{CopyFolder,DeleteDirAllFile}=require('../../old/util'),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,API_HOST}=require(a7_0xe18532(0x1db)),axios=require('axios');function a7_0x5737(){const _0x2e8754=['git\x20clone\x20','child_process','Auth\x20NetWork\x20Fail!','【Error】:no\x20auth\x20login','parse','then','data','Git\x20Add\x20Done,git\x20commit,please\x20wait...','11061281ZmWNNy','yarn','【Error】:no\x20setting\x20git','toString','exports','split','3094527VpQVsm','\x5cjjb.config.json','\x20--no-verify','2990604oKmQYX','/api/auth','execSync','existsSync','【warning】:no\x20commit,git\x20push,please\x20wait...','9MRvBUn','【Error】:no\x20setting\x20gitName','【Error】:打包失败,没有dist目录!','join','【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...','Git\x20Push\x20Done!','tmpdir','Project\x20build\x20Done,copy\x20project,please\x20wait...','exit','1065592zYgdjK','readFileSync','git\x20add\x20.','\x5cdist','log','length','40182840mTmYOH','Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...','95250jHOwPZ','mkdirSync','../cmd.install/config','2KcjWyN','535ZKLQtM','git\x20push\x20-f','git\x20commit\x20-m\x20','657740NDKcpf','post'];a7_0x5737=function(){return _0x2e8754;};return a7_0x5737();}module[a7_0xe18532(0x1be)]=arguments=>{const _0x3e5eed=a7_0xe18532,_0x28b951=path[_0x3e5eed(0x1cb)](__dirname,'../../../.auth');!fs[_0x3e5eed(0x1c6)](_0x28b951)&&(console[_0x3e5eed(0x1d5)](_0x3e5eed(0x1b5)),process[_0x3e5eed(0x1d0)](0x0));const _0x145c21=arguments[0x1],_0x546853=arguments[0x2]||'no\x20message',_0x5805a8=path['resolve']('./'),_0x3e77f3=_0x5805a8+_0x3e5eed(0x1c1),_0x252897=_0x5805a8+_0x3e5eed(0x1d4),_0x471554=os[_0x3e5eed(0x1ce)](),[_0x37268c,_0x5c3b11]=fs['readFileSync'](_0x28b951)['toString']()[_0x3e5eed(0x1bf)]('/');axios[_0x3e5eed(0x1b1)](API_HOST+_0x3e5eed(0x1c4),{'username':_0x37268c,'password':_0x5c3b11})[_0x3e5eed(0x1b7)](_0x2fbe05=>{const _0x43eea9=_0x3e5eed;if(_0x2fbe05[_0x43eea9(0x1b8)]['status']){if(fs[_0x43eea9(0x1c6)](_0x3e77f3)){const _0x59b078=JSON[_0x43eea9(0x1b6)](fs[_0x43eea9(0x1d2)](_0x3e77f3)[_0x43eea9(0x1bd)]());if(_0x59b078['git']){const _0x20cec4=_0x471554+'/'+GIT_TEMP_JAVA;!fs['existsSync'](_0x20cec4)&&(fs['mkdirSync'](_0x20cec4),child_process[_0x43eea9(0x1c5)](_0x43eea9(0x1b2)+_0x59b078['git'],{'cwd':_0x20cec4})),_0x1dcdb2(_0x20cec4,_0x59b078);}else console[_0x43eea9(0x1d5)](_0x43eea9(0x1bc));}}else console[_0x43eea9(0x1d5)]('Auth\x20Fail!');})['catch'](_0x230454=>{const _0x37cc73=_0x3e5eed;console[_0x37cc73(0x1d5)](_0x37cc73(0x1b4));});arguments[_0x3e5eed(0x1d6)]<0x2&&(console['log']('【Error】:参数传递错误'),process[_0x3e5eed(0x1d0)](0x0));function _0x1dcdb2(_0x19aab3,_0x3c7c95){const _0x3d1d24=_0x3e5eed,_0x39d8f5=_0x19aab3+'/'+_0x3c7c95['gitName'];!fs['existsSync'](_0x39d8f5)&&(console[_0x3d1d24(0x1d5)](_0x3d1d24(0x1c9)),process['exit'](0x0));child_process[_0x3d1d24(0x1c5)]('git\x20pull',{'cwd':_0x39d8f5});!fs['existsSync'](_0x5805a8+'/node_modules')?(console['log'](_0x3d1d24(0x1cc)),child_process[_0x3d1d24(0x1c5)](_0x3d1d24(0x1bb),{'cwd':_0x5805a8}),console[_0x3d1d24(0x1d5)]('yarn\x20install\x20Done!')):console['log']('Git\x20Pull\x20Done,yarn\x20build:'+_0x145c21+',please\x20wait...');child_process['execSync']('yarn\x20build:'+_0x145c21,{'cwd':_0x5805a8}),console[_0x3d1d24(0x1d5)](_0x3d1d24(0x1cf));if(fs['existsSync'](_0x252897)){const _0x2ff570=_0x39d8f5+'/src/main/resources/templates/'+GIT_JAVA_ENV_JSON[_0x145c21];DeleteDirAllFile(_0x2ff570,()=>{const _0x50a71c=_0x3d1d24;fs[_0x50a71c(0x1da)](_0x2ff570),CopyFolder(_0x252897,_0x2ff570,()=>{const _0x4d41e9=_0x50a71c;console['log'](_0x4d41e9(0x1d8)),setTimeout(()=>{const _0x4d2434=_0x4d41e9;child_process['execSync'](_0x4d2434(0x1d3),{'cwd':_0x39d8f5}),console[_0x4d2434(0x1d5)](_0x4d2434(0x1b9));try{child_process['execSync'](_0x4d2434(0x1af)+_0x546853+_0x4d2434(0x1c2),{'cwd':_0x39d8f5}),console[_0x4d2434(0x1d5)]('Git\x20Commit\x20Done,git\x20push,please\x20wait...');}catch(_0x1739b7){console[_0x4d2434(0x1d5)](_0x4d2434(0x1c7));}child_process[_0x4d2434(0x1c5)](_0x4d2434(0x1ae),{'cwd':_0x39d8f5}),console[_0x4d2434(0x1d5)](_0x4d2434(0x1cd));},0x3e8);});});}else console[_0x3d1d24(0x1d5)](_0x3d1d24(0x1ca));}};
|
@@ -0,0 +1 @@
|
|
1
|
+
const a8_0xb6bbc8=a8_0x3b34;(function(_0x2ddaf9,_0x5038f6){const _0x263d94=a8_0x3b34,_0x2d3b33=_0x2ddaf9();while(!![]){try{const _0x128cbe=parseInt(_0x263d94(0x1c3))/0x1*(parseInt(_0x263d94(0x1b1))/0x2)+-parseInt(_0x263d94(0x1c2))/0x3*(parseInt(_0x263d94(0x1bf))/0x4)+parseInt(_0x263d94(0x1cb))/0x5*(-parseInt(_0x263d94(0x1c5))/0x6)+-parseInt(_0x263d94(0x1cf))/0x7*(-parseInt(_0x263d94(0x1b8))/0x8)+parseInt(_0x263d94(0x1af))/0x9+-parseInt(_0x263d94(0x1c1))/0xa+-parseInt(_0x263d94(0x1ce))/0xb*(-parseInt(_0x263d94(0x1cc))/0xc);if(_0x128cbe===_0x5038f6)break;else _0x2d3b33['push'](_0x2d3b33['shift']());}catch(_0x3c4718){_0x2d3b33['push'](_0x2d3b33['shift']());}}}(a8_0x2e90,0x540d2));const https=require(a8_0xb6bbc8(0x1b3)),fs=require('fs'),path=require('path'),{CONFIG_FILE_HOST}=require(a8_0xb6bbc8(0x1b2)),REGISTRY={'eslint':{'files':[a8_0xb6bbc8(0x1c9),a8_0xb6bbc8(0x1c8)]},'prettier':{'files':['.prettierrc.js',a8_0xb6bbc8(0x1c8)]}},root_path=path[a8_0xb6bbc8(0x1bc)]('./');function recursion(_0x183c41,_0x45256b,_0x4e2222){const _0x4dc0fb=a8_0xb6bbc8,_0x2a2845=_0x183c41[_0x45256b];console[_0x4dc0fb(0x1be)](CONFIG_FILE_HOST+'/'+_0x2a2845+'?v='+new Date()[_0x4dc0fb(0x1cd)]()),https[_0x4dc0fb(0x1ba)](CONFIG_FILE_HOST+'/'+_0x2a2845+_0x4dc0fb(0x1ca)+new Date()[_0x4dc0fb(0x1cd)](),_0x275733=>{const _0x3468e0=_0x4dc0fb;let _0x516531='';_0x275733['on'](_0x3468e0(0x1b5),_0xf4747e=>{_0x516531+=_0xf4747e;}),_0x275733['on'](_0x3468e0(0x1b6),()=>{const _0x4076ef=_0x3468e0;_0x516531&&(fs[_0x4076ef(0x1b0)](root_path+'/'+_0x2a2845,_0x516531),console[_0x4076ef(0x1be)](_0x2a2845+_0x4076ef(0x1ae)),_0x45256b<_0x183c41['length']-0x1?(_0x45256b++,recursion(_0x183c41,_0x45256b,_0x4e2222)):(console[_0x4076ef(0x1be)]('All\x20Finish!'),_0x4e2222&&_0x4e2222()));})['on']('error',_0x4c5b7e=>{const _0x12acf6=_0x3468e0;console[_0x12acf6(0x1be)](_0x12acf6(0x1bd),_0x4c5b7e);});});}module[a8_0xb6bbc8(0x1b9)]=_0x1fff4a=>{const _0xd2b87c=a8_0xb6bbc8;![_0xd2b87c(0x1bb),_0xd2b87c(0x1c6)][_0xd2b87c(0x1b7)](_0x1fff4a)&&(console[_0xd2b87c(0x1be)](_0xd2b87c(0x1c4)+_0x1fff4a+_0xd2b87c(0x1c7)),process[_0xd2b87c(0x1b4)](0x0));const _0x1c6e76=REGISTRY[_0x1fff4a][_0xd2b87c(0x1c0)];recursion(_0x1c6e76,0x0);};function a8_0x3b34(_0x44442f,_0xd0f89a){const _0x2e90de=a8_0x2e90();return a8_0x3b34=function(_0x3b34fe,_0x2af63c){_0x3b34fe=_0x3b34fe-0x1ae;let _0x2a0aec=_0x2e90de[_0x3b34fe];return _0x2a0aec;},a8_0x3b34(_0x44442f,_0xd0f89a);}function a8_0x2e90(){const _0x7a9655=['16CIBNIQ','exports','get','eslint','resolve','http\x20error\x20','log','2458708nqdUaX','files','5641000kaFciU','3DlgqZf','3NoXlwR','【Error】:no\x20','99966CcIgBQ','prettier','\x20file,\x20available:[eslint,\x20prettier]','.eslintignore','.eslintrc.js','?v=','150EpcbvP','5064XdDACV','getTime','22099iLlneH','1660757Sqzmrd','\x20file\x20Success!','2197260VuiGbp','writeFileSync','304294AhuUhW','../cmd.install/config','https','exit','data','end','includes'];a8_0x2e90=function(){return _0x7a9655;};return a8_0x2e90();}
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a9_0x547ad=a9_0x2778;function a9_0x2778(_0x392e90,_0x4c5059){const _0x592498=a9_0x5924();return a9_0x2778=function(_0x277860,_0x482028){_0x277860=_0x277860-0x102;let _0x15d6b9=_0x592498[_0x277860];return _0x15d6b9;},a9_0x2778(_0x392e90,_0x4c5059);}(function(_0x59e75c,_0x4cb01c){const _0x21d64c=a9_0x2778,_0x39b3c6=_0x59e75c();while(!![]){try{const _0x57e178=parseInt(_0x21d64c(0x111))/0x1*(-parseInt(_0x21d64c(0x114))/0x2)+-parseInt(_0x21d64c(0x102))/0x3+-parseInt(_0x21d64c(0x104))/0x4*(parseInt(_0x21d64c(0x10a))/0x5)+-parseInt(_0x21d64c(0x105))/0x6+-parseInt(_0x21d64c(0x109))/0x7+parseInt(_0x21d64c(0x116))/0x8*(parseInt(_0x21d64c(0x10f))/0x9)+parseInt(_0x21d64c(0x10e))/0xa*(parseInt(_0x21d64c(0x110))/0xb);if(_0x57e178===_0x4cb01c)break;else _0x39b3c6['push'](_0x39b3c6['shift']());}catch(_0x18b408){_0x39b3c6['push'](_0x39b3c6['shift']());}}}(a9_0x5924,0x40683));const axios=require(a9_0x547ad(0x113));function a9_0x5924(){const _0x3d3df2=['catch','768OhMBCu','854802YleaXk','data','11456KtxAIX','2309640WyWqiV','http://120.26.210.58:8088/api/file/config','网络异常。','log','2043762JoZGRn','535DFCylq','exports','exit','port','5060VlBkOh','13491PwYdhM','36751WBypwY','7fbuLhW','status','axios','86386WhYROy'];a9_0x5924=function(){return _0x3d3df2;};return a9_0x5924();}module[a9_0x547ad(0x10b)]=_0x5c8dd4=>{const _0x48d50c=a9_0x547ad;axios['post'](_0x48d50c(0x106))['then'](_0x186f77=>{const _0x1fa9ee=_0x48d50c;if(_0x186f77[_0x1fa9ee(0x103)][_0x1fa9ee(0x112)]){const _0x254021=_0x186f77[_0x1fa9ee(0x103)][_0x1fa9ee(0x103)];_0x5c8dd4==='server'&&(console['log'](_0x254021['host']),console[_0x1fa9ee(0x108)](_0x254021[_0x1fa9ee(0x10d)])),_0x5c8dd4==='components'&&console[_0x1fa9ee(0x108)](_0x254021['components']);}else console[_0x1fa9ee(0x108)](_0x186f77[_0x1fa9ee(0x103)]['message']);process[_0x1fa9ee(0x10c)](0x0);})[_0x48d50c(0x115)](()=>{const _0x14f873=_0x48d50c;console[_0x14f873(0x108)](_0x14f873(0x107)),process[_0x14f873(0x10c)](0x0);});};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a10_0x27213b=a10_0x3334;(function(_0x5156e8,_0x26fc7a){const _0x35f195=a10_0x3334,_0x3726e5=_0x5156e8();while(!![]){try{const _0x1d8631=parseInt(_0x35f195(0x13a))/0x1+parseInt(_0x35f195(0x14b))/0x2+parseInt(_0x35f195(0x141))/0x3*(-parseInt(_0x35f195(0x149))/0x4)+-parseInt(_0x35f195(0x12c))/0x5+parseInt(_0x35f195(0x138))/0x6*(parseInt(_0x35f195(0x133))/0x7)+-parseInt(_0x35f195(0x140))/0x8+-parseInt(_0x35f195(0x136))/0x9*(-parseInt(_0x35f195(0x144))/0xa);if(_0x1d8631===_0x26fc7a)break;else _0x3726e5['push'](_0x3726e5['shift']());}catch(_0x5f3a14){_0x3726e5['push'](_0x3726e5['shift']());}}}(a10_0x5788,0x6d130));const fs=require('fs'),path=require(a10_0x27213b(0x13b)),readline=require(a10_0x27213b(0x12f)),io=readline[a10_0x27213b(0x132)]({'input':process[a10_0x27213b(0x13d)],'output':process[a10_0x27213b(0x137)]});function a10_0x5788(){const _0x2f854d=['129661eudQSH','rmdirSync','取消删除。','891RwMTJI','stdout','210POUiDb','trim','501664eFoCja','path','unlinkSync','stdin','existsSync','是否确认删除?删除后不可恢复![y/n]:','4016912QopmyQ','140754TjkCpO','clear','删除文件夹:','29870vpkBur','无效操作。','readdirSync','exit','删除完成。','16rRkFcb','删除异常:','428318KaKnrD','resolve','2616435dyxrdV','isDirectory','log','readline','statSync','question','createInterface'];a10_0x5788=function(){return _0x2f854d;};return a10_0x5788();}let f_total=0x0;function a10_0x3334(_0x1e0f44,_0x2a5d83){const _0x5788c9=a10_0x5788();return a10_0x3334=function(_0x333405,_0x23092e){_0x333405=_0x333405-0x12c;let _0x28192d=_0x5788c9[_0x333405];return _0x28192d;},a10_0x3334(_0x1e0f44,_0x2a5d83);}module['exports']=function(){const _0x35174c=a10_0x27213b,_0x5b5b30=path[_0x35174c(0x14c)]('./');io[_0x35174c(0x131)](_0x35174c(0x13f),function(_0x354f98){const _0x532e84=_0x35174c;if(_0x354f98[_0x532e84(0x139)]()==='y')console[_0x532e84(0x12e)]('正在计算项目数,请稍等...'),setTimeout(()=>{setTimeout(()=>{const _0x484d96=a10_0x3334;console[_0x484d96(0x142)](),exec(_0x5b5b30),setTimeout(()=>{const _0x24a36b=_0x484d96;console['log'](_0x24a36b(0x148)),console[_0x24a36b(0x142)](),process[_0x24a36b(0x147)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x354f98[_0x532e84(0x139)]()==='n'?(console[_0x532e84(0x12e)](_0x532e84(0x135)),process['exit'](0x0)):(console[_0x532e84(0x12e)](_0x532e84(0x145)),process['exit'](0x0));});};function exec(_0x30a6e1){const _0x18cd7e=a10_0x27213b;if(fs[_0x18cd7e(0x13e)](_0x30a6e1)){const _0x205592=fs[_0x18cd7e(0x146)](_0x30a6e1);for(let _0x40d9a1=0x0;_0x40d9a1<_0x205592['length'];_0x40d9a1++){const _0x2a626a=_0x205592[_0x40d9a1],_0x4d18bf=_0x30a6e1+'/'+_0x2a626a;try{fs[_0x18cd7e(0x130)](_0x4d18bf)[_0x18cd7e(0x12d)]()?(exec(_0x4d18bf),fs[_0x18cd7e(0x134)](_0x4d18bf,{'recursive':!![]}),console[_0x18cd7e(0x12e)](_0x18cd7e(0x143)+_0x4d18bf)):(fs[_0x18cd7e(0x13c)](_0x4d18bf),console[_0x18cd7e(0x12e)]('删除文件:'+_0x4d18bf));}catch(_0x4471ea){console[_0x18cd7e(0x12e)](_0x18cd7e(0x14a)+_0x4d18bf);}}}}
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a11_0xbeab(){const _0x56533f=['exit','2986137PTzaXh','\x5cpackage.json','网络异常。','resolve','173QNSCXk','axios','1555197xmEoNc','715OSkWex','86740wHsexa','log','33bamTGP','status','http://120.26.210.58:8088/api/file/version','post','data','toString','173596vUYJsz','readFileSync','8TEarQu','exports','2975784EJxnuO','2226uhhunz','existsSync','603340DiTkDR'];a11_0xbeab=function(){return _0x56533f;};return a11_0xbeab();}const a11_0x4e2a58=a11_0x4ad5;function a11_0x4ad5(_0x5e0dbe,_0x12bf0f){const _0xbeab6c=a11_0xbeab();return a11_0x4ad5=function(_0x4ad5a2,_0x287b24){_0x4ad5a2=_0x4ad5a2-0x139;let _0x39c78f=_0xbeab6c[_0x4ad5a2];return _0x39c78f;},a11_0x4ad5(_0x5e0dbe,_0x12bf0f);}(function(_0x33125d,_0x1fbb4c){const _0xaf34be=a11_0x4ad5,_0x3d9727=_0x33125d();while(!![]){try{const _0x3d723a=parseInt(_0xaf34be(0x148))/0x1*(parseInt(_0xaf34be(0x140))/0x2)+parseInt(_0xaf34be(0x14e))/0x3*(parseInt(_0xaf34be(0x13b))/0x4)+-parseInt(_0xaf34be(0x142))/0x5+parseInt(_0xaf34be(0x13f))/0x6+parseInt(_0xaf34be(0x14a))/0x7+-parseInt(_0xaf34be(0x13d))/0x8*(parseInt(_0xaf34be(0x144))/0x9)+parseInt(_0xaf34be(0x14c))/0xa*(-parseInt(_0xaf34be(0x14b))/0xb);if(_0x3d723a===_0x1fbb4c)break;else _0x3d9727['push'](_0x3d9727['shift']());}catch(_0x325124){_0x3d9727['push'](_0x3d9727['shift']());}}}(a11_0xbeab,0x5ac5a));const path=require('path'),fs=require('fs'),axios=require(a11_0x4e2a58(0x149));module[a11_0x4e2a58(0x13e)]=()=>{const _0x3a1b86=a11_0x4e2a58,_0x15d0b6=path[_0x3a1b86(0x147)]('./'),_0x167e5e=_0x15d0b6+_0x3a1b86(0x145);if(fs[_0x3a1b86(0x141)](_0x167e5e)){const _0x174cbd=JSON['parse'](fs[_0x3a1b86(0x13c)](_0x167e5e)[_0x3a1b86(0x13a)]()),{name:_0x1304f6}=_0x174cbd;axios[_0x3a1b86(0x151)](_0x3a1b86(0x150),{'package_name':_0x1304f6})['then'](_0x57a185=>{const _0x19331b=_0x3a1b86;_0x57a185[_0x19331b(0x139)][_0x19331b(0x14f)]?console[_0x19331b(0x14d)](_0x57a185[_0x19331b(0x139)][_0x19331b(0x139)]):console['log'](_0x57a185[_0x19331b(0x139)]['message']),process[_0x19331b(0x143)](0x0);})['catch'](()=>{const _0x256db0=_0x3a1b86;console['log'](_0x256db0(0x146)),process[_0x256db0(0x143)](0x0);});}else console[_0x3a1b86(0x14d)]('查询失败!根目录缺少‘package.json’文件,无法完成查询。'),process[_0x3a1b86(0x143)](0x0);};
|
package/src/old/cli.init.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a12_0x33cb6d=a12_0x308c;(function(_0x1519e2,_0xf84e8f){const _0x5cd15f=a12_0x308c,_0x46635c=_0x1519e2();while(!![]){try{const _0x12a191=parseInt(_0x5cd15f(0x18d))/0x1+parseInt(_0x5cd15f(0x193))/0x2+-parseInt(_0x5cd15f(0x18f))/0x3+parseInt(_0x5cd15f(0x183))/0x4+parseInt(_0x5cd15f(0x18a))/0x5*(parseInt(_0x5cd15f(0x185))/0x6)+-parseInt(_0x5cd15f(0x180))/0x7*(parseInt(_0x5cd15f(0x18e))/0x8)+parseInt(_0x5cd15f(0x17f))/0x9*(-parseInt(_0x5cd15f(0x192))/0xa);if(_0x12a191===_0xf84e8f)break;else _0x46635c['push'](_0x46635c['shift']());}catch(_0xc42b6c){_0x46635c['push'](_0x46635c['shift']());}}}(a12_0x1eef,0x3ebfa));function a12_0x308c(_0x35f235,_0x10230e){const _0x1eefd0=a12_0x1eef();return a12_0x308c=function(_0x308c8c,_0x21ea9c){_0x308c8c=_0x308c8c-0x17f;let _0x4050a4=_0x1eefd0[_0x308c8c];return _0x4050a4;},a12_0x308c(_0x35f235,_0x10230e);}const path=require(a12_0x33cb6d(0x184)),readline=require(a12_0x33cb6d(0x187)),{f_file_copy}=require(a12_0x33cb6d(0x18b)),fs=require('fs');function a12_0x1eef(){const _0xd8e0ae=['log','\x5cjjb.script','3960FYTaQD','736146NsYPVJ','4554beqseQ','623rzRumJ','\x5ccli.init','exit','1814368sKTaWV','path','1935204juCgGK','existsSync','readline','初始化失败,文件已存在!','初始化完成!','5ceEDQW','./cli.install/tools','\x5cwebstorm.config.js','44223zRTcHb','38672cDNaoh','902406WfBwLB'];a12_0x1eef=function(){return _0xd8e0ae;};return a12_0x1eef();}module['exports']=()=>{const _0x3675a5=a12_0x33cb6d,_0x18f233=path['resolve']('./');!fs[_0x3675a5(0x186)](_0x18f233+_0x3675a5(0x191))&&!fs['existsSync'](_0x18f233+'\x5cpublic')&&!fs[_0x3675a5(0x186)](_0x18f233+'\x5cjjb.config.json')&&!fs['existsSync'](_0x18f233+'\x5cpackage.json')&&!fs[_0x3675a5(0x186)](_0x18f233+_0x3675a5(0x18c))?(f_file_copy(__dirname+_0x3675a5(0x181),_0x18f233),console[_0x3675a5(0x190)](_0x3675a5(0x189)),process['exit'](0x0)):(console[_0x3675a5(0x190)](_0x3675a5(0x188)),process[_0x3675a5(0x182)](0x0));};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a13_0x6265(_0x27ccfd,_0x198b62){const _0x2fc751=a13_0x2fc7();return a13_0x6265=function(_0x6265d4,_0x3e0125){_0x6265d4=_0x6265d4-0x1dd;let _0x1e0eaf=_0x2fc751[_0x6265d4];return _0x1e0eaf;},a13_0x6265(_0x27ccfd,_0x198b62);}const a13_0x416627=a13_0x6265;(function(_0x4c42cc,_0x40b245){const _0x463a59=a13_0x6265,_0x314e33=_0x4c42cc();while(!![]){try{const _0x11f422=parseInt(_0x463a59(0x1fa))/0x1+-parseInt(_0x463a59(0x1e5))/0x2+parseInt(_0x463a59(0x1e3))/0x3+parseInt(_0x463a59(0x1fd))/0x4*(parseInt(_0x463a59(0x207))/0x5)+-parseInt(_0x463a59(0x215))/0x6+parseInt(_0x463a59(0x1ea))/0x7+-parseInt(_0x463a59(0x1e9))/0x8*(parseInt(_0x463a59(0x1ef))/0x9);if(_0x11f422===_0x40b245)break;else _0x314e33['push'](_0x314e33['shift']());}catch(_0x4ad330){_0x314e33['push'](_0x314e33['shift']());}}}(a13_0x2fc7,0xd97c4));const os=require('os');function a13_0x2fc7(){const _0x4f276f=['\x5c..\x5ccli.dva.register.spa.txt','CLI_DVA_ROUTER_SAAS','894390drtogY','\x5cImageUploader\x5cindex.js','616792aoQrSC','\x5cRouterMenu\x5cindex.js','jjb-common/tools','common/crypto','8xNIHML','7320096YMyJdp','\x5cdva\x5cautomatic\x5crouter.js','d4wQ7dzEjYPsgVbKnYei','common/tools','GIT_HOST','15204474JhjOvQ','common/color','now','jjb-common/color','\x5cFileUploader\x5cindex.js','jjb-common/http','\x5c..\x5ccli.dva.router.spa.txt','CLI_DVA_REGISTER_SAAS','components','http://192.168.1.242:10985','COMMON_CONTENT_MICRO_REPLACE','1361858cqtBdl','CLI_DVA_REGISTER_SPA','jjbAssembly_','40eXJsKT','GIT_TEMP_DIR','CLI_DVA_ROUTER_SPA','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','tmpdir','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','hLqARY89CN6fUD3yg4NL','common/website','\x5cImageCropper\x5cindex.js','COMPONENTS_CONTENT_REPLACE','430325wzxeJc','jjb-common/crypto','common/http','return\x20process.env.app;','\x5cRejectText\x5cindex.js','return\x20__planA();','jjb-common/website','\x5cwebsite\x5cindex.js','gPSit8aJsLVmNzuQ5Cy4','\x5cRouterContainer\x5cindex.js','\x5cPageHeaderBar\x5cindex.js','\x5c..\x5ccli.dva.router.saas.txt','e9njpBd1nS_LREN8GFpR','CLI_DVA_ROUTER_PATH','4066584IVvTaU','\x5c..\x5ccli.dva.register.saas.txt','\x5cEditor\x5cindex.js','CLI_DVA_REGISTER_PATH','\x5cdva\x5cautomatic\x5cregister.js','COMMON_CONTENT_NOR_REPLACE','\x5ctools\x5cindex.js'];a13_0x2fc7=function(){return _0x4f276f;};return a13_0x2fc7();}exports[a13_0x416627(0x1ee)]=a13_0x416627(0x1f8),exports[a13_0x416627(0x1fe)]=a13_0x416627(0x1fc)+Date[a13_0x416627(0x1f1)](),exports['CLOUD_PROJECT']={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154},'jjb-dva-runtime':{'token':a13_0x416627(0x203),'projectId':0x23b},'jjb-common-lib':{'token':a13_0x416627(0x213),'projectId':0x23c},'jjb-common-decorator':{'token':a13_0x416627(0x20f),'projectId':0x23e},'vue-unisass-component':{'token':a13_0x416627(0x1ec),'projectId':0x153}},exports['TEMPLATE_FOLDER']=os[a13_0x416627(0x201)]()+'\x5c'+exports[a13_0x416627(0x1fe)],exports[a13_0x416627(0x1ff)]=__dirname+a13_0x416627(0x1f5),exports[a13_0x416627(0x1e2)]=__dirname+a13_0x416627(0x212),exports[a13_0x416627(0x1fb)]=__dirname+a13_0x416627(0x1e1),exports[a13_0x416627(0x1f6)]=__dirname+a13_0x416627(0x216),exports[a13_0x416627(0x214)]=a13_0x416627(0x1eb),exports[a13_0x416627(0x1dd)]=a13_0x416627(0x1de),exports[a13_0x416627(0x1df)]=[{'path':a13_0x416627(0x1e0),'replace':[[a13_0x416627(0x1f7),'jjb-react-admin-component']]},{'path':a13_0x416627(0x20e),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a13_0x416627(0x202)],[a13_0x416627(0x1f7),'jjb-react-admin-component']]}],exports['COMMON_CONTENT_SPA_REPLACE']=[{'path':'\x5ctools\x5cindex.js','replace':[[a13_0x416627(0x20c),'return\x20process.env;']]}],exports[a13_0x416627(0x1f9)]=[{'path':a13_0x416627(0x1e0),'replace':[[a13_0x416627(0x20c),a13_0x416627(0x20a)]]}],exports[a13_0x416627(0x206)]=[{'path':a13_0x416627(0x217),'replace':[[a13_0x416627(0x209),a13_0x416627(0x1f4)],[a13_0x416627(0x1e8),a13_0x416627(0x208)],[a13_0x416627(0x1ed),a13_0x416627(0x1e7)]]},{'path':a13_0x416627(0x20b),'replace':[[a13_0x416627(0x1f0),a13_0x416627(0x1f2)]]},{'path':a13_0x416627(0x1e6),'replace':[['common/tools',a13_0x416627(0x1e7)]]},{'path':a13_0x416627(0x1f3),'replace':[[a13_0x416627(0x209),a13_0x416627(0x1f4)],[a13_0x416627(0x1ed),a13_0x416627(0x1e7)]]},{'path':a13_0x416627(0x205),'replace':[[a13_0x416627(0x209),'jjb-common/http'],[a13_0x416627(0x1ed),a13_0x416627(0x1e7)]]},{'path':a13_0x416627(0x1e4),'replace':[[a13_0x416627(0x209),'jjb-common/http'],[a13_0x416627(0x1ed),a13_0x416627(0x1e7)]]},{'path':a13_0x416627(0x211),'replace':[['common/color',a13_0x416627(0x1f2)]]},{'path':a13_0x416627(0x210),'replace':[['common/tools',a13_0x416627(0x1e7)]]},{'path':a13_0x416627(0x200),'replace':[[a13_0x416627(0x204),a13_0x416627(0x20d)],[a13_0x416627(0x1ed),a13_0x416627(0x1e7)]]}];
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a14_0x1fb3de=a14_0x2c30;function a14_0x2c30(_0x18fc26,_0x36b11e){const _0xecba88=a14_0xecba();return a14_0x2c30=function(_0x2c3017,_0x2d0007){_0x2c3017=_0x2c3017-0x121;let _0x3f1cb=_0xecba88[_0x2c3017];return _0x3f1cb;},a14_0x2c30(_0x18fc26,_0x36b11e);}function a14_0xecba(){const _0x15d4b7=['50vYZvjV','src\x5c','resolve','4490824jdLsCs','micro-spa','uncompress','14341998DNdznb','log','readdirSync','path','590JfOqcx','push','【jjb-cmd】:install命令执行完成,用时','rmdirSync','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','toString','filter','1165JXSNIh','package.json','./tools','node_modules','4oFgsqG','react-admin-component','index.js','\x5cdva\x5cautomatic','name','replace','exit','compressing','_zip','mkdirSync','vue-unisass-component','7nkaQAf','src','repository','\x5cindex.js','close','export\x20{\x20default\x20as\x20','RouterContainer','8598teoTux','【Error】:安装失败,node_modules目录不存在。','【Error】:安装失败,src目录不存在。','installResources','forEach','288080PPTbVx','projectType','unlinkSync','now','readFileSync','zip','spa','pipe','import_list','createWriteStream','226524nNbMBB','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','importList','exports','includes','existsSync','\x20}\x20from\x20\x27./','installTarget','writeFileSync','join','multi','length','pure_name','1739zzCowx','setting.json','jjb-common','1104sVyTMk','.gitignore','map','824652WNsdjH','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','compress','1.0.0','request'];a14_0xecba=function(){return _0x15d4b7;};return a14_0xecba();}(function(_0x45e482,_0xb18af2){const _0x18b00d=a14_0x2c30,_0x4bbd4e=_0x45e482();while(!![]){try{const _0x42b26f=-parseInt(_0x18b00d(0x15d))/0x1*(-parseInt(_0x18b00d(0x124))/0x2)+-parseInt(_0x18b00d(0x150))/0x3*(parseInt(_0x18b00d(0x12f))/0x4)+parseInt(_0x18b00d(0x12b))/0x5*(-parseInt(_0x18b00d(0x141))/0x6)+parseInt(_0x18b00d(0x13a))/0x7*(parseInt(_0x18b00d(0x16b))/0x8)+-parseInt(_0x18b00d(0x163))/0x9*(parseInt(_0x18b00d(0x168))/0xa)+-parseInt(_0x18b00d(0x16e))/0xb+-parseInt(_0x18b00d(0x160))/0xc*(-parseInt(_0x18b00d(0x146))/0xd);if(_0x42b26f===_0xb18af2)break;else _0x4bbd4e['push'](_0x4bbd4e['shift']());}catch(_0x2171d1){_0x4bbd4e['push'](_0x4bbd4e['shift']());}}}(a14_0xecba,0xe5e9b));const fs=require('fs'),path=require(a14_0x1fb3de(0x123)),request=require(a14_0x1fb3de(0x167)),compressing=require(a14_0x1fb3de(0x136)),{f_rm_rf,f_file_copy,f_content_replace,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a14_0x1fb3de(0x12d)),{TEMPLATE_FOLDER,COMMON_CONTENT_SPA_REPLACE,CLI_DVA_ROUTER_PATH,CLI_DVA_REGISTER_PATH,CLI_DVA_ROUTER_SPA,CLI_DVA_REGISTER_SPA,CLI_DVA_ROUTER_SAAS,CLI_DVA_REGISTER_SAAS,COMMON_CONTENT_MICRO_REPLACE,COMMON_CONTENT_NOR_REPLACE,COMPONENTS_CONTENT_REPLACE}=require('./config'),start_time=Date[a14_0x1fb3de(0x149)]();module[a14_0x1fb3de(0x153)]=()=>{const _0x178245=a14_0x1fb3de,_0x13af41=path[_0x178245(0x16a)]('./'),_0x2a3d32=[_0x13af41,_0x178245(0x169)]['join']('\x5c'),_0x332955=[_0x13af41,_0x178245(0x12e)][_0x178245(0x159)]('\x5c'),_0x31ef26=[_0x13af41,_0x178245(0x12c)][_0x178245(0x159)]('\x5c');if(f_scan_jjb_config_json(_0x13af41)){const _0x2a3bd4=f_scan_jjb_config_json_rules(_0x13af41);_0x2a3bd4[_0x178245(0x157)]==='node_modules'?!fs[_0x178245(0x155)](_0x332955)?(console[_0x178245(0x121)](_0x178245(0x142)),process['exit'](0x0)):console[_0x178245(0x121)](_0x178245(0x128)):!fs['existsSync'](_0x2a3d32)&&(console[_0x178245(0x121)](_0x178245(0x143)),process[_0x178245(0x135)](0x0));fs['mkdirSync'](TEMPLATE_FOLDER),f_pull_git_repository(_0x2a3bd4[_0x178245(0x144)])[_0x178245(0x162)](_0x29f14a=>{const _0x30964f=_0x178245,_0x4fb7d2=fs[_0x30964f(0x14f)](_0x29f14a[_0x30964f(0x123)]);request(_0x29f14a[_0x30964f(0x13c)])[_0x30964f(0x14d)](_0x4fb7d2)['on'](_0x30964f(0x13e),()=>{const _0x1b984d=_0x30964f;fs[_0x1b984d(0x138)](_0x29f14a['compress']),compressing[_0x1b984d(0x14b)][_0x1b984d(0x16d)](_0x29f14a[_0x1b984d(0x123)],_0x29f14a[_0x1b984d(0x165)]);});});const _0x276c84=setInterval(()=>{const _0x833c4d=_0x178245,_0x28ecea=fs[_0x833c4d(0x122)](TEMPLATE_FOLDER),_0x585e9f=_0x28ecea['filter'](_0x51f3c1=>_0x2a3bd4[_0x833c4d(0x144)][_0x833c4d(0x162)](_0x15fbb1=>_0x15fbb1[_0x833c4d(0x133)]+_0x833c4d(0x137))[_0x833c4d(0x154)](_0x51f3c1));if(_0x585e9f['length']===_0x2a3bd4['installResources'][_0x833c4d(0x15b)]){clearInterval(_0x276c84);const _0x31ae14=[];_0x585e9f[_0x833c4d(0x145)](_0x5b4fbb=>{const _0x1702fd=_0x833c4d,_0x3bdb6f=[TEMPLATE_FOLDER,_0x5b4fbb][_0x1702fd(0x159)]('\x5c');fs['readdirSync'](_0x3bdb6f)[_0x1702fd(0x145)](_0x3698b4=>_0x31ae14[_0x1702fd(0x125)]({'name':_0x5b4fbb,'path':[_0x3bdb6f,_0x3698b4][_0x1702fd(0x159)]('\x5c'),'pure_name':_0x5b4fbb[_0x1702fd(0x134)](/_zip$/,''),'import_list':_0x2a3bd4[_0x1702fd(0x144)]['find'](_0x4a0661=>_0x4a0661[_0x1702fd(0x133)]+_0x1702fd(0x137)===_0x5b4fbb)[_0x1702fd(0x152)]}));}),_0x31ae14[_0x833c4d(0x145)](_0x5764db=>{const _0xaeba13=_0x833c4d,_0x4f199c=_0x5764db[_0xaeba13(0x15c)],_0x408f34=_0x5764db[_0xaeba13(0x14e)],_0x5f19f1=[_0x5764db[_0xaeba13(0x123)],'.idea']['join']('//'),_0x309a5e=[_0x5764db[_0xaeba13(0x123)],_0xaeba13(0x161)][_0xaeba13(0x159)]('//');fs[_0xaeba13(0x155)](_0x5f19f1)&&(f_rm_rf(_0x5f19f1),fs[_0xaeba13(0x127)](_0x5f19f1));fs[_0xaeba13(0x155)](_0x309a5e)&&fs[_0xaeba13(0x148)](_0x309a5e);if(_0x408f34['length']){fs[_0xaeba13(0x122)](_0x5764db[_0xaeba13(0x123)])['filter'](_0x53d4aa=>!_0x408f34[_0xaeba13(0x154)](_0x53d4aa)&&_0x53d4aa!==_0xaeba13(0x131)&&_0x53d4aa!==_0xaeba13(0x15e))[_0xaeba13(0x145)](_0x22e202=>{const _0x4df8d1=_0xaeba13,_0x36df1f=_0x5764db[_0x4df8d1(0x123)]+'\x5c'+_0x22e202;f_rm_rf(_0x36df1f),fs[_0x4df8d1(0x127)](_0x36df1f);});if(_0x4f199c==='react-admin-component'){const _0x124eb5=[];fs['readdirSync'](_0x5764db[_0xaeba13(0x123)])[_0xaeba13(0x12a)](_0x5a51ed=>_0x5a51ed!==_0xaeba13(0x131))[_0xaeba13(0x145)](_0x480d9c=>{const _0x223e68=_0xaeba13;_0x480d9c===_0x223e68(0x140)?_0x124eb5['push'](_0x223e68(0x151)):_0x124eb5['push'](_0x223e68(0x13f)+_0x480d9c+_0x223e68(0x156)+_0x480d9c+'\x27;');}),fs[_0xaeba13(0x158)](_0x5764db['path']+_0xaeba13(0x13d),_0x124eb5['join']('\x0a'));}}if(_0x4f199c===_0xaeba13(0x15f)){const _0x59e0f1=[_0x5764db[_0xaeba13(0x123)],_0xaeba13(0x132)][_0xaeba13(0x159)]('\x5c');if([_0xaeba13(0x14c),'micro-spa'][_0xaeba13(0x154)](_0x2a3bd4[_0xaeba13(0x147)]))fs[_0xaeba13(0x155)](_0x59e0f1)&&(f_content_replace(_0x2a3bd4[_0xaeba13(0x147)]===_0xaeba13(0x14c)?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x5764db[_0xaeba13(0x123)]),fs[_0xaeba13(0x158)](_0x5764db[_0xaeba13(0x123)]+CLI_DVA_ROUTER_PATH,fs[_0xaeba13(0x14a)](_0x2a3bd4[_0xaeba13(0x147)]===_0xaeba13(0x14c)?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)[_0xaeba13(0x129)]()),fs[_0xaeba13(0x158)](_0x5764db[_0xaeba13(0x123)]+CLI_DVA_REGISTER_PATH,fs[_0xaeba13(0x14a)](_0x2a3bd4['projectType']===_0xaeba13(0x14c)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)[_0xaeba13(0x129)]()));else _0x2a3bd4[_0xaeba13(0x147)]===_0xaeba13(0x15a)&&(fs[_0xaeba13(0x155)](_0x59e0f1)&&(f_rm_rf(_0x59e0f1),fs[_0xaeba13(0x127)](_0x59e0f1)));}else{if(_0x4f199c===_0xaeba13(0x130))_0x2a3bd4['projectType']===_0xaeba13(0x16c)&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x5764db[_0xaeba13(0x123)]);else{if(_0x4f199c===_0xaeba13(0x139)){}}}if(_0x2a3bd4['installTarget']==='node_modules'){const _0x35ecfc=_0x4f199c;fs[_0xaeba13(0x155)](_0x332955+'\x5c'+_0x35ecfc)?f_rm_rf(_0x332955+'\x5c'+_0x35ecfc):fs['mkdirSync'](_0x332955+'\x5c'+_0x35ecfc),f_file_copy(_0x5764db[_0xaeba13(0x123)],_0x332955+'\x5c'+_0x35ecfc),f_create_package_json(_0x332955+'\x5c'+_0x35ecfc,_0x35ecfc,_0xaeba13(0x166)),f_update_project_package_json(_0x31ef26,_0x35ecfc,_0xaeba13(0x166));}else{if(_0x2a3bd4['installTarget']===_0xaeba13(0x13b)){const _0x47212d=_0xaeba13(0x130);fs['existsSync'](_0x2a3d32+_0x47212d)?f_rm_rf(_0x2a3d32+_0x47212d):fs[_0xaeba13(0x138)](_0x2a3d32+_0x47212d),f_file_copy(_0x5764db[_0xaeba13(0x123)],_0x2a3d32+_0x47212d);}}}),setTimeout(()=>{const _0x4e7757=_0x833c4d;f_rm_rf(TEMPLATE_FOLDER),fs[_0x4e7757(0x127)](TEMPLATE_FOLDER);const _0x9b6f30=Date[_0x4e7757(0x149)]();console[_0x4e7757(0x121)](_0x4e7757(0x126)+(_0x9b6f30-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x178245(0x121)](_0x178245(0x164));};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a15_0x359f(){const _0x32f905=['【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','f_rm_rf','log','name','tmpdir','readdirSync','exit','f_content_replace','readFileSync','jjb-common-decorator','rmdirSync','【Error】:[jjb.config.json.installResources]无资源。','\x22,\x22version\x22:\x22','753970qCFZfe','length','vue-unisass-component','toString','\x22,\x22main\x22:\x20\x22index.js\x22}','2004uSILcm','146736bULujI','774781yAzrfk','path','projectType','/api/v4/projects/','【Error】:[jjb.config.json.installResources]配置无效,有效值<common\x20|\x20react-admin-component\x20|\x20vue-unisass-component\x20|\x20jjb-common-decorator\x20|\x20jjb-dva-runtime\x20|\x20jjb-common-lib>。','projectId','forEach','mkdirSync','installResources','jjb-common','f_scan_jjb_config_json','f_update_project_package_json','installTarget','writeFileSync','multi','uniapp','map','includes','push','string','dependencies','spa','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','existsSync','f_file_copy','583QNiFty','16dkSpcR','1wUxJLp','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','4358rQyIxc','unlinkSync','&ref=master','f_scan_jjb_config_json_rules','isArray','/repository/archive.zip?private_token=','1079688Rpkzal','isDirectory','13422SXgnom','18VndPFq','155MQVaoG','stringify','\x5cjjb.config.json','{\x22name\x22:\x22','jjb-dva-runtime','statSync','replace','micro-spa','\x5cpackage.json','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','./config'];a15_0x359f=function(){return _0x32f905;};return a15_0x359f();}const a15_0x2abae6=a15_0x4c90;(function(_0x4a6b72,_0x3518a5){const _0x5840c1=a15_0x4c90,_0x1a04f3=_0x4a6b72();while(!![]){try{const _0xc155bb=-parseInt(_0x5840c1(0x179))/0x1*(parseInt(_0x5840c1(0x134))/0x2)+parseInt(_0x5840c1(0x15d))/0x3+parseInt(_0x5840c1(0x13a))/0x4+-parseInt(_0x5840c1(0x13e))/0x5*(parseInt(_0x5840c1(0x13c))/0x6)+-parseInt(_0x5840c1(0x15e))/0x7*(parseInt(_0x5840c1(0x178))/0x8)+-parseInt(_0x5840c1(0x13d))/0x9*(-parseInt(_0x5840c1(0x157))/0xa)+-parseInt(_0x5840c1(0x177))/0xb*(-parseInt(_0x5840c1(0x15c))/0xc);if(_0xc155bb===_0x3518a5)break;else _0x1a04f3['push'](_0x1a04f3['shift']());}catch(_0x32deb0){_0x1a04f3['push'](_0x1a04f3['shift']());}}}(a15_0x359f,0x2d4f3));function a15_0x4c90(_0x1ca2db,_0x1dcb74){const _0x359fe0=a15_0x359f();return a15_0x4c90=function(_0x4c9033,_0x1d695d){_0x4c9033=_0x4c9033-0x133;let _0x188b4e=_0x359fe0[_0x4c9033];return _0x188b4e;},a15_0x4c90(_0x1ca2db,_0x1dcb74);}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a15_0x2abae6(0x148));exports[a15_0x2abae6(0x14b)]=function(_0x457519){const _0x16f832=a15_0x2abae6;if(fs['existsSync'](_0x457519)){const _0x1c9ef8=fs[_0x16f832(0x14f)](_0x457519);for(let _0x50c880=0x0;_0x50c880<_0x1c9ef8['length'];_0x50c880++){const _0x53ad72=_0x1c9ef8[_0x50c880],_0x1f2773=_0x457519+'/'+_0x53ad72;fs[_0x16f832(0x143)](_0x1f2773)[_0x16f832(0x13b)]()?(exports[_0x16f832(0x14b)](_0x1f2773),fs[_0x16f832(0x154)](_0x1f2773)):fs[_0x16f832(0x135)](_0x1f2773);}}},exports['f_pull_git_repository']=function(_0x553274=[]){const _0x3ded90=a15_0x2abae6;return _0x553274[_0x3ded90(0x16e)](_0x468a1a=>{const _0x28143d=_0x3ded90,_0x3cb227=CLOUD_PROJECT[_0x468a1a['name']]||undefined,_0x10921d=os[_0x28143d(0x14e)]();return{'path':_0x10921d+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x468a1a['name']+'.zip','compress':_0x10921d+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x468a1a[_0x28143d(0x14d)]+'_zip','repository':GIT_HOST+_0x28143d(0x161)+_0x3cb227[_0x28143d(0x163)]+_0x28143d(0x139)+_0x3cb227['token']+_0x28143d(0x136)};});},exports[a15_0x2abae6(0x168)]=function(_0x4fbab8){const _0x63c8e8=a15_0x2abae6;return fs[_0x63c8e8(0x175)](_0x4fbab8+_0x63c8e8(0x140));},exports[a15_0x2abae6(0x137)]=function(_0x5ac0b1){const _0x36f07f=a15_0x2abae6;let _0x66a1e3={};try{_0x66a1e3=JSON['parse'](fs[_0x36f07f(0x152)](_0x5ac0b1+_0x36f07f(0x140))[_0x36f07f(0x15a)]());}catch(_0x4be17c){console[_0x36f07f(0x14c)](_0x36f07f(0x133)),process['exit'](0x0);}!(_0x36f07f(0x160)in _0x66a1e3)&&(console[_0x36f07f(0x14c)](_0x36f07f(0x174)),process[_0x36f07f(0x150)](0x0));!('installTarget'in _0x66a1e3)&&(console[_0x36f07f(0x14c)](_0x36f07f(0x14a)),process['exit'](0x0));!(_0x36f07f(0x166)in _0x66a1e3)&&(console[_0x36f07f(0x14c)]('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process[_0x36f07f(0x150)](0x0));typeof _0x66a1e3[_0x36f07f(0x160)]!==_0x36f07f(0x171)&&(console['log']('【Error】:[jjb.config.json.projectType]类型是一个string。'),process[_0x36f07f(0x150)](0x0));![_0x36f07f(0x16c),_0x36f07f(0x173),_0x36f07f(0x16d),_0x36f07f(0x145)]['includes'](_0x66a1e3[_0x36f07f(0x160)])&&(console[_0x36f07f(0x14c)](_0x36f07f(0x149)),process['exit'](0x0));typeof _0x66a1e3[_0x36f07f(0x16a)]!==_0x36f07f(0x171)&&(console[_0x36f07f(0x14c)]('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process[_0x36f07f(0x150)](0x0));!['node_modules','src'][_0x36f07f(0x16f)](_0x66a1e3[_0x36f07f(0x16a)])&&(console[_0x36f07f(0x14c)](_0x36f07f(0x147)),process[_0x36f07f(0x150)](0x0));!Array['isArray'](_0x66a1e3[_0x36f07f(0x166)])&&(console[_0x36f07f(0x14c)]('【Error】:[jjb.config.json.installResources]类型是一个Array<string>。'),process[_0x36f07f(0x150)](0x0));_0x66a1e3[_0x36f07f(0x166)][_0x36f07f(0x158)]===0x0&&(console[_0x36f07f(0x14c)](_0x36f07f(0x155)),process[_0x36f07f(0x150)](0x0));const _0xb769a6=exports['f_resolve_install_resources'](_0x66a1e3[_0x36f07f(0x166)]);return _0xb769a6[_0x36f07f(0x16e)](_0x59f840=>_0x59f840[_0x36f07f(0x14d)])['filter'](_0x54fe66=>![_0x36f07f(0x167),_0x36f07f(0x142),'jjb-common-lib',_0x36f07f(0x153),'react-admin-component',_0x36f07f(0x159)][_0x36f07f(0x16f)](_0x54fe66))['length']!==0x0&&(console['log'](_0x36f07f(0x162)),process[_0x36f07f(0x150)](0x0)),_0x66a1e3[_0x36f07f(0x166)]=_0xb769a6,_0x66a1e3;},exports['f_create_package_json']=function(_0x511bb3,_0x476f01,_0x126d9a){const _0x50911d=a15_0x2abae6;fs['writeFileSync'](_0x511bb3+_0x50911d(0x146),_0x50911d(0x141)+_0x476f01+_0x50911d(0x156)+_0x126d9a+_0x50911d(0x15b));},exports['f_resolve_install_resources']=function(_0x399962=[]){const _0x2f63f1=a15_0x2abae6,_0x208579=[];return Array[_0x2f63f1(0x138)](_0x399962)&&_0x399962[_0x2f63f1(0x164)](_0x5ecfb9=>{const _0x18eea7=_0x2f63f1;if(Array[_0x18eea7(0x138)](_0x5ecfb9)){const [_0x540421,_0x3b33ca=[]]=_0x5ecfb9;_0x208579[_0x18eea7(0x170)]({'name':_0x540421,'importList':_0x3b33ca});}else _0x208579[_0x18eea7(0x170)]({'name':_0x5ecfb9,'importList':[]});}),_0x208579;},exports[a15_0x2abae6(0x169)]=function(_0x46f944,_0x549c4d,_0x3ccc1a){const _0x4c4384=a15_0x2abae6,_0xa5ae58=JSON['parse'](fs['readFileSync'](_0x46f944)[_0x4c4384(0x15a)]());_0xa5ae58[_0x4c4384(0x172)][_0x549c4d]=_0x3ccc1a,fs[_0x4c4384(0x16b)](_0x46f944,JSON[_0x4c4384(0x13f)](_0xa5ae58,null,0x2));},exports['f_file_copy']=function(_0x162051,_0x19f1db){const _0x5c55f7=a15_0x2abae6;fs['readdirSync'](_0x162051)[_0x5c55f7(0x164)](_0x4f8be3=>{const _0x2bbf49=_0x5c55f7,_0x1febf4=_0x162051+'\x5c'+_0x4f8be3,_0x183468=_0x19f1db+'\x5c'+_0x4f8be3;fs[_0x2bbf49(0x143)](_0x1febf4)[_0x2bbf49(0x13b)]()?(fs[_0x2bbf49(0x165)](_0x183468),exports[_0x2bbf49(0x176)](_0x1febf4,_0x183468)):fs[_0x2bbf49(0x16b)](_0x183468,fs[_0x2bbf49(0x152)](_0x1febf4)[_0x2bbf49(0x15a)]());});},exports[a15_0x2abae6(0x151)]=function(_0x28ef03=[],_0x387db5){const _0x57207b=a15_0x2abae6;_0x28ef03[_0x57207b(0x164)](_0x53add3=>{const _0x5bb66b=_0x57207b,_0x3a24fc=_0x387db5+_0x53add3[_0x5bb66b(0x15f)];if(fs[_0x5bb66b(0x175)](_0x3a24fc)){let _0x17bfdf=fs['readFileSync'](_0x3a24fc)[_0x5bb66b(0x15a)]();_0x53add3[_0x5bb66b(0x144)][_0x5bb66b(0x164)](_0x57bdaf=>{const _0x56ad8a=_0x5bb66b;_0x17bfdf=_0x17bfdf[_0x56ad8a(0x144)](_0x57bdaf[0x0],_0x57bdaf[0x1]);}),fs[_0x5bb66b(0x16b)](_0x3a24fc,_0x17bfdf);}});};
|
package/src/old/cli.merge.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a16_0x480b0a=a16_0x1685;function a16_0x1685(_0x91583b,_0x2b0ad7){const _0x30605c=a16_0x3060();return a16_0x1685=function(_0x16858d,_0x91d6ee){_0x16858d=_0x16858d-0x13e;let _0x2ffb25=_0x30605c[_0x16858d];return _0x2ffb25;},a16_0x1685(_0x91583b,_0x2b0ad7);}(function(_0x5d0a78,_0x2cc530){const _0x4656a4=a16_0x1685,_0x37701d=_0x5d0a78();while(!![]){try{const _0x2b65c7=-parseInt(_0x4656a4(0x155))/0x1*(-parseInt(_0x4656a4(0x152))/0x2)+-parseInt(_0x4656a4(0x156))/0x3*(parseInt(_0x4656a4(0x157))/0x4)+parseInt(_0x4656a4(0x14b))/0x5*(-parseInt(_0x4656a4(0x142))/0x6)+-parseInt(_0x4656a4(0x163))/0x7*(parseInt(_0x4656a4(0x14e))/0x8)+parseInt(_0x4656a4(0x165))/0x9+parseInt(_0x4656a4(0x151))/0xa+parseInt(_0x4656a4(0x160))/0xb*(-parseInt(_0x4656a4(0x14c))/0xc);if(_0x2b65c7===_0x2cc530)break;else _0x37701d['push'](_0x37701d['shift']());}catch(_0x59b164){_0x37701d['push'](_0x37701d['shift']());}}}(a16_0x3060,0xd6429));const fs=require('fs'),path=require(a16_0x480b0a(0x158)),utils=require('./util.js');let projectPath='',vesselPath='',commandArr=[];const fromFileData={},applicationJson={};module[a16_0x480b0a(0x15f)]=(_0x3e52dc,_0x92f622)=>{const _0x2cac32=a16_0x480b0a;commandArr=_0x3e52dc[_0x2cac32(0x149)](':'),projectPath=path[_0x2cac32(0x15e)](_0x2cac32(0x141)),vesselPath=path[_0x2cac32(0x15e)]('./vessel/src');let _0x42ad37=vesselPath;_0x92f622==='mp'&&(_0x42ad37=vesselPath+_0x2cac32(0x150),utils[_0x2cac32(0x159)](vesselPath,['application']));const _0x2dfcdf=commandArr[0x1],_0x4e5cc9=JSON[_0x2cac32(0x154)](fs[_0x2cac32(0x15c)](projectPath+'/'+_0x2dfcdf+'/setting.json')[_0x2cac32(0x143)]());TileItems(_0x4e5cc9[_0x2cac32(0x14d)],()=>{const _0x62fe6e=_0x2cac32;fromFileData['router'][_0x62fe6e(0x164)](_0x6a2de6=>{const _0x1eac28=_0x62fe6e,_0x450653=_0x6a2de6['pathAdr'][_0x1eac28(0x149)](_0x6a2de6[_0x1eac28(0x140)]),_0x23aec7=_0x450653[0x1]['split']('/'),_0x1685d5=_0x23aec7[0x1];!applicationJson[_0x1685d5]&&(applicationJson[_0x1685d5]={'routerConfig':[],'routerPath':[]});applicationJson[_0x1685d5][_0x1eac28(0x162)][_0x1eac28(0x161)]('{\x20path:\x20\x27'+_0x6a2de6[_0x1eac28(0x158)]+_0x1eac28(0x14a)+_0x6a2de6[_0x1eac28(0x13f)]+_0x1eac28(0x15a)),applicationJson[_0x1685d5][_0x1eac28(0x147)]['push'](_0x6a2de6[_0x1eac28(0x158)]);let _0x227323=_0x23aec7[_0x1eac28(0x148)]('/');const _0x5ad2fc=_0x227323[_0x1eac28(0x149)]('/');utils[_0x1eac28(0x159)](_0x42ad37,_0x5ad2fc[_0x1eac28(0x14f)](0x0,_0x5ad2fc[_0x1eac28(0x145)]-0x1))[_0x1eac28(0x144)](()=>{const _0x517e99=_0x1eac28,_0x5cdedf=fs[_0x517e99(0x15c)](_0x6a2de6[_0x517e99(0x153)])[_0x517e99(0x143)]();fs['writeFileSync'](vesselPath+'/'+_0x227323,_0x5cdedf);});});});};function a16_0x3060(){const _0xd30122=['parse','10433UPerFV','201dGjhoV','64212aFMweC','path','CreatePaths','\x27)\x20}','DeepScanner','readFileSync','fileType','resolve','exports','2464DtEhUw','push','routerConfig','7fTmOEV','forEach','10591461aZofeW','map','file','region','./project','18uFKUEk','toString','then','length','from','routerPath','join','split','\x27,\x20component:\x20()\x20=>\x20import(\x27','1406145NfGhla','12768avMkUP','items','72912zKmhZb','slice','/application','16379420tRTgUn','44qDdjth','pathAdr'];a16_0x3060=function(){return _0xd30122;};return a16_0x3060();}function TileItems(_0x54f19e,_0x5d66f0){const _0x40b506=a16_0x480b0a;_0x54f19e[_0x40b506(0x164)]((_0x3b91c4,_0x4048d7)=>{const _0x388c2e=_0x40b506,_0xd27f93=_0x3b91c4[_0x388c2e(0x140)];_0x3b91c4[_0x388c2e(0x146)][_0x388c2e(0x164)]((_0x403f5a,_0x3ca55e)=>{const _0x2b46dd=_0x388c2e,_0x497b8a=[];utils[_0x2b46dd(0x15b)](projectPath+'/'+_0xd27f93+'/'+_0x403f5a['file'],_0x497b8a);const _0x353aa9=_0x497b8a[_0x2b46dd(0x13e)](_0x1e4d2b=>({'region':_0xd27f93,'pathAdr':_0x1e4d2b,..._0x403f5a}));!fromFileData[_0x403f5a[_0x2b46dd(0x15d)]]?fromFileData[_0x403f5a[_0x2b46dd(0x15d)]]=_0x353aa9:fromFileData[_0x403f5a['fileType']]=fromFileData[_0x403f5a[_0x2b46dd(0x15d)]]['concat'](_0x353aa9),_0x4048d7===_0x54f19e[_0x2b46dd(0x145)]-0x1&&_0x3ca55e===_0x3b91c4[_0x2b46dd(0x146)][_0x2b46dd(0x145)]-0x1&&_0x5d66f0();});});}
|
package/src/old/cli.pull.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a17_0x191ae5=a17_0x122f;(function(_0x32db22,_0x279055){const _0x2316fe=a17_0x122f,_0x1a8b98=_0x32db22();while(!![]){try{const _0x549e64=-parseInt(_0x2316fe(0xdf))/0x1*(parseInt(_0x2316fe(0xe7))/0x2)+parseInt(_0x2316fe(0xe0))/0x3+parseInt(_0x2316fe(0x10a))/0x4+-parseInt(_0x2316fe(0x118))/0x5+-parseInt(_0x2316fe(0x111))/0x6+-parseInt(_0x2316fe(0xfc))/0x7*(-parseInt(_0x2316fe(0xe9))/0x8)+-parseInt(_0x2316fe(0xf3))/0x9;if(_0x549e64===_0x279055)break;else _0x1a8b98['push'](_0x1a8b98['shift']());}catch(_0x4e542a){_0x1a8b98['push'](_0x1a8b98['shift']());}}}(a17_0x3b31,0x82919));const fs=require('fs'),os=require('os'),path=require('path'),utils=require(a17_0x191ae5(0xee)),request=require(a17_0x191ae5(0x112)),compressing=require(a17_0x191ae5(0xea)),GIT_TEMP_DIR=a17_0x191ae5(0xec),GIT_HOST=a17_0x191ae5(0xe6),CLOUD_PROJECT={'common':{'token':a17_0x191ae5(0x116),'projectId':0x117,'localName':a17_0x191ae5(0xeb)},'react-admin-component':{'token':a17_0x191ae5(0xe2),'projectId':0x154,'localName':a17_0x191ae5(0x115)}};module[a17_0x191ae5(0xfd)]=_0x5e47ca=>{const _0x1634cc=a17_0x191ae5,_0xb1e138=_0x5e47ca,_0x72b90d=path[_0x1634cc(0x106)]('./');try{if(fs[_0x1634cc(0x104)](_0x72b90d+_0x1634cc(0x105))){const _0x5c5639=_0x72b90d+_0x1634cc(0x105),_0x28a698=CLOUD_PROJECT[_0xb1e138]||undefined;if(_0x28a698){const _0x43f5df=os['tmpdir'](),_0x2a8deb=_0x43f5df+('/'+GIT_TEMP_DIR+'/'+_0xb1e138+_0x1634cc(0xf4)),_0x411dc0=_0x43f5df+'/'+GIT_TEMP_DIR+_0x1634cc(0xf2);utils[_0x1634cc(0x102)](_0x43f5df+'/'+GIT_TEMP_DIR,()=>{const _0x201b71=_0x1634cc;fs['mkdirSync'](_0x43f5df+'/'+GIT_TEMP_DIR);let _0x126a45=fs[_0x201b71(0xe8)](_0x2a8deb);request(GIT_HOST+_0x201b71(0xff)+_0x28a698[_0x201b71(0xf8)]+_0x201b71(0xe3)+_0x28a698['token']+_0x201b71(0xfa))[_0x201b71(0x108)](_0x126a45)['on']('close',()=>{const _0x8c2c72=_0x201b71;fs[_0x8c2c72(0x107)](_0x411dc0),compressing[_0x8c2c72(0x10f)]['uncompress'](_0x2a8deb,_0x411dc0)[_0x8c2c72(0x100)](()=>{setTimeout(()=>{const _0x465856=a17_0x122f,_0x1b1fbd=fs[_0x465856(0xfe)](_0x411dc0);_0x1b1fbd[_0x465856(0x10d)](_0x5799fa=>{const _0x2cc2b6=_0x465856;if(_0x5799fa[_0x2cc2b6(0x103)](_0x2cc2b6(0xf9))!==-0x1){const _0x18cb7c=_0x5c5639+'\x5c'+_0x28a698[_0x2cc2b6(0xde)];utils[_0x2cc2b6(0x102)](_0x18cb7c,()=>{const _0x42afe6=_0x2cc2b6;fs[_0x42afe6(0x107)](_0x18cb7c),utils[_0x42afe6(0x114)](_0x411dc0+_0x5799fa,_0x18cb7c),setTimeout(()=>{const _0xf59831=_0x42afe6,_0x8a3d00=fs[_0xf59831(0xf5)](_0x5c5639+'\x5c'+'application');if(!_0x8a3d00){const _0x23e615=_0x5c5639+'\x5c'+_0xf59831(0x10e),_0x492827=_0x5c5639+'\x5c'+'common\x5cwebsite\x5cindex.js';let _0x3569f6=fs[_0xf59831(0xf1)](_0x23e615)[_0xf59831(0xf7)](),_0x31cd38=fs[_0xf59831(0xf1)](_0x492827)[_0xf59831(0xf7)]();_0x3569f6=_0x3569f6[_0xf59831(0x117)]('return\x20__planA();',_0xf59831(0xe5)),_0x31cd38=_0x31cd38[_0xf59831(0x117)](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,'const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;'),fs['writeFileSync'](_0x23e615,_0x3569f6),fs[_0xf59831(0xef)](_0x492827,_0x31cd38),fs[_0xf59831(0xef)](_0x5c5639+'\x5ccommon\x5cdva\x5cautomatic\x5crouter.js',fs[_0xf59831(0xf1)](__dirname+_0xf59831(0x109))['toString']()),fs[_0xf59831(0xef)](_0x5c5639+_0xf59831(0xf0),fs[_0xf59831(0xf1)](__dirname+_0xf59831(0x113))[_0xf59831(0xf7)]());}else fs[_0xf59831(0x10b)](_0x5c5639+'\x5c'+_0xf59831(0xe1),_0x556a80=>{const _0x22f1c4=_0xf59831;_0x556a80&&(fs[_0x22f1c4(0xfe)](_0x5c5639+'\x5c'+_0x22f1c4(0x110))['forEach'](_0x329a4c=>{const _0x1e369f=_0x22f1c4;fs[_0x1e369f(0xf6)](_0x5c5639+'\x5c'+'common\x5cdva\x5cautomatic\x5c'+_0x329a4c);}),fs[_0x22f1c4(0xfb)](_0x5c5639+'\x5c'+_0x22f1c4(0x110)));});},0x3e8);});}}),console[_0x465856(0x101)](_0xb1e138+_0x465856(0x10c));},0x7d0);});});});}else console['error'](_0x1634cc(0xe4)+_0xb1e138);}}catch(_0x41f584){console['error'](_0x1634cc(0xed));}};function a17_0x122f(_0x67ae71,_0x5723b5){const _0x3b316d=a17_0x3b31();return a17_0x122f=function(_0x122f47,_0x319ac3){_0x122f47=_0x122f47-0xde;let _0xa3e02b=_0x3b316d[_0x122f47];return _0xa3e02b;},a17_0x122f(_0x67ae71,_0x5723b5);}function a17_0x3b31(){const _0x30b79a=['【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','./util','writeFileSync','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','readFileSync','/unzip/','1239201MCLdac','.zip','existsSync','unlinkSync','toString','projectId','-master-','&ref=master','rmdirSync','3648799ulWhvI','exports','readdirSync','/api/v4/projects/','then','log','DeleteDirAllFile','indexOf','statSync','\x5csrc','resolve','mkdirSync','pipe','\x5ccli.dva.router.spa.txt','1253652HMXYeN','exists','-文件下载完毕','forEach','common\x5ctools\x5cindex.js','zip','common\x5cdva\x5cautomatic','2277102hiCZry','request','\x5ccli.dva.register.spa.txt','CopyFolder','components','G4HJRsHr9D7Ssmixegw2','replace','2660005rZleHY','localName','8744kUuHFG','2231955YxwMOz','common\x5cdva\x5cautomatic\x5cindex.js','FT3pKzxpRynFkmddJ9Bs','/repository/archive.zip?private_token=','【Error】:\x20未获取到项目\x20','return\x20process.env;','http://192.168.1.242:10985','118ZLMFCF','createWriteStream','16TEXeGU','compressing','common','jjbAssembly'];a17_0x3b31=function(){return _0x30b79a;};return a17_0x3b31();}
|
package/src/old/cli.pull2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a18_0x2b791c=a18_0x2876;(function(_0x416f68,_0x9dedcd){const _0x22fe40=a18_0x2876,_0x333652=_0x416f68();while(!![]){try{const _0x24e05a=parseInt(_0x22fe40(0x1fc))/0x1*(-parseInt(_0x22fe40(0x1e6))/0x2)+-parseInt(_0x22fe40(0x1ef))/0x3+parseInt(_0x22fe40(0x235))/0x4*(parseInt(_0x22fe40(0x217))/0x5)+parseInt(_0x22fe40(0x205))/0x6*(-parseInt(_0x22fe40(0x21b))/0x7)+parseInt(_0x22fe40(0x1f3))/0x8+-parseInt(_0x22fe40(0x1f6))/0x9*(parseInt(_0x22fe40(0x225))/0xa)+parseInt(_0x22fe40(0x1f7))/0xb*(parseInt(_0x22fe40(0x238))/0xc);if(_0x24e05a===_0x9dedcd)break;else _0x333652['push'](_0x333652['shift']());}catch(_0x44a3b0){_0x333652['push'](_0x333652['shift']());}}}(a18_0x20a0,0x9046a));const fs=require('fs'),os=require('os'),path=require('path'),utils=require(a18_0x2b791c(0x22f)),request=require('request'),compressing=require(a18_0x2b791c(0x23e)),GIT_HOST=a18_0x2b791c(0x1e2),GIT_TEMP_DIR='jjbAssembly',CLOUD_PROJECT={'common':{'token':a18_0x2b791c(0x1e3),'projectId':0x117,'localName':a18_0x2b791c(0x21c)},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154,'localName':a18_0x2b791c(0x20a)}},COMMON_CONTENT_NOR_REPLACE=[{'path':a18_0x2b791c(0x22d),'replace':[['components','jjb-react-admin-component']]},{'path':a18_0x2b791c(0x1e5),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a18_0x2b791c(0x220)],[a18_0x2b791c(0x20a),a18_0x2b791c(0x1ed)]]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a18_0x2b791c(0x22d),'replace':[[a18_0x2b791c(0x1f1),a18_0x2b791c(0x1fb)]]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':'\x5ctools\x5cindex.js','replace':[[a18_0x2b791c(0x1f1),a18_0x2b791c(0x22e)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':a18_0x2b791c(0x20e),'replace':[[a18_0x2b791c(0x1e9),'jjb-common/http'],[a18_0x2b791c(0x232),a18_0x2b791c(0x204)],[a18_0x2b791c(0x21d),'jjb-common/tools']]},{'path':a18_0x2b791c(0x23a),'replace':[[a18_0x2b791c(0x1e4),a18_0x2b791c(0x226)]]},{'path':a18_0x2b791c(0x236),'replace':[[a18_0x2b791c(0x21d),a18_0x2b791c(0x22a)]]},{'path':a18_0x2b791c(0x219),'replace':[[a18_0x2b791c(0x1e9),a18_0x2b791c(0x210)],[a18_0x2b791c(0x21d),a18_0x2b791c(0x22a)]]},{'path':a18_0x2b791c(0x223),'replace':[[a18_0x2b791c(0x1e9),a18_0x2b791c(0x210)],['common/tools',a18_0x2b791c(0x22a)]]},{'path':'\x5cImageUploader\x5cindex.js','replace':[[a18_0x2b791c(0x1e9),a18_0x2b791c(0x210)],[a18_0x2b791c(0x21d),a18_0x2b791c(0x22a)]]},{'path':a18_0x2b791c(0x23b),'replace':[[a18_0x2b791c(0x1e4),a18_0x2b791c(0x226)]]},{'path':a18_0x2b791c(0x227),'replace':[[a18_0x2b791c(0x21d),a18_0x2b791c(0x22a)]]},{'path':a18_0x2b791c(0x20d),'replace':[[a18_0x2b791c(0x234),a18_0x2b791c(0x23c)],[a18_0x2b791c(0x21d),a18_0x2b791c(0x22a)]]}];function uid(){const _0x103888=a18_0x2b791c;return Math[_0x103888(0x1ff)]()[_0x103888(0x213)]()[_0x103888(0x203)](0x2);}module[a18_0x2b791c(0x1f9)]=_0x4216fb=>{const _0x272c63=a18_0x2b791c,_0x289ce1=path[_0x272c63(0x201)]('./'),_0x105146=_0x272c63(0x22b)+_0x4216fb,_0x2d924c=_0x272c63(0x222),_0x24943a=_0x289ce1+_0x272c63(0x229),_0x131e7e=_0x272c63(0x237)+uid(),_0x343b67=__dirname+'\x5c'+_0x131e7e,_0x1eb83b=_0x289ce1+'\x5cpackage.json',_0x18b122=_0x289ce1+_0x272c63(0x1f5)+_0x4216fb;try{if(fs[_0x272c63(0x211)](_0x24943a)){const _0x1934b8=CLOUD_PROJECT[_0x4216fb]||undefined;if(_0x1934b8){const _0x1f6e98=os[_0x272c63(0x228)](),_0x4af60b=_0x1f6e98+'/'+GIT_TEMP_DIR+'/'+_0x4216fb+_0x272c63(0x200),_0xb5cae6=_0x1f6e98+'/'+GIT_TEMP_DIR+'/unzip/';utils[_0x272c63(0x20c)](_0x1f6e98+'/'+GIT_TEMP_DIR,()=>{const _0x532e16=_0x272c63;fs[_0x532e16(0x212)](_0x1f6e98+'/'+GIT_TEMP_DIR);const _0x2fce22=fs['createWriteStream'](_0x4af60b);request(GIT_HOST+_0x532e16(0x224)+_0x1934b8[_0x532e16(0x206)]+'/repository/archive.zip?private_token='+_0x1934b8['token']+'&ref=master')['pipe'](_0x2fce22)['on'](_0x532e16(0x21e),()=>{const _0x1ef91f=_0x532e16;fs[_0x1ef91f(0x212)](_0xb5cae6),compressing[_0x1ef91f(0x202)][_0x1ef91f(0x1eb)](_0x4af60b,_0xb5cae6)['then'](()=>{setTimeout(()=>{const _0x30c15d=a18_0x2876;fs[_0x30c15d(0x1e8)](_0xb5cae6)[_0x30c15d(0x209)](_0x19e2f4=>{const _0x3eacd3=_0x30c15d;_0x19e2f4['indexOf']('-master-')!==-0x1&&utils[_0x3eacd3(0x20c)](_0x24943a+'\x5c'+_0x1934b8[_0x3eacd3(0x233)],()=>{fs['mkdirSync'](_0x343b67),utils['CopyFolder'](_0xb5cae6+_0x19e2f4,_0x343b67),setTimeout(()=>{const _0x4ff607=a18_0x2876;if(_0x4216fb===_0x4ff607(0x21c)){const _0x374429=fs['existsSync'](_0x24943a+'\x5capplication');if(_0x374429)rm_rf(_0x343b67+_0x4ff607(0x1ec)),fs[_0x4ff607(0x231)](_0x343b67+_0x4ff607(0x1ec));else{if(get_project_type(_0x1eb83b)==='spa')content_replace(COMMON_CONTENT_SPA_REPLACE,_0x343b67),fs[_0x4ff607(0x239)](_0x343b67+'\x5cdva\x5cautomatic\x5crouter.js',fs[_0x4ff607(0x218)](__dirname+'\x5ccli.dva.router.spa.txt')[_0x4ff607(0x213)]()),fs[_0x4ff607(0x239)](_0x343b67+_0x4ff607(0x1e7),fs[_0x4ff607(0x218)](__dirname+_0x4ff607(0x1f4))[_0x4ff607(0x213)]());else get_project_type(_0x1eb83b)===_0x4ff607(0x1ea)&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x343b67),fs[_0x4ff607(0x239)](_0x343b67+_0x4ff607(0x208),fs[_0x4ff607(0x218)](__dirname+_0x4ff607(0x1ee))[_0x4ff607(0x213)]()),fs[_0x4ff607(0x239)](_0x343b67+_0x4ff607(0x1e7),fs[_0x4ff607(0x218)](__dirname+_0x4ff607(0x207))[_0x4ff607(0x213)]()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x343b67);}_0x4216fb===_0x4ff607(0x221)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x343b67),rm_rf(_0x343b67+_0x4ff607(0x1f2)),fs['existsSync'](_0x343b67+'\x5c.idea')&&fs[_0x4ff607(0x231)](_0x343b67+_0x4ff607(0x1f2)),fs[_0x4ff607(0x211)](_0x343b67+'\x5c.gitignore')&&fs[_0x4ff607(0x1fa)](_0x343b67+_0x4ff607(0x23f)),!fs[_0x4ff607(0x211)](_0x18b122)?fs['mkdirSync'](_0x18b122):rm_rf(_0x18b122),utils['CopyFolder'](_0x343b67,_0x18b122,()=>{const _0x13e863=_0x4ff607;rm_rf(_0x343b67),fs[_0x13e863(0x231)](_0x343b67),create_package_json(_0x18b122,_0x105146,_0x2d924c),update_project_package_json(_0x1eb83b,_0x105146,_0x2d924c),console['log'](_0x13e863(0x1fe)+_0x105146+'\x20v'+_0x2d924c);});},0x3e8);});});},0x7d0);});});});}else console[_0x272c63(0x230)]('【Error】:\x20未获取到项目\x20'+_0x4216fb);}}catch(_0x165982){console[_0x272c63(0x230)](_0x272c63(0x23d));}};function rm_rf(_0xc085c9){const _0x3f05fb=a18_0x2b791c;if(fs[_0x3f05fb(0x211)](_0xc085c9)){const _0x45c90d=fs[_0x3f05fb(0x1e8)](_0xc085c9);for(let _0x249dd6=0x0;_0x249dd6<_0x45c90d[_0x3f05fb(0x214)];_0x249dd6++){const _0x4b3290=_0x45c90d[_0x249dd6],_0xbab63c=_0xc085c9+'/'+_0x4b3290;fs[_0x3f05fb(0x21a)](_0xbab63c)[_0x3f05fb(0x215)]()?(rm_rf(_0xbab63c),fs['rmdirSync'](_0xbab63c)):fs[_0x3f05fb(0x1fa)](_0xbab63c);}}}function create_package_json(_0x156f25,_0x4e605b,_0x3738c2){const _0x62efc=a18_0x2b791c;fs[_0x62efc(0x239)](_0x156f25+_0x62efc(0x20f),_0x62efc(0x20b)+_0x4e605b+_0x62efc(0x1fd)+_0x3738c2+_0x62efc(0x22c));}function get_project_type(_0x26cbeb){const _0x40cc0b=a18_0x2b791c,_0x168c09=JSON[_0x40cc0b(0x216)](fs[_0x40cc0b(0x218)](_0x26cbeb)['toString']());return _0x168c09[_0x40cc0b(0x1f0)];}function a18_0x2876(_0x28b7b9,_0x35ba91){const _0x20a0c8=a18_0x20a0();return a18_0x2876=function(_0x287681,_0x1f859d){_0x287681=_0x287681-0x1e2;let _0x544306=_0x20a0c8[_0x287681];return _0x544306;},a18_0x2876(_0x28b7b9,_0x35ba91);}function a18_0x20a0(){const _0x214d7b=['\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','\x5cEditor\x5cindex.js','\x5cpackage.json','jjb-common/http','existsSync','mkdirSync','toString','length','isDirectory','parse','195SRjObF','readFileSync','\x5cFileUploader\x5cindex.js','statSync','7tYLFqJ','common','common/tools','close','stringify','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','react-admin-component','1.0.0','\x5cImageCropper\x5cindex.js','/api/v4/projects/','11080FXOduo','jjb-common/color','\x5cRouterContainer\x5cindex.js','tmpdir','\x5csrc','jjb-common/tools','jjb-','\x22,\x22main\x22:\x20\x22index.js\x22}','\x5ctools\x5cindex.js','return\x20process.env.app;','./util','error','rmdirSync','common/crypto','localName','common/website','63904CREslp','\x5cRouterMenu\x5cindex.js','template_','269460Jomhoh','writeFileSync','\x5cRejectText\x5cindex.js','\x5cPageHeaderBar\x5cindex.js','jjb-common/website','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','compressing','\x5c.gitignore','http://192.168.1.242:10985','G4HJRsHr9D7Ssmixegw2','common/color','\x5cwebsite\x5cindex.js','164694XlgwBp','\x5cdva\x5cautomatic\x5cregister.js','readdirSync','common/http','micro-spa','uncompress','\x5cdva\x5cautomatic','jjb-react-admin-component','\x5ccli.dva.router.saas.txt','1035969OInBaR','projectType','return\x20__planA();','\x5c.idea','6496968DsiJiT','\x5ccli.dva.register.spa.txt','\x5cnode_modules\x5cjjb-','6678wvyXOa','781hYmhfT','replace','exports','unlinkSync','return\x20process.env;','8Spxtth','\x22,\x22version\x22:\x22','【已安装】:','random','.zip','resolve','zip','substr','jjb-common/crypto','3673806DQigGd','projectId','\x5ccli.dva.register.saas.txt','\x5cdva\x5cautomatic\x5crouter.js','forEach','components','{\x22name\x22:\x22','DeleteDirAllFile'];a18_0x20a0=function(){return _0x214d7b;};return a18_0x20a0();}function update_project_package_json(_0x52f7e8,_0x273a51,_0x3c88eb){const _0x4bef5e=a18_0x2b791c,_0xb0350a=JSON[_0x4bef5e(0x216)](fs[_0x4bef5e(0x218)](_0x52f7e8)[_0x4bef5e(0x213)]());_0xb0350a['dependencies'][_0x273a51]=_0x3c88eb,fs['writeFileSync'](_0x52f7e8,JSON[_0x4bef5e(0x21f)](_0xb0350a,null,0x2));}function content_replace(_0xb53ffd=[],_0x175bc8){const _0x484501=a18_0x2b791c;_0xb53ffd[_0x484501(0x209)](_0x56ff6e=>{const _0x3fb088=_0x484501,_0x5e8c9f=_0x175bc8+_0x56ff6e['path'];if(fs[_0x3fb088(0x211)](_0x5e8c9f)){let _0x1aa124=fs[_0x3fb088(0x218)](_0x5e8c9f)[_0x3fb088(0x213)]();_0x56ff6e[_0x3fb088(0x1f8)]['forEach'](_0x3081d4=>{const _0x44e031=_0x3fb088;_0x1aa124=_0x1aa124[_0x44e031(0x1f8)](_0x3081d4[0x0],_0x3081d4[0x1]);}),fs[_0x3fb088(0x239)](_0x5e8c9f,_0x1aa124);}});}
|
package/src/old/cli.rm-rf.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a19_0x4044b2=a19_0x3234;(function(_0x3d7b53,_0xe552c2){const _0x11889b=a19_0x3234,_0x158ef3=_0x3d7b53();while(!![]){try{const _0xdaebad=-parseInt(_0x11889b(0x14e))/0x1*(parseInt(_0x11889b(0x13c))/0x2)+-parseInt(_0x11889b(0x149))/0x3+-parseInt(_0x11889b(0x140))/0x4+parseInt(_0x11889b(0x14b))/0x5+-parseInt(_0x11889b(0x13d))/0x6*(parseInt(_0x11889b(0x142))/0x7)+-parseInt(_0x11889b(0x13a))/0x8+parseInt(_0x11889b(0x14a))/0x9*(parseInt(_0x11889b(0x148))/0xa);if(_0xdaebad===_0xe552c2)break;else _0x158ef3['push'](_0x158ef3['shift']());}catch(_0x3be25e){_0x158ef3['push'](_0x158ef3['shift']());}}}(a19_0x4d00,0xd1700));const fs=require('fs'),path=require('path'),readline=require('readline'),ProgressBar=require(a19_0x4044b2(0x144)),io=readline[a19_0x4044b2(0x141)]({'input':process['stdin'],'output':process[a19_0x4044b2(0x145)]}),progress=new ProgressBar(a19_0x4044b2(0x151),0x32);function a19_0x3234(_0x3ce3a1,_0x1ba478){const _0x4d0096=a19_0x4d00();return a19_0x3234=function(_0x32341e,_0x40b577){_0x32341e=_0x32341e-0x13a;let _0x580fbe=_0x4d0096[_0x32341e];return _0x580fbe;},a19_0x3234(_0x3ce3a1,_0x1ba478);}function a19_0x4d00(){const _0xf03204=['601329YEZdUp','92340cOCfIs','8333450ybeMTx','readdirSync','是否确认删除?删除后不可恢复![y/n]:','50Elgrtu','isDirectory','log','删除进度','删除完成。','rmdirSync','length','正在计算项目数,请稍等...','8898224ZAujQN','unlinkSync','1500DzIxJF','6xbOBPJ','statSync','exit','6362392sYsddT','createInterface','8920345Qxbafb','existsSync','./progress-bar','stdout','resolve','exports','3320ZxXsjh'];a19_0x4d00=function(){return _0xf03204;};return a19_0x4d00();}let f_total=0x0,f_number=0x0;module[a19_0x4044b2(0x147)]=function(){const _0x533848=a19_0x4044b2,_0x3e14ee=path[_0x533848(0x146)]('./');io['question'](_0x533848(0x14d),function(_0x32d505){const _0x25fad2=_0x533848;if(_0x32d505['trim']()==='y')console[_0x25fad2(0x150)](_0x25fad2(0x155)),setTimeout(()=>{setTimeout(()=>{console['clear'](),exec(_0x3e14ee),setTimeout(()=>{const _0x4067f8=a19_0x3234;console[_0x4067f8(0x150)](_0x4067f8(0x152)),console['clear'](),process[_0x4067f8(0x13f)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x32d505['trim']()==='n'?(console[_0x25fad2(0x150)]('取消删除。'),process[_0x25fad2(0x13f)](0x0)):(console['log']('无效操作。'),process[_0x25fad2(0x13f)](0x0));});};function exec(_0x5734d8){const _0xf5b3d0=a19_0x4044b2;if(fs[_0xf5b3d0(0x143)](_0x5734d8)){const _0x5e5701=fs[_0xf5b3d0(0x14c)](_0x5734d8);for(let _0x5de9ba=0x0;_0x5de9ba<_0x5e5701['length'];_0x5de9ba++){const _0x448d7d=_0x5e5701[_0x5de9ba],_0x55f06f=_0x5734d8+'/'+_0x448d7d;try{fs['statSync'](_0x55f06f)['isDirectory']()?(exec(_0x55f06f),fs[_0xf5b3d0(0x153)](_0x55f06f,{'recursive':!![]}),console['log']('删除文件夹:'+_0x55f06f)):(fs[_0xf5b3d0(0x13b)](_0x55f06f),console['log']('删除文件:'+_0x55f06f));}catch(_0x340e7b){console['log']('删除异常:'+_0x55f06f);}}}}function scanner(_0x504aee){const _0x179ff0=a19_0x4044b2;if(fs[_0x179ff0(0x143)](_0x504aee)){const _0x63ef9a=fs[_0x179ff0(0x14c)](_0x504aee);for(let _0x24517b=0x0;_0x24517b<_0x63ef9a[_0x179ff0(0x154)];_0x24517b++){const _0x109e90=_0x63ef9a[_0x24517b],_0x422ef3=_0x504aee+'/'+_0x109e90;try{fs[_0x179ff0(0x13e)](_0x422ef3)[_0x179ff0(0x14f)]()?(scanner(_0x422ef3),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x551510){}}}}
|
package/src/old/progress-bar.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a20_0x343ba4=a20_0xc6da;(function(_0x1a8da0,_0x5402d6){const _0x1c2623=a20_0xc6da,_0x104dde=_0x1a8da0();while(!![]){try{const _0x5a6c91=parseInt(_0x1c2623(0x101))/0x1+parseInt(_0x1c2623(0xfa))/0x2+-parseInt(_0x1c2623(0x102))/0x3*(parseInt(_0x1c2623(0x103))/0x4)+parseInt(_0x1c2623(0x104))/0x5*(parseInt(_0x1c2623(0xf9))/0x6)+parseInt(_0x1c2623(0xff))/0x7*(-parseInt(_0x1c2623(0x100))/0x8)+parseInt(_0x1c2623(0xfe))/0x9+parseInt(_0x1c2623(0xf7))/0xa*(-parseInt(_0x1c2623(0xfb))/0xb);if(_0x5a6c91===_0x5402d6)break;else _0x104dde['push'](_0x104dde['shift']());}catch(_0x3ee7b5){_0x104dde['push'](_0x104dde['shift']());}}}(a20_0x3d25,0x6fb22));function a20_0xc6da(_0x19afee,_0x3057d2){const _0x3d251f=a20_0x3d25();return a20_0xc6da=function(_0xc6da30,_0x5f34f5){_0xc6da30=_0xc6da30-0xf6;let _0x539494=_0x3d251f[_0xc6da30];return _0x539494;},a20_0xc6da(_0x19afee,_0x3057d2);}const slog=require(a20_0x343ba4(0xf8))['stdout'];function ProgressBar(_0x4b264b,_0x4a49c5){const _0x251b4c=a20_0x343ba4;this[_0x251b4c(0x107)]=_0x4b264b||_0x251b4c(0x108),this['length']=_0x4a49c5||0x19,this[_0x251b4c(0x106)]=function(_0x446da2){const _0xa824b9=_0x251b4c;let _0x4f4ad4;const _0x352d16=(_0x446da2[_0xa824b9(0xfc)]/_0x446da2['total'])[_0xa824b9(0x105)](0x4),_0x23947d=Math['floor'](_0x352d16*this[_0xa824b9(0xfd)]);let _0x29c20c='';for(_0x4f4ad4=0x0;_0x4f4ad4<_0x23947d;_0x4f4ad4++){_0x29c20c+='█';}let _0xbe208b='';for(_0x4f4ad4=0x0;_0x4f4ad4<this['length']-_0x23947d;_0x4f4ad4++){_0xbe208b+='░';}const _0x13960f=this['description']+':\x20'+(0x64*_0x352d16)['toFixed'](0x2)+'%\x20'+_0x29c20c+_0xbe208b+'\x20'+_0x446da2[_0xa824b9(0xfc)]+'/'+_0x446da2['total'];slog(_0x13960f);};}function a20_0x3d25(){const _0x5c0b1c=['exports','18030SZkWIv','single-line-log','1101756jwKfWh','864252KZpLwK','5973tkXuhN','completed','length','4998807vzBxmM','2106034rcVMCz','8VFpfqg','880693RBnaTF','3HYAYXW','1992388rjXcID','10EjxRDU','toFixed','render','description','Progress'];a20_0x3d25=function(){return _0x5c0b1c;};return a20_0x3d25();}module[a20_0x343ba4(0xf6)]=ProgressBar;
|
package/src/old/util.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a21_0xe4e60a=a21_0x42e7;(function(_0x5ac804,_0x161b5f){const _0x858e84=a21_0x42e7,_0x199f80=_0x5ac804();while(!![]){try{const _0xfbcbeb=parseInt(_0x858e84(0xfc))/0x1+parseInt(_0x858e84(0x102))/0x2*(-parseInt(_0x858e84(0x112))/0x3)+parseInt(_0x858e84(0x116))/0x4+parseInt(_0x858e84(0x100))/0x5+parseInt(_0x858e84(0x115))/0x6*(-parseInt(_0x858e84(0xf8))/0x7)+parseInt(_0x858e84(0x104))/0x8+-parseInt(_0x858e84(0x114))/0x9*(parseInt(_0x858e84(0x10c))/0xa);if(_0xfbcbeb===_0x161b5f)break;else _0x199f80['push'](_0x199f80['shift']());}catch(_0x17390e){_0x199f80['push'](_0x199f80['shift']());}}}(a21_0x5a78,0x90d92));function a21_0x42e7(_0x2c3339,_0x59dc55){const _0x5a78e6=a21_0x5a78();return a21_0x42e7=function(_0x42e709,_0x397951){_0x42e709=_0x42e709-0xf8;let _0x261a0a=_0x5a78e6[_0x42e709];return _0x261a0a;},a21_0x42e7(_0x2c3339,_0x59dc55);}const fs=require('fs'),path=require(a21_0xe4e60a(0x107));exports[a21_0xe4e60a(0x105)]=(_0x4256c4,_0x334c97)=>{const _0x4cf683=a21_0xe4e60a;let _0x42b9b4=[];const _0x300495=this;fs['existsSync'](_0x4256c4)?(_0x42b9b4=fs[_0x4cf683(0x109)](_0x4256c4),_0x42b9b4['forEach'](function(_0x35c113,_0x3dae6f){const _0x546a42=_0x4cf683;let _0x113cc2=_0x4256c4+'/'+_0x35c113;fs[_0x546a42(0xf9)](_0x113cc2)[_0x546a42(0xff)]()?_0x300495[_0x546a42(0x105)](_0x113cc2):fs[_0x546a42(0x106)](_0x113cc2);}),fs[_0x4cf683(0x117)](_0x4256c4),_0x334c97&&_0x334c97()):_0x334c97&&_0x334c97();},exports['CopyFolder']=(_0x16fbc5,_0x3b7e80,_0xae1db8)=>{const _0x532ce8=this;fs['readdir'](_0x16fbc5,function(_0x3b0b28,_0xd3b024){let _0x4480a3=0x0;const _0x2f9db3=function(){const _0x3d9af6=a21_0x42e7;++_0x4480a3===_0xd3b024[_0x3d9af6(0x110)]&&_0xae1db8&&_0xae1db8();};if(_0x3b0b28){_0x2f9db3();return;}_0xd3b024['forEach'](function(_0x1976fc){const _0x23132d=a21_0x42e7,_0x271a54=path[_0x23132d(0xfe)](_0x16fbc5,_0x1976fc),_0x18c1df=path[_0x23132d(0xfe)](_0x3b7e80,_0x1976fc);fs['stat'](_0x271a54,function(_0x168347,_0xe17669){const _0x21cfb3=_0x23132d;_0xe17669[_0x21cfb3(0xff)]()?fs[_0x21cfb3(0x10f)](_0x18c1df,function(_0x3a5833){const _0x102706=_0x21cfb3;if(_0x3a5833){console['log'](_0x3a5833);return;}_0x532ce8[_0x102706(0xfa)](_0x271a54,_0x18c1df,_0x2f9db3);}):_0x532ce8[_0x21cfb3(0x113)](_0x271a54,_0x18c1df,_0x2f9db3);});}),_0xd3b024['length']===0x0&&_0xae1db8&&_0xae1db8();});},exports[a21_0xe4e60a(0x113)]=(_0x2cd1eb,_0x2c95d9,_0x31160c)=>{const _0x19f6d2=a21_0xe4e60a,_0x4395aa=fs[_0x19f6d2(0x111)](_0x2cd1eb);_0x4395aa['on']('error',function(_0x4e5cce){const _0x341ff6=_0x19f6d2;_0x4e5cce&&console['log'](_0x341ff6(0x10b),_0x2cd1eb),_0x31160c&&_0x31160c(_0x4e5cce);});const _0x2b6b2=fs[_0x19f6d2(0xfb)](_0x2c95d9);_0x2b6b2['on']('error',function(_0xf70fdc){const _0x6823c5=_0x19f6d2;_0xf70fdc&&console['log'](_0x6823c5(0x101),_0x2c95d9),_0x31160c&&_0x31160c(_0xf70fdc);}),_0x2b6b2['on'](_0x19f6d2(0x10e),function(_0x54391d){_0x31160c&&_0x31160c(_0x54391d);}),_0x4395aa['pipe'](_0x2b6b2);},exports[a21_0xe4e60a(0x108)]=(_0x4a0905,_0x49eabb)=>{const _0x289c6f=a21_0xe4e60a,_0xb4f0d7=this,_0x227447=fs[_0x289c6f(0x109)](_0x4a0905);_0x227447[_0x289c6f(0x103)](_0x231408=>{const _0xd44f4=_0x289c6f,_0x579ce2=_0x4a0905+'/'+_0x231408,_0x322b32=fs['statSync'](_0x579ce2);_0x322b32['isDirectory']()?_0xb4f0d7[_0xd44f4(0x108)](_0x579ce2,_0x49eabb):_0x49eabb[_0xd44f4(0x10a)](_0x579ce2);});},exports[a21_0xe4e60a(0xfd)]=(_0x595473,_0x3787d9)=>{return new Promise(_0x1ab7cb=>{const _0x7afcb=[];_0x3787d9['forEach']((_0x176154,_0x2d6d93)=>{const _0x3383bf=a21_0x42e7,_0x41b441=_0x595473+'/'+_0x7afcb[_0x3383bf(0xfe)]('/')+'/'+_0x176154;try{const _0x349077=fs[_0x3383bf(0xf9)](_0x41b441);_0x349077[_0x3383bf(0xff)]()?_0x2d6d93===_0x3787d9[_0x3383bf(0x110)]-0x1&&_0x1ab7cb():(fs['mkdirSync'](_0x41b441),_0x2d6d93===_0x3787d9[_0x3383bf(0x110)]-0x1&&_0x1ab7cb());}catch(_0x1d5fb1){fs[_0x3383bf(0x10d)](_0x41b441),_0x2d6d93===_0x3787d9[_0x3383bf(0x110)]-0x1&&_0x1ab7cb();}_0x7afcb['push'](_0x176154);});});};function a21_0x5a78(){const _0x2f9cf5=['CreatePaths','join','isDirectory','5004660HVlSrt','write\x20error','27512pRCBKM','forEach','6092136GmUVpZ','DeleteDirAllFile','unlinkSync','path','DeepScanner','readdirSync','push','read\x20error','30PSKvOO','mkdirSync','close','mkdir','length','createReadStream','174MUgfQC','CopyFile','2243457KVKxvK','114hKrZMd','89812sQiHtF','rmdirSync','141351YhoTyE','statSync','CopyFolder','createWriteStream','737730OlgfzV'];a21_0x5a78=function(){return _0x2f9cf5;};return a21_0x5a78();}
|