jjb-cmd 2.2.2 → 2.2.4
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 +8 -0
- package/package.json +1 -1
- package/src/new/cmd.auth/index.js +1 -1
- package/src/new/cmd.init/index.js +1 -1
- package/src/new/cmd.install/config.js +1 -1
- package/src/new/cmd.install/index.js +1 -1
- package/src/new/cmd.install/tools.js +1 -1
- package/src/new/cmd.install.app/index.js +1 -1
- package/src/new/cmd.jenkins/index.js +1 -1
- package/src/new/cmd.publish/index.js +1 -1
- package/src/new/cmd.push/index.js +1 -1
- package/src/new/cmd.push/java.js +1 -1
- package/src/new/cmd.push-set/index.js +1 -1
- package/src/new/cmd.refresh/index.js +1 -1
- package/src/new/cmd.reglist/index.js +1 -1
- package/src/new/cmd.rm-rf/index.js +1 -1
- package/src/new/cmd.version/index.js +1 -1
- package/src/old/cli.init.js +1 -1
- package/src/old/cli.install/config.js +1 -1
- package/src/old/cli.install/index.js +1 -1
- package/src/old/cli.install/tools.js +1 -1
- package/src/old/cli.merge.js +1 -1
- package/src/old/cli.pull.js +1 -1
- package/src/old/cli.pull2.js +1 -1
- package/src/old/cli.rm-rf.js +1 -1
- package/src/old/progress-bar.js +1 -1
- package/src/old/util.js +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a0_0x57f74f=a0_0x4094;function a0_0x4094(_0x3b30c3,_0x18bb0f){const _0x178603=a0_0x1786();return a0_0x4094=function(_0x409412,_0x43758a){_0x409412=_0x409412-0xc6;let _0xa97096=_0x178603[_0x409412];return _0xa97096;},a0_0x4094(_0x3b30c3,_0x18bb0f);}(function(_0x457326,_0x15e4bb){const _0x1cc49c=a0_0x4094,_0x1681c5=_0x457326();while(!![]){try{const _0x241f4b=-parseInt(_0x1cc49c(0xcf))/0x1*(parseInt(_0x1cc49c(0xcb))/0x2)+-parseInt(_0x1cc49c(0xd0))/0x3*(-parseInt(_0x1cc49c(0xdb))/0x4)+-parseInt(_0x1cc49c(0xde))/0x5*(-parseInt(_0x1cc49c(0xd7))/0x6)+parseInt(_0x1cc49c(0xd3))/0x7+-parseInt(_0x1cc49c(0xdd))/0x8+parseInt(_0x1cc49c(0xc6))/0x9*(-parseInt(_0x1cc49c(0xc8))/0xa)+-parseInt(_0x1cc49c(0xc9))/0xb*(parseInt(_0x1cc49c(0xd2))/0xc);if(_0x241f4b===_0x15e4bb)break;else _0x1681c5['push'](_0x1681c5['shift']());}catch(_0xf92d48){_0x1681c5['push'](_0x1681c5['shift']());}}}(a0_0x1786,0xece67));const axios=require(a0_0x57f74f(0xda)),fs=require('fs'),path=require(a0_0x57f74f(0xca)),{getApiHost}=require(a0_0x57f74f(0xcc));module['exports']=_0x27e644=>{const _0x112d3e=a0_0x57f74f;console[_0x112d3e(0xce)](_0x27e644);const [_0x482ebb,_0x4acb62]=_0x27e644;axios[_0x112d3e(0xd1)](getApiHost()+_0x112d3e(0xd8),{'username':_0x482ebb,'password':_0x4acb62})[_0x112d3e(0xc7)](_0xbdb32f=>{const _0x5a5f4e=_0x112d3e,_0x2b092d=path[_0x5a5f4e(0xd5)](__dirname,'../../../.auth');_0xbdb32f['data'][_0x5a5f4e(0xcd)]?(console['log']('Auth\x20Success!'),fs[_0x5a5f4e(0xd4)](_0x2b092d,_0x482ebb+'/'+_0x4acb62)):(console['log'](_0x5a5f4e(0xd9)),fs[_0x5a5f4e(0xdf)](_0x2b092d)&&fs['unlinkSync'](_0x2b092d));})[_0x112d3e(0xdc)](_0x10c145=>{const _0x3b63d4=_0x112d3e;console['log'](_0x3b63d4(0xd6));});};function a0_0x1786(){const _0xfb8f64=['229599JcaDWa','then','130jzFlZx','4895nXfzgk','path','14fsnFGZ','../cmd.install/config','status','log','135671eIEZRb','3ACVJqG','post','13032HySGfq','4671898Qvfqfw','writeFileSync','join','Auth\x20NetWork\x20Fail!','4722KHfzOa','/api/auth','Auth\x20Fail!','axios','6221836VirrIz','catch','2847848gaSOsO','5515JsmshB','existsSync'];a0_0x1786=function(){return _0xfb8f64;};return a0_0x1786();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a1_0x168df8=a1_0x3c86;function a1_0x3c86(_0x6e2a02,_0x5d51a8){const _0x2329d5=a1_0x2329();return a1_0x3c86=function(_0x3c86a7,_0xc06056){_0x3c86a7=_0x3c86a7-0x1c1;let _0x2a6f1e=_0x2329d5[_0x3c86a7];return _0x2a6f1e;},a1_0x3c86(_0x6e2a02,_0x5d51a8);}(function(_0x584325,_0xe00851){const _0xcf60b1=a1_0x3c86,_0x2caa82=_0x584325();while(!![]){try{const _0x4ff4ab=parseInt(_0xcf60b1(0x1c4))/0x1*(-parseInt(_0xcf60b1(0x1e1))/0x2)+-parseInt(_0xcf60b1(0x1e4))/0x3*(-parseInt(_0xcf60b1(0x1d0))/0x4)+parseInt(_0xcf60b1(0x1e0))/0x5+parseInt(_0xcf60b1(0x1ce))/0x6*(-parseInt(_0xcf60b1(0x1c5))/0x7)+-parseInt(_0xcf60b1(0x1d2))/0x8+parseInt(_0xcf60b1(0x1c1))/0x9+-parseInt(_0xcf60b1(0x1ea))/0xa;if(_0x4ff4ab===_0xe00851)break;else _0x2caa82['push'](_0x2caa82['shift']());}catch(_0x30c9d1){_0x2caa82['push'](_0x2caa82['shift']());}}}(a1_0x2329,0xa954c));const fs=require('fs'),os=require('os'),path=require(a1_0x168df8(0x1d5)),request=require(a1_0x168df8(0x1cf)),utils=require(a1_0x168df8(0x1de)),compressing=require('compressing'),readline=require(a1_0x168df8(0x1c7)),io=readline['createInterface']({'input':process['stdin'],'output':process[a1_0x168df8(0x1c8)]}),child_process=require(a1_0x168df8(0x1e3)),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require('../cmd.install/config');function a1_0x2329(){const _0xd26b5c=['question','.zip','execSync','createWriteStream','projectId','48KhbvwS','request','32iqueEb','安装中,请耐心等待...','5457072DztRFO','npm','forEach','path','mkdirSync','tmpdir','resolve','yarn','/api/v4/projects/','【Error】:初始化失败,','/repository/archive.zip?private_token=','log','../../old/util','exit','6725405DNJxnt','123592aLVear','zip','child_process','422589SvWIFH','includes','&ref=master','初始化完成?请选择安装方式![yarn/npm]:','uncompress','初始化完成!请自行使用jjb-cmd\x20install.app\x20yarn/npm安装项目!','8006020ychAxR','CopyFolder','2387907kDKmdl','exports','indexOf','6hvFFJH','166439DwcKru','then','readline','stdout'];a1_0x2329=function(){return _0xd26b5c;};return a1_0x2329();}module[a1_0x168df8(0x1c2)]=_0x48dfdf=>{const _0xc6df03=a1_0x168df8,_0x4e9415=path[_0xc6df03(0x1d8)]('./'),_0x5c1729=CLOUD_PROJECT[_0x48dfdf]||undefined;if(_0x5c1729){const _0x4518fc=os[_0xc6df03(0x1d7)](),_0x155466=_0x4518fc+'/'+GIT_TEMP_DIR+'/'+_0x48dfdf+_0xc6df03(0x1ca),_0x518926=_0x4518fc+'/'+GIT_TEMP_DIR+'/unzip/';utils['DeleteDirAllFile'](_0x4518fc+'/'+GIT_TEMP_DIR,()=>{const _0x309b7b=_0xc6df03;fs['mkdirSync'](_0x4518fc+'/'+GIT_TEMP_DIR);let _0xcefd98=fs[_0x309b7b(0x1cc)](_0x155466);request(GIT_HOST+_0x309b7b(0x1da)+_0x5c1729[_0x309b7b(0x1cd)]+_0x309b7b(0x1dc)+_0x5c1729['token']+_0x309b7b(0x1e6))['pipe'](_0xcefd98)['on']('close',()=>{const _0x54f029=_0x309b7b;fs[_0x54f029(0x1d6)](_0x518926),compressing[_0x54f029(0x1e2)][_0x54f029(0x1e8)](_0x155466,_0x518926)[_0x54f029(0x1c6)](()=>{setTimeout(()=>{const _0x52e4fc=a1_0x3c86;fs['readdirSync'](_0x518926)[_0x52e4fc(0x1d4)](_0x359f33=>{const _0x32dc6a=_0x52e4fc;_0x359f33[_0x32dc6a(0x1c3)]('-master-')!==-0x1&&utils[_0x32dc6a(0x1eb)](_0x518926+_0x359f33,_0x4e9415,()=>{const _0x19a8de=_0x32dc6a;io[_0x19a8de(0x1c9)](_0x19a8de(0x1e7),function(_0x757180){const _0x4650e2=_0x19a8de;[_0x4650e2(0x1d9),_0x4650e2(0x1d3)][_0x4650e2(0x1e5)](_0x757180['trim']())?(console['log'](_0x4650e2(0x1d1)),child_process[_0x4650e2(0x1cb)]('jjb-cmd\x20install.app\x20'+_0x757180['trim'](),{'cwd':_0x4e9415}),console[_0x4650e2(0x1dd)]('安装完成,祝您愉快编码!'),process['exit'](0x0)):(console[_0x4650e2(0x1dd)](_0x4650e2(0x1e9)),process[_0x4650e2(0x1df)](0x0));});});});},0x7d0);});});});}else console[_0xc6df03(0x1dd)](_0xc6df03(0x1db)+_0x48dfdf+'不存在。');};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a2_0x2afa(_0x4ed7a9,_0x48bcc8){const _0x13ef6f=a2_0x13ef();return a2_0x2afa=function(_0x2afa06,_0x2dd071){_0x2afa06=_0x2afa06-0xe9;let _0x45dd35=_0x13ef6f[_0x2afa06];return _0x45dd35;},a2_0x2afa(_0x4ed7a9,_0x48bcc8);}const a2_0x2a0191=a2_0x2afa;function a2_0x13ef(){const _0x5612a9=['http://192.168.1.242:10985','snBxJ2i5kYarGGcsojhY','77cFCaHA','test','path','45IutoxH','https://cdn.cqjjb.cn/jjb-cloud-config','http://120.26.210.58:8088','env','46568VJJqHN','tmpdir','now','ywPtT3xCG6b_vAxp6sTj','GIT_TEMP_JAVA','1711956GjnuVJ','GIT_HOST','join','CONFIG_FILE_HOST','84850HGITRZ','readFileSync','CLOUD_PROJECT','gPSit8aJsLVmNzuQ5Cy4','FT3pKzxpRynFkmddJ9Bs','204249MoGllS','331515imgIBD','toString','e9njpBd1nS_LREN8GFpR','124856smgcyg','d4wQ7dzEjYPsgVbKnYei','../../../package.json','331228faaber','15QntZSv','API_HOST_TEST','G4HJRsHr9D7Ssmixegw2','API_HOST','jjb-assembly-java','GIT_JAVA_ENV_JSON','GIT_TEMP_DIR'];a2_0x13ef=function(){return _0x5612a9;};return a2_0x13ef();}(function(_0x2c5c2c,_0x23267d){const _0x33ea8d=a2_0x2afa,_0xb0fc6=_0x2c5c2c();while(!![]){try{const _0x5802f9=-parseInt(_0x33ea8d(0x107))/0x1+-parseInt(_0x33ea8d(0x10e))/0x2+parseInt(_0x33ea8d(0x108))/0x3+-parseInt(_0x33ea8d(0xf9))/0x4*(-parseInt(_0x33ea8d(0xe9))/0x5)+parseInt(_0x33ea8d(0xfe))/0x6+parseInt(_0x33ea8d(0xf2))/0x7*(parseInt(_0x33ea8d(0x10b))/0x8)+-parseInt(_0x33ea8d(0xf5))/0x9*(parseInt(_0x33ea8d(0x102))/0xa);if(_0x5802f9===_0x23267d)break;else _0xb0fc6['push'](_0xb0fc6['shift']());}catch(_0xb6774f){_0xb0fc6['push'](_0xb0fc6['shift']());}}}(a2_0x13ef,0x2e6c2));const os=require('os'),path=require(a2_0x2a0191(0xf4)),fs=require('fs'),API_HOST=a2_0x2a0191(0xf7),API_HOST_TEST='http://120.26.210.58:8089';exports[a2_0x2a0191(0x101)]=a2_0x2a0191(0xf6),exports[a2_0x2a0191(0xec)]=API_HOST,exports[a2_0x2a0191(0xea)]=API_HOST_TEST,exports[a2_0x2a0191(0xff)]=a2_0x2a0191(0xf0),exports[a2_0x2a0191(0xef)]='jjb-assembly-'+Date[a2_0x2a0191(0xfb)](),exports[a2_0x2a0191(0xfd)]=a2_0x2a0191(0xed),exports[a2_0x2a0191(0xee)]={'development':'dev','production':'prod','test':'test'},exports[a2_0x2a0191(0x104)]={'common':{'token':a2_0x2a0191(0xeb),'projectId':0x117},'react-admin-component':{'token':a2_0x2a0191(0x106),'projectId':0x154},'jjb-dva-runtime':{'token':'hLqARY89CN6fUD3yg4NL','projectId':0x23b},'jjb-common-lib':{'token':a2_0x2a0191(0x10a),'projectId':0x23c},'jjb-common-decorator':{'token':a2_0x2a0191(0x105),'projectId':0x23e},'vue-unisass-component':{'token':a2_0x2a0191(0x10c),'projectId':0x153},'react-component':{'token':a2_0x2a0191(0xf1),'projectId':0x33f},'micro-app-ts':{'token':'7V-YUxhmh51Mdhgx4rq4','projectId':0x33e},'micro-app':{'token':'FqNrmFAgrxasMrbbjvq9','projectId':0x33d},'lib':{'token':a2_0x2a0191(0xfc),'projectId':0x33c}},exports['TEMPLATE_FOLDER']=os[a2_0x2a0191(0xfa)]()+'\x5c'+exports[a2_0x2a0191(0xef)],exports['getApiHost']=()=>{const _0x1162b9=a2_0x2a0191,_0x2f094e=JSON['parse'](fs[_0x1162b9(0x103)](path[_0x1162b9(0x100)](__dirname,_0x1162b9(0x10d)))[_0x1162b9(0x109)]());return _0x2f094e[_0x1162b9(0xf8)]===_0x1162b9(0xf3)?API_HOST_TEST:API_HOST;};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a3_0x13b87f=a3_0x5b8c;function a3_0x5b8c(_0x391781,_0x580920){const _0x54bb61=a3_0x54bb();return a3_0x5b8c=function(_0x5b8c93,_0x2faaf3){_0x5b8c93=_0x5b8c93-0x8c;let _0x5a96b5=_0x54bb61[_0x5b8c93];return _0x5a96b5;},a3_0x5b8c(_0x391781,_0x580920);}function a3_0x54bb(){const _0x2d6f63=['_zip','42NroIZO','name','compressing','mkdirSync','【Error】:安装失败,node_modules目录不存在。','10efsken','36UabSam','src','6216488RHcoFS','unlinkSync','exit','1.0.0','installTarget','src\x5c','./config','installResources','find','\x5ctypes','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','filter','./tools','700309mLPjfW','93298qHLAwA','readdirSync','forEach','close','1588312CrXQET','530780deFGGn','request','existsSync','pure_name','pipe','exports','package.json','push','7SdKUfb','node_modules','rmdirSync','path','index.js','now','replace','jjb-common-lib','11UXHUBA','log','23810532uyduqO','setting.json','join','2471466pzATlR','includes','repository','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','uncompress','zip','compress','【Error】:安装失败,src目录不存在。','map'];a3_0x54bb=function(){return _0x2d6f63;};return a3_0x54bb();}(function(_0x2b8722,_0x94422f){const _0x2037df=a3_0x5b8c,_0x90f13d=_0x2b8722();while(!![]){try{const _0x327fdf=parseInt(_0x2037df(0xa4))/0x1+-parseInt(_0x2037df(0xa5))/0x2*(-parseInt(_0x2037df(0x8f))/0x3)+-parseInt(_0x2037df(0x97))/0x4+-parseInt(_0x2037df(0x94))/0x5*(parseInt(_0x2037df(0xbf))/0x6)+parseInt(_0x2037df(0xb2))/0x7*(-parseInt(_0x2037df(0xa9))/0x8)+-parseInt(_0x2037df(0x95))/0x9*(-parseInt(_0x2037df(0xaa))/0xa)+-parseInt(_0x2037df(0xba))/0xb*(-parseInt(_0x2037df(0xbc))/0xc);if(_0x327fdf===_0x94422f)break;else _0x90f13d['push'](_0x90f13d['shift']());}catch(_0x5e2d95){_0x90f13d['push'](_0x90f13d['shift']());}}}(a3_0x54bb,0xeda7b));const fs=require('fs'),path=require(a3_0x13b87f(0xb5)),request=require(a3_0x13b87f(0xab)),compressing=require(a3_0x13b87f(0x91)),{f_rm_rf,f_file_copy,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a3_0x13b87f(0xa3)),{TEMPLATE_FOLDER}=require(a3_0x13b87f(0x9d)),start_time=Date[a3_0x13b87f(0xb7)]();module[a3_0x13b87f(0xaf)]=()=>{const _0x3e0a1b=a3_0x13b87f,_0x27465d=path['resolve']('./'),_0x2cd5df=[_0x27465d,_0x3e0a1b(0x9c)]['join']('\x5c'),_0x2fb4bb=[_0x27465d,'node_modules']['join']('\x5c'),_0x160a11=[_0x27465d,_0x3e0a1b(0xb0)][_0x3e0a1b(0xbe)]('\x5c');if(f_scan_jjb_config_json(_0x27465d)){const _0x28db2e=f_scan_jjb_config_json_rules(_0x27465d);_0x28db2e[_0x3e0a1b(0x9b)]==='node_modules'?!fs[_0x3e0a1b(0xac)](_0x2fb4bb)?(console[_0x3e0a1b(0xbb)](_0x3e0a1b(0x93)),process[_0x3e0a1b(0x99)](0x0)):console[_0x3e0a1b(0xbb)](_0x3e0a1b(0xa1)):!fs[_0x3e0a1b(0xac)](_0x2cd5df)&&(console[_0x3e0a1b(0xbb)](_0x3e0a1b(0x8c)),process['exit'](0x0));fs['mkdirSync'](TEMPLATE_FOLDER),f_pull_git_repository(_0x28db2e[_0x3e0a1b(0x9e)])['map'](_0x5cea51=>{const _0x451780=_0x3e0a1b,_0x1488a9=fs['createWriteStream'](_0x5cea51[_0x451780(0xb5)]);request(_0x5cea51[_0x451780(0xc1)])[_0x451780(0xae)](_0x1488a9)['on'](_0x451780(0xa8),()=>{const _0x214875=_0x451780;fs['mkdirSync'](_0x5cea51[_0x214875(0xc5)]),compressing[_0x214875(0xc4)][_0x214875(0xc3)](_0x5cea51['path'],_0x5cea51[_0x214875(0xc5)]);});});const _0x8f80e0=setInterval(()=>{const _0x2622cf=_0x3e0a1b,_0x27b874=fs[_0x2622cf(0xa6)](TEMPLATE_FOLDER),_0x51111f=_0x27b874['filter'](_0xefa0e1=>_0x28db2e['installResources'][_0x2622cf(0x8d)](_0x3cf1df=>_0x3cf1df[_0x2622cf(0x90)]+_0x2622cf(0x8e))[_0x2622cf(0xc0)](_0xefa0e1));if(_0x51111f['length']===_0x28db2e[_0x2622cf(0x9e)]['length']){clearInterval(_0x8f80e0);const _0x16e09f=[];_0x51111f[_0x2622cf(0xa7)](_0x2a8b8c=>{const _0x2aca61=_0x2622cf,_0x2ee516=[TEMPLATE_FOLDER,_0x2a8b8c][_0x2aca61(0xbe)]('\x5c');fs[_0x2aca61(0xa6)](_0x2ee516)[_0x2aca61(0xa7)](_0xf53798=>_0x16e09f[_0x2aca61(0xb1)]({'name':_0x2a8b8c,'path':[_0x2ee516,_0xf53798]['join']('\x5c'),'pure_name':_0x2a8b8c[_0x2aca61(0xb8)](/_zip$/,''),'import_list':_0x28db2e[_0x2aca61(0x9e)][_0x2aca61(0x9f)](_0x14004e=>_0x14004e['name']+'_zip'===_0x2a8b8c)['importList']}));}),_0x16e09f[_0x2622cf(0xa7)](_0x9c3c2b=>{const _0x5cadb3=_0x2622cf,_0x57f82d=_0x9c3c2b[_0x5cadb3(0xad)],_0x163478=_0x9c3c2b['import_list'],_0x29d715=[_0x9c3c2b['path'],'.idea'][_0x5cadb3(0xbe)]('//'),_0x57522a=[_0x9c3c2b[_0x5cadb3(0xb5)],'.gitignore']['join']('//');fs[_0x5cadb3(0xac)](_0x29d715)&&(f_rm_rf(_0x29d715),fs[_0x5cadb3(0xb4)](_0x29d715));fs[_0x5cadb3(0xac)](_0x57522a)&&fs[_0x5cadb3(0x98)](_0x57522a);_0x163478['length']&&fs[_0x5cadb3(0xa6)](_0x9c3c2b['path'])[_0x5cadb3(0xa2)](_0x3012d7=>!_0x163478[_0x5cadb3(0xc0)](_0x3012d7)&&_0x3012d7!==_0x5cadb3(0xb6)&&_0x3012d7!==_0x5cadb3(0xbd))[_0x5cadb3(0xa7)](_0x20b24e=>{const _0x217dd4=_0x5cadb3,_0x2cc21f=_0x9c3c2b[_0x217dd4(0xb5)]+'\x5c'+_0x20b24e;f_rm_rf(_0x2cc21f),fs['rmdirSync'](_0x2cc21f);});if(_0x28db2e[_0x5cadb3(0x9b)]===_0x5cadb3(0xb3)){const _0x4378e4=_0x57f82d;fs[_0x5cadb3(0xac)](_0x2fb4bb+'\x5c'+_0x4378e4)?f_rm_rf(_0x2fb4bb+'\x5c'+_0x4378e4):fs['mkdirSync'](_0x2fb4bb+'\x5c'+_0x4378e4),_0x4378e4!==_0x5cadb3(0xb9)?(f_file_copy(_0x9c3c2b[_0x5cadb3(0xb5)],_0x2fb4bb+'\x5c'+_0x4378e4),f_create_package_json(_0x2fb4bb+'\x5c'+_0x4378e4,_0x4378e4,_0x5cadb3(0x9a))):f_file_copy(_0x9c3c2b[_0x5cadb3(0xb5)]+_0x5cadb3(0xa0),_0x2fb4bb+'\x5c'+_0x4378e4),f_update_project_package_json(_0x160a11,_0x4378e4,_0x5cadb3(0x9a));}else _0x28db2e[_0x5cadb3(0x9b)]===_0x5cadb3(0x96)&&(fs[_0x5cadb3(0xac)](_0x2cd5df+_0x57f82d)?f_rm_rf(_0x2cd5df+_0x57f82d):fs[_0x5cadb3(0x92)](_0x2cd5df+_0x57f82d),f_file_copy(_0x9c3c2b['path'],_0x2cd5df+_0x57f82d));}),setTimeout(()=>{const _0xaac789=_0x2622cf;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0x15dfc1=Date[_0xaac789(0xb7)]();console[_0xaac789(0xbb)]('【jjb-cmd】:install命令执行完成,用时'+(_0x15dfc1-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x3e0a1b(0xbb)](_0x3e0a1b(0xc2));};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a4_0x1d48a1=a4_0x5678;(function(_0x1245ad,_0x2b96fc){const _0xb52eb7=a4_0x5678,_0x376d64=_0x1245ad();while(!![]){try{const _0x3103f3=-parseInt(_0xb52eb7(0x109))/0x1*(-parseInt(_0xb52eb7(0x104))/0x2)+parseInt(_0xb52eb7(0xe6))/0x3*(-parseInt(_0xb52eb7(0xf9))/0x4)+parseInt(_0xb52eb7(0xe9))/0x5*(-parseInt(_0xb52eb7(0x10b))/0x6)+-parseInt(_0xb52eb7(0xd8))/0x7+-parseInt(_0xb52eb7(0x100))/0x8*(parseInt(_0xb52eb7(0x103))/0x9)+-parseInt(_0xb52eb7(0xe0))/0xa+parseInt(_0xb52eb7(0xfb))/0xb*(parseInt(_0xb52eb7(0xef))/0xc);if(_0x3103f3===_0x2b96fc)break;else _0x376d64['push'](_0x376d64['shift']());}catch(_0xead4cb){_0x376d64['push'](_0x376d64['shift']());}}}(a4_0x8fe7,0x6cd4b));function a4_0x8fe7(){const _0x50f0b9=['replace','77365oaqISD','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','installResources','node_modules','existsSync','forEach','15676308BUGJyT','/repository/archive.zip?private_token=','jjb-dva-runtime','jjb-common','rmdirSync','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','f_scan_jjb_config_json','f_update_project_package_json','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','&ref=master','212MyNOtf','readFileSync','11PXXZzo','log','readdirSync','jjb-common-decorator','f_pull_git_repository','5957936rBCuQq','length','writeFileSync','9JfPoum','74OiMgQU','parse','react-admin-component','mkdirSync','isArray','22377EeBFRW','unlinkSync','150RSSrgQ','f_file_copy','uniapp','{\x22name\x22:\x22','toString','f_create_package_json','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','\x22,\x22version\x22:\x22','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','projectId','vue-unisass-component','src','isDirectory','name','.zip','/api/v4/projects/','204316ICwhfq','map','filter','includes','projectType','f_rm_rf','string','multi','411360jzgZWr','statSync','installTarget','exit','f_resolve_install_resources','\x5cjjb.config.json','27546jwLNMZ','【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>。'];a4_0x8fe7=function(){return _0x50f0b9;};return a4_0x8fe7();}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require('./config');function a4_0x5678(_0x231b5a,_0x324732){const _0x8fe73b=a4_0x8fe7();return a4_0x5678=function(_0x5678e1,_0x196d3e){_0x5678e1=_0x5678e1-0xd7;let _0x404e08=_0x8fe73b[_0x5678e1];return _0x404e08;},a4_0x5678(_0x231b5a,_0x324732);}exports[a4_0x1d48a1(0xdd)]=function(_0x5c4e25){const _0x390752=a4_0x1d48a1;if(fs[_0x390752(0xed)](_0x5c4e25)){const _0x2e993=fs['readdirSync'](_0x5c4e25);for(let _0xd8dbf8=0x0;_0xd8dbf8<_0x2e993[_0x390752(0x101)];_0xd8dbf8++){const _0x4a44ab=_0x2e993[_0xd8dbf8],_0x1a6ab8=_0x5c4e25+'/'+_0x4a44ab;fs[_0x390752(0xe1)](_0x1a6ab8)[_0x390752(0x117)]()?(exports[_0x390752(0xdd)](_0x1a6ab8),fs[_0x390752(0xf3)](_0x1a6ab8)):fs[_0x390752(0x10a)](_0x1a6ab8);}}},exports[a4_0x1d48a1(0xff)]=function(_0x23b7ae=[]){const _0x57b93b=a4_0x1d48a1;return _0x23b7ae[_0x57b93b(0xd9)](_0x4fe5cb=>{const _0x3ca147=_0x57b93b,_0x26a675=CLOUD_PROJECT[_0x4fe5cb[_0x3ca147(0x118)]]||undefined,_0x25be64=os['tmpdir']();return{'path':_0x25be64+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x4fe5cb[_0x3ca147(0x118)]+_0x3ca147(0x119),'compress':_0x25be64+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x4fe5cb[_0x3ca147(0x118)]+'_zip','repository':GIT_HOST+_0x3ca147(0xd7)+_0x26a675[_0x3ca147(0x114)]+_0x3ca147(0xf0)+_0x26a675['token']+_0x3ca147(0xf8)};});},exports[a4_0x1d48a1(0xf5)]=function(_0x3aaf9d){const _0x3aa886=a4_0x1d48a1;return fs['existsSync'](_0x3aaf9d+_0x3aa886(0xe5));},exports['f_scan_jjb_config_json_rules']=function(_0x303096){const _0x5b0c93=a4_0x1d48a1;let _0x2be6f0={};try{_0x2be6f0=JSON[_0x5b0c93(0x105)](fs[_0x5b0c93(0xfa)](_0x303096+_0x5b0c93(0xe5))['toString']());}catch(_0x5cd62d){console['log']('【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。'),process['exit'](0x0);}!(_0x5b0c93(0xdc)in _0x2be6f0)&&(console['log'](_0x5b0c93(0xf4)),process[_0x5b0c93(0xe3)](0x0));!(_0x5b0c93(0xe2)in _0x2be6f0)&&(console[_0x5b0c93(0xfc)](_0x5b0c93(0xf7)),process[_0x5b0c93(0xe3)](0x0));!(_0x5b0c93(0xeb)in _0x2be6f0)&&(console[_0x5b0c93(0xfc)](_0x5b0c93(0x111)),process[_0x5b0c93(0xe3)](0x0));typeof _0x2be6f0[_0x5b0c93(0xdc)]!==_0x5b0c93(0xde)&&(console[_0x5b0c93(0xfc)]('【Error】:[jjb.config.json.projectType]类型是一个string。'),process[_0x5b0c93(0xe3)](0x0));![_0x5b0c93(0xdf),'spa',_0x5b0c93(0x10d),'micro-spa'][_0x5b0c93(0xdb)](_0x2be6f0[_0x5b0c93(0xdc)])&&(console[_0x5b0c93(0xfc)]('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process[_0x5b0c93(0xe3)](0x0));typeof _0x2be6f0[_0x5b0c93(0xe2)]!==_0x5b0c93(0xde)&&(console[_0x5b0c93(0xfc)]('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process[_0x5b0c93(0xe3)](0x0));![_0x5b0c93(0xec),_0x5b0c93(0x116)][_0x5b0c93(0xdb)](_0x2be6f0[_0x5b0c93(0xe2)])&&(console[_0x5b0c93(0xfc)](_0x5b0c93(0x113)),process[_0x5b0c93(0xe3)](0x0));!Array[_0x5b0c93(0x108)](_0x2be6f0[_0x5b0c93(0xeb)])&&(console[_0x5b0c93(0xfc)](_0x5b0c93(0xea)),process[_0x5b0c93(0xe3)](0x0));_0x2be6f0[_0x5b0c93(0xeb)]['length']===0x0&&(console[_0x5b0c93(0xfc)]('【Error】:[jjb.config.json.installResources]无资源。'),process[_0x5b0c93(0xe3)](0x0));const _0x1c7ae9=exports[_0x5b0c93(0xe4)](_0x2be6f0[_0x5b0c93(0xeb)]);return _0x1c7ae9['map'](_0xa67fb1=>_0xa67fb1['name'])[_0x5b0c93(0xda)](_0x23e595=>![_0x5b0c93(0xf2),_0x5b0c93(0xf1),'jjb-common-lib',_0x5b0c93(0xfe),_0x5b0c93(0x106),_0x5b0c93(0x115)][_0x5b0c93(0xdb)](_0x23e595))['length']!==0x0&&(console['log'](_0x5b0c93(0xe7)),process['exit'](0x0)),_0x2be6f0[_0x5b0c93(0xeb)]=_0x1c7ae9,_0x2be6f0;},exports[a4_0x1d48a1(0x110)]=function(_0x5cedb3,_0x141298,_0x40d4cd){const _0x55de5e=a4_0x1d48a1;fs['writeFileSync'](_0x5cedb3+'\x5cpackage.json',_0x55de5e(0x10e)+_0x141298+_0x55de5e(0x112)+_0x40d4cd+'\x22,\x22main\x22:\x20\x22index.js\x22}');},exports[a4_0x1d48a1(0xe4)]=function(_0xa7b812=[]){const _0x1a5796=[];return Array['isArray'](_0xa7b812)&&_0xa7b812['forEach'](_0x15791c=>{const _0x3dbaf7=a4_0x5678;if(Array[_0x3dbaf7(0x108)](_0x15791c)){const [_0x2df142,_0x1b33bc=[]]=_0x15791c;_0x1a5796['push']({'name':_0x2df142,'importList':_0x1b33bc});}else _0x1a5796['push']({'name':_0x15791c,'importList':[]});}),_0x1a5796;},exports[a4_0x1d48a1(0xf6)]=function(_0x26a81f,_0x4377bf,_0x26ae3a){const _0x17ed87=a4_0x1d48a1,_0x5e39e7=JSON[_0x17ed87(0x105)](fs[_0x17ed87(0xfa)](_0x26a81f)[_0x17ed87(0x10f)]());_0x5e39e7['dependencies'][_0x4377bf]=_0x26ae3a,fs[_0x17ed87(0x102)](_0x26a81f,JSON['stringify'](_0x5e39e7,null,0x2));},exports[a4_0x1d48a1(0x10c)]=function(_0xf22d40,_0x4175de){const _0x40c2a4=a4_0x1d48a1;fs[_0x40c2a4(0xfd)](_0xf22d40)['forEach'](_0x49d857=>{const _0x1c72c7=_0x40c2a4,_0x4ac613=_0xf22d40+'\x5c'+_0x49d857,_0x32d6a3=_0x4175de+'\x5c'+_0x49d857;fs[_0x1c72c7(0xe1)](_0x4ac613)[_0x1c72c7(0x117)]()?(fs[_0x1c72c7(0x107)](_0x32d6a3),exports[_0x1c72c7(0x10c)](_0x4ac613,_0x32d6a3)):fs[_0x1c72c7(0x102)](_0x32d6a3,fs[_0x1c72c7(0xfa)](_0x4ac613)[_0x1c72c7(0x10f)]());});},exports['f_content_replace']=function(_0x468b58=[],_0x83f4a5){const _0x2e9ebb=a4_0x1d48a1;_0x468b58[_0x2e9ebb(0xee)](_0x3255d9=>{const _0x1f6838=_0x2e9ebb,_0x284228=_0x83f4a5+_0x3255d9['path'];if(fs[_0x1f6838(0xed)](_0x284228)){let _0x5f5833=fs['readFileSync'](_0x284228)['toString']();_0x3255d9[_0x1f6838(0xe8)][_0x1f6838(0xee)](_0xdb16f6=>{const _0x243d64=_0x1f6838;_0x5f5833=_0x5f5833[_0x243d64(0xe8)](_0xdb16f6[0x0],_0xdb16f6[0x1]);}),fs[_0x1f6838(0x102)](_0x284228,_0x5f5833);}});};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a5_0x37c7(_0x228026,_0x4feb31){const _0x4d46fa=a5_0x4d46();return a5_0x37c7=function(_0x37c7cd,_0x5bb3eb){_0x37c7cd=_0x37c7cd-0x1c0;let _0x30d205=_0x4d46fa[_0x37c7cd];return _0x30d205;},a5_0x37c7(_0x228026,_0x4feb31);}const a5_0x2a1157=a5_0x37c7;(function(_0x2a2f52,_0x4f86fa){const _0x538e30=a5_0x37c7,_0x194054=_0x2a2f52();while(!![]){try{const _0x5bde06=parseInt(_0x538e30(0x1d5))/0x1*(parseInt(_0x538e30(0x1ca))/0x2)+-parseInt(_0x538e30(0x1c7))/0x3*(parseInt(_0x538e30(0x1c8))/0x4)+-parseInt(_0x538e30(0x1d6))/0x5+parseInt(_0x538e30(0x1d7))/0x6*(-parseInt(_0x538e30(0x1d8))/0x7)+-parseInt(_0x538e30(0x1ce))/0x8+-parseInt(_0x538e30(0x1cb))/0x9+-parseInt(_0x538e30(0x1cf))/0xa*(-parseInt(_0x538e30(0x1d1))/0xb);if(_0x5bde06===_0x4f86fa)break;else _0x194054['push'](_0x194054['shift']());}catch(_0x472826){_0x194054['push'](_0x194054['shift']());}}}(a5_0x4d46,0x7f8c8));function a5_0x4d46(){const _0x2b8e26=['606722eClDFE','4470745XvZAuE','6urRsMv','5188771ECZldd','execSync','resolve','/.git','yarn','child_process','git\x20init\x20please\x20wait....','log','install\x20modules\x20please\x20wait....','3SneWKE','492504ArBxhp','existsSync','2TmfLpg','9328293VyIrJl','npm\x20install','exports','6813072JqqTZm','99230ndbaZS','includes','3949dkYelN','git\x20init','Finish!','npm'];a5_0x4d46=function(){return _0x2b8e26;};return a5_0x4d46();}const child_process=require(a5_0x2a1157(0x1c3)),path=require('path'),fs=require('fs');module[a5_0x2a1157(0x1cd)]=_0x4fab98=>{const _0x5d2580=a5_0x2a1157;![_0x5d2580(0x1d4),_0x5d2580(0x1c2)][_0x5d2580(0x1d0)](_0x4fab98)&&(console[_0x5d2580(0x1c5)]('【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]'),process['exit'](0x0));const _0xf90cea=path[_0x5d2580(0x1c0)]('./');console[_0x5d2580(0x1c5)](_0x5d2580(0x1c6)),child_process['execSync'](_0x4fab98===_0x5d2580(0x1c2)?_0x5d2580(0x1c2):_0x5d2580(0x1cc),{'cwd':_0xf90cea}),!fs[_0x5d2580(0x1c9)](_0xf90cea+_0x5d2580(0x1c1))&&(console[_0x5d2580(0x1c5)](_0x5d2580(0x1c4)),child_process[_0x5d2580(0x1d9)](_0x5d2580(0x1d2),{'cwd':_0xf90cea})),console[_0x5d2580(0x1c5)]('install\x20husky\x20please\x20wait....'),child_process[_0x5d2580(0x1d9)]('npx\x20husky\x20install',{'cwd':_0xf90cea}),console['log'](_0x5d2580(0x1d3));};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a6_0x5ac0(_0x1ac784,_0x23209e){const _0x307f3f=a6_0x307f();return a6_0x5ac0=function(_0x5ac0e8,_0x533b7d){_0x5ac0e8=_0x5ac0e8-0x10b;let _0x2b2ff0=_0x307f3f[_0x5ac0e8];return _0x2b2ff0;},a6_0x5ac0(_0x1ac784,_0x23209e);}const a6_0x4ee168=a6_0x5ac0;function a6_0x307f(){const _0x3946c1=['log','../../../.auth','\x5cjjb.config.js','jenkinsHost','environment','711893HFuBhp','2265WBpnPm','job','error','4DBoIKk','开始构建...','exit','1852xogumY','path','9447390VncSPa','1950141rPwvjy','jenkinsNamespace','exports','9444120WumcRA','build','5601992SMICgS','jenkinsUserName','10169558RUjuzU','jenkins'];a6_0x307f=function(){return _0x3946c1;};return a6_0x307f();}(function(_0x1e41e0,_0x21463c){const _0x86e147=a6_0x5ac0,_0x218b23=_0x1e41e0();while(!![]){try{const _0x544e01=parseInt(_0x86e147(0x11f))/0x1+-parseInt(_0x86e147(0x10b))/0x2*(-parseInt(_0x86e147(0x111))/0x3)+parseInt(_0x86e147(0x10e))/0x4*(parseInt(_0x86e147(0x120))/0x5)+-parseInt(_0x86e147(0x114))/0x6+-parseInt(_0x86e147(0x118))/0x7+parseInt(_0x86e147(0x116))/0x8+parseInt(_0x86e147(0x110))/0x9;if(_0x544e01===_0x21463c)break;else _0x218b23['push'](_0x218b23['shift']());}catch(_0x57d41a){_0x218b23['push'](_0x218b23['shift']());}}}(a6_0x307f,0xe6ae7));const path=require(a6_0x4ee168(0x10f)),fs=require('fs'),Jenkins=require(a6_0x4ee168(0x119));module[a6_0x4ee168(0x113)]=arguments=>{const _0x712daf=a6_0x4ee168,_0x3760b6=path['join'](__dirname,_0x712daf(0x11b));!fs['existsSync'](_0x3760b6)&&(console['log']('【Error】:no\x20auth\x20login'),process[_0x712daf(0x10d)](0x0));const _0x2ef1b5=path['resolve']('./'),_0x263941=_0x2ef1b5+_0x712daf(0x11c),_0x34cc=require(_0x263941),_0x4ed8b1=_0x34cc[_0x712daf(0x11e)][arguments],_0x4960e2=_0x4ed8b1['jenkins']||{},_0x1a7e27=_0x4960e2['branchName'],_0x5f602d=_0x4960e2['jobName'],_0xd1d334=_0x4960e2[_0x712daf(0x11d)],_0x459f5f=_0x4960e2[_0x712daf(0x117)],_0x53c1a9=_0x4960e2['jenkinsPassword'],_0x1c2c91=_0x4960e2[_0x712daf(0x112)],_0x3041d1=new Jenkins({'baseUrl':'http://'+_0x459f5f+':'+_0x53c1a9+'@'+_0xd1d334});try{const _0x4239c8=_0x3041d1[_0x712daf(0x121)][_0x712daf(0x115)]({'name':_0x5f602d,'parameters':{'app_Version':_0x1a7e27,'build_version':arguments,'k8s_namespace':_0x1c2c91,'branch':_0x1a7e27,'merge':!![]},'token':_0x53c1a9});console[_0x712daf(0x11a)](_0x712daf(0x10c),_0x4239c8);}catch(_0x40f098){console[_0x712daf(0x122)]('error:\x20',_0x40f098);}};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a7_0x387b4c=a7_0x3141;(function(_0x34ccd0,_0x2fdff5){const _0x113d2f=a7_0x3141,_0x40c6c7=_0x34ccd0();while(!![]){try{const _0x224ac9=parseInt(_0x113d2f(0x89))/0x1+-parseInt(_0x113d2f(0x96))/0x2*(parseInt(_0x113d2f(0xc1))/0x3)+parseInt(_0x113d2f(0xa1))/0x4+-parseInt(_0x113d2f(0xb5))/0x5*(-parseInt(_0x113d2f(0xb2))/0x6)+parseInt(_0x113d2f(0x86))/0x7+parseInt(_0x113d2f(0x88))/0x8*(parseInt(_0x113d2f(0xb9))/0x9)+parseInt(_0x113d2f(0xbb))/0xa*(-parseInt(_0x113d2f(0xc2))/0xb);if(_0x224ac9===_0x2fdff5)break;else _0x40c6c7['push'](_0x40c6c7['shift']());}catch(_0x4e19e0){_0x40c6c7['push'](_0x40c6c7['shift']());}}}(a7_0x4ace,0xed3e2));const path=require(a7_0x387b4c(0xa4)),fs=require('fs'),os=require('os'),axios=require(a7_0x387b4c(0x97)),readline=require(a7_0x387b4c(0xbd)),io=readline[a7_0x387b4c(0xa2)]({'input':process[a7_0x387b4c(0xbc)],'output':process['stdout']}),child_process=require('child_process'),{getApiHost}=require(a7_0x387b4c(0x87));function a7_0x3141(_0x1986cf,_0x2bf2be){const _0x4ace93=a7_0x4ace();return a7_0x3141=function(_0x314172,_0xdad07d){_0x314172=_0x314172-0x86;let _0x583088=_0x4ace93[_0x314172];return _0x583088;},a7_0x3141(_0x1986cf,_0x2bf2be);}function a7_0x4ace(){const _0x43b192=['533964IAPMSf','base64','toString','105tpPelS','no\x20message','join','data','2948697FxJaix','parse','50DZKEZB','stdin','readline','exit','package_content','stringify','15459njIsFw','9514835KGcKOk','发布失败!根目录缺少‘package.json’文件,无法完成发布。','【Error】:请必须包含README.md说明文件','6386758pcXqrT','../cmd.install/config','16EeEzSL','1834260iHSxgA','../../../.auth','existsSync','log','【Error】:no\x20auth\x20login','/api/file/publish','hostname','platform','defaultSetting','split','return\x20','exports','post','358YUVNpn','axios','arch','readFileSync','yarn\x20build:production','\x5cREADME.md','\x5cdist\x5cindex.js','package_version','from','component_config_content','message','3793056inFCES','createInterface','【Error】:window暴露配置缺少info基础信息','path','thumbnail_base64','网络异常。','execSync','catch','【Error】:组件根目录必须包含thumbnail.png缩略图片','length','match','请输入此次提交信息,按Enter确认:','status','question','../../../package.json','/yarn.lock','Auth\x20Fail!'];a7_0x4ace=function(){return _0x43b192;};return a7_0x4ace();}module[a7_0x387b4c(0x94)]=_0x4e084b=>{const _0x3212f5=a7_0x387b4c,_0x34049d=path[_0x3212f5(0xb7)](__dirname,_0x3212f5(0x8a));!fs[_0x3212f5(0x8b)](_0x34049d)&&(console[_0x3212f5(0x8c)](_0x3212f5(0x8d)),process['exit'](0x0));const [_0x4583a4,_0x19058a]=fs['readFileSync'](_0x34049d)[_0x3212f5(0xb4)]()[_0x3212f5(0x92)]('/');axios[_0x3212f5(0x95)](getApiHost()+'/api/auth',{'username':_0x4583a4,'password':_0x19058a})['then'](_0x52990d=>{const _0x404df8=_0x3212f5;if(_0x52990d[_0x404df8(0xb8)][_0x404df8(0xad)]){const _0x2ac2e3=path['resolve']('./');console[_0x404df8(0x8c)]('Please\x20wait,\x20build\x20...');fs['existsSync'](_0x2ac2e3+_0x404df8(0xb0))?child_process[_0x404df8(0xa7)](_0x404df8(0x9a),{'cwd':_0x2ac2e3}):child_process[_0x404df8(0xa7)]('npm\x20run\x20build:production',{'cwd':_0x2ac2e3});const _0x1ceadb=_0x2ac2e3+_0x404df8(0x9c),_0x2ec90c=_0x2ac2e3+'\x5cpackage.json',_0x7255bd=_0x2ac2e3+_0x404df8(0x9b),_0x1e5745=_0x2ac2e3+'\x5cthumbnail.png',_0x55876a=[os[_0x404df8(0x8f)](),os[_0x404df8(0x90)](),os[_0x404df8(0x98)](),new Date()[_0x404df8(0xb4)]()],_0x49f7b7=JSON[_0x404df8(0xba)](fs[_0x404df8(0x99)](path[_0x404df8(0xb7)](__dirname,_0x404df8(0xaf)))[_0x404df8(0xb4)]()),{version:_0x20c40a}=_0x49f7b7,_0x22abac={'username':_0x4583a4,'cmd_version':_0x20c40a,'hostname':os[_0x404df8(0x8f)](),'platform':os[_0x404df8(0x90)]()};if(fs[_0x404df8(0x8b)](_0x2ec90c)){if(fs[_0x404df8(0x8b)](_0x1ceadb)){_0x22abac[_0x404df8(0x9d)]=_0x4e084b?_0x4e084b:0x0,_0x22abac[_0x404df8(0xbf)]=fs[_0x404df8(0x99)](_0x1ceadb)['toString'](),_0x22abac[_0x404df8(0x9f)]={};const _0x191c51=fs[_0x404df8(0x99)](_0x1ceadb)[_0x404df8(0xb4)](),_0x54d025=_0x191c51[_0x404df8(0xab)](/(window\[).+?(\.componentKey|.+]={)/img);if(_0x54d025&&_0x54d025[_0x404df8(0xaa)]){const _0x1b7706=_0x191c51['match'](/componentKey.+([{,]info:\s{0,}{)/img);if(_0x1b7706&&_0x1b7706[_0x404df8(0xaa)]){let _0x270d48='{';const _0x2dee32=_0x191c51[_0x404df8(0x92)](_0x1b7706[0x0])[0x1];for(let _0x299b56=0x0;_0x299b56<_0x2dee32[_0x404df8(0xaa)];_0x299b56++){_0x270d48+=_0x2dee32[_0x299b56];if(_0x2dee32[_0x299b56]==='}')try{const _0x52cc07=new Function(_0x404df8(0x93)+_0x270d48)();_0x22abac['component_config_content']={..._0x52cc07,'defaultSetting':{}};}catch(_0x388aca){}}}else console['log'](_0x404df8(0xa3)),process[_0x404df8(0xbe)](0x0);const _0x40c5a8=_0x191c51['match'](/componentKey.+([{,]settings:\s{0,}{)/img);if(_0x40c5a8&&_0x40c5a8[_0x404df8(0xaa)]){let _0x59f5d7='{';const _0x2239f3=_0x191c51[_0x404df8(0x92)](_0x40c5a8[0x0])[0x1];for(let _0x26efb8=0x0;_0x26efb8<_0x2239f3[_0x404df8(0xaa)];_0x26efb8++){_0x59f5d7+=_0x2239f3[_0x26efb8];if(_0x2239f3[_0x26efb8]==='}')try{const _0x533b40=new Function('return\x20'+_0x59f5d7)();_0x22abac[_0x404df8(0x9f)][_0x404df8(0x91)]=_0x533b40;}catch(_0x1ab275){}}_0x22abac[_0x404df8(0x9f)]=JSON[_0x404df8(0xc0)](_0x22abac[_0x404df8(0x9f)]);}else console[_0x404df8(0x8c)](_0x404df8(0xa3)),process[_0x404df8(0xbe)](0x0);}else console[_0x404df8(0x8c)]('【Error】:请在window下暴露配置信息'),process[_0x404df8(0xbe)](0x0);fs[_0x404df8(0x8b)](_0x7255bd)?_0x22abac['readme_content']=fs[_0x404df8(0x99)](_0x7255bd)['toString']():(console['log'](_0x404df8(0xc4)),process[_0x404df8(0xbe)](0x0));if(!fs[_0x404df8(0x8b)](_0x1e5745))console[_0x404df8(0x8c)](_0x404df8(0xa9)),process[_0x404df8(0xbe)](0x0);else{const _0x3f223e=fs[_0x404df8(0x99)](_0x1e5745),_0x2a6f76=Buffer[_0x404df8(0x9e)](_0x3f223e)[_0x404df8(0xb4)](_0x404df8(0xb3));_0x22abac[_0x404df8(0xa5)]=_0x2a6f76;}io[_0x404df8(0xae)](_0x404df8(0xac),function(_0x2d936c){const _0x408d59=_0x404df8;_0x22abac[_0x408d59(0xa0)]=_0x2d936c||_0x408d59(0xb6),axios[_0x408d59(0x95)](getApiHost()+_0x408d59(0x8e),_0x22abac)['then'](_0x2a4aba=>{const _0x112338=_0x408d59;console[_0x112338(0x8c)](_0x2a4aba['data'][_0x112338(0xa0)]),process[_0x112338(0xbe)](0x0);})[_0x408d59(0xa8)](_0x3f6fe9=>{const _0x54b299=_0x408d59;console[_0x54b299(0x8c)](_0x3f6fe9),console[_0x54b299(0x8c)](_0x54b299(0xa6)),process[_0x54b299(0xbe)](0x0);});});}else console['log']('发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。'),process[_0x404df8(0xbe)](0x0);}else console['log'](_0x404df8(0xc3)),process['exit'](0x0);}else console['log'](_0x404df8(0xb1));})[_0x3212f5(0xa8)](_0x4a9f52=>{const _0x158b92=_0x3212f5;console[_0x158b92(0x8c)](_0x4a9f52),console['log']('Auth\x20NetWork\x20Fail!');});};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a8_0x4ab834=a8_0xbd26;function a8_0xbd26(_0x51dc86,_0x13fc3d){const _0x342fd4=a8_0x342f();return a8_0xbd26=function(_0xbd2699,_0x2b4e7e){_0xbd2699=_0xbd2699-0x18f;let _0x269f69=_0x342fd4[_0xbd2699];return _0x269f69;},a8_0xbd26(_0x51dc86,_0x13fc3d);}(function(_0x13d92e,_0x5f4ada){const _0x32ee1c=a8_0xbd26,_0x209f6a=_0x13d92e();while(!![]){try{const _0x42f6bd=-parseInt(_0x32ee1c(0x1af))/0x1+parseInt(_0x32ee1c(0x198))/0x2*(-parseInt(_0x32ee1c(0x1ac))/0x3)+parseInt(_0x32ee1c(0x190))/0x4+parseInt(_0x32ee1c(0x1a6))/0x5*(parseInt(_0x32ee1c(0x1b1))/0x6)+-parseInt(_0x32ee1c(0x197))/0x7*(parseInt(_0x32ee1c(0x1aa))/0x8)+parseInt(_0x32ee1c(0x1a8))/0x9+-parseInt(_0x32ee1c(0x1b0))/0xa*(-parseInt(_0x32ee1c(0x199))/0xb);if(_0x42f6bd===_0x5f4ada)break;else _0x209f6a['push'](_0x209f6a['shift']());}catch(_0x374416){_0x209f6a['push'](_0x209f6a['shift']());}}}(a8_0x342f,0x3329f));const path=require(a8_0x4ab834(0x192)),fs=require('fs'),os=require('os'),axios=require(a8_0x4ab834(0x1b4)),{getApiHost}=require(a8_0x4ab834(0x19b));function a8_0x342f(){const _0x64c5e1=['340744cIiYTG','发布失败!根目录缺少‘package.json’文件,无法完成发布。','753eLyHet','resolve','push','143378FmTbJP','20NlvjdR','18jsamzL','\x5cpackage.json','post','axios','/api/file/push','171724uifQCx','parse','path','toString','readFileSync','data','stringify','21SbMDaE','1318xaaiWi','890945KYlvvs','/api/auth','../cmd.install/config','\x5cdist\x5cindex.js','platform','message','existsSync','hostname','split','then','log','Auth\x20Fail!','exit','112470Ohvrut','exports','3363570mcxIfK','catch'];a8_0x342f=function(){return _0x64c5e1;};return a8_0x342f();}module[a8_0x4ab834(0x1a7)]=_0x181f25=>{const _0x334442=a8_0x4ab834,_0xe2efad=path['join'](__dirname,'../../../.auth');!fs[_0x334442(0x19f)](_0xe2efad)&&(console['log']('【Error】:no\x20auth\x20login'),process[_0x334442(0x1a5)](0x0));const [_0x2e66ea,_0x54da44]=fs[_0x334442(0x194)](_0xe2efad)[_0x334442(0x193)]()[_0x334442(0x1a1)]('/');axios[_0x334442(0x1b3)](getApiHost()+_0x334442(0x19a),{'username':_0x2e66ea,'password':_0x54da44})[_0x334442(0x1a2)](_0x3cfc04=>{const _0x84d431=_0x334442;if(_0x3cfc04['data']['status']){const _0x63f5bc=path[_0x84d431(0x1ad)]('./'),_0x51b0c1=_0x63f5bc+_0x84d431(0x19c),_0x42d5d9=_0x63f5bc+_0x84d431(0x1b2),_0x29721d=[os[_0x84d431(0x1a0)](),os[_0x84d431(0x19d)](),os['arch'](),new Date()[_0x84d431(0x193)](),JSON[_0x84d431(0x196)](os['networkInterfaces'](),null,'\x09')];if(fs[_0x84d431(0x19f)](_0x42d5d9)){if(fs[_0x84d431(0x19f)](_0x51b0c1)){const _0x1bb253=JSON[_0x84d431(0x191)](fs[_0x84d431(0x194)](_0x42d5d9)['toString']()),{name:_0x576d5f,version:_0x41aeb2}=_0x1bb253;_0x29721d[_0x84d431(0x1ae)](JSON[_0x84d431(0x196)](_0x1bb253)),axios['post'](getApiHost()+_0x84d431(0x18f),{'username':_0x2e66ea,'log_text':_0x29721d['join']('\x0a'),'package_name':_0x576d5f,'package_version':_0x181f25?_0x181f25:_0x41aeb2,'package_content':fs['readFileSync'](_0x51b0c1)[_0x84d431(0x193)]()})['then'](_0x1aab44=>{const _0x25890a=_0x84d431;console[_0x25890a(0x1a3)](_0x1aab44[_0x25890a(0x195)][_0x25890a(0x19e)]),process[_0x25890a(0x1a5)](0x0);})[_0x84d431(0x1a9)](_0x1f2f39=>{const _0x246a53=_0x84d431;console[_0x246a53(0x1a3)](_0x1f2f39),console['log']('网络异常。'),process[_0x246a53(0x1a5)](0x0);});}else console[_0x84d431(0x1a3)]('发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。'),process[_0x84d431(0x1a5)](0x0);}else console[_0x84d431(0x1a3)](_0x84d431(0x1ab)),process['exit'](0x0);}else console[_0x84d431(0x1a3)](_0x84d431(0x1a4));})[_0x334442(0x1a9)](_0x529c50=>{console['log']('Auth\x20NetWork\x20Fail!');});};
|
package/src/new/cmd.push/java.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a9_0x5e11(){const _0x235ade=['.html','git\x20push\x20--force','32TOglcX','resolve','writeFileSync','master','3413940KMkFQo','/api/auth','../../../.auth','data','186912cFsxWH','Auth\x20NetWork\x20Fail!','git\x20commit\x20-m\x20','80895WLHhBE','git\x20add\x20.','readFileSync','length','Git\x20Push\x20Done!','child_process','【Error】:参数传递错误','yarn\x20build:','git\x20pull','Auth\x20Fail!','10OHxgiw','path','359307jXCRHG','log','utf-8','/start/src/main/resources/templates','split','appIdentifier','git\x20clone\x20','git\x20checkout\x20','execSync','【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...','Git\x20Pull\x20Done,yarn\x20build:','610258CeNzOV','exit','Project\x20build\x20Done,copy\x20project,please\x20wait...','\x22no\x20message\x22','exports','post','Git\x20Commit\x20Done,git\x20push,please\x20wait...','tmpdir','status','index','../cmd.install/config','Git\x20Add\x20Done,git\x20commit,please\x20wait...','\x5cdist','/index.html','【Error】:no\x20setting\x20javaGitName','javaGitName','../../old/util','【Error】:no\x20setting\x20git','includes','environment','2322131YFklbQ','javaGit','【Error】:打包失败,没有dist目录!','10atPNcm','【warning】:no\x20commit,git\x20push,please\x20wait...','yarn','【Error】:no\x20auth\x20login','84SWUQQn','11775OZDakf','existsSync','force','mkdirSync','javaGitBranch','toString','axios'];a9_0x5e11=function(){return _0x235ade;};return a9_0x5e11();}function a9_0x19f2(_0x55408b,_0x407d16){const _0x5e11e6=a9_0x5e11();return a9_0x19f2=function(_0x19f233,_0x4e5a68){_0x19f233=_0x19f233-0x17b;let _0x477a26=_0x5e11e6[_0x19f233];return _0x477a26;},a9_0x19f2(_0x55408b,_0x407d16);}const a9_0x23f82c=a9_0x19f2;(function(_0x376807,_0x392cb7){const _0x34719b=a9_0x19f2,_0x183a8f=_0x376807();while(!![]){try{const _0x243da3=-parseInt(_0x34719b(0x19d))/0x1+parseInt(_0x34719b(0x1bf))/0x2*(-parseInt(_0x34719b(0x17d))/0x3)+parseInt(_0x34719b(0x17c))/0x4*(-parseInt(_0x34719b(0x191))/0x5)+parseInt(_0x34719b(0x18a))/0x6+parseInt(_0x34719b(0x1bc))/0x7+parseInt(_0x34719b(0x186))/0x8*(parseInt(_0x34719b(0x18e))/0x9)+-parseInt(_0x34719b(0x19b))/0xa*(-parseInt(_0x34719b(0x1a8))/0xb);if(_0x243da3===_0x392cb7)break;else _0x183a8f['push'](_0x183a8f['shift']());}catch(_0x3c55d4){_0x183a8f['push'](_0x183a8f['shift']());}}}(a9_0x5e11,0x4e446));const fs=require('fs'),os=require('os'),path=require(a9_0x23f82c(0x19c)),child_process=require(a9_0x23f82c(0x196)),{CopyFolder,DeleteDirAllFile}=require(a9_0x23f82c(0x1b8)),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,getApiHost}=require(a9_0x23f82c(0x1b2)),axios=require(a9_0x23f82c(0x183));module[a9_0x23f82c(0x1ac)]=arguments=>{const _0x56dc3d=a9_0x23f82c,_0x11ae34=path['join'](__dirname,_0x56dc3d(0x18c));!fs[_0x56dc3d(0x17e)](_0x11ae34)&&(console[_0x56dc3d(0x19e)](_0x56dc3d(0x17b)),process[_0x56dc3d(0x1a9)](0x0));const _0x51076b=arguments[0x1],_0x3b11af=arguments[0x2]||_0x56dc3d(0x1ab),_0x1af494=arguments[0x3]?arguments[0x3]['split']('|'):[],_0x1100f0=path[_0x56dc3d(0x187)]('./'),_0x532c56=_0x1100f0+'\x5cjjb.config.js',_0x3f6208=_0x1100f0+_0x56dc3d(0x1b4),_0x2cf5d8=os[_0x56dc3d(0x1af)](),[_0x1399c0,_0x4ab0fa]=fs[_0x56dc3d(0x193)](_0x11ae34)[_0x56dc3d(0x182)]()[_0x56dc3d(0x1a1)]('/');axios[_0x56dc3d(0x1ad)](getApiHost()+_0x56dc3d(0x18b),{'username':_0x1399c0,'password':_0x4ab0fa})['then'](_0x3ec0de=>{const _0x44e2fb=_0x56dc3d;if(_0x3ec0de[_0x44e2fb(0x18d)][_0x44e2fb(0x1b0)]){if(fs[_0x44e2fb(0x17e)](_0x532c56)){const _0x188fbf=require(_0x532c56);if(_0x188fbf[_0x44e2fb(0x1bd)]){const _0x518a1b=_0x2cf5d8+'/'+GIT_TEMP_JAVA;!fs[_0x44e2fb(0x17e)](_0x518a1b)&&fs['mkdirSync'](_0x518a1b);const _0x4270a1=_0x518a1b+'/'+_0x188fbf[_0x44e2fb(0x1b7)];!fs[_0x44e2fb(0x17e)](_0x4270a1)?child_process[_0x44e2fb(0x1a5)](_0x44e2fb(0x1a3)+_0x188fbf[_0x44e2fb(0x1bd)],{'cwd':_0x518a1b}):_0x1af494[_0x44e2fb(0x1ba)](_0x44e2fb(0x17f))?DeleteDirAllFile(_0x4270a1,()=>child_process[_0x44e2fb(0x1a5)](_0x44e2fb(0x1a3)+_0x188fbf[_0x44e2fb(0x1bd)],{'cwd':_0x518a1b})):child_process['execSync'](_0x44e2fb(0x1a3)+_0x188fbf[_0x44e2fb(0x1bd)],{'cwd':_0x518a1b}),_0x26edb1(_0x518a1b,_0x188fbf);}else console[_0x44e2fb(0x19e)](_0x44e2fb(0x1b9));}}else console[_0x44e2fb(0x19e)](_0x44e2fb(0x19a));})['catch'](_0x3a184d=>{const _0x2fd364=_0x56dc3d;console[_0x2fd364(0x19e)](_0x3a184d),console[_0x2fd364(0x19e)](_0x2fd364(0x18f));});arguments[_0x56dc3d(0x194)]<0x2&&(console[_0x56dc3d(0x19e)](_0x56dc3d(0x197)),process[_0x56dc3d(0x1a9)](0x0));function _0x26edb1(_0x5d488b,_0x5e9389){const _0x42aa09=_0x56dc3d,_0x28514c=_0x5e9389[_0x42aa09(0x1bb)][_0x51076b],_0x2d6ca2=_0x5d488b+'/'+_0x5e9389[_0x42aa09(0x1b7)];!fs[_0x42aa09(0x17e)](_0x2d6ca2)&&(console[_0x42aa09(0x19e)](_0x42aa09(0x1b6)),process[_0x42aa09(0x1a9)](0x0));child_process[_0x42aa09(0x1a5)](_0x42aa09(0x199),{'cwd':_0x2d6ca2});!fs[_0x42aa09(0x17e)](_0x1100f0+'/node_modules')?(console[_0x42aa09(0x19e)](_0x42aa09(0x1a6)),child_process['execSync'](_0x42aa09(0x1c1),{'cwd':_0x1100f0}),console[_0x42aa09(0x19e)]('yarn\x20install\x20Done!')):console[_0x42aa09(0x19e)](_0x42aa09(0x1a7)+_0x51076b+',please\x20wait...');child_process[_0x42aa09(0x1a5)](_0x42aa09(0x198)+_0x51076b,{'cwd':_0x1100f0,'maxBuffer':0x3b9aca00}),console[_0x42aa09(0x19e)](_0x42aa09(0x1aa));if(fs[_0x42aa09(0x17e)](_0x3f6208)){const _0x2c2d4f=_0x5e9389[_0x42aa09(0x1a2)],_0x3411b3=fs[_0x42aa09(0x193)](_0x3f6208+_0x42aa09(0x1b5));fs[_0x42aa09(0x188)](_0x3f6208+'/'+_0x2c2d4f+_0x42aa09(0x184),_0x3411b3,_0x42aa09(0x19f));_0x1af494[_0x42aa09(0x1ba)](_0x42aa09(0x1b1))&&fs[_0x42aa09(0x188)](_0x3f6208+'/index.html',_0x3411b3,_0x42aa09(0x19f));const _0x40c356=_0x2d6ca2+_0x42aa09(0x1a0);!fs['existsSync'](_0x40c356)&&fs[_0x42aa09(0x180)](_0x40c356);child_process[_0x42aa09(0x1a5)](_0x42aa09(0x1a4)+(_0x28514c[_0x42aa09(0x181)]?_0x28514c['javaGitBranch']:_0x42aa09(0x189)),{'cwd':_0x2d6ca2});const _0x31a912=_0x40c356+'/'+_0x5e9389[_0x42aa09(0x1a2)];DeleteDirAllFile(_0x31a912,()=>{const _0x4a26ee=_0x42aa09;fs[_0x4a26ee(0x180)](_0x31a912),fs['writeFileSync'](_0x31a912+_0x4a26ee(0x184),_0x3411b3,_0x4a26ee(0x19f)),CopyFolder(_0x3f6208+'\x5c'+_0x5e9389[_0x4a26ee(0x1a2)],_0x31a912,()=>{const _0x21edb7=_0x4a26ee;console['log']('Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...','git\x20checkout\x20'+(_0x5e9389['javaGitBranch']?_0x5e9389[_0x21edb7(0x181)]:_0x21edb7(0x189))),setTimeout(()=>{const _0x139903=_0x21edb7;child_process[_0x139903(0x1a5)](_0x139903(0x192),{'cwd':_0x2d6ca2}),console['log'](_0x139903(0x1b3));try{child_process[_0x139903(0x1a5)](_0x139903(0x190)+_0x3b11af+'\x20--no-verify',{'cwd':_0x2d6ca2}),console[_0x139903(0x19e)](_0x139903(0x1ae));}catch(_0x5a02a3){console['log'](_0x139903(0x1c0));}child_process[_0x139903(0x1a5)](_0x139903(0x185),{'cwd':_0x2d6ca2}),console[_0x139903(0x19e)](_0x139903(0x195));},0x3e8);});});}else console['log'](_0x42aa09(0x1be));}};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a10_0x3ae6a0=a10_0x21ab;(function(_0x44c824,_0x48b6f0){const _0x35c0e0=a10_0x21ab,_0x28e9ed=_0x44c824();while(!![]){try{const _0x927a88=parseInt(_0x35c0e0(0xa3))/0x1*(parseInt(_0x35c0e0(0xd3))/0x2)+parseInt(_0x35c0e0(0xc0))/0x3*(parseInt(_0x35c0e0(0xc2))/0x4)+-parseInt(_0x35c0e0(0xc5))/0x5+-parseInt(_0x35c0e0(0xcf))/0x6+-parseInt(_0x35c0e0(0xd7))/0x7*(parseInt(_0x35c0e0(0xcc))/0x8)+parseInt(_0x35c0e0(0x9e))/0x9*(-parseInt(_0x35c0e0(0xbb))/0xa)+parseInt(_0x35c0e0(0x9c))/0xb*(parseInt(_0x35c0e0(0xb9))/0xc);if(_0x927a88===_0x48b6f0)break;else _0x28e9ed['push'](_0x28e9ed['shift']());}catch(_0x1cafff){_0x28e9ed['push'](_0x28e9ed['shift']());}}}(a10_0x318a,0x51315));const path=require(a10_0x3ae6a0(0xba)),fs=require('fs'),os=require('os'),axios=require(a10_0x3ae6a0(0xac)),readline=require('readline'),io=readline[a10_0x3ae6a0(0xbd)]({'input':process[a10_0x3ae6a0(0xb7)],'output':process[a10_0x3ae6a0(0xa8)]}),child_process=require(a10_0x3ae6a0(0xb6));function a10_0x318a(){const _0x496519=['parse','459yOqofc','resolve','Auth\x20NetWork\x20Fail!','/api/auth','status','1eQuQyu','\x5cpackage.json','length','catch','join','stdout','match','http','base64','axios','component_config_content','yarn\x20build:production','网络异常。','data','post','execSync','exports','indexOf','thumbnail_base64','child_process','stdin','readme_content','1255164mCxCLA','path','126530VEAGUg','exit','createInterface','/yarn.lock','../../../.auth','116943zlmFGW','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','44UckpbL','【Error】:window暴露配置缺少info基础信息','readFileSync','2472855kPsqys','\x5cdist\x5cindex.js','/api/file/publish','question','toString','return\x20','existsSync','82440dFiTLc','no\x20message','【Error】:no\x20auth\x20login','10104ygQthI','【Error】:host\x20non-existent','split','defaultSetting','390314OaSwSI','【Error】:请必须包含README.md说明文件','platform','message','133fdUZLe','\x5cREADME.md','【Error】:version\x20non-existent','Auth\x20Fail!','发布失败!根目录缺少‘package.json’文件,无法完成发布。','arch','log','hostname','then','【Error】:请在window下暴露配置信息','110HswkCd'];a10_0x318a=function(){return _0x496519;};return a10_0x318a();}function a10_0x21ab(_0x402b43,_0x3849e5){const _0x318a38=a10_0x318a();return a10_0x21ab=function(_0x21abf7,_0x4cb755){_0x21abf7=_0x21abf7-0x96;let _0x33e581=_0x318a38[_0x21abf7];return _0x33e581;},a10_0x21ab(_0x402b43,_0x3849e5);}module[a10_0x3ae6a0(0xb3)]=_0x54a962=>{const _0x35e578=a10_0x3ae6a0,[_0x1022a8,_0x5a2a1d]=_0x54a962,_0x41bc3b=path[_0x35e578(0xa7)](__dirname,_0x35e578(0xbf));!fs['existsSync'](_0x41bc3b)&&(console[_0x35e578(0x98)](_0x35e578(0xce)),process[_0x35e578(0xbc)](0x0));(!_0x1022a8||_0x1022a8[_0x35e578(0xb4)](_0x35e578(0xaa))===-0x1)&&(console[_0x35e578(0x98)](_0x35e578(0xd0)),process[_0x35e578(0xbc)](0x0));!_0x5a2a1d&&(console[_0x35e578(0x98)](_0x35e578(0xd9)),process[_0x35e578(0xbc)](0x0));const [_0xab919b,_0x14171e]=fs[_0x35e578(0xc4)](_0x41bc3b)[_0x35e578(0xc9)]()[_0x35e578(0xd1)]('/');axios[_0x35e578(0xb1)](_0x1022a8+_0x35e578(0xa1),{'username':_0xab919b,'password':_0x14171e})[_0x35e578(0x9a)](_0x142946=>{const _0x149ca2=_0x35e578;if(_0x142946[_0x149ca2(0xb0)][_0x149ca2(0xa2)]){const _0x261b2f=path[_0x149ca2(0x9f)]('./');console[_0x149ca2(0x98)]('Please\x20wait,\x20build\x20...');fs['existsSync'](_0x261b2f+_0x149ca2(0xbe))?child_process[_0x149ca2(0xb2)](_0x149ca2(0xae),{'cwd':_0x261b2f}):child_process['execSync']('npm\x20run\x20build:production',{'cwd':_0x261b2f});const _0x2c5d70=_0x261b2f+_0x149ca2(0xc6),_0x351d13=_0x261b2f+_0x149ca2(0xa4),_0x243887=_0x261b2f+_0x149ca2(0xd8),_0x8dceba=_0x261b2f+'\x5cthumbnail.png',_0x2211a5=[os[_0x149ca2(0x99)](),os[_0x149ca2(0xd5)](),os[_0x149ca2(0x97)](),new Date()[_0x149ca2(0xc9)]()],_0x3bb609=JSON[_0x149ca2(0x9d)](fs['readFileSync'](path[_0x149ca2(0xa7)](__dirname,'../../../package.json'))[_0x149ca2(0xc9)]()),{version:_0x1c6d70}=_0x3bb609,_0x571c18={'username':_0xab919b,'cmd_version':_0x1c6d70,'hostname':os[_0x149ca2(0x99)](),'platform':os['platform']()};if(fs[_0x149ca2(0xcb)](_0x351d13)){if(fs['existsSync'](_0x2c5d70)){_0x571c18['package_version']=_0x5a2a1d?_0x5a2a1d:0x0,_0x571c18['package_content']=fs[_0x149ca2(0xc4)](_0x2c5d70)[_0x149ca2(0xc9)]();const _0x10a27c=fs[_0x149ca2(0xc4)](_0x2c5d70)[_0x149ca2(0xc9)](),_0x507e96=_0x10a27c[_0x149ca2(0xa9)](/(window\[).+?(\.componentKey|.+]={)/img);if(_0x507e96&&_0x507e96[_0x149ca2(0xa5)]){const _0x357b01=_0x10a27c[_0x149ca2(0xa9)](/componentKey.+(info:\s{0,}{)/img);if(_0x357b01&&_0x357b01[_0x149ca2(0xa5)]){let _0x5668db='{';const _0x52e188=_0x10a27c[_0x149ca2(0xd1)](_0x357b01[0x0])[0x1];for(let _0x48f8e8=0x0;_0x48f8e8<_0x52e188[_0x149ca2(0xa5)];_0x48f8e8++){_0x5668db+=_0x52e188[_0x48f8e8];if(_0x52e188[_0x48f8e8]==='}')try{const _0x3ee21c=new Function(_0x149ca2(0xca)+_0x5668db)();_0x571c18['component_config_content']={..._0x3ee21c,'defaultSetting':{}};}catch(_0x457f3d){}}}else console[_0x149ca2(0x98)](_0x149ca2(0xc3)),process[_0x149ca2(0xbc)](0x0);const _0x51ada9=_0x10a27c['match'](/componentKey.+(settings:\s{0,}{)/img);if(_0x51ada9&&_0x51ada9[_0x149ca2(0xa5)]){let _0x31da8a='{';const _0x410f62=_0x10a27c[_0x149ca2(0xd1)](_0x51ada9[0x0])[0x1];for(let _0x596b02=0x0;_0x596b02<_0x410f62[_0x149ca2(0xa5)];_0x596b02++){_0x31da8a+=_0x410f62[_0x596b02];if(_0x410f62[_0x596b02]==='}')try{const _0x571fb8=new Function('return\x20'+_0x31da8a)();_0x571c18[_0x149ca2(0xad)][_0x149ca2(0xd2)]=_0x571fb8;}catch(_0x31a16e){}}_0x571c18[_0x149ca2(0xad)]=JSON['stringify'](_0x571c18['component_config_content']);}else console['log'](_0x149ca2(0xc3)),process[_0x149ca2(0xbc)](0x0);}else console[_0x149ca2(0x98)](_0x149ca2(0x9b)),process[_0x149ca2(0xbc)](0x0);fs[_0x149ca2(0xcb)](_0x243887)?_0x571c18[_0x149ca2(0xb8)]=fs[_0x149ca2(0xc4)](_0x243887)[_0x149ca2(0xc9)]():(console['log'](_0x149ca2(0xd4)),process[_0x149ca2(0xbc)](0x0));if(!fs[_0x149ca2(0xcb)](_0x8dceba))console[_0x149ca2(0x98)]('【Error】:组件根目录必须包含thumbnail.png缩略图片'),process[_0x149ca2(0xbc)](0x0);else{const _0x30a7fe=fs[_0x149ca2(0xc4)](_0x8dceba),_0x25ac4e=Buffer['from'](_0x30a7fe)[_0x149ca2(0xc9)](_0x149ca2(0xab));_0x571c18[_0x149ca2(0xb5)]=_0x25ac4e;}io[_0x149ca2(0xc8)]('请输入此次提交信息,按Enter确认:',function(_0x364b73){const _0x3f8946=_0x149ca2;_0x571c18[_0x3f8946(0xd6)]=_0x364b73||_0x3f8946(0xcd),axios[_0x3f8946(0xb1)](_0x1022a8+_0x3f8946(0xc7),_0x571c18)[_0x3f8946(0x9a)](_0x39b834=>{const _0x3f8c57=_0x3f8946;console['log'](_0x39b834['data']['message']),process[_0x3f8c57(0xbc)](0x0);})[_0x3f8946(0xa6)](_0x30e008=>{const _0x2e789b=_0x3f8946;console[_0x2e789b(0x98)](_0x30e008),console[_0x2e789b(0x98)](_0x2e789b(0xaf)),process[_0x2e789b(0xbc)](0x0);});});}else console[_0x149ca2(0x98)](_0x149ca2(0xc1)),process['exit'](0x0);}else console[_0x149ca2(0x98)](_0x149ca2(0x96)),process['exit'](0x0);}else console[_0x149ca2(0x98)](_0x149ca2(0xda));})[_0x35e578(0xa6)](_0x6fa4de=>{const _0x25c56f=_0x35e578;console[_0x25c56f(0x98)](_0x6fa4de),console[_0x25c56f(0x98)](_0x25c56f(0xa0));});};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a11_0x4e1543=a11_0x3aa4;(function(_0x4e3f00,_0x5e1144){const _0x5eb03d=a11_0x3aa4,_0x40357b=_0x4e3f00();while(!![]){try{const _0x1d333f=-parseInt(_0x5eb03d(0xfa))/0x1+-parseInt(_0x5eb03d(0xf4))/0x2+parseInt(_0x5eb03d(0xd3))/0x3+parseInt(_0x5eb03d(0xed))/0x4*(parseInt(_0x5eb03d(0xe4))/0x5)+parseInt(_0x5eb03d(0xee))/0x6*(-parseInt(_0x5eb03d(0xf2))/0x7)+-parseInt(_0x5eb03d(0xe8))/0x8*(parseInt(_0x5eb03d(0xe2))/0x9)+parseInt(_0x5eb03d(0xf3))/0xa;if(_0x1d333f===_0x5e1144)break;else _0x40357b['push'](_0x40357b['shift']());}catch(_0x2fc5b1){_0x40357b['push'](_0x40357b['shift']());}}}(a11_0x1212,0xb0e51));const https=require(a11_0x4e1543(0xf5)),fs=require('fs'),path=require(a11_0x4e1543(0xe1)),{CONFIG_FILE_HOST}=require(a11_0x4e1543(0xd4)),REGISTRY={'eslint':{'remoteDir':'eslint','files':['.eslintrc.js',a11_0x4e1543(0xfd)]},'prettier':{'remoteDir':a11_0x4e1543(0xf1),'files':[a11_0x4e1543(0xe3),'.prettierignore']},'jjb_script':{'remoteDir':a11_0x4e1543(0xf6),'localDir':a11_0x4e1543(0xf6),'files':[a11_0x4e1543(0xd6),'config.js',a11_0x4e1543(0xf9),a11_0x4e1543(0xe0),a11_0x4e1543(0xd8)]},'babel':{'remoteDir':'babel','files':[a11_0x4e1543(0xde)]},'microAppPackage':{'remoteDir':a11_0x4e1543(0xdf),'files':[a11_0x4e1543(0xd9)]}},root_path=path[a11_0x4e1543(0xea)]('./');function a11_0x3aa4(_0x208240,_0x1db1f4){const _0x1212f4=a11_0x1212();return a11_0x3aa4=function(_0x3aa428,_0x3d5c01){_0x3aa428=_0x3aa428-0xd3;let _0x342593=_0x1212f4[_0x3aa428];return _0x342593;},a11_0x3aa4(_0x208240,_0x1db1f4);}function recursion(_0x51a2c9,_0x455d02,_0x336989){const _0x255dbd=a11_0x4e1543,_0x475d84=_0x51a2c9[_0x255dbd(0xe6)][_0x455d02];https[_0x255dbd(0xec)](CONFIG_FILE_HOST+'/'+(_0x51a2c9[_0x255dbd(0xda)]?_0x51a2c9[_0x255dbd(0xda)]+'/':'')+_0x475d84+_0x255dbd(0xe5)+new Date()[_0x255dbd(0xdd)](),_0x9e02c4=>{const _0xec968=_0x255dbd;let _0x571280='';_0x9e02c4['on'](_0xec968(0xe9),_0x379152=>{_0x571280+=_0x379152;}),_0x9e02c4['on'](_0xec968(0xd5),()=>{const _0x47a84e=_0xec968;_0x571280&&(fs[_0x47a84e(0xf8)](root_path+'/'+(_0x51a2c9[_0x47a84e(0xf7)]?_0x51a2c9['localDir']+'/':'')+_0x475d84,_0x571280),console[_0x47a84e(0xe7)](_0x475d84+_0x47a84e(0xfc)),_0x455d02<_0x51a2c9[_0x47a84e(0xe6)][_0x47a84e(0xfb)]-0x1?(_0x455d02++,recursion(_0x51a2c9,_0x455d02,_0x336989)):(console[_0x47a84e(0xe7)](_0x47a84e(0xd7)),_0x336989&&_0x336989()));})['on']('error',_0xc971c1=>{const _0xa32c15=_0xec968;console[_0xa32c15(0xe7)](_0xa32c15(0xf0),_0xc971c1);});});}function a11_0x1212(){const _0x44c768=['package.json','remoteDir','keys','\x20file,\x20available:[','getTime','.babelrc','micro.app.package.json','server.js','path','799371UbBZcB','.prettierrc.js','106435ExRXUW','?v=','files','log','40VaTImC','data','resolve','join','get','124psaROD','631518ucTeJa','exit','http\x20error\x20','prettier','63ZELKKk','14323180mTgabP','225342GBUBkr','https','jjb.script','localDir','writeFileSync','proxy.js','511853zongDJ','length','\x20file\x20Success!','.eslintignore','1944726cgLHEV','../cmd.install/config','end','build.js','All\x20Finish!','utils.js'];a11_0x1212=function(){return _0x44c768;};return a11_0x1212();}module['exports']=_0x8768b1=>{const _0x18b5f9=a11_0x4e1543;!Object[_0x18b5f9(0xdb)](REGISTRY)['includes'](_0x8768b1)&&(console[_0x18b5f9(0xe7)]('【Error】:no\x20'+_0x8768b1+_0x18b5f9(0xdc)+Object[_0x18b5f9(0xdb)](REGISTRY)[_0x18b5f9(0xeb)]('/')+']'),process[_0x18b5f9(0xef)](0x0)),recursion(REGISTRY[_0x8768b1],0x0);};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a12_0x779a49=a12_0x410d;(function(_0x1cce6e,_0x3a8b3f){const _0x71ce7d=a12_0x410d,_0x185327=_0x1cce6e();while(!![]){try{const _0xbcdf56=parseInt(_0x71ce7d(0xca))/0x1*(parseInt(_0x71ce7d(0xdd))/0x2)+parseInt(_0x71ce7d(0xd7))/0x3*(-parseInt(_0x71ce7d(0xcd))/0x4)+-parseInt(_0x71ce7d(0xd0))/0x5*(-parseInt(_0x71ce7d(0xda))/0x6)+parseInt(_0x71ce7d(0xcf))/0x7*(-parseInt(_0x71ce7d(0xc6))/0x8)+parseInt(_0x71ce7d(0xdb))/0x9+-parseInt(_0x71ce7d(0xc8))/0xa*(parseInt(_0x71ce7d(0xdc))/0xb)+parseInt(_0x71ce7d(0xcb))/0xc*(parseInt(_0x71ce7d(0xcc))/0xd);if(_0xbcdf56===_0x3a8b3f)break;else _0x185327['push'](_0x185327['shift']());}catch(_0x1e0da6){_0x185327['push'](_0x185327['shift']());}}}(a12_0x4338,0xbc655));const axios=require(a12_0x779a49(0xc5)),{getApiHost}=require('../cmd.install/config');function a12_0x410d(_0x27d63f,_0x437e82){const _0x4338c3=a12_0x4338();return a12_0x410d=function(_0x410d74,_0x15f2f2){_0x410d74=_0x410d74-0xc5;let _0xf879b7=_0x4338c3[_0x410d74];return _0xf879b7;},a12_0x410d(_0x27d63f,_0x437e82);}function a12_0x4338(){const _0x14db2c=['exports','catch','status','3qNKxuu','/api/file/config','port','336xTxPcj','6281721SNJqgJ','10799294cMauDQ','2ijVRLt','post','axios','8enLPxE','log','10jpuzUB','data','922802HSfmha','11620932HYDwAZ','13nqNDHZ','1222796pEhsLJ','then','5757052xEHKyT','26105rGtIFa','components','网络异常。','exit'];a12_0x4338=function(){return _0x14db2c;};return a12_0x4338();}module[a12_0x779a49(0xd4)]=_0x27a4cf=>{const _0x33470f=a12_0x779a49;axios[_0x33470f(0xde)](getApiHost()+_0x33470f(0xd8))[_0x33470f(0xce)](_0x547869=>{const _0x308c0b=_0x33470f;if(_0x547869['data'][_0x308c0b(0xd6)]){const _0x288c6c=_0x547869[_0x308c0b(0xc9)][_0x308c0b(0xc9)];_0x27a4cf==='server'&&(console['log'](_0x288c6c['host']),console['log'](_0x288c6c[_0x308c0b(0xd9)])),_0x27a4cf===_0x308c0b(0xd1)&&console[_0x308c0b(0xc7)](_0x288c6c['components']);}else console[_0x308c0b(0xc7)](_0x547869[_0x308c0b(0xc9)]['message']);process[_0x308c0b(0xd3)](0x0);})[_0x33470f(0xd5)](()=>{const _0x1849d7=_0x33470f;console['log'](_0x1849d7(0xd2)),process[_0x1849d7(0xd3)](0x0);});};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a13_0x88d425=a13_0x228c;(function(_0x2e1ee0,_0x138dbf){const _0x257339=a13_0x228c,_0x3afd3e=_0x2e1ee0();while(!![]){try{const _0x50bfda=-parseInt(_0x257339(0x1f2))/0x1+parseInt(_0x257339(0x1f0))/0x2*(-parseInt(_0x257339(0x1fb))/0x3)+-parseInt(_0x257339(0x1fa))/0x4+parseInt(_0x257339(0x1ee))/0x5*(parseInt(_0x257339(0x1e5))/0x6)+parseInt(_0x257339(0x1fe))/0x7+-parseInt(_0x257339(0x1e8))/0x8*(parseInt(_0x257339(0x1ff))/0x9)+parseInt(_0x257339(0x1e6))/0xa;if(_0x50bfda===_0x138dbf)break;else _0x3afd3e['push'](_0x3afd3e['shift']());}catch(_0x58ae2b){_0x3afd3e['push'](_0x3afd3e['shift']());}}}(a13_0x56e0,0x6ac62));const fs=require('fs'),path=require(a13_0x88d425(0x1e9)),readline=require(a13_0x88d425(0x1fd)),io=readline[a13_0x88d425(0x1e4)]({'input':process[a13_0x88d425(0x1eb)],'output':process['stdout']});let f_total=0x0;function a13_0x228c(_0x37d86d,_0x42f839){const _0x56e0a6=a13_0x56e0();return a13_0x228c=function(_0x228c3c,_0x32844a){_0x228c3c=_0x228c3c-0x1e3;let _0x5b2b87=_0x56e0a6[_0x228c3c];return _0x5b2b87;},a13_0x228c(_0x37d86d,_0x42f839);}module[a13_0x88d425(0x202)]=function(){const _0x36e147=a13_0x88d425,_0x549c52=path[_0x36e147(0x1f8)]('./');io[_0x36e147(0x200)](_0x36e147(0x201),function(_0x1c2e7e){const _0x58aeb8=_0x36e147;if(_0x1c2e7e[_0x58aeb8(0x1e7)]()==='y')console[_0x58aeb8(0x1f7)](_0x58aeb8(0x1f5)),setTimeout(()=>{setTimeout(()=>{const _0xa40c2e=a13_0x228c;console[_0xa40c2e(0x1f9)](),exec(_0x549c52),setTimeout(()=>{const _0x2012b4=_0xa40c2e;console['log'](_0x2012b4(0x1f4)),console[_0x2012b4(0x1f9)](),process[_0x2012b4(0x1ea)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x1c2e7e[_0x58aeb8(0x1e7)]()==='n'?(console[_0x58aeb8(0x1f7)](_0x58aeb8(0x1fc)),process[_0x58aeb8(0x1ea)](0x0)):(console['log'](_0x58aeb8(0x1f3)),process[_0x58aeb8(0x1ea)](0x0));});};function exec(_0x25a115){const _0x4c11d1=a13_0x88d425;if(fs[_0x4c11d1(0x1f6)](_0x25a115)){const _0x276c83=fs['readdirSync'](_0x25a115);for(let _0x55d533=0x0;_0x55d533<_0x276c83[_0x4c11d1(0x1ec)];_0x55d533++){const _0x52faef=_0x276c83[_0x55d533],_0x17fdb2=_0x25a115+'/'+_0x52faef;try{fs['statSync'](_0x17fdb2)[_0x4c11d1(0x1ef)]()?(exec(_0x17fdb2),fs[_0x4c11d1(0x1ed)](_0x17fdb2,{'recursive':!![]}),console['log'](_0x4c11d1(0x1f1)+_0x17fdb2)):(fs[_0x4c11d1(0x1e3)](_0x17fdb2),console[_0x4c11d1(0x1f7)]('删除文件:'+_0x17fdb2));}catch(_0x2362dd){console[_0x4c11d1(0x1f7)]('删除异常:'+_0x17fdb2);}}}}function a13_0x56e0(){const _0x2639a8=['60nOEwHE','10957950bJDkPP','trim','808xYpxYm','path','exit','stdin','length','rmdirSync','219970yMpdTU','isDirectory','2266qtZoEA','删除文件夹:','155447YnsWLM','无效操作。','删除完成。','正在计算项目数,请稍等...','existsSync','log','resolve','clear','403836kBzjkG','1875uTcwzf','取消删除。','readline','298123wGmNHL','15723GPhjsz','question','是否确认删除?删除后不可恢复![y/n]:','exports','unlinkSync','createInterface'];a13_0x56e0=function(){return _0x2639a8;};return a13_0x56e0();}
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a14_0x575e94=a14_0xd3a8;(function(_0x368ef0,_0x2e18de){const _0x818a8b=a14_0xd3a8,_0x3ca38d=_0x368ef0();while(!![]){try{const _0x5d7e53=-parseInt(_0x818a8b(0x1ed))/0x1+parseInt(_0x818a8b(0x1d9))/0x2+parseInt(_0x818a8b(0x1f0))/0x3*(-parseInt(_0x818a8b(0x1ea))/0x4)+-parseInt(_0x818a8b(0x1e7))/0x5+parseInt(_0x818a8b(0x1e6))/0x6*(-parseInt(_0x818a8b(0x1e0))/0x7)+-parseInt(_0x818a8b(0x1e3))/0x8*(-parseInt(_0x818a8b(0x1de))/0x9)+parseInt(_0x818a8b(0x1d8))/0xa;if(_0x5d7e53===_0x2e18de)break;else _0x3ca38d['push'](_0x3ca38d['shift']());}catch(_0x3d60ea){_0x3ca38d['push'](_0x3ca38d['shift']());}}}(a14_0x8017,0x373c0));const path=require(a14_0x575e94(0x1e2)),fs=require('fs'),axios=require(a14_0x575e94(0x1ef)),{getApiHost}=require(a14_0x575e94(0x1dd));module[a14_0x575e94(0x1dc)]=()=>{const _0x4d8e96=a14_0x575e94,_0x623761=path['resolve']('./'),_0x5ee4d2=_0x623761+_0x4d8e96(0x1f2);if(fs[_0x4d8e96(0x1f3)](_0x5ee4d2)){const _0x2f13b3=JSON[_0x4d8e96(0x1df)](fs[_0x4d8e96(0x1ec)](_0x5ee4d2)[_0x4d8e96(0x1e5)]()),{name:_0x2d6254}=_0x2f13b3;axios[_0x4d8e96(0x1db)](getApiHost()+_0x4d8e96(0x1da),{'package_name':_0x2d6254})[_0x4d8e96(0x1e4)](_0x254d37=>{const _0x70d0a4=_0x4d8e96;_0x254d37[_0x70d0a4(0x1e9)][_0x70d0a4(0x1ee)]?console['log'](_0x254d37[_0x70d0a4(0x1e9)][_0x70d0a4(0x1e9)]):console[_0x70d0a4(0x1f1)](_0x254d37[_0x70d0a4(0x1e9)][_0x70d0a4(0x1eb)]),process['exit'](0x0);})[_0x4d8e96(0x1e1)](()=>{console['log']('网络异常。'),process['exit'](0x0);});}else console[_0x4d8e96(0x1f1)]('查询失败!根目录缺少‘package.json’文件,无法完成查询。'),process[_0x4d8e96(0x1e8)](0x0);};function a14_0xd3a8(_0xfbc0a6,_0x336b01){const _0x8017bf=a14_0x8017();return a14_0xd3a8=function(_0xd3a8b3,_0xe88216){_0xd3a8b3=_0xd3a8b3-0x1d8;let _0x7a0cb6=_0x8017bf[_0xd3a8b3];return _0x7a0cb6;},a14_0xd3a8(_0xfbc0a6,_0x336b01);}function a14_0x8017(){const _0x2a258b=['exports','../cmd.install/config','117DDkmQm','parse','7lYBjZs','catch','path','255224cqTKNt','then','toString','388038YoChaM','2133100JcRXoO','exit','data','4vGwIim','message','readFileSync','194358rKEVcZ','status','axios','300624BmoGzM','log','\x5cpackage.json','existsSync','2277820RGSoWJ','739156BEIdvz','/api/file/version','post'];a14_0x8017=function(){return _0x2a258b;};return a14_0x8017();}
|
package/src/old/cli.init.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a15_0x2900fd=a15_0x5f17;function a15_0x5f17(_0xb3dc91,_0x173ed2){const _0x28a76b=a15_0x28a7();return a15_0x5f17=function(_0x5f17ac,_0x52ad98){_0x5f17ac=_0x5f17ac-0x17b;let _0x18a2c9=_0x28a76b[_0x5f17ac];return _0x18a2c9;},a15_0x5f17(_0xb3dc91,_0x173ed2);}(function(_0x88e417,_0x3fa532){const _0x509b11=a15_0x5f17,_0x3e1137=_0x88e417();while(!![]){try{const _0x20ddf8=parseInt(_0x509b11(0x188))/0x1+parseInt(_0x509b11(0x18e))/0x2*(-parseInt(_0x509b11(0x17b))/0x3)+-parseInt(_0x509b11(0x185))/0x4+parseInt(_0x509b11(0x190))/0x5+-parseInt(_0x509b11(0x187))/0x6+parseInt(_0x509b11(0x181))/0x7*(parseInt(_0x509b11(0x17f))/0x8)+parseInt(_0x509b11(0x18d))/0x9;if(_0x20ddf8===_0x3fa532)break;else _0x3e1137['push'](_0x3e1137['shift']());}catch(_0x1bc1c6){_0x3e1137['push'](_0x3e1137['shift']());}}}(a15_0x28a7,0xdb123));const path=require(a15_0x2900fd(0x17d)),readline=require(a15_0x2900fd(0x18a)),{f_file_copy}=require(a15_0x2900fd(0x18c)),fs=require('fs');function a15_0x28a7(){const _0x4880f1=['3190955YnlXGm','162390iWxxbg','\x5cjjb.config.json','path','\x5ccli.init','8xQdseZ','resolve','1965383WRulpV','\x5cwebstorm.config.js','log','\x5cpackage.json','6018608XEyUIo','初始化完成!','7590204htdOot','514922FVRmqz','初始化失败,文件已存在!','readline','exit','./cli.install/tools','22046751QOzILy','8mmwGQZ','existsSync'];a15_0x28a7=function(){return _0x4880f1;};return a15_0x28a7();}module['exports']=()=>{const _0x337f84=a15_0x2900fd,_0x5c709d=path[_0x337f84(0x180)]('./');!fs[_0x337f84(0x18f)](_0x5c709d+'\x5cjjb.script')&&!fs[_0x337f84(0x18f)](_0x5c709d+'\x5cpublic')&&!fs[_0x337f84(0x18f)](_0x5c709d+_0x337f84(0x17c))&&!fs['existsSync'](_0x5c709d+_0x337f84(0x184))&&!fs[_0x337f84(0x18f)](_0x5c709d+_0x337f84(0x182))?(f_file_copy(__dirname+_0x337f84(0x17e),_0x5c709d),console[_0x337f84(0x183)](_0x337f84(0x186)),process[_0x337f84(0x18b)](0x0)):(console['log'](_0x337f84(0x189)),process[_0x337f84(0x18b)](0x0));};
|
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a16_0x73930d=a16_0x2fd8;function a16_0x5e06(){const _0x35635=['\x5cRejectText\x5cindex.js','common/website','\x5cFileUploader\x5cindex.js','COMMON_CONTENT_SPA_REPLACE','jjbAssembly_','jjb-common/color','\x5cImageCropper\x5cindex.js','CLI_DVA_ROUTER_PATH','common/color','CLI_DVA_ROUTER_SAAS','\x5cPageHeaderBar\x5cindex.js','138367JxYxXM','\x5cImageUploader\x5cindex.js','TEMPLATE_FOLDER','4kaaPZh','COMPONENTS_CONTENT_REPLACE','jjb-common/crypto','1025700uwZNQP','CLOUD_PROJECT','\x5cEditor\x5cindex.js','\x5ctools\x5cindex.js','common/http','CLI_DVA_REGISTER_SPA','221921rzJokU','jjb-common/http','CLI_DVA_REGISTER_PATH','return\x20process.env;','\x5c..\x5ccli.dva.register.saas.txt','jjb-react-admin-component','\x5c..\x5ccli.dva.router.spa.txt','e9njpBd1nS_LREN8GFpR','hLqARY89CN6fUD3yg4NL','24RCFBbf','G4HJRsHr9D7Ssmixegw2','GIT_TEMP_DIR','gPSit8aJsLVmNzuQ5Cy4','now','d4wQ7dzEjYPsgVbKnYei','COMMON_CONTENT_NOR_REPLACE','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','common/crypto','4hlBbzD','tmpdir','GIT_HOST','5871415IJLVrE','http://192.168.1.242:10985','\x5c..\x5ccli.dva.register.spa.txt','\x5cdva\x5cautomatic\x5crouter.js','52506kooEpc','jjb-common/website','common/tools','FT3pKzxpRynFkmddJ9Bs','\x5cRouterContainer\x5cindex.js','components','691791jjqwjj','jjb-common/tools','1854340BYFvgy','12IDNJhs'];a16_0x5e06=function(){return _0x35635;};return a16_0x5e06();}(function(_0x432606,_0x393423){const _0x3f2807=a16_0x2fd8,_0x3a8326=_0x432606();while(!![]){try{const _0x5661be=parseInt(_0x3f2807(0x101))/0x1*(parseInt(_0x3f2807(0xe5))/0x2)+parseInt(_0x3f2807(0xf2))/0x3*(-parseInt(_0x3f2807(0x104))/0x4)+-parseInt(_0x3f2807(0x107))/0x5+-parseInt(_0x3f2807(0xf5))/0x6*(parseInt(_0x3f2807(0x10d))/0x7)+parseInt(_0x3f2807(0xdc))/0x8*(parseInt(_0x3f2807(0xec))/0x9)+-parseInt(_0x3f2807(0xf4))/0xa+parseInt(_0x3f2807(0xe8))/0xb;if(_0x5661be===_0x393423)break;else _0x3a8326['push'](_0x3a8326['shift']());}catch(_0x276f76){_0x3a8326['push'](_0x3a8326['shift']());}}}(a16_0x5e06,0x23040));function a16_0x2fd8(_0x421bd9,_0x48f7bc){const _0x5e069b=a16_0x5e06();return a16_0x2fd8=function(_0x2fd8db,_0x3356a2){_0x2fd8db=_0x2fd8db-0xdc;let _0x486cc6=_0x5e069b[_0x2fd8db];return _0x486cc6;},a16_0x2fd8(_0x421bd9,_0x48f7bc);}const os=require('os');exports[a16_0x73930d(0xe7)]=a16_0x73930d(0xe9),exports[a16_0x73930d(0xde)]=a16_0x73930d(0xfa)+Date[a16_0x73930d(0xe0)](),exports[a16_0x73930d(0x108)]={'common':{'token':a16_0x73930d(0xdd),'projectId':0x117},'react-admin-component':{'token':a16_0x73930d(0xef),'projectId':0x154},'jjb-dva-runtime':{'token':a16_0x73930d(0x115),'projectId':0x23b},'jjb-common-lib':{'token':a16_0x73930d(0x114),'projectId':0x23c},'jjb-common-decorator':{'token':a16_0x73930d(0xdf),'projectId':0x23e},'vue-unisass-component':{'token':a16_0x73930d(0xe1),'projectId':0x153}},exports[a16_0x73930d(0x103)]=os[a16_0x73930d(0xe6)]()+'\x5c'+exports[a16_0x73930d(0xde)],exports['CLI_DVA_ROUTER_SPA']=__dirname+a16_0x73930d(0x113),exports[a16_0x73930d(0xff)]=__dirname+'\x5c..\x5ccli.dva.router.saas.txt',exports[a16_0x73930d(0x10c)]=__dirname+a16_0x73930d(0xea),exports['CLI_DVA_REGISTER_SAAS']=__dirname+a16_0x73930d(0x111),exports[a16_0x73930d(0xfd)]=a16_0x73930d(0xeb),exports[a16_0x73930d(0x10f)]='\x5cdva\x5cautomatic\x5cregister.js',exports[a16_0x73930d(0xe2)]=[{'path':'\x5ctools\x5cindex.js','replace':[[a16_0x73930d(0xf1),a16_0x73930d(0x112)]]},{'path':'\x5cwebsite\x5cindex.js','replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a16_0x73930d(0xe3)],['components',a16_0x73930d(0x112)]]}],exports[a16_0x73930d(0xf9)]=[{'path':'\x5ctools\x5cindex.js','replace':[['return\x20__planA();',a16_0x73930d(0x110)]]}],exports['COMMON_CONTENT_MICRO_REPLACE']=[{'path':a16_0x73930d(0x10a),'replace':[['return\x20__planA();','return\x20process.env.app;']]}],exports[a16_0x73930d(0x105)]=[{'path':a16_0x73930d(0x109),'replace':[[a16_0x73930d(0x10b),a16_0x73930d(0x10e)],[a16_0x73930d(0xe4),a16_0x73930d(0x106)],[a16_0x73930d(0xee),a16_0x73930d(0xf3)]]},{'path':a16_0x73930d(0xf6),'replace':[['common/color',a16_0x73930d(0xfb)]]},{'path':'\x5cRouterMenu\x5cindex.js','replace':[[a16_0x73930d(0xee),a16_0x73930d(0xf3)]]},{'path':a16_0x73930d(0xf8),'replace':[[a16_0x73930d(0x10b),a16_0x73930d(0x10e)],[a16_0x73930d(0xee),a16_0x73930d(0xf3)]]},{'path':a16_0x73930d(0xfc),'replace':[[a16_0x73930d(0x10b),a16_0x73930d(0x10e)],['common/tools',a16_0x73930d(0xf3)]]},{'path':a16_0x73930d(0x102),'replace':[[a16_0x73930d(0x10b),'jjb-common/http'],['common/tools',a16_0x73930d(0xf3)]]},{'path':a16_0x73930d(0x100),'replace':[[a16_0x73930d(0xfe),a16_0x73930d(0xfb)]]},{'path':a16_0x73930d(0xf0),'replace':[[a16_0x73930d(0xee),a16_0x73930d(0xf3)]]},{'path':'\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','replace':[[a16_0x73930d(0xf7),a16_0x73930d(0xed)],[a16_0x73930d(0xee),a16_0x73930d(0xf3)]]}];
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a17_0x309371=a17_0x49a6;function a17_0x49a6(_0x6f339b,_0x15898d){const _0x23b51d=a17_0x23b5();return a17_0x49a6=function(_0x49a67f,_0x850f9a){_0x49a67f=_0x49a67f-0x1b4;let _0x21a5ad=_0x23b51d[_0x49a67f];return _0x21a5ad;},a17_0x49a6(_0x6f339b,_0x15898d);}(function(_0x30ab25,_0x235235){const _0x3999af=a17_0x49a6,_0x9f9838=_0x30ab25();while(!![]){try{const _0x211c29=-parseInt(_0x3999af(0x1c2))/0x1*(-parseInt(_0x3999af(0x1bc))/0x2)+-parseInt(_0x3999af(0x1e6))/0x3+-parseInt(_0x3999af(0x1ce))/0x4+parseInt(_0x3999af(0x1cf))/0x5+-parseInt(_0x3999af(0x1c1))/0x6*(-parseInt(_0x3999af(0x1c8))/0x7)+-parseInt(_0x3999af(0x1ef))/0x8*(parseInt(_0x3999af(0x1f4))/0x9)+parseInt(_0x3999af(0x1dc))/0xa*(parseInt(_0x3999af(0x1e4))/0xb);if(_0x211c29===_0x235235)break;else _0x9f9838['push'](_0x9f9838['shift']());}catch(_0x467872){_0x9f9838['push'](_0x9f9838['shift']());}}}(a17_0x23b5,0x3b95e));function a17_0x23b5(){const _0x333b38=['1.0.0','exports','import_list','1609348bBaBOB','656395OzGXXA','rmdirSync','spa','projectType','now','\x20}\x20from\x20\x27./','forEach','_zip','pure_name','name','map','\x5cdva\x5cautomatic','.idea','661510lPXQbg','index.js','zip','mkdirSync','exit','path','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','writeFileSync','99LhYPjr','installTarget','862422NSQJsT','includes','.gitignore','react-admin-component','【Error】:安装失败,src目录不存在。','replace','readdirSync','uncompress','src','296WXyDwx','length','log','node_modules','pipe','112023pEwgbe','filter','micro-spa','【jjb-cmd】:install命令执行完成,用时','setting.json','multi','\x5cindex.js','unlinkSync','join','export\x20{\x20default\x20as\x20','src\x5c','6jUewqi','vue-unisass-component','importList','【Error】:安装失败,node_modules目录不存在。','compress','2802HctFJL','94789oGgAQY','push','installResources','toString','RouterContainer','existsSync','5747DNrjmM','compressing','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;'];a17_0x23b5=function(){return _0x333b38;};return a17_0x23b5();}const fs=require('fs'),path=require(a17_0x309371(0x1e1)),request=require('request'),compressing=require(a17_0x309371(0x1c9)),{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('./tools'),{TEMPLATE_FOLDER,COMMON_CONTENT_SPA_REPLACE,CLI_DVA_ROUTER_PATH,CLI_DVA_REGISTER_PATH,CLI_DVA_ROUTER_SPA,CLI_DVA_REGISTER_SPA,CLI_DVA_ROUTER_SAAS,CLI_DVA_REGISTER_SAAS,COMMON_CONTENT_MICRO_REPLACE,COMMON_CONTENT_NOR_REPLACE,COMPONENTS_CONTENT_REPLACE}=require('./config'),start_time=Date[a17_0x309371(0x1d3)]();module[a17_0x309371(0x1cc)]=()=>{const _0xbd21d0=a17_0x309371,_0x3ba2f6=path['resolve']('./'),_0x920d71=[_0x3ba2f6,_0xbd21d0(0x1bb)][_0xbd21d0(0x1b9)]('\x5c'),_0x5179e3=[_0x3ba2f6,_0xbd21d0(0x1f2)]['join']('\x5c'),_0x2d63b0=[_0x3ba2f6,'package.json'][_0xbd21d0(0x1b9)]('\x5c');if(f_scan_jjb_config_json(_0x3ba2f6)){const _0xe3852a=f_scan_jjb_config_json_rules(_0x3ba2f6);_0xe3852a[_0xbd21d0(0x1e5)]===_0xbd21d0(0x1f2)?!fs[_0xbd21d0(0x1c7)](_0x5179e3)?(console[_0xbd21d0(0x1f1)](_0xbd21d0(0x1bf)),process[_0xbd21d0(0x1e0)](0x0)):console[_0xbd21d0(0x1f1)](_0xbd21d0(0x1e2)):!fs['existsSync'](_0x920d71)&&(console[_0xbd21d0(0x1f1)](_0xbd21d0(0x1ea)),process['exit'](0x0));fs[_0xbd21d0(0x1df)](TEMPLATE_FOLDER),f_pull_git_repository(_0xe3852a[_0xbd21d0(0x1c4)])['map'](_0x4f2b4f=>{const _0x5e3c61=_0xbd21d0,_0x31c192=fs['createWriteStream'](_0x4f2b4f[_0x5e3c61(0x1e1)]);request(_0x4f2b4f['repository'])[_0x5e3c61(0x1f3)](_0x31c192)['on']('close',()=>{const _0x1076be=_0x5e3c61;fs['mkdirSync'](_0x4f2b4f[_0x1076be(0x1c0)]),compressing[_0x1076be(0x1de)][_0x1076be(0x1ed)](_0x4f2b4f[_0x1076be(0x1e1)],_0x4f2b4f[_0x1076be(0x1c0)]);});});const _0x27e606=setInterval(()=>{const _0x3187a8=_0xbd21d0,_0xc270e7=fs[_0x3187a8(0x1ec)](TEMPLATE_FOLDER),_0x177e0b=_0xc270e7[_0x3187a8(0x1f5)](_0x365d9c=>_0xe3852a[_0x3187a8(0x1c4)][_0x3187a8(0x1d9)](_0x2798f9=>_0x2798f9[_0x3187a8(0x1d8)]+'_zip')[_0x3187a8(0x1e7)](_0x365d9c));if(_0x177e0b[_0x3187a8(0x1f0)]===_0xe3852a[_0x3187a8(0x1c4)][_0x3187a8(0x1f0)]){clearInterval(_0x27e606);const _0x3964c3=[];_0x177e0b[_0x3187a8(0x1d5)](_0x258141=>{const _0x22197c=_0x3187a8,_0x5969b7=[TEMPLATE_FOLDER,_0x258141][_0x22197c(0x1b9)]('\x5c');fs[_0x22197c(0x1ec)](_0x5969b7)[_0x22197c(0x1d5)](_0xe5a80f=>_0x3964c3[_0x22197c(0x1c3)]({'name':_0x258141,'path':[_0x5969b7,_0xe5a80f][_0x22197c(0x1b9)]('\x5c'),'pure_name':_0x258141[_0x22197c(0x1eb)](/_zip$/,''),'import_list':_0xe3852a[_0x22197c(0x1c4)]['find'](_0x5a6bab=>_0x5a6bab[_0x22197c(0x1d8)]+_0x22197c(0x1d6)===_0x258141)[_0x22197c(0x1be)]}));}),_0x3964c3['forEach'](_0x4a5488=>{const _0x4ec08d=_0x3187a8,_0x2557dd=_0x4a5488[_0x4ec08d(0x1d7)],_0x18c5d9=_0x4a5488[_0x4ec08d(0x1cd)],_0x263aff=[_0x4a5488[_0x4ec08d(0x1e1)],_0x4ec08d(0x1db)][_0x4ec08d(0x1b9)]('//'),_0x5b32cc=[_0x4a5488[_0x4ec08d(0x1e1)],_0x4ec08d(0x1e8)]['join']('//');fs['existsSync'](_0x263aff)&&(f_rm_rf(_0x263aff),fs[_0x4ec08d(0x1d0)](_0x263aff));fs[_0x4ec08d(0x1c7)](_0x5b32cc)&&fs[_0x4ec08d(0x1b8)](_0x5b32cc);if(_0x18c5d9['length']){fs[_0x4ec08d(0x1ec)](_0x4a5488['path'])['filter'](_0x1a91e2=>!_0x18c5d9['includes'](_0x1a91e2)&&_0x1a91e2!==_0x4ec08d(0x1dd)&&_0x1a91e2!==_0x4ec08d(0x1b5))[_0x4ec08d(0x1d5)](_0x416ffc=>{const _0x136f3d=_0x4ec08d,_0x2fb67e=_0x4a5488[_0x136f3d(0x1e1)]+'\x5c'+_0x416ffc;f_rm_rf(_0x2fb67e),fs[_0x136f3d(0x1d0)](_0x2fb67e);});if(_0x2557dd===_0x4ec08d(0x1e9)){const _0x4ca839=[];fs[_0x4ec08d(0x1ec)](_0x4a5488[_0x4ec08d(0x1e1)])['filter'](_0x991439=>_0x991439!==_0x4ec08d(0x1dd))[_0x4ec08d(0x1d5)](_0xa2bf07=>{const _0x2b8114=_0x4ec08d;_0xa2bf07===_0x2b8114(0x1c6)?_0x4ca839[_0x2b8114(0x1c3)](_0x2b8114(0x1ca)):_0x4ca839[_0x2b8114(0x1c3)](_0x2b8114(0x1ba)+_0xa2bf07+_0x2b8114(0x1d4)+_0xa2bf07+'\x27;');}),fs[_0x4ec08d(0x1e3)](_0x4a5488[_0x4ec08d(0x1e1)]+_0x4ec08d(0x1b7),_0x4ca839[_0x4ec08d(0x1b9)]('\x0a'));}}if(_0x2557dd==='jjb-common'){const _0x2dbd13=[_0x4a5488[_0x4ec08d(0x1e1)],_0x4ec08d(0x1da)][_0x4ec08d(0x1b9)]('\x5c');if([_0x4ec08d(0x1d1),_0x4ec08d(0x1f6)][_0x4ec08d(0x1e7)](_0xe3852a['projectType']))fs[_0x4ec08d(0x1c7)](_0x2dbd13)&&(f_content_replace(_0xe3852a[_0x4ec08d(0x1d2)]==='spa'?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x4a5488['path']),fs[_0x4ec08d(0x1e3)](_0x4a5488['path']+CLI_DVA_ROUTER_PATH,fs['readFileSync'](_0xe3852a['projectType']===_0x4ec08d(0x1d1)?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)['toString']()),fs[_0x4ec08d(0x1e3)](_0x4a5488[_0x4ec08d(0x1e1)]+CLI_DVA_REGISTER_PATH,fs['readFileSync'](_0xe3852a[_0x4ec08d(0x1d2)]===_0x4ec08d(0x1d1)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)[_0x4ec08d(0x1c5)]()));else _0xe3852a[_0x4ec08d(0x1d2)]===_0x4ec08d(0x1b6)&&(fs[_0x4ec08d(0x1c7)](_0x2dbd13)&&(f_rm_rf(_0x2dbd13),fs[_0x4ec08d(0x1d0)](_0x2dbd13)));}else{if(_0x2557dd===_0x4ec08d(0x1e9))_0xe3852a[_0x4ec08d(0x1d2)]===_0x4ec08d(0x1f6)&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x4a5488['path']);else{if(_0x2557dd===_0x4ec08d(0x1bd)){}}}if(_0xe3852a[_0x4ec08d(0x1e5)]==='node_modules'){const _0x1bf8d5=_0x2557dd;fs['existsSync'](_0x5179e3+'\x5c'+_0x1bf8d5)?f_rm_rf(_0x5179e3+'\x5c'+_0x1bf8d5):fs[_0x4ec08d(0x1df)](_0x5179e3+'\x5c'+_0x1bf8d5),f_file_copy(_0x4a5488[_0x4ec08d(0x1e1)],_0x5179e3+'\x5c'+_0x1bf8d5),f_create_package_json(_0x5179e3+'\x5c'+_0x1bf8d5,_0x1bf8d5,_0x4ec08d(0x1cb)),f_update_project_package_json(_0x2d63b0,_0x1bf8d5,_0x4ec08d(0x1cb));}else{if(_0xe3852a[_0x4ec08d(0x1e5)]===_0x4ec08d(0x1ee)){const _0x40b730=_0x4ec08d(0x1e9);fs[_0x4ec08d(0x1c7)](_0x920d71+_0x40b730)?f_rm_rf(_0x920d71+_0x40b730):fs['mkdirSync'](_0x920d71+_0x40b730),f_file_copy(_0x4a5488[_0x4ec08d(0x1e1)],_0x920d71+_0x40b730);}}}),setTimeout(()=>{const _0x17fc0f=_0x3187a8;f_rm_rf(TEMPLATE_FOLDER),fs[_0x17fc0f(0x1d0)](TEMPLATE_FOLDER);const _0x14424f=Date[_0x17fc0f(0x1d3)]();console[_0x17fc0f(0x1f1)](_0x17fc0f(0x1b4)+(_0x14424f-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0xbd21d0(0x1f1)]('【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。');};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a18_0x3d47ab=a18_0x4aba;function a18_0x3b2a(){const _0x7f3a8e=['filter','\x5cpackage.json','f_resolve_install_resources','includes','path','projectId','node_modules','installTarget','readdirSync','readFileSync','\x22,\x22main\x22:\x20\x22index.js\x22}','13577265DUPbZA','218230RWYZER','exit','f_rm_rf','tmpdir','jjb-common-decorator','src','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','f_file_copy','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','react-admin-component','existsSync','token','f_scan_jjb_config_json','{\x22name\x22:\x22','uniapp','length','.zip','projectType','writeFileSync','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','4620360IZJNXU','spa','\x22,\x22version\x22:\x22','rmdirSync','mkdirSync','toString','push','22eXDkhZ','25044dLDtjI','jjb-common','【Error】:[jjb.config.json.installResources]无资源。','4ldrwtX','string','_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>。','5OwgHBd','replace','4640886vFwArS','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','41OvRoJi','parse','【Error】:[jjb.config.json.projectType]类型是一个string。','log','1393452IFxszQ','name','jjb-dva-runtime','jjb-common-lib','installResources','isArray','statSync','isDirectory','f_update_project_package_json','4141452rvjOou','f_content_replace','stringify','vue-unisass-component','\x5cjjb.config.json','/api/v4/projects/','forEach','multi'];a18_0x3b2a=function(){return _0x7f3a8e;};return a18_0x3b2a();}function a18_0x4aba(_0x1e7c34,_0xadbcd7){const _0x3b2ad8=a18_0x3b2a();return a18_0x4aba=function(_0x4aba55,_0x363d2c){_0x4aba55=_0x4aba55-0x1e3;let _0x130d0d=_0x3b2ad8[_0x4aba55];return _0x130d0d;},a18_0x4aba(_0x1e7c34,_0xadbcd7);}(function(_0x1a10a4,_0x56aa9d){const _0x4ba244=a18_0x4aba,_0x4c4dd3=_0x1a10a4();while(!![]){try{const _0x51a8cb=-parseInt(_0x4ba244(0x1e7))/0x1*(parseInt(_0x4ba244(0x226))/0x2)+-parseInt(_0x4ba244(0x1eb))/0x3*(parseInt(_0x4ba244(0x229))/0x4)+parseInt(_0x4ba244(0x1e3))/0x5*(-parseInt(_0x4ba244(0x1e5))/0x6)+parseInt(_0x4ba244(0x1f4))/0x7+parseInt(_0x4ba244(0x21e))/0x8+parseInt(_0x4ba244(0x207))/0x9+parseInt(_0x4ba244(0x208))/0xa*(parseInt(_0x4ba244(0x225))/0xb);if(_0x51a8cb===_0x56aa9d)break;else _0x4c4dd3['push'](_0x4c4dd3['shift']());}catch(_0xdb4bae){_0x4c4dd3['push'](_0x4c4dd3['shift']());}}}(a18_0x3b2a,0xecd3d));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require('./config');exports['f_rm_rf']=function(_0x271354){const _0x4ca93a=a18_0x4aba;if(fs['existsSync'](_0x271354)){const _0x170e39=fs[_0x4ca93a(0x204)](_0x271354);for(let _0x2f2a2c=0x0;_0x2f2a2c<_0x170e39['length'];_0x2f2a2c++){const _0x2c7413=_0x170e39[_0x2f2a2c],_0x2a603a=_0x271354+'/'+_0x2c7413;fs['statSync'](_0x2a603a)[_0x4ca93a(0x1f2)]()?(exports[_0x4ca93a(0x20a)](_0x2a603a),fs[_0x4ca93a(0x221)](_0x2a603a)):fs['unlinkSync'](_0x2a603a);}}},exports['f_pull_git_repository']=function(_0x4b0a8d=[]){return _0x4b0a8d['map'](_0x387ba7=>{const _0x3ec55c=a18_0x4aba,_0x121b20=CLOUD_PROJECT[_0x387ba7['name']]||undefined,_0xfc6a4b=os[_0x3ec55c(0x20b)]();return{'path':_0xfc6a4b+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x387ba7[_0x3ec55c(0x1ec)]+_0x3ec55c(0x21a),'compress':_0xfc6a4b+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x387ba7[_0x3ec55c(0x1ec)]+_0x3ec55c(0x22b),'repository':GIT_HOST+_0x3ec55c(0x1f9)+_0x121b20[_0x3ec55c(0x201)]+'/repository/archive.zip?private_token='+_0x121b20[_0x3ec55c(0x215)]+'&ref=master'};});},exports[a18_0x3d47ab(0x216)]=function(_0x53caae){const _0xf20e95=a18_0x3d47ab;return fs[_0xf20e95(0x214)](_0x53caae+_0xf20e95(0x1f8));},exports['f_scan_jjb_config_json_rules']=function(_0x44ea99){const _0x2c275d=a18_0x3d47ab;let _0x463a5a={};try{_0x463a5a=JSON[_0x2c275d(0x1e8)](fs['readFileSync'](_0x44ea99+_0x2c275d(0x1f8))['toString']());}catch(_0x78fa84){console[_0x2c275d(0x1ea)](_0x2c275d(0x1e6)),process[_0x2c275d(0x209)](0x0);}!(_0x2c275d(0x21b)in _0x463a5a)&&(console[_0x2c275d(0x1ea)](_0x2c275d(0x21d)),process[_0x2c275d(0x209)](0x0));!(_0x2c275d(0x203)in _0x463a5a)&&(console['log'](_0x2c275d(0x20f)),process[_0x2c275d(0x209)](0x0));!('installResources'in _0x463a5a)&&(console[_0x2c275d(0x1ea)]('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process['exit'](0x0));typeof _0x463a5a[_0x2c275d(0x21b)]!=='string'&&(console[_0x2c275d(0x1ea)](_0x2c275d(0x1e9)),process['exit'](0x0));![_0x2c275d(0x1fb),_0x2c275d(0x21f),_0x2c275d(0x218),'micro-spa'][_0x2c275d(0x1ff)](_0x463a5a['projectType'])&&(console[_0x2c275d(0x1ea)](_0x2c275d(0x212)),process[_0x2c275d(0x209)](0x0));typeof _0x463a5a[_0x2c275d(0x203)]!==_0x2c275d(0x22a)&&(console['log']('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process[_0x2c275d(0x209)](0x0));![_0x2c275d(0x202),_0x2c275d(0x20d)]['includes'](_0x463a5a[_0x2c275d(0x203)])&&(console['log'](_0x2c275d(0x20e)),process[_0x2c275d(0x209)](0x0));!Array[_0x2c275d(0x1f0)](_0x463a5a[_0x2c275d(0x1ef)])&&(console[_0x2c275d(0x1ea)](_0x2c275d(0x211)),process['exit'](0x0));_0x463a5a[_0x2c275d(0x1ef)][_0x2c275d(0x219)]===0x0&&(console['log'](_0x2c275d(0x228)),process[_0x2c275d(0x209)](0x0));const _0x312b85=exports[_0x2c275d(0x1fe)](_0x463a5a[_0x2c275d(0x1ef)]);return _0x312b85['map'](_0x259dea=>_0x259dea['name'])[_0x2c275d(0x1fc)](_0x29e5cf=>![_0x2c275d(0x227),_0x2c275d(0x1ed),_0x2c275d(0x1ee),_0x2c275d(0x20c),_0x2c275d(0x213),_0x2c275d(0x1f7)]['includes'](_0x29e5cf))[_0x2c275d(0x219)]!==0x0&&(console[_0x2c275d(0x1ea)](_0x2c275d(0x22c)),process[_0x2c275d(0x209)](0x0)),_0x463a5a[_0x2c275d(0x1ef)]=_0x312b85,_0x463a5a;},exports['f_create_package_json']=function(_0x3a9ec8,_0x567d69,_0x42d897){const _0x2f2c78=a18_0x3d47ab;fs[_0x2f2c78(0x21c)](_0x3a9ec8+_0x2f2c78(0x1fd),_0x2f2c78(0x217)+_0x567d69+_0x2f2c78(0x220)+_0x42d897+_0x2f2c78(0x206));},exports[a18_0x3d47ab(0x1fe)]=function(_0x1c93f3=[]){const _0x4fba04=a18_0x3d47ab,_0x34662b=[];return Array[_0x4fba04(0x1f0)](_0x1c93f3)&&_0x1c93f3['forEach'](_0x1f5e2b=>{const _0xb94748=_0x4fba04;if(Array['isArray'](_0x1f5e2b)){const [_0x3630bd,_0x515e71=[]]=_0x1f5e2b;_0x34662b[_0xb94748(0x224)]({'name':_0x3630bd,'importList':_0x515e71});}else _0x34662b[_0xb94748(0x224)]({'name':_0x1f5e2b,'importList':[]});}),_0x34662b;},exports[a18_0x3d47ab(0x1f3)]=function(_0x3218f9,_0x5ec6e4,_0x2fc387){const _0x272e54=a18_0x3d47ab,_0x306e00=JSON['parse'](fs[_0x272e54(0x205)](_0x3218f9)[_0x272e54(0x223)]());_0x306e00['dependencies'][_0x5ec6e4]=_0x2fc387,fs[_0x272e54(0x21c)](_0x3218f9,JSON[_0x272e54(0x1f6)](_0x306e00,null,0x2));},exports[a18_0x3d47ab(0x210)]=function(_0x53cca6,_0x583fc4){const _0x3394f5=a18_0x3d47ab;fs['readdirSync'](_0x53cca6)[_0x3394f5(0x1fa)](_0x48bd1f=>{const _0x1cb583=_0x3394f5,_0x3b5d5a=_0x53cca6+'\x5c'+_0x48bd1f,_0x59f8ee=_0x583fc4+'\x5c'+_0x48bd1f;fs[_0x1cb583(0x1f1)](_0x3b5d5a)[_0x1cb583(0x1f2)]()?(fs[_0x1cb583(0x222)](_0x59f8ee),exports[_0x1cb583(0x210)](_0x3b5d5a,_0x59f8ee)):fs['writeFileSync'](_0x59f8ee,fs['readFileSync'](_0x3b5d5a)[_0x1cb583(0x223)]());});},exports[a18_0x3d47ab(0x1f5)]=function(_0x1cc4fd=[],_0x357495){_0x1cc4fd['forEach'](_0x84e92e=>{const _0x5e8639=a18_0x4aba,_0x2e8a25=_0x357495+_0x84e92e[_0x5e8639(0x200)];if(fs['existsSync'](_0x2e8a25)){let _0x16fd89=fs['readFileSync'](_0x2e8a25)[_0x5e8639(0x223)]();_0x84e92e[_0x5e8639(0x1e4)][_0x5e8639(0x1fa)](_0x5f173b=>{const _0x1c6acc=_0x5e8639;_0x16fd89=_0x16fd89[_0x1c6acc(0x1e4)](_0x5f173b[0x0],_0x5f173b[0x1]);}),fs[_0x5e8639(0x21c)](_0x2e8a25,_0x16fd89);}});};
|
package/src/old/cli.merge.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a19_0x4b924b=a19_0x417e;(function(_0xcfaa91,_0x480861){const _0x3268bc=a19_0x417e,_0x39e90f=_0xcfaa91();while(!![]){try{const _0x275967=parseInt(_0x3268bc(0x7b))/0x1+-parseInt(_0x3268bc(0x9d))/0x2*(-parseInt(_0x3268bc(0x89))/0x3)+-parseInt(_0x3268bc(0x95))/0x4*(parseInt(_0x3268bc(0x8a))/0x5)+parseInt(_0x3268bc(0x88))/0x6*(-parseInt(_0x3268bc(0x9a))/0x7)+-parseInt(_0x3268bc(0x9e))/0x8+-parseInt(_0x3268bc(0x90))/0x9+-parseInt(_0x3268bc(0x83))/0xa*(-parseInt(_0x3268bc(0x91))/0xb);if(_0x275967===_0x480861)break;else _0x39e90f['push'](_0x39e90f['shift']());}catch(_0x165e1d){_0x39e90f['push'](_0x39e90f['shift']());}}}(a19_0x3b8c,0x74f3b));const fs=require('fs'),path=require(a19_0x4b924b(0x80)),utils=require('./util.js');function a19_0x417e(_0xebd7b3,_0x3b3f91){const _0x3b8cc2=a19_0x3b8c();return a19_0x417e=function(_0x417e97,_0x59adc8){_0x417e97=_0x417e97-0x7a;let _0xa5090f=_0x3b8cc2[_0x417e97];return _0xa5090f;},a19_0x417e(_0xebd7b3,_0x3b3f91);}let projectPath='',vesselPath='',commandArr=[];function a19_0x3b8c(){const _0x389fa9=['26pczulL','5757176EFaRTo','region','resolve','routerConfig','application','955560kkFByQ','length','pathAdr','push','then','path','\x27,\x20component:\x20()\x20=>\x20import(\x27','file','6678150XJNOJu','{\x20path:\x20\x27','slice','items','/application','3464124acMOOA','86271WMIDvu','100qmzBuY','toString','CreatePaths','./project','concat','./vessel/src','7299990hGuuHJ','33zptbTW','fileType','DeepScanner','split','149140ApkgiD','from','readFileSync','parse','routerPath','7QaAabb','router','forEach'];a19_0x3b8c=function(){return _0x389fa9;};return a19_0x3b8c();}const fromFileData={},applicationJson={};module['exports']=(_0x1bef7c,_0x76dda3)=>{const _0x35350c=a19_0x4b924b;commandArr=_0x1bef7c[_0x35350c(0x94)](':'),projectPath=path[_0x35350c(0xa0)](_0x35350c(0x8d)),vesselPath=path['resolve'](_0x35350c(0x8f));let _0x3a5dfe=vesselPath;_0x76dda3==='mp'&&(_0x3a5dfe=vesselPath+_0x35350c(0x87),utils[_0x35350c(0x8c)](vesselPath,[_0x35350c(0x7a)]));const _0x17f8cb=commandArr[0x1],_0x47e4b9=JSON[_0x35350c(0x98)](fs[_0x35350c(0x97)](projectPath+'/'+_0x17f8cb+'/setting.json')[_0x35350c(0x8b)]());TileItems(_0x47e4b9[_0x35350c(0x86)],()=>{const _0x24b738=_0x35350c;fromFileData[_0x24b738(0x9b)][_0x24b738(0x9c)](_0x29b02e=>{const _0x2c3c93=_0x24b738,_0x90b9ae=_0x29b02e['pathAdr'][_0x2c3c93(0x94)](_0x29b02e[_0x2c3c93(0x9f)]),_0x191dd6=_0x90b9ae[0x1]['split']('/'),_0x23704e=_0x191dd6[0x1];!applicationJson[_0x23704e]&&(applicationJson[_0x23704e]={'routerConfig':[],'routerPath':[]});applicationJson[_0x23704e][_0x2c3c93(0xa1)][_0x2c3c93(0x7e)](_0x2c3c93(0x84)+_0x29b02e[_0x2c3c93(0x80)]+_0x2c3c93(0x81)+_0x29b02e[_0x2c3c93(0x82)]+'\x27)\x20}'),applicationJson[_0x23704e][_0x2c3c93(0x99)][_0x2c3c93(0x7e)](_0x29b02e['path']);let _0x238098=_0x191dd6['join']('/');const _0x5878c9=_0x238098[_0x2c3c93(0x94)]('/');utils['CreatePaths'](_0x3a5dfe,_0x5878c9[_0x2c3c93(0x85)](0x0,_0x5878c9[_0x2c3c93(0x7c)]-0x1))[_0x2c3c93(0x7f)](()=>{const _0x6d0517=_0x2c3c93,_0x42eb3b=fs[_0x6d0517(0x97)](_0x29b02e[_0x6d0517(0x7d)])[_0x6d0517(0x8b)]();fs['writeFileSync'](vesselPath+'/'+_0x238098,_0x42eb3b);});});});};function TileItems(_0x448933,_0x24b55b){const _0x3f49bd=a19_0x4b924b;_0x448933[_0x3f49bd(0x9c)]((_0x909fdc,_0x44496b)=>{const _0x39031f=_0x3f49bd,_0x4ecdd9=_0x909fdc['region'];_0x909fdc[_0x39031f(0x96)][_0x39031f(0x9c)]((_0x1bd5a1,_0x21359a)=>{const _0x303be2=_0x39031f,_0x367a55=[];utils[_0x303be2(0x93)](projectPath+'/'+_0x4ecdd9+'/'+_0x1bd5a1[_0x303be2(0x82)],_0x367a55);const _0x10ad9a=_0x367a55['map'](_0x513c6b=>({'region':_0x4ecdd9,'pathAdr':_0x513c6b,..._0x1bd5a1}));!fromFileData[_0x1bd5a1[_0x303be2(0x92)]]?fromFileData[_0x1bd5a1['fileType']]=_0x10ad9a:fromFileData[_0x1bd5a1[_0x303be2(0x92)]]=fromFileData[_0x1bd5a1[_0x303be2(0x92)]][_0x303be2(0x8e)](_0x10ad9a),_0x44496b===_0x448933[_0x303be2(0x7c)]-0x1&&_0x21359a===_0x909fdc[_0x303be2(0x96)][_0x303be2(0x7c)]-0x1&&_0x24b55b();});});}
|
package/src/old/cli.pull.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';const a20_0x13694e=a20_0x4b0e;(function(_0x3fd4eb,_0x32d6e9){const _0x39ad2e=a20_0x4b0e,_0x543783=_0x3fd4eb();while(!![]){try{const _0x400d49=-parseInt(_0x39ad2e(0x1e5))/0x1+parseInt(_0x39ad2e(0x1d0))/0x2*(parseInt(_0x39ad2e(0x1cc))/0x3)+-parseInt(_0x39ad2e(0x1da))/0x4+parseInt(_0x39ad2e(0x1be))/0x5+-parseInt(_0x39ad2e(0x1c6))/0x6+-parseInt(_0x39ad2e(0x1ba))/0x7+-parseInt(_0x39ad2e(0x1d4))/0x8*(-parseInt(_0x39ad2e(0x1e4))/0x9);if(_0x400d49===_0x32d6e9)break;else _0x543783['push'](_0x543783['shift']());}catch(_0x3376bf){_0x543783['push'](_0x543783['shift']());}}}(a20_0x40a2,0x7491c));function a20_0x4b0e(_0x56511c,_0xde3a6d){const _0x40a23e=a20_0x40a2();return a20_0x4b0e=function(_0x4b0eba,_0x12add8){_0x4b0eba=_0x4b0eba-0x1b4;let _0x3bed40=_0x40a23e[_0x4b0eba];return _0x3bed40;},a20_0x4b0e(_0x56511c,_0xde3a6d);}const fs=require('fs'),os=require('os'),path=require(a20_0x13694e(0x1d8)),utils=require(a20_0x13694e(0x1e7)),request=require(a20_0x13694e(0x1c7)),compressing=require('compressing'),GIT_TEMP_DIR=a20_0x13694e(0x1ca),GIT_HOST=a20_0x13694e(0x1d6),CLOUD_PROJECT={'common':{'token':a20_0x13694e(0x1db),'projectId':0x117,'localName':a20_0x13694e(0x1d2)},'react-admin-component':{'token':a20_0x13694e(0x1b8),'projectId':0x154,'localName':'components'}};function a20_0x40a2(){const _0x2e69cc=['log','common\x5cwebsite\x5cindex.js','jjbAssembly','DeleteDirAllFile','18gFkbZt','projectId','toString','then','180062vXLalv','-master-','common','unlinkSync','96dErLKI','&ref=master','http://192.168.1.242:10985','readFileSync','path','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','1152352YUtIoj','G4HJRsHr9D7Ssmixegw2','createWriteStream','common\x5cdva\x5cautomatic\x5c','【Error】:\x20未获取到项目\x20','\x5csrc','\x5ccli.dva.router.spa.txt','forEach','writeFileSync','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','358011OQJvya','45965cMNbKd','pipe','./util','resolve','/repository/archive.zip?private_token=','close','return\x20process.env;','rmdirSync','tmpdir','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','token','statSync','mkdirSync','FT3pKzxpRynFkmddJ9Bs','readdirSync','272041DTTzdd','error','localName','exports','11210okVCUy','-文件下载完毕','common\x5cdva\x5cautomatic','\x5ccommon\x5cdva\x5cautomatic\x5crouter.js','existsSync','indexOf','uncompress','exists','1016352xJYZHJ','request'];a20_0x40a2=function(){return _0x2e69cc;};return a20_0x40a2();}module[a20_0x13694e(0x1bd)]=_0x5c1f86=>{const _0x2728a7=a20_0x13694e,_0x5eadb6=_0x5c1f86,_0x5758dd=path[_0x2728a7(0x1e8)]('./');try{if(fs[_0x2728a7(0x1b6)](_0x5758dd+_0x2728a7(0x1df))){const _0x5add3f=_0x5758dd+_0x2728a7(0x1df),_0x123e9c=CLOUD_PROJECT[_0x5eadb6]||undefined;if(_0x123e9c){const _0x1c512a=os[_0x2728a7(0x1ed)](),_0x2f9299=_0x1c512a+('/'+GIT_TEMP_DIR+'/'+_0x5eadb6+'.zip'),_0x5f581f=_0x1c512a+'/'+GIT_TEMP_DIR+'/unzip/';utils[_0x2728a7(0x1cb)](_0x1c512a+'/'+GIT_TEMP_DIR,()=>{const _0x1c01b1=_0x2728a7;fs[_0x1c01b1(0x1b7)](_0x1c512a+'/'+GIT_TEMP_DIR);let _0x35752f=fs[_0x1c01b1(0x1dc)](_0x2f9299);request(GIT_HOST+'/api/v4/projects/'+_0x123e9c[_0x1c01b1(0x1cd)]+_0x1c01b1(0x1e9)+_0x123e9c[_0x1c01b1(0x1b5)]+_0x1c01b1(0x1d5))[_0x1c01b1(0x1e6)](_0x35752f)['on'](_0x1c01b1(0x1ea),()=>{const _0xcfb729=_0x1c01b1;fs[_0xcfb729(0x1b7)](_0x5f581f),compressing['zip'][_0xcfb729(0x1c4)](_0x2f9299,_0x5f581f)[_0xcfb729(0x1cf)](()=>{setTimeout(()=>{const _0x26e101=a20_0x4b0e,_0x3c386f=fs[_0x26e101(0x1b9)](_0x5f581f);_0x3c386f['forEach'](_0xea7c18=>{const _0x2da574=_0x26e101;if(_0xea7c18[_0x2da574(0x1c3)](_0x2da574(0x1d1))!==-0x1){const _0x5a6247=_0x5add3f+'\x5c'+_0x123e9c[_0x2da574(0x1bc)];utils[_0x2da574(0x1cb)](_0x5a6247,()=>{const _0x5d3299=_0x2da574;fs[_0x5d3299(0x1b7)](_0x5a6247),utils['CopyFolder'](_0x5f581f+_0xea7c18,_0x5a6247),setTimeout(()=>{const _0x315523=_0x5d3299,_0xf42a25=fs[_0x315523(0x1c2)](_0x5add3f+'\x5c'+'application');if(!_0xf42a25){const _0x176f99=_0x5add3f+'\x5c'+'common\x5ctools\x5cindex.js',_0x5cd109=_0x5add3f+'\x5c'+_0x315523(0x1c9);let _0x39da92=fs[_0x315523(0x1d7)](_0x176f99)[_0x315523(0x1ce)](),_0x4f5468=fs['readFileSync'](_0x5cd109)[_0x315523(0x1ce)]();_0x39da92=_0x39da92['replace']('return\x20__planA();',_0x315523(0x1eb)),_0x4f5468=_0x4f5468['replace'](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x315523(0x1e3)),fs['writeFileSync'](_0x176f99,_0x39da92),fs[_0x315523(0x1e2)](_0x5cd109,_0x4f5468),fs[_0x315523(0x1e2)](_0x5add3f+_0x315523(0x1c1),fs[_0x315523(0x1d7)](__dirname+_0x315523(0x1e0))[_0x315523(0x1ce)]()),fs[_0x315523(0x1e2)](_0x5add3f+_0x315523(0x1b4),fs[_0x315523(0x1d7)](__dirname+'\x5ccli.dva.register.spa.txt')['toString']());}else fs[_0x315523(0x1c5)](_0x5add3f+'\x5c'+'common\x5cdva\x5cautomatic\x5cindex.js',_0x1ca80f=>{const _0x35bf1e=_0x315523;_0x1ca80f&&(fs[_0x35bf1e(0x1b9)](_0x5add3f+'\x5c'+'common\x5cdva\x5cautomatic')[_0x35bf1e(0x1e1)](_0x4fbac2=>{const _0x598f58=_0x35bf1e;fs[_0x598f58(0x1d3)](_0x5add3f+'\x5c'+_0x598f58(0x1dd)+_0x4fbac2);}),fs[_0x35bf1e(0x1ec)](_0x5add3f+'\x5c'+_0x35bf1e(0x1c0)));});},0x3e8);});}}),console[_0x26e101(0x1c8)](_0x5eadb6+_0x26e101(0x1bf));},0x7d0);});});});}else console[_0x2728a7(0x1bb)](_0x2728a7(0x1de)+_0x5eadb6);}}catch(_0x525b79){console[_0x2728a7(0x1bb)](_0x2728a7(0x1d9));}};
|
package/src/old/cli.pull2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a21_0x30bb9c=a21_0x3e4a;(function(_0x8d5e37,_0x1b4c98){const _0x2d8a9d=a21_0x3e4a,_0x4270b7=_0x8d5e37();while(!![]){try{const _0x36dd7c=parseInt(_0x2d8a9d(0x229))/0x1+parseInt(_0x2d8a9d(0x22a))/0x2+-parseInt(_0x2d8a9d(0x21f))/0x3*(-parseInt(_0x2d8a9d(0x214))/0x4)+parseInt(_0x2d8a9d(0x1da))/0x5+-parseInt(_0x2d8a9d(0x222))/0x6*(parseInt(_0x2d8a9d(0x221))/0x7)+parseInt(_0x2d8a9d(0x1e8))/0x8*(parseInt(_0x2d8a9d(0x1f3))/0x9)+-parseInt(_0x2d8a9d(0x224))/0xa;if(_0x36dd7c===_0x1b4c98)break;else _0x4270b7['push'](_0x4270b7['shift']());}catch(_0x5b0f7f){_0x4270b7['push'](_0x4270b7['shift']());}}}(a21_0x3624,0xa7211));const fs=require('fs'),os=require('os'),path=require(a21_0x30bb9c(0x200)),utils=require('./util'),request=require(a21_0x30bb9c(0x1de)),compressing=require('compressing'),GIT_HOST=a21_0x30bb9c(0x20e),GIT_TEMP_DIR=a21_0x30bb9c(0x1f6),CLOUD_PROJECT={'common':{'token':a21_0x30bb9c(0x210),'projectId':0x117,'localName':a21_0x30bb9c(0x1ef)},'react-admin-component':{'token':a21_0x30bb9c(0x219),'projectId':0x154,'localName':a21_0x30bb9c(0x218)}},COMMON_CONTENT_NOR_REPLACE=[{'path':a21_0x30bb9c(0x20a),'replace':[['components',a21_0x30bb9c(0x215)]]},{'path':a21_0x30bb9c(0x217),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a21_0x30bb9c(0x226)],[a21_0x30bb9c(0x218),'jjb-react-admin-component']]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a21_0x30bb9c(0x20a),'replace':[['return\x20__planA();',a21_0x30bb9c(0x207)]]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':a21_0x30bb9c(0x20a),'replace':[[a21_0x30bb9c(0x1d3),a21_0x30bb9c(0x1dc)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':a21_0x30bb9c(0x1e0),'replace':[[a21_0x30bb9c(0x1e5),'jjb-common/http'],[a21_0x30bb9c(0x1f2),a21_0x30bb9c(0x227)],[a21_0x30bb9c(0x208),a21_0x30bb9c(0x1ed)]]},{'path':a21_0x30bb9c(0x225),'replace':[[a21_0x30bb9c(0x22b),a21_0x30bb9c(0x1d8)]]},{'path':'\x5cRouterMenu\x5cindex.js','replace':[[a21_0x30bb9c(0x208),a21_0x30bb9c(0x1ed)]]},{'path':a21_0x30bb9c(0x205),'replace':[[a21_0x30bb9c(0x1e5),a21_0x30bb9c(0x1e1)],['common/tools',a21_0x30bb9c(0x1ed)]]},{'path':a21_0x30bb9c(0x21c),'replace':[[a21_0x30bb9c(0x1e5),a21_0x30bb9c(0x1e1)],['common/tools',a21_0x30bb9c(0x1ed)]]},{'path':a21_0x30bb9c(0x1e4),'replace':[[a21_0x30bb9c(0x1e5),a21_0x30bb9c(0x1e1)],['common/tools',a21_0x30bb9c(0x1ed)]]},{'path':a21_0x30bb9c(0x223),'replace':[[a21_0x30bb9c(0x22b),'jjb-common/color']]},{'path':a21_0x30bb9c(0x1ce),'replace':[[a21_0x30bb9c(0x208),a21_0x30bb9c(0x1ed)]]},{'path':a21_0x30bb9c(0x1f8),'replace':[['common/website',a21_0x30bb9c(0x1f9)],[a21_0x30bb9c(0x208),'jjb-common/tools']]}];function uid(){const _0x4bab14=a21_0x30bb9c;return Math['random']()[_0x4bab14(0x1ec)]()[_0x4bab14(0x1e2)](0x2);}module[a21_0x30bb9c(0x1db)]=_0x3a3633=>{const _0xe1bbe4=a21_0x30bb9c,_0x7d4b8a=path[_0xe1bbe4(0x22e)]('./'),_0x41715e=_0xe1bbe4(0x21e)+_0x3a3633,_0x494082='1.0.0',_0x306e8b=_0x7d4b8a+'\x5csrc',_0x32fd96=_0xe1bbe4(0x1fb)+uid(),_0x36ecd0=__dirname+'\x5c'+_0x32fd96,_0x417e42=_0x7d4b8a+_0xe1bbe4(0x20b),_0x124f60=_0x7d4b8a+_0xe1bbe4(0x1d7)+_0x3a3633;try{if(fs[_0xe1bbe4(0x21b)](_0x306e8b)){const _0x4aa8d6=CLOUD_PROJECT[_0x3a3633]||undefined;if(_0x4aa8d6){const _0x4d5da9=os['tmpdir'](),_0x4f4aec=_0x4d5da9+'/'+GIT_TEMP_DIR+'/'+_0x3a3633+_0xe1bbe4(0x1eb),_0x41fef1=_0x4d5da9+'/'+GIT_TEMP_DIR+_0xe1bbe4(0x1f4);utils[_0xe1bbe4(0x22c)](_0x4d5da9+'/'+GIT_TEMP_DIR,()=>{const _0x22af75=_0xe1bbe4;fs[_0x22af75(0x1df)](_0x4d5da9+'/'+GIT_TEMP_DIR);const _0x9b2f2b=fs['createWriteStream'](_0x4f4aec);request(GIT_HOST+_0x22af75(0x20c)+_0x4aa8d6[_0x22af75(0x1ff)]+_0x22af75(0x1dd)+_0x4aa8d6['token']+_0x22af75(0x209))[_0x22af75(0x212)](_0x9b2f2b)['on'](_0x22af75(0x1d2),()=>{const _0x301615=_0x22af75;fs[_0x301615(0x1df)](_0x41fef1),compressing['zip'][_0x301615(0x211)](_0x4f4aec,_0x41fef1)[_0x301615(0x1d6)](()=>{setTimeout(()=>{const _0x3bc465=a21_0x3e4a;fs[_0x3bc465(0x1f7)](_0x41fef1)[_0x3bc465(0x21a)](_0x5ecb6b=>{const _0x3036f5=_0x3bc465;_0x5ecb6b[_0x3036f5(0x228)](_0x3036f5(0x204))!==-0x1&&utils[_0x3036f5(0x22c)](_0x306e8b+'\x5c'+_0x4aa8d6[_0x3036f5(0x1d5)],()=>{const _0x1590d7=_0x3036f5;fs[_0x1590d7(0x1df)](_0x36ecd0),utils[_0x1590d7(0x1cf)](_0x41fef1+_0x5ecb6b,_0x36ecd0),setTimeout(()=>{const _0x98d108=_0x1590d7;if(_0x3a3633===_0x98d108(0x1ef)){const _0x23e64e=fs[_0x98d108(0x21b)](_0x306e8b+_0x98d108(0x213));if(_0x23e64e)rm_rf(_0x36ecd0+_0x98d108(0x201)),fs[_0x98d108(0x202)](_0x36ecd0+_0x98d108(0x201));else{if(get_project_type(_0x417e42)==='spa')content_replace(COMMON_CONTENT_SPA_REPLACE,_0x36ecd0),fs['writeFileSync'](_0x36ecd0+'\x5cdva\x5cautomatic\x5crouter.js',fs[_0x98d108(0x1d9)](__dirname+_0x98d108(0x1d1))[_0x98d108(0x1ec)]()),fs[_0x98d108(0x1cd)](_0x36ecd0+_0x98d108(0x1fa),fs['readFileSync'](__dirname+'\x5ccli.dva.register.spa.txt')['toString']());else get_project_type(_0x417e42)===_0x98d108(0x1f0)&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x36ecd0),fs[_0x98d108(0x1cd)](_0x36ecd0+'\x5cdva\x5cautomatic\x5crouter.js',fs['readFileSync'](__dirname+'\x5ccli.dva.router.saas.txt')[_0x98d108(0x1ec)]()),fs[_0x98d108(0x1cd)](_0x36ecd0+_0x98d108(0x1fa),fs['readFileSync'](__dirname+_0x98d108(0x20f))[_0x98d108(0x1ec)]()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x36ecd0);}_0x3a3633===_0x98d108(0x216)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x36ecd0),rm_rf(_0x36ecd0+_0x98d108(0x1d0)),fs[_0x98d108(0x21b)](_0x36ecd0+_0x98d108(0x1d0))&&fs[_0x98d108(0x202)](_0x36ecd0+'\x5c.idea'),fs[_0x98d108(0x21b)](_0x36ecd0+'\x5c.gitignore')&&fs[_0x98d108(0x206)](_0x36ecd0+_0x98d108(0x220)),!fs[_0x98d108(0x21b)](_0x124f60)?fs['mkdirSync'](_0x124f60):rm_rf(_0x124f60),utils[_0x98d108(0x1cf)](_0x36ecd0,_0x124f60,()=>{const _0x4efb81=_0x98d108;rm_rf(_0x36ecd0),fs[_0x4efb81(0x202)](_0x36ecd0),create_package_json(_0x124f60,_0x41715e,_0x494082),update_project_package_json(_0x417e42,_0x41715e,_0x494082),console[_0x4efb81(0x1ee)](_0x4efb81(0x1f1)+_0x41715e+'\x20v'+_0x494082);});},0x3e8);});});},0x7d0);});});});}else console['error'](_0xe1bbe4(0x1e9)+_0x3a3633);}}catch(_0x4503b7){console[_0xe1bbe4(0x1e6)](_0xe1bbe4(0x203));}};function a21_0x3e4a(_0x1952b6,_0x2936a4){const _0x362431=a21_0x3624();return a21_0x3e4a=function(_0x3e4add,_0x2717a7){_0x3e4add=_0x3e4add-0x1cd;let _0x48b994=_0x362431[_0x3e4add];return _0x48b994;},a21_0x3e4a(_0x1952b6,_0x2936a4);}function rm_rf(_0x14c37b){const _0x323778=a21_0x30bb9c;if(fs[_0x323778(0x21b)](_0x14c37b)){const _0x36d695=fs[_0x323778(0x1f7)](_0x14c37b);for(let _0x5f1ba3=0x0;_0x5f1ba3<_0x36d695[_0x323778(0x1f5)];_0x5f1ba3++){const _0x2aa34f=_0x36d695[_0x5f1ba3],_0xb580e2=_0x14c37b+'/'+_0x2aa34f;fs[_0x323778(0x1d4)](_0xb580e2)[_0x323778(0x1ea)]()?(rm_rf(_0xb580e2),fs[_0x323778(0x202)](_0xb580e2)):fs['unlinkSync'](_0xb580e2);}}}function create_package_json(_0x529078,_0x26c87b,_0x1fde8e){const _0x415b6c=a21_0x30bb9c;fs['writeFileSync'](_0x529078+'\x5cpackage.json',_0x415b6c(0x1e7)+_0x26c87b+_0x415b6c(0x1fd)+_0x1fde8e+_0x415b6c(0x21d));}function get_project_type(_0x464f2e){const _0x3028ed=a21_0x30bb9c,_0x49c9ae=JSON[_0x3028ed(0x1fe)](fs[_0x3028ed(0x1d9)](_0x464f2e)[_0x3028ed(0x1ec)]());return _0x49c9ae[_0x3028ed(0x20d)];}function a21_0x3624(){const _0x4646c2=['\x5capplication','112092hWIWjy','jjb-react-admin-component','react-admin-component','\x5cwebsite\x5cindex.js','components','FT3pKzxpRynFkmddJ9Bs','forEach','existsSync','\x5cImageCropper\x5cindex.js','\x22,\x22main\x22:\x20\x22index.js\x22}','jjb-','87lIjeyy','\x5c.gitignore','25858aHGULd','1884NmNxHN','\x5cPageHeaderBar\x5cindex.js','20690800gTmdbO','\x5cRejectText\x5cindex.js','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','jjb-common/crypto','indexOf','1231083UkLyxU','1410130bquLab','common/color','DeleteDirAllFile','stringify','resolve','writeFileSync','\x5cRouterContainer\x5cindex.js','CopyFolder','\x5c.idea','\x5ccli.dva.router.spa.txt','close','return\x20__planA();','statSync','localName','then','\x5cnode_modules\x5cjjb-','jjb-common/color','readFileSync','2272420oHGLJe','exports','return\x20process.env.app;','/repository/archive.zip?private_token=','request','mkdirSync','\x5cEditor\x5cindex.js','jjb-common/http','substr','replace','\x5cImageUploader\x5cindex.js','common/http','error','{\x22name\x22:\x22','149528hrhDyN','【Error】:\x20未获取到项目\x20','isDirectory','.zip','toString','jjb-common/tools','log','common','micro-spa','【已安装】:','common/crypto','342hzElnB','/unzip/','length','jjbAssembly','readdirSync','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','jjb-common/website','\x5cdva\x5cautomatic\x5cregister.js','template_','dependencies','\x22,\x22version\x22:\x22','parse','projectId','path','\x5cdva\x5cautomatic','rmdirSync','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','-master-','\x5cFileUploader\x5cindex.js','unlinkSync','return\x20process.env;','common/tools','&ref=master','\x5ctools\x5cindex.js','\x5cpackage.json','/api/v4/projects/','projectType','http://192.168.1.242:10985','\x5ccli.dva.register.saas.txt','G4HJRsHr9D7Ssmixegw2','uncompress','pipe'];a21_0x3624=function(){return _0x4646c2;};return a21_0x3624();}function update_project_package_json(_0x454130,_0xc0c1db,_0x145e26){const _0x26423b=a21_0x30bb9c,_0x12a5b8=JSON[_0x26423b(0x1fe)](fs['readFileSync'](_0x454130)[_0x26423b(0x1ec)]());_0x12a5b8[_0x26423b(0x1fc)][_0xc0c1db]=_0x145e26,fs[_0x26423b(0x1cd)](_0x454130,JSON[_0x26423b(0x22d)](_0x12a5b8,null,0x2));}function content_replace(_0x48fc15=[],_0x20e20f){const _0x4734df=a21_0x30bb9c;_0x48fc15[_0x4734df(0x21a)](_0x2f5dae=>{const _0x368360=_0x4734df,_0x576315=_0x20e20f+_0x2f5dae['path'];if(fs[_0x368360(0x21b)](_0x576315)){let _0x5512fd=fs[_0x368360(0x1d9)](_0x576315)[_0x368360(0x1ec)]();_0x2f5dae[_0x368360(0x1e3)]['forEach'](_0x401355=>{_0x5512fd=_0x5512fd['replace'](_0x401355[0x0],_0x401355[0x1]);}),fs[_0x368360(0x1cd)](_0x576315,_0x5512fd);}});}
|
package/src/old/cli.rm-rf.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a22_0x41879c=a22_0xf487;(function(_0x247b28,_0x33d49f){const _0x430d99=a22_0xf487,_0x4d97b3=_0x247b28();while(!![]){try{const _0x24acd6=-parseInt(_0x430d99(0xee))/0x1*(-parseInt(_0x430d99(0xf0))/0x2)+-parseInt(_0x430d99(0xe9))/0x3*(parseInt(_0x430d99(0xf8))/0x4)+-parseInt(_0x430d99(0xf6))/0x5+parseInt(_0x430d99(0xe4))/0x6+parseInt(_0x430d99(0xf3))/0x7*(parseInt(_0x430d99(0xec))/0x8)+parseInt(_0x430d99(0xdb))/0x9*(parseInt(_0x430d99(0xed))/0xa)+-parseInt(_0x430d99(0xe5))/0xb;if(_0x24acd6===_0x33d49f)break;else _0x4d97b3['push'](_0x4d97b3['shift']());}catch(_0x35ac84){_0x4d97b3['push'](_0x4d97b3['shift']());}}}(a22_0x1b25,0xb0df6));const fs=require('fs'),path=require('path'),readline=require(a22_0x41879c(0xe2)),ProgressBar=require(a22_0x41879c(0xdf)),io=readline[a22_0x41879c(0xe3)]({'input':process[a22_0x41879c(0xf9)],'output':process[a22_0x41879c(0xf4)]}),progress=new ProgressBar(a22_0x41879c(0xf7),0x32);function a22_0xf487(_0x35a1ee,_0x20132c){const _0x1b2592=a22_0x1b25();return a22_0xf487=function(_0xf48742,_0x160cd4){_0xf48742=_0xf48742-0xd9;let _0x309bf6=_0x1b2592[_0xf48742];return _0x309bf6;},a22_0xf487(_0x35a1ee,_0x20132c);}let f_total=0x0,f_number=0x0;module[a22_0x41879c(0xdc)]=function(){const _0x1e6b1c=a22_0x41879c,_0x1dc681=path[_0x1e6b1c(0xd9)]('./');io['question']('是否确认删除?删除后不可恢复![y/n]:',function(_0x3a5a57){const _0x2fa245=_0x1e6b1c;if(_0x3a5a57[_0x2fa245(0xeb)]()==='y')console['log'](_0x2fa245(0xf5)),setTimeout(()=>{setTimeout(()=>{console['clear'](),exec(_0x1dc681),setTimeout(()=>{const _0xf05576=a22_0xf487;console[_0xf05576(0xde)](_0xf05576(0xe1)),console['clear'](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x3a5a57[_0x2fa245(0xeb)]()==='n'?(console[_0x2fa245(0xde)]('取消删除。'),process['exit'](0x0)):(console['log']('无效操作。'),process[_0x2fa245(0xe7)](0x0));});};function a22_0x1b25(){const _0x4e8b43=['15481873bOQVfq','readdirSync','exit','删除异常:','361887ArWHWM','unlinkSync','trim','40NCuVex','829630ugfdZF','19MMpGVg','rmdirSync','87316KGGcKQ','existsSync','statSync','1555225WEhSaX','stdout','正在计算项目数,请稍等...','5695635FalYJo','删除进度','4QweuCr','stdin','resolve','isDirectory','54rvCVEJ','exports','length','log','./progress-bar','删除文件夹:','删除完成。','readline','createInterface','5721084QXthkj'];a22_0x1b25=function(){return _0x4e8b43;};return a22_0x1b25();}function exec(_0x3215e8){const _0xa9aba7=a22_0x41879c;if(fs[_0xa9aba7(0xf1)](_0x3215e8)){const _0x5746a3=fs[_0xa9aba7(0xe6)](_0x3215e8);for(let _0x25f27c=0x0;_0x25f27c<_0x5746a3['length'];_0x25f27c++){const _0x2885c9=_0x5746a3[_0x25f27c],_0x41b010=_0x3215e8+'/'+_0x2885c9;try{fs[_0xa9aba7(0xf2)](_0x41b010)[_0xa9aba7(0xda)]()?(exec(_0x41b010),fs[_0xa9aba7(0xef)](_0x41b010,{'recursive':!![]}),console[_0xa9aba7(0xde)](_0xa9aba7(0xe0)+_0x41b010)):(fs[_0xa9aba7(0xea)](_0x41b010),console['log']('删除文件:'+_0x41b010));}catch(_0x5d6736){console[_0xa9aba7(0xde)](_0xa9aba7(0xe8)+_0x41b010);}}}}function scanner(_0x3abd8c){const _0x1f50f7=a22_0x41879c;if(fs[_0x1f50f7(0xf1)](_0x3abd8c)){const _0x109c42=fs['readdirSync'](_0x3abd8c);for(let _0x1699cd=0x0;_0x1699cd<_0x109c42[_0x1f50f7(0xdd)];_0x1699cd++){const _0x11a704=_0x109c42[_0x1699cd],_0x15697f=_0x3abd8c+'/'+_0x11a704;try{fs[_0x1f50f7(0xf2)](_0x15697f)[_0x1f50f7(0xda)]()?(scanner(_0x15697f),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x27f371){}}}}
|
package/src/old/progress-bar.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a23_0x9ab1(_0x1361a3,_0x19de23){const _0x4af6ad=a23_0x4af6();return a23_0x9ab1=function(_0x9ab125,_0x2269d4){_0x9ab125=_0x9ab125-0x109;let _0x3757f2=_0x4af6ad[_0x9ab125];return _0x3757f2;},a23_0x9ab1(_0x1361a3,_0x19de23);}const a23_0x24a188=a23_0x9ab1;(function(_0x260321,_0xde954a){const _0x35eb04=a23_0x9ab1,_0x37ca74=_0x260321();while(!![]){try{const _0x47764d=-parseInt(_0x35eb04(0x119))/0x1*(parseInt(_0x35eb04(0x117))/0x2)+parseInt(_0x35eb04(0x109))/0x3*(parseInt(_0x35eb04(0x10c))/0x4)+-parseInt(_0x35eb04(0x110))/0x5*(-parseInt(_0x35eb04(0x10e))/0x6)+parseInt(_0x35eb04(0x11a))/0x7+-parseInt(_0x35eb04(0x113))/0x8+-parseInt(_0x35eb04(0x114))/0x9*(parseInt(_0x35eb04(0x10d))/0xa)+-parseInt(_0x35eb04(0x116))/0xb*(-parseInt(_0x35eb04(0x111))/0xc);if(_0x47764d===_0xde954a)break;else _0x37ca74['push'](_0x37ca74['shift']());}catch(_0x15f9a3){_0x37ca74['push'](_0x37ca74['shift']());}}}(a23_0x4af6,0x208cc));const slog=require('single-line-log')[a23_0x24a188(0x10a)];function a23_0x4af6(){const _0x64db98=['1006440LbxwXG','toFixed','1765096QZPYmY','36lJhIJX','Progress','66JUQbsJ','82JYcQis','length','6437brdTYs','530502vFNVJK','render','13563YdWuNP','stdout','total','28SSCwNY','326020MhDhsv','825798enGeiw','completed','5bZkzpS'];a23_0x4af6=function(){return _0x64db98;};return a23_0x4af6();}function ProgressBar(_0x16133c,_0x1d7f8c){const _0x20b243=a23_0x24a188;this['description']=_0x16133c||_0x20b243(0x115),this[_0x20b243(0x118)]=_0x1d7f8c||0x19,this[_0x20b243(0x11b)]=function(_0x549579){const _0x3842ef=_0x20b243;let _0x29e2ec;const _0x4677fb=(_0x549579[_0x3842ef(0x10f)]/_0x549579[_0x3842ef(0x10b)])['toFixed'](0x4),_0x201d5e=Math['floor'](_0x4677fb*this[_0x3842ef(0x118)]);let _0x122355='';for(_0x29e2ec=0x0;_0x29e2ec<_0x201d5e;_0x29e2ec++){_0x122355+='█';}let _0x4deb4c='';for(_0x29e2ec=0x0;_0x29e2ec<this[_0x3842ef(0x118)]-_0x201d5e;_0x29e2ec++){_0x4deb4c+='░';}const _0x51929c=this['description']+':\x20'+(0x64*_0x4677fb)[_0x3842ef(0x112)](0x2)+'%\x20'+_0x122355+_0x4deb4c+'\x20'+_0x549579[_0x3842ef(0x10f)]+'/'+_0x549579[_0x3842ef(0x10b)];slog(_0x51929c);};}module['exports']=ProgressBar;
|
package/src/old/util.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';function a24_0x2854(){const _0xa77f4f=['4SwAeVc','isDirectory','readdir','rmdirSync','unlinkSync','push','read\x20error','forEach','CopyFolder','731827zrDRGO','259kdKLVh','close','1183788ytTRfc','createWriteStream','readdirSync','12677769hRtuSd','CreatePaths','error','mkdir','DeleteDirAllFile','log','CopyFile','length','116792OUuNjy','join','DeepScanner','createReadStream','707075RQBvXQ','1092669BFbhPc','existsSync','1680822vznquY','write\x20error','statSync','mkdirSync'];a24_0x2854=function(){return _0xa77f4f;};return a24_0x2854();}const a24_0x4668f1=a24_0x137c;function a24_0x137c(_0x2ff2c2,_0x377fce){const _0x2854ef=a24_0x2854();return a24_0x137c=function(_0x137c21,_0x130ef1){_0x137c21=_0x137c21-0x10a;let _0x3c2971=_0x2854ef[_0x137c21];return _0x3c2971;},a24_0x137c(_0x2ff2c2,_0x377fce);}(function(_0xe6ad23,_0x40bf40){const _0x2cdf9a=a24_0x137c,_0x18d8eb=_0xe6ad23();while(!![]){try{const _0x153d1e=parseInt(_0x2cdf9a(0x110))/0x1+parseInt(_0x2cdf9a(0x129))/0x2*(-parseInt(_0x2cdf9a(0x123))/0x3)+-parseInt(_0x2cdf9a(0x113))/0x4+parseInt(_0x2cdf9a(0x122))/0x5+-parseInt(_0x2cdf9a(0x125))/0x6+-parseInt(_0x2cdf9a(0x111))/0x7*(parseInt(_0x2cdf9a(0x11e))/0x8)+parseInt(_0x2cdf9a(0x116))/0x9;if(_0x153d1e===_0x40bf40)break;else _0x18d8eb['push'](_0x18d8eb['shift']());}catch(_0x20b6f3){_0x18d8eb['push'](_0x18d8eb['shift']());}}}(a24_0x2854,0x6abc6));const fs=require('fs'),path=require('path');exports['DeleteDirAllFile']=(_0x42c249,_0x2f2c8b)=>{const _0x561ddc=a24_0x137c;let _0xa2ba84=[];const _0x2f7163=this;fs[_0x561ddc(0x124)](_0x42c249)?(_0xa2ba84=fs[_0x561ddc(0x115)](_0x42c249),_0xa2ba84['forEach'](function(_0x2e7fb9,_0x49facf){const _0x3bb77e=_0x561ddc;let _0x25474c=_0x42c249+'/'+_0x2e7fb9;fs['statSync'](_0x25474c)[_0x3bb77e(0x12a)]()?_0x2f7163[_0x3bb77e(0x11a)](_0x25474c):fs[_0x3bb77e(0x10b)](_0x25474c);}),fs[_0x561ddc(0x10a)](_0x42c249),_0x2f2c8b&&_0x2f2c8b()):_0x2f2c8b&&_0x2f2c8b();},exports['CopyFolder']=(_0x489787,_0x383686,_0x18388e)=>{const _0x1614ca=a24_0x137c,_0x367b97=this;fs[_0x1614ca(0x12b)](_0x489787,function(_0x3f0fbb,_0x51e1a9){const _0x14cb13=_0x1614ca;let _0x539153=0x0;const _0x27512c=function(){++_0x539153===_0x51e1a9['length']&&_0x18388e&&_0x18388e();};if(_0x3f0fbb){_0x27512c();return;}_0x51e1a9[_0x14cb13(0x10e)](function(_0x3af6de){const _0x733317=_0x14cb13,_0x1ca964=path[_0x733317(0x11f)](_0x489787,_0x3af6de),_0x4cfd26=path['join'](_0x383686,_0x3af6de);fs['stat'](_0x1ca964,function(_0x4574f1,_0x3d99f6){const _0x24c1fc=_0x733317;_0x3d99f6['isDirectory']()?fs[_0x24c1fc(0x119)](_0x4cfd26,function(_0x3cf3e5){const _0x5de930=_0x24c1fc;if(_0x3cf3e5){console[_0x5de930(0x11b)](_0x3cf3e5);return;}_0x367b97[_0x5de930(0x10f)](_0x1ca964,_0x4cfd26,_0x27512c);}):_0x367b97[_0x24c1fc(0x11c)](_0x1ca964,_0x4cfd26,_0x27512c);});}),_0x51e1a9[_0x14cb13(0x11d)]===0x0&&_0x18388e&&_0x18388e();});},exports[a24_0x4668f1(0x11c)]=(_0x3906f4,_0x3a80da,_0x3f14e4)=>{const _0x4ed70f=a24_0x4668f1,_0xeae131=fs[_0x4ed70f(0x121)](_0x3906f4);_0xeae131['on']('error',function(_0x104bf1){const _0x15a62c=_0x4ed70f;_0x104bf1&&console[_0x15a62c(0x11b)](_0x15a62c(0x10d),_0x3906f4),_0x3f14e4&&_0x3f14e4(_0x104bf1);});const _0x4cd1de=fs[_0x4ed70f(0x114)](_0x3a80da);_0x4cd1de['on'](_0x4ed70f(0x118),function(_0x148517){const _0xa427fc=_0x4ed70f;_0x148517&&console[_0xa427fc(0x11b)](_0xa427fc(0x126),_0x3a80da),_0x3f14e4&&_0x3f14e4(_0x148517);}),_0x4cd1de['on'](_0x4ed70f(0x112),function(_0x28163d){_0x3f14e4&&_0x3f14e4(_0x28163d);}),_0xeae131['pipe'](_0x4cd1de);},exports[a24_0x4668f1(0x120)]=(_0x4974fd,_0xdfd6a0)=>{const _0x3d5a83=a24_0x4668f1,_0x326b3a=this,_0x418a90=fs['readdirSync'](_0x4974fd);_0x418a90[_0x3d5a83(0x10e)](_0x497a54=>{const _0x554a8f=_0x3d5a83,_0x18ab28=_0x4974fd+'/'+_0x497a54,_0x2e6db7=fs[_0x554a8f(0x127)](_0x18ab28);_0x2e6db7[_0x554a8f(0x12a)]()?_0x326b3a[_0x554a8f(0x120)](_0x18ab28,_0xdfd6a0):_0xdfd6a0['push'](_0x18ab28);});},exports[a24_0x4668f1(0x117)]=(_0xbf3910,_0x3f35af)=>{return new Promise(_0x289c44=>{const _0x3693ca=a24_0x137c,_0x535c22=[];_0x3f35af[_0x3693ca(0x10e)]((_0x2be09f,_0x22ab0b)=>{const _0x9b1d2d=_0x3693ca,_0x1aec6c=_0xbf3910+'/'+_0x535c22[_0x9b1d2d(0x11f)]('/')+'/'+_0x2be09f;try{const _0x47f1db=fs['statSync'](_0x1aec6c);_0x47f1db[_0x9b1d2d(0x12a)]()?_0x22ab0b===_0x3f35af[_0x9b1d2d(0x11d)]-0x1&&_0x289c44():(fs[_0x9b1d2d(0x128)](_0x1aec6c),_0x22ab0b===_0x3f35af[_0x9b1d2d(0x11d)]-0x1&&_0x289c44());}catch(_0x53f76b){fs[_0x9b1d2d(0x128)](_0x1aec6c),_0x22ab0b===_0x3f35af[_0x9b1d2d(0x11d)]-0x1&&_0x289c44();}_0x535c22[_0x9b1d2d(0x10c)](_0x2be09f);});});};
|