jjb-cmd 2.1.10 → 2.1.11
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_0x144ec3=a0_0x4f74;function a0_0x4f74(_0x1dbc94,_0x34c45a){const _0x18e26b=a0_0x18e2();return a0_0x4f74=function(_0x4f74c1,_0x4d044b){_0x4f74c1=_0x4f74c1-0x16c;let _0x163246=_0x18e26b[_0x4f74c1];return _0x163246;},a0_0x4f74(_0x1dbc94,_0x34c45a);}(function(_0xdacc07,_0x3fb22c){const _0x5c0231=a0_0x4f74,_0x3b19a3=_0xdacc07();while(!![]){try{const _0x4854ea=parseInt(_0x5c0231(0x17c))/0x1+parseInt(_0x5c0231(0x16c))/0x2*(-parseInt(_0x5c0231(0x177))/0x3)+-parseInt(_0x5c0231(0x173))/0x4+-parseInt(_0x5c0231(0x180))/0x5*(-parseInt(_0x5c0231(0x171))/0x6)+parseInt(_0x5c0231(0x17f))/0x7+parseInt(_0x5c0231(0x174))/0x8+-parseInt(_0x5c0231(0x17a))/0x9;if(_0x4854ea===_0x3fb22c)break;else _0x3b19a3['push'](_0x3b19a3['shift']());}catch(_0x43b74b){_0x3b19a3['push'](_0x3b19a3['shift']());}}}(a0_0x18e2,0x4847a));function a0_0x18e2(){const _0x2ab4a8=['/api/auth','3493385YFjwGk','215CRbeLD','Auth\x20NetWork\x20Fail!','path','join','exports','14MVFofZ','Auth\x20Fail!','existsSync','writeFileSync','../cmd.install/config','57474auDGIo','../../../.auth','57760URpFmy','4121568lxRFWE','data','then','4776cXDbHx','unlinkSync','Auth\x20Success!','13304817ApRwtM','post','373807GZvJqg','log'];a0_0x18e2=function(){return _0x2ab4a8;};return a0_0x18e2();}const axios=require('axios'),fs=require('fs'),path=require(a0_0x144ec3(0x182)),{API_HOST}=require(a0_0x144ec3(0x170));module[a0_0x144ec3(0x184)]=_0x234e3e=>{const _0x2a8898=a0_0x144ec3;console['log'](_0x234e3e);const [_0x4f3786,_0x2a22f3]=_0x234e3e;axios[_0x2a8898(0x17b)](API_HOST+_0x2a8898(0x17e),{'username':_0x4f3786,'password':_0x2a22f3})[_0x2a8898(0x176)](_0x3e5ba2=>{const _0xc541c1=_0x2a8898,_0x4a848f=path[_0xc541c1(0x183)](__dirname,_0xc541c1(0x172));_0x3e5ba2[_0xc541c1(0x175)]['status']?(console[_0xc541c1(0x17d)](_0xc541c1(0x179)),fs[_0xc541c1(0x16f)](_0x4a848f,_0x4f3786+'/'+_0x2a22f3)):(console[_0xc541c1(0x17d)](_0xc541c1(0x16d)),fs[_0xc541c1(0x16e)](_0x4a848f)&&fs[_0xc541c1(0x178)](_0x4a848f));})['catch'](_0x4f6e85=>{const _0x3e9e9e=_0x2a8898;console[_0x3e9e9e(0x17d)](_0x3e9e9e(0x181));});};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a1_0x37baa7=a1_0x5ce9;(function(_0x306191,_0x44b107){const _0x1405e8=a1_0x5ce9,_0x30a4a8=_0x306191();while(!![]){try{const _0x29c9fe=-parseInt(_0x1405e8(0x1e7))/0x1+parseInt(_0x1405e8(0x1d8))/0x2+-parseInt(_0x1405e8(0x1fa))/0x3*(parseInt(_0x1405e8(0x1f5))/0x4)+-parseInt(_0x1405e8(0x1df))/0x5+parseInt(_0x1405e8(0x1e9))/0x6*(-parseInt(_0x1405e8(0x1e4))/0x7)+parseInt(_0x1405e8(0x1dd))/0x8*(parseInt(_0x1405e8(0x1f9))/0x9)+parseInt(_0x1405e8(0x1e8))/0xa*(parseInt(_0x1405e8(0x1e1))/0xb);if(_0x29c9fe===_0x44b107)break;else _0x30a4a8['push'](_0x30a4a8['shift']());}catch(_0x32cfd4){_0x30a4a8['push'](_0x30a4a8['shift']());}}}(a1_0x2319,0x2c00f));const path=require(a1_0x37baa7(0x1fd)),{f_file_copy}=require(a1_0x37baa7(0x1e6)),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require(a1_0x37baa7(0x1d9)),fs=require('fs'),os=require('os'),utils=require('../../old/util'),request=require(a1_0x37baa7(0x1de)),compressing=require(a1_0x37baa7(0x1ec));module['exports']=_0x3a3d4f=>{const _0x3eada9=a1_0x37baa7,_0x3abd6e=path[_0x3eada9(0x1ea)]('./'),_0x3a4d0a=CLOUD_PROJECT[_0x3a3d4f]||undefined;if(_0x3a4d0a){const _0x28fb49=os['tmpdir'](),_0x9ba3a4=_0x28fb49+'/'+GIT_TEMP_DIR+'/'+_0x3a3d4f+_0x3eada9(0x1f3),_0x385dff=_0x28fb49+'/'+GIT_TEMP_DIR+_0x3eada9(0x1eb);utils[_0x3eada9(0x1f4)](_0x28fb49+'/'+GIT_TEMP_DIR,()=>{const _0x443af0=_0x3eada9;fs[_0x443af0(0x1ed)](_0x28fb49+'/'+GIT_TEMP_DIR);let _0x542b60=fs[_0x443af0(0x1dc)](_0x9ba3a4);request(GIT_HOST+_0x443af0(0x1e3)+_0x3a4d0a[_0x443af0(0x1e5)]+'/repository/archive.zip?private_token='+_0x3a4d0a[_0x443af0(0x1e2)]+_0x443af0(0x1e0))[_0x443af0(0x1fc)](_0x542b60)['on'](_0x443af0(0x1f1),()=>{const _0x1ab0ea=_0x443af0;fs[_0x1ab0ea(0x1ed)](_0x385dff),compressing[_0x1ab0ea(0x1f0)][_0x1ab0ea(0x1ef)](_0x9ba3a4,_0x385dff)[_0x1ab0ea(0x1f2)](()=>{setTimeout(()=>{const _0x136642=a1_0x5ce9;fs['readdirSync'](_0x385dff)[_0x136642(0x1fb)](_0x40f394=>{const _0x316826=_0x136642;_0x40f394[_0x316826(0x1db)](_0x316826(0x1f8))!==-0x1&&utils['CopyFolder'](_0x385dff+_0x40f394,_0x3abd6e,()=>{const _0x535cf0=_0x316826;console[_0x535cf0(0x1f7)](_0x535cf0(0x1ee)),process[_0x535cf0(0x1da)](0x0);});});},0x7d0);});});});}else console['log'](_0x3eada9(0x1f6)+_0x3a3d4f+'不存在。');};function a1_0x5ce9(_0x1fecfa,_0x386a4e){const _0x231918=a1_0x2319();return a1_0x5ce9=function(_0x5ce90f,_0x4614db){_0x5ce90f=_0x5ce90f-0x1d8;let _0x4cd080=_0x231918[_0x5ce90f];return _0x4cd080;},a1_0x5ce9(_0x1fecfa,_0x386a4e);}function a1_0x2319(){const _0x176fe6=['token','/api/v4/projects/','133DEuyuN','projectId','../cmd.install/tools','327326gkzYyH','110lDaDAh','54546vAYOVc','resolve','/unzip/','compressing','mkdirSync','初始化完成!','uncompress','zip','close','then','.zip','DeleteDirAllFile','1250488NmJDVQ','【Error】:初始化失败,','log','-master-','9FkDJPa','3wOZwRb','forEach','pipe','path','316638FDGXuV','../cmd.install/config','exit','indexOf','createWriteStream','1623056xFChVC','request','1036660lCTzbT','&ref=master','839047UTkAXx'];a1_0x2319=function(){return _0x176fe6;};return a1_0x2319();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a2_0x3e20(){const _0xc82888=['jjb-assembly-','jjb-assembly-java','1bGlhHF','807864MsSvAM','snBxJ2i5kYarGGcsojhY','127084BSifyX','G4HJRsHr9D7Ssmixegw2','test','7V-YUxhmh51Mdhgx4rq4','now','TEMPLATE_FOLDER','FT3pKzxpRynFkmddJ9Bs','8141660pTCfZN','GIT_TEMP_JAVA','36RBJLzu','12215icukMC','http://192.168.1.242:10985','3270KQRcWW','3128733UTnyEj','10244619KJWxPG','GIT_TEMP_DIR','18qgHwCD','GIT_JAVA_ENV_JSON','306420GNuvXF','CLOUD_PROJECT','gPSit8aJsLVmNzuQ5Cy4','GIT_HOST','tmpdir','http://120.26.210.58:8088'];a2_0x3e20=function(){return _0xc82888;};return a2_0x3e20();}const a2_0x119a33=a2_0x13e7;function a2_0x13e7(_0x457e82,_0x4a91d7){const _0x3e2076=a2_0x3e20();return a2_0x13e7=function(_0x13e77c,_0x5c1d0b){_0x13e77c=_0x13e77c-0x99;let _0x4624af=_0x3e2076[_0x13e77c];return _0x4624af;},a2_0x13e7(_0x457e82,_0x4a91d7);}(function(_0x541e73,_0x47bb8d){const _0x544942=a2_0x13e7,_0x2c9149=_0x541e73();while(!![]){try{const _0x363aab=parseInt(_0x544942(0x9b))/0x1*(parseInt(_0x544942(0x9e))/0x2)+parseInt(_0x544942(0xab))/0x3+-parseInt(_0x544942(0xa7))/0x4*(parseInt(_0x544942(0xb0))/0x5)+parseInt(_0x544942(0xaa))/0x6*(parseInt(_0x544942(0xa8))/0x7)+parseInt(_0x544942(0x9c))/0x8+parseInt(_0x544942(0xae))/0x9*(-parseInt(_0x544942(0xa5))/0xa)+parseInt(_0x544942(0xac))/0xb;if(_0x363aab===_0x47bb8d)break;else _0x2c9149['push'](_0x2c9149['shift']());}catch(_0x2c1c81){_0x2c9149['push'](_0x2c9149['shift']());}}}(a2_0x3e20,0xde24e));const os=require('os');exports['API_HOST']=a2_0x119a33(0xb5),exports[a2_0x119a33(0xb3)]=a2_0x119a33(0xa9),exports[a2_0x119a33(0xad)]=a2_0x119a33(0x99)+Date[a2_0x119a33(0xa2)](),exports[a2_0x119a33(0xa6)]=a2_0x119a33(0x9a),exports[a2_0x119a33(0xaf)]={'development':'dev','production':'prod','test':a2_0x119a33(0xa0)},exports[a2_0x119a33(0xb1)]={'common':{'token':a2_0x119a33(0x9f),'projectId':0x117},'react-admin-component':{'token':a2_0x119a33(0xa4),'projectId':0x154},'jjb-dva-runtime':{'token':'hLqARY89CN6fUD3yg4NL','projectId':0x23b},'jjb-common-lib':{'token':'e9njpBd1nS_LREN8GFpR','projectId':0x23c},'jjb-common-decorator':{'token':a2_0x119a33(0xb2),'projectId':0x23e},'vue-unisass-component':{'token':'d4wQ7dzEjYPsgVbKnYei','projectId':0x153},'react-component':{'token':a2_0x119a33(0x9d),'projectId':0x33f},'micro-app-ts':{'token':a2_0x119a33(0xa1),'projectId':0x33e},'micro-app':{'token':'FqNrmFAgrxasMrbbjvq9','projectId':0x33d},'lib':{'token':'ywPtT3xCG6b_vAxp6sTj','projectId':0x33c}},exports[a2_0x119a33(0xa3)]=os[a2_0x119a33(0xb4)]()+'\x5c'+exports[a2_0x119a33(0xad)];
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a3_0x14fe(){const _0x2cda05=['uncompress','join','unlinkSync','forEach','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','setting.json','compress','3544RcNMRE','length','log','rmdirSync','【jjb-cmd】:install命令执行完成,用时','\x5ctypes','readdirSync','installTarget','673857OTrqEf','4JksLpV','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','.gitignore','exit','index.js','29600050fmbFIy','installResources','1.0.0','path','10onYaNS','pure_name','filter','find','zip','existsSync','node_modules','package.json','exports','16415TcSwsq','map','./config','jjb-common-lib','close','11090862BKFkVd','_zip','pipe','repository','compressing','1125660coNicr','mkdirSync','replace','now','2981775rdbwgo','createWriteStream','8817420HfzPRl','【Error】:安装失败,node_modules目录不存在。','request','【Error】:安装失败,src目录不存在。'];a3_0x14fe=function(){return _0x2cda05;};return a3_0x14fe();}function a3_0x2685(_0x35c76a,_0x2fd2a6){const _0x14fe7d=a3_0x14fe();return a3_0x2685=function(_0x268502,_0x1c1e04){_0x268502=_0x268502-0x96;let _0x38d9fb=_0x14fe7d[_0x268502];return _0x38d9fb;},a3_0x2685(_0x35c76a,_0x2fd2a6);}const a3_0x312644=a3_0x2685;(function(_0x2fb5e5,_0x4a7a1e){const _0x119c90=a3_0x2685,_0x5cd951=_0x2fb5e5();while(!![]){try{const _0x4ccde1=parseInt(_0x119c90(0xae))/0x1+-parseInt(_0x119c90(0x9b))/0x2*(-parseInt(_0x119c90(0xc7))/0x3)+parseInt(_0x119c90(0xc8))/0x4*(-parseInt(_0x119c90(0xb2))/0x5)+-parseInt(_0x119c90(0xb4))/0x6+parseInt(_0x119c90(0xa4))/0x7*(-parseInt(_0x119c90(0xbf))/0x8)+-parseInt(_0x119c90(0xa9))/0x9+parseInt(_0x119c90(0x97))/0xa;if(_0x4ccde1===_0x4a7a1e)break;else _0x5cd951['push'](_0x5cd951['shift']());}catch(_0x229ef9){_0x5cd951['push'](_0x5cd951['shift']());}}}(a3_0x14fe,0xd4d02));const fs=require('fs'),path=require(a3_0x312644(0x9a)),request=require(a3_0x312644(0xb6)),compressing=require(a3_0x312644(0xad)),{f_rm_rf,f_file_copy,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require('./tools'),{TEMPLATE_FOLDER}=require(a3_0x312644(0xa6)),start_time=Date[a3_0x312644(0xb1)]();module[a3_0x312644(0xa3)]=()=>{const _0x119b46=a3_0x312644,_0x2127fb=path['resolve']('./'),_0x27c0f5=[_0x2127fb,'src\x5c'][_0x119b46(0xb9)]('\x5c'),_0x431ea4=[_0x2127fb,_0x119b46(0xa1)]['join']('\x5c'),_0x4228b3=[_0x2127fb,_0x119b46(0xa2)][_0x119b46(0xb9)]('\x5c');if(f_scan_jjb_config_json(_0x2127fb)){const _0x3725a3=f_scan_jjb_config_json_rules(_0x2127fb);_0x3725a3[_0x119b46(0xc6)]==='node_modules'?!fs[_0x119b46(0xa0)](_0x431ea4)?(console[_0x119b46(0xc1)](_0x119b46(0xb5)),process[_0x119b46(0xcb)](0x0)):console[_0x119b46(0xc1)](_0x119b46(0xc9)):!fs['existsSync'](_0x27c0f5)&&(console[_0x119b46(0xc1)](_0x119b46(0xb7)),process[_0x119b46(0xcb)](0x0));fs['mkdirSync'](TEMPLATE_FOLDER),f_pull_git_repository(_0x3725a3['installResources'])['map'](_0x120da4=>{const _0x9ef742=_0x119b46,_0x6d81d5=fs[_0x9ef742(0xb3)](_0x120da4['path']);request(_0x120da4[_0x9ef742(0xac)])[_0x9ef742(0xab)](_0x6d81d5)['on'](_0x9ef742(0xa8),()=>{const _0x34702a=_0x9ef742;fs[_0x34702a(0xaf)](_0x120da4[_0x34702a(0xbe)]),compressing[_0x34702a(0x9f)][_0x34702a(0xb8)](_0x120da4['path'],_0x120da4[_0x34702a(0xbe)]);});});const _0x28d2b1=setInterval(()=>{const _0x3e1bee=_0x119b46,_0x420471=fs[_0x3e1bee(0xc5)](TEMPLATE_FOLDER),_0x2287ca=_0x420471[_0x3e1bee(0x9d)](_0x2ba4ac=>_0x3725a3['installResources'][_0x3e1bee(0xa5)](_0x4bb275=>_0x4bb275['name']+_0x3e1bee(0xaa))['includes'](_0x2ba4ac));if(_0x2287ca[_0x3e1bee(0xc0)]===_0x3725a3[_0x3e1bee(0x98)][_0x3e1bee(0xc0)]){clearInterval(_0x28d2b1);const _0x4ebd8c=[];_0x2287ca[_0x3e1bee(0xbb)](_0x19ef79=>{const _0x162bea=_0x3e1bee,_0x5cbcb3=[TEMPLATE_FOLDER,_0x19ef79][_0x162bea(0xb9)]('\x5c');fs[_0x162bea(0xc5)](_0x5cbcb3)[_0x162bea(0xbb)](_0x7c587c=>_0x4ebd8c['push']({'name':_0x19ef79,'path':[_0x5cbcb3,_0x7c587c][_0x162bea(0xb9)]('\x5c'),'pure_name':_0x19ef79[_0x162bea(0xb0)](/_zip$/,''),'import_list':_0x3725a3[_0x162bea(0x98)][_0x162bea(0x9e)](_0x1586e6=>_0x1586e6['name']+_0x162bea(0xaa)===_0x19ef79)['importList']}));}),_0x4ebd8c[_0x3e1bee(0xbb)](_0x5d3388=>{const _0x1c426e=_0x3e1bee,_0x33930b=_0x5d3388[_0x1c426e(0x9c)],_0x54deef=_0x5d3388['import_list'],_0x448ac4=[_0x5d3388['path'],'.idea'][_0x1c426e(0xb9)]('//'),_0x2196e9=[_0x5d3388['path'],_0x1c426e(0xca)][_0x1c426e(0xb9)]('//');fs[_0x1c426e(0xa0)](_0x448ac4)&&(f_rm_rf(_0x448ac4),fs[_0x1c426e(0xc2)](_0x448ac4));fs[_0x1c426e(0xa0)](_0x2196e9)&&fs[_0x1c426e(0xba)](_0x2196e9);_0x54deef[_0x1c426e(0xc0)]&&fs[_0x1c426e(0xc5)](_0x5d3388[_0x1c426e(0x9a)])[_0x1c426e(0x9d)](_0x519a86=>!_0x54deef['includes'](_0x519a86)&&_0x519a86!==_0x1c426e(0x96)&&_0x519a86!==_0x1c426e(0xbd))['forEach'](_0x324fd6=>{const _0x3252ab=_0x1c426e,_0x46b613=_0x5d3388[_0x3252ab(0x9a)]+'\x5c'+_0x324fd6;f_rm_rf(_0x46b613),fs[_0x3252ab(0xc2)](_0x46b613);});if(_0x3725a3[_0x1c426e(0xc6)]===_0x1c426e(0xa1)){const _0x258869=_0x33930b;fs[_0x1c426e(0xa0)](_0x431ea4+'\x5c'+_0x258869)?f_rm_rf(_0x431ea4+'\x5c'+_0x258869):fs[_0x1c426e(0xaf)](_0x431ea4+'\x5c'+_0x258869),_0x258869!==_0x1c426e(0xa7)?(f_file_copy(_0x5d3388[_0x1c426e(0x9a)],_0x431ea4+'\x5c'+_0x258869),f_create_package_json(_0x431ea4+'\x5c'+_0x258869,_0x258869,'1.0.0')):f_file_copy(_0x5d3388[_0x1c426e(0x9a)]+_0x1c426e(0xc4),_0x431ea4+'\x5c'+_0x258869),f_update_project_package_json(_0x4228b3,_0x258869,_0x1c426e(0x99));}else _0x3725a3[_0x1c426e(0xc6)]==='src'&&(fs['existsSync'](_0x27c0f5+_0x33930b)?f_rm_rf(_0x27c0f5+_0x33930b):fs[_0x1c426e(0xaf)](_0x27c0f5+_0x33930b),f_file_copy(_0x5d3388[_0x1c426e(0x9a)],_0x27c0f5+_0x33930b));}),setTimeout(()=>{const _0x76d19e=_0x3e1bee;f_rm_rf(TEMPLATE_FOLDER),fs[_0x76d19e(0xc2)](TEMPLATE_FOLDER);const _0x41e71c=Date[_0x76d19e(0xb1)]();console[_0x76d19e(0xc1)](_0x76d19e(0xc3)+(_0x41e71c-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console['log'](_0x119b46(0xbc));};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a4_0x17b3b8=a4_0x145b;function a4_0x145b(_0x495409,_0x5f1dd6){const _0x564e1c=a4_0x564e();return a4_0x145b=function(_0x145b86,_0x1bd47e){_0x145b86=_0x145b86-0x1de;let _0x46fbe3=_0x564e1c[_0x145b86];return _0x46fbe3;},a4_0x145b(_0x495409,_0x5f1dd6);}function a4_0x564e(){const _0x20b7fb=['uniapp','78bzDrBM','417970pGqqrj','1866676rZtQYy','jjb-common','micro-spa','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','isArray','mkdirSync','installResources','【Error】:[jjb.config.json.projectType]类型是一个string。','spa','5206868xrpYuE','f_create_package_json','12792080tEkyLZ','f_scan_jjb_config_json','f_file_copy','length','/api/v4/projects/','./config','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','readFileSync','f_content_replace','projectType','path','log','_zip','push','jjb-dva-runtime','vue-unisass-component','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','16498tYtIdP','150QXFYca','replace','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','380OiGTAD','{\x22name\x22:\x22','&ref=master','filter','string','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','includes','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','exit','stringify','【Error】:[jjb.config.json.installTarget]类型是一个string。','statSync','【Error】:[jjb.config.json.installResources]无资源。','unlinkSync','installTarget','src','f_update_project_package_json','node_modules','name','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','writeFileSync','existsSync','f_rm_rf','readdirSync','parse','f_resolve_install_resources','forEach','76482KlxJnn','\x5cjjb.config.json','jjb-common-lib','map','dependencies','【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>。','96167GtCyyM','toString','jjb-common-decorator','\x22,\x22version\x22:\x22','isDirectory','multi','react-admin-component'];a4_0x564e=function(){return _0x20b7fb;};return a4_0x564e();}(function(_0x41e86e,_0x35822f){const _0x1293b1=a4_0x145b,_0x5acda4=_0x41e86e();while(!![]){try{const _0x112b24=-parseInt(_0x1293b1(0x1f1))/0x1+-parseInt(_0x1293b1(0x217))/0x2*(parseInt(_0x1293b1(0x218))/0x3)+-parseInt(_0x1293b1(0x204))/0x4+parseInt(_0x1293b1(0x1fa))/0x5*(parseInt(_0x1293b1(0x1f9))/0x6)+parseInt(_0x1293b1(0x1fb))/0x7+parseInt(_0x1293b1(0x206))/0x8+-parseInt(_0x1293b1(0x1eb))/0x9*(parseInt(_0x1293b1(0x21b))/0xa);if(_0x112b24===_0x35822f)break;else _0x5acda4['push'](_0x5acda4['shift']());}catch(_0x4eecd2){_0x5acda4['push'](_0x5acda4['shift']());}}}(a4_0x564e,0xc7fc6));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a4_0x17b3b8(0x20b));exports[a4_0x17b3b8(0x1e6)]=function(_0x4134a7){const _0x1db544=a4_0x17b3b8;if(fs[_0x1db544(0x1e5)](_0x4134a7)){const _0x45bcf0=fs[_0x1db544(0x1e7)](_0x4134a7);for(let _0x218358=0x0;_0x218358<_0x45bcf0['length'];_0x218358++){const _0x1baccd=_0x45bcf0[_0x218358],_0x2e6cea=_0x4134a7+'/'+_0x1baccd;fs[_0x1db544(0x226)](_0x2e6cea)[_0x1db544(0x1f5)]()?(exports['f_rm_rf'](_0x2e6cea),fs['rmdirSync'](_0x2e6cea)):fs[_0x1db544(0x228)](_0x2e6cea);}}},exports['f_pull_git_repository']=function(_0x4c43d8=[]){const _0x2088e6=a4_0x17b3b8;return _0x4c43d8[_0x2088e6(0x1ee)](_0x101183=>{const _0x47ba3d=_0x2088e6,_0x4090da=CLOUD_PROJECT[_0x101183['name']]||undefined,_0x53c8c7=os['tmpdir']();return{'path':_0x53c8c7+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x101183[_0x47ba3d(0x1e2)]+'.zip','compress':_0x53c8c7+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x101183[_0x47ba3d(0x1e2)]+_0x47ba3d(0x212),'repository':GIT_HOST+_0x47ba3d(0x20a)+_0x4090da['projectId']+'/repository/archive.zip?private_token='+_0x4090da['token']+_0x47ba3d(0x21d)};});},exports[a4_0x17b3b8(0x207)]=function(_0x24abd8){const _0x1e8de3=a4_0x17b3b8;return fs['existsSync'](_0x24abd8+_0x1e8de3(0x1ec));},exports['f_scan_jjb_config_json_rules']=function(_0x4b708b){const _0x383b35=a4_0x17b3b8;let _0x2b27f7={};try{_0x2b27f7=JSON['parse'](fs['readFileSync'](_0x4b708b+_0x383b35(0x1ec))['toString']());}catch(_0x24f313){console[_0x383b35(0x211)](_0x383b35(0x1e3)),process['exit'](0x0);}!(_0x383b35(0x20f)in _0x2b27f7)&&(console['log'](_0x383b35(0x222)),process[_0x383b35(0x223)](0x0));!(_0x383b35(0x1de)in _0x2b27f7)&&(console[_0x383b35(0x211)](_0x383b35(0x216)),process[_0x383b35(0x223)](0x0));!(_0x383b35(0x201)in _0x2b27f7)&&(console[_0x383b35(0x211)](_0x383b35(0x220)),process['exit'](0x0));typeof _0x2b27f7['projectType']!==_0x383b35(0x21f)&&(console[_0x383b35(0x211)](_0x383b35(0x202)),process[_0x383b35(0x223)](0x0));![_0x383b35(0x1f6),_0x383b35(0x203),_0x383b35(0x1f8),_0x383b35(0x1fd)]['includes'](_0x2b27f7['projectType'])&&(console[_0x383b35(0x211)](_0x383b35(0x1fe)),process['exit'](0x0));typeof _0x2b27f7[_0x383b35(0x1de)]!=='string'&&(console[_0x383b35(0x211)](_0x383b35(0x225)),process[_0x383b35(0x223)](0x0));![_0x383b35(0x1e1),_0x383b35(0x1df)][_0x383b35(0x221)](_0x2b27f7[_0x383b35(0x1de)])&&(console[_0x383b35(0x211)](_0x383b35(0x21a)),process['exit'](0x0));!Array[_0x383b35(0x1ff)](_0x2b27f7[_0x383b35(0x201)])&&(console[_0x383b35(0x211)](_0x383b35(0x20c)),process['exit'](0x0));_0x2b27f7[_0x383b35(0x201)][_0x383b35(0x209)]===0x0&&(console[_0x383b35(0x211)](_0x383b35(0x227)),process[_0x383b35(0x223)](0x0));const _0x5a723a=exports[_0x383b35(0x1e9)](_0x2b27f7['installResources']);return _0x5a723a[_0x383b35(0x1ee)](_0x233350=>_0x233350['name'])[_0x383b35(0x21e)](_0x211e2d=>![_0x383b35(0x1fc),_0x383b35(0x214),_0x383b35(0x1ed),_0x383b35(0x1f3),_0x383b35(0x1f7),_0x383b35(0x215)][_0x383b35(0x221)](_0x211e2d))[_0x383b35(0x209)]!==0x0&&(console[_0x383b35(0x211)](_0x383b35(0x1f0)),process[_0x383b35(0x223)](0x0)),_0x2b27f7[_0x383b35(0x201)]=_0x5a723a,_0x2b27f7;},exports[a4_0x17b3b8(0x205)]=function(_0x4f74d2,_0x2658ac,_0x1d7e4a){const _0x19517d=a4_0x17b3b8;fs['writeFileSync'](_0x4f74d2+'\x5cpackage.json',_0x19517d(0x21c)+_0x2658ac+_0x19517d(0x1f4)+_0x1d7e4a+'\x22,\x22main\x22:\x20\x22index.js\x22}');},exports[a4_0x17b3b8(0x1e9)]=function(_0x4ddcdd=[]){const _0x173945=a4_0x17b3b8,_0x2c2c5b=[];return Array['isArray'](_0x4ddcdd)&&_0x4ddcdd[_0x173945(0x1ea)](_0x71024a=>{const _0xef591f=_0x173945;if(Array[_0xef591f(0x1ff)](_0x71024a)){const [_0x14d50a,_0x57642a=[]]=_0x71024a;_0x2c2c5b['push']({'name':_0x14d50a,'importList':_0x57642a});}else _0x2c2c5b[_0xef591f(0x213)]({'name':_0x71024a,'importList':[]});}),_0x2c2c5b;},exports[a4_0x17b3b8(0x1e0)]=function(_0x1c1624,_0x546fa2,_0x457f72){const _0x5091f5=a4_0x17b3b8,_0x414a2c=JSON[_0x5091f5(0x1e8)](fs['readFileSync'](_0x1c1624)[_0x5091f5(0x1f2)]());_0x414a2c[_0x5091f5(0x1ef)][_0x546fa2]=_0x457f72,fs[_0x5091f5(0x1e4)](_0x1c1624,JSON[_0x5091f5(0x224)](_0x414a2c,null,0x2));},exports['f_file_copy']=function(_0x3b0eb1,_0x597d23){const _0xc86c9=a4_0x17b3b8;fs[_0xc86c9(0x1e7)](_0x3b0eb1)[_0xc86c9(0x1ea)](_0x3ec426=>{const _0x55c630=_0xc86c9,_0x31737a=_0x3b0eb1+'\x5c'+_0x3ec426,_0x401072=_0x597d23+'\x5c'+_0x3ec426;fs[_0x55c630(0x226)](_0x31737a)[_0x55c630(0x1f5)]()?(fs[_0x55c630(0x200)](_0x401072),exports[_0x55c630(0x208)](_0x31737a,_0x401072)):fs[_0x55c630(0x1e4)](_0x401072,fs[_0x55c630(0x20d)](_0x31737a)['toString']());});},exports[a4_0x17b3b8(0x20e)]=function(_0x5d27db=[],_0xfd9791){const _0x43c9f2=a4_0x17b3b8;_0x5d27db[_0x43c9f2(0x1ea)](_0x12de1d=>{const _0x2516ea=_0x43c9f2,_0x3c2407=_0xfd9791+_0x12de1d[_0x2516ea(0x210)];if(fs['existsSync'](_0x3c2407)){let _0x5f2917=fs['readFileSync'](_0x3c2407)[_0x2516ea(0x1f2)]();_0x12de1d[_0x2516ea(0x219)]['forEach'](_0x580f76=>{const _0x2635e3=_0x2516ea;_0x5f2917=_0x5f2917[_0x2635e3(0x219)](_0x580f76[0x0],_0x580f76[0x1]);}),fs[_0x2516ea(0x1e4)](_0x3c2407,_0x5f2917);}});};
|
@@ -0,0 +1 @@
|
|
1
|
+
const a5_0x4660dc=a5_0x40af;function a5_0x3c80(){const _0x5ac21b=['3314472gaLpir','install\x20husky\x20please\x20wait....','7649383TjzhgY','yarn','execSync','10943053MNcvAW','270KsgkTh','exit','log','install\x20modules\x20please\x20wait....','npm','git\x20init\x20please\x20wait....','exports','3ucxbZh','child_process','15NjDjJd','10xWMqeh','path','142482HtVSiO','【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]','existsSync','npx\x20husky\x20install','npm\x20install','8595510PYFomM','795714qUJGaG','14416TvJqCH','join','12LnVvXy'];a5_0x3c80=function(){return _0x5ac21b;};return a5_0x3c80();}(function(_0x1964b2,_0x42653a){const _0x2a79f2=a5_0x40af,_0x4691e4=_0x1964b2();while(!![]){try{const _0x5a8234=parseInt(_0x2a79f2(0x1c6))/0x1*(-parseInt(_0x2a79f2(0x1c8))/0x2)+-parseInt(_0x2a79f2(0x1c3))/0x3*(-parseInt(_0x2a79f2(0x1d2))/0x4)+-parseInt(_0x2a79f2(0x1c5))/0x5*(parseInt(_0x2a79f2(0x1ce))/0x6)+parseInt(_0x2a79f2(0x1d4))/0x7+parseInt(_0x2a79f2(0x1cf))/0x8*(-parseInt(_0x2a79f2(0x1bc))/0x9)+parseInt(_0x2a79f2(0x1cd))/0xa+parseInt(_0x2a79f2(0x1bb))/0xb*(-parseInt(_0x2a79f2(0x1d1))/0xc);if(_0x5a8234===_0x42653a)break;else _0x4691e4['push'](_0x4691e4['shift']());}catch(_0x22b13f){_0x4691e4['push'](_0x4691e4['shift']());}}}(a5_0x3c80,0x97cdc));function a5_0x40af(_0x1afa41,_0x8d4117){const _0x3c8040=a5_0x3c80();return a5_0x40af=function(_0x40afc8,_0x48bb06){_0x40afc8=_0x40afc8-0x1ba;let _0x159565=_0x3c8040[_0x40afc8];return _0x159565;},a5_0x40af(_0x1afa41,_0x8d4117);}const child_process=require(a5_0x4660dc(0x1c4)),path=require(a5_0x4660dc(0x1c7)),fs=require('fs');module[a5_0x4660dc(0x1c2)]=_0x4fb46f=>{const _0x130fa1=a5_0x4660dc;![_0x130fa1(0x1c0),_0x130fa1(0x1d5)]['includes'](_0x4fb46f)&&(console[_0x130fa1(0x1be)](_0x130fa1(0x1c9)),process[_0x130fa1(0x1bd)](0x0)),console['log'](_0x130fa1(0x1bf)),child_process[_0x130fa1(0x1ba)](_0x4fb46f===_0x130fa1(0x1d5)?_0x130fa1(0x1d5):_0x130fa1(0x1cc)),!fs[_0x130fa1(0x1ca)](path[_0x130fa1(0x1d0)](__dirname,'./.git'))&&(console[_0x130fa1(0x1be)](_0x130fa1(0x1c1)),child_process[_0x130fa1(0x1ba)]('git\x20init')),console[_0x130fa1(0x1be)](_0x130fa1(0x1d3)),child_process['execSync'](_0x130fa1(0x1cb)),console['log']('Finish!');};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a6_0x5a933c=a6_0x3a08;(function(_0x219eef,_0x4acdd7){const _0x43633e=a6_0x3a08,_0x49a217=_0x219eef();while(!![]){try{const _0x4b0307=parseInt(_0x43633e(0xa9))/0x1+parseInt(_0x43633e(0xba))/0x2+parseInt(_0x43633e(0xa2))/0x3+-parseInt(_0x43633e(0xb6))/0x4*(parseInt(_0x43633e(0x9e))/0x5)+parseInt(_0x43633e(0xa0))/0x6+parseInt(_0x43633e(0xaa))/0x7*(parseInt(_0x43633e(0xb7))/0x8)+-parseInt(_0x43633e(0xa6))/0x9*(parseInt(_0x43633e(0x9c))/0xa);if(_0x4b0307===_0x4acdd7)break;else _0x49a217['push'](_0x49a217['shift']());}catch(_0x41e129){_0x49a217['push'](_0x49a217['shift']());}}}(a6_0xe2a2,0xdc89e));function a6_0x3a08(_0x331522,_0x25683e){const _0xe2a2c4=a6_0xe2a2();return a6_0x3a08=function(_0x3a08a9,_0x26d027){_0x3a08a9=_0x3a08a9-0x9b;let _0x19b56c=_0xe2a2c4[_0x3a08a9];return _0x19b56c;},a6_0x3a08(_0x331522,_0x25683e);}const path=require(a6_0x5a933c(0xa8)),fs=require('fs'),os=require('os'),axios=require(a6_0x5a933c(0x9f)),{API_HOST}=require(a6_0x5a933c(0xaf));function a6_0xe2a2(){const _0x18fc2d=['\x5cpackage.json','1903458dbvSFA','Auth\x20Fail!','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','toString','45705483tfjnjI','resolve','path','1478646AYtsCF','7wMYHPt','网络异常。','readFileSync','data','exports','../cmd.install/config','../../../.auth','\x5cdist\x5cindex.js','hostname','exit','log','split','4886668oUVvrX','13566248bfyGIg','stringify','【Error】:no\x20auth\x20login','3584944QKPTVJ','catch','then','join','Auth\x20NetWork\x20Fail!','push','status','existsSync','10MfaUHF','message','5SjjHRt','axios','9611970qoUmWO'];a6_0xe2a2=function(){return _0x18fc2d;};return a6_0xe2a2();}module[a6_0x5a933c(0xae)]=_0x2777af=>{const _0x3a87e4=a6_0x5a933c,_0x41a98c=path[_0x3a87e4(0xbd)](__dirname,_0x3a87e4(0xb0));!fs['existsSync'](_0x41a98c)&&(console[_0x3a87e4(0xb4)](_0x3a87e4(0xb9)),process[_0x3a87e4(0xb3)](0x0));const [_0x517fe0,_0x42f282]=fs[_0x3a87e4(0xac)](_0x41a98c)['toString']()[_0x3a87e4(0xb5)]('/');axios['post'](API_HOST+'/api/auth',{'username':_0x517fe0,'password':_0x42f282})[_0x3a87e4(0xbc)](_0x4f7e21=>{const _0xdf266=_0x3a87e4;if(_0x4f7e21[_0xdf266(0xad)][_0xdf266(0xc0)]){const _0xc6d867=path[_0xdf266(0xa7)]('./'),_0x563b63=_0xc6d867+_0xdf266(0xb1),_0x578425=_0xc6d867+_0xdf266(0xa1),_0x524076=[os[_0xdf266(0xb2)](),os['platform'](),os['arch'](),new Date()[_0xdf266(0xa5)](),JSON[_0xdf266(0xb8)](os['networkInterfaces'](),null,'\x09')];if(fs['existsSync'](_0x578425)){if(fs[_0xdf266(0x9b)](_0x563b63)){const _0x217835=JSON['parse'](fs['readFileSync'](_0x578425)[_0xdf266(0xa5)]()),{name:_0xa1e914,version:_0xc674f4}=_0x217835;_0x524076[_0xdf266(0xbf)](JSON[_0xdf266(0xb8)](_0x217835)),axios['post'](API_HOST+'/api/file/push',{'username':_0x517fe0,'log_text':_0x524076['join']('\x0a'),'package_name':_0xa1e914,'package_version':_0x2777af?_0x2777af:_0xc674f4,'package_content':fs[_0xdf266(0xac)](_0x563b63)['toString']()})[_0xdf266(0xbc)](_0x1d27d5=>{const _0xe8d258=_0xdf266;console[_0xe8d258(0xb4)](_0x1d27d5['data'][_0xe8d258(0x9d)]),process[_0xe8d258(0xb3)](0x0);})[_0xdf266(0xbb)](_0x136e24=>{const _0x8a64af=_0xdf266;console[_0x8a64af(0xb4)](_0x136e24),console[_0x8a64af(0xb4)](_0x8a64af(0xab)),process[_0x8a64af(0xb3)](0x0);});}else console['log'](_0xdf266(0xa4)),process[_0xdf266(0xb3)](0x0);}else console[_0xdf266(0xb4)]('发布失败!根目录缺少‘package.json’文件,无法完成发布。'),process[_0xdf266(0xb3)](0x0);}else console[_0xdf266(0xb4)](_0xdf266(0xa3));})[_0x3a87e4(0xbb)](_0x1ab824=>{const _0x15c653=_0x3a87e4;console[_0x15c653(0xb4)](_0x15c653(0xbe));});};
|
package/src/new/cmd.push/java.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a7_0x362935=a7_0x2cc3;function a7_0x453e(){const _0x39ed73=['【Error】:no\x20setting\x20gitName','Git\x20Pull\x20Done,yarn\x20build:','exit','【Error】:参数传递错误','axios','gitName','1407580wgeSqK','56lakHSS','git\x20pull','686670mSOlyi','join','1099842QzzyBH','tmpdir','1462749SXkQku','catch','/api/auth','【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...','【Error】:no\x20setting\x20git','【Error】:打包失败,没有dist目录!','git','Auth\x20NetWork\x20Fail!','git\x20add\x20.','git\x20commit\x20-m\x20','4gvvWQf','execSync','2PqBBfq','readFileSync','../cmd.install/config','yarn','11LgWbCg','5764023DrtQRT','yarn\x20build:','post','status','log','\x20--no-verify','git\x20clone\x20','Git\x20Push\x20Done!','git\x20push\x20-f','Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...','existsSync','toString','9376496haruig','Git\x20Add\x20Done,git\x20commit,please\x20wait...','parse','yarn\x20install\x20Done!','path','\x5cjjb.config.json','split','2503480FAFJyk','Git\x20Commit\x20Done,git\x20push,please\x20wait...','resolve'];a7_0x453e=function(){return _0x39ed73;};return a7_0x453e();}(function(_0x2719e3,_0x3a5017){const _0x2a0f11=a7_0x2cc3,_0x8864b3=_0x2719e3();while(!![]){try{const _0x4da9fa=parseInt(_0x2a0f11(0x85))/0x1*(parseInt(_0x2a0f11(0x91))/0x2)+parseInt(_0x2a0f11(0x83))/0x3*(-parseInt(_0x2a0f11(0x8f))/0x4)+parseInt(_0x2a0f11(0x7e))/0x5+-parseInt(_0x2a0f11(0x81))/0x6*(parseInt(_0x2a0f11(0x7f))/0x7)+parseInt(_0x2a0f11(0xa2))/0x8+-parseInt(_0x2a0f11(0x96))/0x9+-parseInt(_0x2a0f11(0x75))/0xa*(parseInt(_0x2a0f11(0x95))/0xb);if(_0x4da9fa===_0x3a5017)break;else _0x8864b3['push'](_0x8864b3['shift']());}catch(_0x306443){_0x8864b3['push'](_0x8864b3['shift']());}}}(a7_0x453e,0xb57be));const fs=require('fs'),os=require('os'),path=require(a7_0x362935(0x72)),child_process=require('child_process'),{CopyFolder,DeleteDirAllFile}=require('../../old/util'),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,API_HOST}=require(a7_0x362935(0x93)),axios=require(a7_0x362935(0x7c));function a7_0x2cc3(_0x243f84,_0x1f2625){const _0x453e17=a7_0x453e();return a7_0x2cc3=function(_0x2cc340,_0x342629){_0x2cc340=_0x2cc340-0x6f;let _0x1d7bb0=_0x453e17[_0x2cc340];return _0x1d7bb0;},a7_0x2cc3(_0x243f84,_0x1f2625);}module['exports']=arguments=>{const _0x30eaa1=a7_0x362935,_0x2eb6b1=path[_0x30eaa1(0x82)](__dirname,'../../../.auth');!fs[_0x30eaa1(0xa0)](_0x2eb6b1)&&(console['log']('【Error】:no\x20auth\x20login'),process[_0x30eaa1(0x7a)](0x0));const _0x4da700=arguments[0x1],_0x28c4eb=arguments[0x2]||'no\x20message',_0xb3e949=path[_0x30eaa1(0x77)]('./'),_0x5569fd=_0xb3e949+_0x30eaa1(0x73),_0x5d8ec4=_0xb3e949+'\x5cdist',_0x2f73af=os[_0x30eaa1(0x84)](),[_0x1f88a8,_0x446daf]=fs[_0x30eaa1(0x92)](_0x2eb6b1)[_0x30eaa1(0xa1)]()[_0x30eaa1(0x74)]('/');axios[_0x30eaa1(0x98)](API_HOST+_0x30eaa1(0x87),{'username':_0x1f88a8,'password':_0x446daf})['then'](_0x2f93c1=>{const _0x59f90a=_0x30eaa1;if(_0x2f93c1['data'][_0x59f90a(0x99)]){if(fs[_0x59f90a(0xa0)](_0x5569fd)){const _0x436909=JSON[_0x59f90a(0x70)](fs['readFileSync'](_0x5569fd)[_0x59f90a(0xa1)]());if(_0x436909[_0x59f90a(0x8b)]){const _0x504da3=_0x2f73af+'/'+GIT_TEMP_JAVA;!fs['existsSync'](_0x504da3)&&(fs['mkdirSync'](_0x504da3),child_process[_0x59f90a(0x90)](_0x59f90a(0x9c)+_0x436909[_0x59f90a(0x8b)],{'cwd':_0x504da3})),_0xb142fa(_0x504da3,_0x436909);}else console[_0x59f90a(0x9a)](_0x59f90a(0x89));}}else console[_0x59f90a(0x9a)]('Auth\x20Fail!');})[_0x30eaa1(0x86)](_0x1b6af6=>{const _0x6773dc=_0x30eaa1;console['log'](_0x6773dc(0x8c));});arguments['length']<0x2&&(console[_0x30eaa1(0x9a)](_0x30eaa1(0x7b)),process['exit'](0x0));function _0xb142fa(_0x247e1e,_0x46093e){const _0x1696e3=_0x30eaa1,_0x4f985a=_0x247e1e+'/'+_0x46093e[_0x1696e3(0x7d)];!fs[_0x1696e3(0xa0)](_0x4f985a)&&(console[_0x1696e3(0x9a)](_0x1696e3(0x78)),process[_0x1696e3(0x7a)](0x0));child_process['execSync'](_0x1696e3(0x80),{'cwd':_0x4f985a});!fs[_0x1696e3(0xa0)](_0xb3e949+'/node_modules')?(console['log'](_0x1696e3(0x88)),child_process[_0x1696e3(0x90)](_0x1696e3(0x94),{'cwd':_0xb3e949}),console[_0x1696e3(0x9a)](_0x1696e3(0x71))):console[_0x1696e3(0x9a)](_0x1696e3(0x79)+_0x4da700+',please\x20wait...');child_process['execSync'](_0x1696e3(0x97)+_0x4da700,{'cwd':_0xb3e949}),console[_0x1696e3(0x9a)]('Project\x20build\x20Done,copy\x20project,please\x20wait...');if(fs[_0x1696e3(0xa0)](_0x5d8ec4)){const _0x5bbf41=_0x4f985a+'/src/main/resources/templates/'+GIT_JAVA_ENV_JSON[_0x4da700];DeleteDirAllFile(_0x5bbf41,()=>{fs['mkdirSync'](_0x5bbf41),CopyFolder(_0x5d8ec4,_0x5bbf41,()=>{const _0x341d9f=a7_0x2cc3;console['log'](_0x341d9f(0x9f)),setTimeout(()=>{const _0x592619=_0x341d9f;child_process['execSync'](_0x592619(0x8d),{'cwd':_0x4f985a}),console[_0x592619(0x9a)](_0x592619(0x6f));try{child_process['execSync'](_0x592619(0x8e)+_0x28c4eb+_0x592619(0x9b),{'cwd':_0x4f985a}),console[_0x592619(0x9a)](_0x592619(0x76));}catch(_0x1c21f1){console[_0x592619(0x9a)]('【warning】:no\x20commit,git\x20push,please\x20wait...');}child_process[_0x592619(0x90)](_0x592619(0x9e),{'cwd':_0x4f985a}),console['log'](_0x592619(0x9d));},0x3e8);});});}else console[_0x1696e3(0x9a)](_0x1696e3(0x8a));}};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a8_0x1069ac=a8_0x165e;(function(_0x3979b2,_0x53c53f){const _0x4e5d1d=a8_0x165e,_0x313582=_0x3979b2();while(!![]){try{const _0x2245dc=parseInt(_0x4e5d1d(0xe6))/0x1+-parseInt(_0x4e5d1d(0xf0))/0x2+parseInt(_0x4e5d1d(0xe5))/0x3*(parseInt(_0x4e5d1d(0xe3))/0x4)+parseInt(_0x4e5d1d(0xde))/0x5*(parseInt(_0x4e5d1d(0xe4))/0x6)+-parseInt(_0x4e5d1d(0xe7))/0x7+-parseInt(_0x4e5d1d(0xdf))/0x8+-parseInt(_0x4e5d1d(0xe8))/0x9*(-parseInt(_0x4e5d1d(0xe9))/0xa);if(_0x2245dc===_0x53c53f)break;else _0x313582['push'](_0x313582['shift']());}catch(_0x669a6b){_0x313582['push'](_0x313582['shift']());}}}(a8_0x3380,0x3af1b));const axios=require(a8_0x1069ac(0xeb));function a8_0x165e(_0x1d5164,_0x2a84b8){const _0x3380ce=a8_0x3380();return a8_0x165e=function(_0x165ee3,_0x48a6ec){_0x165ee3=_0x165ee3-0xda;let _0x134c82=_0x3380ce[_0x165ee3];return _0x134c82;},a8_0x165e(_0x1d5164,_0x2a84b8);}module[a8_0x1069ac(0xea)]=_0x21bf01=>{const _0xcef818=a8_0x1069ac;axios[_0xcef818(0xdd)](_0xcef818(0xef))[_0xcef818(0xed)](_0x32f3e9=>{const _0x26e2c6=_0xcef818;if(_0x32f3e9['data']['status']){const _0x12f3d2=_0x32f3e9[_0x26e2c6(0xe1)][_0x26e2c6(0xe1)];_0x21bf01===_0x26e2c6(0xdc)&&(console[_0x26e2c6(0xe0)](_0x12f3d2['host']),console[_0x26e2c6(0xe0)](_0x12f3d2[_0x26e2c6(0xe2)])),_0x21bf01===_0x26e2c6(0xec)&&console[_0x26e2c6(0xe0)](_0x12f3d2[_0x26e2c6(0xec)]);}else console[_0x26e2c6(0xe0)](_0x32f3e9[_0x26e2c6(0xe1)][_0x26e2c6(0xdb)]);process['exit'](0x0);})['catch'](()=>{const _0x51ee6d=_0xcef818;console[_0x51ee6d(0xe0)](_0x51ee6d(0xda)),process[_0x51ee6d(0xee)](0x0);});};function a8_0x3380(){const _0x3f6c17=['port','12nSbolM','38634Aycdxp','166164paPjmq','375927rNoNrv','3242120DEvcyq','18EXVgBw','648940hNSsAS','exports','axios','components','then','exit','http://120.26.210.58:8088/api/file/config','244566rJwzMl','网络异常。','message','server','post','185IKvGPl','665952FbKWDq','log','data'];a8_0x3380=function(){return _0x3f6c17;};return a8_0x3380();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a9_0x184ae0=a9_0x4e18;function a9_0x4e18(_0x1a0716,_0x34d78a){const _0x257346=a9_0x2573();return a9_0x4e18=function(_0x4e1896,_0x28d5c7){_0x4e1896=_0x4e1896-0x1bb;let _0xb762f1=_0x257346[_0x4e1896];return _0xb762f1;},a9_0x4e18(_0x1a0716,_0x34d78a);}(function(_0x57adc9,_0x5b0a5d){const _0x226ce9=a9_0x4e18,_0x5e355b=_0x57adc9();while(!![]){try{const _0x4f1e3b=-parseInt(_0x226ce9(0x1ce))/0x1*(-parseInt(_0x226ce9(0x1d5))/0x2)+-parseInt(_0x226ce9(0x1bb))/0x3+-parseInt(_0x226ce9(0x1cb))/0x4*(parseInt(_0x226ce9(0x1c8))/0x5)+-parseInt(_0x226ce9(0x1c3))/0x6+parseInt(_0x226ce9(0x1c2))/0x7+-parseInt(_0x226ce9(0x1d3))/0x8*(-parseInt(_0x226ce9(0x1cc))/0x9)+parseInt(_0x226ce9(0x1c1))/0xa*(-parseInt(_0x226ce9(0x1c5))/0xb);if(_0x4f1e3b===_0x5b0a5d)break;else _0x5e355b['push'](_0x5e355b['shift']());}catch(_0x4ef9ea){_0x5e355b['push'](_0x5e355b['shift']());}}}(a9_0x2573,0xd1892));const fs=require('fs'),path=require(a9_0x184ae0(0x1d7)),readline=require(a9_0x184ae0(0x1ca)),io=readline[a9_0x184ae0(0x1bc)]({'input':process['stdin'],'output':process[a9_0x184ae0(0x1bf)]});let f_total=0x0;function a9_0x2573(){const _0x364001=['createInterface','trim','exit','stdout','resolve','2338310pcXWbQ','2000278bPhFER','4882986oioKxj','existsSync','55DlRbCu','length','无效操作。','5yqDgez','unlinkSync','readline','2756812CmyXLG','9BuQPkO','log','21223AHhTuj','删除文件:','是否确认删除?删除后不可恢复![y/n]:','clear','删除文件夹:','13193008CbUmmp','rmdirSync','154mIlmZt','正在计算项目数,请稍等...','path','删除完成。','115812HvJKbi'];a9_0x2573=function(){return _0x364001;};return a9_0x2573();}module['exports']=function(){const _0x24e284=a9_0x184ae0,_0x1ce068=path[_0x24e284(0x1c0)]('./');io['question'](_0x24e284(0x1d0),function(_0x41d00c){const _0x3c56db=_0x24e284;if(_0x41d00c['trim']()==='y')console[_0x3c56db(0x1cd)](_0x3c56db(0x1d6)),setTimeout(()=>{setTimeout(()=>{const _0x1040db=a9_0x4e18;console[_0x1040db(0x1d1)](),exec(_0x1ce068),setTimeout(()=>{const _0x1b4d09=_0x1040db;console['log'](_0x1b4d09(0x1d8)),console[_0x1b4d09(0x1d1)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x41d00c[_0x3c56db(0x1bd)]()==='n'?(console[_0x3c56db(0x1cd)]('取消删除。'),process['exit'](0x0)):(console['log'](_0x3c56db(0x1c7)),process[_0x3c56db(0x1be)](0x0));});};function exec(_0xb51874){const _0x4784fc=a9_0x184ae0;if(fs[_0x4784fc(0x1c4)](_0xb51874)){const _0x5b97dc=fs['readdirSync'](_0xb51874);for(let _0xe13860=0x0;_0xe13860<_0x5b97dc[_0x4784fc(0x1c6)];_0xe13860++){const _0x46d74c=_0x5b97dc[_0xe13860],_0x2a2a4e=_0xb51874+'/'+_0x46d74c;try{fs['statSync'](_0x2a2a4e)['isDirectory']()?(exec(_0x2a2a4e),fs[_0x4784fc(0x1d4)](_0x2a2a4e,{'recursive':!![]}),console[_0x4784fc(0x1cd)](_0x4784fc(0x1d2)+_0x2a2a4e)):(fs[_0x4784fc(0x1c9)](_0x2a2a4e),console['log'](_0x4784fc(0x1cf)+_0x2a2a4e));}catch(_0x2ac362){console['log']('删除异常:'+_0x2a2a4e);}}}}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a10_0x468469=a10_0x353e;function a10_0x353e(_0x219402,_0x42f496){const _0x3fe2ec=a10_0x3fe2();return a10_0x353e=function(_0x353e7b,_0x13312a){_0x353e7b=_0x353e7b-0x145;let _0x3e6618=_0x3fe2ec[_0x353e7b];return _0x3e6618;},a10_0x353e(_0x219402,_0x42f496);}(function(_0x17ccad,_0x5eb532){const _0x1c44b3=a10_0x353e,_0x1e9fc1=_0x17ccad();while(!![]){try{const _0x3aed73=-parseInt(_0x1c44b3(0x156))/0x1+parseInt(_0x1c44b3(0x14d))/0x2*(-parseInt(_0x1c44b3(0x150))/0x3)+-parseInt(_0x1c44b3(0x151))/0x4*(-parseInt(_0x1c44b3(0x146))/0x5)+-parseInt(_0x1c44b3(0x159))/0x6+-parseInt(_0x1c44b3(0x149))/0x7+parseInt(_0x1c44b3(0x157))/0x8+parseInt(_0x1c44b3(0x155))/0x9*(parseInt(_0x1c44b3(0x145))/0xa);if(_0x3aed73===_0x5eb532)break;else _0x1e9fc1['push'](_0x1e9fc1['shift']());}catch(_0x27d37){_0x1e9fc1['push'](_0x1e9fc1['shift']());}}}(a10_0x3fe2,0xe0a20));function a10_0x3fe2(){const _0x54adb3=['catch','http://120.26.210.58:8088/api/file/version','2754rWkfps','1559329leNTjI','3672488gtKaas','toString','10333758NcsTDn','resolve','查询失败!根目录缺少‘package.json’文件,无法完成查询。','168730vWHXAW','5idiueT','\x5cpackage.json','parse','6279378GynWLX','log','path','网络异常。','950182uhOhFh','axios','data','9XjqbJg','3607384aFVHuI','exit'];a10_0x3fe2=function(){return _0x54adb3;};return a10_0x3fe2();}const path=require(a10_0x468469(0x14b)),fs=require('fs'),axios=require(a10_0x468469(0x14e));module['exports']=()=>{const _0x374e57=a10_0x468469,_0x4ef729=path[_0x374e57(0x15a)]('./'),_0x4ccfb7=_0x4ef729+_0x374e57(0x147);if(fs['existsSync'](_0x4ccfb7)){const _0xf266c1=JSON[_0x374e57(0x148)](fs['readFileSync'](_0x4ccfb7)[_0x374e57(0x158)]()),{name:_0x3434c9}=_0xf266c1;axios['post'](_0x374e57(0x154),{'package_name':_0x3434c9})['then'](_0x28c22b=>{const _0x4a6d71=_0x374e57;_0x28c22b[_0x4a6d71(0x14f)]['status']?console['log'](_0x28c22b[_0x4a6d71(0x14f)]['data']):console['log'](_0x28c22b[_0x4a6d71(0x14f)]['message']),process[_0x4a6d71(0x152)](0x0);})[_0x374e57(0x153)](()=>{const _0x5a2bff=_0x374e57;console[_0x5a2bff(0x14a)](_0x5a2bff(0x14c)),process[_0x5a2bff(0x152)](0x0);});}else console['log'](_0x374e57(0x15b)),process['exit'](0x0);};
|
package/src/old/cli.init.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a11_0x3ef5a3=a11_0x3236;(function(_0x1b572a,_0x7fe5f9){const _0x15b019=a11_0x3236,_0x59da8d=_0x1b572a();while(!![]){try{const _0x31bb4c=-parseInt(_0x15b019(0x112))/0x1*(-parseInt(_0x15b019(0x10e))/0x2)+-parseInt(_0x15b019(0x10d))/0x3+-parseInt(_0x15b019(0x106))/0x4+-parseInt(_0x15b019(0x109))/0x5+parseInt(_0x15b019(0x10c))/0x6*(parseInt(_0x15b019(0x111))/0x7)+-parseInt(_0x15b019(0x108))/0x8+parseInt(_0x15b019(0x117))/0x9;if(_0x31bb4c===_0x7fe5f9)break;else _0x59da8d['push'](_0x59da8d['shift']());}catch(_0x28ff0e){_0x59da8d['push'](_0x59da8d['shift']());}}}(a11_0x4cf1,0x63b71));const path=require(a11_0x3ef5a3(0x10a)),readline=require(a11_0x3ef5a3(0x114)),{f_file_copy}=require(a11_0x3ef5a3(0x107)),fs=require('fs');function a11_0x3236(_0xddb40b,_0x290b1e){const _0x4cf113=a11_0x4cf1();return a11_0x3236=function(_0x323624,_0x2a79cd){_0x323624=_0x323624-0x103;let _0x4f3fe4=_0x4cf113[_0x323624];return _0x4f3fe4;},a11_0x3236(_0xddb40b,_0x290b1e);}module[a11_0x3ef5a3(0x104)]=()=>{const _0x451905=a11_0x3ef5a3,_0xa3b658=path[_0x451905(0x110)]('./');!fs['existsSync'](_0xa3b658+_0x451905(0x115))&&!fs['existsSync'](_0xa3b658+'\x5cpublic')&&!fs['existsSync'](_0xa3b658+_0x451905(0x119))&&!fs[_0x451905(0x10f)](_0xa3b658+_0x451905(0x103))&&!fs['existsSync'](_0xa3b658+'\x5cwebstorm.config.js')?(f_file_copy(__dirname+_0x451905(0x118),_0xa3b658),console[_0x451905(0x105)](_0x451905(0x10b)),process[_0x451905(0x116)](0x0)):(console[_0x451905(0x105)](_0x451905(0x113)),process[_0x451905(0x116)](0x0));};function a11_0x4cf1(){const _0x39a42e=['982HApBQS','existsSync','resolve','28QrkDMj','943PqtqWu','初始化失败,文件已存在!','readline','\x5cjjb.script','exit','17623233LQYvfj','\x5ccli.init','\x5cjjb.config.json','\x5cpackage.json','exports','log','2216944bCAsoo','./cli.install/tools','1939064APaWND','3388580HTRhWo','path','初始化完成!','215754bRqSOG','2046654EIUWmh'];a11_0x4cf1=function(){return _0x39a42e;};return a11_0x4cf1();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a12_0x34bad5=a12_0x7e59;(function(_0x23d8e6,_0x19f865){const _0x70303b=a12_0x7e59,_0x5d709d=_0x23d8e6();while(!![]){try{const _0xf42ccd=-parseInt(_0x70303b(0x184))/0x1+-parseInt(_0x70303b(0x18f))/0x2*(-parseInt(_0x70303b(0x15b))/0x3)+-parseInt(_0x70303b(0x156))/0x4*(parseInt(_0x70303b(0x176))/0x5)+parseInt(_0x70303b(0x18d))/0x6+parseInt(_0x70303b(0x170))/0x7*(parseInt(_0x70303b(0x189))/0x8)+parseInt(_0x70303b(0x16c))/0x9+parseInt(_0x70303b(0x15a))/0xa*(-parseInt(_0x70303b(0x178))/0xb);if(_0xf42ccd===_0x19f865)break;else _0x5d709d['push'](_0x5d709d['shift']());}catch(_0x48cac8){_0x5d709d['push'](_0x5d709d['shift']());}}}(a12_0x2440,0xd887c));function a12_0x2440(){const _0xbee1e=['return\x20__planA();','\x5cdva\x5cautomatic\x5cregister.js','CLI_DVA_REGISTER_SAAS','jjb-common/website','jjb-common/http','\x5cImageUploader\x5cindex.js','gPSit8aJsLVmNzuQ5Cy4','now','components','10394739rMwikf','jjb-common/color','common/http','CLOUD_PROJECT','106519QIZAev','common/website','\x5cPageHeaderBar\x5cindex.js','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','common/color','CLI_DVA_REGISTER_PATH','145jpFZwn','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','731489JArpHc','COMMON_CONTENT_NOR_REPLACE','GIT_TEMP_DIR','CLI_DVA_ROUTER_SPA','CLI_DVA_ROUTER_SAAS','GIT_HOST','CLI_DVA_REGISTER_SPA','\x5cImageCropper\x5cindex.js','hLqARY89CN6fUD3yg4NL','\x5c..\x5ccli.dva.router.saas.txt','return\x20process.env.app;','\x5cFileUploader\x5cindex.js','1029614xdotpz','TEMPLATE_FOLDER','\x5ctools\x5cindex.js','http://192.168.1.242:10985','\x5cRejectText\x5cindex.js','928ItWJLl','COMPONENTS_CONTENT_REPLACE','\x5c..\x5ccli.dva.register.saas.txt','jjb-react-admin-component','9454758jkWjCO','COMMON_CONTENT_MICRO_REPLACE','2GEfbZj','\x5c..\x5ccli.dva.register.spa.txt','161220HvoQPm','common/crypto','tmpdir','common/tools','340ictDDL','2551191qAXxal','\x5cEditor\x5cindex.js','\x5cwebsite\x5cindex.js','jjb-common/crypto','\x5cRouterMenu\x5cindex.js','jjb-common/tools','G4HJRsHr9D7Ssmixegw2','return\x20process.env;'];a12_0x2440=function(){return _0xbee1e;};return a12_0x2440();}const os=require('os');function a12_0x7e59(_0x357cd2,_0x190b40){const _0x244066=a12_0x2440();return a12_0x7e59=function(_0x7e59e9,_0x10d130){_0x7e59e9=_0x7e59e9-0x155;let _0x26ff77=_0x244066[_0x7e59e9];return _0x26ff77;},a12_0x7e59(_0x357cd2,_0x190b40);}exports[a12_0x34bad5(0x17d)]=a12_0x34bad5(0x187),exports['GIT_TEMP_DIR']='jjbAssembly_'+Date[a12_0x34bad5(0x16a)](),exports[a12_0x34bad5(0x16f)]={'common':{'token':a12_0x34bad5(0x161),'projectId':0x117},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154},'jjb-dva-runtime':{'token':a12_0x34bad5(0x180),'projectId':0x23b},'jjb-common-lib':{'token':'e9njpBd1nS_LREN8GFpR','projectId':0x23c},'jjb-common-decorator':{'token':a12_0x34bad5(0x169),'projectId':0x23e},'vue-unisass-component':{'token':'d4wQ7dzEjYPsgVbKnYei','projectId':0x153}},exports[a12_0x34bad5(0x185)]=os[a12_0x34bad5(0x158)]()+'\x5c'+exports[a12_0x34bad5(0x17a)],exports[a12_0x34bad5(0x17b)]=__dirname+'\x5c..\x5ccli.dva.router.spa.txt',exports[a12_0x34bad5(0x17c)]=__dirname+a12_0x34bad5(0x181),exports[a12_0x34bad5(0x17e)]=__dirname+a12_0x34bad5(0x155),exports[a12_0x34bad5(0x165)]=__dirname+a12_0x34bad5(0x18b),exports['CLI_DVA_ROUTER_PATH']='\x5cdva\x5cautomatic\x5crouter.js',exports[a12_0x34bad5(0x175)]=a12_0x34bad5(0x164),exports[a12_0x34bad5(0x179)]=[{'path':a12_0x34bad5(0x186),'replace':[['components','jjb-react-admin-component']]},{'path':a12_0x34bad5(0x15d),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a12_0x34bad5(0x177)],[a12_0x34bad5(0x16b),a12_0x34bad5(0x18c)]]}],exports['COMMON_CONTENT_SPA_REPLACE']=[{'path':a12_0x34bad5(0x186),'replace':[[a12_0x34bad5(0x163),a12_0x34bad5(0x162)]]}],exports[a12_0x34bad5(0x18e)]=[{'path':a12_0x34bad5(0x186),'replace':[[a12_0x34bad5(0x163),a12_0x34bad5(0x182)]]}],exports[a12_0x34bad5(0x18a)]=[{'path':a12_0x34bad5(0x15c),'replace':[[a12_0x34bad5(0x16e),a12_0x34bad5(0x167)],[a12_0x34bad5(0x157),a12_0x34bad5(0x15e)],[a12_0x34bad5(0x159),'jjb-common/tools']]},{'path':a12_0x34bad5(0x188),'replace':[[a12_0x34bad5(0x174),a12_0x34bad5(0x16d)]]},{'path':a12_0x34bad5(0x15f),'replace':[[a12_0x34bad5(0x159),'jjb-common/tools']]},{'path':a12_0x34bad5(0x183),'replace':[[a12_0x34bad5(0x16e),'jjb-common/http'],[a12_0x34bad5(0x159),a12_0x34bad5(0x160)]]},{'path':a12_0x34bad5(0x17f),'replace':[['common/http',a12_0x34bad5(0x167)],[a12_0x34bad5(0x159),a12_0x34bad5(0x160)]]},{'path':a12_0x34bad5(0x168),'replace':[['common/http',a12_0x34bad5(0x167)],[a12_0x34bad5(0x159),a12_0x34bad5(0x160)]]},{'path':a12_0x34bad5(0x172),'replace':[[a12_0x34bad5(0x174),a12_0x34bad5(0x16d)]]},{'path':'\x5cRouterContainer\x5cindex.js','replace':[[a12_0x34bad5(0x159),a12_0x34bad5(0x160)]]},{'path':a12_0x34bad5(0x173),'replace':[[a12_0x34bad5(0x171),a12_0x34bad5(0x166)],['common/tools',a12_0x34bad5(0x160)]]}];
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a13_0x3ae741=a13_0xf53b;function a13_0xf53b(_0x4b3e0f,_0x25773a){const _0x4bb988=a13_0x4bb9();return a13_0xf53b=function(_0xf53b50,_0x3b5d80){_0xf53b50=_0xf53b50-0x18e;let _0x259a33=_0x4bb988[_0xf53b50];return _0x259a33;},a13_0xf53b(_0x4b3e0f,_0x25773a);}(function(_0x32bdaa,_0x3e49d3){const _0x59427b=a13_0xf53b,_0x597204=_0x32bdaa();while(!![]){try{const _0x48d2be=-parseInt(_0x59427b(0x1c4))/0x1*(-parseInt(_0x59427b(0x1b2))/0x2)+-parseInt(_0x59427b(0x190))/0x3*(-parseInt(_0x59427b(0x1b9))/0x4)+-parseInt(_0x59427b(0x1d0))/0x5+-parseInt(_0x59427b(0x1b5))/0x6*(parseInt(_0x59427b(0x1a9))/0x7)+-parseInt(_0x59427b(0x1c6))/0x8+-parseInt(_0x59427b(0x1ae))/0x9+parseInt(_0x59427b(0x1bf))/0xa;if(_0x48d2be===_0x3e49d3)break;else _0x597204['push'](_0x597204['shift']());}catch(_0x46bae7){_0x597204['push'](_0x597204['shift']());}}}(a13_0x4bb9,0xdfae6));const fs=require('fs'),path=require(a13_0x3ae741(0x1d1)),request=require(a13_0x3ae741(0x1cb)),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_0x3ae741(0x1c9)),{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_0x3ae741(0x1a0)),start_time=Date[a13_0x3ae741(0x1c2)]();module[a13_0x3ae741(0x1bb)]=()=>{const _0x329bad=a13_0x3ae741,_0x4938df=path[_0x329bad(0x1c0)]('./'),_0x11f0b3=[_0x4938df,_0x329bad(0x1b8)][_0x329bad(0x1a3)]('\x5c'),_0x89c496=[_0x4938df,'node_modules'][_0x329bad(0x1a3)]('\x5c'),_0x1f5eab=[_0x4938df,_0x329bad(0x18e)][_0x329bad(0x1a3)]('\x5c');if(f_scan_jjb_config_json(_0x4938df)){const _0x282d04=f_scan_jjb_config_json_rules(_0x4938df);_0x282d04['installTarget']==='node_modules'?!fs[_0x329bad(0x19f)](_0x89c496)?(console[_0x329bad(0x1a7)](_0x329bad(0x191)),process[_0x329bad(0x1ad)](0x0)):console[_0x329bad(0x1a7)](_0x329bad(0x1c5)):!fs[_0x329bad(0x19f)](_0x11f0b3)&&(console[_0x329bad(0x1a7)](_0x329bad(0x1a4)),process[_0x329bad(0x1ad)](0x0));fs[_0x329bad(0x1a1)](TEMPLATE_FOLDER),f_pull_git_repository(_0x282d04[_0x329bad(0x1aa)])[_0x329bad(0x1b3)](_0x14e6c2=>{const _0x3e915c=_0x329bad,_0x156406=fs[_0x3e915c(0x1d3)](_0x14e6c2[_0x3e915c(0x1d1)]);request(_0x14e6c2[_0x3e915c(0x1ba)])[_0x3e915c(0x1a8)](_0x156406)['on']('close',()=>{const _0xdfb27d=_0x3e915c;fs[_0xdfb27d(0x1a1)](_0x14e6c2[_0xdfb27d(0x19d)]),compressing[_0xdfb27d(0x1a6)][_0xdfb27d(0x193)](_0x14e6c2[_0xdfb27d(0x1d1)],_0x14e6c2[_0xdfb27d(0x19d)]);});});const _0x2a94cf=setInterval(()=>{const _0x10893f=_0x329bad,_0x42204c=fs[_0x10893f(0x1d2)](TEMPLATE_FOLDER),_0x97d74e=_0x42204c['filter'](_0xb58840=>_0x282d04[_0x10893f(0x1aa)][_0x10893f(0x1b3)](_0x4d5c30=>_0x4d5c30[_0x10893f(0x1cc)]+_0x10893f(0x1ac))[_0x10893f(0x1b7)](_0xb58840));if(_0x97d74e[_0x10893f(0x1cd)]===_0x282d04[_0x10893f(0x1aa)][_0x10893f(0x1cd)]){clearInterval(_0x2a94cf);const _0x1a1eef=[];_0x97d74e[_0x10893f(0x196)](_0x39b706=>{const _0x3ea099=_0x10893f,_0x23517b=[TEMPLATE_FOLDER,_0x39b706][_0x3ea099(0x1a3)]('\x5c');fs[_0x3ea099(0x1d2)](_0x23517b)[_0x3ea099(0x196)](_0x1b5c7d=>_0x1a1eef['push']({'name':_0x39b706,'path':[_0x23517b,_0x1b5c7d][_0x3ea099(0x1a3)]('\x5c'),'pure_name':_0x39b706[_0x3ea099(0x18f)](/_zip$/,''),'import_list':_0x282d04[_0x3ea099(0x1aa)][_0x3ea099(0x1c3)](_0x1ed4f4=>_0x1ed4f4[_0x3ea099(0x1cc)]+_0x3ea099(0x1ac)===_0x39b706)[_0x3ea099(0x1c8)]}));}),_0x1a1eef[_0x10893f(0x196)](_0x5f02fd=>{const _0x20ecab=_0x10893f,_0x568061=_0x5f02fd[_0x20ecab(0x1cf)],_0x361733=_0x5f02fd['import_list'],_0x429732=[_0x5f02fd[_0x20ecab(0x1d1)],_0x20ecab(0x199)][_0x20ecab(0x1a3)]('//'),_0x22ac26=[_0x5f02fd[_0x20ecab(0x1d1)],_0x20ecab(0x19e)][_0x20ecab(0x1a3)]('//');fs['existsSync'](_0x429732)&&(f_rm_rf(_0x429732),fs[_0x20ecab(0x19a)](_0x429732));fs[_0x20ecab(0x19f)](_0x22ac26)&&fs[_0x20ecab(0x195)](_0x22ac26);if(_0x361733[_0x20ecab(0x1cd)]){fs[_0x20ecab(0x1d2)](_0x5f02fd[_0x20ecab(0x1d1)])[_0x20ecab(0x1c7)](_0x526392=>!_0x361733['includes'](_0x526392)&&_0x526392!==_0x20ecab(0x1ce)&&_0x526392!==_0x20ecab(0x1b4))[_0x20ecab(0x196)](_0x49ff2f=>{const _0x320059=_0x20ecab,_0x316258=_0x5f02fd['path']+'\x5c'+_0x49ff2f;f_rm_rf(_0x316258),fs[_0x320059(0x19a)](_0x316258);});if(_0x568061===_0x20ecab(0x19c)){const _0x29c2ce=[];fs[_0x20ecab(0x1d2)](_0x5f02fd['path'])[_0x20ecab(0x1c7)](_0x37adfb=>_0x37adfb!==_0x20ecab(0x1ce))[_0x20ecab(0x196)](_0x333416=>{const _0x13da6a=_0x20ecab;_0x333416===_0x13da6a(0x19b)?_0x29c2ce['push'](_0x13da6a(0x1a5)):_0x29c2ce[_0x13da6a(0x1af)]('export\x20{\x20default\x20as\x20'+_0x333416+'\x20}\x20from\x20\x27./'+_0x333416+'\x27;');}),fs['writeFileSync'](_0x5f02fd[_0x20ecab(0x1d1)]+_0x20ecab(0x1bd),_0x29c2ce[_0x20ecab(0x1a3)]('\x0a'));}}if(_0x568061==='jjb-common'){const _0x5c1b1b=[_0x5f02fd[_0x20ecab(0x1d1)],_0x20ecab(0x1be)]['join']('\x5c');if(['spa',_0x20ecab(0x197)][_0x20ecab(0x1b7)](_0x282d04['projectType']))fs[_0x20ecab(0x19f)](_0x5c1b1b)&&(f_content_replace(_0x282d04['projectType']===_0x20ecab(0x1bc)?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x5f02fd[_0x20ecab(0x1d1)]),fs[_0x20ecab(0x1b0)](_0x5f02fd['path']+CLI_DVA_ROUTER_PATH,fs[_0x20ecab(0x1b6)](_0x282d04['projectType']===_0x20ecab(0x1bc)?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)['toString']()),fs[_0x20ecab(0x1b0)](_0x5f02fd[_0x20ecab(0x1d1)]+CLI_DVA_REGISTER_PATH,fs['readFileSync'](_0x282d04['projectType']==='spa'?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)['toString']()));else _0x282d04['projectType']===_0x20ecab(0x192)&&(fs[_0x20ecab(0x19f)](_0x5c1b1b)&&(f_rm_rf(_0x5c1b1b),fs[_0x20ecab(0x19a)](_0x5c1b1b)));}else{if(_0x568061===_0x20ecab(0x19c))_0x282d04[_0x20ecab(0x1a2)]==='micro-spa'&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x5f02fd[_0x20ecab(0x1d1)]);else{if(_0x568061===_0x20ecab(0x1ab)){}}}if(_0x282d04[_0x20ecab(0x194)]===_0x20ecab(0x1c1)){const _0x2d790a=_0x568061;fs[_0x20ecab(0x19f)](_0x89c496+'\x5c'+_0x2d790a)?f_rm_rf(_0x89c496+'\x5c'+_0x2d790a):fs[_0x20ecab(0x1a1)](_0x89c496+'\x5c'+_0x2d790a),f_file_copy(_0x5f02fd['path'],_0x89c496+'\x5c'+_0x2d790a),f_create_package_json(_0x89c496+'\x5c'+_0x2d790a,_0x2d790a,_0x20ecab(0x1b1)),f_update_project_package_json(_0x1f5eab,_0x2d790a,'1.0.0');}else{if(_0x282d04[_0x20ecab(0x194)]==='src'){const _0xb41f7=_0x20ecab(0x19c);fs['existsSync'](_0x11f0b3+_0xb41f7)?f_rm_rf(_0x11f0b3+_0xb41f7):fs[_0x20ecab(0x1a1)](_0x11f0b3+_0xb41f7),f_file_copy(_0x5f02fd['path'],_0x11f0b3+_0xb41f7);}}}),setTimeout(()=>{const _0x272503=_0x10893f;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0x22c253=Date[_0x272503(0x1c2)]();console['log'](_0x272503(0x198)+(_0x22c253-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x329bad(0x1a7)](_0x329bad(0x1ca));};function a13_0x4bb9(){const _0x4c23f8=['readFileSync','includes','src\x5c','12868OmepPJ','repository','exports','spa','\x5cindex.js','\x5cdva\x5cautomatic','33474790rfVrCy','resolve','node_modules','now','find','254209phPQik','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','8511136ADzzdy','filter','importList','./tools','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','request','name','length','index.js','pure_name','786040YOIGfQ','path','readdirSync','createWriteStream','package.json','replace','1251PDujsP','【Error】:安装失败,node_modules目录不存在。','multi','uncompress','installTarget','unlinkSync','forEach','micro-spa','【jjb-cmd】:install命令执行完成,用时','.idea','rmdirSync','RouterContainer','react-admin-component','compress','.gitignore','existsSync','./config','mkdirSync','projectType','join','【Error】:安装失败,src目录不存在。','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','zip','log','pipe','11263wQStRj','installResources','vue-unisass-component','_zip','exit','13552029qbaoxy','push','writeFileSync','1.0.0','6lsVJrq','map','setting.json','6744jWLcXT'];a13_0x4bb9=function(){return _0x4c23f8;};return a13_0x4bb9();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a14_0x4010cd=a14_0x28a4;function a14_0x28a4(_0x49b4bd,_0x4756e3){const _0x1b1f6a=a14_0x1b1f();return a14_0x28a4=function(_0x28a494,_0x569d69){_0x28a494=_0x28a494-0x132;let _0x25f22f=_0x1b1f6a[_0x28a494];return _0x25f22f;},a14_0x28a4(_0x49b4bd,_0x4756e3);}(function(_0x3ce906,_0x4bc6d8){const _0x64bef3=a14_0x28a4,_0x3dce90=_0x3ce906();while(!![]){try{const _0x548d09=-parseInt(_0x64bef3(0x16c))/0x1+-parseInt(_0x64bef3(0x146))/0x2+-parseInt(_0x64bef3(0x134))/0x3+-parseInt(_0x64bef3(0x13f))/0x4*(parseInt(_0x64bef3(0x155))/0x5)+-parseInt(_0x64bef3(0x151))/0x6*(parseInt(_0x64bef3(0x149))/0x7)+parseInt(_0x64bef3(0x145))/0x8+parseInt(_0x64bef3(0x132))/0x9*(parseInt(_0x64bef3(0x14c))/0xa);if(_0x548d09===_0x4bc6d8)break;else _0x3dce90['push'](_0x3dce90['shift']());}catch(_0x11f0f4){_0x3dce90['push'](_0x3dce90['shift']());}}}(a14_0x1b1f,0x7a193));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a14_0x4010cd(0x15d));function a14_0x1b1f(){const _0x19c08e=['f_create_package_json','\x22,\x22main\x22:\x20\x22index.js\x22}','2830098fTiQtQ','projectType','rmdirSync','f_scan_jjb_config_json','5rcOmZS','f_rm_rf','uniapp','log','f_update_project_package_json','includes','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','{\x22name\x22:\x22','./config','f_file_copy','readdirSync','jjb-dva-runtime','f_content_replace','_zip','dependencies','push','\x22,\x22version\x22:\x22','jjb-common','statSync','name','mkdirSync','tmpdir','map','254777fNpGKd','existsSync','isDirectory','toString','projectId','stringify','/repository/archive.zip?private_token=','f_scan_jjb_config_json_rules','react-admin-component','node_modules','forEach','exit','writeFileSync','9qeHPMP','/api/v4/projects/','1009842bDBzOn','【Error】:[jjb.config.json.installTarget]类型是一个string。','string','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','【Error】:[jjb.config.json.installResources]无资源。','f_resolve_install_resources','multi','replace','vue-unisass-component','jjb-common-lib','&ref=master','2262812jwaSYv','.zip','【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>。','length','installTarget','micro-spa','6056360mgJuHS','564194kKoBXQ','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','installResources','7ZvHzBH','\x5cpackage.json','path','16539440omdHdj','token','readFileSync'];a14_0x1b1f=function(){return _0x19c08e;};return a14_0x1b1f();}exports[a14_0x4010cd(0x156)]=function(_0x577dde){const _0x4a8cc0=a14_0x4010cd;if(fs[_0x4a8cc0(0x16d)](_0x577dde)){const _0x15b01d=fs[_0x4a8cc0(0x15f)](_0x577dde);for(let _0x34ad5d=0x0;_0x34ad5d<_0x15b01d['length'];_0x34ad5d++){const _0x2fb26e=_0x15b01d[_0x34ad5d],_0x312f33=_0x577dde+'/'+_0x2fb26e;fs[_0x4a8cc0(0x167)](_0x312f33)[_0x4a8cc0(0x16e)]()?(exports[_0x4a8cc0(0x156)](_0x312f33),fs[_0x4a8cc0(0x153)](_0x312f33)):fs['unlinkSync'](_0x312f33);}}},exports['f_pull_git_repository']=function(_0x427691=[]){const _0x230cba=a14_0x4010cd;return _0x427691[_0x230cba(0x16b)](_0x24c802=>{const _0x31cbd5=_0x230cba,_0x597f08=CLOUD_PROJECT[_0x24c802['name']]||undefined,_0x359890=os[_0x31cbd5(0x16a)]();return{'path':_0x359890+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x24c802[_0x31cbd5(0x168)]+_0x31cbd5(0x140),'compress':_0x359890+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x24c802[_0x31cbd5(0x168)]+_0x31cbd5(0x162),'repository':GIT_HOST+_0x31cbd5(0x133)+_0x597f08[_0x31cbd5(0x170)]+_0x31cbd5(0x172)+_0x597f08[_0x31cbd5(0x14d)]+_0x31cbd5(0x13e)};});},exports[a14_0x4010cd(0x154)]=function(_0x436904){const _0x417e72=a14_0x4010cd;return fs[_0x417e72(0x16d)](_0x436904+'\x5cjjb.config.json');},exports[a14_0x4010cd(0x173)]=function(_0xd92920){const _0x3307a2=a14_0x4010cd;let _0x18ca20={};try{_0x18ca20=JSON['parse'](fs[_0x3307a2(0x14e)](_0xd92920+'\x5cjjb.config.json')[_0x3307a2(0x16f)]());}catch(_0x5ee28d){console[_0x3307a2(0x158)](_0x3307a2(0x137)),process['exit'](0x0);}!(_0x3307a2(0x152)in _0x18ca20)&&(console[_0x3307a2(0x158)]('【Error】:[jjb.config.json]文件配置无效,需要projectType属性。'),process[_0x3307a2(0x177)](0x0));!('installTarget'in _0x18ca20)&&(console[_0x3307a2(0x158)](_0x3307a2(0x15b)),process['exit'](0x0));!('installResources'in _0x18ca20)&&(console['log']('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process[_0x3307a2(0x177)](0x0));typeof _0x18ca20[_0x3307a2(0x152)]!==_0x3307a2(0x136)&&(console[_0x3307a2(0x158)]('【Error】:[jjb.config.json.projectType]类型是一个string。'),process['exit'](0x0));![_0x3307a2(0x13a),'spa',_0x3307a2(0x157),_0x3307a2(0x144)]['includes'](_0x18ca20[_0x3307a2(0x152)])&&(console[_0x3307a2(0x158)]('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process['exit'](0x0));typeof _0x18ca20[_0x3307a2(0x143)]!==_0x3307a2(0x136)&&(console[_0x3307a2(0x158)](_0x3307a2(0x135)),process['exit'](0x0));![_0x3307a2(0x175),'src'][_0x3307a2(0x15a)](_0x18ca20['installTarget'])&&(console[_0x3307a2(0x158)]('【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。'),process[_0x3307a2(0x177)](0x0));!Array['isArray'](_0x18ca20[_0x3307a2(0x148)])&&(console[_0x3307a2(0x158)](_0x3307a2(0x147)),process[_0x3307a2(0x177)](0x0));_0x18ca20[_0x3307a2(0x148)][_0x3307a2(0x142)]===0x0&&(console[_0x3307a2(0x158)](_0x3307a2(0x138)),process['exit'](0x0));const _0x19f03d=exports[_0x3307a2(0x139)](_0x18ca20['installResources']);return _0x19f03d[_0x3307a2(0x16b)](_0x4c3d72=>_0x4c3d72[_0x3307a2(0x168)])['filter'](_0x209f7a=>![_0x3307a2(0x166),_0x3307a2(0x160),_0x3307a2(0x13d),'jjb-common-decorator',_0x3307a2(0x174),_0x3307a2(0x13c)]['includes'](_0x209f7a))[_0x3307a2(0x142)]!==0x0&&(console[_0x3307a2(0x158)](_0x3307a2(0x141)),process[_0x3307a2(0x177)](0x0)),_0x18ca20[_0x3307a2(0x148)]=_0x19f03d,_0x18ca20;},exports[a14_0x4010cd(0x14f)]=function(_0x3f8c37,_0x55c804,_0x45b039){const _0xa34324=a14_0x4010cd;fs[_0xa34324(0x178)](_0x3f8c37+_0xa34324(0x14a),_0xa34324(0x15c)+_0x55c804+_0xa34324(0x165)+_0x45b039+_0xa34324(0x150));},exports['f_resolve_install_resources']=function(_0x4fea84=[]){const _0x66d368=a14_0x4010cd,_0x2978d8=[];return Array['isArray'](_0x4fea84)&&_0x4fea84[_0x66d368(0x176)](_0x57dc03=>{const _0x92ddac=_0x66d368;if(Array['isArray'](_0x57dc03)){const [_0x331e04,_0x1c5d67=[]]=_0x57dc03;_0x2978d8[_0x92ddac(0x164)]({'name':_0x331e04,'importList':_0x1c5d67});}else _0x2978d8[_0x92ddac(0x164)]({'name':_0x57dc03,'importList':[]});}),_0x2978d8;},exports[a14_0x4010cd(0x159)]=function(_0xffd300,_0x585ba6,_0x36af60){const _0x213ebb=a14_0x4010cd,_0x57eb2a=JSON['parse'](fs[_0x213ebb(0x14e)](_0xffd300)[_0x213ebb(0x16f)]());_0x57eb2a[_0x213ebb(0x163)][_0x585ba6]=_0x36af60,fs['writeFileSync'](_0xffd300,JSON[_0x213ebb(0x171)](_0x57eb2a,null,0x2));},exports[a14_0x4010cd(0x15e)]=function(_0x6af19a,_0x582c85){const _0x5e55ed=a14_0x4010cd;fs[_0x5e55ed(0x15f)](_0x6af19a)[_0x5e55ed(0x176)](_0x4b1225=>{const _0x20c5a0=_0x5e55ed,_0x537e93=_0x6af19a+'\x5c'+_0x4b1225,_0x2e9f39=_0x582c85+'\x5c'+_0x4b1225;fs[_0x20c5a0(0x167)](_0x537e93)[_0x20c5a0(0x16e)]()?(fs[_0x20c5a0(0x169)](_0x2e9f39),exports[_0x20c5a0(0x15e)](_0x537e93,_0x2e9f39)):fs[_0x20c5a0(0x178)](_0x2e9f39,fs[_0x20c5a0(0x14e)](_0x537e93)[_0x20c5a0(0x16f)]());});},exports[a14_0x4010cd(0x161)]=function(_0x106ead=[],_0x8d9f17){const _0x554c7e=a14_0x4010cd;_0x106ead[_0x554c7e(0x176)](_0x3b0e8e=>{const _0xbc3714=_0x554c7e,_0x21c33e=_0x8d9f17+_0x3b0e8e[_0xbc3714(0x14b)];if(fs[_0xbc3714(0x16d)](_0x21c33e)){let _0x3ddd4d=fs[_0xbc3714(0x14e)](_0x21c33e)[_0xbc3714(0x16f)]();_0x3b0e8e[_0xbc3714(0x13b)][_0xbc3714(0x176)](_0x4a5c5c=>{const _0x4f4918=_0xbc3714;_0x3ddd4d=_0x3ddd4d[_0x4f4918(0x13b)](_0x4a5c5c[0x0],_0x4a5c5c[0x1]);}),fs[_0xbc3714(0x178)](_0x21c33e,_0x3ddd4d);}});};
|
package/src/old/cli.merge.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a15_0x360cdf=a15_0x4bf9;function a15_0x4bf9(_0x527119,_0x219941){const _0x370bd6=a15_0x370b();return a15_0x4bf9=function(_0x4bf968,_0x44c691){_0x4bf968=_0x4bf968-0x158;let _0x1007e7=_0x370bd6[_0x4bf968];return _0x1007e7;},a15_0x4bf9(_0x527119,_0x219941);}(function(_0x1d4d41,_0x5644b6){const _0x29cdca=a15_0x4bf9,_0x4c9f72=_0x1d4d41();while(!![]){try{const _0xbf7284=-parseInt(_0x29cdca(0x166))/0x1*(-parseInt(_0x29cdca(0x16a))/0x2)+parseInt(_0x29cdca(0x163))/0x3+-parseInt(_0x29cdca(0x17b))/0x4+-parseInt(_0x29cdca(0x17d))/0x5*(-parseInt(_0x29cdca(0x16b))/0x6)+parseInt(_0x29cdca(0x16c))/0x7*(parseInt(_0x29cdca(0x172))/0x8)+parseInt(_0x29cdca(0x15a))/0x9*(parseInt(_0x29cdca(0x17a))/0xa)+-parseInt(_0x29cdca(0x164))/0xb;if(_0xbf7284===_0x5644b6)break;else _0x4c9f72['push'](_0x4c9f72['shift']());}catch(_0x104a17){_0x4c9f72['push'](_0x4c9f72['shift']());}}}(a15_0x370b,0xdfb2b));const fs=require('fs'),path=require(a15_0x360cdf(0x15f)),utils=require('./util.js');let projectPath='',vesselPath='',commandArr=[];const fromFileData={},applicationJson={};module['exports']=(_0x5a3e35,_0x6f8398)=>{const _0x51c1d7=a15_0x360cdf;commandArr=_0x5a3e35[_0x51c1d7(0x171)](':'),projectPath=path['resolve']('./project'),vesselPath=path[_0x51c1d7(0x175)]('./vessel/src');let _0x36864d=vesselPath;_0x6f8398==='mp'&&(_0x36864d=vesselPath+_0x51c1d7(0x167),utils[_0x51c1d7(0x170)](vesselPath,[_0x51c1d7(0x17c)]));const _0x10c6e5=commandArr[0x1],_0x28c7e2=JSON[_0x51c1d7(0x17e)](fs[_0x51c1d7(0x177)](projectPath+'/'+_0x10c6e5+'/setting.json')[_0x51c1d7(0x176)]());TileItems(_0x28c7e2[_0x51c1d7(0x15c)],()=>{const _0x282403=_0x51c1d7;fromFileData[_0x282403(0x16f)][_0x282403(0x180)](_0x56522c=>{const _0x21877d=_0x282403,_0x1e1e91=_0x56522c[_0x21877d(0x174)]['split'](_0x56522c[_0x21877d(0x158)]),_0x3b2f43=_0x1e1e91[0x1]['split']('/'),_0x1360df=_0x3b2f43[0x1];!applicationJson[_0x1360df]&&(applicationJson[_0x1360df]={'routerConfig':[],'routerPath':[]});applicationJson[_0x1360df][_0x21877d(0x16e)][_0x21877d(0x15b)](_0x21877d(0x173)+_0x56522c[_0x21877d(0x15f)]+_0x21877d(0x17f)+_0x56522c[_0x21877d(0x159)]+_0x21877d(0x16d)),applicationJson[_0x1360df][_0x21877d(0x15e)][_0x21877d(0x15b)](_0x56522c['path']);let _0x1b3497=_0x3b2f43[_0x21877d(0x178)]('/');const _0x24c069=_0x1b3497[_0x21877d(0x171)]('/');utils['CreatePaths'](_0x36864d,_0x24c069['slice'](0x0,_0x24c069[_0x21877d(0x165)]-0x1))[_0x21877d(0x162)](()=>{const _0x1ed70f=_0x21877d,_0x29d445=fs[_0x1ed70f(0x177)](_0x56522c[_0x1ed70f(0x174)])[_0x1ed70f(0x176)]();fs[_0x1ed70f(0x160)](vesselPath+'/'+_0x1b3497,_0x29d445);});});});};function a15_0x370b(){const _0x58af71=['file','369XzLPzP','push','items','map','routerPath','path','writeFileSync','from','then','3237681NbhPaZ','47349170ZAFyxt','length','13126rQkFjG','/application','DeepScanner','fileType','68JsvQvs','666AHWStg','1069516iTNQjZ','\x27)\x20}','routerConfig','router','CreatePaths','split','64HqRyxd','{\x20path:\x20\x27','pathAdr','resolve','toString','readFileSync','join','concat','264970xdASym','438496wKnSZd','application','67395HYVCmk','parse','\x27,\x20component:\x20()\x20=>\x20import(\x27','forEach','region'];a15_0x370b=function(){return _0x58af71;};return a15_0x370b();}function TileItems(_0x44f2a8,_0x26e886){const _0x2fca86=a15_0x360cdf;_0x44f2a8[_0x2fca86(0x180)]((_0x444d8b,_0x2c589f)=>{const _0x939b2c=_0x2fca86,_0x2b5503=_0x444d8b[_0x939b2c(0x158)];_0x444d8b[_0x939b2c(0x161)][_0x939b2c(0x180)]((_0x5ca342,_0x348e4c)=>{const _0x10bf6f=_0x939b2c,_0x49f672=[];utils[_0x10bf6f(0x168)](projectPath+'/'+_0x2b5503+'/'+_0x5ca342[_0x10bf6f(0x159)],_0x49f672);const _0x5c32e2=_0x49f672[_0x10bf6f(0x15d)](_0x1c63d5=>({'region':_0x2b5503,'pathAdr':_0x1c63d5,..._0x5ca342}));!fromFileData[_0x5ca342[_0x10bf6f(0x169)]]?fromFileData[_0x5ca342[_0x10bf6f(0x169)]]=_0x5c32e2:fromFileData[_0x5ca342[_0x10bf6f(0x169)]]=fromFileData[_0x5ca342[_0x10bf6f(0x169)]][_0x10bf6f(0x179)](_0x5c32e2),_0x2c589f===_0x44f2a8[_0x10bf6f(0x165)]-0x1&&_0x348e4c===_0x444d8b['from']['length']-0x1&&_0x26e886();});});}
|
package/src/old/cli.pull.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';function a16_0x3577(_0x1c2d15,_0x14cb2a){const _0x3f1ec9=a16_0x3f1e();return a16_0x3577=function(_0x3577e3,_0x383d10){_0x3577e3=_0x3577e3-0xe0;let _0xd957db=_0x3f1ec9[_0x3577e3];return _0xd957db;},a16_0x3577(_0x1c2d15,_0x14cb2a);}const a16_0x18e5a7=a16_0x3577;(function(_0x132264,_0x3fd1ce){const _0x19a78f=a16_0x3577,_0x56e80a=_0x132264();while(!![]){try{const _0x426e76=-parseInt(_0x19a78f(0x104))/0x1+parseInt(_0x19a78f(0x102))/0x2+-parseInt(_0x19a78f(0x11d))/0x3+-parseInt(_0x19a78f(0xe8))/0x4*(parseInt(_0x19a78f(0xee))/0x5)+-parseInt(_0x19a78f(0x118))/0x6*(-parseInt(_0x19a78f(0x113))/0x7)+-parseInt(_0x19a78f(0xf8))/0x8+parseInt(_0x19a78f(0x116))/0x9;if(_0x426e76===_0x3fd1ce)break;else _0x56e80a['push'](_0x56e80a['shift']());}catch(_0x2512f9){_0x56e80a['push'](_0x56e80a['shift']());}}}(a16_0x3f1e,0x1da31));function a16_0x3f1e(){const _0x504ae3=['./util','application','indexOf','common\x5ctools\x5cindex.js','error','25eXgrRP','replace','toString','resolve','readFileSync','close','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','forEach','\x5ccli.dva.register.spa.txt','-文件下载完毕','1713776GDwAkk','/unzip/','common\x5cdva\x5cautomatic\x5c','token','G4HJRsHr9D7Ssmixegw2','rmdirSync','jjbAssembly','\x5csrc','existsSync','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','427134gvFhEf','/repository/archive.zip?private_token=','34802XGVfCD','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','pipe','createWriteStream','.zip','mkdirSync','writeFileSync','FT3pKzxpRynFkmddJ9Bs','-master-','common\x5cdva\x5cautomatic','zip','readdirSync','return\x20__planA();','request','DeleteDirAllFile','1295gDHxJS','then','unlinkSync','2323926uxHJGG','compressing','4458LOkyvV','statSync','&ref=master','tmpdir','\x5ccommon\x5cdva\x5cautomatic\x5crouter.js','427722wYspmF','CopyFolder','uncompress','common\x5cdva\x5cautomatic\x5cindex.js','exports','【Error】:\x20未获取到项目\x20','/api/v4/projects/','projectId','path','76996eDjEyH'];a16_0x3f1e=function(){return _0x504ae3;};return a16_0x3f1e();}const fs=require('fs'),os=require('os'),path=require(a16_0x18e5a7(0xe7)),utils=require(a16_0x18e5a7(0xe9)),request=require(a16_0x18e5a7(0x111)),compressing=require(a16_0x18e5a7(0x117)),GIT_TEMP_DIR=a16_0x18e5a7(0xfe),GIT_HOST='http://192.168.1.242:10985',CLOUD_PROJECT={'common':{'token':a16_0x18e5a7(0xfc),'projectId':0x117,'localName':'common'},'react-admin-component':{'token':a16_0x18e5a7(0x10b),'projectId':0x154,'localName':'components'}};module[a16_0x18e5a7(0xe3)]=_0x1b655e=>{const _0xfb4797=a16_0x18e5a7,_0x1270cd=_0x1b655e,_0x5d5752=path[_0xfb4797(0xf1)]('./');try{if(fs[_0xfb4797(0x119)](_0x5d5752+_0xfb4797(0xff))){const _0x56fa4b=_0x5d5752+_0xfb4797(0xff),_0x20e3a4=CLOUD_PROJECT[_0x1270cd]||undefined;if(_0x20e3a4){const _0x54b918=os[_0xfb4797(0x11b)](),_0x2f795c=_0x54b918+('/'+GIT_TEMP_DIR+'/'+_0x1270cd+_0xfb4797(0x108)),_0x5cfc4e=_0x54b918+'/'+GIT_TEMP_DIR+_0xfb4797(0xf9);utils[_0xfb4797(0x112)](_0x54b918+'/'+GIT_TEMP_DIR,()=>{const _0x214854=_0xfb4797;fs['mkdirSync'](_0x54b918+'/'+GIT_TEMP_DIR);let _0x423717=fs[_0x214854(0x107)](_0x2f795c);request(GIT_HOST+_0x214854(0xe5)+_0x20e3a4[_0x214854(0xe6)]+_0x214854(0x103)+_0x20e3a4[_0x214854(0xfb)]+_0x214854(0x11a))[_0x214854(0x106)](_0x423717)['on'](_0x214854(0xf3),()=>{const _0x55d86e=_0x214854;fs['mkdirSync'](_0x5cfc4e),compressing[_0x55d86e(0x10e)][_0x55d86e(0xe1)](_0x2f795c,_0x5cfc4e)[_0x55d86e(0x114)](()=>{setTimeout(()=>{const _0x4cd68b=a16_0x3577,_0x1ac6a2=fs[_0x4cd68b(0x10f)](_0x5cfc4e);_0x1ac6a2[_0x4cd68b(0xf5)](_0x2f2b7e=>{const _0x32d6b6=_0x4cd68b;if(_0x2f2b7e[_0x32d6b6(0xeb)](_0x32d6b6(0x10c))!==-0x1){const _0x59d914=_0x56fa4b+'\x5c'+_0x20e3a4['localName'];utils[_0x32d6b6(0x112)](_0x59d914,()=>{const _0x144daa=_0x32d6b6;fs[_0x144daa(0x109)](_0x59d914),utils[_0x144daa(0xe0)](_0x5cfc4e+_0x2f2b7e,_0x59d914),setTimeout(()=>{const _0x551c5d=_0x144daa,_0x4b1ee3=fs[_0x551c5d(0x100)](_0x56fa4b+'\x5c'+_0x551c5d(0xea));if(!_0x4b1ee3){const _0x22d0a8=_0x56fa4b+'\x5c'+_0x551c5d(0xec),_0x5d0d74=_0x56fa4b+'\x5c'+'common\x5cwebsite\x5cindex.js';let _0x4f5761=fs[_0x551c5d(0xf2)](_0x22d0a8)['toString'](),_0x28a421=fs[_0x551c5d(0xf2)](_0x5d0d74)[_0x551c5d(0xf0)]();_0x4f5761=_0x4f5761[_0x551c5d(0xef)](_0x551c5d(0x110),'return\x20process.env;'),_0x28a421=_0x28a421['replace'](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x551c5d(0xf4)),fs[_0x551c5d(0x10a)](_0x22d0a8,_0x4f5761),fs[_0x551c5d(0x10a)](_0x5d0d74,_0x28a421),fs[_0x551c5d(0x10a)](_0x56fa4b+_0x551c5d(0x11c),fs[_0x551c5d(0xf2)](__dirname+'\x5ccli.dva.router.spa.txt')[_0x551c5d(0xf0)]()),fs['writeFileSync'](_0x56fa4b+_0x551c5d(0x101),fs[_0x551c5d(0xf2)](__dirname+_0x551c5d(0xf6))[_0x551c5d(0xf0)]());}else fs['exists'](_0x56fa4b+'\x5c'+_0x551c5d(0xe2),_0x5d575a=>{const _0x453395=_0x551c5d;_0x5d575a&&(fs[_0x453395(0x10f)](_0x56fa4b+'\x5c'+_0x453395(0x10d))['forEach'](_0x3b58b8=>{const _0xc3e776=_0x453395;fs[_0xc3e776(0x115)](_0x56fa4b+'\x5c'+_0xc3e776(0xfa)+_0x3b58b8);}),fs[_0x453395(0xfd)](_0x56fa4b+'\x5c'+_0x453395(0x10d)));});},0x3e8);});}}),console['log'](_0x1270cd+_0x4cd68b(0xf7));},0x7d0);});});});}else console[_0xfb4797(0xed)](_0xfb4797(0xe4)+_0x1270cd);}}catch(_0x35a82a){console[_0xfb4797(0xed)](_0xfb4797(0x105));}};
|
package/src/old/cli.pull2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a17_0x226e9f=a17_0x4efd;(function(_0x58b09c,_0x300e0b){const _0x367209=a17_0x4efd,_0x1f8ad9=_0x58b09c();while(!![]){try{const _0x22e2f6=parseInt(_0x367209(0x212))/0x1*(parseInt(_0x367209(0x1e5))/0x2)+-parseInt(_0x367209(0x1c2))/0x3+-parseInt(_0x367209(0x20a))/0x4*(parseInt(_0x367209(0x202))/0x5)+-parseInt(_0x367209(0x1be))/0x6*(parseInt(_0x367209(0x1f5))/0x7)+-parseInt(_0x367209(0x203))/0x8+parseInt(_0x367209(0x1e2))/0x9+parseInt(_0x367209(0x1d7))/0xa;if(_0x22e2f6===_0x300e0b)break;else _0x1f8ad9['push'](_0x1f8ad9['shift']());}catch(_0x22919b){_0x1f8ad9['push'](_0x1f8ad9['shift']());}}}(a17_0x2758,0x7d707));const fs=require('fs'),os=require('os'),path=require(a17_0x226e9f(0x1bc)),utils=require(a17_0x226e9f(0x1f1)),request=require(a17_0x226e9f(0x1ee)),compressing=require('compressing'),GIT_HOST='http://192.168.1.242:10985',GIT_TEMP_DIR='jjbAssembly',CLOUD_PROJECT={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117,'localName':a17_0x226e9f(0x205)},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154,'localName':a17_0x226e9f(0x20d)}},COMMON_CONTENT_NOR_REPLACE=[{'path':a17_0x226e9f(0x1ed),'replace':[[a17_0x226e9f(0x20d),'jjb-react-admin-component']]},{'path':'\x5cwebsite\x5cindex.js','replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a17_0x226e9f(0x213)],['components','jjb-react-admin-component']]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a17_0x226e9f(0x1ed),'replace':[[a17_0x226e9f(0x1e8),'return\x20process.env;']]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':a17_0x226e9f(0x1ed),'replace':[['return\x20__planA();','return\x20process.env.app;']]}],COMPONENTS_CONTENT_REPLACE=[{'path':a17_0x226e9f(0x1f2),'replace':[['common/http',a17_0x226e9f(0x1ca)],[a17_0x226e9f(0x1de),a17_0x226e9f(0x1f0)],[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x1d6),'replace':[[a17_0x226e9f(0x1e4),a17_0x226e9f(0x1f8)]]},{'path':a17_0x226e9f(0x1cf),'replace':[[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x20f),'replace':[[a17_0x226e9f(0x1f9),a17_0x226e9f(0x1ca)],[a17_0x226e9f(0x20c),'jjb-common/tools']]},{'path':a17_0x226e9f(0x1d1),'replace':[[a17_0x226e9f(0x1f9),'jjb-common/http'],['common/tools',a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x206),'replace':[[a17_0x226e9f(0x1f9),a17_0x226e9f(0x1ca)],[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x1f3),'replace':[[a17_0x226e9f(0x1e4),a17_0x226e9f(0x1f8)]]},{'path':a17_0x226e9f(0x1dd),'replace':[[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x1fd),'replace':[[a17_0x226e9f(0x1c6),a17_0x226e9f(0x1dc)],[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]}];function uid(){const _0x312a62=a17_0x226e9f;return Math[_0x312a62(0x1cb)]()[_0x312a62(0x1c4)]()['substr'](0x2);}module[a17_0x226e9f(0x1e6)]=_0x311dc4=>{const _0x27bf1c=a17_0x226e9f,_0x3fc931=path[_0x27bf1c(0x1fe)]('./'),_0x23deac=_0x27bf1c(0x1e7)+_0x311dc4,_0x1e33af=_0x27bf1c(0x1e1),_0x16d71b=_0x3fc931+'\x5csrc',_0x3312ff=_0x27bf1c(0x1ce)+uid(),_0x318d2a=__dirname+'\x5c'+_0x3312ff,_0x56d5bc=_0x3fc931+_0x27bf1c(0x1fa),_0x14db1c=_0x3fc931+_0x27bf1c(0x1ff)+_0x311dc4;try{if(fs[_0x27bf1c(0x20b)](_0x16d71b)){const _0x1cc307=CLOUD_PROJECT[_0x311dc4]||undefined;if(_0x1cc307){const _0x286ba6=os[_0x27bf1c(0x214)](),_0x5a1b97=_0x286ba6+'/'+GIT_TEMP_DIR+'/'+_0x311dc4+_0x27bf1c(0x1d4),_0x4f8a35=_0x286ba6+'/'+GIT_TEMP_DIR+_0x27bf1c(0x1d9);utils[_0x27bf1c(0x208)](_0x286ba6+'/'+GIT_TEMP_DIR,()=>{const _0x4cbcab=_0x27bf1c;fs[_0x4cbcab(0x1ef)](_0x286ba6+'/'+GIT_TEMP_DIR);const _0x564a75=fs[_0x4cbcab(0x207)](_0x5a1b97);request(GIT_HOST+_0x4cbcab(0x1d8)+_0x1cc307[_0x4cbcab(0x1c1)]+_0x4cbcab(0x1fc)+_0x1cc307[_0x4cbcab(0x1df)]+'&ref=master')['pipe'](_0x564a75)['on'](_0x4cbcab(0x204),()=>{const _0x542d07=_0x4cbcab;fs[_0x542d07(0x1ef)](_0x4f8a35),compressing[_0x542d07(0x1ea)][_0x542d07(0x1fb)](_0x5a1b97,_0x4f8a35)['then'](()=>{setTimeout(()=>{const _0x314ec6=a17_0x4efd;fs['readdirSync'](_0x4f8a35)[_0x314ec6(0x1cd)](_0x3aee40=>{_0x3aee40['indexOf']('-master-')!==-0x1&&utils['DeleteDirAllFile'](_0x16d71b+'\x5c'+_0x1cc307['localName'],()=>{const _0x222ac7=a17_0x4efd;fs[_0x222ac7(0x1ef)](_0x318d2a),utils[_0x222ac7(0x1f7)](_0x4f8a35+_0x3aee40,_0x318d2a),setTimeout(()=>{const _0x532edc=_0x222ac7;if(_0x311dc4===_0x532edc(0x205)){const _0x5ded1f=fs['existsSync'](_0x16d71b+_0x532edc(0x210));if(_0x5ded1f)rm_rf(_0x318d2a+_0x532edc(0x1e9)),fs[_0x532edc(0x1c8)](_0x318d2a+_0x532edc(0x1e9));else{if(get_project_type(_0x56d5bc)===_0x532edc(0x1c7))content_replace(COMMON_CONTENT_SPA_REPLACE,_0x318d2a),fs[_0x532edc(0x1ba)](_0x318d2a+_0x532edc(0x1c9),fs[_0x532edc(0x1bb)](__dirname+_0x532edc(0x1bd))[_0x532edc(0x1c4)]()),fs['writeFileSync'](_0x318d2a+_0x532edc(0x215),fs[_0x532edc(0x1bb)](__dirname+_0x532edc(0x211))[_0x532edc(0x1c4)]());else get_project_type(_0x56d5bc)===_0x532edc(0x1da)&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x318d2a),fs['writeFileSync'](_0x318d2a+_0x532edc(0x1c9),fs[_0x532edc(0x1bb)](__dirname+'\x5ccli.dva.router.saas.txt')[_0x532edc(0x1c4)]()),fs[_0x532edc(0x1ba)](_0x318d2a+_0x532edc(0x215),fs[_0x532edc(0x1bb)](__dirname+_0x532edc(0x1cc))['toString']()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x318d2a);}_0x311dc4===_0x532edc(0x1e0)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x318d2a),rm_rf(_0x318d2a+'\x5c.idea'),fs[_0x532edc(0x20b)](_0x318d2a+'\x5c.idea')&&fs['rmdirSync'](_0x318d2a+_0x532edc(0x1c5)),fs['existsSync'](_0x318d2a+'\x5c.gitignore')&&fs[_0x532edc(0x1d0)](_0x318d2a+_0x532edc(0x1f4)),!fs['existsSync'](_0x14db1c)?fs['mkdirSync'](_0x14db1c):rm_rf(_0x14db1c),utils[_0x532edc(0x1f7)](_0x318d2a,_0x14db1c,()=>{const _0x36fcb7=_0x532edc;rm_rf(_0x318d2a),fs['rmdirSync'](_0x318d2a),create_package_json(_0x14db1c,_0x23deac,_0x1e33af),update_project_package_json(_0x56d5bc,_0x23deac,_0x1e33af),console[_0x36fcb7(0x209)](_0x36fcb7(0x20e)+_0x23deac+'\x20v'+_0x1e33af);});},0x3e8);});});},0x7d0);});});});}else console['error'](_0x27bf1c(0x1e3)+_0x311dc4);}}catch(_0xdc2a23){console[_0x27bf1c(0x1d2)](_0x27bf1c(0x1ec));}};function rm_rf(_0x155836){const _0x16a64d=a17_0x226e9f;if(fs[_0x16a64d(0x20b)](_0x155836)){const _0x140b06=fs['readdirSync'](_0x155836);for(let _0x363f41=0x0;_0x363f41<_0x140b06['length'];_0x363f41++){const _0x401b84=_0x140b06[_0x363f41],_0x53657c=_0x155836+'/'+_0x401b84;fs[_0x16a64d(0x1f6)](_0x53657c)[_0x16a64d(0x1d5)]()?(rm_rf(_0x53657c),fs[_0x16a64d(0x1c8)](_0x53657c)):fs[_0x16a64d(0x1d0)](_0x53657c);}}}function a17_0x4efd(_0x1621f1,_0x8ac53b){const _0x275863=a17_0x2758();return a17_0x4efd=function(_0x4efd17,_0x51f0d1){_0x4efd17=_0x4efd17-0x1ba;let _0x533ba6=_0x275863[_0x4efd17];return _0x533ba6;},a17_0x4efd(_0x1621f1,_0x8ac53b);}function create_package_json(_0x43f83b,_0x280e6c,_0x32e911){const _0x1c4c78=a17_0x226e9f;fs[_0x1c4c78(0x1ba)](_0x43f83b+_0x1c4c78(0x1fa),_0x1c4c78(0x201)+_0x280e6c+'\x22,\x22version\x22:\x22'+_0x32e911+_0x1c4c78(0x200));}function get_project_type(_0x520109){const _0x3ca9d0=a17_0x226e9f,_0x286313=JSON['parse'](fs['readFileSync'](_0x520109)['toString']());return _0x286313[_0x3ca9d0(0x1db)];}function update_project_package_json(_0xe77710,_0x2db9e8,_0x209188){const _0x518bb4=a17_0x226e9f,_0x507f01=JSON[_0x518bb4(0x1c3)](fs[_0x518bb4(0x1bb)](_0xe77710)[_0x518bb4(0x1c4)]());_0x507f01[_0x518bb4(0x1eb)][_0x2db9e8]=_0x209188,fs[_0x518bb4(0x1ba)](_0xe77710,JSON[_0x518bb4(0x1bf)](_0x507f01,null,0x2));}function a17_0x2758(){const _0x5aba2b=['\x5cImageUploader\x5cindex.js','createWriteStream','DeleteDirAllFile','log','292cqRirC','existsSync','common/tools','components','【已安装】:','\x5cFileUploader\x5cindex.js','\x5capplication','\x5ccli.dva.register.spa.txt','6MZnUtx','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','tmpdir','\x5cdva\x5cautomatic\x5cregister.js','writeFileSync','readFileSync','path','\x5ccli.dva.router.spa.txt','27630lnUPbF','stringify','replace','projectId','1974093nudjre','parse','toString','\x5c.idea','common/website','spa','rmdirSync','\x5cdva\x5cautomatic\x5crouter.js','jjb-common/http','random','\x5ccli.dva.register.saas.txt','forEach','template_','\x5cRouterMenu\x5cindex.js','unlinkSync','\x5cImageCropper\x5cindex.js','error','jjb-common/tools','.zip','isDirectory','\x5cRejectText\x5cindex.js','19891880ZSrjua','/api/v4/projects/','/unzip/','micro-spa','projectType','jjb-common/website','\x5cRouterContainer\x5cindex.js','common/crypto','token','react-admin-component','1.0.0','6409188VLjPKM','【Error】:\x20未获取到项目\x20','common/color','45878fCxTHn','exports','jjb-','return\x20__planA();','\x5cdva\x5cautomatic','zip','dependencies','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','\x5ctools\x5cindex.js','request','mkdirSync','jjb-common/crypto','./util','\x5cEditor\x5cindex.js','\x5cPageHeaderBar\x5cindex.js','\x5c.gitignore','903wqFzIA','statSync','CopyFolder','jjb-common/color','common/http','\x5cpackage.json','uncompress','/repository/archive.zip?private_token=','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','resolve','\x5cnode_modules\x5cjjb-','\x22,\x22main\x22:\x20\x22index.js\x22}','{\x22name\x22:\x22','28325ROFRHX','5276272TqLLgq','close','common'];a17_0x2758=function(){return _0x5aba2b;};return a17_0x2758();}function content_replace(_0x183f59=[],_0x28ddcf){const _0x5a43c6=a17_0x226e9f;_0x183f59[_0x5a43c6(0x1cd)](_0x51743c=>{const _0x12a288=_0x5a43c6,_0x474d85=_0x28ddcf+_0x51743c['path'];if(fs[_0x12a288(0x20b)](_0x474d85)){let _0x5a7680=fs[_0x12a288(0x1bb)](_0x474d85)[_0x12a288(0x1c4)]();_0x51743c[_0x12a288(0x1c0)]['forEach'](_0x49a9ca=>{_0x5a7680=_0x5a7680['replace'](_0x49a9ca[0x0],_0x49a9ca[0x1]);}),fs['writeFileSync'](_0x474d85,_0x5a7680);}});}
|
package/src/old/cli.rm-rf.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a18_0x41d5(){const _0xde9ed3=['3519490fwNKVY','existsSync','path','clear','trim','21311092PXmeBo','statSync','12jsIOEw','是否确认删除?删除后不可恢复![y/n]:','18XmczyZ','exit','1qvNPEX','371816thXgKW','3794136qcssKS','length','isDirectory','197198vOEsdd','readline','readdirSync','无效操作。','1670AmwWZO','正在计算项目数,请稍等...','14TosbfG','删除文件夹:','取消删除。','15072qIABQl','./progress-bar','删除异常:','删除完成。','log','resolve','createInterface','exports','删除文件:','rmdirSync','question','unlinkSync','18966lEFQJv'];a18_0x41d5=function(){return _0xde9ed3;};return a18_0x41d5();}const a18_0x12bde5=a18_0x5554;(function(_0x297ec7,_0x1b980b){const _0x175e1a=a18_0x5554,_0x2e7a19=_0x297ec7();while(!![]){try{const _0x5c6337=-parseInt(_0x175e1a(0x202))/0x1*(-parseInt(_0x175e1a(0x207))/0x2)+parseInt(_0x175e1a(0x210))/0x3+-parseInt(_0x175e1a(0x204))/0x4+-parseInt(_0x175e1a(0x20b))/0x5*(parseInt(_0x175e1a(0x1f6))/0x6)+-parseInt(_0x175e1a(0x20d))/0x7*(parseInt(_0x175e1a(0x203))/0x8)+parseInt(_0x175e1a(0x200))/0x9*(parseInt(_0x175e1a(0x1f7))/0xa)+-parseInt(_0x175e1a(0x1fc))/0xb*(-parseInt(_0x175e1a(0x1fe))/0xc);if(_0x5c6337===_0x1b980b)break;else _0x2e7a19['push'](_0x2e7a19['shift']());}catch(_0x153408){_0x2e7a19['push'](_0x2e7a19['shift']());}}}(a18_0x41d5,0x9e1cf));const fs=require('fs'),path=require(a18_0x12bde5(0x1f9)),readline=require(a18_0x12bde5(0x208)),ProgressBar=require(a18_0x12bde5(0x1eb)),io=readline[a18_0x12bde5(0x1f0)]({'input':process['stdin'],'output':process['stdout']}),progress=new ProgressBar('删除进度',0x32);function a18_0x5554(_0x211355,_0x106759){const _0x41d5b3=a18_0x41d5();return a18_0x5554=function(_0x555441,_0x563da2){_0x555441=_0x555441-0x1eb;let _0x586ab1=_0x41d5b3[_0x555441];return _0x586ab1;},a18_0x5554(_0x211355,_0x106759);}let f_total=0x0,f_number=0x0;module[a18_0x12bde5(0x1f1)]=function(){const _0xbeed21=a18_0x12bde5,_0x5ed481=path[_0xbeed21(0x1ef)]('./');io[_0xbeed21(0x1f4)](_0xbeed21(0x1ff),function(_0x159ba0){const _0x4e9c30=_0xbeed21;if(_0x159ba0['trim']()==='y')console[_0x4e9c30(0x1ee)](_0x4e9c30(0x20c)),setTimeout(()=>{setTimeout(()=>{const _0x47176c=a18_0x5554;console[_0x47176c(0x1fa)](),exec(_0x5ed481),setTimeout(()=>{const _0x58a46e=_0x47176c;console[_0x58a46e(0x1ee)](_0x58a46e(0x1ed)),console[_0x58a46e(0x1fa)](),process[_0x58a46e(0x201)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x159ba0[_0x4e9c30(0x1fb)]()==='n'?(console[_0x4e9c30(0x1ee)](_0x4e9c30(0x20f)),process[_0x4e9c30(0x201)](0x0)):(console[_0x4e9c30(0x1ee)](_0x4e9c30(0x20a)),process[_0x4e9c30(0x201)](0x0));});};function exec(_0x3f65ae){const _0x97d943=a18_0x12bde5;if(fs[_0x97d943(0x1f8)](_0x3f65ae)){const _0x1e1baf=fs[_0x97d943(0x209)](_0x3f65ae);for(let _0x45d612=0x0;_0x45d612<_0x1e1baf['length'];_0x45d612++){const _0x4b3464=_0x1e1baf[_0x45d612],_0x483a3c=_0x3f65ae+'/'+_0x4b3464;try{fs[_0x97d943(0x1fd)](_0x483a3c)[_0x97d943(0x206)]()?(exec(_0x483a3c),fs[_0x97d943(0x1f3)](_0x483a3c,{'recursive':!![]}),console[_0x97d943(0x1ee)](_0x97d943(0x20e)+_0x483a3c)):(fs[_0x97d943(0x1f5)](_0x483a3c),console[_0x97d943(0x1ee)](_0x97d943(0x1f2)+_0x483a3c));}catch(_0x455eb6){console['log'](_0x97d943(0x1ec)+_0x483a3c);}}}}function scanner(_0x66270c){const _0x4b0d1e=a18_0x12bde5;if(fs[_0x4b0d1e(0x1f8)](_0x66270c)){const _0x75c1a=fs[_0x4b0d1e(0x209)](_0x66270c);for(let _0x2d72e0=0x0;_0x2d72e0<_0x75c1a[_0x4b0d1e(0x205)];_0x2d72e0++){const _0x681066=_0x75c1a[_0x2d72e0],_0x27a109=_0x66270c+'/'+_0x681066;try{fs[_0x4b0d1e(0x1fd)](_0x27a109)[_0x4b0d1e(0x206)]()?(scanner(_0x27a109),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x3feb95){}}}}
|
package/src/old/progress-bar.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a19_0x5653ea=a19_0x4309;(function(_0x242b51,_0x564e58){const _0x2370e2=a19_0x4309,_0x5483a4=_0x242b51();while(!![]){try{const _0x3ab9f2=parseInt(_0x2370e2(0xe6))/0x1*(-parseInt(_0x2370e2(0xde))/0x2)+-parseInt(_0x2370e2(0xeb))/0x3*(parseInt(_0x2370e2(0xe4))/0x4)+-parseInt(_0x2370e2(0xdd))/0x5*(-parseInt(_0x2370e2(0xf0))/0x6)+-parseInt(_0x2370e2(0xed))/0x7*(-parseInt(_0x2370e2(0xec))/0x8)+-parseInt(_0x2370e2(0xea))/0x9*(parseInt(_0x2370e2(0xf2))/0xa)+-parseInt(_0x2370e2(0xe3))/0xb*(-parseInt(_0x2370e2(0xe5))/0xc)+parseInt(_0x2370e2(0xef))/0xd*(parseInt(_0x2370e2(0xf1))/0xe);if(_0x3ab9f2===_0x564e58)break;else _0x5483a4['push'](_0x5483a4['shift']());}catch(_0x2b8350){_0x5483a4['push'](_0x5483a4['shift']());}}}(a19_0x4c6b,0xcb5bd));const slog=require('single-line-log')[a19_0x5653ea(0xe1)];function a19_0x4309(_0xf97b28,_0x1aa10b){const _0x4c6b9a=a19_0x4c6b();return a19_0x4309=function(_0x430957,_0x18caef){_0x430957=_0x430957-0xdd;let _0x57a676=_0x4c6b9a[_0x430957];return _0x57a676;},a19_0x4309(_0xf97b28,_0x1aa10b);}function ProgressBar(_0x3f45c3,_0xce260){const _0x508595=a19_0x5653ea;this['description']=_0x3f45c3||'Progress',this['length']=_0xce260||0x19,this[_0x508595(0xe7)]=function(_0x5b5240){const _0x5ab9ac=_0x508595;let _0x46b0be;const _0x21b7cf=(_0x5b5240[_0x5ab9ac(0xe0)]/_0x5b5240[_0x5ab9ac(0xe9)])[_0x5ab9ac(0xdf)](0x4),_0x3e97f2=Math[_0x5ab9ac(0xe8)](_0x21b7cf*this[_0x5ab9ac(0xee)]);let _0x30a3aa='';for(_0x46b0be=0x0;_0x46b0be<_0x3e97f2;_0x46b0be++){_0x30a3aa+='█';}let _0x4a1989='';for(_0x46b0be=0x0;_0x46b0be<this['length']-_0x3e97f2;_0x46b0be++){_0x4a1989+='░';}const _0x467ec1=this['description']+':\x20'+(0x64*_0x21b7cf)[_0x5ab9ac(0xdf)](0x2)+'%\x20'+_0x30a3aa+_0x4a1989+'\x20'+_0x5b5240[_0x5ab9ac(0xe0)]+'/'+_0x5b5240[_0x5ab9ac(0xe9)];slog(_0x467ec1);};}module[a19_0x5653ea(0xe2)]=ProgressBar;function a19_0x4c6b(){const _0x4ac03c=['13JrjpJd','6GrkNsz','10224844SpNgYm','10wiGNWn','7200555uEnOLa','2cUXiNf','toFixed','completed','stdout','exports','2459710yjDalq','10492XhHSPK','12HrlZcs','408458TPYGsm','render','floor','total','11643363OEYjne','303CnlibD','16pbiAKC','1420923YsfPEm','length'];a19_0x4c6b=function(){return _0x4ac03c;};return a19_0x4c6b();}
|
package/src/old/util.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';function a20_0x3fdc(){const _0x5849b0=['write\x20error','log','isDirectory','forEach','12957669ErZHuS','1765332FMNyKJ','error','close','pipe','unlinkSync','CreatePaths','1748283yVttWD','23730MHBtrE','196940OgOyWQ','createReadStream','CopyFolder','readdirSync','4txSBZI','CopyFile','3951125nvXhTo','statSync','DeleteDirAllFile','2264sZiJrp','stat','640886xitCtO','createWriteStream','mkdir','mkdirSync','length','join'];a20_0x3fdc=function(){return _0x5849b0;};return a20_0x3fdc();}const a20_0x2b823f=a20_0x10f0;(function(_0x505109,_0x2459d4){const _0x2f14c8=a20_0x10f0,_0x3cd776=_0x505109();while(!![]){try{const _0x5231f4=parseInt(_0x2f14c8(0xd6))/0x1+parseInt(_0x2f14c8(0xe1))/0x2+-parseInt(_0x2f14c8(0xd4))/0x3+parseInt(_0x2f14c8(0xda))/0x4*(parseInt(_0x2f14c8(0xdc))/0x5)+parseInt(_0x2f14c8(0xec))/0x6+-parseInt(_0x2f14c8(0xd5))/0x7*(-parseInt(_0x2f14c8(0xdf))/0x8)+-parseInt(_0x2f14c8(0xeb))/0x9;if(_0x5231f4===_0x2459d4)break;else _0x3cd776['push'](_0x3cd776['shift']());}catch(_0x37afaa){_0x3cd776['push'](_0x3cd776['shift']());}}}(a20_0x3fdc,0x8384a));const fs=require('fs'),path=require('path');function a20_0x10f0(_0x1a566c,_0x34ae53){const _0x3fdca5=a20_0x3fdc();return a20_0x10f0=function(_0x10f005,_0x3a2253){_0x10f005=_0x10f005-0xd0;let _0x3fa180=_0x3fdca5[_0x10f005];return _0x3fa180;},a20_0x10f0(_0x1a566c,_0x34ae53);}exports[a20_0x2b823f(0xde)]=(_0x4aa6a4,_0x4cebb2)=>{const _0x5b9daa=a20_0x2b823f;let _0x2b3a18=[];const _0x3ceb6f=this;fs['existsSync'](_0x4aa6a4)?(_0x2b3a18=fs[_0x5b9daa(0xd9)](_0x4aa6a4),_0x2b3a18[_0x5b9daa(0xea)](function(_0x3fe8ea,_0x1bf3de){const _0xb42edc=_0x5b9daa;let _0xd22276=_0x4aa6a4+'/'+_0x3fe8ea;fs[_0xb42edc(0xdd)](_0xd22276)[_0xb42edc(0xe9)]()?_0x3ceb6f[_0xb42edc(0xde)](_0xd22276):fs[_0xb42edc(0xd2)](_0xd22276);}),fs['rmdirSync'](_0x4aa6a4),_0x4cebb2&&_0x4cebb2()):_0x4cebb2&&_0x4cebb2();},exports[a20_0x2b823f(0xd8)]=(_0x1f3040,_0x442ddc,_0x14c6a4)=>{const _0x5d8369=this;fs['readdir'](_0x1f3040,function(_0x560cf9,_0x1444ef){let _0x3e60e4=0x0;const _0xa36596=function(){const _0x19b24e=a20_0x10f0;++_0x3e60e4===_0x1444ef[_0x19b24e(0xe5)]&&_0x14c6a4&&_0x14c6a4();};if(_0x560cf9){_0xa36596();return;}_0x1444ef['forEach'](function(_0x59a7bb){const _0x1ab875=a20_0x10f0,_0x49350f=path['join'](_0x1f3040,_0x59a7bb),_0x19176d=path[_0x1ab875(0xe6)](_0x442ddc,_0x59a7bb);fs[_0x1ab875(0xe0)](_0x49350f,function(_0x3b46f,_0x1f29bf){const _0x2e2f76=_0x1ab875;_0x1f29bf['isDirectory']()?fs[_0x2e2f76(0xe3)](_0x19176d,function(_0x117773){const _0x275e76=_0x2e2f76;if(_0x117773){console[_0x275e76(0xe8)](_0x117773);return;}_0x5d8369['CopyFolder'](_0x49350f,_0x19176d,_0xa36596);}):_0x5d8369[_0x2e2f76(0xdb)](_0x49350f,_0x19176d,_0xa36596);});}),_0x1444ef['length']===0x0&&_0x14c6a4&&_0x14c6a4();});},exports['CopyFile']=(_0x2384a1,_0x47bbfd,_0x4cb60d)=>{const _0x5b9d3d=a20_0x2b823f,_0x4e715d=fs[_0x5b9d3d(0xd7)](_0x2384a1);_0x4e715d['on']('error',function(_0x443c18){_0x443c18&&console['log']('read\x20error',_0x2384a1),_0x4cb60d&&_0x4cb60d(_0x443c18);});const _0x1fc3ea=fs[_0x5b9d3d(0xe2)](_0x47bbfd);_0x1fc3ea['on'](_0x5b9d3d(0xed),function(_0xd876ce){const _0xc79c4c=_0x5b9d3d;_0xd876ce&&console[_0xc79c4c(0xe8)](_0xc79c4c(0xe7),_0x47bbfd),_0x4cb60d&&_0x4cb60d(_0xd876ce);}),_0x1fc3ea['on'](_0x5b9d3d(0xd0),function(_0x4161a0){_0x4cb60d&&_0x4cb60d(_0x4161a0);}),_0x4e715d[_0x5b9d3d(0xd1)](_0x1fc3ea);},exports['DeepScanner']=(_0x13d536,_0x2e21e5)=>{const _0x5d2cfb=a20_0x2b823f,_0x7ac6cf=this,_0x5175bc=fs[_0x5d2cfb(0xd9)](_0x13d536);_0x5175bc[_0x5d2cfb(0xea)](_0x10c6fc=>{const _0x249ab0=_0x5d2cfb,_0x51085d=_0x13d536+'/'+_0x10c6fc,_0x8aae91=fs[_0x249ab0(0xdd)](_0x51085d);_0x8aae91[_0x249ab0(0xe9)]()?_0x7ac6cf['DeepScanner'](_0x51085d,_0x2e21e5):_0x2e21e5['push'](_0x51085d);});},exports[a20_0x2b823f(0xd3)]=(_0x4f985c,_0x300f46)=>{return new Promise(_0xff8a1b=>{const _0x2638e7=a20_0x10f0,_0x4499ad=[];_0x300f46[_0x2638e7(0xea)]((_0x2e67d1,_0x5b7b83)=>{const _0x4662a2=_0x2638e7,_0x584813=_0x4f985c+'/'+_0x4499ad[_0x4662a2(0xe6)]('/')+'/'+_0x2e67d1;try{const _0x3434f0=fs[_0x4662a2(0xdd)](_0x584813);_0x3434f0[_0x4662a2(0xe9)]()?_0x5b7b83===_0x300f46[_0x4662a2(0xe5)]-0x1&&_0xff8a1b():(fs[_0x4662a2(0xe4)](_0x584813),_0x5b7b83===_0x300f46[_0x4662a2(0xe5)]-0x1&&_0xff8a1b());}catch(_0x5bb59f){fs[_0x4662a2(0xe4)](_0x584813),_0x5b7b83===_0x300f46['length']-0x1&&_0xff8a1b();}_0x4499ad['push'](_0x2e67d1);});});};
|