jjb-cmd 2.1.10 → 2.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/bin/command.js +5 -0
- package/package.json +1 -1
- package/src/new/cmd.auth/index.js +1 -1
- package/src/new/cmd.init/index.js +1 -1
- package/src/new/cmd.install/config.js +1 -1
- package/src/new/cmd.install/index.js +1 -1
- package/src/new/cmd.install/tools.js +1 -1
- package/src/new/cmd.install.app/index.js +1 -0
- package/src/new/cmd.push/index.js +1 -1
- package/src/new/cmd.push/java.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/bin/command.js
CHANGED
@@ -129,4 +129,9 @@ commander.command('install').description('-- 安装').action(() => {
|
|
129
129
|
require('../src/new/cmd.install/index.js')();
|
130
130
|
});
|
131
131
|
|
132
|
+
// install 安装
|
133
|
+
commander.command('install.app').description('-- 安装').action(stdin => {
|
134
|
+
require('../src/new/cmd.install.app/index.js')(stdin);
|
135
|
+
});
|
136
|
+
|
132
137
|
commander.parse(process.argv);
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a0_0x38b1fd=a0_0x6677;(function(_0x54f158,_0x3e2e4e){const _0x13a2f5=a0_0x6677,_0x4d0059=_0x54f158();while(!![]){try{const _0x1d0d52=-parseInt(_0x13a2f5(0x1e4))/0x1+parseInt(_0x13a2f5(0x1e9))/0x2+parseInt(_0x13a2f5(0x1f0))/0x3+parseInt(_0x13a2f5(0x1da))/0x4+parseInt(_0x13a2f5(0x1ec))/0x5*(-parseInt(_0x13a2f5(0x1e7))/0x6)+parseInt(_0x13a2f5(0x1eb))/0x7*(-parseInt(_0x13a2f5(0x1e5))/0x8)+-parseInt(_0x13a2f5(0x1dc))/0x9*(-parseInt(_0x13a2f5(0x1f2))/0xa);if(_0x1d0d52===_0x3e2e4e)break;else _0x4d0059['push'](_0x4d0059['shift']());}catch(_0xb26933){_0x4d0059['push'](_0x4d0059['shift']());}}}(a0_0x6495,0x7c543));const axios=require(a0_0x38b1fd(0x1f4)),fs=require('fs'),path=require(a0_0x38b1fd(0x1df)),{API_HOST}=require(a0_0x38b1fd(0x1e3));module[a0_0x38b1fd(0x1e0)]=_0x4b6707=>{const _0x2624e1=a0_0x38b1fd;console[_0x2624e1(0x1ee)](_0x4b6707);const [_0x491265,_0x261882]=_0x4b6707;axios[_0x2624e1(0x1e6)](API_HOST+'/api/auth',{'username':_0x491265,'password':_0x261882})[_0x2624e1(0x1f1)](_0x3f9fca=>{const _0x47f8a5=_0x2624e1,_0x30309d=path[_0x47f8a5(0x1e1)](__dirname,'../../../.auth');_0x3f9fca[_0x47f8a5(0x1dd)][_0x47f8a5(0x1de)]?(console[_0x47f8a5(0x1ee)](_0x47f8a5(0x1ef)),fs[_0x47f8a5(0x1e2)](_0x30309d,_0x491265+'/'+_0x261882)):(console['log'](_0x47f8a5(0x1f3)),fs[_0x47f8a5(0x1db)](_0x30309d)&&fs[_0x47f8a5(0x1e8)](_0x30309d));})[_0x2624e1(0x1ed)](_0x571c59=>{const _0x178efa=_0x2624e1;console[_0x178efa(0x1ee)](_0x178efa(0x1ea));});};function a0_0x6677(_0x5cd1e2,_0x1da914){const _0x64958e=a0_0x6495();return a0_0x6677=function(_0x66775e,_0x555ccf){_0x66775e=_0x66775e-0x1da;let _0x420df7=_0x64958e[_0x66775e];return _0x420df7;},a0_0x6677(_0x5cd1e2,_0x1da914);}function a0_0x6495(){const _0x1d3408=['status','path','exports','join','writeFileSync','../cmd.install/config','65306IhXUpg','46856LxDXHP','post','54bMdhFJ','unlinkSync','709168lnQmjH','Auth\x20NetWork\x20Fail!','518LuBQla','261285ypRUDt','catch','log','Auth\x20Success!','965568MwjgZQ','then','3992470BUTRwp','Auth\x20Fail!','axios','1610404zIZIoW','existsSync','9pjUWxa','data'];a0_0x6495=function(){return _0x1d3408;};return a0_0x6495();}
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a1_0x257595=a1_0x3338;function a1_0x3338(_0x18c2f0,_0x119890){const _0x1b3fef=a1_0x1b3f();return a1_0x3338=function(_0x333848,_0x548c8e){_0x333848=_0x333848-0x13d;let _0x22f149=_0x1b3fef[_0x333848];return _0x22f149;},a1_0x3338(_0x18c2f0,_0x119890);}(function(_0xc77c67,_0x15d679){const _0x216c15=a1_0x3338,_0x1bb9f9=_0xc77c67();while(!![]){try{const _0x173dee=-parseInt(_0x216c15(0x15d))/0x1+parseInt(_0x216c15(0x160))/0x2+parseInt(_0x216c15(0x14a))/0x3*(parseInt(_0x216c15(0x15b))/0x4)+-parseInt(_0x216c15(0x14d))/0x5*(-parseInt(_0x216c15(0x161))/0x6)+parseInt(_0x216c15(0x147))/0x7*(parseInt(_0x216c15(0x15a))/0x8)+parseInt(_0x216c15(0x151))/0x9*(parseInt(_0x216c15(0x162))/0xa)+-parseInt(_0x216c15(0x13d))/0xb;if(_0x173dee===_0x15d679)break;else _0x1bb9f9['push'](_0x1bb9f9['shift']());}catch(_0x228b2c){_0x1bb9f9['push'](_0x1bb9f9['shift']());}}}(a1_0x1b3f,0xd7fa9));function a1_0x1b3f(){const _0x5ba3b0=['203IWebiQ','-master-','compressing','40656bjUcui','/unzip/','zip','1045JBOXZH','不存在。','DeleteDirAllFile','indexOf','9668817QtKTVJ','/api/v4/projects/','/repository/archive.zip?private_token=','tmpdir','CopyFolder','mkdirSync','close','createWriteStream','../cmd.install/config','11128NFGJYf','224aQvfHH','&ref=master','27303CSokUW','log','../../old/util','2584032IHPuRy','32514SRKGFL','10McoNeY','path','37248189Vqrpwe','resolve','初始化完成!','projectId','forEach','exit','token','exports','uncompress','readdirSync'];a1_0x1b3f=function(){return _0x5ba3b0;};return a1_0x1b3f();}const path=require(a1_0x257595(0x163)),{f_file_copy}=require('../cmd.install/tools'),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require(a1_0x257595(0x159)),fs=require('fs'),os=require('os'),utils=require(a1_0x257595(0x15f)),request=require('request'),compressing=require(a1_0x257595(0x149));module[a1_0x257595(0x144)]=_0x4338b1=>{const _0x3b92ba=a1_0x257595,_0x20387b=path[_0x3b92ba(0x13e)]('./'),_0x5bb3ef=CLOUD_PROJECT[_0x4338b1]||undefined;if(_0x5bb3ef){const _0x373c57=os[_0x3b92ba(0x154)](),_0x5c54dc=_0x373c57+'/'+GIT_TEMP_DIR+'/'+_0x4338b1+'.zip',_0x2b6276=_0x373c57+'/'+GIT_TEMP_DIR+_0x3b92ba(0x14b);utils[_0x3b92ba(0x14f)](_0x373c57+'/'+GIT_TEMP_DIR,()=>{const _0x17d203=_0x3b92ba;fs[_0x17d203(0x156)](_0x373c57+'/'+GIT_TEMP_DIR);let _0x5887d6=fs[_0x17d203(0x158)](_0x5c54dc);request(GIT_HOST+_0x17d203(0x152)+_0x5bb3ef[_0x17d203(0x140)]+_0x17d203(0x153)+_0x5bb3ef[_0x17d203(0x143)]+_0x17d203(0x15c))['pipe'](_0x5887d6)['on'](_0x17d203(0x157),()=>{const _0x5f4b7e=_0x17d203;fs[_0x5f4b7e(0x156)](_0x2b6276),compressing[_0x5f4b7e(0x14c)][_0x5f4b7e(0x145)](_0x5c54dc,_0x2b6276)['then'](()=>{setTimeout(()=>{const _0x21a50c=a1_0x3338;fs[_0x21a50c(0x146)](_0x2b6276)[_0x21a50c(0x141)](_0x1b2bf1=>{const _0x5b5bdd=_0x21a50c;_0x1b2bf1[_0x5b5bdd(0x150)](_0x5b5bdd(0x148))!==-0x1&&utils[_0x5b5bdd(0x155)](_0x2b6276+_0x1b2bf1,_0x20387b,()=>{const _0x4cb601=_0x5b5bdd;console['log'](_0x4cb601(0x13f)),process[_0x4cb601(0x142)](0x0);});});},0x7d0);});});});}else console[_0x3b92ba(0x15e)]('【Error】:初始化失败,'+_0x4338b1+_0x3b92ba(0x14e));};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a2_0x2751a1=a2_0x4b96;(function(_0x5b59d2,_0x57d616){const _0xacbf55=a2_0x4b96,_0x32cf24=_0x5b59d2();while(!![]){try{const _0x121dc1=-parseInt(_0xacbf55(0x104))/0x1+-parseInt(_0xacbf55(0x106))/0x2*(-parseInt(_0xacbf55(0x102))/0x3)+parseInt(_0xacbf55(0x115))/0x4+-parseInt(_0xacbf55(0x10c))/0x5+parseInt(_0xacbf55(0x10d))/0x6*(-parseInt(_0xacbf55(0x108))/0x7)+parseInt(_0xacbf55(0x117))/0x8+parseInt(_0xacbf55(0xfc))/0x9;if(_0x121dc1===_0x57d616)break;else _0x32cf24['push'](_0x32cf24['shift']());}catch(_0x20bcfa){_0x32cf24['push'](_0x32cf24['shift']());}}}(a2_0x464b,0x99a7c));const os=require('os');exports['API_HOST']=a2_0x2751a1(0x111),exports[a2_0x2751a1(0x101)]='http://192.168.1.242:10985',exports['GIT_TEMP_DIR']=a2_0x2751a1(0x100)+Date[a2_0x2751a1(0x116)](),exports[a2_0x2751a1(0x10e)]=a2_0x2751a1(0xfd),exports[a2_0x2751a1(0x10a)]={'development':a2_0x2751a1(0x112),'production':a2_0x2751a1(0x107),'test':a2_0x2751a1(0x109)},exports[a2_0x2751a1(0x114)]={'common':{'token':a2_0x2751a1(0xfb),'projectId':0x117},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154},'jjb-dva-runtime':{'token':a2_0x2751a1(0xff),'projectId':0x23b},'jjb-common-lib':{'token':a2_0x2751a1(0x105),'projectId':0x23c},'jjb-common-decorator':{'token':a2_0x2751a1(0x113),'projectId':0x23e},'vue-unisass-component':{'token':'d4wQ7dzEjYPsgVbKnYei','projectId':0x153},'react-component':{'token':a2_0x2751a1(0x103),'projectId':0x33f},'micro-app-ts':{'token':'7V-YUxhmh51Mdhgx4rq4','projectId':0x33e},'micro-app':{'token':a2_0x2751a1(0xfe),'projectId':0x33d},'lib':{'token':'ywPtT3xCG6b_vAxp6sTj','projectId':0x33c}},exports[a2_0x2751a1(0x110)]=os[a2_0x2751a1(0x10f)]()+'\x5c'+exports[a2_0x2751a1(0x10b)];function a2_0x4b96(_0x254771,_0x2ed412){const _0x464b19=a2_0x464b();return a2_0x4b96=function(_0x4b965c,_0x4b5313){_0x4b965c=_0x4b965c-0xfb;let _0x2af4b0=_0x464b19[_0x4b965c];return _0x2af4b0;},a2_0x4b96(_0x254771,_0x2ed412);}function a2_0x464b(){const _0x1f016e=['25102mPWlLX','prod','28hiGxrA','test','GIT_JAVA_ENV_JSON','GIT_TEMP_DIR','5307275cgOsnr','1299528aMbibG','GIT_TEMP_JAVA','tmpdir','TEMPLATE_FOLDER','http://120.26.210.58:8088','dev','gPSit8aJsLVmNzuQ5Cy4','CLOUD_PROJECT','2410736sAFAqJ','now','9888672tWeUAs','G4HJRsHr9D7Ssmixegw2','10337346bPXtup','jjb-assembly-java','FqNrmFAgrxasMrbbjvq9','hLqARY89CN6fUD3yg4NL','jjb-assembly-','GIT_HOST','90VvavTd','snBxJ2i5kYarGGcsojhY','806713ELQNkv','e9njpBd1nS_LREN8GFpR'];a2_0x464b=function(){return _0x1f016e;};return a2_0x464b();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a3_0x5f3a62=a3_0x4e1e;(function(_0x2ebd52,_0x4ef4c9){const _0x258d8c=a3_0x4e1e,_0x1d6b98=_0x2ebd52();while(!![]){try{const _0x33c0c2=-parseInt(_0x258d8c(0xc9))/0x1+parseInt(_0x258d8c(0xdb))/0x2*(-parseInt(_0x258d8c(0xd9))/0x3)+parseInt(_0x258d8c(0xcc))/0x4+-parseInt(_0x258d8c(0xea))/0x5*(parseInt(_0x258d8c(0xd0))/0x6)+-parseInt(_0x258d8c(0xc7))/0x7*(-parseInt(_0x258d8c(0xd6))/0x8)+-parseInt(_0x258d8c(0xe0))/0x9*(parseInt(_0x258d8c(0xca))/0xa)+parseInt(_0x258d8c(0xc6))/0xb;if(_0x33c0c2===_0x4ef4c9)break;else _0x1d6b98['push'](_0x1d6b98['shift']());}catch(_0x20232b){_0x1d6b98['push'](_0x1d6b98['shift']());}}}(a3_0x1c71,0xa6737));const fs=require('fs'),path=require(a3_0x5f3a62(0xdc)),request=require(a3_0x5f3a62(0xc1)),compressing=require(a3_0x5f3a62(0xbd)),{f_rm_rf,f_file_copy,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a3_0x5f3a62(0xdf)),{TEMPLATE_FOLDER}=require(a3_0x5f3a62(0xe4)),start_time=Date[a3_0x5f3a62(0xe9)]();function a3_0x1c71(){const _0x4bc602=['filter','1075867FkoESw','1870gnEYjS','join','869204NbGXHP','_zip','exit','close','348Hmreqx','node_modules','pure_name','exports','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','rmdirSync','8ecDMkf','importList','package.json','21006SUEWFl','readdirSync','274sOUDxi','path','repository','name','./tools','45945fzqXtQ','map','log','includes','./config','pipe','\x5ctypes','unlinkSync','forEach','now','89395OEKlrf','uncompress','installResources','installTarget','length','compress','zip','import_list','compressing','【Error】:安装失败,node_modules目录不存在。','jjb-common-lib','existsSync','request','mkdirSync','index.js','1.0.0','.gitignore','36945073XKlpmb','7928179gKwSNP'];a3_0x1c71=function(){return _0x4bc602;};return a3_0x1c71();}function a3_0x4e1e(_0x3e7968,_0x3ec7b2){const _0x1c715c=a3_0x1c71();return a3_0x4e1e=function(_0x4e1ef6,_0x1689fb){_0x4e1ef6=_0x4e1ef6-0xbc;let _0x5ab93c=_0x1c715c[_0x4e1ef6];return _0x5ab93c;},a3_0x4e1e(_0x3e7968,_0x3ec7b2);}module[a3_0x5f3a62(0xd3)]=()=>{const _0x42bdb3=a3_0x5f3a62,_0xeeed4e=path['resolve']('./'),_0x169299=[_0xeeed4e,'src\x5c'][_0x42bdb3(0xcb)]('\x5c'),_0x11d916=[_0xeeed4e,_0x42bdb3(0xd1)]['join']('\x5c'),_0x3038f4=[_0xeeed4e,_0x42bdb3(0xd8)][_0x42bdb3(0xcb)]('\x5c');if(f_scan_jjb_config_json(_0xeeed4e)){const _0x38281b=f_scan_jjb_config_json_rules(_0xeeed4e);_0x38281b[_0x42bdb3(0xed)]==='node_modules'?!fs[_0x42bdb3(0xc0)](_0x11d916)?(console[_0x42bdb3(0xe2)](_0x42bdb3(0xbe)),process['exit'](0x0)):console[_0x42bdb3(0xe2)](_0x42bdb3(0xd4)):!fs['existsSync'](_0x169299)&&(console[_0x42bdb3(0xe2)]('【Error】:安装失败,src目录不存在。'),process[_0x42bdb3(0xce)](0x0));fs['mkdirSync'](TEMPLATE_FOLDER),f_pull_git_repository(_0x38281b[_0x42bdb3(0xec)])[_0x42bdb3(0xe1)](_0x20f52e=>{const _0x4be55f=_0x42bdb3,_0x35ceeb=fs['createWriteStream'](_0x20f52e[_0x4be55f(0xdc)]);request(_0x20f52e[_0x4be55f(0xdd)])[_0x4be55f(0xe5)](_0x35ceeb)['on'](_0x4be55f(0xcf),()=>{const _0x1f830f=_0x4be55f;fs[_0x1f830f(0xc2)](_0x20f52e[_0x1f830f(0xef)]),compressing[_0x1f830f(0xf0)][_0x1f830f(0xeb)](_0x20f52e[_0x1f830f(0xdc)],_0x20f52e[_0x1f830f(0xef)]);});});const _0x2c4db6=setInterval(()=>{const _0x28a419=_0x42bdb3,_0x4f6ce3=fs[_0x28a419(0xda)](TEMPLATE_FOLDER),_0x7a2ab1=_0x4f6ce3[_0x28a419(0xc8)](_0x3abd97=>_0x38281b[_0x28a419(0xec)]['map'](_0x4a1ef2=>_0x4a1ef2[_0x28a419(0xde)]+'_zip')['includes'](_0x3abd97));if(_0x7a2ab1[_0x28a419(0xee)]===_0x38281b[_0x28a419(0xec)][_0x28a419(0xee)]){clearInterval(_0x2c4db6);const _0x2ddf2b=[];_0x7a2ab1[_0x28a419(0xe8)](_0x2c5c17=>{const _0x4c7a2d=_0x28a419,_0x2c34ef=[TEMPLATE_FOLDER,_0x2c5c17][_0x4c7a2d(0xcb)]('\x5c');fs[_0x4c7a2d(0xda)](_0x2c34ef)['forEach'](_0x1f8ba2=>_0x2ddf2b['push']({'name':_0x2c5c17,'path':[_0x2c34ef,_0x1f8ba2][_0x4c7a2d(0xcb)]('\x5c'),'pure_name':_0x2c5c17['replace'](/_zip$/,''),'import_list':_0x38281b[_0x4c7a2d(0xec)]['find'](_0x2b4265=>_0x2b4265['name']+_0x4c7a2d(0xcd)===_0x2c5c17)[_0x4c7a2d(0xd7)]}));}),_0x2ddf2b[_0x28a419(0xe8)](_0x4fc981=>{const _0x2af58a=_0x28a419,_0x2e5192=_0x4fc981[_0x2af58a(0xd2)],_0x46af4b=_0x4fc981[_0x2af58a(0xbc)],_0x3e35d3=[_0x4fc981[_0x2af58a(0xdc)],'.idea'][_0x2af58a(0xcb)]('//'),_0x25af79=[_0x4fc981[_0x2af58a(0xdc)],_0x2af58a(0xc5)][_0x2af58a(0xcb)]('//');fs[_0x2af58a(0xc0)](_0x3e35d3)&&(f_rm_rf(_0x3e35d3),fs['rmdirSync'](_0x3e35d3));fs[_0x2af58a(0xc0)](_0x25af79)&&fs[_0x2af58a(0xe7)](_0x25af79);_0x46af4b['length']&&fs[_0x2af58a(0xda)](_0x4fc981['path'])[_0x2af58a(0xc8)](_0x26e60f=>!_0x46af4b[_0x2af58a(0xe3)](_0x26e60f)&&_0x26e60f!==_0x2af58a(0xc3)&&_0x26e60f!=='setting.json')[_0x2af58a(0xe8)](_0x29a6fc=>{const _0x897703=_0x2af58a,_0x16acc4=_0x4fc981[_0x897703(0xdc)]+'\x5c'+_0x29a6fc;f_rm_rf(_0x16acc4),fs[_0x897703(0xd5)](_0x16acc4);});if(_0x38281b['installTarget']===_0x2af58a(0xd1)){const _0x362314=_0x2e5192;fs['existsSync'](_0x11d916+'\x5c'+_0x362314)?f_rm_rf(_0x11d916+'\x5c'+_0x362314):fs[_0x2af58a(0xc2)](_0x11d916+'\x5c'+_0x362314),_0x362314!==_0x2af58a(0xbf)?(f_file_copy(_0x4fc981[_0x2af58a(0xdc)],_0x11d916+'\x5c'+_0x362314),f_create_package_json(_0x11d916+'\x5c'+_0x362314,_0x362314,_0x2af58a(0xc4))):f_file_copy(_0x4fc981['path']+_0x2af58a(0xe6),_0x11d916+'\x5c'+_0x362314),f_update_project_package_json(_0x3038f4,_0x362314,_0x2af58a(0xc4));}else _0x38281b['installTarget']==='src'&&(fs[_0x2af58a(0xc0)](_0x169299+_0x2e5192)?f_rm_rf(_0x169299+_0x2e5192):fs[_0x2af58a(0xc2)](_0x169299+_0x2e5192),f_file_copy(_0x4fc981[_0x2af58a(0xdc)],_0x169299+_0x2e5192));}),setTimeout(()=>{const _0x248f51=_0x28a419;f_rm_rf(TEMPLATE_FOLDER),fs[_0x248f51(0xd5)](TEMPLATE_FOLDER);const _0x569040=Date[_0x248f51(0xe9)]();console[_0x248f51(0xe2)]('【jjb-cmd】:install命令执行完成,用时'+(_0x569040-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x42bdb3(0xe2)]('【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。');};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a4_0x5f5970=a4_0x457b;function a4_0x2194(){const _0x3a3a38=['filter','readFileSync','react-admin-component','uniapp','&ref=master','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','parse','installResources','234ZQvKvM','installTarget','289408IdKyHb','name','projectId','replace','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','f_rm_rf','push','【Error】:[jjb.config.json.installResources]无资源。','writeFileSync','includes','./config','jjb-dva-runtime','isArray','f_content_replace','unlinkSync','f_scan_jjb_config_json','f_pull_git_repository','【Error】:[jjb.config.json.projectType]类型是一个string。','token','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','toString','multi','jjb-common','136weywif','72864aCSibQ','log','_zip','vue-unisass-component','987744yObWdd','f_file_copy','spa','projectType','.zip','readdirSync','isDirectory','\x5cjjb.config.json','f_update_project_package_json','exit','jjb-common-lib','\x22,\x22main\x22:\x20\x22index.js\x22}','mkdirSync','forEach','f_resolve_install_resources','string','703764GPpDop','existsSync','/api/v4/projects/','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','1985620OLTnut','stringify','25592vVdvVl','\x22,\x22version\x22:\x22','/repository/archive.zip?private_token=','length','path','321703TmkSqA','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','statSync','{\x22name\x22:\x22'];a4_0x2194=function(){return _0x3a3a38;};return a4_0x2194();}function a4_0x457b(_0x36bd48,_0xe0ade7){const _0x2194bc=a4_0x2194();return a4_0x457b=function(_0x457b57,_0x1ec6df){_0x457b57=_0x457b57-0x155;let _0x183ad4=_0x2194bc[_0x457b57];return _0x183ad4;},a4_0x457b(_0x36bd48,_0xe0ade7);}(function(_0x1ce7ee,_0x4aa815){const _0x210598=a4_0x457b,_0x2e580c=_0x1ce7ee();while(!![]){try{const _0x1501f0=-parseInt(_0x210598(0x18a))/0x1+parseInt(_0x210598(0x198))/0x2+parseInt(_0x210598(0x17f))/0x3+-parseInt(_0x210598(0x16f))/0x4+parseInt(_0x210598(0x183))/0x5+-parseInt(_0x210598(0x196))/0x6*(parseInt(_0x210598(0x185))/0x7)+-parseInt(_0x210598(0x16a))/0x8*(-parseInt(_0x210598(0x16b))/0x9);if(_0x1501f0===_0x4aa815)break;else _0x2e580c['push'](_0x2e580c['shift']());}catch(_0x3205ef){_0x2e580c['push'](_0x2e580c['shift']());}}}(a4_0x2194,0x31849));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a4_0x5f5970(0x15d));exports[a4_0x5f5970(0x158)]=function(_0x38ed14){const _0x5c6bf1=a4_0x5f5970;if(fs[_0x5c6bf1(0x180)](_0x38ed14)){const _0xe36c44=fs[_0x5c6bf1(0x174)](_0x38ed14);for(let _0x4ecf52=0x0;_0x4ecf52<_0xe36c44[_0x5c6bf1(0x188)];_0x4ecf52++){const _0x1d0f5a=_0xe36c44[_0x4ecf52],_0x5add87=_0x38ed14+'/'+_0x1d0f5a;fs['statSync'](_0x5add87)['isDirectory']()?(exports[_0x5c6bf1(0x158)](_0x5add87),fs['rmdirSync'](_0x5add87)):fs[_0x5c6bf1(0x161)](_0x5add87);}}},exports[a4_0x5f5970(0x163)]=function(_0x390286=[]){return _0x390286['map'](_0x1b6e88=>{const _0x597449=a4_0x457b,_0x59641a=CLOUD_PROJECT[_0x1b6e88['name']]||undefined,_0x3637b6=os['tmpdir']();return{'path':_0x3637b6+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x1b6e88[_0x597449(0x199)]+_0x597449(0x173),'compress':_0x3637b6+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x1b6e88[_0x597449(0x199)]+_0x597449(0x16d),'repository':GIT_HOST+_0x597449(0x181)+_0x59641a[_0x597449(0x155)]+_0x597449(0x187)+_0x59641a[_0x597449(0x165)]+_0x597449(0x192)};});},exports[a4_0x5f5970(0x162)]=function(_0x23d340){const _0x4266e6=a4_0x5f5970;return fs[_0x4266e6(0x180)](_0x23d340+_0x4266e6(0x176));},exports['f_scan_jjb_config_json_rules']=function(_0x4dcaae){const _0xa5ba2=a4_0x5f5970;let _0x407394={};try{_0x407394=JSON['parse'](fs[_0xa5ba2(0x18f)](_0x4dcaae+_0xa5ba2(0x176))['toString']());}catch(_0xfadc94){console['log'](_0xa5ba2(0x182)),process[_0xa5ba2(0x178)](0x0);}!(_0xa5ba2(0x172)in _0x407394)&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x18b)),process[_0xa5ba2(0x178)](0x0));!(_0xa5ba2(0x197)in _0x407394)&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x157)),process[_0xa5ba2(0x178)](0x0));!('installResources'in _0x407394)&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x166)),process[_0xa5ba2(0x178)](0x0));typeof _0x407394['projectType']!==_0xa5ba2(0x17e)&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x164)),process[_0xa5ba2(0x178)](0x0));![_0xa5ba2(0x168),_0xa5ba2(0x171),_0xa5ba2(0x191),'micro-spa'][_0xa5ba2(0x15c)](_0x407394['projectType'])&&(console['log'](_0xa5ba2(0x193)),process[_0xa5ba2(0x178)](0x0));typeof _0x407394[_0xa5ba2(0x197)]!==_0xa5ba2(0x17e)&&(console['log']('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process['exit'](0x0));!['node_modules','src'][_0xa5ba2(0x15c)](_0x407394[_0xa5ba2(0x197)])&&(console[_0xa5ba2(0x16c)]('【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。'),process['exit'](0x0));!Array['isArray'](_0x407394[_0xa5ba2(0x195)])&&(console[_0xa5ba2(0x16c)]('【Error】:[jjb.config.json.installResources]类型是一个Array<string>。'),process[_0xa5ba2(0x178)](0x0));_0x407394[_0xa5ba2(0x195)][_0xa5ba2(0x188)]===0x0&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x15a)),process[_0xa5ba2(0x178)](0x0));const _0x520746=exports[_0xa5ba2(0x17d)](_0x407394[_0xa5ba2(0x195)]);return _0x520746['map'](_0x59a4f4=>_0x59a4f4[_0xa5ba2(0x199)])[_0xa5ba2(0x18e)](_0x6dd7e8=>![_0xa5ba2(0x169),_0xa5ba2(0x15e),_0xa5ba2(0x179),'jjb-common-decorator',_0xa5ba2(0x190),_0xa5ba2(0x16e)][_0xa5ba2(0x15c)](_0x6dd7e8))[_0xa5ba2(0x188)]!==0x0&&(console[_0xa5ba2(0x16c)]('【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>。'),process['exit'](0x0)),_0x407394[_0xa5ba2(0x195)]=_0x520746,_0x407394;},exports['f_create_package_json']=function(_0x35e156,_0x472714,_0x8dcbc9){const _0x14125f=a4_0x5f5970;fs['writeFileSync'](_0x35e156+'\x5cpackage.json',_0x14125f(0x18d)+_0x472714+_0x14125f(0x186)+_0x8dcbc9+_0x14125f(0x17a));},exports[a4_0x5f5970(0x17d)]=function(_0x2e3c80=[]){const _0x23e1b3=a4_0x5f5970,_0x1193bb=[];return Array[_0x23e1b3(0x15f)](_0x2e3c80)&&_0x2e3c80[_0x23e1b3(0x17c)](_0x554ddf=>{const _0x113db4=_0x23e1b3;if(Array[_0x113db4(0x15f)](_0x554ddf)){const [_0xd36291,_0x27bc9a=[]]=_0x554ddf;_0x1193bb[_0x113db4(0x159)]({'name':_0xd36291,'importList':_0x27bc9a});}else _0x1193bb[_0x113db4(0x159)]({'name':_0x554ddf,'importList':[]});}),_0x1193bb;},exports[a4_0x5f5970(0x177)]=function(_0x45862b,_0x1dcd79,_0x18973){const _0x17f35d=a4_0x5f5970,_0x582bd7=JSON[_0x17f35d(0x194)](fs[_0x17f35d(0x18f)](_0x45862b)[_0x17f35d(0x167)]());_0x582bd7['dependencies'][_0x1dcd79]=_0x18973,fs['writeFileSync'](_0x45862b,JSON[_0x17f35d(0x184)](_0x582bd7,null,0x2));},exports[a4_0x5f5970(0x170)]=function(_0x5efab8,_0x3153ac){const _0x3676d4=a4_0x5f5970;fs[_0x3676d4(0x174)](_0x5efab8)[_0x3676d4(0x17c)](_0x3096f1=>{const _0x2e0db0=_0x3676d4,_0x164bdd=_0x5efab8+'\x5c'+_0x3096f1,_0x370663=_0x3153ac+'\x5c'+_0x3096f1;fs[_0x2e0db0(0x18c)](_0x164bdd)[_0x2e0db0(0x175)]()?(fs[_0x2e0db0(0x17b)](_0x370663),exports[_0x2e0db0(0x170)](_0x164bdd,_0x370663)):fs[_0x2e0db0(0x15b)](_0x370663,fs['readFileSync'](_0x164bdd)[_0x2e0db0(0x167)]());});},exports[a4_0x5f5970(0x160)]=function(_0x1bf966=[],_0x4dcb1d){_0x1bf966['forEach'](_0x4a95d8=>{const _0x10cc8d=a4_0x457b,_0x22255c=_0x4dcb1d+_0x4a95d8[_0x10cc8d(0x189)];if(fs[_0x10cc8d(0x180)](_0x22255c)){let _0x3acd3c=fs[_0x10cc8d(0x18f)](_0x22255c)[_0x10cc8d(0x167)]();_0x4a95d8['replace'][_0x10cc8d(0x17c)](_0x40a878=>{const _0x2141d5=_0x10cc8d;_0x3acd3c=_0x3acd3c[_0x2141d5(0x156)](_0x40a878[0x0],_0x40a878[0x1]);}),fs[_0x10cc8d(0x15b)](_0x22255c,_0x3acd3c);}});};
|
@@ -0,0 +1 @@
|
|
1
|
+
function a5_0x270c(){const _0x119ba7=['1175124PgQnMZ','1904660vVpdYU','Finish!','2440025ZgHaqr','/.git','18TMfltf','log','2628536PAdTHw','exports','resolve','4AApnVC','execSync','2khKRGX','git\x20init\x20please\x20wait....','includes','yarn','353644nDxbOG','path','1583361SBjeYS','npx\x20husky\x20install','git\x20init','npm','190204QvKBGP','child_process','install\x20husky\x20please\x20wait....','existsSync'];a5_0x270c=function(){return _0x119ba7;};return a5_0x270c();}function a5_0x73c0(_0x1fb4f1,_0x58ffd2){const _0x270c7e=a5_0x270c();return a5_0x73c0=function(_0x73c0a1,_0x466243){_0x73c0a1=_0x73c0a1-0x18e;let _0x1e2e26=_0x270c7e[_0x73c0a1];return _0x1e2e26;},a5_0x73c0(_0x1fb4f1,_0x58ffd2);}const a5_0x19bbc4=a5_0x73c0;(function(_0x3dd895,_0x85c5b8){const _0x246dba=a5_0x73c0,_0x4022ed=_0x3dd895();while(!![]){try{const _0x174d50=-parseInt(_0x246dba(0x1a0))/0x1*(-parseInt(_0x246dba(0x19c))/0x2)+-parseInt(_0x246dba(0x1a2))/0x3*(-parseInt(_0x246dba(0x19a))/0x4)+parseInt(_0x246dba(0x193))/0x5+-parseInt(_0x246dba(0x190))/0x6+parseInt(_0x246dba(0x1a6))/0x7+parseInt(_0x246dba(0x197))/0x8*(-parseInt(_0x246dba(0x195))/0x9)+-parseInt(_0x246dba(0x191))/0xa;if(_0x174d50===_0x85c5b8)break;else _0x4022ed['push'](_0x4022ed['shift']());}catch(_0x5eb9e3){_0x4022ed['push'](_0x4022ed['shift']());}}}(a5_0x270c,0x56382));const child_process=require(a5_0x19bbc4(0x1a7)),path=require(a5_0x19bbc4(0x1a1)),fs=require('fs');module[a5_0x19bbc4(0x198)]=_0x11aea5=>{const _0x5bada5=a5_0x19bbc4;![_0x5bada5(0x1a5),'yarn'][_0x5bada5(0x19e)](_0x11aea5)&&(console[_0x5bada5(0x196)]('【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]'),process['exit'](0x0));const _0x11babc=path[_0x5bada5(0x199)]('./');console[_0x5bada5(0x196)]('install\x20modules\x20please\x20wait....'),child_process[_0x5bada5(0x19b)](_0x11aea5===_0x5bada5(0x19f)?_0x5bada5(0x19f):'npm\x20install',{'cwd':_0x11babc}),!fs[_0x5bada5(0x18f)](_0x11babc+_0x5bada5(0x194))&&(console[_0x5bada5(0x196)](_0x5bada5(0x19d)),child_process[_0x5bada5(0x19b)](_0x5bada5(0x1a4),{'cwd':_0x11babc})),console[_0x5bada5(0x196)](_0x5bada5(0x18e)),child_process[_0x5bada5(0x19b)](_0x5bada5(0x1a3),{'cwd':_0x11babc}),console[_0x5bada5(0x196)](_0x5bada5(0x192));};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a6_0x27713b=a6_0x11cf;function a6_0x2734(){const _0x38da7d=['3549708qKKVsh','toString','arch','\x5cpackage.json','exit','/api/file/push','发布失败!根目录缺少‘package.json’文件,无法完成发布。','../../../.auth','stringify','push','41649678EBXpRD','data','\x5cdist\x5cindex.js','split','readFileSync','post','Auth\x20NetWork\x20Fail!','【Error】:no\x20auth\x20login','675076BmtVfq','platform','message','log','catch','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','networkInterfaces','3623082fikshi','14pQdMYv','then','4764OztnsV','existsSync','join','exports','3141gSFukO','3848536detbRL','4641440nPKIIj'];a6_0x2734=function(){return _0x38da7d;};return a6_0x2734();}(function(_0x116a9c,_0x2a61bb){const _0x10e4a3=a6_0x11cf,_0x3a3bc6=_0x116a9c();while(!![]){try{const _0x560f2f=-parseInt(_0x10e4a3(0x18a))/0x1+-parseInt(_0x10e4a3(0x191))/0x2+-parseInt(_0x10e4a3(0x198))/0x3*(-parseInt(_0x10e4a3(0x194))/0x4)+-parseInt(_0x10e4a3(0x19a))/0x5+-parseInt(_0x10e4a3(0x19b))/0x6+-parseInt(_0x10e4a3(0x192))/0x7*(parseInt(_0x10e4a3(0x199))/0x8)+parseInt(_0x10e4a3(0x182))/0x9;if(_0x560f2f===_0x2a61bb)break;else _0x3a3bc6['push'](_0x3a3bc6['shift']());}catch(_0x2bd362){_0x3a3bc6['push'](_0x3a3bc6['shift']());}}}(a6_0x2734,0xdd34e));function a6_0x11cf(_0x411668,_0x53babe){const _0x273442=a6_0x2734();return a6_0x11cf=function(_0x11cfda,_0x5228cf){_0x11cfda=_0x11cfda-0x17f;let _0x17b2a3=_0x273442[_0x11cfda];return _0x17b2a3;},a6_0x11cf(_0x411668,_0x53babe);}const path=require('path'),fs=require('fs'),os=require('os'),axios=require('axios'),{API_HOST}=require('../cmd.install/config');module[a6_0x27713b(0x197)]=_0x5f49b4=>{const _0x11e160=a6_0x27713b,_0x3ad375=path[_0x11e160(0x196)](__dirname,_0x11e160(0x17f));!fs[_0x11e160(0x195)](_0x3ad375)&&(console[_0x11e160(0x18d)](_0x11e160(0x189)),process['exit'](0x0));const [_0x48f4fa,_0xe00894]=fs[_0x11e160(0x186)](_0x3ad375)[_0x11e160(0x19c)]()[_0x11e160(0x185)]('/');axios['post'](API_HOST+'/api/auth',{'username':_0x48f4fa,'password':_0xe00894})[_0x11e160(0x193)](_0x683570=>{const _0x1ce5e7=_0x11e160;if(_0x683570['data']['status']){const _0x2d135e=path['resolve']('./'),_0xe6db7c=_0x2d135e+_0x1ce5e7(0x184),_0x595588=_0x2d135e+_0x1ce5e7(0x19e),_0x28b24f=[os['hostname'](),os[_0x1ce5e7(0x18b)](),os[_0x1ce5e7(0x19d)](),new Date()[_0x1ce5e7(0x19c)](),JSON['stringify'](os[_0x1ce5e7(0x190)](),null,'\x09')];if(fs['existsSync'](_0x595588)){if(fs[_0x1ce5e7(0x195)](_0xe6db7c)){const _0x3800d4=JSON['parse'](fs['readFileSync'](_0x595588)[_0x1ce5e7(0x19c)]()),{name:_0x216e74,version:_0x5f329e}=_0x3800d4;_0x28b24f[_0x1ce5e7(0x181)](JSON[_0x1ce5e7(0x180)](_0x3800d4)),axios[_0x1ce5e7(0x187)](API_HOST+_0x1ce5e7(0x1a0),{'username':_0x48f4fa,'log_text':_0x28b24f[_0x1ce5e7(0x196)]('\x0a'),'package_name':_0x216e74,'package_version':_0x5f49b4?_0x5f49b4:_0x5f329e,'package_content':fs[_0x1ce5e7(0x186)](_0xe6db7c)[_0x1ce5e7(0x19c)]()})[_0x1ce5e7(0x193)](_0x197a35=>{const _0x3feb9e=_0x1ce5e7;console[_0x3feb9e(0x18d)](_0x197a35[_0x3feb9e(0x183)][_0x3feb9e(0x18c)]),process[_0x3feb9e(0x19f)](0x0);})[_0x1ce5e7(0x18e)](_0x19e416=>{const _0x37e096=_0x1ce5e7;console[_0x37e096(0x18d)](_0x19e416),console[_0x37e096(0x18d)]('网络异常。'),process[_0x37e096(0x19f)](0x0);});}else console[_0x1ce5e7(0x18d)](_0x1ce5e7(0x18f)),process[_0x1ce5e7(0x19f)](0x0);}else console[_0x1ce5e7(0x18d)](_0x1ce5e7(0x1a1)),process['exit'](0x0);}else console[_0x1ce5e7(0x18d)]('Auth\x20Fail!');})[_0x11e160(0x18e)](_0x59cd10=>{const _0x514e08=_0x11e160;console[_0x514e08(0x18d)](_0x514e08(0x188));});};
|
package/src/new/cmd.push/java.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a7_0x2e925d=a7_0x5ba4;(function(_0x2c642f,_0x12828d){const _0x25bb15=a7_0x5ba4,_0x11b282=_0x2c642f();while(!![]){try{const _0x17a6d2=-parseInt(_0x25bb15(0x16d))/0x1*(parseInt(_0x25bb15(0x165))/0x2)+-parseInt(_0x25bb15(0x16b))/0x3+parseInt(_0x25bb15(0x187))/0x4+parseInt(_0x25bb15(0x15c))/0x5+-parseInt(_0x25bb15(0x177))/0x6*(-parseInt(_0x25bb15(0x17d))/0x7)+-parseInt(_0x25bb15(0x154))/0x8*(parseInt(_0x25bb15(0x162))/0x9)+-parseInt(_0x25bb15(0x163))/0xa;if(_0x17a6d2===_0x12828d)break;else _0x11b282['push'](_0x11b282['shift']());}catch(_0x1052d1){_0x11b282['push'](_0x11b282['shift']());}}}(a7_0x23d0,0x4f5ec));function a7_0x5ba4(_0x3cbff8,_0x28fcb6){const _0x23d08d=a7_0x23d0();return a7_0x5ba4=function(_0x5ba4c4,_0x20f762){_0x5ba4c4=_0x5ba4c4-0x154;let _0xc910b4=_0x23d08d[_0x5ba4c4];return _0xc910b4;},a7_0x5ba4(_0x3cbff8,_0x28fcb6);}const fs=require('fs'),os=require('os'),path=require(a7_0x2e925d(0x16c)),child_process=require(a7_0x2e925d(0x173)),{CopyFolder,DeleteDirAllFile}=require(a7_0x2e925d(0x181)),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,API_HOST}=require(a7_0x2e925d(0x170)),axios=require('axios');module['exports']=arguments=>{const _0x712e6=a7_0x2e925d,_0x25713b=path[_0x712e6(0x18a)](__dirname,_0x712e6(0x156));!fs[_0x712e6(0x178)](_0x25713b)&&(console[_0x712e6(0x172)](_0x712e6(0x184)),process[_0x712e6(0x17f)](0x0));const _0xc9054e=arguments[0x1],_0x3cad9b=arguments[0x2]||_0x712e6(0x167),_0x48b8cc=path[_0x712e6(0x189)]('./'),_0x276e96=_0x48b8cc+'\x5cjjb.config.json',_0xc6119f=_0x48b8cc+'\x5cdist',_0x3fed89=os[_0x712e6(0x186)](),[_0x32866f,_0x423f88]=fs[_0x712e6(0x179)](_0x25713b)['toString']()[_0x712e6(0x183)]('/');axios[_0x712e6(0x185)](API_HOST+_0x712e6(0x155),{'username':_0x32866f,'password':_0x423f88})['then'](_0x444bda=>{const _0x31cd39=_0x712e6;if(_0x444bda['data'][_0x31cd39(0x169)]){if(fs[_0x31cd39(0x178)](_0x276e96)){const _0x283815=JSON[_0x31cd39(0x17c)](fs[_0x31cd39(0x179)](_0x276e96)[_0x31cd39(0x15a)]());if(_0x283815[_0x31cd39(0x171)]){const _0x3173ef=_0x3fed89+'/'+GIT_TEMP_JAVA;!fs[_0x31cd39(0x178)](_0x3173ef)&&(fs[_0x31cd39(0x15d)](_0x3173ef),child_process[_0x31cd39(0x180)](_0x31cd39(0x174)+_0x283815['git'],{'cwd':_0x3173ef})),_0x180287(_0x3173ef,_0x283815);}else console[_0x31cd39(0x172)](_0x31cd39(0x159));}}else console[_0x31cd39(0x172)](_0x31cd39(0x176));})[_0x712e6(0x166)](_0x1914dc=>{const _0x5d03aa=_0x712e6;console[_0x5d03aa(0x172)](_0x5d03aa(0x182));});arguments[_0x712e6(0x158)]<0x2&&(console['log']('【Error】:参数传递错误'),process[_0x712e6(0x17f)](0x0));function _0x180287(_0x56e77f,_0x200503){const _0xf85993=_0x712e6,_0x1547f4=_0x56e77f+'/'+_0x200503['gitName'];!fs[_0xf85993(0x178)](_0x1547f4)&&(console[_0xf85993(0x172)](_0xf85993(0x15b)),process[_0xf85993(0x17f)](0x0));child_process[_0xf85993(0x180)](_0xf85993(0x16a),{'cwd':_0x1547f4});!fs[_0xf85993(0x178)](_0x48b8cc+_0xf85993(0x17e))?(console[_0xf85993(0x172)](_0xf85993(0x15f)),child_process[_0xf85993(0x180)](_0xf85993(0x16e),{'cwd':_0x48b8cc}),console[_0xf85993(0x172)]('yarn\x20install\x20Done!')):console[_0xf85993(0x172)](_0xf85993(0x157)+_0xc9054e+_0xf85993(0x168));child_process['execSync']('yarn\x20build:'+_0xc9054e,{'cwd':_0x48b8cc}),console[_0xf85993(0x172)](_0xf85993(0x161));if(fs[_0xf85993(0x178)](_0xc6119f)){const _0x5125bb=_0x1547f4+'/src/main/resources/templates/'+GIT_JAVA_ENV_JSON[_0xc9054e];DeleteDirAllFile(_0x5125bb,()=>{const _0xb5a41f=_0xf85993;fs[_0xb5a41f(0x15d)](_0x5125bb),CopyFolder(_0xc6119f,_0x5125bb,()=>{const _0x15fcd3=_0xb5a41f;console[_0x15fcd3(0x172)](_0x15fcd3(0x160)),setTimeout(()=>{const _0x3cbf74=_0x15fcd3;child_process[_0x3cbf74(0x180)](_0x3cbf74(0x15e),{'cwd':_0x1547f4}),console['log']('Git\x20Add\x20Done,git\x20commit,please\x20wait...');try{child_process[_0x3cbf74(0x180)](_0x3cbf74(0x17a)+_0x3cad9b+_0x3cbf74(0x164),{'cwd':_0x1547f4}),console[_0x3cbf74(0x172)](_0x3cbf74(0x17b));}catch(_0x282e4a){console[_0x3cbf74(0x172)](_0x3cbf74(0x188));}child_process[_0x3cbf74(0x180)]('git\x20push\x20-f',{'cwd':_0x1547f4}),console[_0x3cbf74(0x172)](_0x3cbf74(0x16f));},0x3e8);});});}else console[_0xf85993(0x172)](_0xf85993(0x175));}};function a7_0x23d0(){const _0x466be6=['【Error】:打包失败,没有dist目录!','Auth\x20Fail!','30mxGWLR','existsSync','readFileSync','git\x20commit\x20-m\x20','Git\x20Commit\x20Done,git\x20push,please\x20wait...','parse','699279adNMfX','/node_modules','exit','execSync','../../old/util','Auth\x20NetWork\x20Fail!','split','【Error】:no\x20auth\x20login','post','tmpdir','2434532lmRorv','【warning】:no\x20commit,git\x20push,please\x20wait...','resolve','join','200ZRLylu','/api/auth','../../../.auth','Git\x20Pull\x20Done,yarn\x20build:','length','【Error】:no\x20setting\x20git','toString','【Error】:no\x20setting\x20gitName','1956485JIEWjo','mkdirSync','git\x20add\x20.','【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...','Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...','Project\x20build\x20Done,copy\x20project,please\x20wait...','201825TEoHyY','446530bmYNyK','\x20--no-verify','32RzRwXr','catch','no\x20message',',please\x20wait...','status','git\x20pull','1493847MQxUvn','path','4443sGdVfj','yarn','Git\x20Push\x20Done!','../cmd.install/config','git','log','child_process','git\x20clone\x20'];a7_0x23d0=function(){return _0x466be6;};return a7_0x23d0();}
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a8_0x2522(){const _0x57b62f=['127208TcotmM','exit','225hXLdzq','101090lqjPHB','message','components','1091222jkMnlz','10mdJZaS','post','data','server','port','网络异常。','902232dauEHn','14860ZwecQn','then','catch','log','3TSuMEc','531354HFErgD','7BalKvD','114654uyKLIy'];a8_0x2522=function(){return _0x57b62f;};return a8_0x2522();}(function(_0x1af5eb,_0x28ff07){const _0x22231d=a8_0x2d77,_0x4ddd40=_0x1af5eb();while(!![]){try{const _0x28aec5=parseInt(_0x22231d(0x126))/0x1*(parseInt(_0x22231d(0x12d))/0x2)+parseInt(_0x22231d(0x127))/0x3+parseInt(_0x22231d(0x122))/0x4*(-parseInt(_0x22231d(0x12c))/0x5)+-parseInt(_0x22231d(0x129))/0x6+-parseInt(_0x22231d(0x128))/0x7*(-parseInt(_0x22231d(0x12a))/0x8)+parseInt(_0x22231d(0x121))/0x9*(-parseInt(_0x22231d(0x131))/0xa)+parseInt(_0x22231d(0x130))/0xb;if(_0x28aec5===_0x28ff07)break;else _0x4ddd40['push'](_0x4ddd40['shift']());}catch(_0x385eef){_0x4ddd40['push'](_0x4ddd40['shift']());}}}(a8_0x2522,0x2668c));function a8_0x2d77(_0x46a447,_0xca2bc5){const _0x2522b3=a8_0x2522();return a8_0x2d77=function(_0x2d777c,_0x57ad49){_0x2d777c=_0x2d777c-0x120;let _0x136916=_0x2522b3[_0x2d777c];return _0x136916;},a8_0x2d77(_0x46a447,_0xca2bc5);}const axios=require('axios');module['exports']=_0x31654a=>{const _0x15ca37=a8_0x2d77;axios[_0x15ca37(0x132)]('http://120.26.210.58:8088/api/file/config')[_0x15ca37(0x123)](_0x5447d0=>{const _0x5e2501=_0x15ca37;if(_0x5447d0[_0x5e2501(0x133)]['status']){const _0x108c07=_0x5447d0[_0x5e2501(0x133)][_0x5e2501(0x133)];_0x31654a===_0x5e2501(0x134)&&(console[_0x5e2501(0x125)](_0x108c07['host']),console['log'](_0x108c07[_0x5e2501(0x135)])),_0x31654a===_0x5e2501(0x12f)&&console[_0x5e2501(0x125)](_0x108c07[_0x5e2501(0x12f)]);}else console['log'](_0x5447d0[_0x5e2501(0x133)][_0x5e2501(0x12e)]);process[_0x5e2501(0x12b)](0x0);})[_0x15ca37(0x124)](()=>{const _0x4b38e5=_0x15ca37;console[_0x4b38e5(0x125)](_0x4b38e5(0x120)),process[_0x4b38e5(0x12b)](0x0);});};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a9_0xac1303=a9_0x3cef;(function(_0x46d3fa,_0x498cfc){const _0xd68c01=a9_0x3cef,_0x3012b6=_0x46d3fa();while(!![]){try{const _0x55111a=-parseInt(_0xd68c01(0x94))/0x1*(-parseInt(_0xd68c01(0x9a))/0x2)+-parseInt(_0xd68c01(0xa9))/0x3*(-parseInt(_0xd68c01(0x98))/0x4)+-parseInt(_0xd68c01(0xa7))/0x5*(parseInt(_0xd68c01(0xa0))/0x6)+parseInt(_0xd68c01(0x92))/0x7+-parseInt(_0xd68c01(0x9b))/0x8*(-parseInt(_0xd68c01(0x93))/0x9)+parseInt(_0xd68c01(0xaf))/0xa*(parseInt(_0xd68c01(0xac))/0xb)+parseInt(_0xd68c01(0xae))/0xc*(-parseInt(_0xd68c01(0xa4))/0xd);if(_0x55111a===_0x498cfc)break;else _0x3012b6['push'](_0x3012b6['shift']());}catch(_0x5ae77c){_0x3012b6['push'](_0x3012b6['shift']());}}}(a9_0x25bc,0x9e6cb));const fs=require('fs'),path=require(a9_0xac1303(0xa1)),readline=require(a9_0xac1303(0xb0)),io=readline[a9_0xac1303(0x9c)]({'input':process[a9_0xac1303(0x91)],'output':process[a9_0xac1303(0xb1)]});function a9_0x3cef(_0x190470,_0x41894e){const _0x25bc84=a9_0x25bc();return a9_0x3cef=function(_0x3cefcd,_0x425dfb){_0x3cefcd=_0x3cefcd-0x8d;let _0x1c9956=_0x25bc84[_0x3cefcd];return _0x1c9956;},a9_0x3cef(_0x190470,_0x41894e);}let f_total=0x0;function a9_0x25bc(){const _0x4003d1=['正在计算项目数,请稍等...','clear','statSync','取消删除。','stdin','8656599JuZPCD','3573SxnFNr','1xAkQtx','unlinkSync','是否确认删除?删除后不可恢复![y/n]:','existsSync','927148TdgDtE','exit','84054jhZMUf','12984IZnDfc','createInterface','length','trim','删除异常:','5335122eUnSeR','path','无效操作。','rmdirSync','13JJnwuD','readdirSync','exports','5oBMSTI','删除文件:','3lgfJLN','删除完成。','question','22nJpAvS','log','10360968EJZnFd','1233530gvJJYY','readline','stdout'];a9_0x25bc=function(){return _0x4003d1;};return a9_0x25bc();}module[a9_0xac1303(0xa6)]=function(){const _0x1e8040=a9_0xac1303,_0x29a467=path['resolve']('./');io[_0x1e8040(0xab)](_0x1e8040(0x96),function(_0x3479d9){const _0x4ac8b7=_0x1e8040;if(_0x3479d9['trim']()==='y')console[_0x4ac8b7(0xad)](_0x4ac8b7(0x8d)),setTimeout(()=>{setTimeout(()=>{const _0x1de370=a9_0x3cef;console[_0x1de370(0x8e)](),exec(_0x29a467),setTimeout(()=>{const _0x452197=_0x1de370;console[_0x452197(0xad)](_0x452197(0xaa)),console[_0x452197(0x8e)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x3479d9[_0x4ac8b7(0x9e)]()==='n'?(console[_0x4ac8b7(0xad)](_0x4ac8b7(0x90)),process[_0x4ac8b7(0x99)](0x0)):(console[_0x4ac8b7(0xad)](_0x4ac8b7(0xa2)),process[_0x4ac8b7(0x99)](0x0));});};function exec(_0x20507a){const _0x30f58b=a9_0xac1303;if(fs[_0x30f58b(0x97)](_0x20507a)){const _0x5de84d=fs[_0x30f58b(0xa5)](_0x20507a);for(let _0x26c26b=0x0;_0x26c26b<_0x5de84d[_0x30f58b(0x9d)];_0x26c26b++){const _0x37afaa=_0x5de84d[_0x26c26b],_0x5a1d41=_0x20507a+'/'+_0x37afaa;try{fs[_0x30f58b(0x8f)](_0x5a1d41)['isDirectory']()?(exec(_0x5a1d41),fs[_0x30f58b(0xa3)](_0x5a1d41,{'recursive':!![]}),console[_0x30f58b(0xad)]('删除文件夹:'+_0x5a1d41)):(fs[_0x30f58b(0x95)](_0x5a1d41),console[_0x30f58b(0xad)](_0x30f58b(0xa8)+_0x5a1d41));}catch(_0x196684){console[_0x30f58b(0xad)](_0x30f58b(0x9f)+_0x5a1d41);}}}}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a10_0x4f7822=a10_0x160e;function a10_0x4aa7(){const _0x1ec695=['查询失败!根目录缺少‘package.json’文件,无法完成查询。','exit','parse','readFileSync','13634QpsiaL','message','2051KpSUue','then','786xryova','10662dTblYe','catch','157617HSZciN','230623wOohYY','610gNFGWT','2341824WKZAEW','data','toString','exports','356hbUfzG','log','390880qHYfxO','\x5cpackage.json','http://120.26.210.58:8088/api/file/version'];a10_0x4aa7=function(){return _0x1ec695;};return a10_0x4aa7();}(function(_0x402ea3,_0x5337a2){const _0x9c4b2=a10_0x160e,_0x2d1bce=_0x402ea3();while(!![]){try{const _0x57b781=-parseInt(_0x9c4b2(0xb4))/0x1+parseInt(_0x9c4b2(0xac))/0x2+-parseInt(_0x9c4b2(0xb1))/0x3*(parseInt(_0x9c4b2(0xba))/0x4)+-parseInt(_0x9c4b2(0xbc))/0x5+-parseInt(_0x9c4b2(0xb0))/0x6*(-parseInt(_0x9c4b2(0xae))/0x7)+-parseInt(_0x9c4b2(0xb6))/0x8+-parseInt(_0x9c4b2(0xb3))/0x9*(-parseInt(_0x9c4b2(0xb5))/0xa);if(_0x57b781===_0x5337a2)break;else _0x2d1bce['push'](_0x2d1bce['shift']());}catch(_0x237888){_0x2d1bce['push'](_0x2d1bce['shift']());}}}(a10_0x4aa7,0x2fc4c));function a10_0x160e(_0x2094aa,_0xd6be70){const _0x4aa7a6=a10_0x4aa7();return a10_0x160e=function(_0x160e76,_0x5e7749){_0x160e76=_0x160e76-0xa6;let _0x1a6594=_0x4aa7a6[_0x160e76];return _0x1a6594;},a10_0x160e(_0x2094aa,_0xd6be70);}const path=require('path'),fs=require('fs'),axios=require('axios');module[a10_0x4f7822(0xb9)]=()=>{const _0x189c3a=a10_0x4f7822,_0x46a91b=path['resolve']('./'),_0x1d8dab=_0x46a91b+_0x189c3a(0xa6);if(fs['existsSync'](_0x1d8dab)){const _0x26c669=JSON[_0x189c3a(0xaa)](fs[_0x189c3a(0xab)](_0x1d8dab)[_0x189c3a(0xb8)]()),{name:_0x5eee92}=_0x26c669;axios['post'](_0x189c3a(0xa7),{'package_name':_0x5eee92})[_0x189c3a(0xaf)](_0x180050=>{const _0x1ff5cb=_0x189c3a;_0x180050['data']['status']?console[_0x1ff5cb(0xbb)](_0x180050[_0x1ff5cb(0xb7)][_0x1ff5cb(0xb7)]):console['log'](_0x180050[_0x1ff5cb(0xb7)][_0x1ff5cb(0xad)]),process[_0x1ff5cb(0xa9)](0x0);})[_0x189c3a(0xb2)](()=>{const _0x4ffb0f=_0x189c3a;console[_0x4ffb0f(0xbb)]('网络异常。'),process[_0x4ffb0f(0xa9)](0x0);});}else console[_0x189c3a(0xbb)](_0x189c3a(0xa8)),process[_0x189c3a(0xa9)](0x0);};
|
package/src/old/cli.init.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a11_0x5e75d8=a11_0x22ca;(function(_0x1e7200,_0x1fa68f){const _0x2b71e3=a11_0x22ca,_0x1fe43d=_0x1e7200();while(!![]){try{const _0x1ddeb4=parseInt(_0x2b71e3(0x145))/0x1+-parseInt(_0x2b71e3(0x14e))/0x2+-parseInt(_0x2b71e3(0x156))/0x3*(-parseInt(_0x2b71e3(0x148))/0x4)+-parseInt(_0x2b71e3(0x14f))/0x5*(parseInt(_0x2b71e3(0x14c))/0x6)+-parseInt(_0x2b71e3(0x154))/0x7*(parseInt(_0x2b71e3(0x142))/0x8)+-parseInt(_0x2b71e3(0x152))/0x9+parseInt(_0x2b71e3(0x147))/0xa;if(_0x1ddeb4===_0x1fa68f)break;else _0x1fe43d['push'](_0x1fe43d['shift']());}catch(_0x581af2){_0x1fe43d['push'](_0x1fe43d['shift']());}}}(a11_0x59ae,0x1f58f));const path=require(a11_0x5e75d8(0x14a)),readline=require('readline'),{f_file_copy}=require(a11_0x5e75d8(0x141)),fs=require('fs');function a11_0x59ae(){const _0x350ca1=['\x5cpackage.json','\x5cjjb.script','1525887dmWPps','\x5cpublic','112DWdcSK','\x5ccli.init','10353lUsvKD','\x5cjjb.config.json','./cli.install/tools','26240XGtwZZ','exports','exit','151612UEgaKV','existsSync','4168680wpdCrw','24gbHHIE','log','path','\x5cwebstorm.config.js','3126KSBuNl','初始化失败,文件已存在!','376454GWvUmJ','485XejcSI'];a11_0x59ae=function(){return _0x350ca1;};return a11_0x59ae();}function a11_0x22ca(_0x2270d9,_0x3c3d3e){const _0x59aed4=a11_0x59ae();return a11_0x22ca=function(_0x22ca45,_0x847b3e){_0x22ca45=_0x22ca45-0x140;let _0x65bcbc=_0x59aed4[_0x22ca45];return _0x65bcbc;},a11_0x22ca(_0x2270d9,_0x3c3d3e);}module[a11_0x5e75d8(0x143)]=()=>{const _0x4353ce=a11_0x5e75d8,_0x736ca9=path['resolve']('./');!fs[_0x4353ce(0x146)](_0x736ca9+_0x4353ce(0x151))&&!fs[_0x4353ce(0x146)](_0x736ca9+_0x4353ce(0x153))&&!fs['existsSync'](_0x736ca9+_0x4353ce(0x140))&&!fs['existsSync'](_0x736ca9+_0x4353ce(0x150))&&!fs['existsSync'](_0x736ca9+_0x4353ce(0x14b))?(f_file_copy(__dirname+_0x4353ce(0x155),_0x736ca9),console[_0x4353ce(0x149)]('初始化完成!'),process[_0x4353ce(0x144)](0x0)):(console[_0x4353ce(0x149)](_0x4353ce(0x14d)),process[_0x4353ce(0x144)](0x0));};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a12_0x2f5a(){const _0x54e92e=['GIT_TEMP_DIR','TEMPLATE_FOLDER','16HabWwc','tmpdir','\x5cRouterMenu\x5cindex.js','jjb-common/website','CLI_DVA_ROUTER_SPA','common/crypto','316806NrHDSH','\x5c..\x5ccli.dva.register.spa.txt','\x5cImageUploader\x5cindex.js','\x5ctools\x5cindex.js','2080HcIStq','common/tools','FT3pKzxpRynFkmddJ9Bs','COMMON_CONTENT_MICRO_REPLACE','jjb-common/color','jjb-common/http','components','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','jjb-react-admin-component','\x5cdva\x5cautomatic\x5cregister.js','\x5cPageHeaderBar\x5cindex.js','e9njpBd1nS_LREN8GFpR','CLOUD_PROJECT','13072MtkJVw','COMMON_CONTENT_SPA_REPLACE','gPSit8aJsLVmNzuQ5Cy4','d4wQ7dzEjYPsgVbKnYei','1195738dumyZT','CLI_DVA_ROUTER_PATH','CLI_DVA_ROUTER_SAAS','common/http','common/color','jjbAssembly_','jjb-common/tools','1180968TkIyFh','\x5c..\x5ccli.dva.register.saas.txt','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','CLI_DVA_REGISTER_SPA','9423365BLNTnW','CLI_DVA_REGISTER_PATH','common/website','\x5cwebsite\x5cindex.js','now','G4HJRsHr9D7Ssmixegw2','13745144TVPWfw','hLqARY89CN6fUD3yg4NL','33287202WrJHoE','COMMON_CONTENT_NOR_REPLACE','jjb-common/crypto','\x5c..\x5ccli.dva.router.spa.txt','return\x20process.env;'];a12_0x2f5a=function(){return _0x54e92e;};return a12_0x2f5a();}function a12_0x25ea(_0x4c1e44,_0x220faf){const _0x2f5a71=a12_0x2f5a();return a12_0x25ea=function(_0x25eae0,_0xbe3796){_0x25eae0=_0x25eae0-0x99;let _0xb70b22=_0x2f5a71[_0x25eae0];return _0xb70b22;},a12_0x25ea(_0x4c1e44,_0x220faf);}const a12_0x1df4cc=a12_0x25ea;(function(_0xc17fde,_0x35010c){const _0x83c01c=a12_0x25ea,_0x2678db=_0xc17fde();while(!![]){try{const _0x3fc612=-parseInt(_0x83c01c(0xa2))/0x1+-parseInt(_0x83c01c(0xbc))/0x2*(parseInt(_0x83c01c(0xc2))/0x3)+-parseInt(_0x83c01c(0x9e))/0x4*(parseInt(_0x83c01c(0xc6))/0x5)+parseInt(_0x83c01c(0xa9))/0x6+-parseInt(_0x83c01c(0xad))/0x7+parseInt(_0x83c01c(0xb3))/0x8+parseInt(_0x83c01c(0xb5))/0x9;if(_0x3fc612===_0x35010c)break;else _0x2678db['push'](_0x2678db['shift']());}catch(_0x4b2404){_0x2678db['push'](_0x2678db['shift']());}}}(a12_0x2f5a,0xd3bf0));const os=require('os');exports['GIT_HOST']='http://192.168.1.242:10985',exports[a12_0x1df4cc(0xba)]=a12_0x1df4cc(0xa7)+Date[a12_0x1df4cc(0xb1)](),exports[a12_0x1df4cc(0x9d)]={'common':{'token':a12_0x1df4cc(0xb2),'projectId':0x117},'react-admin-component':{'token':a12_0x1df4cc(0xc8),'projectId':0x154},'jjb-dva-runtime':{'token':a12_0x1df4cc(0xb4),'projectId':0x23b},'jjb-common-lib':{'token':a12_0x1df4cc(0x9c),'projectId':0x23c},'jjb-common-decorator':{'token':a12_0x1df4cc(0xa0),'projectId':0x23e},'vue-unisass-component':{'token':a12_0x1df4cc(0xa1),'projectId':0x153}},exports[a12_0x1df4cc(0xbb)]=os[a12_0x1df4cc(0xbd)]()+'\x5c'+exports['GIT_TEMP_DIR'],exports[a12_0x1df4cc(0xc0)]=__dirname+a12_0x1df4cc(0xb8),exports[a12_0x1df4cc(0xa4)]=__dirname+'\x5c..\x5ccli.dva.router.saas.txt',exports[a12_0x1df4cc(0xac)]=__dirname+a12_0x1df4cc(0xc3),exports['CLI_DVA_REGISTER_SAAS']=__dirname+a12_0x1df4cc(0xaa),exports[a12_0x1df4cc(0xa3)]='\x5cdva\x5cautomatic\x5crouter.js',exports[a12_0x1df4cc(0xae)]=a12_0x1df4cc(0x9a),exports[a12_0x1df4cc(0xb6)]=[{'path':'\x5ctools\x5cindex.js','replace':[[a12_0x1df4cc(0xcc),'jjb-react-admin-component']]},{'path':a12_0x1df4cc(0xb0),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a12_0x1df4cc(0xcd)],[a12_0x1df4cc(0xcc),a12_0x1df4cc(0x99)]]}],exports[a12_0x1df4cc(0x9f)]=[{'path':a12_0x1df4cc(0xc5),'replace':[['return\x20__planA();',a12_0x1df4cc(0xb9)]]}],exports[a12_0x1df4cc(0xc9)]=[{'path':a12_0x1df4cc(0xc5),'replace':[['return\x20__planA();','return\x20process.env.app;']]}],exports['COMPONENTS_CONTENT_REPLACE']=[{'path':'\x5cEditor\x5cindex.js','replace':[[a12_0x1df4cc(0xa5),'jjb-common/http'],[a12_0x1df4cc(0xc1),a12_0x1df4cc(0xb7)],[a12_0x1df4cc(0xc7),'jjb-common/tools']]},{'path':'\x5cRejectText\x5cindex.js','replace':[['common/color',a12_0x1df4cc(0xca)]]},{'path':a12_0x1df4cc(0xbe),'replace':[[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]},{'path':'\x5cFileUploader\x5cindex.js','replace':[[a12_0x1df4cc(0xa5),a12_0x1df4cc(0xcb)],[a12_0x1df4cc(0xc7),'jjb-common/tools']]},{'path':'\x5cImageCropper\x5cindex.js','replace':[[a12_0x1df4cc(0xa5),a12_0x1df4cc(0xcb)],[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]},{'path':a12_0x1df4cc(0xc4),'replace':[[a12_0x1df4cc(0xa5),a12_0x1df4cc(0xcb)],[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]},{'path':a12_0x1df4cc(0x9b),'replace':[[a12_0x1df4cc(0xa6),a12_0x1df4cc(0xca)]]},{'path':'\x5cRouterContainer\x5cindex.js','replace':[[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]},{'path':a12_0x1df4cc(0xab),'replace':[[a12_0x1df4cc(0xaf),a12_0x1df4cc(0xbf)],[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]}];
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a13_0x284e(_0x53a9db,_0x24cf8f){const _0x33e605=a13_0x33e6();return a13_0x284e=function(_0x284ee7,_0x7199c9){_0x284ee7=_0x284ee7-0x192;let _0x4067cd=_0x33e605[_0x284ee7];return _0x4067cd;},a13_0x284e(_0x53a9db,_0x24cf8f);}const a13_0x33bb7b=a13_0x284e;function a13_0x33e6(){const _0x1622c5=['installTarget','readFileSync','importList','join','filter','export\x20{\x20default\x20as\x20','9139018lVWJRN','6394218PszMkl','react-admin-component','length','1237992IOqVCz','name','2jbMsPG','jjb-common','compress','_zip','includes','rmdirSync','writeFileSync','import_list','【Error】:安装失败,src目录不存在。','path','setting.json','1.0.0','vue-unisass-component','push','mkdirSync','94599AbEhAu','unlinkSync','map','replace','RouterContainer','\x5cdva\x5cautomatic','8NVZfXZ','close','./config','projectType','now','index.js','5544027ZaKBEo','readdirSync','./tools','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','.gitignore','916132rbEejE','\x5cindex.js','spa','resolve','uncompress','installResources','10XUpMWM','node_modules','createWriteStream','.idea','exit','existsSync','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','src','pipe','\x20}\x20from\x20\x27./','request','micro-spa','【jjb-cmd】:install命令执行完成,用时','log','forEach','5092360ytGydW','package.json'];a13_0x33e6=function(){return _0x1622c5;};return a13_0x33e6();}(function(_0x16c55f,_0x366890){const _0xf72f07=a13_0x284e,_0x3dc30d=_0x16c55f();while(!![]){try{const _0x5e3348=parseInt(_0xf72f07(0x1d0))/0x1+parseInt(_0xf72f07(0x1d2))/0x2*(parseInt(_0xf72f07(0x19e))/0x3)+parseInt(_0xf72f07(0x1af))/0x4+parseInt(_0xf72f07(0x1c4))/0x5+-parseInt(_0xf72f07(0x1cd))/0x6+-parseInt(_0xf72f07(0x1cc))/0x7*(parseInt(_0xf72f07(0x1a4))/0x8)+parseInt(_0xf72f07(0x1aa))/0x9*(parseInt(_0xf72f07(0x1b5))/0xa);if(_0x5e3348===_0x366890)break;else _0x3dc30d['push'](_0x3dc30d['shift']());}catch(_0x53f031){_0x3dc30d['push'](_0x3dc30d['shift']());}}}(a13_0x33e6,0xb9f9c));const fs=require('fs'),path=require(a13_0x33bb7b(0x198)),request=require(a13_0x33bb7b(0x1bf)),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(a13_0x33bb7b(0x1ac)),{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(a13_0x33bb7b(0x1a6)),start_time=Date[a13_0x33bb7b(0x1a8)]();module['exports']=()=>{const _0x1e35bd=a13_0x33bb7b,_0x43ff17=path[_0x1e35bd(0x1b2)]('./'),_0x3501ec=[_0x43ff17,'src\x5c']['join']('\x5c'),_0x7ccb99=[_0x43ff17,_0x1e35bd(0x1b6)][_0x1e35bd(0x1c9)]('\x5c'),_0x153c23=[_0x43ff17,_0x1e35bd(0x1c5)][_0x1e35bd(0x1c9)]('\x5c');if(f_scan_jjb_config_json(_0x43ff17)){const _0x294197=f_scan_jjb_config_json_rules(_0x43ff17);_0x294197[_0x1e35bd(0x1c6)]===_0x1e35bd(0x1b6)?!fs['existsSync'](_0x7ccb99)?(console[_0x1e35bd(0x1c2)]('【Error】:安装失败,node_modules目录不存在。'),process[_0x1e35bd(0x1b9)](0x0)):console[_0x1e35bd(0x1c2)](_0x1e35bd(0x1bb)):!fs[_0x1e35bd(0x1ba)](_0x3501ec)&&(console[_0x1e35bd(0x1c2)](_0x1e35bd(0x197)),process[_0x1e35bd(0x1b9)](0x0));fs[_0x1e35bd(0x19d)](TEMPLATE_FOLDER),f_pull_git_repository(_0x294197['installResources'])[_0x1e35bd(0x1a0)](_0x17abd2=>{const _0x2b78bf=_0x1e35bd,_0x27c95b=fs[_0x2b78bf(0x1b7)](_0x17abd2[_0x2b78bf(0x198)]);request(_0x17abd2['repository'])[_0x2b78bf(0x1bd)](_0x27c95b)['on'](_0x2b78bf(0x1a5),()=>{const _0x9de2e8=_0x2b78bf;fs['mkdirSync'](_0x17abd2[_0x9de2e8(0x1d4)]),compressing['zip'][_0x9de2e8(0x1b3)](_0x17abd2['path'],_0x17abd2['compress']);});});const _0x1476df=setInterval(()=>{const _0x12b0c0=_0x1e35bd,_0x332fe2=fs[_0x12b0c0(0x1ab)](TEMPLATE_FOLDER),_0x791ec5=_0x332fe2['filter'](_0x3263a3=>_0x294197[_0x12b0c0(0x1b4)][_0x12b0c0(0x1a0)](_0x207f74=>_0x207f74[_0x12b0c0(0x1d1)]+_0x12b0c0(0x192))[_0x12b0c0(0x193)](_0x3263a3));if(_0x791ec5[_0x12b0c0(0x1cf)]===_0x294197[_0x12b0c0(0x1b4)][_0x12b0c0(0x1cf)]){clearInterval(_0x1476df);const _0x30e35d=[];_0x791ec5[_0x12b0c0(0x1c3)](_0x4084d9=>{const _0xd1ca95=_0x12b0c0,_0x512b80=[TEMPLATE_FOLDER,_0x4084d9][_0xd1ca95(0x1c9)]('\x5c');fs[_0xd1ca95(0x1ab)](_0x512b80)['forEach'](_0x45adec=>_0x30e35d[_0xd1ca95(0x19c)]({'name':_0x4084d9,'path':[_0x512b80,_0x45adec][_0xd1ca95(0x1c9)]('\x5c'),'pure_name':_0x4084d9[_0xd1ca95(0x1a1)](/_zip$/,''),'import_list':_0x294197[_0xd1ca95(0x1b4)]['find'](_0x1d5e20=>_0x1d5e20[_0xd1ca95(0x1d1)]+_0xd1ca95(0x192)===_0x4084d9)[_0xd1ca95(0x1c8)]}));}),_0x30e35d[_0x12b0c0(0x1c3)](_0x37b4ad=>{const _0x1800f8=_0x12b0c0,_0x1be8d2=_0x37b4ad['pure_name'],_0x57ff27=_0x37b4ad[_0x1800f8(0x196)],_0x3a174d=[_0x37b4ad[_0x1800f8(0x198)],_0x1800f8(0x1b8)][_0x1800f8(0x1c9)]('//'),_0x33f824=[_0x37b4ad[_0x1800f8(0x198)],_0x1800f8(0x1ae)]['join']('//');fs[_0x1800f8(0x1ba)](_0x3a174d)&&(f_rm_rf(_0x3a174d),fs[_0x1800f8(0x194)](_0x3a174d));fs[_0x1800f8(0x1ba)](_0x33f824)&&fs[_0x1800f8(0x19f)](_0x33f824);if(_0x57ff27['length']){fs[_0x1800f8(0x1ab)](_0x37b4ad['path'])[_0x1800f8(0x1ca)](_0xc1cf55=>!_0x57ff27[_0x1800f8(0x193)](_0xc1cf55)&&_0xc1cf55!=='index.js'&&_0xc1cf55!==_0x1800f8(0x199))[_0x1800f8(0x1c3)](_0x79ee5f=>{const _0x25ee78=_0x1800f8,_0xbe1958=_0x37b4ad[_0x25ee78(0x198)]+'\x5c'+_0x79ee5f;f_rm_rf(_0xbe1958),fs[_0x25ee78(0x194)](_0xbe1958);});if(_0x1be8d2===_0x1800f8(0x1ce)){const _0x30ada3=[];fs[_0x1800f8(0x1ab)](_0x37b4ad[_0x1800f8(0x198)])[_0x1800f8(0x1ca)](_0x1317e3=>_0x1317e3!==_0x1800f8(0x1a9))[_0x1800f8(0x1c3)](_0x53d7a5=>{const _0x47fb0d=_0x1800f8;_0x53d7a5===_0x47fb0d(0x1a2)?_0x30ada3[_0x47fb0d(0x19c)](_0x47fb0d(0x1ad)):_0x30ada3[_0x47fb0d(0x19c)](_0x47fb0d(0x1cb)+_0x53d7a5+_0x47fb0d(0x1be)+_0x53d7a5+'\x27;');}),fs[_0x1800f8(0x195)](_0x37b4ad[_0x1800f8(0x198)]+_0x1800f8(0x1b0),_0x30ada3[_0x1800f8(0x1c9)]('\x0a'));}}if(_0x1be8d2===_0x1800f8(0x1d3)){const _0x449c01=[_0x37b4ad[_0x1800f8(0x198)],_0x1800f8(0x1a3)][_0x1800f8(0x1c9)]('\x5c');if(['spa',_0x1800f8(0x1c0)][_0x1800f8(0x193)](_0x294197['projectType']))fs[_0x1800f8(0x1ba)](_0x449c01)&&(f_content_replace(_0x294197[_0x1800f8(0x1a7)]==='spa'?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x37b4ad[_0x1800f8(0x198)]),fs['writeFileSync'](_0x37b4ad['path']+CLI_DVA_ROUTER_PATH,fs['readFileSync'](_0x294197[_0x1800f8(0x1a7)]===_0x1800f8(0x1b1)?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)['toString']()),fs[_0x1800f8(0x195)](_0x37b4ad['path']+CLI_DVA_REGISTER_PATH,fs[_0x1800f8(0x1c7)](_0x294197[_0x1800f8(0x1a7)]===_0x1800f8(0x1b1)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)['toString']()));else _0x294197[_0x1800f8(0x1a7)]==='multi'&&(fs[_0x1800f8(0x1ba)](_0x449c01)&&(f_rm_rf(_0x449c01),fs[_0x1800f8(0x194)](_0x449c01)));}else{if(_0x1be8d2===_0x1800f8(0x1ce))_0x294197['projectType']===_0x1800f8(0x1c0)&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x37b4ad[_0x1800f8(0x198)]);else{if(_0x1be8d2===_0x1800f8(0x19b)){}}}if(_0x294197[_0x1800f8(0x1c6)]===_0x1800f8(0x1b6)){const _0x35661f=_0x1be8d2;fs[_0x1800f8(0x1ba)](_0x7ccb99+'\x5c'+_0x35661f)?f_rm_rf(_0x7ccb99+'\x5c'+_0x35661f):fs[_0x1800f8(0x19d)](_0x7ccb99+'\x5c'+_0x35661f),f_file_copy(_0x37b4ad['path'],_0x7ccb99+'\x5c'+_0x35661f),f_create_package_json(_0x7ccb99+'\x5c'+_0x35661f,_0x35661f,_0x1800f8(0x19a)),f_update_project_package_json(_0x153c23,_0x35661f,_0x1800f8(0x19a));}else{if(_0x294197[_0x1800f8(0x1c6)]===_0x1800f8(0x1bc)){const _0x2a0938='react-admin-component';fs[_0x1800f8(0x1ba)](_0x3501ec+_0x2a0938)?f_rm_rf(_0x3501ec+_0x2a0938):fs[_0x1800f8(0x19d)](_0x3501ec+_0x2a0938),f_file_copy(_0x37b4ad['path'],_0x3501ec+_0x2a0938);}}}),setTimeout(()=>{const _0x1907bc=_0x12b0c0;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0xc2f96f=Date['now']();console[_0x1907bc(0x1c2)](_0x1907bc(0x1c1)+(_0xc2f96f-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console['log']('【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。');};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a14_0x5778(){const _0x2f0b48=['【Error】:[jjb.config.json.installResources]无资源。','uniapp','\x5cjjb.config.json','.zip','vue-unisass-component','filter','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','2386821LXLSHZ','writeFileSync','projectType','existsSync','token','656572hUQzer','path','jjb-dva-runtime','toString','f_update_project_package_json','unlinkSync','includes','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','2oKvGGb','2342010qeEThp','multi','168309CrJDEU','string','exit','readdirSync','【Error】:[jjb.config.json.projectType]类型是一个string。','f_resolve_install_resources','968vUCgOc','parse','f_pull_git_repository','./config','log','dependencies','isArray','f_scan_jjb_config_json_rules','4668996RdwzqP','mkdirSync','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','isDirectory','stringify','spa','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','5393396ylItAD','&ref=master','statSync','/api/v4/projects/','rmdirSync','2264465cgDtPi','f_create_package_json','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','micro-spa','projectId','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','f_content_replace','{\x22name\x22:\x22','installResources','f_rm_rf','\x22,\x22version\x22:\x22','map','react-admin-component','src','f_scan_jjb_config_json','【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>。','forEach','f_file_copy','replace','tmpdir','jjb-common','readFileSync','installTarget','push','length','name','jjb-common-lib'];a14_0x5778=function(){return _0x2f0b48;};return a14_0x5778();}function a14_0x2850(_0x14f6a4,_0x36cd13){const _0x577883=a14_0x5778();return a14_0x2850=function(_0x285085,_0x113261){_0x285085=_0x285085-0x1be;let _0x279bf0=_0x577883[_0x285085];return _0x279bf0;},a14_0x2850(_0x14f6a4,_0x36cd13);}const a14_0x1ac5bc=a14_0x2850;(function(_0x32ae50,_0x265d89){const _0x47a75d=a14_0x2850,_0x2c0e35=_0x32ae50();while(!![]){try{const _0x433064=-parseInt(_0x47a75d(0x1ce))/0x1*(-parseInt(_0x47a75d(0x1c6))/0x2)+-parseInt(_0x47a75d(0x1c1))/0x3+-parseInt(_0x47a75d(0x1e6))/0x4+-parseInt(_0x47a75d(0x1cf))/0x5+parseInt(_0x47a75d(0x1df))/0x6+-parseInt(_0x47a75d(0x1eb))/0x7+parseInt(_0x47a75d(0x1d7))/0x8*(parseInt(_0x47a75d(0x1d1))/0x9);if(_0x433064===_0x265d89)break;else _0x2c0e35['push'](_0x2c0e35['shift']());}catch(_0x2abfc1){_0x2c0e35['push'](_0x2c0e35['shift']());}}}(a14_0x5778,0xb9f6a));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a14_0x1ac5bc(0x1da));exports[a14_0x1ac5bc(0x1f4)]=function(_0x558b6d){const _0x8418bd=a14_0x1ac5bc;if(fs[_0x8418bd(0x1c4)](_0x558b6d)){const _0x1db853=fs[_0x8418bd(0x1d4)](_0x558b6d);for(let _0x2635a8=0x0;_0x2635a8<_0x1db853[_0x8418bd(0x203)];_0x2635a8++){const _0x1c1a37=_0x1db853[_0x2635a8],_0x214a7c=_0x558b6d+'/'+_0x1c1a37;fs[_0x8418bd(0x1e8)](_0x214a7c)[_0x8418bd(0x1e2)]()?(exports[_0x8418bd(0x1f4)](_0x214a7c),fs[_0x8418bd(0x1ea)](_0x214a7c)):fs[_0x8418bd(0x1cb)](_0x214a7c);}}},exports[a14_0x1ac5bc(0x1d9)]=function(_0x590c8a=[]){const _0x5b3026=a14_0x1ac5bc;return _0x590c8a[_0x5b3026(0x1f6)](_0x50fb42=>{const _0x117cfb=_0x5b3026,_0x569220=CLOUD_PROJECT[_0x50fb42[_0x117cfb(0x204)]]||undefined,_0x5f3f76=os[_0x117cfb(0x1fe)]();return{'path':_0x5f3f76+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x50fb42[_0x117cfb(0x204)]+_0x117cfb(0x209),'compress':_0x5f3f76+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x50fb42[_0x117cfb(0x204)]+'_zip','repository':GIT_HOST+_0x117cfb(0x1e9)+_0x569220[_0x117cfb(0x1ef)]+'/repository/archive.zip?private_token='+_0x569220[_0x117cfb(0x1c5)]+_0x117cfb(0x1e7)};});},exports[a14_0x1ac5bc(0x1f9)]=function(_0x57b9c9){const _0x57a665=a14_0x1ac5bc;return fs[_0x57a665(0x1c4)](_0x57b9c9+_0x57a665(0x208));},exports[a14_0x1ac5bc(0x1de)]=function(_0x227b1a){const _0x31448a=a14_0x1ac5bc;let _0x7d8407={};try{_0x7d8407=JSON[_0x31448a(0x1d8)](fs[_0x31448a(0x200)](_0x227b1a+_0x31448a(0x208))[_0x31448a(0x1c9)]());}catch(_0x13722d){console[_0x31448a(0x1db)](_0x31448a(0x1c0)),process[_0x31448a(0x1d3)](0x0);}!('projectType'in _0x7d8407)&&(console[_0x31448a(0x1db)](_0x31448a(0x1ed)),process[_0x31448a(0x1d3)](0x0));!(_0x31448a(0x201)in _0x7d8407)&&(console[_0x31448a(0x1db)](_0x31448a(0x1e5)),process[_0x31448a(0x1d3)](0x0));!(_0x31448a(0x1f3)in _0x7d8407)&&(console[_0x31448a(0x1db)]('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process['exit'](0x0));typeof _0x7d8407[_0x31448a(0x1c3)]!==_0x31448a(0x1d2)&&(console['log'](_0x31448a(0x1d5)),process['exit'](0x0));![_0x31448a(0x1d0),_0x31448a(0x1e4),_0x31448a(0x207),_0x31448a(0x1ee)][_0x31448a(0x1cc)](_0x7d8407[_0x31448a(0x1c3)])&&(console[_0x31448a(0x1db)](_0x31448a(0x1e1)),process['exit'](0x0));typeof _0x7d8407[_0x31448a(0x201)]!==_0x31448a(0x1d2)&&(console[_0x31448a(0x1db)]('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process[_0x31448a(0x1d3)](0x0));!['node_modules',_0x31448a(0x1f8)][_0x31448a(0x1cc)](_0x7d8407['installTarget'])&&(console[_0x31448a(0x1db)](_0x31448a(0x1cd)),process[_0x31448a(0x1d3)](0x0));!Array['isArray'](_0x7d8407[_0x31448a(0x1f3)])&&(console[_0x31448a(0x1db)](_0x31448a(0x1f0)),process['exit'](0x0));_0x7d8407[_0x31448a(0x1f3)][_0x31448a(0x203)]===0x0&&(console[_0x31448a(0x1db)](_0x31448a(0x206)),process[_0x31448a(0x1d3)](0x0));const _0x193f25=exports[_0x31448a(0x1d6)](_0x7d8407[_0x31448a(0x1f3)]);return _0x193f25['map'](_0x424e64=>_0x424e64['name'])[_0x31448a(0x1bf)](_0x4e8a1d=>![_0x31448a(0x1ff),_0x31448a(0x1c8),_0x31448a(0x205),'jjb-common-decorator',_0x31448a(0x1f7),_0x31448a(0x1be)]['includes'](_0x4e8a1d))[_0x31448a(0x203)]!==0x0&&(console[_0x31448a(0x1db)](_0x31448a(0x1fa)),process['exit'](0x0)),_0x7d8407[_0x31448a(0x1f3)]=_0x193f25,_0x7d8407;},exports[a14_0x1ac5bc(0x1ec)]=function(_0x389d3f,_0x771d55,_0x35bccd){const _0x1c5236=a14_0x1ac5bc;fs['writeFileSync'](_0x389d3f+'\x5cpackage.json',_0x1c5236(0x1f2)+_0x771d55+_0x1c5236(0x1f5)+_0x35bccd+'\x22,\x22main\x22:\x20\x22index.js\x22}');},exports[a14_0x1ac5bc(0x1d6)]=function(_0x1bce36=[]){const _0x32fc41=a14_0x1ac5bc,_0x2c8d23=[];return Array[_0x32fc41(0x1dd)](_0x1bce36)&&_0x1bce36['forEach'](_0x1f0b3a=>{const _0x3ba2c9=_0x32fc41;if(Array['isArray'](_0x1f0b3a)){const [_0x37b05c,_0x5f3836=[]]=_0x1f0b3a;_0x2c8d23['push']({'name':_0x37b05c,'importList':_0x5f3836});}else _0x2c8d23[_0x3ba2c9(0x202)]({'name':_0x1f0b3a,'importList':[]});}),_0x2c8d23;},exports[a14_0x1ac5bc(0x1ca)]=function(_0x3e5981,_0x19c218,_0x41e10d){const _0x15de92=a14_0x1ac5bc,_0xb890a9=JSON[_0x15de92(0x1d8)](fs['readFileSync'](_0x3e5981)[_0x15de92(0x1c9)]());_0xb890a9[_0x15de92(0x1dc)][_0x19c218]=_0x41e10d,fs['writeFileSync'](_0x3e5981,JSON[_0x15de92(0x1e3)](_0xb890a9,null,0x2));},exports[a14_0x1ac5bc(0x1fc)]=function(_0x158c14,_0x33b20e){const _0x1ac781=a14_0x1ac5bc;fs[_0x1ac781(0x1d4)](_0x158c14)[_0x1ac781(0x1fb)](_0xe56be8=>{const _0x300829=_0x1ac781,_0x45fb82=_0x158c14+'\x5c'+_0xe56be8,_0x497037=_0x33b20e+'\x5c'+_0xe56be8;fs[_0x300829(0x1e8)](_0x45fb82)[_0x300829(0x1e2)]()?(fs[_0x300829(0x1e0)](_0x497037),exports[_0x300829(0x1fc)](_0x45fb82,_0x497037)):fs[_0x300829(0x1c2)](_0x497037,fs['readFileSync'](_0x45fb82)[_0x300829(0x1c9)]());});},exports[a14_0x1ac5bc(0x1f1)]=function(_0x51aea9=[],_0x298382){_0x51aea9['forEach'](_0x409d45=>{const _0x5da6fc=a14_0x2850,_0x57d12c=_0x298382+_0x409d45[_0x5da6fc(0x1c7)];if(fs[_0x5da6fc(0x1c4)](_0x57d12c)){let _0x45bdc2=fs['readFileSync'](_0x57d12c)['toString']();_0x409d45[_0x5da6fc(0x1fd)]['forEach'](_0x13e0ba=>{const _0x22bfd3=_0x5da6fc;_0x45bdc2=_0x45bdc2[_0x22bfd3(0x1fd)](_0x13e0ba[0x0],_0x13e0ba[0x1]);}),fs[_0x5da6fc(0x1c2)](_0x57d12c,_0x45bdc2);}});};
|
package/src/old/cli.merge.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a15_0x591f4c=a15_0x4671;(function(_0x25748d,_0x26e336){const _0x4ba6b2=a15_0x4671,_0x4d071b=_0x25748d();while(!![]){try{const _0x196b76=parseInt(_0x4ba6b2(0x1be))/0x1*(parseInt(_0x4ba6b2(0x1bd))/0x2)+-parseInt(_0x4ba6b2(0x1bf))/0x3+parseInt(_0x4ba6b2(0x1b8))/0x4+-parseInt(_0x4ba6b2(0x1d2))/0x5*(-parseInt(_0x4ba6b2(0x1c6))/0x6)+parseInt(_0x4ba6b2(0x1b2))/0x7+-parseInt(_0x4ba6b2(0x1ab))/0x8*(parseInt(_0x4ba6b2(0x1bb))/0x9)+parseInt(_0x4ba6b2(0x1b4))/0xa*(parseInt(_0x4ba6b2(0x1c5))/0xb);if(_0x196b76===_0x26e336)break;else _0x4d071b['push'](_0x4d071b['shift']());}catch(_0x248d73){_0x4d071b['push'](_0x4d071b['shift']());}}}(a15_0x5dd6,0x82de6));const fs=require('fs'),path=require(a15_0x591f4c(0x1d0)),utils=require('./util.js');let projectPath='',vesselPath='',commandArr=[];const fromFileData={},applicationJson={};module[a15_0x591f4c(0x1c2)]=(_0x47154d,_0xbc2f85)=>{const _0x1a79fa=a15_0x591f4c;commandArr=_0x47154d[_0x1a79fa(0x1d1)](':'),projectPath=path['resolve'](_0x1a79fa(0x1bc)),vesselPath=path[_0x1a79fa(0x1c1)](_0x1a79fa(0x1ce));let _0x450812=vesselPath;_0xbc2f85==='mp'&&(_0x450812=vesselPath+'/application',utils[_0x1a79fa(0x1cc)](vesselPath,['application']));const _0x23831f=commandArr[0x1],_0x34fa6c=JSON['parse'](fs[_0x1a79fa(0x1b5)](projectPath+'/'+_0x23831f+_0x1a79fa(0x1c8))[_0x1a79fa(0x1c7)]());TileItems(_0x34fa6c[_0x1a79fa(0x1b0)],()=>{const _0xb30dbd=_0x1a79fa;fromFileData[_0xb30dbd(0x1c9)][_0xb30dbd(0x1ca)](_0x1c32d9=>{const _0x5c0d31=_0xb30dbd,_0x4b56bb=_0x1c32d9['pathAdr'][_0x5c0d31(0x1d1)](_0x1c32d9[_0x5c0d31(0x1ae)]),_0x23b35b=_0x4b56bb[0x1][_0x5c0d31(0x1d1)]('/'),_0x38f9be=_0x23b35b[0x1];!applicationJson[_0x38f9be]&&(applicationJson[_0x38f9be]={'routerConfig':[],'routerPath':[]});applicationJson[_0x38f9be]['routerConfig'][_0x5c0d31(0x1b1)](_0x5c0d31(0x1c4)+_0x1c32d9[_0x5c0d31(0x1d0)]+_0x5c0d31(0x1b3)+_0x1c32d9[_0x5c0d31(0x1ba)]+_0x5c0d31(0x1cb)),applicationJson[_0x38f9be]['routerPath'][_0x5c0d31(0x1b1)](_0x1c32d9[_0x5c0d31(0x1d0)]);let _0x4c88b5=_0x23b35b['join']('/');const _0x56eb74=_0x4c88b5['split']('/');utils[_0x5c0d31(0x1cc)](_0x450812,_0x56eb74[_0x5c0d31(0x1af)](0x0,_0x56eb74[_0x5c0d31(0x1cf)]-0x1))[_0x5c0d31(0x1b6)](()=>{const _0x1ed193=_0x5c0d31,_0x4e5784=fs[_0x1ed193(0x1b5)](_0x1c32d9[_0x1ed193(0x1c0)])[_0x1ed193(0x1c7)]();fs[_0x1ed193(0x1ad)](vesselPath+'/'+_0x4c88b5,_0x4e5784);});});});};function a15_0x5dd6(){const _0x4fb1cb=['router','forEach','\x27)\x20}','CreatePaths','concat','./vessel/src','length','path','split','43405QndBUA','47440senIYQ','DeepScanner','writeFileSync','region','slice','items','push','1657852JobnvP','\x27,\x20component:\x20()\x20=>\x20import(\x27','315590YbCHiH','readFileSync','then','fileType','3104204aNucas','map','file','1422ZRQRbf','./project','4XgpOfk','266613wgZJGQ','1192218QqiQrb','pathAdr','resolve','exports','from','{\x20path:\x20\x27','110cHVkCH','6ZQBrUh','toString','/setting.json'];a15_0x5dd6=function(){return _0x4fb1cb;};return a15_0x5dd6();}function a15_0x4671(_0x3472c5,_0x1c6458){const _0x5dd60f=a15_0x5dd6();return a15_0x4671=function(_0x467193,_0x4ee490){_0x467193=_0x467193-0x1ab;let _0x614ff5=_0x5dd60f[_0x467193];return _0x614ff5;},a15_0x4671(_0x3472c5,_0x1c6458);}function TileItems(_0x3a84fc,_0xe3f46c){const _0x280140=a15_0x591f4c;_0x3a84fc[_0x280140(0x1ca)]((_0x49a512,_0x457bda)=>{const _0x132c61=_0x280140,_0x55ce64=_0x49a512[_0x132c61(0x1ae)];_0x49a512[_0x132c61(0x1c3)][_0x132c61(0x1ca)]((_0x54cedc,_0x295891)=>{const _0x23cef2=_0x132c61,_0x3cb2bf=[];utils[_0x23cef2(0x1ac)](projectPath+'/'+_0x55ce64+'/'+_0x54cedc['file'],_0x3cb2bf);const _0x3c6b64=_0x3cb2bf[_0x23cef2(0x1b9)](_0x2305ed=>({'region':_0x55ce64,'pathAdr':_0x2305ed,..._0x54cedc}));!fromFileData[_0x54cedc['fileType']]?fromFileData[_0x54cedc[_0x23cef2(0x1b7)]]=_0x3c6b64:fromFileData[_0x54cedc['fileType']]=fromFileData[_0x54cedc[_0x23cef2(0x1b7)]][_0x23cef2(0x1cd)](_0x3c6b64),_0x457bda===_0x3a84fc[_0x23cef2(0x1cf)]-0x1&&_0x295891===_0x49a512['from']['length']-0x1&&_0xe3f46c();});});}
|
package/src/old/cli.pull.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';const a16_0x577096=a16_0x2921;(function(_0x530e5b,_0x312c06){const _0x58d424=a16_0x2921,_0x45014d=_0x530e5b();while(!![]){try{const _0x3f2f3e=parseInt(_0x58d424(0x155))/0x1*(parseInt(_0x58d424(0x156))/0x2)+parseInt(_0x58d424(0x13b))/0x3+parseInt(_0x58d424(0x14e))/0x4+-parseInt(_0x58d424(0x142))/0x5+-parseInt(_0x58d424(0x154))/0x6+parseInt(_0x58d424(0x164))/0x7*(parseInt(_0x58d424(0x161))/0x8)+parseInt(_0x58d424(0x16e))/0x9;if(_0x3f2f3e===_0x312c06)break;else _0x45014d['push'](_0x45014d['shift']());}catch(_0xc58538){_0x45014d['push'](_0x45014d['shift']());}}}(a16_0x396b,0x353ef));const fs=require('fs'),os=require('os'),path=require('path'),utils=require(a16_0x577096(0x147)),request=require('request'),compressing=require('compressing'),GIT_TEMP_DIR='jjbAssembly',GIT_HOST=a16_0x577096(0x14d),CLOUD_PROJECT={'common':{'token':a16_0x577096(0x163),'projectId':0x117,'localName':a16_0x577096(0x170)},'react-admin-component':{'token':a16_0x577096(0x16b),'projectId':0x154,'localName':a16_0x577096(0x16f)}};module[a16_0x577096(0x139)]=_0x189064=>{const _0x11b066=a16_0x577096,_0x5ceefe=_0x189064,_0x3c2eec=path['resolve']('./');try{if(fs[_0x11b066(0x160)](_0x3c2eec+'\x5csrc')){const _0x2f5c49=_0x3c2eec+_0x11b066(0x15a),_0x39ac44=CLOUD_PROJECT[_0x5ceefe]||undefined;if(_0x39ac44){const _0x48fd9c=os[_0x11b066(0x165)](),_0x43d750=_0x48fd9c+('/'+GIT_TEMP_DIR+'/'+_0x5ceefe+'.zip'),_0x43195f=_0x48fd9c+'/'+GIT_TEMP_DIR+_0x11b066(0x13c);utils[_0x11b066(0x16d)](_0x48fd9c+'/'+GIT_TEMP_DIR,()=>{const _0x27f5fe=_0x11b066;fs[_0x27f5fe(0x151)](_0x48fd9c+'/'+GIT_TEMP_DIR);let _0x34f421=fs['createWriteStream'](_0x43d750);request(GIT_HOST+_0x27f5fe(0x15d)+_0x39ac44[_0x27f5fe(0x13f)]+_0x27f5fe(0x14a)+_0x39ac44[_0x27f5fe(0x15b)]+_0x27f5fe(0x14b))[_0x27f5fe(0x138)](_0x34f421)['on'](_0x27f5fe(0x16a),()=>{const _0x275c97=_0x27f5fe;fs[_0x275c97(0x151)](_0x43195f),compressing[_0x275c97(0x15f)][_0x275c97(0x159)](_0x43d750,_0x43195f)[_0x275c97(0x169)](()=>{setTimeout(()=>{const _0x4a8f9d=a16_0x2921,_0x1b41fd=fs['readdirSync'](_0x43195f);_0x1b41fd[_0x4a8f9d(0x166)](_0x87de0e=>{const _0x7d0b4b=_0x4a8f9d;if(_0x87de0e[_0x7d0b4b(0x143)](_0x7d0b4b(0x157))!==-0x1){const _0x374165=_0x2f5c49+'\x5c'+_0x39ac44[_0x7d0b4b(0x13a)];utils[_0x7d0b4b(0x16d)](_0x374165,()=>{const _0x3023ee=_0x7d0b4b;fs[_0x3023ee(0x151)](_0x374165),utils['CopyFolder'](_0x43195f+_0x87de0e,_0x374165),setTimeout(()=>{const _0x22724f=_0x3023ee,_0xd981c=fs[_0x22724f(0x167)](_0x2f5c49+'\x5c'+_0x22724f(0x168));if(!_0xd981c){const _0x5c33b5=_0x2f5c49+'\x5c'+'common\x5ctools\x5cindex.js',_0x5628f0=_0x2f5c49+'\x5c'+_0x22724f(0x13e);let _0x18fe3c=fs[_0x22724f(0x145)](_0x5c33b5)[_0x22724f(0x144)](),_0x312881=fs[_0x22724f(0x145)](_0x5628f0)[_0x22724f(0x144)]();_0x18fe3c=_0x18fe3c[_0x22724f(0x141)](_0x22724f(0x158),_0x22724f(0x150)),_0x312881=_0x312881[_0x22724f(0x141)](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x22724f(0x16c)),fs['writeFileSync'](_0x5c33b5,_0x18fe3c),fs['writeFileSync'](_0x5628f0,_0x312881),fs[_0x22724f(0x140)](_0x2f5c49+'\x5ccommon\x5cdva\x5cautomatic\x5crouter.js',fs[_0x22724f(0x145)](__dirname+_0x22724f(0x152))['toString']()),fs[_0x22724f(0x140)](_0x2f5c49+_0x22724f(0x137),fs[_0x22724f(0x145)](__dirname+_0x22724f(0x15e))[_0x22724f(0x144)]());}else fs[_0x22724f(0x15c)](_0x2f5c49+'\x5c'+'common\x5cdva\x5cautomatic\x5cindex.js',_0x1f239e=>{const _0x55b8dc=_0x22724f;_0x1f239e&&(fs[_0x55b8dc(0x162)](_0x2f5c49+'\x5c'+_0x55b8dc(0x153))['forEach'](_0x1ccdf3=>{const _0x152218=_0x55b8dc;fs[_0x152218(0x149)](_0x2f5c49+'\x5c'+_0x152218(0x13d)+_0x1ccdf3);}),fs[_0x55b8dc(0x14c)](_0x2f5c49+'\x5c'+_0x55b8dc(0x153)));});},0x3e8);});}}),console[_0x4a8f9d(0x14f)](_0x5ceefe+'-文件下载完毕');},0x7d0);});});});}else console[_0x11b066(0x146)](_0x11b066(0x148)+_0x5ceefe);}}catch(_0x105e3d){console[_0x11b066(0x146)](_0x11b066(0x136));}};function a16_0x2921(_0x63d975,_0x8863e6){const _0x396bbf=a16_0x396b();return a16_0x2921=function(_0x2921a7,_0x4095f7){_0x2921a7=_0x2921a7-0x136;let _0x258781=_0x396bbf[_0x2921a7];return _0x258781;},a16_0x2921(_0x63d975,_0x8863e6);}function a16_0x396b(){const _0x308bec=['common','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','pipe','exports','localName','339243yXaiOR','/unzip/','common\x5cdva\x5cautomatic\x5c','common\x5cwebsite\x5cindex.js','projectId','writeFileSync','replace','1762625TFwcbl','indexOf','toString','readFileSync','error','./util','【Error】:\x20未获取到项目\x20','unlinkSync','/repository/archive.zip?private_token=','&ref=master','rmdirSync','http://192.168.1.242:10985','397836oPCRgW','log','return\x20process.env;','mkdirSync','\x5ccli.dva.router.spa.txt','common\x5cdva\x5cautomatic','2048412uISUwq','1pNzyoh','839612VQWNyB','-master-','return\x20__planA();','uncompress','\x5csrc','token','exists','/api/v4/projects/','\x5ccli.dva.register.spa.txt','zip','statSync','5112UWcCFB','readdirSync','G4HJRsHr9D7Ssmixegw2','2569wZeVaC','tmpdir','forEach','existsSync','application','then','close','FT3pKzxpRynFkmddJ9Bs','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','DeleteDirAllFile','406467tBtGzP','components'];a16_0x396b=function(){return _0x308bec;};return a16_0x396b();}
|
package/src/old/cli.pull2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a17_0xab24d9=a17_0x4e6e;(function(_0x447760,_0x274727){const _0xce9dde=a17_0x4e6e,_0x3e87e6=_0x447760();while(!![]){try{const _0x1e9e99=-parseInt(_0xce9dde(0x156))/0x1*(parseInt(_0xce9dde(0x182))/0x2)+-parseInt(_0xce9dde(0x15b))/0x3*(parseInt(_0xce9dde(0x194))/0x4)+-parseInt(_0xce9dde(0x1a2))/0x5*(-parseInt(_0xce9dde(0x158))/0x6)+-parseInt(_0xce9dde(0x171))/0x7+-parseInt(_0xce9dde(0x197))/0x8+parseInt(_0xce9dde(0x181))/0x9*(-parseInt(_0xce9dde(0x18c))/0xa)+parseInt(_0xce9dde(0x196))/0xb;if(_0x1e9e99===_0x274727)break;else _0x3e87e6['push'](_0x3e87e6['shift']());}catch(_0x494ef8){_0x3e87e6['push'](_0x3e87e6['shift']());}}}(a17_0x4e72,0x2c132));const fs=require('fs'),os=require('os'),path=require(a17_0xab24d9(0x175)),utils=require(a17_0xab24d9(0x14f)),request=require('request'),compressing=require(a17_0xab24d9(0x167)),GIT_HOST=a17_0xab24d9(0x154),GIT_TEMP_DIR=a17_0xab24d9(0x18d),CLOUD_PROJECT={'common':{'token':a17_0xab24d9(0x1a6),'projectId':0x117,'localName':'common'},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154,'localName':a17_0xab24d9(0x18e)}},COMMON_CONTENT_NOR_REPLACE=[{'path':a17_0xab24d9(0x17f),'replace':[[a17_0xab24d9(0x18e),a17_0xab24d9(0x1a1)]]},{'path':a17_0xab24d9(0x14e),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a17_0xab24d9(0x15f)],[a17_0xab24d9(0x18e),a17_0xab24d9(0x1a1)]]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a17_0xab24d9(0x17f),'replace':[[a17_0xab24d9(0x17b),a17_0xab24d9(0x1ad)]]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':a17_0xab24d9(0x17f),'replace':[[a17_0xab24d9(0x17b),a17_0xab24d9(0x187)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':a17_0xab24d9(0x192),'replace':[[a17_0xab24d9(0x16c),a17_0xab24d9(0x172)],[a17_0xab24d9(0x19f),a17_0xab24d9(0x17e)],[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]},{'path':a17_0xab24d9(0x170),'replace':[['common/color','jjb-common/color']]},{'path':'\x5cRouterMenu\x5cindex.js','replace':[[a17_0xab24d9(0x17a),'jjb-common/tools']]},{'path':a17_0xab24d9(0x1a8),'replace':[[a17_0xab24d9(0x16c),a17_0xab24d9(0x172)],[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]},{'path':'\x5cImageCropper\x5cindex.js','replace':[[a17_0xab24d9(0x16c),a17_0xab24d9(0x172)],['common/tools',a17_0xab24d9(0x1a9)]]},{'path':a17_0xab24d9(0x17c),'replace':[[a17_0xab24d9(0x16c),a17_0xab24d9(0x172)],[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]},{'path':a17_0xab24d9(0x151),'replace':[[a17_0xab24d9(0x1a4),a17_0xab24d9(0x19c)]]},{'path':a17_0xab24d9(0x19b),'replace':[[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]},{'path':a17_0xab24d9(0x174),'replace':[['common/website',a17_0xab24d9(0x16d)],[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]}];function uid(){const _0x458132=a17_0xab24d9;return Math[_0x458132(0x193)]()[_0x458132(0x15a)]()[_0x458132(0x177)](0x2);}module['exports']=_0x15d74e=>{const _0x41c40d=a17_0xab24d9,_0x51fa9b=path[_0x41c40d(0x153)]('./'),_0x3b5952=_0x41c40d(0x16e)+_0x15d74e,_0x1e09c1=_0x41c40d(0x161),_0x3c1f4a=_0x51fa9b+_0x41c40d(0x185),_0x3b0cbb=_0x41c40d(0x157)+uid(),_0x37882c=__dirname+'\x5c'+_0x3b0cbb,_0x408d4a=_0x51fa9b+_0x41c40d(0x183),_0xa2e500=_0x51fa9b+_0x41c40d(0x160)+_0x15d74e;try{if(fs['existsSync'](_0x3c1f4a)){const _0x216a22=CLOUD_PROJECT[_0x15d74e]||undefined;if(_0x216a22){const _0x1e8c2a=os[_0x41c40d(0x179)](),_0xb21d42=_0x1e8c2a+'/'+GIT_TEMP_DIR+'/'+_0x15d74e+_0x41c40d(0x19a),_0x4a3c7f=_0x1e8c2a+'/'+GIT_TEMP_DIR+_0x41c40d(0x166);utils['DeleteDirAllFile'](_0x1e8c2a+'/'+GIT_TEMP_DIR,()=>{const _0x32d8a6=_0x41c40d;fs[_0x32d8a6(0x162)](_0x1e8c2a+'/'+GIT_TEMP_DIR);const _0x2c67a3=fs[_0x32d8a6(0x195)](_0xb21d42);request(GIT_HOST+_0x32d8a6(0x1ab)+_0x216a22[_0x32d8a6(0x18f)]+_0x32d8a6(0x163)+_0x216a22[_0x32d8a6(0x176)]+_0x32d8a6(0x169))[_0x32d8a6(0x14d)](_0x2c67a3)['on'](_0x32d8a6(0x178),()=>{const _0x15929d=_0x32d8a6;fs[_0x15929d(0x162)](_0x4a3c7f),compressing[_0x15929d(0x165)][_0x15929d(0x17d)](_0xb21d42,_0x4a3c7f)['then'](()=>{setTimeout(()=>{const _0x1f3636=a17_0x4e6e;fs[_0x1f3636(0x198)](_0x4a3c7f)[_0x1f3636(0x16b)](_0x4838c1=>{const _0xe5316b=_0x1f3636;_0x4838c1['indexOf'](_0xe5316b(0x15e))!==-0x1&&utils['DeleteDirAllFile'](_0x3c1f4a+'\x5c'+_0x216a22['localName'],()=>{const _0x33fcba=_0xe5316b;fs[_0x33fcba(0x162)](_0x37882c),utils[_0x33fcba(0x1ac)](_0x4a3c7f+_0x4838c1,_0x37882c),setTimeout(()=>{const _0x439303=_0x33fcba;if(_0x15d74e===_0x439303(0x180)){const _0x426306=fs['existsSync'](_0x3c1f4a+_0x439303(0x164));if(_0x426306)rm_rf(_0x37882c+_0x439303(0x152)),fs['rmdirSync'](_0x37882c+'\x5cdva\x5cautomatic');else{if(get_project_type(_0x408d4a)==='spa')content_replace(COMMON_CONTENT_SPA_REPLACE,_0x37882c),fs[_0x439303(0x184)](_0x37882c+_0x439303(0x189),fs[_0x439303(0x16f)](__dirname+_0x439303(0x191))[_0x439303(0x15a)]()),fs['writeFileSync'](_0x37882c+_0x439303(0x150),fs[_0x439303(0x16f)](__dirname+_0x439303(0x173))[_0x439303(0x15a)]());else get_project_type(_0x408d4a)===_0x439303(0x19d)&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x37882c),fs['writeFileSync'](_0x37882c+_0x439303(0x189),fs[_0x439303(0x16f)](__dirname+_0x439303(0x15c))[_0x439303(0x15a)]()),fs[_0x439303(0x184)](_0x37882c+_0x439303(0x150),fs[_0x439303(0x16f)](__dirname+_0x439303(0x155))['toString']()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x37882c);}_0x15d74e===_0x439303(0x1a5)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x37882c),rm_rf(_0x37882c+_0x439303(0x199)),fs[_0x439303(0x188)](_0x37882c+'\x5c.idea')&&fs[_0x439303(0x19e)](_0x37882c+_0x439303(0x199)),fs[_0x439303(0x188)](_0x37882c+_0x439303(0x1a7))&&fs['unlinkSync'](_0x37882c+_0x439303(0x1a7)),!fs['existsSync'](_0xa2e500)?fs[_0x439303(0x162)](_0xa2e500):rm_rf(_0xa2e500),utils[_0x439303(0x1ac)](_0x37882c,_0xa2e500,()=>{const _0x1c0f3f=_0x439303;rm_rf(_0x37882c),fs[_0x1c0f3f(0x19e)](_0x37882c),create_package_json(_0xa2e500,_0x3b5952,_0x1e09c1),update_project_package_json(_0x408d4a,_0x3b5952,_0x1e09c1),console[_0x1c0f3f(0x18a)](_0x1c0f3f(0x18b)+_0x3b5952+'\x20v'+_0x1e09c1);});},0x3e8);});});},0x7d0);});});});}else console[_0x41c40d(0x1a0)]('【Error】:\x20未获取到项目\x20'+_0x15d74e);}}catch(_0x51d8b9){console['error']('【Error】:\x20当前目录不存在src子目录,无法完成pull操作。');}};function rm_rf(_0x2c7589){const _0x3a314c=a17_0xab24d9;if(fs['existsSync'](_0x2c7589)){const _0x1d328b=fs['readdirSync'](_0x2c7589);for(let _0x4b6589=0x0;_0x4b6589<_0x1d328b['length'];_0x4b6589++){const _0x3806a3=_0x1d328b[_0x4b6589],_0xcb4a9a=_0x2c7589+'/'+_0x3806a3;fs['statSync'](_0xcb4a9a)[_0x3a314c(0x190)]()?(rm_rf(_0xcb4a9a),fs['rmdirSync'](_0xcb4a9a)):fs[_0x3a314c(0x1aa)](_0xcb4a9a);}}}function create_package_json(_0x3b0df9,_0x20abe6,_0x22c22f){const _0x422725=a17_0xab24d9;fs[_0x422725(0x184)](_0x3b0df9+_0x422725(0x183),'{\x22name\x22:\x22'+_0x20abe6+_0x422725(0x16a)+_0x22c22f+_0x422725(0x15d));}function a17_0x4e72(){const _0x58d646=['\x5cRouterContainer\x5cindex.js','jjb-common/color','micro-spa','rmdirSync','common/crypto','error','jjb-react-admin-component','15355ikWnPF','stringify','common/color','react-admin-component','G4HJRsHr9D7Ssmixegw2','\x5c.gitignore','\x5cFileUploader\x5cindex.js','jjb-common/tools','unlinkSync','/api/v4/projects/','CopyFolder','return\x20process.env;','dependencies','pipe','\x5cwebsite\x5cindex.js','./util','\x5cdva\x5cautomatic\x5cregister.js','\x5cPageHeaderBar\x5cindex.js','\x5cdva\x5cautomatic','resolve','http://192.168.1.242:10985','\x5ccli.dva.register.saas.txt','55nsAuZI','template_','66uxxazO','projectType','toString','680397zNcWME','\x5ccli.dva.router.saas.txt','\x22,\x22main\x22:\x20\x22index.js\x22}','-master-','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','\x5cnode_modules\x5cjjb-','1.0.0','mkdirSync','/repository/archive.zip?private_token=','\x5capplication','zip','/unzip/','compressing','replace','&ref=master','\x22,\x22version\x22:\x22','forEach','common/http','jjb-common/website','jjb-','readFileSync','\x5cRejectText\x5cindex.js','65583AZneTW','jjb-common/http','\x5ccli.dva.register.spa.txt','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','path','token','substr','close','tmpdir','common/tools','return\x20__planA();','\x5cImageUploader\x5cindex.js','uncompress','jjb-common/crypto','\x5ctools\x5cindex.js','common','82683GDLqgP','12822WgrjtI','\x5cpackage.json','writeFileSync','\x5csrc','parse','return\x20process.env.app;','existsSync','\x5cdva\x5cautomatic\x5crouter.js','log','【已安装】:','10sXCiaL','jjbAssembly','components','projectId','isDirectory','\x5ccli.dva.router.spa.txt','\x5cEditor\x5cindex.js','random','4xwLIqi','createWriteStream','8719711wRRhiz','383936ZhsSTs','readdirSync','\x5c.idea','.zip'];a17_0x4e72=function(){return _0x58d646;};return a17_0x4e72();}function get_project_type(_0x4b42ea){const _0x4d79f4=a17_0xab24d9,_0xa3239=JSON[_0x4d79f4(0x186)](fs[_0x4d79f4(0x16f)](_0x4b42ea)[_0x4d79f4(0x15a)]());return _0xa3239[_0x4d79f4(0x159)];}function update_project_package_json(_0x324a4d,_0x4a7cc6,_0x51f974){const _0x199b7b=a17_0xab24d9,_0x117838=JSON[_0x199b7b(0x186)](fs['readFileSync'](_0x324a4d)[_0x199b7b(0x15a)]());_0x117838[_0x199b7b(0x14c)][_0x4a7cc6]=_0x51f974,fs[_0x199b7b(0x184)](_0x324a4d,JSON[_0x199b7b(0x1a3)](_0x117838,null,0x2));}function a17_0x4e6e(_0x75ad98,_0x57f51c){const _0x4e72a2=a17_0x4e72();return a17_0x4e6e=function(_0x4e6ec3,_0x13396a){_0x4e6ec3=_0x4e6ec3-0x14c;let _0x53fbc2=_0x4e72a2[_0x4e6ec3];return _0x53fbc2;},a17_0x4e6e(_0x75ad98,_0x57f51c);}function content_replace(_0x574fad=[],_0x65c017){const _0x3e0f11=a17_0xab24d9;_0x574fad[_0x3e0f11(0x16b)](_0x10ec6e=>{const _0x23188e=_0x3e0f11,_0xb05729=_0x65c017+_0x10ec6e[_0x23188e(0x175)];if(fs[_0x23188e(0x188)](_0xb05729)){let _0x4a3c5b=fs[_0x23188e(0x16f)](_0xb05729)[_0x23188e(0x15a)]();_0x10ec6e['replace']['forEach'](_0x319502=>{const _0x2855a6=_0x23188e;_0x4a3c5b=_0x4a3c5b[_0x2855a6(0x168)](_0x319502[0x0],_0x319502[0x1]);}),fs[_0x23188e(0x184)](_0xb05729,_0x4a3c5b);}});}
|
package/src/old/cli.rm-rf.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a18_0x27d66b=a18_0xde64;function a18_0xde64(_0x30d93d,_0x2ba706){const _0x151787=a18_0x1517();return a18_0xde64=function(_0xde64a6,_0x23aeff){_0xde64a6=_0xde64a6-0x1df;let _0x2355cd=_0x151787[_0xde64a6];return _0x2355cd;},a18_0xde64(_0x30d93d,_0x2ba706);}(function(_0x1167ce,_0x4d4490){const _0x22dd00=a18_0xde64,_0x1b3241=_0x1167ce();while(!![]){try{const _0x2e605f=-parseInt(_0x22dd00(0x200))/0x1*(parseInt(_0x22dd00(0x1fe))/0x2)+-parseInt(_0x22dd00(0x1f9))/0x3*(-parseInt(_0x22dd00(0x1ee))/0x4)+-parseInt(_0x22dd00(0x1e6))/0x5*(-parseInt(_0x22dd00(0x1e3))/0x6)+-parseInt(_0x22dd00(0x1fc))/0x7+-parseInt(_0x22dd00(0x1ef))/0x8+parseInt(_0x22dd00(0x1ed))/0x9+-parseInt(_0x22dd00(0x1ff))/0xa*(parseInt(_0x22dd00(0x1ec))/0xb);if(_0x2e605f===_0x4d4490)break;else _0x1b3241['push'](_0x1b3241['shift']());}catch(_0x44bcd3){_0x1b3241['push'](_0x1b3241['shift']());}}}(a18_0x1517,0x30005));const fs=require('fs'),path=require(a18_0x27d66b(0x1e8)),readline=require('readline'),ProgressBar=require('./progress-bar'),io=readline[a18_0x27d66b(0x1f7)]({'input':process[a18_0x27d66b(0x1f2)],'output':process[a18_0x27d66b(0x1ea)]}),progress=new ProgressBar(a18_0x27d66b(0x1e1),0x32);let f_total=0x0,f_number=0x0;module[a18_0x27d66b(0x1eb)]=function(){const _0x3eaee=a18_0x27d66b,_0x4ee2be=path[_0x3eaee(0x1e2)]('./');io['question'](_0x3eaee(0x1f1),function(_0x4c1ed4){const _0x498e1c=_0x3eaee;if(_0x4c1ed4[_0x498e1c(0x1fa)]()==='y')console[_0x498e1c(0x1f4)]('正在计算项目数,请稍等...'),setTimeout(()=>{setTimeout(()=>{const _0x334d0b=a18_0xde64;console[_0x334d0b(0x1df)](),exec(_0x4ee2be),setTimeout(()=>{const _0x2a6192=_0x334d0b;console[_0x2a6192(0x1f4)](_0x2a6192(0x1e0)),console['clear'](),process[_0x2a6192(0x1f5)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x4c1ed4[_0x498e1c(0x1fa)]()==='n'?(console[_0x498e1c(0x1f4)]('取消删除。'),process[_0x498e1c(0x1f5)](0x0)):(console[_0x498e1c(0x1f4)](_0x498e1c(0x1fb)),process['exit'](0x0));});};function exec(_0xe3ddaf){const _0x58876b=a18_0x27d66b;if(fs[_0x58876b(0x1f8)](_0xe3ddaf)){const _0x4e07a1=fs['readdirSync'](_0xe3ddaf);for(let _0x2f5f43=0x0;_0x2f5f43<_0x4e07a1[_0x58876b(0x1e7)];_0x2f5f43++){const _0x1f9c85=_0x4e07a1[_0x2f5f43],_0x446bb9=_0xe3ddaf+'/'+_0x1f9c85;try{fs[_0x58876b(0x1fd)](_0x446bb9)[_0x58876b(0x1e5)]()?(exec(_0x446bb9),fs['rmdirSync'](_0x446bb9,{'recursive':!![]}),console[_0x58876b(0x1f4)](_0x58876b(0x1f6)+_0x446bb9)):(fs[_0x58876b(0x1f0)](_0x446bb9),console['log'](_0x58876b(0x1f3)+_0x446bb9));}catch(_0x1b10a2){console[_0x58876b(0x1f4)](_0x58876b(0x1e9)+_0x446bb9);}}}}function scanner(_0x493422){const _0x50369f=a18_0x27d66b;if(fs[_0x50369f(0x1f8)](_0x493422)){const _0xdf7e98=fs[_0x50369f(0x1e4)](_0x493422);for(let _0x4b25ea=0x0;_0x4b25ea<_0xdf7e98['length'];_0x4b25ea++){const _0x24bff7=_0xdf7e98[_0x4b25ea],_0x35a010=_0x493422+'/'+_0x24bff7;try{fs[_0x50369f(0x1fd)](_0x35a010)[_0x50369f(0x1e5)]()?(scanner(_0x35a010),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x4f22a8){}}}}function a18_0x1517(){const _0x1dca3b=['删除进度','resolve','2012166cVwZeI','readdirSync','isDirectory','5Xxbyrz','length','path','删除异常:','stdout','exports','93907UNlopH','1637649naLEsk','470116ErPXVv','1938584CLbiBg','unlinkSync','是否确认删除?删除后不可恢复![y/n]:','stdin','删除文件:','log','exit','删除文件夹:','createInterface','existsSync','9tzqqdg','trim','无效操作。','561631FKidFB','statSync','513666CCkPIP','110hTUNIz','1oEzASb','clear','删除完成。'];a18_0x1517=function(){return _0x1dca3b;};return a18_0x1517();}
|
package/src/old/progress-bar.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a19_0x771d45=a19_0x2a1c;(function(_0x4437f7,_0x57d410){const _0x5b5b41=a19_0x2a1c,_0x3666cb=_0x4437f7();while(!![]){try{const _0x437a66=parseInt(_0x5b5b41(0xf0))/0x1*(parseInt(_0x5b5b41(0xfb))/0x2)+parseInt(_0x5b5b41(0xf6))/0x3*(parseInt(_0x5b5b41(0xeb))/0x4)+parseInt(_0x5b5b41(0xef))/0x5+-parseInt(_0x5b5b41(0xea))/0x6+-parseInt(_0x5b5b41(0xfa))/0x7+parseInt(_0x5b5b41(0xe9))/0x8*(parseInt(_0x5b5b41(0xe8))/0x9)+-parseInt(_0x5b5b41(0xf8))/0xa*(parseInt(_0x5b5b41(0xf3))/0xb);if(_0x437a66===_0x57d410)break;else _0x3666cb['push'](_0x3666cb['shift']());}catch(_0xce5ff7){_0x3666cb['push'](_0x3666cb['shift']());}}}(a19_0x58ce,0x261dd));const slog=require(a19_0x771d45(0xed))[a19_0x771d45(0xf7)];function a19_0x2a1c(_0x57e7de,_0x184f93){const _0x58ce99=a19_0x58ce();return a19_0x2a1c=function(_0x2a1c98,_0x4c25b2){_0x2a1c98=_0x2a1c98-0xe7;let _0x207264=_0x58ce99[_0x2a1c98];return _0x207264;},a19_0x2a1c(_0x57e7de,_0x184f93);}function a19_0x58ce(){const _0x19f59b=['Progress','3399VCqhLy','render','total','183woTayC','stdout','14370UZmdsy','description','650370ZIPplT','2GwZbgJ','floor','18243IZpulb','688tawueT','1020414JeshLe','17084fcwuXh','completed','single-line-log','toFixed','1150845HPTUYp','198115cvXqyO','length'];a19_0x58ce=function(){return _0x19f59b;};return a19_0x58ce();}function ProgressBar(_0x1e0cd2,_0x5d7c3c){const _0x59f512=a19_0x771d45;this['description']=_0x1e0cd2||_0x59f512(0xf2),this[_0x59f512(0xf1)]=_0x5d7c3c||0x19,this[_0x59f512(0xf4)]=function(_0x3ca37a){const _0x5271ba=_0x59f512;let _0x204630;const _0x422e76=(_0x3ca37a['completed']/_0x3ca37a[_0x5271ba(0xf5)])[_0x5271ba(0xee)](0x4),_0x3537a8=Math[_0x5271ba(0xe7)](_0x422e76*this[_0x5271ba(0xf1)]);let _0x503081='';for(_0x204630=0x0;_0x204630<_0x3537a8;_0x204630++){_0x503081+='█';}let _0x2653de='';for(_0x204630=0x0;_0x204630<this[_0x5271ba(0xf1)]-_0x3537a8;_0x204630++){_0x2653de+='░';}const _0x193d05=this[_0x5271ba(0xf9)]+':\x20'+(0x64*_0x422e76)[_0x5271ba(0xee)](0x2)+'%\x20'+_0x503081+_0x2653de+'\x20'+_0x3ca37a[_0x5271ba(0xec)]+'/'+_0x3ca37a[_0x5271ba(0xf5)];slog(_0x193d05);};}module['exports']=ProgressBar;
|
package/src/old/util.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a20_0x3f8da1=a20_0x5ecb;(function(_0xea9eb9,_0x2472bc){const _0x48ac15=a20_0x5ecb,_0xcbc183=_0xea9eb9();while(!![]){try{const _0x4cd2f4=-parseInt(_0x48ac15(0x165))/0x1+-parseInt(_0x48ac15(0x177))/0x2+parseInt(_0x48ac15(0x176))/0x3+-parseInt(_0x48ac15(0x17a))/0x4*(parseInt(_0x48ac15(0x181))/0x5)+-parseInt(_0x48ac15(0x172))/0x6+parseInt(_0x48ac15(0x17f))/0x7+parseInt(_0x48ac15(0x16c))/0x8;if(_0x4cd2f4===_0x2472bc)break;else _0xcbc183['push'](_0xcbc183['shift']());}catch(_0x33185e){_0xcbc183['push'](_0xcbc183['shift']());}}}(a20_0x25a9,0xf042d));function a20_0x5ecb(_0x7b2c7c,_0x1d9c22){const _0x25a9d9=a20_0x25a9();return a20_0x5ecb=function(_0x5ecb66,_0x4ffb25){_0x5ecb66=_0x5ecb66-0x164;let _0x516271=_0x25a9d9[_0x5ecb66];return _0x516271;},a20_0x5ecb(_0x7b2c7c,_0x1d9c22);}const fs=require('fs'),path=require('path');exports[a20_0x3f8da1(0x180)]=(_0x7855a3,_0x31b67e)=>{const _0x1b8dfd=a20_0x3f8da1;let _0x3e28ec=[];const _0x51ac91=this;fs['existsSync'](_0x7855a3)?(_0x3e28ec=fs[_0x1b8dfd(0x167)](_0x7855a3),_0x3e28ec[_0x1b8dfd(0x16a)](function(_0x33bba1,_0x272910){const _0x40b107=_0x1b8dfd;let _0x4e3135=_0x7855a3+'/'+_0x33bba1;fs[_0x40b107(0x179)](_0x4e3135)['isDirectory']()?_0x51ac91[_0x40b107(0x180)](_0x4e3135):fs[_0x40b107(0x16f)](_0x4e3135);}),fs[_0x1b8dfd(0x182)](_0x7855a3),_0x31b67e&&_0x31b67e()):_0x31b67e&&_0x31b67e();},exports['CopyFolder']=(_0x1f19a3,_0x3082b3,_0x4aeddc)=>{const _0x53d6c2=a20_0x3f8da1,_0x4b1468=this;fs[_0x53d6c2(0x16e)](_0x1f19a3,function(_0x2860df,_0x136afd){const _0x5af005=_0x53d6c2;let _0x2cfdcb=0x0;const _0x5e0ceb=function(){const _0x5f1d35=a20_0x5ecb;++_0x2cfdcb===_0x136afd[_0x5f1d35(0x16b)]&&_0x4aeddc&&_0x4aeddc();};if(_0x2860df){_0x5e0ceb();return;}_0x136afd['forEach'](function(_0x2062b9){const _0x3d1fb4=a20_0x5ecb,_0x3d076d=path[_0x3d1fb4(0x170)](_0x1f19a3,_0x2062b9),_0x4a56b2=path[_0x3d1fb4(0x170)](_0x3082b3,_0x2062b9);fs[_0x3d1fb4(0x174)](_0x3d076d,function(_0x11ec9d,_0x422c62){const _0x3f6cc9=_0x3d1fb4;_0x422c62[_0x3f6cc9(0x17b)]()?fs['mkdir'](_0x4a56b2,function(_0x1aee6b){const _0x4cda7b=_0x3f6cc9;if(_0x1aee6b){console[_0x4cda7b(0x17c)](_0x1aee6b);return;}_0x4b1468[_0x4cda7b(0x17d)](_0x3d076d,_0x4a56b2,_0x5e0ceb);}):_0x4b1468[_0x3f6cc9(0x175)](_0x3d076d,_0x4a56b2,_0x5e0ceb);});}),_0x136afd[_0x5af005(0x16b)]===0x0&&_0x4aeddc&&_0x4aeddc();});},exports['CopyFile']=(_0x57dc04,_0x50f78e,_0x1ac3d2)=>{const _0x210883=a20_0x3f8da1,_0x494f4e=fs['createReadStream'](_0x57dc04);_0x494f4e['on']('error',function(_0xaef7e5){const _0x563bf7=a20_0x5ecb;_0xaef7e5&&console[_0x563bf7(0x17c)](_0x563bf7(0x171),_0x57dc04),_0x1ac3d2&&_0x1ac3d2(_0xaef7e5);});const _0x5a8ebb=fs[_0x210883(0x168)](_0x50f78e);_0x5a8ebb['on'](_0x210883(0x16d),function(_0x480ee3){const _0x3dd3c4=_0x210883;_0x480ee3&&console[_0x3dd3c4(0x17c)](_0x3dd3c4(0x17e),_0x50f78e),_0x1ac3d2&&_0x1ac3d2(_0x480ee3);}),_0x5a8ebb['on']('close',function(_0x1d6343){_0x1ac3d2&&_0x1ac3d2(_0x1d6343);}),_0x494f4e[_0x210883(0x173)](_0x5a8ebb);},exports[a20_0x3f8da1(0x166)]=(_0xd059b9,_0x47f7a5)=>{const _0x5390c4=a20_0x3f8da1,_0x1d62aa=this,_0x50a209=fs[_0x5390c4(0x167)](_0xd059b9);_0x50a209['forEach'](_0x2ae3c3=>{const _0x4d1ff0=_0x5390c4,_0x43bc1c=_0xd059b9+'/'+_0x2ae3c3,_0x13e96a=fs[_0x4d1ff0(0x179)](_0x43bc1c);_0x13e96a['isDirectory']()?_0x1d62aa['DeepScanner'](_0x43bc1c,_0x47f7a5):_0x47f7a5['push'](_0x43bc1c);});},exports[a20_0x3f8da1(0x164)]=(_0x3d356c,_0x1a3e2a)=>{return new Promise(_0x2aca2b=>{const _0x3280bb=[];_0x1a3e2a['forEach']((_0x57103b,_0x30d11a)=>{const _0x3abb5b=a20_0x5ecb,_0x46ee49=_0x3d356c+'/'+_0x3280bb[_0x3abb5b(0x170)]('/')+'/'+_0x57103b;try{const _0x118105=fs[_0x3abb5b(0x179)](_0x46ee49);_0x118105['isDirectory']()?_0x30d11a===_0x1a3e2a[_0x3abb5b(0x16b)]-0x1&&_0x2aca2b():(fs[_0x3abb5b(0x169)](_0x46ee49),_0x30d11a===_0x1a3e2a[_0x3abb5b(0x16b)]-0x1&&_0x2aca2b());}catch(_0x43b25d){fs[_0x3abb5b(0x169)](_0x46ee49),_0x30d11a===_0x1a3e2a[_0x3abb5b(0x16b)]-0x1&&_0x2aca2b();}_0x3280bb[_0x3abb5b(0x178)](_0x57103b);});});};function a20_0x25a9(){const _0x478df4=['8nUBUjU','isDirectory','log','CopyFolder','write\x20error','8803515REvVms','DeleteDirAllFile','1519995ibFeXa','rmdirSync','CreatePaths','1704652wUARIo','DeepScanner','readdirSync','createWriteStream','mkdirSync','forEach','length','15112512yZHRMq','error','readdir','unlinkSync','join','read\x20error','5497272bbUKAf','pipe','stat','CopyFile','4886256UEJAJK','1124980euyqMK','push','statSync'];a20_0x25a9=function(){return _0x478df4;};return a20_0x25a9();}
|