jjb-cmd 2.1.24 → 2.1.25
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/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.publish/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 -1
- 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/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a0_0x266252=a0_0x29ab;(function(_0x4e80e5,_0x25d8ff){const _0x31a5b4=a0_0x29ab,_0x530a6c=_0x4e80e5();while(!![]){try{const _0xce26bc=-parseInt(_0x31a5b4(0x1ce))/0x1*(-parseInt(_0x31a5b4(0x1d3))/0x2)+-parseInt(_0x31a5b4(0x1d6))/0x3*(-parseInt(_0x31a5b4(0x1d9))/0x4)+-parseInt(_0x31a5b4(0x1de))/0x5*(-parseInt(_0x31a5b4(0x1da))/0x6)+parseInt(_0x31a5b4(0x1e2))/0x7*(-parseInt(_0x31a5b4(0x1e4))/0x8)+-parseInt(_0x31a5b4(0x1e3))/0x9*(parseInt(_0x31a5b4(0x1cd))/0xa)+parseInt(_0x31a5b4(0x1d5))/0xb+parseInt(_0x31a5b4(0x1e0))/0xc;if(_0xce26bc===_0x25d8ff)break;else _0x530a6c['push'](_0x530a6c['shift']());}catch(_0x1c49c1){_0x530a6c['push'](_0x530a6c['shift']());}}}(a0_0x1af1,0x1a3b0));function a0_0x29ab(_0x5c9313,_0x7ed478){const _0x1af1b8=a0_0x1af1();return a0_0x29ab=function(_0x29aba3,_0x103696){_0x29aba3=_0x29aba3-0x1cd;let _0x59d375=_0x1af1b8[_0x29aba3];return _0x59d375;},a0_0x29ab(_0x5c9313,_0x7ed478);}function a0_0x1af1(){const _0x3b6b16=['8LRyaVI','log','path','status','1914460GGdZpa','439HHerYh','catch','exports','unlinkSync','then','18FUKLjK','data','512413MRpmUq','21447SqFJmz','post','Auth\x20Fail!','80ohyWqA','6OTTsRB','../cmd.install/config','join','writeFileSync','78595ZlRkku','/api/auth','3180792zDmxuI','axios','1227891FrAwGr','9CWmryG'];a0_0x1af1=function(){return _0x3b6b16;};return a0_0x1af1();}const axios=require(a0_0x266252(0x1e1)),fs=require('fs'),path=require(a0_0x266252(0x1e6)),{API_HOST}=require(a0_0x266252(0x1db));module[a0_0x266252(0x1d0)]=_0x1271f4=>{const _0x34f715=a0_0x266252;console[_0x34f715(0x1e5)](_0x1271f4);const [_0x39da89,_0x587c9c]=_0x1271f4;axios[_0x34f715(0x1d7)](API_HOST+_0x34f715(0x1df),{'username':_0x39da89,'password':_0x587c9c})[_0x34f715(0x1d2)](_0x501712=>{const _0xd36071=_0x34f715,_0x3c0300=path[_0xd36071(0x1dc)](__dirname,'../../../.auth');_0x501712[_0xd36071(0x1d4)][_0xd36071(0x1e7)]?(console[_0xd36071(0x1e5)]('Auth\x20Success!'),fs[_0xd36071(0x1dd)](_0x3c0300,_0x39da89+'/'+_0x587c9c)):(console[_0xd36071(0x1e5)](_0xd36071(0x1d8)),fs['existsSync'](_0x3c0300)&&fs[_0xd36071(0x1d1)](_0x3c0300));})[_0x34f715(0x1cf)](_0x125e2e=>{const _0x3b528e=_0x34f715;console[_0x3b528e(0x1e5)]('Auth\x20NetWork\x20Fail!');});};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a1_0xf87865=a1_0x2a59;function a1_0x5a70(){const _0x16eaeb=['npm','log','【Error】:初始化失败,','/api/v4/projects/','close','-master-','question','../cmd.install/config','path','525492hVSNpI','exit','../../old/util','安装中,请耐心等待...','forEach','安装完成,祝您愉快编码!','&ref=master','520dJLajB','uncompress','readline','2qmsxYa','486071iHmhsI','91175KHWBcl','.zip','182exzQfW','13nTMLdw','pipe','/unzip/','token','then','zip','trim','jjb-cmd\x20install.app\x20','不存在。','93843RFcmEo','36RsmXWH','180LynqcE','4279759gEYLXo','73912FqTjwa','createWriteStream','indexOf','createInterface','初始化完成?请选择安装方式![yarn/npm]:','stdout','stdin','mkdirSync','25316vNzugE','CopyFolder','/repository/archive.zip?private_token=','child_process'];a1_0x5a70=function(){return _0x16eaeb;};return a1_0x5a70();}function a1_0x2a59(_0x508499,_0x59638d){const _0x5a70ab=a1_0x5a70();return a1_0x2a59=function(_0x2a59d3,_0x2487e3){_0x2a59d3=_0x2a59d3-0x1c2;let _0x5cd091=_0x5a70ab[_0x2a59d3];return _0x5cd091;},a1_0x2a59(_0x508499,_0x59638d);}(function(_0x3079bb,_0x43eaad){const _0x172cf6=a1_0x2a59,_0xae98a=_0x3079bb();while(!![]){try{const _0x2eb3b2=-parseInt(_0x172cf6(0x1d2))/0x1*(-parseInt(_0x172cf6(0x1d1))/0x2)+-parseInt(_0x172cf6(0x1e0))/0x3*(parseInt(_0x172cf6(0x1eb))/0x4)+-parseInt(_0x172cf6(0x1d3))/0x5*(-parseInt(_0x172cf6(0x1e1))/0x6)+parseInt(_0x172cf6(0x1d5))/0x7*(parseInt(_0x172cf6(0x1e3))/0x8)+parseInt(_0x172cf6(0x1df))/0x9*(-parseInt(_0x172cf6(0x1ce))/0xa)+-parseInt(_0x172cf6(0x1e2))/0xb+-parseInt(_0x172cf6(0x1c7))/0xc*(-parseInt(_0x172cf6(0x1d6))/0xd);if(_0x2eb3b2===_0x43eaad)break;else _0xae98a['push'](_0xae98a['shift']());}catch(_0xbe3f52){_0xae98a['push'](_0xae98a['shift']());}}}(a1_0x5a70,0x4ba91));const fs=require('fs'),os=require('os'),path=require(a1_0xf87865(0x1c6)),request=require('request'),utils=require(a1_0xf87865(0x1c9)),compressing=require('compressing'),readline=require(a1_0xf87865(0x1d0)),io=readline[a1_0xf87865(0x1e6)]({'input':process[a1_0xf87865(0x1e9)],'output':process[a1_0xf87865(0x1e8)]}),child_process=require(a1_0xf87865(0x1ee)),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require(a1_0xf87865(0x1c5));module['exports']=_0x45ad6c=>{const _0x243b71=a1_0xf87865,_0xa0216f=path['resolve']('./'),_0x5e802f=CLOUD_PROJECT[_0x45ad6c]||undefined;if(_0x5e802f){const _0x1efa41=os['tmpdir'](),_0x5096df=_0x1efa41+'/'+GIT_TEMP_DIR+'/'+_0x45ad6c+_0x243b71(0x1d4),_0x68de86=_0x1efa41+'/'+GIT_TEMP_DIR+_0x243b71(0x1d8);utils['DeleteDirAllFile'](_0x1efa41+'/'+GIT_TEMP_DIR,()=>{const _0x17fcab=_0x243b71;fs[_0x17fcab(0x1ea)](_0x1efa41+'/'+GIT_TEMP_DIR);let _0x50955b=fs[_0x17fcab(0x1e4)](_0x5096df);request(GIT_HOST+_0x17fcab(0x1f2)+_0x5e802f['projectId']+_0x17fcab(0x1ed)+_0x5e802f[_0x17fcab(0x1d9)]+_0x17fcab(0x1cd))[_0x17fcab(0x1d7)](_0x50955b)['on'](_0x17fcab(0x1c2),()=>{const _0x5a6029=_0x17fcab;fs[_0x5a6029(0x1ea)](_0x68de86),compressing[_0x5a6029(0x1db)][_0x5a6029(0x1cf)](_0x5096df,_0x68de86)[_0x5a6029(0x1da)](()=>{setTimeout(()=>{const _0x41e6aa=a1_0x2a59;fs['readdirSync'](_0x68de86)[_0x41e6aa(0x1cb)](_0x53bb3e=>{const _0x4c40be=_0x41e6aa;_0x53bb3e[_0x4c40be(0x1e5)](_0x4c40be(0x1c3))!==-0x1&&utils[_0x4c40be(0x1ec)](_0x68de86+_0x53bb3e,_0xa0216f,()=>{const _0x404c8c=_0x4c40be;io[_0x404c8c(0x1c4)](_0x404c8c(0x1e7),function(_0x586739){const _0xd3e541=_0x404c8c;['yarn',_0xd3e541(0x1ef)]['includes'](_0x586739[_0xd3e541(0x1dc)]())?(console[_0xd3e541(0x1f0)](_0xd3e541(0x1ca)),child_process['execSync'](_0xd3e541(0x1dd)+_0x586739[_0xd3e541(0x1dc)](),{'cwd':_0xa0216f}),console['log'](_0xd3e541(0x1cc)),process['exit'](0x0)):(console[_0xd3e541(0x1f0)]('初始化完成!请自行使用jjb-cmd\x20install.app\x20yarn/npm安装项目!'),process[_0xd3e541(0x1c8)](0x0));});});});},0x7d0);});});});}else console[_0x243b71(0x1f0)](_0x243b71(0x1f1)+_0x45ad6c+_0x243b71(0x1de));};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a2_0xa0e94c=a2_0xab0b;(function(_0x70d025,_0x93dd04){const _0x114424=a2_0xab0b,_0x178eda=_0x70d025();while(!![]){try{const _0x31094f=parseInt(_0x114424(0xf0))/0x1+-parseInt(_0x114424(0xee))/0x2*(-parseInt(_0x114424(0xff))/0x3)+parseInt(_0x114424(0xf2))/0x4+-parseInt(_0x114424(0xec))/0x5+-parseInt(_0x114424(0x103))/0x6+parseInt(_0x114424(0xf8))/0x7+-parseInt(_0x114424(0xef))/0x8*(parseInt(_0x114424(0xfa))/0x9);if(_0x31094f===_0x93dd04)break;else _0x178eda['push'](_0x178eda['shift']());}catch(_0x219c1b){_0x178eda['push'](_0x178eda['shift']());}}}(a2_0x1435,0x5b96c));function a2_0xab0b(_0xe53dcc,_0x165ccd){const _0x1435a0=a2_0x1435();return a2_0xab0b=function(_0xab0b4e,_0x3f7f94){_0xab0b4e=_0xab0b4e-0xea;let _0x5b5e39=_0x1435a0[_0xab0b4e];return _0x5b5e39;},a2_0xab0b(_0xe53dcc,_0x165ccd);}const os=require('os');exports['CONFIG_FILE_HOST']='https://cdn.cqjjb.cn/jjb-cloud-config',exports[a2_0xa0e94c(0xfe)]=a2_0xa0e94c(0x106),exports[a2_0xa0e94c(0xfc)]=a2_0xa0e94c(0x100),exports[a2_0xa0e94c(0xf9)]=a2_0xa0e94c(0xfb)+Date[a2_0xa0e94c(0xf5)](),exports['GIT_TEMP_JAVA']=a2_0xa0e94c(0xf1),exports[a2_0xa0e94c(0x101)]={'development':a2_0xa0e94c(0x107),'production':a2_0xa0e94c(0xeb),'test':a2_0xa0e94c(0xea)},exports[a2_0xa0e94c(0x108)]={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117},'react-admin-component':{'token':a2_0xa0e94c(0xf6),'projectId':0x154},'jjb-dva-runtime':{'token':a2_0xa0e94c(0x105),'projectId':0x23b},'jjb-common-lib':{'token':a2_0xa0e94c(0x102),'projectId':0x23c},'jjb-common-decorator':{'token':'gPSit8aJsLVmNzuQ5Cy4','projectId':0x23e},'vue-unisass-component':{'token':a2_0xa0e94c(0xed),'projectId':0x153},'react-component':{'token':a2_0xa0e94c(0xf7),'projectId':0x33f},'micro-app-ts':{'token':a2_0xa0e94c(0xf3),'projectId':0x33e},'micro-app':{'token':a2_0xa0e94c(0xf4),'projectId':0x33d},'lib':{'token':'ywPtT3xCG6b_vAxp6sTj','projectId':0x33c}},exports[a2_0xa0e94c(0x104)]=os[a2_0xa0e94c(0xfd)]()+'\x5c'+exports[a2_0xa0e94c(0xf9)];function a2_0x1435(){const _0x5c1ac4=['test','prod','1030325GjsFof','d4wQ7dzEjYPsgVbKnYei','463902rSYXCX','9488dqusAn','556344WDXYSP','jjb-assembly-java','2492668XJQeBv','7V-YUxhmh51Mdhgx4rq4','FqNrmFAgrxasMrbbjvq9','now','FT3pKzxpRynFkmddJ9Bs','snBxJ2i5kYarGGcsojhY','3815826SSvBbt','GIT_TEMP_DIR','11007MJDVzQ','jjb-assembly-','GIT_HOST','tmpdir','API_HOST','9hDPRJa','http://192.168.1.242:10985','GIT_JAVA_ENV_JSON','e9njpBd1nS_LREN8GFpR','2332746vzjAkH','TEMPLATE_FOLDER','hLqARY89CN6fUD3yg4NL','http://120.26.210.58:8088','dev','CLOUD_PROJECT'];a2_0x1435=function(){return _0x5c1ac4;};return a2_0x1435();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a3_0x1da6f7=a3_0xed81;function a3_0x3e18(){const _0x56a134=['path','【jjb-cmd】:install命令执行完成,用时','compressing','21807RtCtiu','readdirSync','925AXpZJW','202ZorTGe','join','506523HxCDNh','.idea','373240YrSesi','forEach','name','src\x5c','1064280hhplxg','now','./config','push','package.json','createWriteStream','installTarget','filter','1.0.0','jjb-common-lib','setting.json','rmdirSync','includes','compress','unlinkSync','log','existsSync','resolve','length','installResources','zip','find','index.js','pure_name','_zip','mkdirSync','node_modules','4qPGHFP','uncompress','946630zMRmAZ','exports','request','import_list','exit','932394gVrapB','.gitignore','map','450rqbCNA'];a3_0x3e18=function(){return _0x56a134;};return a3_0x3e18();}function a3_0xed81(_0x12f459,_0x459d65){const _0x3e18ae=a3_0x3e18();return a3_0xed81=function(_0xed8112,_0x436fe4){_0xed8112=_0xed8112-0x1da;let _0x575aa3=_0x3e18ae[_0xed8112];return _0x575aa3;},a3_0xed81(_0x12f459,_0x459d65);}(function(_0x566e3a,_0xcc5242){const _0x141742=a3_0xed81,_0xa3418d=_0x566e3a();while(!![]){try{const _0x459aa7=-parseInt(_0x141742(0x202))/0x1*(-parseInt(_0x141742(0x203))/0x2)+parseInt(_0x141742(0x205))/0x3+-parseInt(_0x141742(0x1f2))/0x4*(parseInt(_0x141742(0x1f4))/0x5)+parseInt(_0x141742(0x1f9))/0x6+-parseInt(_0x141742(0x207))/0x7+-parseInt(_0x141742(0x20b))/0x8+parseInt(_0x141742(0x200))/0x9*(parseInt(_0x141742(0x1fc))/0xa);if(_0x459aa7===_0xcc5242)break;else _0xa3418d['push'](_0xa3418d['shift']());}catch(_0x48bff8){_0xa3418d['push'](_0xa3418d['shift']());}}}(a3_0x3e18,0x24deb));const fs=require('fs'),path=require(a3_0x1da6f7(0x1fd)),request=require(a3_0x1da6f7(0x1f6)),compressing=require(a3_0x1da6f7(0x1ff)),{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('./tools'),{TEMPLATE_FOLDER}=require(a3_0x1da6f7(0x20d)),start_time=Date['now']();module[a3_0x1da6f7(0x1f5)]=()=>{const _0x440790=a3_0x1da6f7,_0x552ce6=path[_0x440790(0x1e8)]('./'),_0x154c04=[_0x552ce6,_0x440790(0x20a)][_0x440790(0x204)]('\x5c'),_0x441e65=[_0x552ce6,_0x440790(0x1f1)]['join']('\x5c'),_0x3df271=[_0x552ce6,_0x440790(0x1db)][_0x440790(0x204)]('\x5c');if(f_scan_jjb_config_json(_0x552ce6)){const _0x1aaeca=f_scan_jjb_config_json_rules(_0x552ce6);_0x1aaeca[_0x440790(0x1dd)]===_0x440790(0x1f1)?!fs[_0x440790(0x1e7)](_0x441e65)?(console['log']('【Error】:安装失败,node_modules目录不存在。'),process[_0x440790(0x1f8)](0x0)):console[_0x440790(0x1e6)]('【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。'):!fs[_0x440790(0x1e7)](_0x154c04)&&(console['log']('【Error】:安装失败,src目录不存在。'),process[_0x440790(0x1f8)](0x0));fs[_0x440790(0x1f0)](TEMPLATE_FOLDER),f_pull_git_repository(_0x1aaeca[_0x440790(0x1ea)])[_0x440790(0x1fb)](_0x11ee7f=>{const _0x13b1aa=_0x440790,_0x4703b4=fs[_0x13b1aa(0x1dc)](_0x11ee7f['path']);request(_0x11ee7f['repository'])['pipe'](_0x4703b4)['on']('close',()=>{const _0x31a208=_0x13b1aa;fs[_0x31a208(0x1f0)](_0x11ee7f['compress']),compressing[_0x31a208(0x1eb)][_0x31a208(0x1f3)](_0x11ee7f[_0x31a208(0x1fd)],_0x11ee7f[_0x31a208(0x1e4)]);});});const _0x2ad9c9=setInterval(()=>{const _0x506574=_0x440790,_0x4f96a3=fs[_0x506574(0x201)](TEMPLATE_FOLDER),_0x4e193f=_0x4f96a3[_0x506574(0x1de)](_0x571227=>_0x1aaeca[_0x506574(0x1ea)][_0x506574(0x1fb)](_0x2edf7d=>_0x2edf7d[_0x506574(0x209)]+'_zip')['includes'](_0x571227));if(_0x4e193f[_0x506574(0x1e9)]===_0x1aaeca[_0x506574(0x1ea)][_0x506574(0x1e9)]){clearInterval(_0x2ad9c9);const _0x40df3d=[];_0x4e193f[_0x506574(0x208)](_0x295dde=>{const _0x507942=_0x506574,_0x443e03=[TEMPLATE_FOLDER,_0x295dde][_0x507942(0x204)]('\x5c');fs[_0x507942(0x201)](_0x443e03)[_0x507942(0x208)](_0x38fce8=>_0x40df3d[_0x507942(0x1da)]({'name':_0x295dde,'path':[_0x443e03,_0x38fce8][_0x507942(0x204)]('\x5c'),'pure_name':_0x295dde['replace'](/_zip$/,''),'import_list':_0x1aaeca[_0x507942(0x1ea)][_0x507942(0x1ec)](_0x5acf82=>_0x5acf82['name']+_0x507942(0x1ef)===_0x295dde)['importList']}));}),_0x40df3d['forEach'](_0x5e10e4=>{const _0x1ac269=_0x506574,_0x4abbe7=_0x5e10e4[_0x1ac269(0x1ee)],_0x16931f=_0x5e10e4[_0x1ac269(0x1f7)],_0x58da65=[_0x5e10e4[_0x1ac269(0x1fd)],_0x1ac269(0x206)][_0x1ac269(0x204)]('//'),_0x5ed9bb=[_0x5e10e4[_0x1ac269(0x1fd)],_0x1ac269(0x1fa)]['join']('//');fs[_0x1ac269(0x1e7)](_0x58da65)&&(f_rm_rf(_0x58da65),fs[_0x1ac269(0x1e2)](_0x58da65));fs[_0x1ac269(0x1e7)](_0x5ed9bb)&&fs[_0x1ac269(0x1e5)](_0x5ed9bb);_0x16931f[_0x1ac269(0x1e9)]&&fs[_0x1ac269(0x201)](_0x5e10e4[_0x1ac269(0x1fd)])[_0x1ac269(0x1de)](_0x2681f9=>!_0x16931f[_0x1ac269(0x1e3)](_0x2681f9)&&_0x2681f9!==_0x1ac269(0x1ed)&&_0x2681f9!==_0x1ac269(0x1e1))[_0x1ac269(0x208)](_0xf9d61a=>{const _0x1c4a9d=_0x1ac269,_0x10de79=_0x5e10e4[_0x1c4a9d(0x1fd)]+'\x5c'+_0xf9d61a;f_rm_rf(_0x10de79),fs[_0x1c4a9d(0x1e2)](_0x10de79);});if(_0x1aaeca[_0x1ac269(0x1dd)]==='node_modules'){const _0x211271=_0x4abbe7;fs[_0x1ac269(0x1e7)](_0x441e65+'\x5c'+_0x211271)?f_rm_rf(_0x441e65+'\x5c'+_0x211271):fs[_0x1ac269(0x1f0)](_0x441e65+'\x5c'+_0x211271),_0x211271!==_0x1ac269(0x1e0)?(f_file_copy(_0x5e10e4[_0x1ac269(0x1fd)],_0x441e65+'\x5c'+_0x211271),f_create_package_json(_0x441e65+'\x5c'+_0x211271,_0x211271,'1.0.0')):f_file_copy(_0x5e10e4[_0x1ac269(0x1fd)]+'\x5ctypes',_0x441e65+'\x5c'+_0x211271),f_update_project_package_json(_0x3df271,_0x211271,_0x1ac269(0x1df));}else _0x1aaeca[_0x1ac269(0x1dd)]==='src'&&(fs[_0x1ac269(0x1e7)](_0x154c04+_0x4abbe7)?f_rm_rf(_0x154c04+_0x4abbe7):fs[_0x1ac269(0x1f0)](_0x154c04+_0x4abbe7),f_file_copy(_0x5e10e4[_0x1ac269(0x1fd)],_0x154c04+_0x4abbe7));}),setTimeout(()=>{const _0x11533d=_0x506574;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0x12bfd1=Date[_0x11533d(0x20c)]();console[_0x11533d(0x1e6)](_0x11533d(0x1fe)+(_0x12bfd1-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x440790(0x1e6)]('【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。');};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a4_0x3c6fd5=a4_0x151b;(function(_0x3de750,_0x2a1313){const _0x19a61d=a4_0x151b,_0x3d5168=_0x3de750();while(!![]){try{const _0x5ac2da=-parseInt(_0x19a61d(0x1ea))/0x1*(-parseInt(_0x19a61d(0x205))/0x2)+-parseInt(_0x19a61d(0x1db))/0x3+-parseInt(_0x19a61d(0x1d6))/0x4+parseInt(_0x19a61d(0x214))/0x5*(parseInt(_0x19a61d(0x1de))/0x6)+parseInt(_0x19a61d(0x208))/0x7*(parseInt(_0x19a61d(0x1d4))/0x8)+parseInt(_0x19a61d(0x1f8))/0x9*(-parseInt(_0x19a61d(0x211))/0xa)+parseInt(_0x19a61d(0x1d9))/0xb;if(_0x5ac2da===_0x2a1313)break;else _0x3d5168['push'](_0x3d5168['shift']());}catch(_0x49a1c8){_0x3d5168['push'](_0x3d5168['shift']());}}}(a4_0x1a70,0xe2ff9));function a4_0x151b(_0x3b5c58,_0x54a5b8){const _0x1a705a=a4_0x1a70();return a4_0x151b=function(_0x151b49,_0xd7abb3){_0x151b49=_0x151b49-0x1d4;let _0x16fb4c=_0x1a705a[_0x151b49];return _0x16fb4c;},a4_0x151b(_0x3b5c58,_0x54a5b8);}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require('./config');exports[a4_0x3c6fd5(0x1fd)]=function(_0x197b41){const _0x5c0983=a4_0x3c6fd5;if(fs[_0x5c0983(0x1f9)](_0x197b41)){const _0x5b0923=fs[_0x5c0983(0x212)](_0x197b41);for(let _0x12bae7=0x0;_0x12bae7<_0x5b0923[_0x5c0983(0x1e8)];_0x12bae7++){const _0xb3fb1d=_0x5b0923[_0x12bae7],_0x2c924c=_0x197b41+'/'+_0xb3fb1d;fs['statSync'](_0x2c924c)[_0x5c0983(0x1e7)]()?(exports['f_rm_rf'](_0x2c924c),fs['rmdirSync'](_0x2c924c)):fs['unlinkSync'](_0x2c924c);}}},exports['f_pull_git_repository']=function(_0x57253e=[]){const _0x402e19=a4_0x3c6fd5;return _0x57253e[_0x402e19(0x215)](_0x45a85e=>{const _0x23fd53=_0x402e19,_0x3496e8=CLOUD_PROJECT[_0x45a85e[_0x23fd53(0x1e2)]]||undefined,_0x254393=os[_0x23fd53(0x1dd)]();return{'path':_0x254393+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x45a85e[_0x23fd53(0x1e2)]+_0x23fd53(0x1fe),'compress':_0x254393+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x45a85e[_0x23fd53(0x1e2)]+_0x23fd53(0x20e),'repository':GIT_HOST+'/api/v4/projects/'+_0x3496e8['projectId']+'/repository/archive.zip?private_token='+_0x3496e8[_0x23fd53(0x1df)]+_0x23fd53(0x1ec)};});},exports['f_scan_jjb_config_json']=function(_0x5e4b1e){const _0x3d603a=a4_0x3c6fd5;return fs[_0x3d603a(0x1f9)](_0x5e4b1e+_0x3d603a(0x1da));},exports[a4_0x3c6fd5(0x1fc)]=function(_0x23a62a){const _0x414e51=a4_0x3c6fd5;let _0x17b6a4={};try{_0x17b6a4=JSON['parse'](fs['readFileSync'](_0x23a62a+_0x414e51(0x1da))[_0x414e51(0x1f7)]());}catch(_0x4e0927){console['log'](_0x414e51(0x20c)),process[_0x414e51(0x1ff)](0x0);}!('projectType'in _0x17b6a4)&&(console[_0x414e51(0x20b)]('【Error】:[jjb.config.json]文件配置无效,需要projectType属性。'),process[_0x414e51(0x1ff)](0x0));!(_0x414e51(0x1fb)in _0x17b6a4)&&(console[_0x414e51(0x20b)](_0x414e51(0x1f5)),process[_0x414e51(0x1ff)](0x0));!(_0x414e51(0x1d8)in _0x17b6a4)&&(console[_0x414e51(0x20b)]('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process[_0x414e51(0x1ff)](0x0));typeof _0x17b6a4['projectType']!==_0x414e51(0x204)&&(console[_0x414e51(0x20b)](_0x414e51(0x1f0)),process[_0x414e51(0x1ff)](0x0));![_0x414e51(0x1e6),_0x414e51(0x1e0),_0x414e51(0x203),_0x414e51(0x1e9)]['includes'](_0x17b6a4[_0x414e51(0x1fa)])&&(console[_0x414e51(0x20b)]('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process[_0x414e51(0x1ff)](0x0));typeof _0x17b6a4[_0x414e51(0x1fb)]!==_0x414e51(0x204)&&(console[_0x414e51(0x20b)](_0x414e51(0x1eb)),process[_0x414e51(0x1ff)](0x0));![_0x414e51(0x210),_0x414e51(0x20a)]['includes'](_0x17b6a4[_0x414e51(0x1fb)])&&(console[_0x414e51(0x20b)]('【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。'),process[_0x414e51(0x1ff)](0x0));!Array[_0x414e51(0x20d)](_0x17b6a4[_0x414e51(0x1d8)])&&(console[_0x414e51(0x20b)](_0x414e51(0x1f4)),process['exit'](0x0));_0x17b6a4[_0x414e51(0x1d8)][_0x414e51(0x1e8)]===0x0&&(console['log'](_0x414e51(0x216)),process[_0x414e51(0x1ff)](0x0));const _0x262e21=exports[_0x414e51(0x1d5)](_0x17b6a4[_0x414e51(0x1d8)]);return _0x262e21['map'](_0x2b7605=>_0x2b7605[_0x414e51(0x1e2)])[_0x414e51(0x1dc)](_0x5e0685=>![_0x414e51(0x1e3),_0x414e51(0x1ee),_0x414e51(0x20f),_0x414e51(0x1f2),_0x414e51(0x1f3),_0x414e51(0x202)]['includes'](_0x5e0685))['length']!==0x0&&(console[_0x414e51(0x20b)](_0x414e51(0x1e4)),process['exit'](0x0)),_0x17b6a4['installResources']=_0x262e21,_0x17b6a4;},exports['f_create_package_json']=function(_0x4d60c8,_0x1e9f72,_0x3442b5){const _0x516c5a=a4_0x3c6fd5;fs[_0x516c5a(0x1ed)](_0x4d60c8+'\x5cpackage.json',_0x516c5a(0x206)+_0x1e9f72+_0x516c5a(0x200)+_0x3442b5+'\x22,\x22main\x22:\x20\x22index.js\x22}');},exports[a4_0x3c6fd5(0x1d5)]=function(_0x4a493e=[]){const _0x5e87f4=a4_0x3c6fd5,_0x3fa2b9=[];return Array[_0x5e87f4(0x20d)](_0x4a493e)&&_0x4a493e[_0x5e87f4(0x201)](_0x53793f=>{const _0x5a9f6b=_0x5e87f4;if(Array['isArray'](_0x53793f)){const [_0x5696a3,_0x5d539c=[]]=_0x53793f;_0x3fa2b9[_0x5a9f6b(0x1f6)]({'name':_0x5696a3,'importList':_0x5d539c});}else _0x3fa2b9['push']({'name':_0x53793f,'importList':[]});}),_0x3fa2b9;},exports[a4_0x3c6fd5(0x207)]=function(_0x5dc50e,_0x47feb9,_0x3a98c3){const _0x52a3fe=a4_0x3c6fd5,_0x2aaadb=JSON[_0x52a3fe(0x209)](fs[_0x52a3fe(0x1f1)](_0x5dc50e)[_0x52a3fe(0x1f7)]());_0x2aaadb[_0x52a3fe(0x1d7)][_0x47feb9]=_0x3a98c3,fs[_0x52a3fe(0x1ed)](_0x5dc50e,JSON[_0x52a3fe(0x1e1)](_0x2aaadb,null,0x2));},exports[a4_0x3c6fd5(0x213)]=function(_0x29c429,_0x28a40e){const _0x1729fa=a4_0x3c6fd5;fs[_0x1729fa(0x212)](_0x29c429)['forEach'](_0x1fa77b=>{const _0x5d69d6=_0x1729fa,_0x30461f=_0x29c429+'\x5c'+_0x1fa77b,_0x57225e=_0x28a40e+'\x5c'+_0x1fa77b;fs['statSync'](_0x30461f)['isDirectory']()?(fs['mkdirSync'](_0x57225e),exports[_0x5d69d6(0x213)](_0x30461f,_0x57225e)):fs[_0x5d69d6(0x1ed)](_0x57225e,fs['readFileSync'](_0x30461f)['toString']());});},exports[a4_0x3c6fd5(0x1ef)]=function(_0x154b40=[],_0x10c69f){const _0x12a1c9=a4_0x3c6fd5;_0x154b40[_0x12a1c9(0x201)](_0x3a670d=>{const _0x526e38=_0x12a1c9,_0x10727e=_0x10c69f+_0x3a670d['path'];if(fs['existsSync'](_0x10727e)){let _0x1cc25f=fs[_0x526e38(0x1f1)](_0x10727e)[_0x526e38(0x1f7)]();_0x3a670d[_0x526e38(0x1e5)][_0x526e38(0x201)](_0x12e8ba=>{const _0x31b159=_0x526e38;_0x1cc25f=_0x1cc25f[_0x31b159(0x1e5)](_0x12e8ba[0x0],_0x12e8ba[0x1]);}),fs[_0x526e38(0x1ed)](_0x10727e,_0x1cc25f);}});};function a4_0x1a70(){const _0x4c1c17=['jjb-common-lib','node_modules','259340iTvGcN','readdirSync','f_file_copy','10UeFNmt','map','【Error】:[jjb.config.json.installResources]无资源。','264AnVIcf','f_resolve_install_resources','6072964zGQrTM','dependencies','installResources','14563560MaGLEF','\x5cjjb.config.json','4194855PhRdxf','filter','tmpdir','4689486gUCMpI','token','spa','stringify','name','jjb-common','【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>。','replace','multi','isDirectory','length','micro-spa','1yqpLmb','【Error】:[jjb.config.json.installTarget]类型是一个string。','&ref=master','writeFileSync','jjb-dva-runtime','f_content_replace','【Error】:[jjb.config.json.projectType]类型是一个string。','readFileSync','jjb-common-decorator','react-admin-component','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','push','toString','387OGQVDG','existsSync','projectType','installTarget','f_scan_jjb_config_json_rules','f_rm_rf','.zip','exit','\x22,\x22version\x22:\x22','forEach','vue-unisass-component','uniapp','string','3136130ShIEBG','{\x22name\x22:\x22','f_update_project_package_json','107394IGWIpS','parse','src','log','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','isArray','_zip'];a4_0x1a70=function(){return _0x4c1c17;};return a4_0x1a70();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a5_0x38df66=a5_0xf80f;function a5_0x446b(){const _0x84b66a=['resolve','14OLKSXn','includes','2044132gHRmak','exit','existsSync','9hlYosT','6177795gHVCTa','/.git','Finish!','1219182kJrXso','install\x20husky\x20please\x20wait....','394897bJotDK','npm\x20install','log','npm','execSync','6hoePKW','2495622VVDYKM','yarn','path','npx\x20husky\x20install','install\x20modules\x20please\x20wait....','5392488CKIwkm','git\x20init\x20please\x20wait....','28822320lCzpSH'];a5_0x446b=function(){return _0x84b66a;};return a5_0x446b();}function a5_0xf80f(_0x5652eb,_0x105c17){const _0x446bd0=a5_0x446b();return a5_0xf80f=function(_0xf80f2,_0x40da33){_0xf80f2=_0xf80f2-0xb5;let _0xafcaa0=_0x446bd0[_0xf80f2];return _0xafcaa0;},a5_0xf80f(_0x5652eb,_0x105c17);}(function(_0x341478,_0xf4e683){const _0xfdd772=a5_0xf80f,_0x400208=_0x341478();while(!![]){try{const _0x14772c=parseInt(_0xfdd772(0xb6))/0x1+parseInt(_0xfdd772(0xbb))/0x2*(parseInt(_0xfdd772(0xce))/0x3)+parseInt(_0xfdd772(0xc7))/0x4+parseInt(_0xfdd772(0xcb))/0x5+parseInt(_0xfdd772(0xbc))/0x6*(parseInt(_0xfdd772(0xc5))/0x7)+-parseInt(_0xfdd772(0xc1))/0x8*(parseInt(_0xfdd772(0xca))/0x9)+-parseInt(_0xfdd772(0xc3))/0xa;if(_0x14772c===_0xf4e683)break;else _0x400208['push'](_0x400208['shift']());}catch(_0x5ae8db){_0x400208['push'](_0x400208['shift']());}}}(a5_0x446b,0x9b55c));const child_process=require('child_process'),path=require(a5_0x38df66(0xbe)),fs=require('fs');module['exports']=_0x4e5981=>{const _0x162706=a5_0x38df66;![_0x162706(0xb9),'yarn'][_0x162706(0xc6)](_0x4e5981)&&(console[_0x162706(0xb8)]('【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]'),process[_0x162706(0xc8)](0x0));const _0x1bdbff=path[_0x162706(0xc4)]('./');console[_0x162706(0xb8)](_0x162706(0xc0)),child_process['execSync'](_0x4e5981===_0x162706(0xbd)?'yarn':_0x162706(0xb7),{'cwd':_0x1bdbff}),!fs[_0x162706(0xc9)](_0x1bdbff+_0x162706(0xcc))&&(console[_0x162706(0xb8)](_0x162706(0xc2)),child_process[_0x162706(0xba)]('git\x20init',{'cwd':_0x1bdbff})),console[_0x162706(0xb8)](_0x162706(0xb5)),child_process[_0x162706(0xba)](_0x162706(0xbf),{'cwd':_0x1bdbff}),console[_0x162706(0xb8)](_0x162706(0xcd));};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a6_0x2720(_0x3775ce,_0x5343b6){const _0x206e99=a6_0x206e();return a6_0x2720=function(_0x2720e6,_0x486659){_0x2720e6=_0x2720e6-0x73;let _0x3819e=_0x206e99[_0x2720e6];return _0x3819e;},a6_0x2720(_0x3775ce,_0x5343b6);}function a6_0x206e(){const _0x2e8f7a=['\x5cthumbnail.png','ReactNode(','1719179uiElGe','code','【Error】:no\x20auth\x20login','transformSync','\x5ccomponent.config.json','@babel/core/lib/gensync-utils/async','forEach','replace','stdin','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','thumbnail_base64','createInterface','readline','@babel/preset-react','existsSync','../../../.auth','2165871VcsNhW','readFileSync','substring','catch','no\x20message','platform','3777084oEiaLI','status','@babel/core','369128oBqAhf','\x5cREADME.md','hostname','554736NXhYEm','npm\x20run\x20build:production','exit','log','\x5cpackage.json','arch','child_process','4773180vuHdAX','411864hkLUlj','execSync','【Error】:组件根目录必须包含thumbnail.png缩略图片','Auth\x20NetWork\x20Fail!','exports','/yarn.lock','resolve','length','toString','data','【Error】:请必须包含component.config.json组件配置文件','发布失败!根目录缺少‘package.json’文件,无法完成发布。','/api/file/publish','网络异常。','file:/','yarn\x20build:production','package_content','Auth\x20Fail!','base64','axios','88NEhtgS','split','then','component_config_content','package_version','/api/auth','Please\x20wait,\x20build\x20...','match','message','\x5cdist\x5cindex.js','join','../cmd.install/config'];a6_0x206e=function(){return _0x2e8f7a;};return a6_0x206e();}const a6_0x260172=a6_0x2720;(function(_0x22b8b3,_0x29b01e){const _0x4cf366=a6_0x2720,_0x577ecf=_0x22b8b3();while(!![]){try{const _0x145715=parseInt(_0x4cf366(0x74))/0x1+parseInt(_0x4cf366(0x77))/0x2+parseInt(_0x4cf366(0xb1))/0x3+parseInt(_0x4cf366(0xb7))/0x4+parseInt(_0x4cf366(0x7e))/0x5+parseInt(_0x4cf366(0x7f))/0x6+-parseInt(_0x4cf366(0xa1))/0x7*(parseInt(_0x4cf366(0x93))/0x8);if(_0x145715===_0x29b01e)break;else _0x577ecf['push'](_0x577ecf['shift']());}catch(_0x401074){_0x577ecf['push'](_0x577ecf['shift']());}}}(a6_0x206e,0x9ae45));const path=require('path'),fs=require('fs'),os=require('os'),axios=require(a6_0x260172(0x92)),readline=require(a6_0x260172(0xad)),io=readline[a6_0x260172(0xac)]({'input':process[a6_0x260172(0xa9)],'output':process['stdout']}),child_process=require(a6_0x260172(0x7d)),{API_HOST}=require(a6_0x260172(0x9e)),{onFirstPause}=require(a6_0x260172(0xa6));module[a6_0x260172(0x83)]=_0x5d420c=>{const _0x5a3bdb=a6_0x260172,_0x5bdd48=path[_0x5a3bdb(0x9d)](__dirname,_0x5a3bdb(0xb0));!fs[_0x5a3bdb(0xaf)](_0x5bdd48)&&(console[_0x5a3bdb(0x7a)](_0x5a3bdb(0xa3)),process[_0x5a3bdb(0x79)](0x0));const [_0x2bc8a4,_0x32d5b6]=fs[_0x5a3bdb(0xb2)](_0x5bdd48)['toString']()[_0x5a3bdb(0x94)]('/');axios['post'](API_HOST+_0x5a3bdb(0x98),{'username':_0x2bc8a4,'password':_0x32d5b6})[_0x5a3bdb(0x95)](_0x3a7f69=>{const _0x25ddc3=_0x5a3bdb;if(_0x3a7f69['data'][_0x25ddc3(0xb8)]){const _0x5107cc=path[_0x25ddc3(0x85)]('./');console[_0x25ddc3(0x7a)](_0x25ddc3(0x99));fs[_0x25ddc3(0xaf)](_0x5107cc+_0x25ddc3(0x84))?child_process[_0x25ddc3(0x80)](_0x25ddc3(0x8e),{'cwd':_0x5107cc}):child_process['execSync'](_0x25ddc3(0x78),{'cwd':_0x5107cc});const _0x1b4512=_0x5107cc+_0x25ddc3(0x9c),_0x3abdd6=_0x5107cc+_0x25ddc3(0x7b),_0x36b264=_0x5107cc+_0x25ddc3(0x75),_0x2c1b04=_0x5107cc+_0x25ddc3(0xa5),_0x22db43=_0x5107cc+_0x25ddc3(0x9f),_0x1f417a=[os[_0x25ddc3(0x76)](),os[_0x25ddc3(0xb6)](),os[_0x25ddc3(0x7c)](),new Date()['toString']()],_0xec8d88=JSON['parse'](fs[_0x25ddc3(0xb2)](path['join'](__dirname,'../../../package.json'))[_0x25ddc3(0x87)]()),{version:_0x4afd90}=_0xec8d88,_0x3790c1={'username':_0x2bc8a4,'cmd_version':_0x4afd90,'hostname':os['hostname'](),'platform':os['platform']()};if(fs[_0x25ddc3(0xaf)](_0x3abdd6)){if(fs[_0x25ddc3(0xaf)](_0x1b4512)){_0x3790c1[_0x25ddc3(0x97)]=_0x5d420c?_0x5d420c:0x0,_0x3790c1[_0x25ddc3(0x8f)]=fs[_0x25ddc3(0xb2)](_0x1b4512)[_0x25ddc3(0x87)]();fs['existsSync'](_0x36b264)?_0x3790c1['readme_content']=fs[_0x25ddc3(0xb2)](_0x36b264)[_0x25ddc3(0x87)]():(console['log']('【Error】:请必须包含README.md说明文件'),process['exit'](0x0));if(!fs['existsSync'](_0x22db43))console[_0x25ddc3(0x7a)](_0x25ddc3(0x81)),process[_0x25ddc3(0x79)](0x0);else{const _0x1e0c9c=fs['readFileSync'](_0x22db43),_0x45c260=Buffer['from'](_0x1e0c9c)[_0x25ddc3(0x87)](_0x25ddc3(0x91));_0x3790c1[_0x25ddc3(0xab)]=_0x45c260;}if(fs[_0x25ddc3(0xaf)](_0x2c1b04)){let _0x534209=fs[_0x25ddc3(0xb2)](_0x2c1b04)[_0x25ddc3(0x87)]();_0x534209[_0x25ddc3(0x9a)](/(file:\/\/).*?(js)/img)&&_0x534209['match'](/(file:\/\/).*?(js)/img)[_0x25ddc3(0xa7)](_0x580843=>{const _0x44db43=_0x25ddc3,_0x79e31=_0x580843[_0x44db43(0xa8)](_0x44db43(0x8d),'')[_0x44db43(0xa8)](/\//g,'\x5c');let _0x5bba3e=fs[_0x44db43(0xb2)](''+_0x5107cc+_0x79e31)[_0x44db43(0x87)]();_0x5bba3e='{\x20'+_0x5bba3e['replace'](/export.*?({)/img,''),_0x534209=_0x534209['replace'](_0x580843,_0x5bba3e);}),_0x534209['match'](/(ReactNode).*?(\))/img)&&_0x534209[_0x25ddc3(0x9a)](/(ReactNode).*?(\))/img)[_0x25ddc3(0xa7)](_0x50dd02=>{const _0x3b9801=_0x25ddc3,_0x687167=_0x50dd02[_0x3b9801(0xa8)](_0x3b9801(0xa0),''),_0x43a901=require(_0x3b9801(0x73))[_0x3b9801(0xa4)](_0x687167[_0x3b9801(0xb3)](0x0,_0x687167[_0x3b9801(0x86)]-0x1),{'presets':[_0x3b9801(0xae)]}),_0x1b1aa8=_0x43a901[_0x3b9801(0xa2)][_0x3b9801(0xa8)](/\/\*#__PURE__\*\//g,'');_0x534209=_0x534209[_0x3b9801(0xa8)](_0x50dd02,_0x1b1aa8);}),_0x3790c1[_0x25ddc3(0x96)]=_0x534209;}else console[_0x25ddc3(0x7a)](_0x25ddc3(0x89)),process[_0x25ddc3(0x79)](0x0);io['question']('请输入此次提交信息,按Enter确认:',function(_0x5cf959){const _0x167cab=_0x25ddc3;_0x3790c1[_0x167cab(0x9b)]=_0x5cf959||_0x167cab(0xb5),axios['post'](API_HOST+_0x167cab(0x8b),_0x3790c1)[_0x167cab(0x95)](_0x26d8b2=>{const _0x14b014=_0x167cab;console[_0x14b014(0x7a)](_0x26d8b2[_0x14b014(0x88)][_0x14b014(0x9b)]),process[_0x14b014(0x79)](0x0);})[_0x167cab(0xb4)](_0x5ace8b=>{const _0x4343bd=_0x167cab;console[_0x4343bd(0x7a)](_0x5ace8b),console[_0x4343bd(0x7a)](_0x4343bd(0x8c)),process[_0x4343bd(0x79)](0x0);});});}else console[_0x25ddc3(0x7a)](_0x25ddc3(0xaa)),process[_0x25ddc3(0x79)](0x0);}else console[_0x25ddc3(0x7a)](_0x25ddc3(0x8a)),process[_0x25ddc3(0x79)](0x0);}else console[_0x25ddc3(0x7a)](_0x25ddc3(0x90));})['catch'](_0x345230=>{const _0x48a39a=_0x5a3bdb;console[_0x48a39a(0x7a)](_0x345230),console[_0x48a39a(0x7a)](_0x48a39a(0x82));});};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a7_0x1dd4ad=a7_0x4bac;(function(_0x26bd9b,_0x5c0591){const _0x253ce9=a7_0x4bac,_0x186d0f=_0x26bd9b();while(!![]){try{const _0x3c9649=-parseInt(_0x253ce9(0x14d))/0x1*(parseInt(_0x253ce9(0x150))/0x2)+-parseInt(_0x253ce9(0x131))/0x3+parseInt(_0x253ce9(0x146))/0x4*(parseInt(_0x253ce9(0x12f))/0x5)+-parseInt(_0x253ce9(0x14e))/0x6*(parseInt(_0x253ce9(0x12e))/0x7)+parseInt(_0x253ce9(0x147))/0x8+-parseInt(_0x253ce9(0x140))/0x9+-parseInt(_0x253ce9(0x137))/0xa*(-parseInt(_0x253ce9(0x13c))/0xb);if(_0x3c9649===_0x5c0591)break;else _0x186d0f['push'](_0x186d0f['shift']());}catch(_0x181c52){_0x186d0f['push'](_0x186d0f['shift']());}}}(a7_0x180f,0xc0847));function a7_0x180f(){const _0x251e67=['split','message','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','2751HmakQR','7735IeGNyT','parse','3822693kBUiEx','data','exit','发布失败!根目录缺少‘package.json’文件,无法完成发布。','网络异常。','exports','970IDoscl','arch','【Error】:no\x20auth\x20login','readFileSync','existsSync','335621rtzcnV','../cmd.install/config','\x5cdist\x5cindex.js','../../../.auth','6135687tLiLeb','status','catch','platform','networkInterfaces','\x5cpackage.json','852gmtCQB','5688992BQnBZi','push','join','path','log','stringify','217929LyYtPx','5862jUuJmH','/api/auth','8SkqKFF','toString','post','then'];a7_0x180f=function(){return _0x251e67;};return a7_0x180f();}const path=require(a7_0x1dd4ad(0x14a)),fs=require('fs'),os=require('os'),axios=require('axios'),{API_HOST}=require(a7_0x1dd4ad(0x13d));function a7_0x4bac(_0x4fb82e,_0x2c051f){const _0x180ff3=a7_0x180f();return a7_0x4bac=function(_0x4bac61,_0x9324d7){_0x4bac61=_0x4bac61-0x129;let _0x5bbbaf=_0x180ff3[_0x4bac61];return _0x5bbbaf;},a7_0x4bac(_0x4fb82e,_0x2c051f);}module[a7_0x1dd4ad(0x136)]=_0x28cde5=>{const _0x21ad15=a7_0x1dd4ad,_0x40f5d8=path[_0x21ad15(0x149)](__dirname,_0x21ad15(0x13f));!fs[_0x21ad15(0x13b)](_0x40f5d8)&&(console['log'](_0x21ad15(0x139)),process[_0x21ad15(0x133)](0x0));const [_0x458b89,_0x1ef2fb]=fs['readFileSync'](_0x40f5d8)[_0x21ad15(0x151)]()[_0x21ad15(0x12b)]('/');axios[_0x21ad15(0x129)](API_HOST+_0x21ad15(0x14f),{'username':_0x458b89,'password':_0x1ef2fb})[_0x21ad15(0x12a)](_0x50858d=>{const _0x176d22=_0x21ad15;if(_0x50858d[_0x176d22(0x132)][_0x176d22(0x141)]){const _0x474620=path['resolve']('./'),_0x165078=_0x474620+_0x176d22(0x13e),_0x16b6ed=_0x474620+_0x176d22(0x145),_0x4aa35f=[os['hostname'](),os[_0x176d22(0x143)](),os[_0x176d22(0x138)](),new Date()[_0x176d22(0x151)](),JSON[_0x176d22(0x14c)](os[_0x176d22(0x144)](),null,'\x09')];if(fs[_0x176d22(0x13b)](_0x16b6ed)){if(fs[_0x176d22(0x13b)](_0x165078)){const _0x6aaa29=JSON[_0x176d22(0x130)](fs[_0x176d22(0x13a)](_0x16b6ed)['toString']()),{name:_0x16b3d3,version:_0x16cd82}=_0x6aaa29;_0x4aa35f[_0x176d22(0x148)](JSON[_0x176d22(0x14c)](_0x6aaa29)),axios['post'](API_HOST+'/api/file/push',{'username':_0x458b89,'log_text':_0x4aa35f[_0x176d22(0x149)]('\x0a'),'package_name':_0x16b3d3,'package_version':_0x28cde5?_0x28cde5:_0x16cd82,'package_content':fs[_0x176d22(0x13a)](_0x165078)[_0x176d22(0x151)]()})['then'](_0x5e7b7d=>{const _0x3b5fac=_0x176d22;console['log'](_0x5e7b7d[_0x3b5fac(0x132)][_0x3b5fac(0x12c)]),process[_0x3b5fac(0x133)](0x0);})[_0x176d22(0x142)](_0x2e2ba1=>{const _0x5b0e01=_0x176d22;console[_0x5b0e01(0x14b)](_0x2e2ba1),console[_0x5b0e01(0x14b)](_0x5b0e01(0x135)),process[_0x5b0e01(0x133)](0x0);});}else console[_0x176d22(0x14b)](_0x176d22(0x12d)),process[_0x176d22(0x133)](0x0);}else console[_0x176d22(0x14b)](_0x176d22(0x134)),process[_0x176d22(0x133)](0x0);}else console[_0x176d22(0x14b)]('Auth\x20Fail!');})[_0x21ad15(0x142)](_0x2be966=>{console['log']('Auth\x20NetWork\x20Fail!');});};
|
package/src/new/cmd.push/java.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a8_0x43eb(_0x302a83,_0x2b579e){const _0x3494c0=a8_0x3494();return a8_0x43eb=function(_0x43ebc7,_0x226c53){_0x43ebc7=_0x43ebc7-0x16c;let _0x445506=_0x3494c0[_0x43ebc7];return _0x445506;},a8_0x43eb(_0x302a83,_0x2b579e);}const a8_0x4a38db=a8_0x43eb;(function(_0x3279a4,_0x54c498){const _0x13a979=a8_0x43eb,_0x1fa10c=_0x3279a4();while(!![]){try{const _0x4dce91=-parseInt(_0x13a979(0x18c))/0x1*(-parseInt(_0x13a979(0x18d))/0x2)+-parseInt(_0x13a979(0x19a))/0x3+parseInt(_0x13a979(0x172))/0x4*(parseInt(_0x13a979(0x16e))/0x5)+-parseInt(_0x13a979(0x194))/0x6+-parseInt(_0x13a979(0x195))/0x7+parseInt(_0x13a979(0x17b))/0x8+-parseInt(_0x13a979(0x16f))/0x9*(-parseInt(_0x13a979(0x198))/0xa);if(_0x4dce91===_0x54c498)break;else _0x1fa10c['push'](_0x1fa10c['shift']());}catch(_0x400a75){_0x1fa10c['push'](_0x1fa10c['shift']());}}}(a8_0x3494,0x1b806));const fs=require('fs'),os=require('os'),path=require(a8_0x4a38db(0x197)),child_process=require(a8_0x4a38db(0x19e)),{CopyFolder,DeleteDirAllFile}=require(a8_0x4a38db(0x17f)),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,API_HOST}=require(a8_0x4a38db(0x170)),axios=require('axios');function a8_0x3494(){const _0x25f509=['parse','toString','exit','existsSync','git\x20push\x20-f','Auth\x20NetWork\x20Fail!','catch','git\x20commit\x20-m\x20','log','Auth\x20Fail!','exports','data','673zHAJxl','208qvBiAC','【Error】:no\x20setting\x20git','git','status','mkdirSync','yarn\x20build:','tmpdir','854988dHpOty','1166039qhyzkJ','/api/auth','path','70LnyfyU','post','359739NWUUwY','git\x20clone\x20','Git\x20Add\x20Done,git\x20commit,please\x20wait...','【Error】:no\x20auth\x20login','child_process','then','execSync',',please\x20wait...','【warning】:no\x20commit,git\x20push,please\x20wait...','【Error】:参数传递错误','Git\x20Pull\x20Done,yarn\x20build:','\x5cjjb.config.json','614415eAGSRH','404451TThUmQ','../cmd.install/config','../../../.auth','4TKbkYt','/src/main/resources/templates/','git\x20add\x20.','/node_modules','git\x20pull','length','resolve','Project\x20build\x20Done,copy\x20project,please\x20wait...','gitName','273488fxTSZu','【Error】:no\x20setting\x20gitName','Git\x20Push\x20Done!','yarn\x20install\x20Done!','../../old/util'];a8_0x3494=function(){return _0x25f509;};return a8_0x3494();}module[a8_0x4a38db(0x18a)]=arguments=>{const _0x1fcbb9=a8_0x4a38db,_0x3362de=path['join'](__dirname,_0x1fcbb9(0x171));!fs['existsSync'](_0x3362de)&&(console[_0x1fcbb9(0x188)](_0x1fcbb9(0x19d)),process['exit'](0x0));const _0x5cba60=arguments[0x1],_0x4b945c=arguments[0x2]||'no\x20message',_0x26b35d=path[_0x1fcbb9(0x178)]('./'),_0x221547=_0x26b35d+_0x1fcbb9(0x16d),_0x41b700=_0x26b35d+'\x5cdist',_0x14b30a=os[_0x1fcbb9(0x193)](),[_0x2e89d1,_0x325c94]=fs['readFileSync'](_0x3362de)[_0x1fcbb9(0x181)]()['split']('/');axios[_0x1fcbb9(0x199)](API_HOST+_0x1fcbb9(0x196),{'username':_0x2e89d1,'password':_0x325c94})[_0x1fcbb9(0x19f)](_0x9523ce=>{const _0x1e453e=_0x1fcbb9;if(_0x9523ce[_0x1e453e(0x18b)][_0x1e453e(0x190)]){if(fs[_0x1e453e(0x183)](_0x221547)){const _0x1224cb=JSON[_0x1e453e(0x180)](fs['readFileSync'](_0x221547)[_0x1e453e(0x181)]());if(_0x1224cb[_0x1e453e(0x18f)]){const _0x55de99=_0x14b30a+'/'+GIT_TEMP_JAVA;!fs[_0x1e453e(0x183)](_0x55de99)&&(fs['mkdirSync'](_0x55de99),child_process[_0x1e453e(0x1a0)](_0x1e453e(0x19b)+_0x1224cb['git'],{'cwd':_0x55de99})),_0x3adf7f(_0x55de99,_0x1224cb);}else console[_0x1e453e(0x188)](_0x1e453e(0x18e));}}else console[_0x1e453e(0x188)](_0x1e453e(0x189));})[_0x1fcbb9(0x186)](_0x41d0f9=>{const _0x22536f=_0x1fcbb9;console[_0x22536f(0x188)](_0x22536f(0x185));});arguments[_0x1fcbb9(0x177)]<0x2&&(console[_0x1fcbb9(0x188)](_0x1fcbb9(0x1a3)),process[_0x1fcbb9(0x182)](0x0));function _0x3adf7f(_0x50f5ee,_0x1ed099){const _0x41c916=_0x1fcbb9,_0x3f346d=_0x50f5ee+'/'+_0x1ed099[_0x41c916(0x17a)];!fs[_0x41c916(0x183)](_0x3f346d)&&(console[_0x41c916(0x188)](_0x41c916(0x17c)),process['exit'](0x0));child_process['execSync'](_0x41c916(0x176),{'cwd':_0x3f346d});!fs[_0x41c916(0x183)](_0x26b35d+_0x41c916(0x175))?(console[_0x41c916(0x188)]('【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...'),child_process[_0x41c916(0x1a0)]('yarn',{'cwd':_0x26b35d}),console[_0x41c916(0x188)](_0x41c916(0x17e))):console['log'](_0x41c916(0x16c)+_0x5cba60+_0x41c916(0x1a1));child_process[_0x41c916(0x1a0)](_0x41c916(0x192)+_0x5cba60,{'cwd':_0x26b35d}),console[_0x41c916(0x188)](_0x41c916(0x179));if(fs['existsSync'](_0x41b700)){const _0x2d2831=_0x3f346d+_0x41c916(0x173)+GIT_JAVA_ENV_JSON[_0x5cba60];DeleteDirAllFile(_0x2d2831,()=>{const _0x20b21f=_0x41c916;fs[_0x20b21f(0x191)](_0x2d2831),CopyFolder(_0x41b700,_0x2d2831,()=>{const _0x21a9bc=_0x20b21f;console[_0x21a9bc(0x188)]('Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...'),setTimeout(()=>{const _0x39c163=_0x21a9bc;child_process['execSync'](_0x39c163(0x174),{'cwd':_0x3f346d}),console[_0x39c163(0x188)](_0x39c163(0x19c));try{child_process[_0x39c163(0x1a0)](_0x39c163(0x187)+_0x4b945c+'\x20--no-verify',{'cwd':_0x3f346d}),console[_0x39c163(0x188)]('Git\x20Commit\x20Done,git\x20push,please\x20wait...');}catch(_0x4817c5){console[_0x39c163(0x188)](_0x39c163(0x1a2));}child_process['execSync'](_0x39c163(0x184),{'cwd':_0x3f346d}),console[_0x39c163(0x188)](_0x39c163(0x17d));},0x3e8);});});}else console[_0x41c916(0x188)]('【Error】:打包失败,没有dist目录!');}};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a9_0x48cf(){const _0xb17ea0=['includes','join','21689HArnIO','jjb.script','data','589240SIldda','12bdoPUk','exports','19677YEbeFZ','5836248bTAbZK','localDir','package.json','exit','config.js','build.js','https','【Error】:no\x20','log','utils.js','files','../cmd.install/config','\x20file,\x20available:[','1323010NzeCCu','2385551wioayO','eslint','length','prettier','All\x20Finish!','remoteDir','writeFileSync','1808742brwFuA','?v=','micro.app.package.json','.prettierrc.js','get','error'];a9_0x48cf=function(){return _0xb17ea0;};return a9_0x48cf();}const a9_0x28d7be=a9_0x3500;(function(_0x4f174d,_0x364e44){const _0x5a593b=a9_0x3500,_0x49175e=_0x4f174d();while(!![]){try{const _0x5c41f9=parseInt(_0x5a593b(0xf5))/0x1+-parseInt(_0x5a593b(0xf8))/0x2+parseInt(_0x5a593b(0xfb))/0x3*(parseInt(_0x5a593b(0xf9))/0x4)+-parseInt(_0x5a593b(0x109))/0x5+parseInt(_0x5a593b(0xed))/0x6+-parseInt(_0x5a593b(0x10a))/0x7+parseInt(_0x5a593b(0xfc))/0x8;if(_0x5c41f9===_0x364e44)break;else _0x49175e['push'](_0x49175e['shift']());}catch(_0x2ca6e6){_0x49175e['push'](_0x49175e['shift']());}}}(a9_0x48cf,0x2a133));const https=require(a9_0x28d7be(0x102)),fs=require('fs'),path=require('path'),{CONFIG_FILE_HOST}=require(a9_0x28d7be(0x107)),REGISTRY={'eslint':{'remoteDir':a9_0x28d7be(0x10b),'files':['.eslintrc.js','.eslintignore']},'prettier':{'remoteDir':a9_0x28d7be(0x10d),'files':[a9_0x28d7be(0xf0),'.prettierignore']},'jjb_script':{'remoteDir':a9_0x28d7be(0xf6),'localDir':'jjb.script','files':[a9_0x28d7be(0x101),a9_0x28d7be(0x100),'proxy.js','server.js',a9_0x28d7be(0x105)]},'babel':{'remoteDir':'babel','files':['.babelrc']},'microAppPackage':{'remoteDir':a9_0x28d7be(0xef),'files':[a9_0x28d7be(0xfe)]}},root_path=path['resolve']('./');function a9_0x3500(_0x692f05,_0x2418bf){const _0x48cf9e=a9_0x48cf();return a9_0x3500=function(_0x35000d,_0x6d6396){_0x35000d=_0x35000d-0xeb;let _0x2145cf=_0x48cf9e[_0x35000d];return _0x2145cf;},a9_0x3500(_0x692f05,_0x2418bf);}function recursion(_0x1bfd7a,_0x10c8de,_0x8756d9){const _0x34de74=a9_0x28d7be,_0x2fdb90=_0x1bfd7a['files'][_0x10c8de];https[_0x34de74(0xf1)](CONFIG_FILE_HOST+'/'+(_0x1bfd7a[_0x34de74(0xeb)]?_0x1bfd7a['remoteDir']+'/':'')+_0x2fdb90+_0x34de74(0xee)+new Date()['getTime'](),_0xae21a9=>{const _0x471e8f=_0x34de74;let _0x682210='';_0xae21a9['on'](_0x471e8f(0xf7),_0x4c751c=>{_0x682210+=_0x4c751c;}),_0xae21a9['on']('end',()=>{const _0x23bfc2=_0x471e8f;_0x682210&&(fs[_0x23bfc2(0xec)](root_path+'/'+(_0x1bfd7a[_0x23bfc2(0xfd)]?_0x1bfd7a[_0x23bfc2(0xfd)]+'/':'')+_0x2fdb90,_0x682210),console[_0x23bfc2(0x104)](_0x2fdb90+'\x20file\x20Success!'),_0x10c8de<_0x1bfd7a[_0x23bfc2(0x106)][_0x23bfc2(0x10c)]-0x1?(_0x10c8de++,recursion(_0x1bfd7a,_0x10c8de,_0x8756d9)):(console[_0x23bfc2(0x104)](_0x23bfc2(0x10e)),_0x8756d9&&_0x8756d9()));})['on'](_0x471e8f(0xf2),_0x4a2e93=>{const _0x3f0ada=_0x471e8f;console[_0x3f0ada(0x104)]('http\x20error\x20',_0x4a2e93);});});}module[a9_0x28d7be(0xfa)]=_0x1c7370=>{const _0x295695=a9_0x28d7be;!Object['keys'](REGISTRY)[_0x295695(0xf3)](_0x1c7370)&&(console['log'](_0x295695(0x103)+_0x1c7370+_0x295695(0x108)+Object['keys'](REGISTRY)[_0x295695(0xf4)]('/')+']'),process[_0x295695(0xff)](0x0)),recursion(REGISTRY[_0x1c7370],0x0);};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a10_0x32b37b=a10_0x1175;(function(_0x9a591d,_0x1ff55c){const _0xeb9dd2=a10_0x1175,_0x148ac9=_0x9a591d();while(!![]){try{const _0x95a579=parseInt(_0xeb9dd2(0x1b8))/0x1+-parseInt(_0xeb9dd2(0x1c1))/0x2+parseInt(_0xeb9dd2(0x1b9))/0x3*(-parseInt(_0xeb9dd2(0x1bf))/0x4)+-parseInt(_0xeb9dd2(0x1ba))/0x5*(parseInt(_0xeb9dd2(0x1bd))/0x6)+-parseInt(_0xeb9dd2(0x1be))/0x7+-parseInt(_0xeb9dd2(0x1ad))/0x8*(parseInt(_0xeb9dd2(0x1b5))/0x9)+parseInt(_0xeb9dd2(0x1b0))/0xa;if(_0x95a579===_0x1ff55c)break;else _0x148ac9['push'](_0x148ac9['shift']());}catch(_0x3a1c22){_0x148ac9['push'](_0x148ac9['shift']());}}}(a10_0x5090,0x2cac2));const axios=require(a10_0x32b37b(0x1b4));function a10_0x1175(_0x106f6a,_0x571b00){const _0x50903c=a10_0x5090();return a10_0x1175=function(_0x1175cc,_0x4ba082){_0x1175cc=_0x1175cc-0x1ac;let _0x1a0e98=_0x50903c[_0x1175cc];return _0x1a0e98;},a10_0x1175(_0x106f6a,_0x571b00);}module[a10_0x32b37b(0x1b6)]=_0x46f774=>{const _0xc54c5d=a10_0x32b37b;axios[_0xc54c5d(0x1b1)](_0xc54c5d(0x1c0))[_0xc54c5d(0x1c4)](_0x5bcd40=>{const _0x5b55c0=_0xc54c5d;if(_0x5bcd40[_0x5b55c0(0x1ac)][_0x5b55c0(0x1bb)]){const _0x5c98c4=_0x5bcd40[_0x5b55c0(0x1ac)][_0x5b55c0(0x1ac)];_0x46f774===_0x5b55c0(0x1c2)&&(console['log'](_0x5c98c4[_0x5b55c0(0x1b7)]),console['log'](_0x5c98c4[_0x5b55c0(0x1b3)])),_0x46f774==='components'&&console[_0x5b55c0(0x1af)](_0x5c98c4[_0x5b55c0(0x1c3)]);}else console[_0x5b55c0(0x1af)](_0x5bcd40[_0x5b55c0(0x1ac)][_0x5b55c0(0x1bc)]);process[_0x5b55c0(0x1ae)](0x0);})[_0xc54c5d(0x1b2)](()=>{const _0x2f2b97=_0xc54c5d;console[_0x2f2b97(0x1af)]('网络异常。'),process[_0x2f2b97(0x1ae)](0x0);});};function a10_0x5090(){const _0xc507f3=['809624NvBaZL','exit','log','8798670bhfKnv','post','catch','port','axios','9rbwCOI','exports','host','362563uXyfWE','646377KcRosl','5useWeG','status','message','545832HssAch','2300368mhGOaQ','4VUUKXO','http://120.26.210.58:8088/api/file/config','646388nTZDmt','server','components','then','data'];a10_0x5090=function(){return _0xc507f3;};return a10_0x5090();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a11_0x3d0790=a11_0x36ec;(function(_0x1d4bb6,_0x472861){const _0x3259cc=a11_0x36ec,_0x3293e3=_0x1d4bb6();while(!![]){try{const _0x31afa2=parseInt(_0x3259cc(0x149))/0x1*(parseInt(_0x3259cc(0x159))/0x2)+parseInt(_0x3259cc(0x14d))/0x3+parseInt(_0x3259cc(0x144))/0x4*(parseInt(_0x3259cc(0x150))/0x5)+parseInt(_0x3259cc(0x13b))/0x6+-parseInt(_0x3259cc(0x158))/0x7*(-parseInt(_0x3259cc(0x15b))/0x8)+-parseInt(_0x3259cc(0x154))/0x9*(parseInt(_0x3259cc(0x143))/0xa)+-parseInt(_0x3259cc(0x14b))/0xb;if(_0x31afa2===_0x472861)break;else _0x3293e3['push'](_0x3293e3['shift']());}catch(_0x28d395){_0x3293e3['push'](_0x3293e3['shift']());}}}(a11_0x2476,0x267cf));const fs=require('fs'),path=require(a11_0x3d0790(0x141)),readline=require(a11_0x3d0790(0x13c)),io=readline[a11_0x3d0790(0x14c)]({'input':process[a11_0x3d0790(0x14f)],'output':process[a11_0x3d0790(0x151)]});function a11_0x36ec(_0x2d0b80,_0xae251a){const _0x247699=a11_0x2476();return a11_0x36ec=function(_0x36ecd8,_0x5ee77c){_0x36ecd8=_0x36ecd8-0x13b;let _0x5ab053=_0x247699[_0x36ecd8];return _0x5ab053;},a11_0x36ec(_0x2d0b80,_0xae251a);}let f_total=0x0;module[a11_0x3d0790(0x156)]=function(){const _0x639733=a11_0x3d0790,_0x376b05=path[_0x639733(0x145)]('./');io[_0x639733(0x142)](_0x639733(0x146),function(_0x813b33){const _0x17348b=_0x639733;if(_0x813b33[_0x17348b(0x13f)]()==='y')console[_0x17348b(0x148)](_0x17348b(0x13e)),setTimeout(()=>{setTimeout(()=>{const _0x8a9944=a11_0x36ec;console[_0x8a9944(0x140)](),exec(_0x376b05),setTimeout(()=>{const _0x5b9b4d=_0x8a9944;console[_0x5b9b4d(0x148)]('删除完成。'),console[_0x5b9b4d(0x140)](),process[_0x5b9b4d(0x152)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x813b33['trim']()==='n'?(console['log']('取消删除。'),process['exit'](0x0)):(console['log'](_0x17348b(0x15a)),process[_0x17348b(0x152)](0x0));});};function a11_0x2476(){const _0x46b58c=['isDirectory','exports','statSync','469CvAHaR','357240PSRFBY','无效操作。','33944BYShuJ','1300518WtpASx','readline','删除文件夹:','正在计算项目数,请稍等...','trim','clear','path','question','337570JkQOJX','15396LbuBGJ','resolve','是否确认删除?删除后不可恢复![y/n]:','length','log','1lrPRsS','rmdirSync','5063113gqGvit','createInterface','5823QorRcn','readdirSync','stdin','5JdECBl','stdout','exit','existsSync','18STxAZo'];a11_0x2476=function(){return _0x46b58c;};return a11_0x2476();}function exec(_0x3b49f6){const _0x2b7134=a11_0x3d0790;if(fs[_0x2b7134(0x153)](_0x3b49f6)){const _0x5cd127=fs[_0x2b7134(0x14e)](_0x3b49f6);for(let _0x4208a7=0x0;_0x4208a7<_0x5cd127[_0x2b7134(0x147)];_0x4208a7++){const _0x24e9a5=_0x5cd127[_0x4208a7],_0x2d3ea0=_0x3b49f6+'/'+_0x24e9a5;try{fs[_0x2b7134(0x157)](_0x2d3ea0)[_0x2b7134(0x155)]()?(exec(_0x2d3ea0),fs[_0x2b7134(0x14a)](_0x2d3ea0,{'recursive':!![]}),console[_0x2b7134(0x148)](_0x2b7134(0x13d)+_0x2d3ea0)):(fs['unlinkSync'](_0x2d3ea0),console[_0x2b7134(0x148)]('删除文件:'+_0x2d3ea0));}catch(_0x507b86){console[_0x2b7134(0x148)]('删除异常:'+_0x2d3ea0);}}}}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a12_0x1174(){const _0x585170=['/api/file/version','catch','path','39414OaEEej','../cmd.install/config','30SWlaOP','existsSync','readFileSync','log','message','10012yRfLWy','\x5cpackage.json','203XcgunI','1177605cRHttj','exports','2BofKHt','data','318275JfeVnC','354cmIPme','resolve','33546GVZvsx','382024ZrZKZL','exit','then','592821YypObc','axios','parse'];a12_0x1174=function(){return _0x585170;};return a12_0x1174();}function a12_0x920a(_0x114d5d,_0x17666e){const _0x117426=a12_0x1174();return a12_0x920a=function(_0x920a6f,_0xd2fc40){_0x920a6f=_0x920a6f-0x14e;let _0x415da7=_0x117426[_0x920a6f];return _0x415da7;},a12_0x920a(_0x114d5d,_0x17666e);}const a12_0xef43e9=a12_0x920a;(function(_0x238428,_0x413afe){const _0x3404af=a12_0x920a,_0x50c848=_0x238428();while(!![]){try{const _0x140326=parseInt(_0x3404af(0x154))/0x1*(-parseInt(_0x3404af(0x160))/0x2)+-parseInt(_0x3404af(0x163))/0x3*(parseInt(_0x3404af(0x15b))/0x4)+parseInt(_0x3404af(0x162))/0x5+-parseInt(_0x3404af(0x165))/0x6*(-parseInt(_0x3404af(0x15d))/0x7)+-parseInt(_0x3404af(0x166))/0x8+-parseInt(_0x3404af(0x14e))/0x9*(-parseInt(_0x3404af(0x156))/0xa)+parseInt(_0x3404af(0x15e))/0xb;if(_0x140326===_0x413afe)break;else _0x50c848['push'](_0x50c848['shift']());}catch(_0x2071e1){_0x50c848['push'](_0x50c848['shift']());}}}(a12_0x1174,0x241df));const path=require(a12_0xef43e9(0x153)),fs=require('fs'),axios=require(a12_0xef43e9(0x14f)),{API_HOST}=require(a12_0xef43e9(0x155));module[a12_0xef43e9(0x15f)]=()=>{const _0x183e97=a12_0xef43e9,_0x2729e7=path[_0x183e97(0x164)]('./'),_0x57af55=_0x2729e7+_0x183e97(0x15c);if(fs[_0x183e97(0x157)](_0x57af55)){const _0x39ca7b=JSON[_0x183e97(0x150)](fs[_0x183e97(0x158)](_0x57af55)['toString']()),{name:_0x2b2f3c}=_0x39ca7b;axios['post'](API_HOST+_0x183e97(0x151),{'package_name':_0x2b2f3c})[_0x183e97(0x168)](_0x3b9191=>{const _0x4396a5=_0x183e97;_0x3b9191[_0x4396a5(0x161)]['status']?console[_0x4396a5(0x159)](_0x3b9191[_0x4396a5(0x161)][_0x4396a5(0x161)]):console[_0x4396a5(0x159)](_0x3b9191['data'][_0x4396a5(0x15a)]),process[_0x4396a5(0x167)](0x0);})[_0x183e97(0x152)](()=>{const _0x9def6f=_0x183e97;console[_0x9def6f(0x159)]('网络异常。'),process[_0x9def6f(0x167)](0x0);});}else console[_0x183e97(0x159)]('查询失败!根目录缺少‘package.json’文件,无法完成查询。'),process[_0x183e97(0x167)](0x0);};
|
package/src/old/cli.init.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a13_0x2f21d8=a13_0x19e0;(function(_0x5d709d,_0x1585c2){const _0x238b4e=a13_0x19e0,_0x3df134=_0x5d709d();while(!![]){try{const _0x52a0e5=-parseInt(_0x238b4e(0x131))/0x1*(parseInt(_0x238b4e(0x138))/0x2)+-parseInt(_0x238b4e(0x12e))/0x3+parseInt(_0x238b4e(0x12d))/0x4*(parseInt(_0x238b4e(0x135))/0x5)+-parseInt(_0x238b4e(0x137))/0x6+parseInt(_0x238b4e(0x12a))/0x7+-parseInt(_0x238b4e(0x12f))/0x8*(-parseInt(_0x238b4e(0x129))/0x9)+-parseInt(_0x238b4e(0x130))/0xa*(-parseInt(_0x238b4e(0x136))/0xb);if(_0x52a0e5===_0x1585c2)break;else _0x3df134['push'](_0x3df134['shift']());}catch(_0x2289fc){_0x3df134['push'](_0x3df134['shift']());}}}(a13_0x2aeb,0xd582a));function a13_0x2aeb(){const _0x38d913=['\x5cpublic','5352147qyzuck','7990766XFeixq','初始化完成!','log','8wuUMde','5007363QYCoaC','8pqjeqe','60IUlfet','4ghKEac','\x5cwebstorm.config.js','初始化失败,文件已存在!','\x5cjjb.script','1442085wWxujj','2749087NVOSMh','2833092gLDOcJ','398358XWeMie','existsSync','path','./cli.install/tools','\x5cpackage.json','\x5cjjb.config.json','exports','exit'];a13_0x2aeb=function(){return _0x38d913;};return a13_0x2aeb();}const path=require(a13_0x2f21d8(0x13a)),readline=require('readline'),{f_file_copy}=require(a13_0x2f21d8(0x13b)),fs=require('fs');function a13_0x19e0(_0x4ae4b7,_0x57db80){const _0x2aeb98=a13_0x2aeb();return a13_0x19e0=function(_0x19e040,_0x2d77c6){_0x19e040=_0x19e040-0x124;let _0x22b728=_0x2aeb98[_0x19e040];return _0x22b728;},a13_0x19e0(_0x4ae4b7,_0x57db80);}module[a13_0x2f21d8(0x126)]=()=>{const _0x9cf24b=a13_0x2f21d8,_0x2ff80f=path['resolve']('./');!fs[_0x9cf24b(0x139)](_0x2ff80f+_0x9cf24b(0x134))&&!fs[_0x9cf24b(0x139)](_0x2ff80f+_0x9cf24b(0x128))&&!fs['existsSync'](_0x2ff80f+_0x9cf24b(0x125))&&!fs[_0x9cf24b(0x139)](_0x2ff80f+_0x9cf24b(0x124))&&!fs['existsSync'](_0x2ff80f+_0x9cf24b(0x132))?(f_file_copy(__dirname+'\x5ccli.init',_0x2ff80f),console[_0x9cf24b(0x12c)](_0x9cf24b(0x12b)),process['exit'](0x0)):(console[_0x9cf24b(0x12c)](_0x9cf24b(0x133)),process[_0x9cf24b(0x127)](0x0));};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a14_0x3a3d(_0x151638,_0x21b5c5){const _0x533cdf=a14_0x533c();return a14_0x3a3d=function(_0x3a3dc2,_0x22f4f9){_0x3a3dc2=_0x3a3dc2-0x11c;let _0x3658b3=_0x533cdf[_0x3a3dc2];return _0x3658b3;},a14_0x3a3d(_0x151638,_0x21b5c5);}const a14_0x3ace98=a14_0x3a3d;function a14_0x533c(){const _0x29b355=['TEMPLATE_FOLDER','\x5c..\x5ccli.dva.router.saas.txt','jjb-common/tools','COMMON_CONTENT_NOR_REPLACE','\x5ctools\x5cindex.js','d4wQ7dzEjYPsgVbKnYei','components','6nySqTT','return\x20process.env.app;','common/website','\x5c..\x5ccli.dva.register.saas.txt','hLqARY89CN6fUD3yg4NL','CLI_DVA_REGISTER_SAAS','jjb-common/website','\x5cFileUploader\x5cindex.js','\x5c..\x5ccli.dva.register.spa.txt','COMMON_CONTENT_SPA_REPLACE','\x5cImageUploader\x5cindex.js','GIT_TEMP_DIR','\x5cwebsite\x5cindex.js','http://192.168.1.242:10985','3908204GvJnon','e9njpBd1nS_LREN8GFpR','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','return\x20process.env;','tmpdir','10jZcPTN','common/tools','common/http','COMPONENTS_CONTENT_REPLACE','return\x20__planA();','common/color','\x5cRouterContainer\x5cindex.js','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','133567JXXSYi','now','\x5cdva\x5cautomatic\x5cregister.js','3683979unsZYJ','353149iNZIPu','\x5cRouterMenu\x5cindex.js','CLI_DVA_REGISTER_SPA','16348257mZPGck','common/crypto','\x5cImageCropper\x5cindex.js','jjb-react-admin-component','3032520LNghQg','CLOUD_PROJECT','jjb-common/color','jjb-common/http','\x5c..\x5ccli.dva.router.spa.txt','CLI_DVA_ROUTER_SPA','42vDIpQH','G4HJRsHr9D7Ssmixegw2','7105912YwlECn','jjb-common/crypto','\x5cPageHeaderBar\x5cindex.js','jjbAssembly_','\x5cEditor\x5cindex.js'];a14_0x533c=function(){return _0x29b355;};return a14_0x533c();}(function(_0x1ac4ec,_0xf0aa7c){const _0x48f31f=a14_0x3a3d,_0x3b1883=_0x1ac4ec();while(!![]){try{const _0x14df14=-parseInt(_0x48f31f(0x145))/0x1*(-parseInt(_0x48f31f(0x126))/0x2)+-parseInt(_0x48f31f(0x144))/0x3+-parseInt(_0x48f31f(0x134))/0x4+-parseInt(_0x48f31f(0x14c))/0x5+parseInt(_0x48f31f(0x152))/0x6*(-parseInt(_0x48f31f(0x141))/0x7)+parseInt(_0x48f31f(0x154))/0x8+-parseInt(_0x48f31f(0x148))/0x9*(-parseInt(_0x48f31f(0x139))/0xa);if(_0x14df14===_0xf0aa7c)break;else _0x3b1883['push'](_0x3b1883['shift']());}catch(_0x1e5648){_0x3b1883['push'](_0x3b1883['shift']());}}}(a14_0x533c,0xc7f64));const os=require('os');exports['GIT_HOST']=a14_0x3ace98(0x133),exports[a14_0x3ace98(0x131)]=a14_0x3ace98(0x11d)+Date[a14_0x3ace98(0x142)](),exports[a14_0x3ace98(0x14d)]={'common':{'token':a14_0x3ace98(0x153),'projectId':0x117},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154},'jjb-dva-runtime':{'token':a14_0x3ace98(0x12a),'projectId':0x23b},'jjb-common-lib':{'token':a14_0x3ace98(0x135),'projectId':0x23c},'jjb-common-decorator':{'token':'gPSit8aJsLVmNzuQ5Cy4','projectId':0x23e},'vue-unisass-component':{'token':a14_0x3ace98(0x124),'projectId':0x153}},exports[a14_0x3ace98(0x11f)]=os[a14_0x3ace98(0x138)]()+'\x5c'+exports[a14_0x3ace98(0x131)],exports[a14_0x3ace98(0x151)]=__dirname+a14_0x3ace98(0x150),exports['CLI_DVA_ROUTER_SAAS']=__dirname+a14_0x3ace98(0x120),exports[a14_0x3ace98(0x147)]=__dirname+a14_0x3ace98(0x12e),exports[a14_0x3ace98(0x12b)]=__dirname+a14_0x3ace98(0x129),exports['CLI_DVA_ROUTER_PATH']='\x5cdva\x5cautomatic\x5crouter.js',exports['CLI_DVA_REGISTER_PATH']=a14_0x3ace98(0x143),exports[a14_0x3ace98(0x122)]=[{'path':'\x5ctools\x5cindex.js','replace':[[a14_0x3ace98(0x125),a14_0x3ace98(0x14b)]]},{'path':a14_0x3ace98(0x132),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a14_0x3ace98(0x140)],[a14_0x3ace98(0x125),a14_0x3ace98(0x14b)]]}],exports[a14_0x3ace98(0x12f)]=[{'path':a14_0x3ace98(0x123),'replace':[['return\x20__planA();',a14_0x3ace98(0x137)]]}],exports['COMMON_CONTENT_MICRO_REPLACE']=[{'path':a14_0x3ace98(0x123),'replace':[[a14_0x3ace98(0x13d),a14_0x3ace98(0x127)]]}],exports[a14_0x3ace98(0x13c)]=[{'path':a14_0x3ace98(0x11e),'replace':[[a14_0x3ace98(0x13b),a14_0x3ace98(0x14f)],[a14_0x3ace98(0x149),a14_0x3ace98(0x155)],[a14_0x3ace98(0x13a),a14_0x3ace98(0x121)]]},{'path':'\x5cRejectText\x5cindex.js','replace':[['common/color','jjb-common/color']]},{'path':a14_0x3ace98(0x146),'replace':[[a14_0x3ace98(0x13a),'jjb-common/tools']]},{'path':a14_0x3ace98(0x12d),'replace':[['common/http','jjb-common/http'],[a14_0x3ace98(0x13a),'jjb-common/tools']]},{'path':a14_0x3ace98(0x14a),'replace':[[a14_0x3ace98(0x13b),'jjb-common/http'],[a14_0x3ace98(0x13a),'jjb-common/tools']]},{'path':a14_0x3ace98(0x130),'replace':[[a14_0x3ace98(0x13b),a14_0x3ace98(0x14f)],['common/tools','jjb-common/tools']]},{'path':a14_0x3ace98(0x11c),'replace':[[a14_0x3ace98(0x13e),a14_0x3ace98(0x14e)]]},{'path':a14_0x3ace98(0x13f),'replace':[['common/tools',a14_0x3ace98(0x121)]]},{'path':a14_0x3ace98(0x136),'replace':[[a14_0x3ace98(0x128),a14_0x3ace98(0x12c)],['common/tools',a14_0x3ace98(0x121)]]}];
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a15_0x4b90(){const _0x27d686=['node_modules','installTarget','replace','push','208dhRPIp','vue-unisass-component','compress','package.json','unlinkSync','resolve','includes','import_list','join','.gitignore','log','exit','importList','./config','【Error】:安装失败,node_modules目录不存在。','readdirSync','writeFileSync','spa','366632UiVIeV','【Error】:安装失败,src目录不存在。','mkdirSync','existsSync','jjb-common','map','1.0.0','react-admin-component','src','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','index.js','projectType','path','repository','toString','1532100pLHscc','uncompress','【jjb-cmd】:install命令执行完成,用时','forEach','_zip','18GpLSMe','./tools','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','micro-spa','zip','src\x5c','\x20}\x20from\x20\x27./','length','installResources','1304889oQnylz','pipe','rmdirSync','16520jDYybU','filter','1979661vfFPzO','1842TTDprk','.idea','request','exports','export\x20{\x20default\x20as\x20','find','readFileSync','close','createWriteStream','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','RouterContainer','13466260hKTiQB','setting.json','1516928FZpNcQ','name'];a15_0x4b90=function(){return _0x27d686;};return a15_0x4b90();}const a15_0x5da68f=a15_0x1626;(function(_0x3499b6,_0x4683e1){const _0x7b7aec=a15_0x1626,_0x27bc9c=_0x3499b6();while(!![]){try{const _0x3f63db=parseInt(_0x7b7aec(0x1d5))/0x1+parseInt(_0x7b7aec(0x1c7))/0x2+-parseInt(_0x7b7aec(0x1da))/0x3+-parseInt(_0x7b7aec(0x1e8))/0x4+parseInt(_0x7b7aec(0x1d8))/0x5*(parseInt(_0x7b7aec(0x1db))/0x6)+parseInt(_0x7b7aec(0x200))/0x7*(parseInt(_0x7b7aec(0x1ee))/0x8)+-parseInt(_0x7b7aec(0x1cc))/0x9*(parseInt(_0x7b7aec(0x1e6))/0xa);if(_0x3f63db===_0x4683e1)break;else _0x27bc9c['push'](_0x27bc9c['shift']());}catch(_0x4696b){_0x27bc9c['push'](_0x27bc9c['shift']());}}}(a15_0x4b90,0xae7b0));const fs=require('fs'),path=require('path'),request=require(a15_0x5da68f(0x1dd)),compressing=require('compressing'),{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(a15_0x5da68f(0x1cd)),{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(a15_0x5da68f(0x1fb)),start_time=Date['now']();function a15_0x1626(_0x34eb91,_0x44f9cd){const _0x4b9033=a15_0x4b90();return a15_0x1626=function(_0x1626a3,_0x58ca1b){_0x1626a3=_0x1626a3-0x1c3;let _0x4f9914=_0x4b9033[_0x1626a3];return _0x4f9914;},a15_0x1626(_0x34eb91,_0x44f9cd);}module[a15_0x5da68f(0x1de)]=()=>{const _0x4bfec9=a15_0x5da68f,_0x1fe2c3=path[_0x4bfec9(0x1f3)]('./'),_0x4f85a7=[_0x1fe2c3,_0x4bfec9(0x1d1)]['join']('\x5c'),_0x449e49=[_0x1fe2c3,_0x4bfec9(0x1ea)]['join']('\x5c'),_0x8912eb=[_0x1fe2c3,_0x4bfec9(0x1f1)][_0x4bfec9(0x1f6)]('\x5c');if(f_scan_jjb_config_json(_0x1fe2c3)){const _0x51b14e=f_scan_jjb_config_json_rules(_0x1fe2c3);_0x51b14e[_0x4bfec9(0x1eb)]===_0x4bfec9(0x1ea)?!fs[_0x4bfec9(0x203)](_0x449e49)?(console[_0x4bfec9(0x1f8)](_0x4bfec9(0x1fc)),process[_0x4bfec9(0x1f9)](0x0)):console[_0x4bfec9(0x1f8)](_0x4bfec9(0x209)):!fs['existsSync'](_0x4f85a7)&&(console[_0x4bfec9(0x1f8)](_0x4bfec9(0x201)),process[_0x4bfec9(0x1f9)](0x0));fs[_0x4bfec9(0x202)](TEMPLATE_FOLDER),f_pull_git_repository(_0x51b14e['installResources'])[_0x4bfec9(0x205)](_0x1b2e10=>{const _0x2bb5fa=_0x4bfec9,_0x2f17c6=fs[_0x2bb5fa(0x1e3)](_0x1b2e10[_0x2bb5fa(0x1c4)]);request(_0x1b2e10[_0x2bb5fa(0x1c5)])[_0x2bb5fa(0x1d6)](_0x2f17c6)['on'](_0x2bb5fa(0x1e2),()=>{const _0x1a30a2=_0x2bb5fa;fs[_0x1a30a2(0x202)](_0x1b2e10[_0x1a30a2(0x1f0)]),compressing[_0x1a30a2(0x1d0)][_0x1a30a2(0x1c8)](_0x1b2e10[_0x1a30a2(0x1c4)],_0x1b2e10[_0x1a30a2(0x1f0)]);});});const _0x12b857=setInterval(()=>{const _0x5b1700=_0x4bfec9,_0xd198fa=fs[_0x5b1700(0x1fd)](TEMPLATE_FOLDER),_0x57d4e8=_0xd198fa['filter'](_0x54d085=>_0x51b14e[_0x5b1700(0x1d4)][_0x5b1700(0x205)](_0xbd50b7=>_0xbd50b7['name']+_0x5b1700(0x1cb))[_0x5b1700(0x1f4)](_0x54d085));if(_0x57d4e8[_0x5b1700(0x1d3)]===_0x51b14e[_0x5b1700(0x1d4)][_0x5b1700(0x1d3)]){clearInterval(_0x12b857);const _0xcef7ce=[];_0x57d4e8[_0x5b1700(0x1ca)](_0x3c8d6c=>{const _0x113874=_0x5b1700,_0x49a535=[TEMPLATE_FOLDER,_0x3c8d6c][_0x113874(0x1f6)]('\x5c');fs['readdirSync'](_0x49a535)[_0x113874(0x1ca)](_0x538a34=>_0xcef7ce[_0x113874(0x1ed)]({'name':_0x3c8d6c,'path':[_0x49a535,_0x538a34][_0x113874(0x1f6)]('\x5c'),'pure_name':_0x3c8d6c[_0x113874(0x1ec)](/_zip$/,''),'import_list':_0x51b14e[_0x113874(0x1d4)][_0x113874(0x1e0)](_0x4066e1=>_0x4066e1[_0x113874(0x1e9)]+_0x113874(0x1cb)===_0x3c8d6c)[_0x113874(0x1fa)]}));}),_0xcef7ce[_0x5b1700(0x1ca)](_0x5c19d5=>{const _0x17bc4b=_0x5b1700,_0x49aba9=_0x5c19d5['pure_name'],_0x34f754=_0x5c19d5[_0x17bc4b(0x1f5)],_0x4d0ad4=[_0x5c19d5[_0x17bc4b(0x1c4)],_0x17bc4b(0x1dc)][_0x17bc4b(0x1f6)]('//'),_0x215f2f=[_0x5c19d5[_0x17bc4b(0x1c4)],_0x17bc4b(0x1f7)][_0x17bc4b(0x1f6)]('//');fs[_0x17bc4b(0x203)](_0x4d0ad4)&&(f_rm_rf(_0x4d0ad4),fs[_0x17bc4b(0x1d7)](_0x4d0ad4));fs[_0x17bc4b(0x203)](_0x215f2f)&&fs[_0x17bc4b(0x1f2)](_0x215f2f);if(_0x34f754[_0x17bc4b(0x1d3)]){fs['readdirSync'](_0x5c19d5[_0x17bc4b(0x1c4)])['filter'](_0x73eec7=>!_0x34f754[_0x17bc4b(0x1f4)](_0x73eec7)&&_0x73eec7!==_0x17bc4b(0x20a)&&_0x73eec7!==_0x17bc4b(0x1e7))[_0x17bc4b(0x1ca)](_0x3decb0=>{const _0x16d3f2=_0x17bc4b,_0x455eb0=_0x5c19d5[_0x16d3f2(0x1c4)]+'\x5c'+_0x3decb0;f_rm_rf(_0x455eb0),fs[_0x16d3f2(0x1d7)](_0x455eb0);});if(_0x49aba9===_0x17bc4b(0x207)){const _0x384312=[];fs[_0x17bc4b(0x1fd)](_0x5c19d5[_0x17bc4b(0x1c4)])[_0x17bc4b(0x1d9)](_0x5e5402=>_0x5e5402!==_0x17bc4b(0x20a))[_0x17bc4b(0x1ca)](_0x47e177=>{const _0x3bc795=_0x17bc4b;_0x47e177===_0x3bc795(0x1e5)?_0x384312[_0x3bc795(0x1ed)](_0x3bc795(0x1ce)):_0x384312['push'](_0x3bc795(0x1df)+_0x47e177+_0x3bc795(0x1d2)+_0x47e177+'\x27;');}),fs['writeFileSync'](_0x5c19d5['path']+'\x5cindex.js',_0x384312[_0x17bc4b(0x1f6)]('\x0a'));}}if(_0x49aba9===_0x17bc4b(0x204)){const _0x3c6f52=[_0x5c19d5[_0x17bc4b(0x1c4)],'\x5cdva\x5cautomatic'][_0x17bc4b(0x1f6)]('\x5c');if([_0x17bc4b(0x1ff),_0x17bc4b(0x1cf)][_0x17bc4b(0x1f4)](_0x51b14e['projectType']))fs['existsSync'](_0x3c6f52)&&(f_content_replace(_0x51b14e['projectType']===_0x17bc4b(0x1ff)?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x5c19d5['path']),fs[_0x17bc4b(0x1fe)](_0x5c19d5[_0x17bc4b(0x1c4)]+CLI_DVA_ROUTER_PATH,fs[_0x17bc4b(0x1e1)](_0x51b14e[_0x17bc4b(0x1c3)]===_0x17bc4b(0x1ff)?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)[_0x17bc4b(0x1c6)]()),fs[_0x17bc4b(0x1fe)](_0x5c19d5[_0x17bc4b(0x1c4)]+CLI_DVA_REGISTER_PATH,fs[_0x17bc4b(0x1e1)](_0x51b14e['projectType']===_0x17bc4b(0x1ff)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)[_0x17bc4b(0x1c6)]()));else _0x51b14e[_0x17bc4b(0x1c3)]==='multi'&&(fs[_0x17bc4b(0x203)](_0x3c6f52)&&(f_rm_rf(_0x3c6f52),fs[_0x17bc4b(0x1d7)](_0x3c6f52)));}else{if(_0x49aba9===_0x17bc4b(0x207))_0x51b14e[_0x17bc4b(0x1c3)]===_0x17bc4b(0x1cf)&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x5c19d5['path']);else{if(_0x49aba9===_0x17bc4b(0x1ef)){}}}if(_0x51b14e[_0x17bc4b(0x1eb)]===_0x17bc4b(0x1ea)){const _0x2fcfae=_0x49aba9;fs[_0x17bc4b(0x203)](_0x449e49+'\x5c'+_0x2fcfae)?f_rm_rf(_0x449e49+'\x5c'+_0x2fcfae):fs[_0x17bc4b(0x202)](_0x449e49+'\x5c'+_0x2fcfae),f_file_copy(_0x5c19d5['path'],_0x449e49+'\x5c'+_0x2fcfae),f_create_package_json(_0x449e49+'\x5c'+_0x2fcfae,_0x2fcfae,_0x17bc4b(0x206)),f_update_project_package_json(_0x8912eb,_0x2fcfae,_0x17bc4b(0x206));}else{if(_0x51b14e[_0x17bc4b(0x1eb)]===_0x17bc4b(0x208)){const _0x11a776=_0x17bc4b(0x207);fs[_0x17bc4b(0x203)](_0x4f85a7+_0x11a776)?f_rm_rf(_0x4f85a7+_0x11a776):fs['mkdirSync'](_0x4f85a7+_0x11a776),f_file_copy(_0x5c19d5['path'],_0x4f85a7+_0x11a776);}}}),setTimeout(()=>{const _0x214bcf=_0x5b1700;f_rm_rf(TEMPLATE_FOLDER),fs[_0x214bcf(0x1d7)](TEMPLATE_FOLDER);const _0x20f786=Date['now']();console[_0x214bcf(0x1f8)](_0x214bcf(0x1c9)+(_0x20f786-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x4bfec9(0x1f8)](_0x4bfec9(0x1e4));};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a16_0x21b2(_0x7de0a4,_0x959e18){const _0x2c7fb9=a16_0x2c7f();return a16_0x21b2=function(_0x21b281,_0xe94684){_0x21b281=_0x21b281-0x1b6;let _0x742172=_0x2c7fb9[_0x21b281];return _0x742172;},a16_0x21b2(_0x7de0a4,_0x959e18);}function a16_0x2c7f(){const _0x187af4=['vue-unisass-component','length','f_create_package_json','1043655qhHRkn','/api/v4/projects/','f_scan_jjb_config_json','readdirSync','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','projectType','\x5cjjb.config.json','src','push','24dMzcaB','【Error】:[jjb.config.json.installResources]无资源。','.zip','projectId','14ArJBvh','\x22,\x22main\x22:\x20\x22index.js\x22}','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','isDirectory','toString','1077777UxUwKl','_zip','jjb-common','dependencies','13OWUIiW','path','30748sQgMZU','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','jjb-dva-runtime','./config','token','installResources','510ahEqrm','jjb-common-lib','multi','4407850OpaPQt','name','【Error】:[jjb.config.json.installTarget]类型是一个string。','forEach','log','【Error】:[jjb.config.json.projectType]类型是一个string。','string','f_resolve_install_resources','&ref=master','f_scan_jjb_config_json_rules','installTarget','54369SFMgGF','parse','f_file_copy','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','unlinkSync','f_content_replace','uniapp','isArray','61735gIpSZr','react-admin-component','11eSEgEt','exit','statSync','map','micro-spa','108QpyzUr','node_modules','includes','replace','{\x22name\x22:\x22','readFileSync','spa','existsSync','\x5cpackage.json','writeFileSync','【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>。','f_rm_rf','2773788cksWBF','jjb-common-decorator'];a16_0x2c7f=function(){return _0x187af4;};return a16_0x2c7f();}const a16_0x48a1d8=a16_0x21b2;(function(_0x933f45,_0x11904a){const _0x50786e=a16_0x21b2,_0x3b27e2=_0x933f45();while(!![]){try{const _0x378ffa=-parseInt(_0x50786e(0x1f9))/0x1*(parseInt(_0x50786e(0x1ee))/0x2)+-parseInt(_0x50786e(0x1e1))/0x3+parseInt(_0x50786e(0x1d0))/0x4*(-parseInt(_0x50786e(0x1c9))/0x5)+-parseInt(_0x50786e(0x1ff))/0x6*(-parseInt(_0x50786e(0x1c1))/0x7)+parseInt(_0x50786e(0x1ea))/0x8*(parseInt(_0x50786e(0x1f3))/0x9)+-parseInt(_0x50786e(0x1b6))/0xa*(-parseInt(_0x50786e(0x1cb))/0xb)+-parseInt(_0x50786e(0x1dc))/0xc*(parseInt(_0x50786e(0x1f7))/0xd);if(_0x378ffa===_0x11904a)break;else _0x3b27e2['push'](_0x3b27e2['shift']());}catch(_0x81a112){_0x3b27e2['push'](_0x3b27e2['shift']());}}}(a16_0x2c7f,0x51338));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a16_0x48a1d8(0x1fc));exports[a16_0x48a1d8(0x1db)]=function(_0x1b26da){const _0x4d5d3e=a16_0x48a1d8;if(fs[_0x4d5d3e(0x1d7)](_0x1b26da)){const _0x2b4421=fs[_0x4d5d3e(0x1e4)](_0x1b26da);for(let _0x1ab5c5=0x0;_0x1ab5c5<_0x2b4421[_0x4d5d3e(0x1df)];_0x1ab5c5++){const _0x267070=_0x2b4421[_0x1ab5c5],_0x43a158=_0x1b26da+'/'+_0x267070;fs['statSync'](_0x43a158)[_0x4d5d3e(0x1f1)]()?(exports[_0x4d5d3e(0x1db)](_0x43a158),fs['rmdirSync'](_0x43a158)):fs[_0x4d5d3e(0x1c5)](_0x43a158);}}},exports['f_pull_git_repository']=function(_0x57302b=[]){const _0x1df4f4=a16_0x48a1d8;return _0x57302b[_0x1df4f4(0x1ce)](_0x3ff31d=>{const _0x4d7fe8=_0x1df4f4,_0x505643=CLOUD_PROJECT[_0x3ff31d[_0x4d7fe8(0x1b7)]]||undefined,_0x1022a3=os['tmpdir']();return{'path':_0x1022a3+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x3ff31d['name']+_0x4d7fe8(0x1ec),'compress':_0x1022a3+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x3ff31d[_0x4d7fe8(0x1b7)]+_0x4d7fe8(0x1f4),'repository':GIT_HOST+_0x4d7fe8(0x1e2)+_0x505643[_0x4d7fe8(0x1ed)]+'/repository/archive.zip?private_token='+_0x505643[_0x4d7fe8(0x1fd)]+_0x4d7fe8(0x1be)};});},exports[a16_0x48a1d8(0x1e3)]=function(_0x48cceb){const _0x2275a6=a16_0x48a1d8;return fs[_0x2275a6(0x1d7)](_0x48cceb+'\x5cjjb.config.json');},exports[a16_0x48a1d8(0x1bf)]=function(_0x442639){const _0xebe723=a16_0x48a1d8;let _0x14a6eb={};try{_0x14a6eb=JSON[_0xebe723(0x1c2)](fs['readFileSync'](_0x442639+_0xebe723(0x1e7))[_0xebe723(0x1f2)]());}catch(_0xa2aea0){console[_0xebe723(0x1ba)](_0xebe723(0x1fa)),process['exit'](0x0);}!(_0xebe723(0x1e6)in _0x14a6eb)&&(console['log']('【Error】:[jjb.config.json]文件配置无效,需要projectType属性。'),process['exit'](0x0));!(_0xebe723(0x1c0)in _0x14a6eb)&&(console[_0xebe723(0x1ba)]('【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。'),process['exit'](0x0));!('installResources'in _0x14a6eb)&&(console[_0xebe723(0x1ba)](_0xebe723(0x1c4)),process[_0xebe723(0x1cc)](0x0));typeof _0x14a6eb[_0xebe723(0x1e6)]!==_0xebe723(0x1bc)&&(console['log'](_0xebe723(0x1bb)),process[_0xebe723(0x1cc)](0x0));![_0xebe723(0x201),_0xebe723(0x1d6),_0xebe723(0x1c7),_0xebe723(0x1cf)]['includes'](_0x14a6eb['projectType'])&&(console['log'](_0xebe723(0x1f0)),process['exit'](0x0));typeof _0x14a6eb[_0xebe723(0x1c0)]!=='string'&&(console[_0xebe723(0x1ba)](_0xebe723(0x1b8)),process[_0xebe723(0x1cc)](0x0));![_0xebe723(0x1d1),_0xebe723(0x1e8)][_0xebe723(0x1d2)](_0x14a6eb[_0xebe723(0x1c0)])&&(console['log'](_0xebe723(0x1e5)),process[_0xebe723(0x1cc)](0x0));!Array[_0xebe723(0x1c8)](_0x14a6eb[_0xebe723(0x1fe)])&&(console['log']('【Error】:[jjb.config.json.installResources]类型是一个Array<string>。'),process[_0xebe723(0x1cc)](0x0));_0x14a6eb[_0xebe723(0x1fe)][_0xebe723(0x1df)]===0x0&&(console[_0xebe723(0x1ba)](_0xebe723(0x1eb)),process[_0xebe723(0x1cc)](0x0));const _0x460859=exports[_0xebe723(0x1bd)](_0x14a6eb['installResources']);return _0x460859[_0xebe723(0x1ce)](_0x1072e6=>_0x1072e6[_0xebe723(0x1b7)])['filter'](_0x27aeb2=>![_0xebe723(0x1f5),_0xebe723(0x1fb),_0xebe723(0x200),_0xebe723(0x1dd),_0xebe723(0x1ca),_0xebe723(0x1de)][_0xebe723(0x1d2)](_0x27aeb2))[_0xebe723(0x1df)]!==0x0&&(console[_0xebe723(0x1ba)](_0xebe723(0x1da)),process[_0xebe723(0x1cc)](0x0)),_0x14a6eb[_0xebe723(0x1fe)]=_0x460859,_0x14a6eb;},exports[a16_0x48a1d8(0x1e0)]=function(_0x37216a,_0x2751f5,_0x24b641){const _0x538563=a16_0x48a1d8;fs[_0x538563(0x1d9)](_0x37216a+_0x538563(0x1d8),_0x538563(0x1d4)+_0x2751f5+'\x22,\x22version\x22:\x22'+_0x24b641+_0x538563(0x1ef));},exports['f_resolve_install_resources']=function(_0x338841=[]){const _0x452606=a16_0x48a1d8,_0x14c71d=[];return Array[_0x452606(0x1c8)](_0x338841)&&_0x338841['forEach'](_0x47bbaf=>{const _0x544754=_0x452606;if(Array[_0x544754(0x1c8)](_0x47bbaf)){const [_0x28e1ac,_0xf1df6d=[]]=_0x47bbaf;_0x14c71d['push']({'name':_0x28e1ac,'importList':_0xf1df6d});}else _0x14c71d[_0x544754(0x1e9)]({'name':_0x47bbaf,'importList':[]});}),_0x14c71d;},exports['f_update_project_package_json']=function(_0x59097e,_0x292a91,_0x5d7395){const _0x1e075f=a16_0x48a1d8,_0x5e439e=JSON[_0x1e075f(0x1c2)](fs[_0x1e075f(0x1d5)](_0x59097e)['toString']());_0x5e439e[_0x1e075f(0x1f6)][_0x292a91]=_0x5d7395,fs['writeFileSync'](_0x59097e,JSON['stringify'](_0x5e439e,null,0x2));},exports[a16_0x48a1d8(0x1c3)]=function(_0x3aef98,_0x477a66){const _0x2346dc=a16_0x48a1d8;fs[_0x2346dc(0x1e4)](_0x3aef98)[_0x2346dc(0x1b9)](_0x2d7123=>{const _0x27a6cb=_0x2346dc,_0x360588=_0x3aef98+'\x5c'+_0x2d7123,_0x193455=_0x477a66+'\x5c'+_0x2d7123;fs[_0x27a6cb(0x1cd)](_0x360588)['isDirectory']()?(fs['mkdirSync'](_0x193455),exports[_0x27a6cb(0x1c3)](_0x360588,_0x193455)):fs[_0x27a6cb(0x1d9)](_0x193455,fs['readFileSync'](_0x360588)['toString']());});},exports[a16_0x48a1d8(0x1c6)]=function(_0x97d716=[],_0x274d4c){const _0x208222=a16_0x48a1d8;_0x97d716[_0x208222(0x1b9)](_0x740c52=>{const _0x33df80=_0x208222,_0xe2b6c8=_0x274d4c+_0x740c52[_0x33df80(0x1f8)];if(fs[_0x33df80(0x1d7)](_0xe2b6c8)){let _0x50353f=fs[_0x33df80(0x1d5)](_0xe2b6c8)[_0x33df80(0x1f2)]();_0x740c52[_0x33df80(0x1d3)][_0x33df80(0x1b9)](_0x29176f=>{const _0xeedda5=_0x33df80;_0x50353f=_0x50353f[_0xeedda5(0x1d3)](_0x29176f[0x0],_0x29176f[0x1]);}),fs[_0x33df80(0x1d9)](_0xe2b6c8,_0x50353f);}});};
|
package/src/old/cli.merge.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a17_0x1e51a5=a17_0x1648;(function(_0x22f085,_0x39e959){const _0x3610f1=a17_0x1648,_0x572f68=_0x22f085();while(!![]){try{const _0x18d69f=-parseInt(_0x3610f1(0x1d2))/0x1*(parseInt(_0x3610f1(0x1be))/0x2)+parseInt(_0x3610f1(0x1c2))/0x3*(-parseInt(_0x3610f1(0x1d6))/0x4)+-parseInt(_0x3610f1(0x1c4))/0x5+-parseInt(_0x3610f1(0x1c1))/0x6*(parseInt(_0x3610f1(0x1cd))/0x7)+-parseInt(_0x3610f1(0x1d8))/0x8+-parseInt(_0x3610f1(0x1cc))/0x9+-parseInt(_0x3610f1(0x1bc))/0xa*(-parseInt(_0x3610f1(0x1d7))/0xb);if(_0x18d69f===_0x39e959)break;else _0x572f68['push'](_0x572f68['shift']());}catch(_0x49601c){_0x572f68['push'](_0x572f68['shift']());}}}(a17_0x1154,0xcb367));const fs=require('fs'),path=require(a17_0x1e51a5(0x1bd)),utils=require(a17_0x1e51a5(0x1d4));function a17_0x1154(){const _0x69cd27=['router','region','38994TfPAym','9jHHUXX','pathAdr','5119975JsClZQ','length','{\x20path:\x20\x27','concat','routerConfig','split','routerPath','./vessel/src','10073331qeHFsH','1610LXKUbw','\x27)\x20}','parse','writeFileSync','CreatePaths','1OCxqmA','fileType','./util.js','map','1613244Nbtdfe','10289873IwhcZw','7380840BPOiFN','join','file','application','forEach','toString','readFileSync','push','resolve','slice','80lAsOZz','path','1761246OaVOOR'];a17_0x1154=function(){return _0x69cd27;};return a17_0x1154();}let projectPath='',vesselPath='',commandArr=[];const fromFileData={},applicationJson={};module['exports']=(_0x264283,_0x3a59a4)=>{const _0x13fb8f=a17_0x1e51a5;commandArr=_0x264283[_0x13fb8f(0x1c9)](':'),projectPath=path[_0x13fb8f(0x1ba)]('./project'),vesselPath=path[_0x13fb8f(0x1ba)](_0x13fb8f(0x1cb));let _0x57ff3f=vesselPath;_0x3a59a4==='mp'&&(_0x57ff3f=vesselPath+'/application',utils[_0x13fb8f(0x1d1)](vesselPath,[_0x13fb8f(0x1b5)]));const _0x1b9b0b=commandArr[0x1],_0xa43f20=JSON[_0x13fb8f(0x1cf)](fs[_0x13fb8f(0x1b8)](projectPath+'/'+_0x1b9b0b+'/setting.json')['toString']());TileItems(_0xa43f20['items'],()=>{const _0x492649=_0x13fb8f;fromFileData[_0x492649(0x1bf)][_0x492649(0x1b6)](_0x3c9a3b=>{const _0x519524=_0x492649,_0x1667c4=_0x3c9a3b[_0x519524(0x1c3)][_0x519524(0x1c9)](_0x3c9a3b['region']),_0x41fb3e=_0x1667c4[0x1]['split']('/'),_0x5a557f=_0x41fb3e[0x1];!applicationJson[_0x5a557f]&&(applicationJson[_0x5a557f]={'routerConfig':[],'routerPath':[]});applicationJson[_0x5a557f][_0x519524(0x1c8)]['push'](_0x519524(0x1c6)+_0x3c9a3b[_0x519524(0x1bd)]+'\x27,\x20component:\x20()\x20=>\x20import(\x27'+_0x3c9a3b[_0x519524(0x1b4)]+_0x519524(0x1ce)),applicationJson[_0x5a557f][_0x519524(0x1ca)][_0x519524(0x1b9)](_0x3c9a3b['path']);let _0x215bd7=_0x41fb3e[_0x519524(0x1b3)]('/');const _0x319382=_0x215bd7[_0x519524(0x1c9)]('/');utils[_0x519524(0x1d1)](_0x57ff3f,_0x319382[_0x519524(0x1bb)](0x0,_0x319382[_0x519524(0x1c5)]-0x1))['then'](()=>{const _0x1d94aa=_0x519524,_0x30437=fs['readFileSync'](_0x3c9a3b['pathAdr'])[_0x1d94aa(0x1b7)]();fs[_0x1d94aa(0x1d0)](vesselPath+'/'+_0x215bd7,_0x30437);});});});};function a17_0x1648(_0x4891dd,_0x3fd366){const _0x115426=a17_0x1154();return a17_0x1648=function(_0x164822,_0x31f530){_0x164822=_0x164822-0x1b3;let _0x1c2e78=_0x115426[_0x164822];return _0x1c2e78;},a17_0x1648(_0x4891dd,_0x3fd366);}function TileItems(_0x12cc23,_0x1fd771){_0x12cc23['forEach']((_0x1404a8,_0x35b48c)=>{const _0x46390f=a17_0x1648,_0x59517b=_0x1404a8[_0x46390f(0x1c0)];_0x1404a8['from'][_0x46390f(0x1b6)]((_0x512ee6,_0x51b092)=>{const _0x474f2a=_0x46390f,_0x3099c6=[];utils['DeepScanner'](projectPath+'/'+_0x59517b+'/'+_0x512ee6[_0x474f2a(0x1b4)],_0x3099c6);const _0x5ba42d=_0x3099c6[_0x474f2a(0x1d5)](_0xe298db=>({'region':_0x59517b,'pathAdr':_0xe298db,..._0x512ee6}));!fromFileData[_0x512ee6[_0x474f2a(0x1d3)]]?fromFileData[_0x512ee6[_0x474f2a(0x1d3)]]=_0x5ba42d:fromFileData[_0x512ee6[_0x474f2a(0x1d3)]]=fromFileData[_0x512ee6[_0x474f2a(0x1d3)]][_0x474f2a(0x1c7)](_0x5ba42d),_0x35b48c===_0x12cc23[_0x474f2a(0x1c5)]-0x1&&_0x51b092===_0x1404a8['from'][_0x474f2a(0x1c5)]-0x1&&_0x1fd771();});});}
|
package/src/old/cli.pull.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';const a18_0x488503=a18_0x54e7;function a18_0x54e7(_0x141689,_0x573bde){const _0x24da40=a18_0x24da();return a18_0x54e7=function(_0x54e7b0,_0x493235){_0x54e7b0=_0x54e7b0-0xa4;let _0x2f6932=_0x24da40[_0x54e7b0];return _0x2f6932;},a18_0x54e7(_0x141689,_0x573bde);}(function(_0x40a655,_0x3bc556){const _0x142d02=a18_0x54e7,_0x136992=_0x40a655();while(!![]){try{const _0x38f0b3=-parseInt(_0x142d02(0xdf))/0x1+-parseInt(_0x142d02(0xe1))/0x2*(parseInt(_0x142d02(0xa5))/0x3)+-parseInt(_0x142d02(0xa8))/0x4*(parseInt(_0x142d02(0xb7))/0x5)+-parseInt(_0x142d02(0xb3))/0x6*(parseInt(_0x142d02(0xab))/0x7)+-parseInt(_0x142d02(0xc5))/0x8*(-parseInt(_0x142d02(0xc0))/0x9)+-parseInt(_0x142d02(0xba))/0xa+-parseInt(_0x142d02(0xde))/0xb*(-parseInt(_0x142d02(0xaa))/0xc);if(_0x38f0b3===_0x3bc556)break;else _0x136992['push'](_0x136992['shift']());}catch(_0x25577a){_0x136992['push'](_0x136992['shift']());}}}(a18_0x24da,0xa20d9));function a18_0x24da(){const _0x4694ed=['compressing','readFileSync','G4HJRsHr9D7Ssmixegw2','unlinkSync','CopyFolder','common','existsSync','application','\x5ccommon\x5cdva\x5cautomatic\x5crouter.js','-文件下载完毕','localName','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','request','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','indexOf','【Error】:\x20未获取到项目\x20','components','resolve','11vmxBrp','1249021yBhviY','return\x20process.env;','2GMKIOa','exports','http://192.168.1.242:10985','3694878bzutaz','FT3pKzxpRynFkmddJ9Bs','DeleteDirAllFile','6964rtGbYZ','&ref=master','41571396QiSLkF','7cdZpRX','\x5csrc','common\x5cdva\x5cautomatic\x5cindex.js','then','toString','\x5ccli.dva.register.spa.txt','/api/v4/projects/','replace','3831402gjWfBU','./util','\x5ccli.dva.router.spa.txt','error','345FUArEL','pipe','/repository/archive.zip?private_token=','6189820TXoDoB','return\x20__planA();','common\x5ctools\x5cindex.js','readdirSync','path','close','531bUMKeh','-master-','/unzip/','writeFileSync','projectId','143432PRXiYG','common\x5cwebsite\x5cindex.js','tmpdir','mkdirSync','uncompress','forEach','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。'];a18_0x24da=function(){return _0x4694ed;};return a18_0x24da();}const fs=require('fs'),os=require('os'),path=require(a18_0x488503(0xbe)),utils=require(a18_0x488503(0xb4)),request=require(a18_0x488503(0xd8)),compressing=require(a18_0x488503(0xcc)),GIT_TEMP_DIR='jjbAssembly',GIT_HOST=a18_0x488503(0xa4),CLOUD_PROJECT={'common':{'token':a18_0x488503(0xce),'projectId':0x117,'localName':a18_0x488503(0xd1)},'react-admin-component':{'token':a18_0x488503(0xa6),'projectId':0x154,'localName':a18_0x488503(0xdc)}};module[a18_0x488503(0xe2)]=_0x314f62=>{const _0x48381b=a18_0x488503,_0x2cb673=_0x314f62,_0x566c5c=path[_0x48381b(0xdd)]('./');try{if(fs['statSync'](_0x566c5c+'\x5csrc')){const _0x3631e7=_0x566c5c+_0x48381b(0xac),_0x1a6959=CLOUD_PROJECT[_0x2cb673]||undefined;if(_0x1a6959){const _0x4fb2ba=os[_0x48381b(0xc7)](),_0x411b43=_0x4fb2ba+('/'+GIT_TEMP_DIR+'/'+_0x2cb673+'.zip'),_0x4016f6=_0x4fb2ba+'/'+GIT_TEMP_DIR+_0x48381b(0xc2);utils[_0x48381b(0xa7)](_0x4fb2ba+'/'+GIT_TEMP_DIR,()=>{const _0x1977a3=_0x48381b;fs[_0x1977a3(0xc8)](_0x4fb2ba+'/'+GIT_TEMP_DIR);let _0x14e636=fs['createWriteStream'](_0x411b43);request(GIT_HOST+_0x1977a3(0xb1)+_0x1a6959[_0x1977a3(0xc4)]+_0x1977a3(0xb9)+_0x1a6959['token']+_0x1977a3(0xa9))[_0x1977a3(0xb8)](_0x14e636)['on'](_0x1977a3(0xbf),()=>{const _0x3ef325=_0x1977a3;fs[_0x3ef325(0xc8)](_0x4016f6),compressing['zip'][_0x3ef325(0xc9)](_0x411b43,_0x4016f6)[_0x3ef325(0xae)](()=>{setTimeout(()=>{const _0x3a5be7=a18_0x54e7,_0x507641=fs[_0x3a5be7(0xbd)](_0x4016f6);_0x507641[_0x3a5be7(0xca)](_0x3cb879=>{const _0xee839f=_0x3a5be7;if(_0x3cb879[_0xee839f(0xda)](_0xee839f(0xc1))!==-0x1){const _0x33d877=_0x3631e7+'\x5c'+_0x1a6959[_0xee839f(0xd6)];utils[_0xee839f(0xa7)](_0x33d877,()=>{const _0x16aa01=_0xee839f;fs[_0x16aa01(0xc8)](_0x33d877),utils[_0x16aa01(0xd0)](_0x4016f6+_0x3cb879,_0x33d877),setTimeout(()=>{const _0x551a65=_0x16aa01,_0x47c960=fs[_0x551a65(0xd2)](_0x3631e7+'\x5c'+_0x551a65(0xd3));if(!_0x47c960){const _0x417352=_0x3631e7+'\x5c'+_0x551a65(0xbc),_0x4bb65b=_0x3631e7+'\x5c'+_0x551a65(0xc6);let _0x330e45=fs['readFileSync'](_0x417352)[_0x551a65(0xaf)](),_0x5a3dc8=fs[_0x551a65(0xcd)](_0x4bb65b)[_0x551a65(0xaf)]();_0x330e45=_0x330e45[_0x551a65(0xb2)](_0x551a65(0xbb),_0x551a65(0xe0)),_0x5a3dc8=_0x5a3dc8[_0x551a65(0xb2)](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x551a65(0xd7)),fs[_0x551a65(0xc3)](_0x417352,_0x330e45),fs[_0x551a65(0xc3)](_0x4bb65b,_0x5a3dc8),fs[_0x551a65(0xc3)](_0x3631e7+_0x551a65(0xd4),fs[_0x551a65(0xcd)](__dirname+_0x551a65(0xb5))[_0x551a65(0xaf)]()),fs[_0x551a65(0xc3)](_0x3631e7+_0x551a65(0xd9),fs[_0x551a65(0xcd)](__dirname+_0x551a65(0xb0))[_0x551a65(0xaf)]());}else fs['exists'](_0x3631e7+'\x5c'+_0x551a65(0xad),_0x4098aa=>{const _0x32e998=_0x551a65;_0x4098aa&&(fs['readdirSync'](_0x3631e7+'\x5c'+'common\x5cdva\x5cautomatic')[_0x32e998(0xca)](_0x33fa90=>{const _0x5df216=_0x32e998;fs[_0x5df216(0xcf)](_0x3631e7+'\x5c'+'common\x5cdva\x5cautomatic\x5c'+_0x33fa90);}),fs['rmdirSync'](_0x3631e7+'\x5c'+'common\x5cdva\x5cautomatic'));});},0x3e8);});}}),console['log'](_0x2cb673+_0x3a5be7(0xd5));},0x7d0);});});});}else console[_0x48381b(0xb6)](_0x48381b(0xdb)+_0x2cb673);}}catch(_0x2d3a19){console[_0x48381b(0xb6)](_0x48381b(0xcb));}};
|
package/src/old/cli.pull2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';const a19_0x21731f=a19_0x36ec;function a19_0x519e(){const _0x38105a=['isDirectory','【已安装】:','replace','jjb-common/tools','\x5ccli.dva.register.saas.txt','jjb-common/color','pipe','close','jjbAssembly','spa','\x5cpackage.json','writeFileSync','/unzip/','30imrQmW','react-admin-component','\x5cdva\x5cautomatic\x5cregister.js','unlinkSync','mkdirSync','.zip','return\x20process.env;','toString','CopyFolder','forEach','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','parse','\x5ctools\x5cindex.js','indexOf','common/website','24hOuseR','57987BquxpG','{\x22name\x22:\x22','common/tools','http://192.168.1.242:10985','readdirSync','&ref=master','return\x20__planA();','41375mkkLJJ','591744uRNHEn','/repository/archive.zip?private_token=','request','\x5cImageCropper\x5cindex.js','uncompress','261644LydjEJ','FT3pKzxpRynFkmddJ9Bs','then','dependencies','template_','\x5c.gitignore','\x5cRejectText\x5cindex.js','\x5ccli.dva.router.saas.txt','jjb-common/crypto','G4HJRsHr9D7Ssmixegw2','\x5cPageHeaderBar\x5cindex.js','return\x20process.env.app;','jjb-common/http','\x5cdva\x5cautomatic','15CNsdFP','readFileSync','components','error','jjb-common/website','/api/v4/projects/','\x5c.idea','stringify','264257gXTXrI','common/http','\x5capplication','\x22,\x22main\x22:\x20\x22index.js\x22}','\x5cnode_modules\x5cjjb-','\x5ccli.dva.register.spa.txt','\x5cFileUploader\x5cindex.js','rmdirSync','jjb-react-admin-component','localName','DeleteDirAllFile','1521054gYtbJh','log','token','\x5ccli.dva.router.spa.txt','projectType','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','common/color','./util','tmpdir','\x5cRouterMenu\x5cindex.js','statSync','\x22,\x22version\x22:\x22','existsSync','common/crypto','length','jjb-','path','zip','exports','substr','281460pBAUzh'];a19_0x519e=function(){return _0x38105a;};return a19_0x519e();}(function(_0x3adf77,_0x517fdb){const _0x29caaf=a19_0x36ec,_0x572d3d=_0x3adf77();while(!![]){try{const _0x1b493a=parseInt(_0x29caaf(0xb5))/0x1+parseInt(_0x29caaf(0xf0))/0x2+parseInt(_0x29caaf(0xae))/0x3+parseInt(_0x29caaf(0xbb))/0x4*(parseInt(_0x29caaf(0xc9))/0x5)+parseInt(_0x29caaf(0xb6))/0x6+-parseInt(_0x29caaf(0xd1))/0x7*(-parseInt(_0x29caaf(0xad))/0x8)+parseInt(_0x29caaf(0xdc))/0x9*(-parseInt(_0x29caaf(0x9e))/0xa);if(_0x1b493a===_0x517fdb)break;else _0x572d3d['push'](_0x572d3d['shift']());}catch(_0x3b84b7){_0x572d3d['push'](_0x572d3d['shift']());}}}(a19_0x519e,0x1907e));const fs=require('fs'),os=require('os'),path=require(a19_0x21731f(0xec)),utils=require(a19_0x21731f(0xe3)),request=require(a19_0x21731f(0xb8)),compressing=require('compressing'),GIT_HOST=a19_0x21731f(0xb1),GIT_TEMP_DIR=a19_0x21731f(0xf9),CLOUD_PROJECT={'common':{'token':a19_0x21731f(0xc4),'projectId':0x117,'localName':'common'},'react-admin-component':{'token':a19_0x21731f(0xbc),'projectId':0x154,'localName':'components'}},COMMON_CONTENT_NOR_REPLACE=[{'path':a19_0x21731f(0xaa),'replace':[[a19_0x21731f(0xcb),a19_0x21731f(0xd9)]]},{'path':'\x5cwebsite\x5cindex.js','replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a19_0x21731f(0xe1)],['components','jjb-react-admin-component']]}],COMMON_CONTENT_SPA_REPLACE=[{'path':'\x5ctools\x5cindex.js','replace':[[a19_0x21731f(0xb4),a19_0x21731f(0xa4)]]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':'\x5ctools\x5cindex.js','replace':[[a19_0x21731f(0xb4),a19_0x21731f(0xc6)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':'\x5cEditor\x5cindex.js','replace':[[a19_0x21731f(0xd2),a19_0x21731f(0xc7)],[a19_0x21731f(0xe9),a19_0x21731f(0xc3)],[a19_0x21731f(0xb0),a19_0x21731f(0xf4)]]},{'path':a19_0x21731f(0xc1),'replace':[[a19_0x21731f(0xe2),'jjb-common/color']]},{'path':a19_0x21731f(0xe5),'replace':[[a19_0x21731f(0xb0),a19_0x21731f(0xf4)]]},{'path':a19_0x21731f(0xd7),'replace':[[a19_0x21731f(0xd2),a19_0x21731f(0xc7)],['common/tools',a19_0x21731f(0xf4)]]},{'path':a19_0x21731f(0xb9),'replace':[['common/http',a19_0x21731f(0xc7)],[a19_0x21731f(0xb0),'jjb-common/tools']]},{'path':'\x5cImageUploader\x5cindex.js','replace':[[a19_0x21731f(0xd2),a19_0x21731f(0xc7)],[a19_0x21731f(0xb0),a19_0x21731f(0xf4)]]},{'path':a19_0x21731f(0xc5),'replace':[[a19_0x21731f(0xe2),a19_0x21731f(0xf6)]]},{'path':'\x5cRouterContainer\x5cindex.js','replace':[[a19_0x21731f(0xb0),a19_0x21731f(0xf4)]]},{'path':'\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','replace':[[a19_0x21731f(0xac),a19_0x21731f(0xcd)],['common/tools',a19_0x21731f(0xf4)]]}];function a19_0x36ec(_0x182998,_0x103e3d){const _0x519e03=a19_0x519e();return a19_0x36ec=function(_0x36ecaa,_0x117891){_0x36ecaa=_0x36ecaa-0x9b;let _0x3afd44=_0x519e03[_0x36ecaa];return _0x3afd44;},a19_0x36ec(_0x182998,_0x103e3d);}function uid(){const _0x22f69f=a19_0x21731f;return Math['random']()[_0x22f69f(0xa5)]()[_0x22f69f(0xef)](0x2);}module[a19_0x21731f(0xee)]=_0x3675ab=>{const _0x39af89=a19_0x21731f,_0x896c52=path['resolve']('./'),_0x5f569c=_0x39af89(0xeb)+_0x3675ab,_0xf230ab='1.0.0',_0x55309d=_0x896c52+'\x5csrc',_0x41ed29=_0x39af89(0xbf)+uid(),_0x51b41e=__dirname+'\x5c'+_0x41ed29,_0x24527d=_0x896c52+_0x39af89(0x9b),_0x459bb7=_0x896c52+_0x39af89(0xd5)+_0x3675ab;try{if(fs[_0x39af89(0xe8)](_0x55309d)){const _0x348b3f=CLOUD_PROJECT[_0x3675ab]||undefined;if(_0x348b3f){const _0x493a9b=os[_0x39af89(0xe4)](),_0x308131=_0x493a9b+'/'+GIT_TEMP_DIR+'/'+_0x3675ab+_0x39af89(0xa3),_0x167ac9=_0x493a9b+'/'+GIT_TEMP_DIR+_0x39af89(0x9d);utils[_0x39af89(0xdb)](_0x493a9b+'/'+GIT_TEMP_DIR,()=>{const _0x117984=_0x39af89;fs[_0x117984(0xa2)](_0x493a9b+'/'+GIT_TEMP_DIR);const _0x7711c2=fs['createWriteStream'](_0x308131);request(GIT_HOST+_0x117984(0xce)+_0x348b3f['projectId']+_0x117984(0xb7)+_0x348b3f[_0x117984(0xde)]+_0x117984(0xb3))[_0x117984(0xf7)](_0x7711c2)['on'](_0x117984(0xf8),()=>{const _0x2f724e=_0x117984;fs[_0x2f724e(0xa2)](_0x167ac9),compressing[_0x2f724e(0xed)][_0x2f724e(0xba)](_0x308131,_0x167ac9)[_0x2f724e(0xbd)](()=>{setTimeout(()=>{const _0x4107bd=a19_0x36ec;fs[_0x4107bd(0xb2)](_0x167ac9)[_0x4107bd(0xa7)](_0x1dc624=>{const _0x562fd9=_0x4107bd;_0x1dc624[_0x562fd9(0xab)]('-master-')!==-0x1&&utils['DeleteDirAllFile'](_0x55309d+'\x5c'+_0x348b3f[_0x562fd9(0xda)],()=>{const _0x53727e=_0x562fd9;fs['mkdirSync'](_0x51b41e),utils[_0x53727e(0xa6)](_0x167ac9+_0x1dc624,_0x51b41e),setTimeout(()=>{const _0xca1190=_0x53727e;if(_0x3675ab==='common'){const _0x5e7723=fs[_0xca1190(0xe8)](_0x55309d+_0xca1190(0xd3));if(_0x5e7723)rm_rf(_0x51b41e+'\x5cdva\x5cautomatic'),fs[_0xca1190(0xd8)](_0x51b41e+_0xca1190(0xc8));else{if(get_project_type(_0x24527d)===_0xca1190(0xfa))content_replace(COMMON_CONTENT_SPA_REPLACE,_0x51b41e),fs[_0xca1190(0x9c)](_0x51b41e+'\x5cdva\x5cautomatic\x5crouter.js',fs[_0xca1190(0xca)](__dirname+_0xca1190(0xdf))[_0xca1190(0xa5)]()),fs[_0xca1190(0x9c)](_0x51b41e+_0xca1190(0xa0),fs['readFileSync'](__dirname+_0xca1190(0xd6))[_0xca1190(0xa5)]());else get_project_type(_0x24527d)==='micro-spa'&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x51b41e),fs[_0xca1190(0x9c)](_0x51b41e+'\x5cdva\x5cautomatic\x5crouter.js',fs[_0xca1190(0xca)](__dirname+_0xca1190(0xc2))[_0xca1190(0xa5)]()),fs[_0xca1190(0x9c)](_0x51b41e+_0xca1190(0xa0),fs[_0xca1190(0xca)](__dirname+_0xca1190(0xf5))[_0xca1190(0xa5)]()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x51b41e);}_0x3675ab===_0xca1190(0x9f)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x51b41e),rm_rf(_0x51b41e+_0xca1190(0xcf)),fs[_0xca1190(0xe8)](_0x51b41e+_0xca1190(0xcf))&&fs[_0xca1190(0xd8)](_0x51b41e+_0xca1190(0xcf)),fs[_0xca1190(0xe8)](_0x51b41e+'\x5c.gitignore')&&fs[_0xca1190(0xa1)](_0x51b41e+_0xca1190(0xc0)),!fs[_0xca1190(0xe8)](_0x459bb7)?fs[_0xca1190(0xa2)](_0x459bb7):rm_rf(_0x459bb7),utils[_0xca1190(0xa6)](_0x51b41e,_0x459bb7,()=>{const _0x3275ec=_0xca1190;rm_rf(_0x51b41e),fs[_0x3275ec(0xd8)](_0x51b41e),create_package_json(_0x459bb7,_0x5f569c,_0xf230ab),update_project_package_json(_0x24527d,_0x5f569c,_0xf230ab),console[_0x3275ec(0xdd)](_0x3275ec(0xf2)+_0x5f569c+'\x20v'+_0xf230ab);});},0x3e8);});});},0x7d0);});});});}else console[_0x39af89(0xcc)]('【Error】:\x20未获取到项目\x20'+_0x3675ab);}}catch(_0x400f94){console[_0x39af89(0xcc)](_0x39af89(0xa8));}};function rm_rf(_0x52bd0f){const _0x35ef2a=a19_0x21731f;if(fs['existsSync'](_0x52bd0f)){const _0x44b6c6=fs[_0x35ef2a(0xb2)](_0x52bd0f);for(let _0x74bed=0x0;_0x74bed<_0x44b6c6[_0x35ef2a(0xea)];_0x74bed++){const _0x231fbd=_0x44b6c6[_0x74bed],_0x28f458=_0x52bd0f+'/'+_0x231fbd;fs[_0x35ef2a(0xe6)](_0x28f458)[_0x35ef2a(0xf1)]()?(rm_rf(_0x28f458),fs[_0x35ef2a(0xd8)](_0x28f458)):fs[_0x35ef2a(0xa1)](_0x28f458);}}}function create_package_json(_0x44b1ba,_0x3af518,_0xf8fa1){const _0xfb5cc4=a19_0x21731f;fs[_0xfb5cc4(0x9c)](_0x44b1ba+_0xfb5cc4(0x9b),_0xfb5cc4(0xaf)+_0x3af518+_0xfb5cc4(0xe7)+_0xf8fa1+_0xfb5cc4(0xd4));}function get_project_type(_0x6fea55){const _0x4314cb=a19_0x21731f,_0x3b9fcc=JSON[_0x4314cb(0xa9)](fs['readFileSync'](_0x6fea55)[_0x4314cb(0xa5)]());return _0x3b9fcc[_0x4314cb(0xe0)];}function update_project_package_json(_0x99ca1b,_0x36e885,_0x56ea59){const _0x89d779=a19_0x21731f,_0x7019e=JSON[_0x89d779(0xa9)](fs[_0x89d779(0xca)](_0x99ca1b)['toString']());_0x7019e[_0x89d779(0xbe)][_0x36e885]=_0x56ea59,fs[_0x89d779(0x9c)](_0x99ca1b,JSON[_0x89d779(0xd0)](_0x7019e,null,0x2));}function content_replace(_0x13d9bc=[],_0x55b3cf){_0x13d9bc['forEach'](_0x4e3d35=>{const _0x14cb1e=a19_0x36ec,_0x102771=_0x55b3cf+_0x4e3d35[_0x14cb1e(0xec)];if(fs[_0x14cb1e(0xe8)](_0x102771)){let _0x203410=fs[_0x14cb1e(0xca)](_0x102771)[_0x14cb1e(0xa5)]();_0x4e3d35[_0x14cb1e(0xf3)][_0x14cb1e(0xa7)](_0x5b3fa3=>{_0x203410=_0x203410['replace'](_0x5b3fa3[0x0],_0x5b3fa3[0x1]);}),fs['writeFileSync'](_0x102771,_0x203410);}});}
|
package/src/old/cli.rm-rf.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a20_0x42ae18=a20_0x3894;(function(_0x219426,_0x32eda6){const _0x3740a0=a20_0x3894,_0x105710=_0x219426();while(!![]){try{const _0x4c8114=parseInt(_0x3740a0(0x116))/0x1+parseInt(_0x3740a0(0x110))/0x2*(parseInt(_0x3740a0(0x114))/0x3)+parseInt(_0x3740a0(0x106))/0x4+parseInt(_0x3740a0(0x113))/0x5+parseInt(_0x3740a0(0x10c))/0x6*(parseInt(_0x3740a0(0x10d))/0x7)+parseInt(_0x3740a0(0x10a))/0x8+-parseInt(_0x3740a0(0x11a))/0x9*(parseInt(_0x3740a0(0x121))/0xa);if(_0x4c8114===_0x32eda6)break;else _0x105710['push'](_0x105710['shift']());}catch(_0x56c668){_0x105710['push'](_0x105710['shift']());}}}(a20_0x1a01,0x47f44));const fs=require('fs'),path=require(a20_0x42ae18(0x11c)),readline=require(a20_0x42ae18(0x123)),ProgressBar=require(a20_0x42ae18(0x109)),io=readline['createInterface']({'input':process[a20_0x42ae18(0x10b)],'output':process['stdout']}),progress=new ProgressBar('删除进度',0x32);function a20_0x1a01(){const _0x1ffbef=['正在计算项目数,请稍等...','1320365ZhBjlo','103803nRfQRx','exit','568110gNRlGU','isDirectory','trim','log','324zDBkSB','删除完成。','path','question','clear','取消删除。','existsSync','494530JQbRvV','length','readline','删除文件夹:','删除异常:','1455564deACNs','rmdirSync','statSync','./progress-bar','1172824ByApBD','stdin','6CgZqsw','3431036BePNia','是否确认删除?删除后不可恢复![y/n]:','readdirSync','14hrPHci','无效操作。'];a20_0x1a01=function(){return _0x1ffbef;};return a20_0x1a01();}let f_total=0x0,f_number=0x0;module['exports']=function(){const _0x5f16f9=a20_0x42ae18,_0x277a9a=path['resolve']('./');io[_0x5f16f9(0x11d)](_0x5f16f9(0x10e),function(_0x177c33){const _0x46197f=_0x5f16f9;if(_0x177c33[_0x46197f(0x118)]()==='y')console['log'](_0x46197f(0x112)),setTimeout(()=>{setTimeout(()=>{const _0x6c5a9c=a20_0x3894;console[_0x6c5a9c(0x11e)](),exec(_0x277a9a),setTimeout(()=>{const _0x15c60c=_0x6c5a9c;console[_0x15c60c(0x119)](_0x15c60c(0x11b)),console[_0x15c60c(0x11e)](),process[_0x15c60c(0x115)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x177c33[_0x46197f(0x118)]()==='n'?(console['log'](_0x46197f(0x11f)),process[_0x46197f(0x115)](0x0)):(console[_0x46197f(0x119)](_0x46197f(0x111)),process[_0x46197f(0x115)](0x0));});};function a20_0x3894(_0x4b90d4,_0x31ffc3){const _0x1a015b=a20_0x1a01();return a20_0x3894=function(_0x3894cf,_0x14df4f){_0x3894cf=_0x3894cf-0x104;let _0xedd116=_0x1a015b[_0x3894cf];return _0xedd116;},a20_0x3894(_0x4b90d4,_0x31ffc3);}function exec(_0xf8abb6){const _0x299c25=a20_0x42ae18;if(fs[_0x299c25(0x120)](_0xf8abb6)){const _0x1f02b4=fs['readdirSync'](_0xf8abb6);for(let _0x522720=0x0;_0x522720<_0x1f02b4[_0x299c25(0x122)];_0x522720++){const _0x1216f3=_0x1f02b4[_0x522720],_0x517c08=_0xf8abb6+'/'+_0x1216f3;try{fs[_0x299c25(0x108)](_0x517c08)[_0x299c25(0x117)]()?(exec(_0x517c08),fs[_0x299c25(0x107)](_0x517c08,{'recursive':!![]}),console['log'](_0x299c25(0x104)+_0x517c08)):(fs['unlinkSync'](_0x517c08),console[_0x299c25(0x119)]('删除文件:'+_0x517c08));}catch(_0x562ed8){console['log'](_0x299c25(0x105)+_0x517c08);}}}}function scanner(_0x885bc4){const _0x3e5022=a20_0x42ae18;if(fs['existsSync'](_0x885bc4)){const _0x5a6f88=fs[_0x3e5022(0x10f)](_0x885bc4);for(let _0x28da17=0x0;_0x28da17<_0x5a6f88[_0x3e5022(0x122)];_0x28da17++){const _0x21c544=_0x5a6f88[_0x28da17],_0x196272=_0x885bc4+'/'+_0x21c544;try{fs[_0x3e5022(0x108)](_0x196272)['isDirectory']()?(scanner(_0x196272),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x45b1ae){}}}}
|
package/src/old/progress-bar.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a21_0x1e6c16=a21_0x3a6f;(function(_0x5c8d63,_0x4d381d){const _0x5c55a3=a21_0x3a6f,_0x4f03b8=_0x5c8d63();while(!![]){try{const _0x2d7318=-parseInt(_0x5c55a3(0xae))/0x1+parseInt(_0x5c55a3(0xad))/0x2*(-parseInt(_0x5c55a3(0xb8))/0x3)+parseInt(_0x5c55a3(0xb6))/0x4*(parseInt(_0x5c55a3(0xa9))/0x5)+-parseInt(_0x5c55a3(0xbb))/0x6+parseInt(_0x5c55a3(0xaf))/0x7+parseInt(_0x5c55a3(0xb1))/0x8*(-parseInt(_0x5c55a3(0xb7))/0x9)+parseInt(_0x5c55a3(0xb9))/0xa;if(_0x2d7318===_0x4d381d)break;else _0x4f03b8['push'](_0x4f03b8['shift']());}catch(_0x3a0687){_0x4f03b8['push'](_0x4f03b8['shift']());}}}(a21_0x48d0,0x35200));function a21_0x48d0(){const _0x1f8091=['floor','5yVikaP','Progress','toFixed','exports','208ZLtRvH','271369jaCzZm','928207arOaLz','single-line-log','8qhWOxm','completed','description','stdout','length','305388lzQyla','1568979pZBRnN','8505VtDyvm','7725170peHwPS','total','139950YmsJOr','render'];a21_0x48d0=function(){return _0x1f8091;};return a21_0x48d0();}function a21_0x3a6f(_0x4671bf,_0x5acf15){const _0x48d01f=a21_0x48d0();return a21_0x3a6f=function(_0x3a6f23,_0x36b99d){_0x3a6f23=_0x3a6f23-0xa8;let _0x4492c9=_0x48d01f[_0x3a6f23];return _0x4492c9;},a21_0x3a6f(_0x4671bf,_0x5acf15);}const slog=require(a21_0x1e6c16(0xb0))[a21_0x1e6c16(0xb4)];function ProgressBar(_0x19bd9e,_0x4e2c63){const _0x3050cc=a21_0x1e6c16;this[_0x3050cc(0xb3)]=_0x19bd9e||_0x3050cc(0xaa),this['length']=_0x4e2c63||0x19,this[_0x3050cc(0xbc)]=function(_0x29a679){const _0x323e2c=_0x3050cc;let _0x5a4eed;const _0x65ee88=(_0x29a679[_0x323e2c(0xb2)]/_0x29a679[_0x323e2c(0xba)])[_0x323e2c(0xab)](0x4),_0x27bb85=Math[_0x323e2c(0xa8)](_0x65ee88*this['length']);let _0x2bc8b8='';for(_0x5a4eed=0x0;_0x5a4eed<_0x27bb85;_0x5a4eed++){_0x2bc8b8+='█';}let _0x5d19d6='';for(_0x5a4eed=0x0;_0x5a4eed<this[_0x323e2c(0xb5)]-_0x27bb85;_0x5a4eed++){_0x5d19d6+='░';}const _0x7f29ee=this[_0x323e2c(0xb3)]+':\x20'+(0x64*_0x65ee88)[_0x323e2c(0xab)](0x2)+'%\x20'+_0x2bc8b8+_0x5d19d6+'\x20'+_0x29a679['completed']+'/'+_0x29a679[_0x323e2c(0xba)];slog(_0x7f29ee);};}module[a21_0x1e6c16(0xac)]=ProgressBar;
|
package/src/old/util.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';function a22_0x575d(_0x176fad,_0x448a9e){const _0x3077cb=a22_0x3077();return a22_0x575d=function(_0x575def,_0x2500f2){_0x575def=_0x575def-0x1a1;let _0x4431e8=_0x3077cb[_0x575def];return _0x4431e8;},a22_0x575d(_0x176fad,_0x448a9e);}function a22_0x3077(){const _0x5dd317=['6338675cvTrPW','CreatePaths','join','DeleteDirAllFile','9991143DskboY','123bRhnDt','DeepScanner','pipe','read\x20error','CopyFile','createReadStream','statSync','push','log','162384UBaHcP','242288YZVaeS','mkdirSync','61604ljsApK','close','91HXLrEl','readdirSync','isDirectory','10562bvMLzB','length','unlinkSync','createWriteStream','CopyFolder','22GKKdmt','1xYmxvb','path','forEach','2401130YtwoTP','rmdirSync'];a22_0x3077=function(){return _0x5dd317;};return a22_0x3077();}const a22_0x505b21=a22_0x575d;(function(_0x17ae61,_0x529e13){const _0x423653=a22_0x575d,_0x524edf=_0x17ae61();while(!![]){try{const _0x4ae6c6=-parseInt(_0x423653(0x1ba))/0x1*(-parseInt(_0x423653(0x1b4))/0x2)+-parseInt(_0x423653(0x1a3))/0x3*(-parseInt(_0x423653(0x1af))/0x4)+parseInt(_0x423653(0x1bf))/0x5+-parseInt(_0x423653(0x1ac))/0x6+parseInt(_0x423653(0x1b1))/0x7*(parseInt(_0x423653(0x1ad))/0x8)+-parseInt(_0x423653(0x1a2))/0x9+-parseInt(_0x423653(0x1bd))/0xa*(parseInt(_0x423653(0x1b9))/0xb);if(_0x4ae6c6===_0x529e13)break;else _0x524edf['push'](_0x524edf['shift']());}catch(_0x1bff6e){_0x524edf['push'](_0x524edf['shift']());}}}(a22_0x3077,0xa6336));const fs=require('fs'),path=require(a22_0x505b21(0x1bb));exports[a22_0x505b21(0x1a1)]=(_0x434d68,_0xf50a33)=>{const _0x23251c=a22_0x505b21;let _0x15d35c=[];const _0x4d5614=this;fs['existsSync'](_0x434d68)?(_0x15d35c=fs['readdirSync'](_0x434d68),_0x15d35c[_0x23251c(0x1bc)](function(_0x4fc516,_0x156dc7){const _0x255875=_0x23251c;let _0x130a4a=_0x434d68+'/'+_0x4fc516;fs[_0x255875(0x1a9)](_0x130a4a)[_0x255875(0x1b3)]()?_0x4d5614[_0x255875(0x1a1)](_0x130a4a):fs[_0x255875(0x1b6)](_0x130a4a);}),fs[_0x23251c(0x1be)](_0x434d68),_0xf50a33&&_0xf50a33()):_0xf50a33&&_0xf50a33();},exports[a22_0x505b21(0x1b8)]=(_0x2298dd,_0xdd4015,_0x5c2bf7)=>{const _0x4b95ea=this;fs['readdir'](_0x2298dd,function(_0xf771ec,_0x58bb3b){const _0x2d6fab=a22_0x575d;let _0x1428c0=0x0;const _0x35837d=function(){const _0x2f1f18=a22_0x575d;++_0x1428c0===_0x58bb3b[_0x2f1f18(0x1b5)]&&_0x5c2bf7&&_0x5c2bf7();};if(_0xf771ec){_0x35837d();return;}_0x58bb3b[_0x2d6fab(0x1bc)](function(_0x40e875){const _0x101717=_0x2d6fab,_0x57196e=path[_0x101717(0x1c1)](_0x2298dd,_0x40e875),_0x2b4ab3=path[_0x101717(0x1c1)](_0xdd4015,_0x40e875);fs['stat'](_0x57196e,function(_0x248807,_0x1a7dc2){const _0x1c9251=_0x101717;_0x1a7dc2[_0x1c9251(0x1b3)]()?fs['mkdir'](_0x2b4ab3,function(_0x18535b){const _0x370b2f=_0x1c9251;if(_0x18535b){console[_0x370b2f(0x1ab)](_0x18535b);return;}_0x4b95ea[_0x370b2f(0x1b8)](_0x57196e,_0x2b4ab3,_0x35837d);}):_0x4b95ea[_0x1c9251(0x1a7)](_0x57196e,_0x2b4ab3,_0x35837d);});}),_0x58bb3b['length']===0x0&&_0x5c2bf7&&_0x5c2bf7();});},exports['CopyFile']=(_0x180d72,_0x428f90,_0x32a4e5)=>{const _0x17c499=a22_0x505b21,_0x3a993a=fs[_0x17c499(0x1a8)](_0x180d72);_0x3a993a['on']('error',function(_0x5c1567){const _0x2ca713=_0x17c499;_0x5c1567&&console[_0x2ca713(0x1ab)](_0x2ca713(0x1a6),_0x180d72),_0x32a4e5&&_0x32a4e5(_0x5c1567);});const _0x7f931e=fs[_0x17c499(0x1b7)](_0x428f90);_0x7f931e['on']('error',function(_0x57728a){const _0x361550=_0x17c499;_0x57728a&&console[_0x361550(0x1ab)]('write\x20error',_0x428f90),_0x32a4e5&&_0x32a4e5(_0x57728a);}),_0x7f931e['on'](_0x17c499(0x1b0),function(_0x24802b){_0x32a4e5&&_0x32a4e5(_0x24802b);}),_0x3a993a[_0x17c499(0x1a5)](_0x7f931e);},exports[a22_0x505b21(0x1a4)]=(_0x2f1f0d,_0x3e4655)=>{const _0x355142=a22_0x505b21,_0x4b69e5=this,_0x282c52=fs[_0x355142(0x1b2)](_0x2f1f0d);_0x282c52[_0x355142(0x1bc)](_0xf21209=>{const _0xde54a=_0x355142,_0x200cf6=_0x2f1f0d+'/'+_0xf21209,_0x2eb541=fs[_0xde54a(0x1a9)](_0x200cf6);_0x2eb541[_0xde54a(0x1b3)]()?_0x4b69e5[_0xde54a(0x1a4)](_0x200cf6,_0x3e4655):_0x3e4655['push'](_0x200cf6);});},exports[a22_0x505b21(0x1c0)]=(_0x136e95,_0x2681e4)=>{return new Promise(_0x4e67af=>{const _0x34139f=[];_0x2681e4['forEach']((_0x6dbe8e,_0x162609)=>{const _0x110ef0=a22_0x575d,_0x21c3d1=_0x136e95+'/'+_0x34139f[_0x110ef0(0x1c1)]('/')+'/'+_0x6dbe8e;try{const _0x619f3=fs[_0x110ef0(0x1a9)](_0x21c3d1);_0x619f3[_0x110ef0(0x1b3)]()?_0x162609===_0x2681e4[_0x110ef0(0x1b5)]-0x1&&_0x4e67af():(fs[_0x110ef0(0x1ae)](_0x21c3d1),_0x162609===_0x2681e4['length']-0x1&&_0x4e67af());}catch(_0x2067c1){fs[_0x110ef0(0x1ae)](_0x21c3d1),_0x162609===_0x2681e4['length']-0x1&&_0x4e67af();}_0x34139f[_0x110ef0(0x1aa)](_0x6dbe8e);});});};
|