jjb-cmd 2.1.12 → 2.1.13

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 CHANGED
@@ -1,6 +1,10 @@
1
1
  <h1>重庆市建教帮科技有限公司-前端脚手架</h1>
2
2
  <h3>更新日志:</h3>
3
3
  <ul>
4
+ <li>
5
+ <p>2.1.13</p>
6
+ <div>增加远程更新配置文件</div>
7
+ </li>
4
8
  <li>
5
9
  <p>2.1.12</p>
6
10
  <div>增加install.app</div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jjb-cmd",
3
3
  "use": "no",
4
- "version": "2.1.12",
4
+ "version": "2.1.13",
5
5
  "description": "jjb脚手架工具",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -1 +1 @@
1
- const a0_0x38b1fd=a0_0x6677;(function(_0x54f158,_0x3e2e4e){const _0x13a2f5=a0_0x6677,_0x4d0059=_0x54f158();while(!![]){try{const _0x1d0d52=-parseInt(_0x13a2f5(0x1e4))/0x1+parseInt(_0x13a2f5(0x1e9))/0x2+parseInt(_0x13a2f5(0x1f0))/0x3+parseInt(_0x13a2f5(0x1da))/0x4+parseInt(_0x13a2f5(0x1ec))/0x5*(-parseInt(_0x13a2f5(0x1e7))/0x6)+parseInt(_0x13a2f5(0x1eb))/0x7*(-parseInt(_0x13a2f5(0x1e5))/0x8)+-parseInt(_0x13a2f5(0x1dc))/0x9*(-parseInt(_0x13a2f5(0x1f2))/0xa);if(_0x1d0d52===_0x3e2e4e)break;else _0x4d0059['push'](_0x4d0059['shift']());}catch(_0xb26933){_0x4d0059['push'](_0x4d0059['shift']());}}}(a0_0x6495,0x7c543));const axios=require(a0_0x38b1fd(0x1f4)),fs=require('fs'),path=require(a0_0x38b1fd(0x1df)),{API_HOST}=require(a0_0x38b1fd(0x1e3));module[a0_0x38b1fd(0x1e0)]=_0x4b6707=>{const _0x2624e1=a0_0x38b1fd;console[_0x2624e1(0x1ee)](_0x4b6707);const [_0x491265,_0x261882]=_0x4b6707;axios[_0x2624e1(0x1e6)](API_HOST+'/api/auth',{'username':_0x491265,'password':_0x261882})[_0x2624e1(0x1f1)](_0x3f9fca=>{const _0x47f8a5=_0x2624e1,_0x30309d=path[_0x47f8a5(0x1e1)](__dirname,'../../../.auth');_0x3f9fca[_0x47f8a5(0x1dd)][_0x47f8a5(0x1de)]?(console[_0x47f8a5(0x1ee)](_0x47f8a5(0x1ef)),fs[_0x47f8a5(0x1e2)](_0x30309d,_0x491265+'/'+_0x261882)):(console['log'](_0x47f8a5(0x1f3)),fs[_0x47f8a5(0x1db)](_0x30309d)&&fs[_0x47f8a5(0x1e8)](_0x30309d));})[_0x2624e1(0x1ed)](_0x571c59=>{const _0x178efa=_0x2624e1;console[_0x178efa(0x1ee)](_0x178efa(0x1ea));});};function a0_0x6677(_0x5cd1e2,_0x1da914){const _0x64958e=a0_0x6495();return a0_0x6677=function(_0x66775e,_0x555ccf){_0x66775e=_0x66775e-0x1da;let _0x420df7=_0x64958e[_0x66775e];return _0x420df7;},a0_0x6677(_0x5cd1e2,_0x1da914);}function a0_0x6495(){const _0x1d3408=['status','path','exports','join','writeFileSync','../cmd.install/config','65306IhXUpg','46856LxDXHP','post','54bMdhFJ','unlinkSync','709168lnQmjH','Auth\x20NetWork\x20Fail!','518LuBQla','261285ypRUDt','catch','log','Auth\x20Success!','965568MwjgZQ','then','3992470BUTRwp','Auth\x20Fail!','axios','1610404zIZIoW','existsSync','9pjUWxa','data'];a0_0x6495=function(){return _0x1d3408;};return a0_0x6495();}
1
+ const a0_0x118345=a0_0x2e6b;(function(_0x469702,_0x25055d){const _0x3d7338=a0_0x2e6b,_0x43af79=_0x469702();while(!![]){try{const _0x4a2073=-parseInt(_0x3d7338(0x126))/0x1+parseInt(_0x3d7338(0x118))/0x2*(parseInt(_0x3d7338(0x120))/0x3)+parseInt(_0x3d7338(0x12a))/0x4+parseInt(_0x3d7338(0x128))/0x5+-parseInt(_0x3d7338(0x129))/0x6*(parseInt(_0x3d7338(0x113))/0x7)+-parseInt(_0x3d7338(0x125))/0x8+-parseInt(_0x3d7338(0x119))/0x9;if(_0x4a2073===_0x25055d)break;else _0x43af79['push'](_0x43af79['shift']());}catch(_0xe5e338){_0x43af79['push'](_0x43af79['shift']());}}}(a0_0xc2a7,0x327dd));function a0_0xc2a7(){const _0x29a947=['then','../../../.auth','catch','existsSync','18nQRqvH','1627398UhYcNr','exports','axios','Auth\x20Fail!','data','writeFileSync','path','43014tzfxgW','post','Auth\x20Success!','../cmd.install/config','/api/auth','1107800ueUlEX','46256NDlIPD','log','1521440cVwJaE','1176rvEEOj','830544OhVruL','2450XisJiP'];a0_0xc2a7=function(){return _0x29a947;};return a0_0xc2a7();}function a0_0x2e6b(_0x4fdf87,_0x59eb7a){const _0xc2a757=a0_0xc2a7();return a0_0x2e6b=function(_0x2e6b9d,_0x3f50c8){_0x2e6b9d=_0x2e6b9d-0x113;let _0x429eb0=_0xc2a757[_0x2e6b9d];return _0x429eb0;},a0_0x2e6b(_0x4fdf87,_0x59eb7a);}const axios=require(a0_0x118345(0x11b)),fs=require('fs'),path=require(a0_0x118345(0x11f)),{API_HOST}=require(a0_0x118345(0x123));module[a0_0x118345(0x11a)]=_0x2cb323=>{const _0x4faae7=a0_0x118345;console[_0x4faae7(0x127)](_0x2cb323);const [_0x24c436,_0x165a4a]=_0x2cb323;axios[_0x4faae7(0x121)](API_HOST+_0x4faae7(0x124),{'username':_0x24c436,'password':_0x165a4a})[_0x4faae7(0x114)](_0x156150=>{const _0x5eead0=_0x4faae7,_0x2c30cb=path['join'](__dirname,_0x5eead0(0x115));_0x156150[_0x5eead0(0x11d)]['status']?(console[_0x5eead0(0x127)](_0x5eead0(0x122)),fs[_0x5eead0(0x11e)](_0x2c30cb,_0x24c436+'/'+_0x165a4a)):(console[_0x5eead0(0x127)](_0x5eead0(0x11c)),fs[_0x5eead0(0x117)](_0x2c30cb)&&fs['unlinkSync'](_0x2c30cb));})[_0x4faae7(0x116)](_0x84cc8b=>{const _0x23b828=_0x4faae7;console[_0x23b828(0x127)]('Auth\x20NetWork\x20Fail!');});};
@@ -1 +1 @@
1
- const a1_0x257595=a1_0x3338;function a1_0x3338(_0x18c2f0,_0x119890){const _0x1b3fef=a1_0x1b3f();return a1_0x3338=function(_0x333848,_0x548c8e){_0x333848=_0x333848-0x13d;let _0x22f149=_0x1b3fef[_0x333848];return _0x22f149;},a1_0x3338(_0x18c2f0,_0x119890);}(function(_0xc77c67,_0x15d679){const _0x216c15=a1_0x3338,_0x1bb9f9=_0xc77c67();while(!![]){try{const _0x173dee=-parseInt(_0x216c15(0x15d))/0x1+parseInt(_0x216c15(0x160))/0x2+parseInt(_0x216c15(0x14a))/0x3*(parseInt(_0x216c15(0x15b))/0x4)+-parseInt(_0x216c15(0x14d))/0x5*(-parseInt(_0x216c15(0x161))/0x6)+parseInt(_0x216c15(0x147))/0x7*(parseInt(_0x216c15(0x15a))/0x8)+parseInt(_0x216c15(0x151))/0x9*(parseInt(_0x216c15(0x162))/0xa)+-parseInt(_0x216c15(0x13d))/0xb;if(_0x173dee===_0x15d679)break;else _0x1bb9f9['push'](_0x1bb9f9['shift']());}catch(_0x228b2c){_0x1bb9f9['push'](_0x1bb9f9['shift']());}}}(a1_0x1b3f,0xd7fa9));function a1_0x1b3f(){const _0x5ba3b0=['203IWebiQ','-master-','compressing','40656bjUcui','/unzip/','zip','1045JBOXZH','不存在。','DeleteDirAllFile','indexOf','9668817QtKTVJ','/api/v4/projects/','/repository/archive.zip?private_token=','tmpdir','CopyFolder','mkdirSync','close','createWriteStream','../cmd.install/config','11128NFGJYf','224aQvfHH','&ref=master','27303CSokUW','log','../../old/util','2584032IHPuRy','32514SRKGFL','10McoNeY','path','37248189Vqrpwe','resolve','初始化完成!','projectId','forEach','exit','token','exports','uncompress','readdirSync'];a1_0x1b3f=function(){return _0x5ba3b0;};return a1_0x1b3f();}const path=require(a1_0x257595(0x163)),{f_file_copy}=require('../cmd.install/tools'),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require(a1_0x257595(0x159)),fs=require('fs'),os=require('os'),utils=require(a1_0x257595(0x15f)),request=require('request'),compressing=require(a1_0x257595(0x149));module[a1_0x257595(0x144)]=_0x4338b1=>{const _0x3b92ba=a1_0x257595,_0x20387b=path[_0x3b92ba(0x13e)]('./'),_0x5bb3ef=CLOUD_PROJECT[_0x4338b1]||undefined;if(_0x5bb3ef){const _0x373c57=os[_0x3b92ba(0x154)](),_0x5c54dc=_0x373c57+'/'+GIT_TEMP_DIR+'/'+_0x4338b1+'.zip',_0x2b6276=_0x373c57+'/'+GIT_TEMP_DIR+_0x3b92ba(0x14b);utils[_0x3b92ba(0x14f)](_0x373c57+'/'+GIT_TEMP_DIR,()=>{const _0x17d203=_0x3b92ba;fs[_0x17d203(0x156)](_0x373c57+'/'+GIT_TEMP_DIR);let _0x5887d6=fs[_0x17d203(0x158)](_0x5c54dc);request(GIT_HOST+_0x17d203(0x152)+_0x5bb3ef[_0x17d203(0x140)]+_0x17d203(0x153)+_0x5bb3ef[_0x17d203(0x143)]+_0x17d203(0x15c))['pipe'](_0x5887d6)['on'](_0x17d203(0x157),()=>{const _0x5f4b7e=_0x17d203;fs[_0x5f4b7e(0x156)](_0x2b6276),compressing[_0x5f4b7e(0x14c)][_0x5f4b7e(0x145)](_0x5c54dc,_0x2b6276)['then'](()=>{setTimeout(()=>{const _0x21a50c=a1_0x3338;fs[_0x21a50c(0x146)](_0x2b6276)[_0x21a50c(0x141)](_0x1b2bf1=>{const _0x5b5bdd=_0x21a50c;_0x1b2bf1[_0x5b5bdd(0x150)](_0x5b5bdd(0x148))!==-0x1&&utils[_0x5b5bdd(0x155)](_0x2b6276+_0x1b2bf1,_0x20387b,()=>{const _0x4cb601=_0x5b5bdd;console['log'](_0x4cb601(0x13f)),process[_0x4cb601(0x142)](0x0);});});},0x7d0);});});});}else console[_0x3b92ba(0x15e)]('【Error】:初始化失败,'+_0x4338b1+_0x3b92ba(0x14e));};
1
+ function a1_0x4d3f(_0x3ad822,_0x5ce3be){const _0x5668d3=a1_0x5668();return a1_0x4d3f=function(_0x4d3f6e,_0x28b106){_0x4d3f6e=_0x4d3f6e-0x1f0;let _0x3eb15c=_0x5668d3[_0x4d3f6e];return _0x3eb15c;},a1_0x4d3f(_0x3ad822,_0x5ce3be);}const a1_0xbccdac=a1_0x4d3f;(function(_0x17d3ab,_0x1921f1){const _0x38f357=a1_0x4d3f,_0x527653=_0x17d3ab();while(!![]){try{const _0x3d0975=parseInt(_0x38f357(0x20c))/0x1*(-parseInt(_0x38f357(0x1f4))/0x2)+-parseInt(_0x38f357(0x20a))/0x3*(parseInt(_0x38f357(0x210))/0x4)+-parseInt(_0x38f357(0x1f3))/0x5*(parseInt(_0x38f357(0x1fb))/0x6)+-parseInt(_0x38f357(0x1f6))/0x7*(parseInt(_0x38f357(0x216))/0x8)+parseInt(_0x38f357(0x201))/0x9+parseInt(_0x38f357(0x203))/0xa*(parseInt(_0x38f357(0x1f5))/0xb)+parseInt(_0x38f357(0x207))/0xc;if(_0x3d0975===_0x1921f1)break;else _0x527653['push'](_0x527653['shift']());}catch(_0x41ed9e){_0x527653['push'](_0x527653['shift']());}}}(a1_0x5668,0x3d20f));const path=require(a1_0xbccdac(0x1f7)),{f_file_copy}=require(a1_0xbccdac(0x1fd)),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require('../cmd.install/config'),fs=require('fs'),os=require('os'),utils=require(a1_0xbccdac(0x208)),request=require('request'),compressing=require(a1_0xbccdac(0x213));module[a1_0xbccdac(0x20d)]=_0x259328=>{const _0x3dab34=a1_0xbccdac,_0x31fb27=path[_0x3dab34(0x209)]('./'),_0x263c30=CLOUD_PROJECT[_0x259328]||undefined;if(_0x263c30){const _0x70c801=os[_0x3dab34(0x211)](),_0x4a8858=_0x70c801+'/'+GIT_TEMP_DIR+'/'+_0x259328+_0x3dab34(0x1f8),_0xe0d7be=_0x70c801+'/'+GIT_TEMP_DIR+_0x3dab34(0x20e);utils[_0x3dab34(0x1fe)](_0x70c801+'/'+GIT_TEMP_DIR,()=>{const _0x3fbf39=_0x3dab34;fs['mkdirSync'](_0x70c801+'/'+GIT_TEMP_DIR);let _0x31cf22=fs[_0x3fbf39(0x215)](_0x4a8858);request(GIT_HOST+_0x3fbf39(0x200)+_0x263c30[_0x3fbf39(0x1fc)]+_0x3fbf39(0x1ff)+_0x263c30['token']+'&ref=master')[_0x3fbf39(0x212)](_0x31cf22)['on'](_0x3fbf39(0x20b),()=>{const _0x2fc0b0=_0x3fbf39;fs[_0x2fc0b0(0x1fa)](_0xe0d7be),compressing[_0x2fc0b0(0x214)][_0x2fc0b0(0x1f2)](_0x4a8858,_0xe0d7be)[_0x2fc0b0(0x205)](()=>{setTimeout(()=>{const _0x3960f7=a1_0x4d3f;fs[_0x3960f7(0x1f9)](_0xe0d7be)[_0x3960f7(0x204)](_0x46f158=>{const _0x3a8f9a=_0x3960f7;_0x46f158['indexOf'](_0x3a8f9a(0x206))!==-0x1&&utils['CopyFolder'](_0xe0d7be+_0x46f158,_0x31fb27,()=>{const _0xec74fa=_0x3a8f9a;console['log'](_0xec74fa(0x202)),process[_0xec74fa(0x1f0)](0x0);});});},0x7d0);});});});}else console['log'](_0x3dab34(0x1f1)+_0x259328+_0x3dab34(0x20f));};function a1_0x5668(){const _0x4f60cf=['42cAEyuF','projectId','../cmd.install/tools','DeleteDirAllFile','/repository/archive.zip?private_token=','/api/v4/projects/','4066578mPfhPP','初始化完成!','2508780vXzJzq','forEach','then','-master-','6582648zpCPxx','../../old/util','resolve','393whgtdh','close','1njfCvm','exports','/unzip/','不存在。','11372KccXJg','tmpdir','pipe','compressing','zip','createWriteStream','262688RxUSDM','exit','【Error】:初始化失败,','uncompress','282575gwEXzs','400034LQCiBP','11sTblXt','7nEvPtI','path','.zip','readdirSync','mkdirSync'];a1_0x5668=function(){return _0x4f60cf;};return a1_0x5668();}
@@ -1 +1 @@
1
- const a2_0x2751a1=a2_0x4b96;(function(_0x5b59d2,_0x57d616){const _0xacbf55=a2_0x4b96,_0x32cf24=_0x5b59d2();while(!![]){try{const _0x121dc1=-parseInt(_0xacbf55(0x104))/0x1+-parseInt(_0xacbf55(0x106))/0x2*(-parseInt(_0xacbf55(0x102))/0x3)+parseInt(_0xacbf55(0x115))/0x4+-parseInt(_0xacbf55(0x10c))/0x5+parseInt(_0xacbf55(0x10d))/0x6*(-parseInt(_0xacbf55(0x108))/0x7)+parseInt(_0xacbf55(0x117))/0x8+parseInt(_0xacbf55(0xfc))/0x9;if(_0x121dc1===_0x57d616)break;else _0x32cf24['push'](_0x32cf24['shift']());}catch(_0x20bcfa){_0x32cf24['push'](_0x32cf24['shift']());}}}(a2_0x464b,0x99a7c));const os=require('os');exports['API_HOST']=a2_0x2751a1(0x111),exports[a2_0x2751a1(0x101)]='http://192.168.1.242:10985',exports['GIT_TEMP_DIR']=a2_0x2751a1(0x100)+Date[a2_0x2751a1(0x116)](),exports[a2_0x2751a1(0x10e)]=a2_0x2751a1(0xfd),exports[a2_0x2751a1(0x10a)]={'development':a2_0x2751a1(0x112),'production':a2_0x2751a1(0x107),'test':a2_0x2751a1(0x109)},exports[a2_0x2751a1(0x114)]={'common':{'token':a2_0x2751a1(0xfb),'projectId':0x117},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154},'jjb-dva-runtime':{'token':a2_0x2751a1(0xff),'projectId':0x23b},'jjb-common-lib':{'token':a2_0x2751a1(0x105),'projectId':0x23c},'jjb-common-decorator':{'token':a2_0x2751a1(0x113),'projectId':0x23e},'vue-unisass-component':{'token':'d4wQ7dzEjYPsgVbKnYei','projectId':0x153},'react-component':{'token':a2_0x2751a1(0x103),'projectId':0x33f},'micro-app-ts':{'token':'7V-YUxhmh51Mdhgx4rq4','projectId':0x33e},'micro-app':{'token':a2_0x2751a1(0xfe),'projectId':0x33d},'lib':{'token':'ywPtT3xCG6b_vAxp6sTj','projectId':0x33c}},exports[a2_0x2751a1(0x110)]=os[a2_0x2751a1(0x10f)]()+'\x5c'+exports[a2_0x2751a1(0x10b)];function a2_0x4b96(_0x254771,_0x2ed412){const _0x464b19=a2_0x464b();return a2_0x4b96=function(_0x4b965c,_0x4b5313){_0x4b965c=_0x4b965c-0xfb;let _0x2af4b0=_0x464b19[_0x4b965c];return _0x2af4b0;},a2_0x4b96(_0x254771,_0x2ed412);}function a2_0x464b(){const _0x1f016e=['25102mPWlLX','prod','28hiGxrA','test','GIT_JAVA_ENV_JSON','GIT_TEMP_DIR','5307275cgOsnr','1299528aMbibG','GIT_TEMP_JAVA','tmpdir','TEMPLATE_FOLDER','http://120.26.210.58:8088','dev','gPSit8aJsLVmNzuQ5Cy4','CLOUD_PROJECT','2410736sAFAqJ','now','9888672tWeUAs','G4HJRsHr9D7Ssmixegw2','10337346bPXtup','jjb-assembly-java','FqNrmFAgrxasMrbbjvq9','hLqARY89CN6fUD3yg4NL','jjb-assembly-','GIT_HOST','90VvavTd','snBxJ2i5kYarGGcsojhY','806713ELQNkv','e9njpBd1nS_LREN8GFpR'];a2_0x464b=function(){return _0x1f016e;};return a2_0x464b();}
1
+ function a2_0x95c6(_0x1c3a70,_0x9ad378){const _0x4d92a5=a2_0x4d92();return a2_0x95c6=function(_0x95c6f0,_0x5de8a8){_0x95c6f0=_0x95c6f0-0xb1;let _0x47fa9b=_0x4d92a5[_0x95c6f0];return _0x47fa9b;},a2_0x95c6(_0x1c3a70,_0x9ad378);}function a2_0x4d92(){const _0x114b56=['710OQnTJo','snBxJ2i5kYarGGcsojhY','d4wQ7dzEjYPsgVbKnYei','API_HOST','tmpdir','391AxRzjR','GIT_TEMP_DIR','CONFIG_FILE_HOST','FqNrmFAgrxasMrbbjvq9','4679898VtFSmV','16304yNQqgp','12lvpHsi','http://192.168.1.242:10985','prod','6AInDmM','21064571OjlRcT','GIT_JAVA_ENV_JSON','ywPtT3xCG6b_vAxp6sTj','7V-YUxhmh51Mdhgx4rq4','now','3338MOTHVz','FT3pKzxpRynFkmddJ9Bs','https://cdn.cqjjb.cn/jjb-cloud-config','3318TRkHHf','e9njpBd1nS_LREN8GFpR','jjb-assembly-','62217WzHhvm','hLqARY89CN6fUD3yg4NL','CLOUD_PROJECT','2037676qUWxIQ','TEMPLATE_FOLDER','1688825fdbUIu'];a2_0x4d92=function(){return _0x114b56;};return a2_0x4d92();}const a2_0x3933ba=a2_0x95c6;(function(_0x27a7b2,_0x52be94){const _0x22fb39=a2_0x95c6,_0x42f319=_0x27a7b2();while(!![]){try{const _0x355ac6=parseInt(_0x22fb39(0xca))/0x1*(-parseInt(_0x22fb39(0xb9))/0x2)+-parseInt(_0x22fb39(0xb3))/0x3*(parseInt(_0x22fb39(0xc2))/0x4)+-parseInt(_0x22fb39(0xc4))/0x5+-parseInt(_0x22fb39(0xce))/0x6+-parseInt(_0x22fb39(0xbc))/0x7*(-parseInt(_0x22fb39(0xcf))/0x8)+-parseInt(_0x22fb39(0xbf))/0x9*(-parseInt(_0x22fb39(0xc5))/0xa)+parseInt(_0x22fb39(0xb4))/0xb*(parseInt(_0x22fb39(0xd0))/0xc);if(_0x355ac6===_0x52be94)break;else _0x42f319['push'](_0x42f319['shift']());}catch(_0x3b6fc8){_0x42f319['push'](_0x42f319['shift']());}}}(a2_0x4d92,0x8e3e7));const os=require('os');exports[a2_0x3933ba(0xcc)]=a2_0x3933ba(0xbb),exports[a2_0x3933ba(0xc8)]='http://120.26.210.58:8088',exports['GIT_HOST']=a2_0x3933ba(0xb1),exports[a2_0x3933ba(0xcb)]=a2_0x3933ba(0xbe)+Date[a2_0x3933ba(0xb8)](),exports['GIT_TEMP_JAVA']='jjb-assembly-java',exports[a2_0x3933ba(0xb5)]={'development':'dev','production':a2_0x3933ba(0xb2),'test':'test'},exports[a2_0x3933ba(0xc1)]={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117},'react-admin-component':{'token':a2_0x3933ba(0xba),'projectId':0x154},'jjb-dva-runtime':{'token':a2_0x3933ba(0xc0),'projectId':0x23b},'jjb-common-lib':{'token':a2_0x3933ba(0xbd),'projectId':0x23c},'jjb-common-decorator':{'token':'gPSit8aJsLVmNzuQ5Cy4','projectId':0x23e},'vue-unisass-component':{'token':a2_0x3933ba(0xc7),'projectId':0x153},'react-component':{'token':a2_0x3933ba(0xc6),'projectId':0x33f},'micro-app-ts':{'token':a2_0x3933ba(0xb7),'projectId':0x33e},'micro-app':{'token':a2_0x3933ba(0xcd),'projectId':0x33d},'lib':{'token':a2_0x3933ba(0xb6),'projectId':0x33c}},exports[a2_0x3933ba(0xc3)]=os[a2_0x3933ba(0xc9)]()+'\x5c'+exports[a2_0x3933ba(0xcb)];
@@ -1 +1 @@
1
- const a3_0x5f3a62=a3_0x4e1e;(function(_0x2ebd52,_0x4ef4c9){const _0x258d8c=a3_0x4e1e,_0x1d6b98=_0x2ebd52();while(!![]){try{const _0x33c0c2=-parseInt(_0x258d8c(0xc9))/0x1+parseInt(_0x258d8c(0xdb))/0x2*(-parseInt(_0x258d8c(0xd9))/0x3)+parseInt(_0x258d8c(0xcc))/0x4+-parseInt(_0x258d8c(0xea))/0x5*(parseInt(_0x258d8c(0xd0))/0x6)+-parseInt(_0x258d8c(0xc7))/0x7*(-parseInt(_0x258d8c(0xd6))/0x8)+-parseInt(_0x258d8c(0xe0))/0x9*(parseInt(_0x258d8c(0xca))/0xa)+parseInt(_0x258d8c(0xc6))/0xb;if(_0x33c0c2===_0x4ef4c9)break;else _0x1d6b98['push'](_0x1d6b98['shift']());}catch(_0x20232b){_0x1d6b98['push'](_0x1d6b98['shift']());}}}(a3_0x1c71,0xa6737));const fs=require('fs'),path=require(a3_0x5f3a62(0xdc)),request=require(a3_0x5f3a62(0xc1)),compressing=require(a3_0x5f3a62(0xbd)),{f_rm_rf,f_file_copy,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a3_0x5f3a62(0xdf)),{TEMPLATE_FOLDER}=require(a3_0x5f3a62(0xe4)),start_time=Date[a3_0x5f3a62(0xe9)]();function a3_0x1c71(){const _0x4bc602=['filter','1075867FkoESw','1870gnEYjS','join','869204NbGXHP','_zip','exit','close','348Hmreqx','node_modules','pure_name','exports','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','rmdirSync','8ecDMkf','importList','package.json','21006SUEWFl','readdirSync','274sOUDxi','path','repository','name','./tools','45945fzqXtQ','map','log','includes','./config','pipe','\x5ctypes','unlinkSync','forEach','now','89395OEKlrf','uncompress','installResources','installTarget','length','compress','zip','import_list','compressing','【Error】:安装失败,node_modules目录不存在。','jjb-common-lib','existsSync','request','mkdirSync','index.js','1.0.0','.gitignore','36945073XKlpmb','7928179gKwSNP'];a3_0x1c71=function(){return _0x4bc602;};return a3_0x1c71();}function a3_0x4e1e(_0x3e7968,_0x3ec7b2){const _0x1c715c=a3_0x1c71();return a3_0x4e1e=function(_0x4e1ef6,_0x1689fb){_0x4e1ef6=_0x4e1ef6-0xbc;let _0x5ab93c=_0x1c715c[_0x4e1ef6];return _0x5ab93c;},a3_0x4e1e(_0x3e7968,_0x3ec7b2);}module[a3_0x5f3a62(0xd3)]=()=>{const _0x42bdb3=a3_0x5f3a62,_0xeeed4e=path['resolve']('./'),_0x169299=[_0xeeed4e,'src\x5c'][_0x42bdb3(0xcb)]('\x5c'),_0x11d916=[_0xeeed4e,_0x42bdb3(0xd1)]['join']('\x5c'),_0x3038f4=[_0xeeed4e,_0x42bdb3(0xd8)][_0x42bdb3(0xcb)]('\x5c');if(f_scan_jjb_config_json(_0xeeed4e)){const _0x38281b=f_scan_jjb_config_json_rules(_0xeeed4e);_0x38281b[_0x42bdb3(0xed)]==='node_modules'?!fs[_0x42bdb3(0xc0)](_0x11d916)?(console[_0x42bdb3(0xe2)](_0x42bdb3(0xbe)),process['exit'](0x0)):console[_0x42bdb3(0xe2)](_0x42bdb3(0xd4)):!fs['existsSync'](_0x169299)&&(console[_0x42bdb3(0xe2)]('【Error】:安装失败,src目录不存在。'),process[_0x42bdb3(0xce)](0x0));fs['mkdirSync'](TEMPLATE_FOLDER),f_pull_git_repository(_0x38281b[_0x42bdb3(0xec)])[_0x42bdb3(0xe1)](_0x20f52e=>{const _0x4be55f=_0x42bdb3,_0x35ceeb=fs['createWriteStream'](_0x20f52e[_0x4be55f(0xdc)]);request(_0x20f52e[_0x4be55f(0xdd)])[_0x4be55f(0xe5)](_0x35ceeb)['on'](_0x4be55f(0xcf),()=>{const _0x1f830f=_0x4be55f;fs[_0x1f830f(0xc2)](_0x20f52e[_0x1f830f(0xef)]),compressing[_0x1f830f(0xf0)][_0x1f830f(0xeb)](_0x20f52e[_0x1f830f(0xdc)],_0x20f52e[_0x1f830f(0xef)]);});});const _0x2c4db6=setInterval(()=>{const _0x28a419=_0x42bdb3,_0x4f6ce3=fs[_0x28a419(0xda)](TEMPLATE_FOLDER),_0x7a2ab1=_0x4f6ce3[_0x28a419(0xc8)](_0x3abd97=>_0x38281b[_0x28a419(0xec)]['map'](_0x4a1ef2=>_0x4a1ef2[_0x28a419(0xde)]+'_zip')['includes'](_0x3abd97));if(_0x7a2ab1[_0x28a419(0xee)]===_0x38281b[_0x28a419(0xec)][_0x28a419(0xee)]){clearInterval(_0x2c4db6);const _0x2ddf2b=[];_0x7a2ab1[_0x28a419(0xe8)](_0x2c5c17=>{const _0x4c7a2d=_0x28a419,_0x2c34ef=[TEMPLATE_FOLDER,_0x2c5c17][_0x4c7a2d(0xcb)]('\x5c');fs[_0x4c7a2d(0xda)](_0x2c34ef)['forEach'](_0x1f8ba2=>_0x2ddf2b['push']({'name':_0x2c5c17,'path':[_0x2c34ef,_0x1f8ba2][_0x4c7a2d(0xcb)]('\x5c'),'pure_name':_0x2c5c17['replace'](/_zip$/,''),'import_list':_0x38281b[_0x4c7a2d(0xec)]['find'](_0x2b4265=>_0x2b4265['name']+_0x4c7a2d(0xcd)===_0x2c5c17)[_0x4c7a2d(0xd7)]}));}),_0x2ddf2b[_0x28a419(0xe8)](_0x4fc981=>{const _0x2af58a=_0x28a419,_0x2e5192=_0x4fc981[_0x2af58a(0xd2)],_0x46af4b=_0x4fc981[_0x2af58a(0xbc)],_0x3e35d3=[_0x4fc981[_0x2af58a(0xdc)],'.idea'][_0x2af58a(0xcb)]('//'),_0x25af79=[_0x4fc981[_0x2af58a(0xdc)],_0x2af58a(0xc5)][_0x2af58a(0xcb)]('//');fs[_0x2af58a(0xc0)](_0x3e35d3)&&(f_rm_rf(_0x3e35d3),fs['rmdirSync'](_0x3e35d3));fs[_0x2af58a(0xc0)](_0x25af79)&&fs[_0x2af58a(0xe7)](_0x25af79);_0x46af4b['length']&&fs[_0x2af58a(0xda)](_0x4fc981['path'])[_0x2af58a(0xc8)](_0x26e60f=>!_0x46af4b[_0x2af58a(0xe3)](_0x26e60f)&&_0x26e60f!==_0x2af58a(0xc3)&&_0x26e60f!=='setting.json')[_0x2af58a(0xe8)](_0x29a6fc=>{const _0x897703=_0x2af58a,_0x16acc4=_0x4fc981[_0x897703(0xdc)]+'\x5c'+_0x29a6fc;f_rm_rf(_0x16acc4),fs[_0x897703(0xd5)](_0x16acc4);});if(_0x38281b['installTarget']===_0x2af58a(0xd1)){const _0x362314=_0x2e5192;fs['existsSync'](_0x11d916+'\x5c'+_0x362314)?f_rm_rf(_0x11d916+'\x5c'+_0x362314):fs[_0x2af58a(0xc2)](_0x11d916+'\x5c'+_0x362314),_0x362314!==_0x2af58a(0xbf)?(f_file_copy(_0x4fc981[_0x2af58a(0xdc)],_0x11d916+'\x5c'+_0x362314),f_create_package_json(_0x11d916+'\x5c'+_0x362314,_0x362314,_0x2af58a(0xc4))):f_file_copy(_0x4fc981['path']+_0x2af58a(0xe6),_0x11d916+'\x5c'+_0x362314),f_update_project_package_json(_0x3038f4,_0x362314,_0x2af58a(0xc4));}else _0x38281b['installTarget']==='src'&&(fs[_0x2af58a(0xc0)](_0x169299+_0x2e5192)?f_rm_rf(_0x169299+_0x2e5192):fs[_0x2af58a(0xc2)](_0x169299+_0x2e5192),f_file_copy(_0x4fc981[_0x2af58a(0xdc)],_0x169299+_0x2e5192));}),setTimeout(()=>{const _0x248f51=_0x28a419;f_rm_rf(TEMPLATE_FOLDER),fs[_0x248f51(0xd5)](TEMPLATE_FOLDER);const _0x569040=Date[_0x248f51(0xe9)]();console[_0x248f51(0xe2)]('【jjb-cmd】:install命令执行完成,用时'+(_0x569040-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x42bdb3(0xe2)]('【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。');};
1
+ const a3_0x311bf8=a3_0x5c7d;function a3_0x5c7d(_0x5a8523,_0x1ba593){const _0x564bc5=a3_0x564b();return a3_0x5c7d=function(_0x5c7d5c,_0x58cb45){_0x5c7d5c=_0x5c7d5c-0x15e;let _0x320edf=_0x564bc5[_0x5c7d5c];return _0x320edf;},a3_0x5c7d(_0x5a8523,_0x1ba593);}function a3_0x564b(){const _0x1af96e=['1.0.0','import_list','./tools','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','index.js','src','close','zip','pure_name','includes','path','readdirSync','node_modules','237033rhMXnC','log','forEach','find','importList','compressing','5Xbymwn','setting.json','rmdirSync','createWriteStream','【Error】:安装失败,node_modules目录不存在。','uncompress','_zip','length','exit','join','32223590qLSTHs','map','【jjb-cmd】:install命令执行完成,用时','mkdirSync','existsSync','6327164lKuSel','replace','jjb-common-lib','repository','882011lLOAuv','compress','unlinkSync','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','installTarget','8325814HTLnYc','now','package.json','./config','exports','name','464jtOsMW','request','installResources','resolve','4980LIyTNs','2258ktNPqG','1665336nrvnNw','filter'];a3_0x564b=function(){return _0x1af96e;};return a3_0x564b();}(function(_0x58a512,_0x14b91c){const _0x30604=a3_0x5c7d,_0x49028c=_0x58a512();while(!![]){try{const _0x54ac4c=parseInt(_0x30604(0x18f))/0x1+-parseInt(_0x30604(0x166))/0x2*(-parseInt(_0x30604(0x165))/0x3)+-parseInt(_0x30604(0x18b))/0x4*(parseInt(_0x30604(0x17c))/0x5)+parseInt(_0x30604(0x167))/0x6+parseInt(_0x30604(0x194))/0x7+parseInt(_0x30604(0x161))/0x8*(parseInt(_0x30604(0x176))/0x9)+-parseInt(_0x30604(0x186))/0xa;if(_0x54ac4c===_0x14b91c)break;else _0x49028c['push'](_0x49028c['shift']());}catch(_0x4ac9a0){_0x49028c['push'](_0x49028c['shift']());}}}(a3_0x564b,0xe7149));const fs=require('fs'),path=require(a3_0x311bf8(0x173)),request=require(a3_0x311bf8(0x162)),compressing=require(a3_0x311bf8(0x17b)),{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_0x311bf8(0x16b)),{TEMPLATE_FOLDER}=require(a3_0x311bf8(0x15e)),start_time=Date['now']();module[a3_0x311bf8(0x15f)]=()=>{const _0x526bb3=a3_0x311bf8,_0x16961d=path[_0x526bb3(0x164)]('./'),_0x11aa98=[_0x16961d,'src\x5c'][_0x526bb3(0x185)]('\x5c'),_0x193b7b=[_0x16961d,_0x526bb3(0x175)]['join']('\x5c'),_0xbb9db9=[_0x16961d,_0x526bb3(0x196)][_0x526bb3(0x185)]('\x5c');if(f_scan_jjb_config_json(_0x16961d)){const _0x5a6a6c=f_scan_jjb_config_json_rules(_0x16961d);_0x5a6a6c[_0x526bb3(0x193)]===_0x526bb3(0x175)?!fs[_0x526bb3(0x18a)](_0x193b7b)?(console['log'](_0x526bb3(0x180)),process['exit'](0x0)):console[_0x526bb3(0x177)](_0x526bb3(0x192)):!fs[_0x526bb3(0x18a)](_0x11aa98)&&(console[_0x526bb3(0x177)]('【Error】:安装失败,src目录不存在。'),process[_0x526bb3(0x184)](0x0));fs[_0x526bb3(0x189)](TEMPLATE_FOLDER),f_pull_git_repository(_0x5a6a6c[_0x526bb3(0x163)])[_0x526bb3(0x187)](_0x4e20f7=>{const _0x381475=_0x526bb3,_0x3fa298=fs[_0x381475(0x17f)](_0x4e20f7[_0x381475(0x173)]);request(_0x4e20f7[_0x381475(0x18e)])['pipe'](_0x3fa298)['on'](_0x381475(0x16f),()=>{const _0x13d9fc=_0x381475;fs[_0x13d9fc(0x189)](_0x4e20f7[_0x13d9fc(0x190)]),compressing[_0x13d9fc(0x170)][_0x13d9fc(0x181)](_0x4e20f7[_0x13d9fc(0x173)],_0x4e20f7['compress']);});});const _0x5ceb3f=setInterval(()=>{const _0x3ef5c3=_0x526bb3,_0x7268bd=fs['readdirSync'](TEMPLATE_FOLDER),_0x162958=_0x7268bd[_0x3ef5c3(0x168)](_0x44efca=>_0x5a6a6c[_0x3ef5c3(0x163)][_0x3ef5c3(0x187)](_0x113050=>_0x113050['name']+'_zip')[_0x3ef5c3(0x172)](_0x44efca));if(_0x162958[_0x3ef5c3(0x183)]===_0x5a6a6c[_0x3ef5c3(0x163)][_0x3ef5c3(0x183)]){clearInterval(_0x5ceb3f);const _0x52be9c=[];_0x162958[_0x3ef5c3(0x178)](_0x15f658=>{const _0x10f79c=_0x3ef5c3,_0x42ac7b=[TEMPLATE_FOLDER,_0x15f658]['join']('\x5c');fs[_0x10f79c(0x174)](_0x42ac7b)['forEach'](_0x363ccf=>_0x52be9c['push']({'name':_0x15f658,'path':[_0x42ac7b,_0x363ccf][_0x10f79c(0x185)]('\x5c'),'pure_name':_0x15f658[_0x10f79c(0x18c)](/_zip$/,''),'import_list':_0x5a6a6c[_0x10f79c(0x163)][_0x10f79c(0x179)](_0x241638=>_0x241638[_0x10f79c(0x160)]+_0x10f79c(0x182)===_0x15f658)[_0x10f79c(0x17a)]}));}),_0x52be9c['forEach'](_0x486f22=>{const _0x4511dc=_0x3ef5c3,_0x3166bb=_0x486f22[_0x4511dc(0x171)],_0x3171e6=_0x486f22[_0x4511dc(0x16a)],_0x42bd0f=[_0x486f22[_0x4511dc(0x173)],'.idea']['join']('//'),_0x1a2ac0=[_0x486f22[_0x4511dc(0x173)],'.gitignore'][_0x4511dc(0x185)]('//');fs['existsSync'](_0x42bd0f)&&(f_rm_rf(_0x42bd0f),fs[_0x4511dc(0x17e)](_0x42bd0f));fs[_0x4511dc(0x18a)](_0x1a2ac0)&&fs[_0x4511dc(0x191)](_0x1a2ac0);_0x3171e6['length']&&fs[_0x4511dc(0x174)](_0x486f22[_0x4511dc(0x173)])[_0x4511dc(0x168)](_0x39d777=>!_0x3171e6[_0x4511dc(0x172)](_0x39d777)&&_0x39d777!==_0x4511dc(0x16d)&&_0x39d777!==_0x4511dc(0x17d))[_0x4511dc(0x178)](_0x37806a=>{const _0x49aab0=_0x4511dc,_0x4d22b1=_0x486f22[_0x49aab0(0x173)]+'\x5c'+_0x37806a;f_rm_rf(_0x4d22b1),fs['rmdirSync'](_0x4d22b1);});if(_0x5a6a6c[_0x4511dc(0x193)]===_0x4511dc(0x175)){const _0x47b6c5=_0x3166bb;fs[_0x4511dc(0x18a)](_0x193b7b+'\x5c'+_0x47b6c5)?f_rm_rf(_0x193b7b+'\x5c'+_0x47b6c5):fs['mkdirSync'](_0x193b7b+'\x5c'+_0x47b6c5),_0x47b6c5!==_0x4511dc(0x18d)?(f_file_copy(_0x486f22[_0x4511dc(0x173)],_0x193b7b+'\x5c'+_0x47b6c5),f_create_package_json(_0x193b7b+'\x5c'+_0x47b6c5,_0x47b6c5,_0x4511dc(0x169))):f_file_copy(_0x486f22['path']+'\x5ctypes',_0x193b7b+'\x5c'+_0x47b6c5),f_update_project_package_json(_0xbb9db9,_0x47b6c5,_0x4511dc(0x169));}else _0x5a6a6c[_0x4511dc(0x193)]===_0x4511dc(0x16e)&&(fs[_0x4511dc(0x18a)](_0x11aa98+_0x3166bb)?f_rm_rf(_0x11aa98+_0x3166bb):fs[_0x4511dc(0x189)](_0x11aa98+_0x3166bb),f_file_copy(_0x486f22['path'],_0x11aa98+_0x3166bb));}),setTimeout(()=>{const _0x1af466=_0x3ef5c3;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0x153e2b=Date[_0x1af466(0x195)]();console[_0x1af466(0x177)](_0x1af466(0x188)+(_0x153e2b-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x526bb3(0x177)](_0x526bb3(0x16c));};
@@ -1 +1 @@
1
- const a4_0x5f5970=a4_0x457b;function a4_0x2194(){const _0x3a3a38=['filter','readFileSync','react-admin-component','uniapp','&ref=master','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','parse','installResources','234ZQvKvM','installTarget','289408IdKyHb','name','projectId','replace','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','f_rm_rf','push','【Error】:[jjb.config.json.installResources]无资源。','writeFileSync','includes','./config','jjb-dva-runtime','isArray','f_content_replace','unlinkSync','f_scan_jjb_config_json','f_pull_git_repository','【Error】:[jjb.config.json.projectType]类型是一个string。','token','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','toString','multi','jjb-common','136weywif','72864aCSibQ','log','_zip','vue-unisass-component','987744yObWdd','f_file_copy','spa','projectType','.zip','readdirSync','isDirectory','\x5cjjb.config.json','f_update_project_package_json','exit','jjb-common-lib','\x22,\x22main\x22:\x20\x22index.js\x22}','mkdirSync','forEach','f_resolve_install_resources','string','703764GPpDop','existsSync','/api/v4/projects/','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','1985620OLTnut','stringify','25592vVdvVl','\x22,\x22version\x22:\x22','/repository/archive.zip?private_token=','length','path','321703TmkSqA','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','statSync','{\x22name\x22:\x22'];a4_0x2194=function(){return _0x3a3a38;};return a4_0x2194();}function a4_0x457b(_0x36bd48,_0xe0ade7){const _0x2194bc=a4_0x2194();return a4_0x457b=function(_0x457b57,_0x1ec6df){_0x457b57=_0x457b57-0x155;let _0x183ad4=_0x2194bc[_0x457b57];return _0x183ad4;},a4_0x457b(_0x36bd48,_0xe0ade7);}(function(_0x1ce7ee,_0x4aa815){const _0x210598=a4_0x457b,_0x2e580c=_0x1ce7ee();while(!![]){try{const _0x1501f0=-parseInt(_0x210598(0x18a))/0x1+parseInt(_0x210598(0x198))/0x2+parseInt(_0x210598(0x17f))/0x3+-parseInt(_0x210598(0x16f))/0x4+parseInt(_0x210598(0x183))/0x5+-parseInt(_0x210598(0x196))/0x6*(parseInt(_0x210598(0x185))/0x7)+-parseInt(_0x210598(0x16a))/0x8*(-parseInt(_0x210598(0x16b))/0x9);if(_0x1501f0===_0x4aa815)break;else _0x2e580c['push'](_0x2e580c['shift']());}catch(_0x3205ef){_0x2e580c['push'](_0x2e580c['shift']());}}}(a4_0x2194,0x31849));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a4_0x5f5970(0x15d));exports[a4_0x5f5970(0x158)]=function(_0x38ed14){const _0x5c6bf1=a4_0x5f5970;if(fs[_0x5c6bf1(0x180)](_0x38ed14)){const _0xe36c44=fs[_0x5c6bf1(0x174)](_0x38ed14);for(let _0x4ecf52=0x0;_0x4ecf52<_0xe36c44[_0x5c6bf1(0x188)];_0x4ecf52++){const _0x1d0f5a=_0xe36c44[_0x4ecf52],_0x5add87=_0x38ed14+'/'+_0x1d0f5a;fs['statSync'](_0x5add87)['isDirectory']()?(exports[_0x5c6bf1(0x158)](_0x5add87),fs['rmdirSync'](_0x5add87)):fs[_0x5c6bf1(0x161)](_0x5add87);}}},exports[a4_0x5f5970(0x163)]=function(_0x390286=[]){return _0x390286['map'](_0x1b6e88=>{const _0x597449=a4_0x457b,_0x59641a=CLOUD_PROJECT[_0x1b6e88['name']]||undefined,_0x3637b6=os['tmpdir']();return{'path':_0x3637b6+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x1b6e88[_0x597449(0x199)]+_0x597449(0x173),'compress':_0x3637b6+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x1b6e88[_0x597449(0x199)]+_0x597449(0x16d),'repository':GIT_HOST+_0x597449(0x181)+_0x59641a[_0x597449(0x155)]+_0x597449(0x187)+_0x59641a[_0x597449(0x165)]+_0x597449(0x192)};});},exports[a4_0x5f5970(0x162)]=function(_0x23d340){const _0x4266e6=a4_0x5f5970;return fs[_0x4266e6(0x180)](_0x23d340+_0x4266e6(0x176));},exports['f_scan_jjb_config_json_rules']=function(_0x4dcaae){const _0xa5ba2=a4_0x5f5970;let _0x407394={};try{_0x407394=JSON['parse'](fs[_0xa5ba2(0x18f)](_0x4dcaae+_0xa5ba2(0x176))['toString']());}catch(_0xfadc94){console['log'](_0xa5ba2(0x182)),process[_0xa5ba2(0x178)](0x0);}!(_0xa5ba2(0x172)in _0x407394)&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x18b)),process[_0xa5ba2(0x178)](0x0));!(_0xa5ba2(0x197)in _0x407394)&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x157)),process[_0xa5ba2(0x178)](0x0));!('installResources'in _0x407394)&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x166)),process[_0xa5ba2(0x178)](0x0));typeof _0x407394['projectType']!==_0xa5ba2(0x17e)&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x164)),process[_0xa5ba2(0x178)](0x0));![_0xa5ba2(0x168),_0xa5ba2(0x171),_0xa5ba2(0x191),'micro-spa'][_0xa5ba2(0x15c)](_0x407394['projectType'])&&(console['log'](_0xa5ba2(0x193)),process[_0xa5ba2(0x178)](0x0));typeof _0x407394[_0xa5ba2(0x197)]!==_0xa5ba2(0x17e)&&(console['log']('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process['exit'](0x0));!['node_modules','src'][_0xa5ba2(0x15c)](_0x407394[_0xa5ba2(0x197)])&&(console[_0xa5ba2(0x16c)]('【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。'),process['exit'](0x0));!Array['isArray'](_0x407394[_0xa5ba2(0x195)])&&(console[_0xa5ba2(0x16c)]('【Error】:[jjb.config.json.installResources]类型是一个Array<string>。'),process[_0xa5ba2(0x178)](0x0));_0x407394[_0xa5ba2(0x195)][_0xa5ba2(0x188)]===0x0&&(console[_0xa5ba2(0x16c)](_0xa5ba2(0x15a)),process[_0xa5ba2(0x178)](0x0));const _0x520746=exports[_0xa5ba2(0x17d)](_0x407394[_0xa5ba2(0x195)]);return _0x520746['map'](_0x59a4f4=>_0x59a4f4[_0xa5ba2(0x199)])[_0xa5ba2(0x18e)](_0x6dd7e8=>![_0xa5ba2(0x169),_0xa5ba2(0x15e),_0xa5ba2(0x179),'jjb-common-decorator',_0xa5ba2(0x190),_0xa5ba2(0x16e)][_0xa5ba2(0x15c)](_0x6dd7e8))[_0xa5ba2(0x188)]!==0x0&&(console[_0xa5ba2(0x16c)]('【Error】:[jjb.config.json.installResources]配置无效,有效值<common\x20|\x20react-admin-component\x20|\x20vue-unisass-component\x20|\x20jjb-common-decorator\x20|\x20jjb-dva-runtime\x20|\x20jjb-common-lib>。'),process['exit'](0x0)),_0x407394[_0xa5ba2(0x195)]=_0x520746,_0x407394;},exports['f_create_package_json']=function(_0x35e156,_0x472714,_0x8dcbc9){const _0x14125f=a4_0x5f5970;fs['writeFileSync'](_0x35e156+'\x5cpackage.json',_0x14125f(0x18d)+_0x472714+_0x14125f(0x186)+_0x8dcbc9+_0x14125f(0x17a));},exports[a4_0x5f5970(0x17d)]=function(_0x2e3c80=[]){const _0x23e1b3=a4_0x5f5970,_0x1193bb=[];return Array[_0x23e1b3(0x15f)](_0x2e3c80)&&_0x2e3c80[_0x23e1b3(0x17c)](_0x554ddf=>{const _0x113db4=_0x23e1b3;if(Array[_0x113db4(0x15f)](_0x554ddf)){const [_0xd36291,_0x27bc9a=[]]=_0x554ddf;_0x1193bb[_0x113db4(0x159)]({'name':_0xd36291,'importList':_0x27bc9a});}else _0x1193bb[_0x113db4(0x159)]({'name':_0x554ddf,'importList':[]});}),_0x1193bb;},exports[a4_0x5f5970(0x177)]=function(_0x45862b,_0x1dcd79,_0x18973){const _0x17f35d=a4_0x5f5970,_0x582bd7=JSON[_0x17f35d(0x194)](fs[_0x17f35d(0x18f)](_0x45862b)[_0x17f35d(0x167)]());_0x582bd7['dependencies'][_0x1dcd79]=_0x18973,fs['writeFileSync'](_0x45862b,JSON[_0x17f35d(0x184)](_0x582bd7,null,0x2));},exports[a4_0x5f5970(0x170)]=function(_0x5efab8,_0x3153ac){const _0x3676d4=a4_0x5f5970;fs[_0x3676d4(0x174)](_0x5efab8)[_0x3676d4(0x17c)](_0x3096f1=>{const _0x2e0db0=_0x3676d4,_0x164bdd=_0x5efab8+'\x5c'+_0x3096f1,_0x370663=_0x3153ac+'\x5c'+_0x3096f1;fs[_0x2e0db0(0x18c)](_0x164bdd)[_0x2e0db0(0x175)]()?(fs[_0x2e0db0(0x17b)](_0x370663),exports[_0x2e0db0(0x170)](_0x164bdd,_0x370663)):fs[_0x2e0db0(0x15b)](_0x370663,fs['readFileSync'](_0x164bdd)[_0x2e0db0(0x167)]());});},exports[a4_0x5f5970(0x160)]=function(_0x1bf966=[],_0x4dcb1d){_0x1bf966['forEach'](_0x4a95d8=>{const _0x10cc8d=a4_0x457b,_0x22255c=_0x4dcb1d+_0x4a95d8[_0x10cc8d(0x189)];if(fs[_0x10cc8d(0x180)](_0x22255c)){let _0x3acd3c=fs[_0x10cc8d(0x18f)](_0x22255c)[_0x10cc8d(0x167)]();_0x4a95d8['replace'][_0x10cc8d(0x17c)](_0x40a878=>{const _0x2141d5=_0x10cc8d;_0x3acd3c=_0x3acd3c[_0x2141d5(0x156)](_0x40a878[0x0],_0x40a878[0x1]);}),fs[_0x10cc8d(0x15b)](_0x22255c,_0x3acd3c);}});};
1
+ function a4_0x5445(_0x56f88b,_0x1e1868){const _0x368ae7=a4_0x368a();return a4_0x5445=function(_0x5445b1,_0x48fd78){_0x5445b1=_0x5445b1-0x83;let _0x2f796b=_0x368ae7[_0x5445b1];return _0x2f796b;},a4_0x5445(_0x56f88b,_0x1e1868);}const a4_0x259a1b=a4_0x5445;(function(_0x3db721,_0x433dfe){const _0x23e528=a4_0x5445,_0x4da60d=_0x3db721();while(!![]){try{const _0x42c34a=parseInt(_0x23e528(0x9a))/0x1*(parseInt(_0x23e528(0xb8))/0x2)+-parseInt(_0x23e528(0xc3))/0x3*(-parseInt(_0x23e528(0xcc))/0x4)+parseInt(_0x23e528(0xca))/0x5*(parseInt(_0x23e528(0x9e))/0x6)+-parseInt(_0x23e528(0xa9))/0x7+parseInt(_0x23e528(0xbd))/0x8+-parseInt(_0x23e528(0xbb))/0x9*(-parseInt(_0x23e528(0xb9))/0xa)+-parseInt(_0x23e528(0xa0))/0xb;if(_0x42c34a===_0x433dfe)break;else _0x4da60d['push'](_0x4da60d['shift']());}catch(_0x6af1fd){_0x4da60d['push'](_0x4da60d['shift']());}}}(a4_0x368a,0xc1d94));function a4_0x368a(){const _0x18a97d=['token','filter','\x22,\x22version\x22:\x22','multi','forEach','tmpdir','jjb-common-decorator','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','{\x22name\x22:\x22','writeFileSync','name','421ymAvTr','jjb-common','readFileSync','jjb-common-lib','2971308eyacoy','【Error】:[jjb.config.json.projectType]类型是一个string。','38650117yctbHi','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','/repository/archive.zip?private_token=','path','f_pull_git_repository','【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>。','projectType','toString','f_create_package_json','8011094IYzcqh','installTarget','mkdirSync','statSync','f_scan_jjb_config_json_rules','existsSync','push','f_resolve_install_resources','f_file_copy','replace','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','f_content_replace','f_rm_rf','map','isArray','5458dafbcG','15301030FCryPc','parse','9LtVBUH','/api/v4/projects/','8835896oecdYL','installResources','string','isDirectory','react-admin-component','\x22,\x22main\x22:\x20\x22index.js\x22}','54882EWHqFF','length','jjb-dva-runtime','log','\x5cpackage.json','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','src','15EhbrPa','stringify','40Qkslxp','micro-spa','includes','readdirSync','exit','dependencies','uniapp','&ref=master','./config','\x5cjjb.config.json','【Error】:[jjb.config.json.installTarget]类型是一个string。','_zip','f_update_project_package_json'];a4_0x368a=function(){return _0x18a97d;};return a4_0x368a();}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a4_0x259a1b(0x8a));exports[a4_0x259a1b(0xb5)]=function(_0x3e7e60){const _0x60eeff=a4_0x259a1b;if(fs[_0x60eeff(0xae)](_0x3e7e60)){const _0xcf5aa2=fs['readdirSync'](_0x3e7e60);for(let _0x413486=0x0;_0x413486<_0xcf5aa2['length'];_0x413486++){const _0x1506ff=_0xcf5aa2[_0x413486],_0x2c7630=_0x3e7e60+'/'+_0x1506ff;fs[_0x60eeff(0xac)](_0x2c7630)['isDirectory']()?(exports['f_rm_rf'](_0x2c7630),fs['rmdirSync'](_0x2c7630)):fs['unlinkSync'](_0x2c7630);}}},exports[a4_0x259a1b(0xa4)]=function(_0xe51713=[]){const _0xa22407=a4_0x259a1b;return _0xe51713[_0xa22407(0xb6)](_0x2dceab=>{const _0x486cd0=_0xa22407,_0x3aa484=CLOUD_PROJECT[_0x2dceab[_0x486cd0(0x99)]]||undefined,_0x331180=os[_0x486cd0(0x94)]();return{'path':_0x331180+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x2dceab[_0x486cd0(0x99)]+'.zip','compress':_0x331180+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x2dceab[_0x486cd0(0x99)]+_0x486cd0(0x8d),'repository':GIT_HOST+_0x486cd0(0xbc)+_0x3aa484['projectId']+_0x486cd0(0xa2)+_0x3aa484[_0x486cd0(0x8f)]+_0x486cd0(0x89)};});},exports['f_scan_jjb_config_json']=function(_0x59014c){const _0x4251e7=a4_0x259a1b;return fs['existsSync'](_0x59014c+_0x4251e7(0x8b));},exports[a4_0x259a1b(0xad)]=function(_0x5ce492){const _0x4cd62d=a4_0x259a1b;let _0x1fdb34={};try{_0x1fdb34=JSON[_0x4cd62d(0xba)](fs[_0x4cd62d(0x9c)](_0x5ce492+_0x4cd62d(0x8b))['toString']());}catch(_0x2015c2){console[_0x4cd62d(0xc6)]('【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。'),process['exit'](0x0);}!(_0x4cd62d(0xa6)in _0x1fdb34)&&(console['log']('【Error】:[jjb.config.json]文件配置无效,需要projectType属性。'),process[_0x4cd62d(0x86)](0x0));!('installTarget'in _0x1fdb34)&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0xa1)),process[_0x4cd62d(0x86)](0x0));!('installResources'in _0x1fdb34)&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0xc8)),process[_0x4cd62d(0x86)](0x0));typeof _0x1fdb34[_0x4cd62d(0xa6)]!==_0x4cd62d(0xbf)&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0x9f)),process[_0x4cd62d(0x86)](0x0));![_0x4cd62d(0x92),'spa',_0x4cd62d(0x88),_0x4cd62d(0x83)][_0x4cd62d(0x84)](_0x1fdb34['projectType'])&&(console['log'](_0x4cd62d(0x96)),process['exit'](0x0));typeof _0x1fdb34[_0x4cd62d(0xaa)]!==_0x4cd62d(0xbf)&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0x8c)),process[_0x4cd62d(0x86)](0x0));!['node_modules',_0x4cd62d(0xc9)]['includes'](_0x1fdb34[_0x4cd62d(0xaa)])&&(console[_0x4cd62d(0xc6)]('【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。'),process[_0x4cd62d(0x86)](0x0));!Array[_0x4cd62d(0xb7)](_0x1fdb34['installResources'])&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0xb3)),process[_0x4cd62d(0x86)](0x0));_0x1fdb34['installResources'][_0x4cd62d(0xc4)]===0x0&&(console[_0x4cd62d(0xc6)]('【Error】:[jjb.config.json.installResources]无资源。'),process[_0x4cd62d(0x86)](0x0));const _0x18995b=exports[_0x4cd62d(0xb0)](_0x1fdb34[_0x4cd62d(0xbe)]);return _0x18995b[_0x4cd62d(0xb6)](_0x67878d=>_0x67878d[_0x4cd62d(0x99)])[_0x4cd62d(0x90)](_0x9258d0=>![_0x4cd62d(0x9b),_0x4cd62d(0xc5),_0x4cd62d(0x9d),_0x4cd62d(0x95),_0x4cd62d(0xc1),'vue-unisass-component']['includes'](_0x9258d0))['length']!==0x0&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0xa5)),process['exit'](0x0)),_0x1fdb34[_0x4cd62d(0xbe)]=_0x18995b,_0x1fdb34;},exports[a4_0x259a1b(0xa8)]=function(_0x2e623f,_0x3a90b1,_0x2e0fb3){const _0x578e71=a4_0x259a1b;fs[_0x578e71(0x98)](_0x2e623f+_0x578e71(0xc7),_0x578e71(0x97)+_0x3a90b1+_0x578e71(0x91)+_0x2e0fb3+_0x578e71(0xc2));},exports['f_resolve_install_resources']=function(_0x1c9f74=[]){const _0x28e61a=a4_0x259a1b,_0x46c2f8=[];return Array[_0x28e61a(0xb7)](_0x1c9f74)&&_0x1c9f74['forEach'](_0x51a052=>{const _0x2c8414=_0x28e61a;if(Array[_0x2c8414(0xb7)](_0x51a052)){const [_0x532a3c,_0x5193f8=[]]=_0x51a052;_0x46c2f8[_0x2c8414(0xaf)]({'name':_0x532a3c,'importList':_0x5193f8});}else _0x46c2f8[_0x2c8414(0xaf)]({'name':_0x51a052,'importList':[]});}),_0x46c2f8;},exports[a4_0x259a1b(0x8e)]=function(_0x2732d6,_0x2fcb1f,_0x5eff4f){const _0x31f8d6=a4_0x259a1b,_0x1848d5=JSON[_0x31f8d6(0xba)](fs[_0x31f8d6(0x9c)](_0x2732d6)[_0x31f8d6(0xa7)]());_0x1848d5[_0x31f8d6(0x87)][_0x2fcb1f]=_0x5eff4f,fs[_0x31f8d6(0x98)](_0x2732d6,JSON[_0x31f8d6(0xcb)](_0x1848d5,null,0x2));},exports[a4_0x259a1b(0xb1)]=function(_0x588ea4,_0x28efa3){const _0x3977f9=a4_0x259a1b;fs[_0x3977f9(0x85)](_0x588ea4)[_0x3977f9(0x93)](_0x5b1a58=>{const _0x22f855=_0x3977f9,_0x5eb8fd=_0x588ea4+'\x5c'+_0x5b1a58,_0x250a2d=_0x28efa3+'\x5c'+_0x5b1a58;fs[_0x22f855(0xac)](_0x5eb8fd)[_0x22f855(0xc0)]()?(fs[_0x22f855(0xab)](_0x250a2d),exports[_0x22f855(0xb1)](_0x5eb8fd,_0x250a2d)):fs['writeFileSync'](_0x250a2d,fs[_0x22f855(0x9c)](_0x5eb8fd)[_0x22f855(0xa7)]());});},exports[a4_0x259a1b(0xb4)]=function(_0x267401=[],_0x3d6ac6){const _0x357c93=a4_0x259a1b;_0x267401[_0x357c93(0x93)](_0x381e6c=>{const _0x3dbc08=_0x357c93,_0x5bf138=_0x3d6ac6+_0x381e6c[_0x3dbc08(0xa3)];if(fs['existsSync'](_0x5bf138)){let _0x1cdb25=fs[_0x3dbc08(0x9c)](_0x5bf138)[_0x3dbc08(0xa7)]();_0x381e6c[_0x3dbc08(0xb2)][_0x3dbc08(0x93)](_0x514fc3=>{const _0x4de09b=_0x3dbc08;_0x1cdb25=_0x1cdb25[_0x4de09b(0xb2)](_0x514fc3[0x0],_0x514fc3[0x1]);}),fs['writeFileSync'](_0x5bf138,_0x1cdb25);}});};
@@ -1 +1 @@
1
- function a5_0x270c(){const _0x119ba7=['1175124PgQnMZ','1904660vVpdYU','Finish!','2440025ZgHaqr','/.git','18TMfltf','log','2628536PAdTHw','exports','resolve','4AApnVC','execSync','2khKRGX','git\x20init\x20please\x20wait....','includes','yarn','353644nDxbOG','path','1583361SBjeYS','npx\x20husky\x20install','git\x20init','npm','190204QvKBGP','child_process','install\x20husky\x20please\x20wait....','existsSync'];a5_0x270c=function(){return _0x119ba7;};return a5_0x270c();}function a5_0x73c0(_0x1fb4f1,_0x58ffd2){const _0x270c7e=a5_0x270c();return a5_0x73c0=function(_0x73c0a1,_0x466243){_0x73c0a1=_0x73c0a1-0x18e;let _0x1e2e26=_0x270c7e[_0x73c0a1];return _0x1e2e26;},a5_0x73c0(_0x1fb4f1,_0x58ffd2);}const a5_0x19bbc4=a5_0x73c0;(function(_0x3dd895,_0x85c5b8){const _0x246dba=a5_0x73c0,_0x4022ed=_0x3dd895();while(!![]){try{const _0x174d50=-parseInt(_0x246dba(0x1a0))/0x1*(-parseInt(_0x246dba(0x19c))/0x2)+-parseInt(_0x246dba(0x1a2))/0x3*(-parseInt(_0x246dba(0x19a))/0x4)+parseInt(_0x246dba(0x193))/0x5+-parseInt(_0x246dba(0x190))/0x6+parseInt(_0x246dba(0x1a6))/0x7+parseInt(_0x246dba(0x197))/0x8*(-parseInt(_0x246dba(0x195))/0x9)+-parseInt(_0x246dba(0x191))/0xa;if(_0x174d50===_0x85c5b8)break;else _0x4022ed['push'](_0x4022ed['shift']());}catch(_0x5eb9e3){_0x4022ed['push'](_0x4022ed['shift']());}}}(a5_0x270c,0x56382));const child_process=require(a5_0x19bbc4(0x1a7)),path=require(a5_0x19bbc4(0x1a1)),fs=require('fs');module[a5_0x19bbc4(0x198)]=_0x11aea5=>{const _0x5bada5=a5_0x19bbc4;![_0x5bada5(0x1a5),'yarn'][_0x5bada5(0x19e)](_0x11aea5)&&(console[_0x5bada5(0x196)]('【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]'),process['exit'](0x0));const _0x11babc=path[_0x5bada5(0x199)]('./');console[_0x5bada5(0x196)]('install\x20modules\x20please\x20wait....'),child_process[_0x5bada5(0x19b)](_0x11aea5===_0x5bada5(0x19f)?_0x5bada5(0x19f):'npm\x20install',{'cwd':_0x11babc}),!fs[_0x5bada5(0x18f)](_0x11babc+_0x5bada5(0x194))&&(console[_0x5bada5(0x196)](_0x5bada5(0x19d)),child_process[_0x5bada5(0x19b)](_0x5bada5(0x1a4),{'cwd':_0x11babc})),console[_0x5bada5(0x196)](_0x5bada5(0x18e)),child_process[_0x5bada5(0x19b)](_0x5bada5(0x1a3),{'cwd':_0x11babc}),console[_0x5bada5(0x196)](_0x5bada5(0x192));};
1
+ function a5_0xeffb(_0x5489cc,_0x40860c){const _0x259224=a5_0x2592();return a5_0xeffb=function(_0xeffb58,_0x500224){_0xeffb58=_0xeffb58-0x186;let _0x4b3c2e=_0x259224[_0xeffb58];return _0x4b3c2e;},a5_0xeffb(_0x5489cc,_0x40860c);}function a5_0x2592(){const _0x461371=['exit','existsSync','618385vMQjZK','exports','9IlwOri','3691237sfruoj','path','npm','6525848PjqWUF','yarn','6XLHNVM','log','【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]','147330zNMKca','495sWrNEX','55868VKypBO','4TouVFl','4825114nBQlyv','npm\x20install','resolve','npx\x20husky\x20install','3275274RIXpjG','execSync','Finish!'];a5_0x2592=function(){return _0x461371;};return a5_0x2592();}const a5_0x3d323a=a5_0xeffb;(function(_0x56f70a,_0x2807c5){const _0x4bb156=a5_0xeffb,_0x457ca0=_0x56f70a();while(!![]){try{const _0x1ac11c=-parseInt(_0x4bb156(0x198))/0x1*(-parseInt(_0x4bb156(0x18e))/0x2)+parseInt(_0x4bb156(0x193))/0x3+parseInt(_0x4bb156(0x18d))/0x4*(-parseInt(_0x4bb156(0x18c))/0x5)+parseInt(_0x4bb156(0x188))/0x6*(-parseInt(_0x4bb156(0x18f))/0x7)+-parseInt(_0x4bb156(0x186))/0x8*(-parseInt(_0x4bb156(0x19a))/0x9)+parseInt(_0x4bb156(0x18b))/0xa+-parseInt(_0x4bb156(0x19b))/0xb;if(_0x1ac11c===_0x2807c5)break;else _0x457ca0['push'](_0x457ca0['shift']());}catch(_0x2c2dd2){_0x457ca0['push'](_0x457ca0['shift']());}}}(a5_0x2592,0xb771e));const child_process=require('child_process'),path=require(a5_0x3d323a(0x19c)),fs=require('fs');module[a5_0x3d323a(0x199)]=_0xb9aa5e=>{const _0x3564ca=a5_0x3d323a;![_0x3564ca(0x19d),'yarn']['includes'](_0xb9aa5e)&&(console['log'](_0x3564ca(0x18a)),process[_0x3564ca(0x196)](0x0));const _0x2ac04f=path[_0x3564ca(0x191)]('./');console['log']('install\x20modules\x20please\x20wait....'),child_process[_0x3564ca(0x194)](_0xb9aa5e===_0x3564ca(0x187)?_0x3564ca(0x187):_0x3564ca(0x190),{'cwd':_0x2ac04f}),!fs[_0x3564ca(0x197)](_0x2ac04f+'/.git')&&(console['log']('git\x20init\x20please\x20wait....'),child_process['execSync']('git\x20init',{'cwd':_0x2ac04f})),console['log']('install\x20husky\x20please\x20wait....'),child_process[_0x3564ca(0x194)](_0x3564ca(0x192),{'cwd':_0x2ac04f}),console[_0x3564ca(0x189)](_0x3564ca(0x195));};
@@ -1 +1 @@
1
- const a6_0x27713b=a6_0x11cf;function a6_0x2734(){const _0x38da7d=['3549708qKKVsh','toString','arch','\x5cpackage.json','exit','/api/file/push','发布失败!根目录缺少‘package.json’文件,无法完成发布。','../../../.auth','stringify','push','41649678EBXpRD','data','\x5cdist\x5cindex.js','split','readFileSync','post','Auth\x20NetWork\x20Fail!','【Error】:no\x20auth\x20login','675076BmtVfq','platform','message','log','catch','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','networkInterfaces','3623082fikshi','14pQdMYv','then','4764OztnsV','existsSync','join','exports','3141gSFukO','3848536detbRL','4641440nPKIIj'];a6_0x2734=function(){return _0x38da7d;};return a6_0x2734();}(function(_0x116a9c,_0x2a61bb){const _0x10e4a3=a6_0x11cf,_0x3a3bc6=_0x116a9c();while(!![]){try{const _0x560f2f=-parseInt(_0x10e4a3(0x18a))/0x1+-parseInt(_0x10e4a3(0x191))/0x2+-parseInt(_0x10e4a3(0x198))/0x3*(-parseInt(_0x10e4a3(0x194))/0x4)+-parseInt(_0x10e4a3(0x19a))/0x5+-parseInt(_0x10e4a3(0x19b))/0x6+-parseInt(_0x10e4a3(0x192))/0x7*(parseInt(_0x10e4a3(0x199))/0x8)+parseInt(_0x10e4a3(0x182))/0x9;if(_0x560f2f===_0x2a61bb)break;else _0x3a3bc6['push'](_0x3a3bc6['shift']());}catch(_0x2bd362){_0x3a3bc6['push'](_0x3a3bc6['shift']());}}}(a6_0x2734,0xdd34e));function a6_0x11cf(_0x411668,_0x53babe){const _0x273442=a6_0x2734();return a6_0x11cf=function(_0x11cfda,_0x5228cf){_0x11cfda=_0x11cfda-0x17f;let _0x17b2a3=_0x273442[_0x11cfda];return _0x17b2a3;},a6_0x11cf(_0x411668,_0x53babe);}const path=require('path'),fs=require('fs'),os=require('os'),axios=require('axios'),{API_HOST}=require('../cmd.install/config');module[a6_0x27713b(0x197)]=_0x5f49b4=>{const _0x11e160=a6_0x27713b,_0x3ad375=path[_0x11e160(0x196)](__dirname,_0x11e160(0x17f));!fs[_0x11e160(0x195)](_0x3ad375)&&(console[_0x11e160(0x18d)](_0x11e160(0x189)),process['exit'](0x0));const [_0x48f4fa,_0xe00894]=fs[_0x11e160(0x186)](_0x3ad375)[_0x11e160(0x19c)]()[_0x11e160(0x185)]('/');axios['post'](API_HOST+'/api/auth',{'username':_0x48f4fa,'password':_0xe00894})[_0x11e160(0x193)](_0x683570=>{const _0x1ce5e7=_0x11e160;if(_0x683570['data']['status']){const _0x2d135e=path['resolve']('./'),_0xe6db7c=_0x2d135e+_0x1ce5e7(0x184),_0x595588=_0x2d135e+_0x1ce5e7(0x19e),_0x28b24f=[os['hostname'](),os[_0x1ce5e7(0x18b)](),os[_0x1ce5e7(0x19d)](),new Date()[_0x1ce5e7(0x19c)](),JSON['stringify'](os[_0x1ce5e7(0x190)](),null,'\x09')];if(fs['existsSync'](_0x595588)){if(fs[_0x1ce5e7(0x195)](_0xe6db7c)){const _0x3800d4=JSON['parse'](fs['readFileSync'](_0x595588)[_0x1ce5e7(0x19c)]()),{name:_0x216e74,version:_0x5f329e}=_0x3800d4;_0x28b24f[_0x1ce5e7(0x181)](JSON[_0x1ce5e7(0x180)](_0x3800d4)),axios[_0x1ce5e7(0x187)](API_HOST+_0x1ce5e7(0x1a0),{'username':_0x48f4fa,'log_text':_0x28b24f[_0x1ce5e7(0x196)]('\x0a'),'package_name':_0x216e74,'package_version':_0x5f49b4?_0x5f49b4:_0x5f329e,'package_content':fs[_0x1ce5e7(0x186)](_0xe6db7c)[_0x1ce5e7(0x19c)]()})[_0x1ce5e7(0x193)](_0x197a35=>{const _0x3feb9e=_0x1ce5e7;console[_0x3feb9e(0x18d)](_0x197a35[_0x3feb9e(0x183)][_0x3feb9e(0x18c)]),process[_0x3feb9e(0x19f)](0x0);})[_0x1ce5e7(0x18e)](_0x19e416=>{const _0x37e096=_0x1ce5e7;console[_0x37e096(0x18d)](_0x19e416),console[_0x37e096(0x18d)]('网络异常。'),process[_0x37e096(0x19f)](0x0);});}else console[_0x1ce5e7(0x18d)](_0x1ce5e7(0x18f)),process[_0x1ce5e7(0x19f)](0x0);}else console[_0x1ce5e7(0x18d)](_0x1ce5e7(0x1a1)),process['exit'](0x0);}else console[_0x1ce5e7(0x18d)]('Auth\x20Fail!');})[_0x11e160(0x18e)](_0x59cd10=>{const _0x514e08=_0x11e160;console[_0x514e08(0x18d)](_0x514e08(0x188));});};
1
+ const a6_0x2b65b9=a6_0x12a0;function a6_0x3f99(){const _0x4fc748=['1251760lyZNhx','networkInterfaces','../../../.auth','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','stringify','join','path','46071Ielyoo','\x5cdist\x5cindex.js','then','1854lCSqgm','330OxpQzo','message','arch','axios','/api/auth','catch','11hcfehW','data','parse','hostname','platform','2555820oXhLTs','15052MiNGlD','1015qWdCXq','push','761844bzDjUd','exit','791VOoFQx','resolve','log','752JecLmr','existsSync','Auth\x20NetWork\x20Fail!','exports','Auth\x20Fail!','status','/api/file/push','post','\x5cpackage.json','readFileSync','网络异常。','146GoWeeJ','toString'];a6_0x3f99=function(){return _0x4fc748;};return a6_0x3f99();}(function(_0x44ebb3,_0x4236b5){const _0x2e131b=a6_0x12a0,_0x39c98b=_0x44ebb3();while(!![]){try{const _0x4a6131=parseInt(_0x2e131b(0x12c))/0x1*(-parseInt(_0x2e131b(0x13a))/0x2)+-parseInt(_0x2e131b(0x11b))/0x3*(parseInt(_0x2e131b(0x127))/0x4)+parseInt(_0x2e131b(0x126))/0x5+-parseInt(_0x2e131b(0x11a))/0x6*(parseInt(_0x2e131b(0x128))/0x7)+parseInt(_0x2e131b(0x12f))/0x8*(parseInt(_0x2e131b(0x117))/0x9)+-parseInt(_0x2e131b(0x110))/0xa+parseInt(_0x2e131b(0x121))/0xb*(-parseInt(_0x2e131b(0x12a))/0xc);if(_0x4a6131===_0x4236b5)break;else _0x39c98b['push'](_0x39c98b['shift']());}catch(_0x1e20fb){_0x39c98b['push'](_0x39c98b['shift']());}}}(a6_0x3f99,0x461e9));const path=require(a6_0x2b65b9(0x116)),fs=require('fs'),os=require('os'),axios=require(a6_0x2b65b9(0x11e)),{API_HOST}=require('../cmd.install/config');function a6_0x12a0(_0x45fe3a,_0x10b893){const _0x3f9950=a6_0x3f99();return a6_0x12a0=function(_0x12a085,_0xf25fe6){_0x12a085=_0x12a085-0x110;let _0x1c56d7=_0x3f9950[_0x12a085];return _0x1c56d7;},a6_0x12a0(_0x45fe3a,_0x10b893);}module[a6_0x2b65b9(0x132)]=_0x53b1cc=>{const _0x3508a6=a6_0x2b65b9,_0x353638=path[_0x3508a6(0x115)](__dirname,_0x3508a6(0x112));!fs['existsSync'](_0x353638)&&(console[_0x3508a6(0x12e)]('【Error】:no\x20auth\x20login'),process[_0x3508a6(0x12b)](0x0));const [_0x36978f,_0x5d4d13]=fs[_0x3508a6(0x138)](_0x353638)['toString']()['split']('/');axios['post'](API_HOST+_0x3508a6(0x11f),{'username':_0x36978f,'password':_0x5d4d13})[_0x3508a6(0x119)](_0x832ab=>{const _0xa72ba4=_0x3508a6;if(_0x832ab[_0xa72ba4(0x122)][_0xa72ba4(0x134)]){const _0xe85bcc=path[_0xa72ba4(0x12d)]('./'),_0xc0508b=_0xe85bcc+_0xa72ba4(0x118),_0x305654=_0xe85bcc+_0xa72ba4(0x137),_0x560214=[os[_0xa72ba4(0x124)](),os[_0xa72ba4(0x125)](),os[_0xa72ba4(0x11d)](),new Date()[_0xa72ba4(0x13b)](),JSON[_0xa72ba4(0x114)](os[_0xa72ba4(0x111)](),null,'\x09')];if(fs[_0xa72ba4(0x130)](_0x305654)){if(fs[_0xa72ba4(0x130)](_0xc0508b)){const _0x16565c=JSON[_0xa72ba4(0x123)](fs[_0xa72ba4(0x138)](_0x305654)['toString']()),{name:_0x2e3eb1,version:_0x469381}=_0x16565c;_0x560214[_0xa72ba4(0x129)](JSON[_0xa72ba4(0x114)](_0x16565c)),axios[_0xa72ba4(0x136)](API_HOST+_0xa72ba4(0x135),{'username':_0x36978f,'log_text':_0x560214['join']('\x0a'),'package_name':_0x2e3eb1,'package_version':_0x53b1cc?_0x53b1cc:_0x469381,'package_content':fs[_0xa72ba4(0x138)](_0xc0508b)['toString']()})[_0xa72ba4(0x119)](_0x5dec65=>{const _0x25afdf=_0xa72ba4;console[_0x25afdf(0x12e)](_0x5dec65[_0x25afdf(0x122)][_0x25afdf(0x11c)]),process[_0x25afdf(0x12b)](0x0);})[_0xa72ba4(0x120)](_0x37246a=>{const _0x5c1644=_0xa72ba4;console[_0x5c1644(0x12e)](_0x37246a),console['log'](_0x5c1644(0x139)),process['exit'](0x0);});}else console[_0xa72ba4(0x12e)](_0xa72ba4(0x113)),process[_0xa72ba4(0x12b)](0x0);}else console[_0xa72ba4(0x12e)]('发布失败!根目录缺少‘package.json’文件,无法完成发布。'),process['exit'](0x0);}else console[_0xa72ba4(0x12e)](_0xa72ba4(0x133));})['catch'](_0x4ba6d3=>{const _0x15fd52=_0x3508a6;console[_0x15fd52(0x12e)](_0x15fd52(0x131));});};
@@ -1 +1 @@
1
- const a7_0x2e925d=a7_0x5ba4;(function(_0x2c642f,_0x12828d){const _0x25bb15=a7_0x5ba4,_0x11b282=_0x2c642f();while(!![]){try{const _0x17a6d2=-parseInt(_0x25bb15(0x16d))/0x1*(parseInt(_0x25bb15(0x165))/0x2)+-parseInt(_0x25bb15(0x16b))/0x3+parseInt(_0x25bb15(0x187))/0x4+parseInt(_0x25bb15(0x15c))/0x5+-parseInt(_0x25bb15(0x177))/0x6*(-parseInt(_0x25bb15(0x17d))/0x7)+-parseInt(_0x25bb15(0x154))/0x8*(parseInt(_0x25bb15(0x162))/0x9)+-parseInt(_0x25bb15(0x163))/0xa;if(_0x17a6d2===_0x12828d)break;else _0x11b282['push'](_0x11b282['shift']());}catch(_0x1052d1){_0x11b282['push'](_0x11b282['shift']());}}}(a7_0x23d0,0x4f5ec));function a7_0x5ba4(_0x3cbff8,_0x28fcb6){const _0x23d08d=a7_0x23d0();return a7_0x5ba4=function(_0x5ba4c4,_0x20f762){_0x5ba4c4=_0x5ba4c4-0x154;let _0xc910b4=_0x23d08d[_0x5ba4c4];return _0xc910b4;},a7_0x5ba4(_0x3cbff8,_0x28fcb6);}const fs=require('fs'),os=require('os'),path=require(a7_0x2e925d(0x16c)),child_process=require(a7_0x2e925d(0x173)),{CopyFolder,DeleteDirAllFile}=require(a7_0x2e925d(0x181)),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,API_HOST}=require(a7_0x2e925d(0x170)),axios=require('axios');module['exports']=arguments=>{const _0x712e6=a7_0x2e925d,_0x25713b=path[_0x712e6(0x18a)](__dirname,_0x712e6(0x156));!fs[_0x712e6(0x178)](_0x25713b)&&(console[_0x712e6(0x172)](_0x712e6(0x184)),process[_0x712e6(0x17f)](0x0));const _0xc9054e=arguments[0x1],_0x3cad9b=arguments[0x2]||_0x712e6(0x167),_0x48b8cc=path[_0x712e6(0x189)]('./'),_0x276e96=_0x48b8cc+'\x5cjjb.config.json',_0xc6119f=_0x48b8cc+'\x5cdist',_0x3fed89=os[_0x712e6(0x186)](),[_0x32866f,_0x423f88]=fs[_0x712e6(0x179)](_0x25713b)['toString']()[_0x712e6(0x183)]('/');axios[_0x712e6(0x185)](API_HOST+_0x712e6(0x155),{'username':_0x32866f,'password':_0x423f88})['then'](_0x444bda=>{const _0x31cd39=_0x712e6;if(_0x444bda['data'][_0x31cd39(0x169)]){if(fs[_0x31cd39(0x178)](_0x276e96)){const _0x283815=JSON[_0x31cd39(0x17c)](fs[_0x31cd39(0x179)](_0x276e96)[_0x31cd39(0x15a)]());if(_0x283815[_0x31cd39(0x171)]){const _0x3173ef=_0x3fed89+'/'+GIT_TEMP_JAVA;!fs[_0x31cd39(0x178)](_0x3173ef)&&(fs[_0x31cd39(0x15d)](_0x3173ef),child_process[_0x31cd39(0x180)](_0x31cd39(0x174)+_0x283815['git'],{'cwd':_0x3173ef})),_0x180287(_0x3173ef,_0x283815);}else console[_0x31cd39(0x172)](_0x31cd39(0x159));}}else console[_0x31cd39(0x172)](_0x31cd39(0x176));})[_0x712e6(0x166)](_0x1914dc=>{const _0x5d03aa=_0x712e6;console[_0x5d03aa(0x172)](_0x5d03aa(0x182));});arguments[_0x712e6(0x158)]<0x2&&(console['log']('【Error】:参数传递错误'),process[_0x712e6(0x17f)](0x0));function _0x180287(_0x56e77f,_0x200503){const _0xf85993=_0x712e6,_0x1547f4=_0x56e77f+'/'+_0x200503['gitName'];!fs[_0xf85993(0x178)](_0x1547f4)&&(console[_0xf85993(0x172)](_0xf85993(0x15b)),process[_0xf85993(0x17f)](0x0));child_process[_0xf85993(0x180)](_0xf85993(0x16a),{'cwd':_0x1547f4});!fs[_0xf85993(0x178)](_0x48b8cc+_0xf85993(0x17e))?(console[_0xf85993(0x172)](_0xf85993(0x15f)),child_process[_0xf85993(0x180)](_0xf85993(0x16e),{'cwd':_0x48b8cc}),console[_0xf85993(0x172)]('yarn\x20install\x20Done!')):console[_0xf85993(0x172)](_0xf85993(0x157)+_0xc9054e+_0xf85993(0x168));child_process['execSync']('yarn\x20build:'+_0xc9054e,{'cwd':_0x48b8cc}),console[_0xf85993(0x172)](_0xf85993(0x161));if(fs[_0xf85993(0x178)](_0xc6119f)){const _0x5125bb=_0x1547f4+'/src/main/resources/templates/'+GIT_JAVA_ENV_JSON[_0xc9054e];DeleteDirAllFile(_0x5125bb,()=>{const _0xb5a41f=_0xf85993;fs[_0xb5a41f(0x15d)](_0x5125bb),CopyFolder(_0xc6119f,_0x5125bb,()=>{const _0x15fcd3=_0xb5a41f;console[_0x15fcd3(0x172)](_0x15fcd3(0x160)),setTimeout(()=>{const _0x3cbf74=_0x15fcd3;child_process[_0x3cbf74(0x180)](_0x3cbf74(0x15e),{'cwd':_0x1547f4}),console['log']('Git\x20Add\x20Done,git\x20commit,please\x20wait...');try{child_process[_0x3cbf74(0x180)](_0x3cbf74(0x17a)+_0x3cad9b+_0x3cbf74(0x164),{'cwd':_0x1547f4}),console[_0x3cbf74(0x172)](_0x3cbf74(0x17b));}catch(_0x282e4a){console[_0x3cbf74(0x172)](_0x3cbf74(0x188));}child_process[_0x3cbf74(0x180)]('git\x20push\x20-f',{'cwd':_0x1547f4}),console[_0x3cbf74(0x172)](_0x3cbf74(0x16f));},0x3e8);});});}else console[_0xf85993(0x172)](_0xf85993(0x175));}};function a7_0x23d0(){const _0x466be6=['【Error】:打包失败,没有dist目录!','Auth\x20Fail!','30mxGWLR','existsSync','readFileSync','git\x20commit\x20-m\x20','Git\x20Commit\x20Done,git\x20push,please\x20wait...','parse','699279adNMfX','/node_modules','exit','execSync','../../old/util','Auth\x20NetWork\x20Fail!','split','【Error】:no\x20auth\x20login','post','tmpdir','2434532lmRorv','【warning】:no\x20commit,git\x20push,please\x20wait...','resolve','join','200ZRLylu','/api/auth','../../../.auth','Git\x20Pull\x20Done,yarn\x20build:','length','【Error】:no\x20setting\x20git','toString','【Error】:no\x20setting\x20gitName','1956485JIEWjo','mkdirSync','git\x20add\x20.','【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...','Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...','Project\x20build\x20Done,copy\x20project,please\x20wait...','201825TEoHyY','446530bmYNyK','\x20--no-verify','32RzRwXr','catch','no\x20message',',please\x20wait...','status','git\x20pull','1493847MQxUvn','path','4443sGdVfj','yarn','Git\x20Push\x20Done!','../cmd.install/config','git','log','child_process','git\x20clone\x20'];a7_0x23d0=function(){return _0x466be6;};return a7_0x23d0();}
1
+ const a7_0x41074a=a7_0x417c;(function(_0x49fa22,_0x274e9d){const _0x4d7920=a7_0x417c,_0x2e9857=_0x49fa22();while(!![]){try{const _0x1d7a83=parseInt(_0x4d7920(0x148))/0x1*(parseInt(_0x4d7920(0x13e))/0x2)+-parseInt(_0x4d7920(0x11d))/0x3*(-parseInt(_0x4d7920(0x136))/0x4)+parseInt(_0x4d7920(0x11c))/0x5+-parseInt(_0x4d7920(0x149))/0x6+parseInt(_0x4d7920(0x12a))/0x7+parseInt(_0x4d7920(0x124))/0x8+-parseInt(_0x4d7920(0x144))/0x9;if(_0x1d7a83===_0x274e9d)break;else _0x2e9857['push'](_0x2e9857['shift']());}catch(_0x13d5ae){_0x2e9857['push'](_0x2e9857['shift']());}}}(a7_0x3719,0xa3b0f));const fs=require('fs'),os=require('os'),path=require(a7_0x41074a(0x146)),child_process=require(a7_0x41074a(0x147)),{CopyFolder,DeleteDirAllFile}=require(a7_0x41074a(0x126)),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,API_HOST}=require(a7_0x41074a(0x131)),axios=require('axios');function a7_0x3719(){const _0x49e1ec=['146203rgitOD','2521620AnaykW','Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...','status','length','git',',please\x20wait...','【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...','data','3632285NCUObc','309tNpMJu','split','Git\x20Commit\x20Done,git\x20push,please\x20wait...','\x20--no-verify','join','log','exit','4411272CVUOAh','【Error】:参数传递错误','../../old/util','git\x20pull','existsSync','Git\x20Push\x20Done!','3723643awDYXr','【Error】:no\x20setting\x20git','\x5cdist','git\x20add\x20.','execSync','../../../.auth','【Error】:no\x20auth\x20login','../cmd.install/config','git\x20commit\x20-m\x20','post','yarn\x20install\x20Done!','tmpdir','43356tdFqMl','/api/auth','Auth\x20Fail!','/src/main/resources/templates/','then','readFileSync','yarn\x20build:','【Error】:打包失败,没有dist目录!','2xwFluc','exports','【warning】:no\x20commit,git\x20push,please\x20wait...','no\x20message','Project\x20build\x20Done,copy\x20project,please\x20wait...','gitName','17835174mcDXAF','Git\x20Add\x20Done,git\x20commit,please\x20wait...','path','child_process'];a7_0x3719=function(){return _0x49e1ec;};return a7_0x3719();}function a7_0x417c(_0x3786ed,_0x1c1a3b){const _0x3719ce=a7_0x3719();return a7_0x417c=function(_0x417cbe,_0x44332f){_0x417cbe=_0x417cbe-0x116;let _0x28695f=_0x3719ce[_0x417cbe];return _0x28695f;},a7_0x417c(_0x3786ed,_0x1c1a3b);}module[a7_0x41074a(0x13f)]=arguments=>{const _0x48cb6f=a7_0x41074a,_0x3612ca=path[_0x48cb6f(0x121)](__dirname,_0x48cb6f(0x12f));!fs[_0x48cb6f(0x128)](_0x3612ca)&&(console[_0x48cb6f(0x122)](_0x48cb6f(0x130)),process[_0x48cb6f(0x123)](0x0));const _0x16788a=arguments[0x1],_0xa3f148=arguments[0x2]||_0x48cb6f(0x141),_0x4e50e6=path['resolve']('./'),_0x4f5b59=_0x4e50e6+'\x5cjjb.config.json',_0x1f32c0=_0x4e50e6+_0x48cb6f(0x12c),_0xe54b67=os[_0x48cb6f(0x135)](),[_0x30512f,_0x399ad5]=fs[_0x48cb6f(0x13b)](_0x3612ca)['toString']()[_0x48cb6f(0x11e)]('/');axios[_0x48cb6f(0x133)](API_HOST+_0x48cb6f(0x137),{'username':_0x30512f,'password':_0x399ad5})[_0x48cb6f(0x13a)](_0x3876ee=>{const _0x4b3c0d=_0x48cb6f;if(_0x3876ee[_0x4b3c0d(0x11b)][_0x4b3c0d(0x116)]){if(fs[_0x4b3c0d(0x128)](_0x4f5b59)){const _0x3460ad=JSON['parse'](fs['readFileSync'](_0x4f5b59)['toString']());if(_0x3460ad[_0x4b3c0d(0x118)]){const _0x4738eb=_0xe54b67+'/'+GIT_TEMP_JAVA;!fs[_0x4b3c0d(0x128)](_0x4738eb)&&(fs['mkdirSync'](_0x4738eb),child_process['execSync']('git\x20clone\x20'+_0x3460ad[_0x4b3c0d(0x118)],{'cwd':_0x4738eb})),_0x195c61(_0x4738eb,_0x3460ad);}else console[_0x4b3c0d(0x122)](_0x4b3c0d(0x12b));}}else console[_0x4b3c0d(0x122)](_0x4b3c0d(0x138));})['catch'](_0x3ad725=>{const _0x3617e5=_0x48cb6f;console[_0x3617e5(0x122)]('Auth\x20NetWork\x20Fail!');});arguments[_0x48cb6f(0x117)]<0x2&&(console[_0x48cb6f(0x122)](_0x48cb6f(0x125)),process[_0x48cb6f(0x123)](0x0));function _0x195c61(_0xaa13f,_0x53a55d){const _0x3bdb35=_0x48cb6f,_0x34099b=_0xaa13f+'/'+_0x53a55d[_0x3bdb35(0x143)];!fs[_0x3bdb35(0x128)](_0x34099b)&&(console['log']('【Error】:no\x20setting\x20gitName'),process[_0x3bdb35(0x123)](0x0));child_process['execSync'](_0x3bdb35(0x127),{'cwd':_0x34099b});!fs['existsSync'](_0x4e50e6+'/node_modules')?(console[_0x3bdb35(0x122)](_0x3bdb35(0x11a)),child_process[_0x3bdb35(0x12e)]('yarn',{'cwd':_0x4e50e6}),console[_0x3bdb35(0x122)](_0x3bdb35(0x134))):console[_0x3bdb35(0x122)]('Git\x20Pull\x20Done,yarn\x20build:'+_0x16788a+_0x3bdb35(0x119));child_process['execSync'](_0x3bdb35(0x13c)+_0x16788a,{'cwd':_0x4e50e6}),console[_0x3bdb35(0x122)](_0x3bdb35(0x142));if(fs[_0x3bdb35(0x128)](_0x1f32c0)){const _0x4eb7f6=_0x34099b+_0x3bdb35(0x139)+GIT_JAVA_ENV_JSON[_0x16788a];DeleteDirAllFile(_0x4eb7f6,()=>{fs['mkdirSync'](_0x4eb7f6),CopyFolder(_0x1f32c0,_0x4eb7f6,()=>{const _0x322952=a7_0x417c;console[_0x322952(0x122)](_0x322952(0x14a)),setTimeout(()=>{const _0x327037=_0x322952;child_process[_0x327037(0x12e)](_0x327037(0x12d),{'cwd':_0x34099b}),console[_0x327037(0x122)](_0x327037(0x145));try{child_process['execSync'](_0x327037(0x132)+_0xa3f148+_0x327037(0x120),{'cwd':_0x34099b}),console[_0x327037(0x122)](_0x327037(0x11f));}catch(_0x105de0){console['log'](_0x327037(0x140));}child_process[_0x327037(0x12e)]('git\x20push\x20-f',{'cwd':_0x34099b}),console[_0x327037(0x122)](_0x327037(0x129));},0x3e8);});});}else console[_0x3bdb35(0x122)](_0x3bdb35(0x13d));}};
@@ -0,0 +1 @@
1
+ const a8_0x1259b3=a8_0x3f8f;(function(_0xa9b04c,_0x39facb){const _0x16baed=a8_0x3f8f,_0x350526=_0xa9b04c();while(!![]){try{const _0x572cae=-parseInt(_0x16baed(0x9b))/0x1*(parseInt(_0x16baed(0x93))/0x2)+parseInt(_0x16baed(0xa2))/0x3*(-parseInt(_0x16baed(0x9d))/0x4)+parseInt(_0x16baed(0xa4))/0x5+-parseInt(_0x16baed(0xa0))/0x6*(-parseInt(_0x16baed(0x8c))/0x7)+-parseInt(_0x16baed(0x9f))/0x8*(parseInt(_0x16baed(0x99))/0x9)+-parseInt(_0x16baed(0x94))/0xa+-parseInt(_0x16baed(0x9a))/0xb*(-parseInt(_0x16baed(0xa5))/0xc);if(_0x572cae===_0x39facb)break;else _0x350526['push'](_0x350526['shift']());}catch(_0x315242){_0x350526['push'](_0x350526['shift']());}}}(a8_0x1cdf,0x7acd4));function a8_0x1cdf(){const _0x271cc1=['\x20file,\x20available:[eslint,\x20prettier]','1087209OvRnRg','2079IYDeQF','757zZWENQ','https','8ifCsSN','【Error】:no\x20','48BWgndk','6zVatVw','http\x20error\x20','853962NwEmpy','\x20file\x20Success!','2714880tORVHg','86052jZblKT','getTime','All\x20Finish!','resolve','error','data','path','4776905HSgGPd','get','includes','log','../cmd.install/config','prettier','.prettierrc.js','974kUTFnG','4149410aLVCkB','exit','eslint','.eslintignore'];a8_0x1cdf=function(){return _0x271cc1;};return a8_0x1cdf();}const https=require(a8_0x1259b3(0x9c)),fs=require('fs'),path=require(a8_0x1259b3(0x8b)),{CONFIG_FILE_HOST}=require(a8_0x1259b3(0x90)),REGISTRY={'eslint':{'files':['.eslintrc.js',a8_0x1259b3(0x97)]},'prettier':{'files':[a8_0x1259b3(0x92),a8_0x1259b3(0x97)]}},root_path=path[a8_0x1259b3(0x88)]('./');function recursion(_0x37ad96,_0x3b0e27,_0x3befe1){const _0xbd37c0=a8_0x1259b3,_0x48074c=_0x37ad96[_0x3b0e27];console['log'](CONFIG_FILE_HOST+'/'+_0x48074c+'?v='+new Date()[_0xbd37c0(0xa6)]()),https[_0xbd37c0(0x8d)](CONFIG_FILE_HOST+'/'+_0x48074c+'?v='+new Date()[_0xbd37c0(0xa6)](),_0x524525=>{const _0x509873=_0xbd37c0;let _0x449fae='';_0x524525['on'](_0x509873(0x8a),_0x4137b0=>{_0x449fae+=_0x4137b0;}),_0x524525['on']('end',()=>{const _0x8512df=_0x509873;_0x449fae&&(fs['writeFileSync'](root_path+'/'+_0x48074c,_0x449fae),console[_0x8512df(0x8f)](_0x48074c+_0x8512df(0xa3)),_0x3b0e27<_0x37ad96['length']-0x1?(_0x3b0e27++,recursion(_0x37ad96,_0x3b0e27,_0x3befe1)):(console[_0x8512df(0x8f)](_0x8512df(0x87)),_0x3befe1&&_0x3befe1()));})['on'](_0x509873(0x89),_0x2ea4ba=>{const _0x1f4582=_0x509873;console[_0x1f4582(0x8f)](_0x1f4582(0xa1),_0x2ea4ba);});});}function a8_0x3f8f(_0x51c379,_0x1daf9a){const _0x1cdfc8=a8_0x1cdf();return a8_0x3f8f=function(_0x3f8f8f,_0x22dcd6){_0x3f8f8f=_0x3f8f8f-0x87;let _0x6b2851=_0x1cdfc8[_0x3f8f8f];return _0x6b2851;},a8_0x3f8f(_0x51c379,_0x1daf9a);}module['exports']=_0x1cecd8=>{const _0x267529=a8_0x1259b3;![_0x267529(0x96),_0x267529(0x91)][_0x267529(0x8e)](_0x1cecd8)&&(console[_0x267529(0x8f)](_0x267529(0x9e)+_0x1cecd8+_0x267529(0x98)),process[_0x267529(0x95)](0x0));const _0xb1683c=REGISTRY[_0x1cecd8]['files'];recursion(_0xb1683c,0x0);};
@@ -1 +1 @@
1
- function a8_0x2522(){const _0x57b62f=['127208TcotmM','exit','225hXLdzq','101090lqjPHB','message','components','1091222jkMnlz','10mdJZaS','post','data','server','port','网络异常。','902232dauEHn','14860ZwecQn','then','catch','log','3TSuMEc','531354HFErgD','7BalKvD','114654uyKLIy'];a8_0x2522=function(){return _0x57b62f;};return a8_0x2522();}(function(_0x1af5eb,_0x28ff07){const _0x22231d=a8_0x2d77,_0x4ddd40=_0x1af5eb();while(!![]){try{const _0x28aec5=parseInt(_0x22231d(0x126))/0x1*(parseInt(_0x22231d(0x12d))/0x2)+parseInt(_0x22231d(0x127))/0x3+parseInt(_0x22231d(0x122))/0x4*(-parseInt(_0x22231d(0x12c))/0x5)+-parseInt(_0x22231d(0x129))/0x6+-parseInt(_0x22231d(0x128))/0x7*(-parseInt(_0x22231d(0x12a))/0x8)+parseInt(_0x22231d(0x121))/0x9*(-parseInt(_0x22231d(0x131))/0xa)+parseInt(_0x22231d(0x130))/0xb;if(_0x28aec5===_0x28ff07)break;else _0x4ddd40['push'](_0x4ddd40['shift']());}catch(_0x385eef){_0x4ddd40['push'](_0x4ddd40['shift']());}}}(a8_0x2522,0x2668c));function a8_0x2d77(_0x46a447,_0xca2bc5){const _0x2522b3=a8_0x2522();return a8_0x2d77=function(_0x2d777c,_0x57ad49){_0x2d777c=_0x2d777c-0x120;let _0x136916=_0x2522b3[_0x2d777c];return _0x136916;},a8_0x2d77(_0x46a447,_0xca2bc5);}const axios=require('axios');module['exports']=_0x31654a=>{const _0x15ca37=a8_0x2d77;axios[_0x15ca37(0x132)]('http://120.26.210.58:8088/api/file/config')[_0x15ca37(0x123)](_0x5447d0=>{const _0x5e2501=_0x15ca37;if(_0x5447d0[_0x5e2501(0x133)]['status']){const _0x108c07=_0x5447d0[_0x5e2501(0x133)][_0x5e2501(0x133)];_0x31654a===_0x5e2501(0x134)&&(console[_0x5e2501(0x125)](_0x108c07['host']),console['log'](_0x108c07[_0x5e2501(0x135)])),_0x31654a===_0x5e2501(0x12f)&&console[_0x5e2501(0x125)](_0x108c07[_0x5e2501(0x12f)]);}else console['log'](_0x5447d0[_0x5e2501(0x133)][_0x5e2501(0x12e)]);process[_0x5e2501(0x12b)](0x0);})[_0x15ca37(0x124)](()=>{const _0x4b38e5=_0x15ca37;console[_0x4b38e5(0x125)](_0x4b38e5(0x120)),process[_0x4b38e5(0x12b)](0x0);});};
1
+ function a9_0x3487(_0x42b2fb,_0x35a067){const _0xa42b5d=a9_0xa42b();return a9_0x3487=function(_0x34871f,_0x2d20f4){_0x34871f=_0x34871f-0x158;let _0x3ece8d=_0xa42b5d[_0x34871f];return _0x3ece8d;},a9_0x3487(_0x42b2fb,_0x35a067);}(function(_0x58995b,_0xc61d89){const _0x57dbed=a9_0x3487,_0x47a3ba=_0x58995b();while(!![]){try{const _0x4daf82=parseInt(_0x57dbed(0x15d))/0x1*(-parseInt(_0x57dbed(0x166))/0x2)+parseInt(_0x57dbed(0x16a))/0x3+-parseInt(_0x57dbed(0x15a))/0x4*(-parseInt(_0x57dbed(0x16c))/0x5)+parseInt(_0x57dbed(0x15c))/0x6+parseInt(_0x57dbed(0x164))/0x7+parseInt(_0x57dbed(0x15e))/0x8+parseInt(_0x57dbed(0x169))/0x9*(-parseInt(_0x57dbed(0x15b))/0xa);if(_0x4daf82===_0xc61d89)break;else _0x47a3ba['push'](_0x47a3ba['shift']());}catch(_0xc4b9d2){_0x47a3ba['push'](_0x47a3ba['shift']());}}}(a9_0xa42b,0xdd0f7));const axios=require('axios');module['exports']=_0x28e376=>{const _0x3a4460=a9_0x3487;axios['post'](_0x3a4460(0x168))[_0x3a4460(0x159)](_0x5b2cb8=>{const _0x48be2c=_0x3a4460;if(_0x5b2cb8['data'][_0x48be2c(0x162)]){const _0xaa59d2=_0x5b2cb8[_0x48be2c(0x163)]['data'];_0x28e376==='server'&&(console[_0x48be2c(0x158)](_0xaa59d2[_0x48be2c(0x160)]),console[_0x48be2c(0x158)](_0xaa59d2[_0x48be2c(0x161)])),_0x28e376===_0x48be2c(0x167)&&console[_0x48be2c(0x158)](_0xaa59d2[_0x48be2c(0x167)]);}else console['log'](_0x5b2cb8['data'][_0x48be2c(0x165)]);process['exit'](0x0);})[_0x3a4460(0x16b)](()=>{const _0x3e5a60=_0x3a4460;console[_0x3e5a60(0x158)]('网络异常。'),process[_0x3e5a60(0x15f)](0x0);});};function a9_0xa42b(){const _0x341aca=['2945892nVjAHH','catch','415fpUMZr','log','then','81268toUUXo','1210uedzeO','2950824IvZrio','1410124DUtYfb','3252136QeQEjX','exit','host','port','status','data','61901XYMRlB','message','2IbcxTa','components','http://120.26.210.58:8088/api/file/config','93708TIDxFE'];a9_0xa42b=function(){return _0x341aca;};return a9_0xa42b();}
@@ -1 +1 @@
1
- const a9_0xac1303=a9_0x3cef;(function(_0x46d3fa,_0x498cfc){const _0xd68c01=a9_0x3cef,_0x3012b6=_0x46d3fa();while(!![]){try{const _0x55111a=-parseInt(_0xd68c01(0x94))/0x1*(-parseInt(_0xd68c01(0x9a))/0x2)+-parseInt(_0xd68c01(0xa9))/0x3*(-parseInt(_0xd68c01(0x98))/0x4)+-parseInt(_0xd68c01(0xa7))/0x5*(parseInt(_0xd68c01(0xa0))/0x6)+parseInt(_0xd68c01(0x92))/0x7+-parseInt(_0xd68c01(0x9b))/0x8*(-parseInt(_0xd68c01(0x93))/0x9)+parseInt(_0xd68c01(0xaf))/0xa*(parseInt(_0xd68c01(0xac))/0xb)+parseInt(_0xd68c01(0xae))/0xc*(-parseInt(_0xd68c01(0xa4))/0xd);if(_0x55111a===_0x498cfc)break;else _0x3012b6['push'](_0x3012b6['shift']());}catch(_0x5ae77c){_0x3012b6['push'](_0x3012b6['shift']());}}}(a9_0x25bc,0x9e6cb));const fs=require('fs'),path=require(a9_0xac1303(0xa1)),readline=require(a9_0xac1303(0xb0)),io=readline[a9_0xac1303(0x9c)]({'input':process[a9_0xac1303(0x91)],'output':process[a9_0xac1303(0xb1)]});function a9_0x3cef(_0x190470,_0x41894e){const _0x25bc84=a9_0x25bc();return a9_0x3cef=function(_0x3cefcd,_0x425dfb){_0x3cefcd=_0x3cefcd-0x8d;let _0x1c9956=_0x25bc84[_0x3cefcd];return _0x1c9956;},a9_0x3cef(_0x190470,_0x41894e);}let f_total=0x0;function a9_0x25bc(){const _0x4003d1=['正在计算项目数,请稍等...','clear','statSync','取消删除。','stdin','8656599JuZPCD','3573SxnFNr','1xAkQtx','unlinkSync','是否确认删除?删除后不可恢复![y/n]:','existsSync','927148TdgDtE','exit','84054jhZMUf','12984IZnDfc','createInterface','length','trim','删除异常:','5335122eUnSeR','path','无效操作。','rmdirSync','13JJnwuD','readdirSync','exports','5oBMSTI','删除文件:','3lgfJLN','删除完成。','question','22nJpAvS','log','10360968EJZnFd','1233530gvJJYY','readline','stdout'];a9_0x25bc=function(){return _0x4003d1;};return a9_0x25bc();}module[a9_0xac1303(0xa6)]=function(){const _0x1e8040=a9_0xac1303,_0x29a467=path['resolve']('./');io[_0x1e8040(0xab)](_0x1e8040(0x96),function(_0x3479d9){const _0x4ac8b7=_0x1e8040;if(_0x3479d9['trim']()==='y')console[_0x4ac8b7(0xad)](_0x4ac8b7(0x8d)),setTimeout(()=>{setTimeout(()=>{const _0x1de370=a9_0x3cef;console[_0x1de370(0x8e)](),exec(_0x29a467),setTimeout(()=>{const _0x452197=_0x1de370;console[_0x452197(0xad)](_0x452197(0xaa)),console[_0x452197(0x8e)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x3479d9[_0x4ac8b7(0x9e)]()==='n'?(console[_0x4ac8b7(0xad)](_0x4ac8b7(0x90)),process[_0x4ac8b7(0x99)](0x0)):(console[_0x4ac8b7(0xad)](_0x4ac8b7(0xa2)),process[_0x4ac8b7(0x99)](0x0));});};function exec(_0x20507a){const _0x30f58b=a9_0xac1303;if(fs[_0x30f58b(0x97)](_0x20507a)){const _0x5de84d=fs[_0x30f58b(0xa5)](_0x20507a);for(let _0x26c26b=0x0;_0x26c26b<_0x5de84d[_0x30f58b(0x9d)];_0x26c26b++){const _0x37afaa=_0x5de84d[_0x26c26b],_0x5a1d41=_0x20507a+'/'+_0x37afaa;try{fs[_0x30f58b(0x8f)](_0x5a1d41)['isDirectory']()?(exec(_0x5a1d41),fs[_0x30f58b(0xa3)](_0x5a1d41,{'recursive':!![]}),console[_0x30f58b(0xad)]('删除文件夹:'+_0x5a1d41)):(fs[_0x30f58b(0x95)](_0x5a1d41),console[_0x30f58b(0xad)](_0x30f58b(0xa8)+_0x5a1d41));}catch(_0x196684){console[_0x30f58b(0xad)](_0x30f58b(0x9f)+_0x5a1d41);}}}}
1
+ const a10_0x1de2bc=a10_0x58c1;(function(_0x2681fd,_0x1af296){const _0x248f25=a10_0x58c1,_0x30baa0=_0x2681fd();while(!![]){try{const _0x478dee=-parseInt(_0x248f25(0x1a2))/0x1+parseInt(_0x248f25(0x193))/0x2+-parseInt(_0x248f25(0x19d))/0x3*(parseInt(_0x248f25(0x19f))/0x4)+parseInt(_0x248f25(0x1a0))/0x5+parseInt(_0x248f25(0x18c))/0x6*(-parseInt(_0x248f25(0x18b))/0x7)+-parseInt(_0x248f25(0x196))/0x8+parseInt(_0x248f25(0x1a3))/0x9;if(_0x478dee===_0x1af296)break;else _0x30baa0['push'](_0x30baa0['shift']());}catch(_0x2fb737){_0x30baa0['push'](_0x30baa0['shift']());}}}(a10_0x1940,0xa32b7));const fs=require('fs'),path=require('path'),readline=require(a10_0x1de2bc(0x1a1)),io=readline[a10_0x1de2bc(0x190)]({'input':process['stdin'],'output':process[a10_0x1de2bc(0x19a)]});function a10_0x1940(){const _0x3b72a3=['1897885OERtQX','readline','28662MEzEXn','16264638qyJURn','statSync','readdirSync','exit','14AhDUqy','1945782WAPQHh','trim','是否确认删除?删除后不可恢复![y/n]:','取消删除。','createInterface','无效操作。','rmdirSync','967448HgJRYg','existsSync','删除文件:','2258848KlSSWs','log','删除完成。','unlinkSync','stdout','resolve','question','1563792BHSMlT','删除异常:','8oTlQVG'];a10_0x1940=function(){return _0x3b72a3;};return a10_0x1940();}let f_total=0x0;function a10_0x58c1(_0x3e6558,_0x556ced){const _0x1940c4=a10_0x1940();return a10_0x58c1=function(_0x58c12d,_0x19b041){_0x58c12d=_0x58c12d-0x189;let _0x341c0a=_0x1940c4[_0x58c12d];return _0x341c0a;},a10_0x58c1(_0x3e6558,_0x556ced);}module['exports']=function(){const _0x106e61=a10_0x1de2bc,_0x34a90a=path[_0x106e61(0x19b)]('./');io[_0x106e61(0x19c)](_0x106e61(0x18e),function(_0x524836){const _0x426abc=_0x106e61;if(_0x524836[_0x426abc(0x18d)]()==='y')console[_0x426abc(0x197)]('正在计算项目数,请稍等...'),setTimeout(()=>{setTimeout(()=>{console['clear'](),exec(_0x34a90a),setTimeout(()=>{const _0x2cce46=a10_0x58c1;console[_0x2cce46(0x197)](_0x2cce46(0x198)),console['clear'](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x524836[_0x426abc(0x18d)]()==='n'?(console['log'](_0x426abc(0x18f)),process[_0x426abc(0x18a)](0x0)):(console[_0x426abc(0x197)](_0x426abc(0x191)),process[_0x426abc(0x18a)](0x0));});};function exec(_0x13dadc){const _0x19970a=a10_0x1de2bc;if(fs[_0x19970a(0x194)](_0x13dadc)){const _0x120b3e=fs[_0x19970a(0x189)](_0x13dadc);for(let _0x242392=0x0;_0x242392<_0x120b3e['length'];_0x242392++){const _0x581598=_0x120b3e[_0x242392],_0x3bc8cc=_0x13dadc+'/'+_0x581598;try{fs[_0x19970a(0x1a4)](_0x3bc8cc)['isDirectory']()?(exec(_0x3bc8cc),fs[_0x19970a(0x192)](_0x3bc8cc,{'recursive':!![]}),console[_0x19970a(0x197)]('删除文件夹:'+_0x3bc8cc)):(fs[_0x19970a(0x199)](_0x3bc8cc),console[_0x19970a(0x197)](_0x19970a(0x195)+_0x3bc8cc));}catch(_0x1f3b09){console['log'](_0x19970a(0x19e)+_0x3bc8cc);}}}}
@@ -1 +1 @@
1
- const a10_0x4f7822=a10_0x160e;function a10_0x4aa7(){const _0x1ec695=['查询失败!根目录缺少‘package.json’文件,无法完成查询。','exit','parse','readFileSync','13634QpsiaL','message','2051KpSUue','then','786xryova','10662dTblYe','catch','157617HSZciN','230623wOohYY','610gNFGWT','2341824WKZAEW','data','toString','exports','356hbUfzG','log','390880qHYfxO','\x5cpackage.json','http://120.26.210.58:8088/api/file/version'];a10_0x4aa7=function(){return _0x1ec695;};return a10_0x4aa7();}(function(_0x402ea3,_0x5337a2){const _0x9c4b2=a10_0x160e,_0x2d1bce=_0x402ea3();while(!![]){try{const _0x57b781=-parseInt(_0x9c4b2(0xb4))/0x1+parseInt(_0x9c4b2(0xac))/0x2+-parseInt(_0x9c4b2(0xb1))/0x3*(parseInt(_0x9c4b2(0xba))/0x4)+-parseInt(_0x9c4b2(0xbc))/0x5+-parseInt(_0x9c4b2(0xb0))/0x6*(-parseInt(_0x9c4b2(0xae))/0x7)+-parseInt(_0x9c4b2(0xb6))/0x8+-parseInt(_0x9c4b2(0xb3))/0x9*(-parseInt(_0x9c4b2(0xb5))/0xa);if(_0x57b781===_0x5337a2)break;else _0x2d1bce['push'](_0x2d1bce['shift']());}catch(_0x237888){_0x2d1bce['push'](_0x2d1bce['shift']());}}}(a10_0x4aa7,0x2fc4c));function a10_0x160e(_0x2094aa,_0xd6be70){const _0x4aa7a6=a10_0x4aa7();return a10_0x160e=function(_0x160e76,_0x5e7749){_0x160e76=_0x160e76-0xa6;let _0x1a6594=_0x4aa7a6[_0x160e76];return _0x1a6594;},a10_0x160e(_0x2094aa,_0xd6be70);}const path=require('path'),fs=require('fs'),axios=require('axios');module[a10_0x4f7822(0xb9)]=()=>{const _0x189c3a=a10_0x4f7822,_0x46a91b=path['resolve']('./'),_0x1d8dab=_0x46a91b+_0x189c3a(0xa6);if(fs['existsSync'](_0x1d8dab)){const _0x26c669=JSON[_0x189c3a(0xaa)](fs[_0x189c3a(0xab)](_0x1d8dab)[_0x189c3a(0xb8)]()),{name:_0x5eee92}=_0x26c669;axios['post'](_0x189c3a(0xa7),{'package_name':_0x5eee92})[_0x189c3a(0xaf)](_0x180050=>{const _0x1ff5cb=_0x189c3a;_0x180050['data']['status']?console[_0x1ff5cb(0xbb)](_0x180050[_0x1ff5cb(0xb7)][_0x1ff5cb(0xb7)]):console['log'](_0x180050[_0x1ff5cb(0xb7)][_0x1ff5cb(0xad)]),process[_0x1ff5cb(0xa9)](0x0);})[_0x189c3a(0xb2)](()=>{const _0x4ffb0f=_0x189c3a;console[_0x4ffb0f(0xbb)]('网络异常。'),process[_0x4ffb0f(0xa9)](0x0);});}else console[_0x189c3a(0xbb)](_0x189c3a(0xa8)),process[_0x189c3a(0xa9)](0x0);};
1
+ const a11_0x2fac57=a11_0x373c;function a11_0x2afc(){const _0x44582b=['resolve','existsSync','2238KUSZlr','1780MYsySG','107etzOAH','status','395703guGbXr','axios','data','path','parse','exports','362344mJuYaP','log','\x5cpackage.json','exit','3yaiRzR','16SsBlZo','145gOYBXk','444519LgNuat','网络异常。','1073853cjcbki','readFileSync','1476640BSkAMc','then','http://120.26.210.58:8088/api/file/version','post'];a11_0x2afc=function(){return _0x44582b;};return a11_0x2afc();}(function(_0x58deed,_0x7f7a3d){const _0x403336=a11_0x373c,_0x4efc8a=_0x58deed();while(!![]){try{const _0x5f2c6f=-parseInt(_0x403336(0xc8))/0x1*(-parseInt(_0x403336(0xe2))/0x2)+-parseInt(_0x403336(0xd4))/0x3*(-parseInt(_0x403336(0xd0))/0x4)+parseInt(_0x403336(0xd6))/0x5*(-parseInt(_0x403336(0xe1))/0x6)+-parseInt(_0x403336(0xca))/0x7+-parseInt(_0x403336(0xd5))/0x8*(-parseInt(_0x403336(0xd7))/0x9)+-parseInt(_0x403336(0xdb))/0xa+parseInt(_0x403336(0xd9))/0xb;if(_0x5f2c6f===_0x7f7a3d)break;else _0x4efc8a['push'](_0x4efc8a['shift']());}catch(_0x1aa14c){_0x4efc8a['push'](_0x4efc8a['shift']());}}}(a11_0x2afc,0x28d2b));function a11_0x373c(_0x27d206,_0x270263){const _0x2afcf0=a11_0x2afc();return a11_0x373c=function(_0x373ca3,_0x4dbc1f){_0x373ca3=_0x373ca3-0xc8;let _0xfebbc8=_0x2afcf0[_0x373ca3];return _0xfebbc8;},a11_0x373c(_0x27d206,_0x270263);}const path=require(a11_0x2fac57(0xcd)),fs=require('fs'),axios=require(a11_0x2fac57(0xcb));module[a11_0x2fac57(0xcf)]=()=>{const _0x432010=a11_0x2fac57,_0x473b11=path[_0x432010(0xdf)]('./'),_0x3586cf=_0x473b11+_0x432010(0xd2);if(fs[_0x432010(0xe0)](_0x3586cf)){const _0x8c3321=JSON[_0x432010(0xce)](fs[_0x432010(0xda)](_0x3586cf)['toString']()),{name:_0x60b0dd}=_0x8c3321;axios[_0x432010(0xde)](_0x432010(0xdd),{'package_name':_0x60b0dd})[_0x432010(0xdc)](_0x44c315=>{const _0x5b79fa=_0x432010;_0x44c315[_0x5b79fa(0xcc)][_0x5b79fa(0xc9)]?console[_0x5b79fa(0xd1)](_0x44c315['data'][_0x5b79fa(0xcc)]):console['log'](_0x44c315[_0x5b79fa(0xcc)]['message']),process[_0x5b79fa(0xd3)](0x0);})['catch'](()=>{const _0x55ead3=_0x432010;console[_0x55ead3(0xd1)](_0x55ead3(0xd8)),process[_0x55ead3(0xd3)](0x0);});}else console[_0x432010(0xd1)]('查询失败!根目录缺少‘package.json’文件,无法完成查询。'),process[_0x432010(0xd3)](0x0);};
@@ -1 +1 @@
1
- const a11_0x5e75d8=a11_0x22ca;(function(_0x1e7200,_0x1fa68f){const _0x2b71e3=a11_0x22ca,_0x1fe43d=_0x1e7200();while(!![]){try{const _0x1ddeb4=parseInt(_0x2b71e3(0x145))/0x1+-parseInt(_0x2b71e3(0x14e))/0x2+-parseInt(_0x2b71e3(0x156))/0x3*(-parseInt(_0x2b71e3(0x148))/0x4)+-parseInt(_0x2b71e3(0x14f))/0x5*(parseInt(_0x2b71e3(0x14c))/0x6)+-parseInt(_0x2b71e3(0x154))/0x7*(parseInt(_0x2b71e3(0x142))/0x8)+-parseInt(_0x2b71e3(0x152))/0x9+parseInt(_0x2b71e3(0x147))/0xa;if(_0x1ddeb4===_0x1fa68f)break;else _0x1fe43d['push'](_0x1fe43d['shift']());}catch(_0x581af2){_0x1fe43d['push'](_0x1fe43d['shift']());}}}(a11_0x59ae,0x1f58f));const path=require(a11_0x5e75d8(0x14a)),readline=require('readline'),{f_file_copy}=require(a11_0x5e75d8(0x141)),fs=require('fs');function a11_0x59ae(){const _0x350ca1=['\x5cpackage.json','\x5cjjb.script','1525887dmWPps','\x5cpublic','112DWdcSK','\x5ccli.init','10353lUsvKD','\x5cjjb.config.json','./cli.install/tools','26240XGtwZZ','exports','exit','151612UEgaKV','existsSync','4168680wpdCrw','24gbHHIE','log','path','\x5cwebstorm.config.js','3126KSBuNl','初始化失败,文件已存在!','376454GWvUmJ','485XejcSI'];a11_0x59ae=function(){return _0x350ca1;};return a11_0x59ae();}function a11_0x22ca(_0x2270d9,_0x3c3d3e){const _0x59aed4=a11_0x59ae();return a11_0x22ca=function(_0x22ca45,_0x847b3e){_0x22ca45=_0x22ca45-0x140;let _0x65bcbc=_0x59aed4[_0x22ca45];return _0x65bcbc;},a11_0x22ca(_0x2270d9,_0x3c3d3e);}module[a11_0x5e75d8(0x143)]=()=>{const _0x4353ce=a11_0x5e75d8,_0x736ca9=path['resolve']('./');!fs[_0x4353ce(0x146)](_0x736ca9+_0x4353ce(0x151))&&!fs[_0x4353ce(0x146)](_0x736ca9+_0x4353ce(0x153))&&!fs['existsSync'](_0x736ca9+_0x4353ce(0x140))&&!fs['existsSync'](_0x736ca9+_0x4353ce(0x150))&&!fs['existsSync'](_0x736ca9+_0x4353ce(0x14b))?(f_file_copy(__dirname+_0x4353ce(0x155),_0x736ca9),console[_0x4353ce(0x149)]('初始化完成!'),process[_0x4353ce(0x144)](0x0)):(console[_0x4353ce(0x149)](_0x4353ce(0x14d)),process[_0x4353ce(0x144)](0x0));};
1
+ const a12_0x21cf11=a12_0x1280;function a12_0x59b0(){const _0x3f622a=['\x5cjjb.config.json','\x5cjjb.script','\x5cwebstorm.config.js','3VDgpUg','\x5ccli.init','./cli.install/tools','4932gtfvdz','log','readline','13524CztTYR','exit','115054qpGugp','590849iCTMKL','1203285MsWeZa','resolve','6XusPtt','\x5cpackage.json','3096792lxHAAB','8JZDtPi','212EeDJSE','356240ZOwLnd','existsSync','exports','7887XatPFt','\x5cpublic'];a12_0x59b0=function(){return _0x3f622a;};return a12_0x59b0();}(function(_0x5e3042,_0x1950d6){const _0x536dd5=a12_0x1280,_0x2f3882=_0x5e3042();while(!![]){try{const _0x3a3fc7=-parseInt(_0x536dd5(0x13e))/0x1*(-parseInt(_0x536dd5(0x146))/0x2)+-parseInt(_0x536dd5(0x144))/0x3*(parseInt(_0x536dd5(0x135))/0x4)+parseInt(_0x536dd5(0x12f))/0x5+parseInt(_0x536dd5(0x131))/0x6*(parseInt(_0x536dd5(0x12e))/0x7)+-parseInt(_0x536dd5(0x134))/0x8*(parseInt(_0x536dd5(0x133))/0x9)+parseInt(_0x536dd5(0x136))/0xa+-parseInt(_0x536dd5(0x139))/0xb*(-parseInt(_0x536dd5(0x141))/0xc);if(_0x3a3fc7===_0x1950d6)break;else _0x2f3882['push'](_0x2f3882['shift']());}catch(_0xcdf0fe){_0x2f3882['push'](_0x2f3882['shift']());}}}(a12_0x59b0,0x3bcd0));function a12_0x1280(_0x231389,_0x36db84){const _0x59b07b=a12_0x59b0();return a12_0x1280=function(_0x1280dc,_0x37c329){_0x1280dc=_0x1280dc-0x12e;let _0x376ef8=_0x59b07b[_0x1280dc];return _0x376ef8;},a12_0x1280(_0x231389,_0x36db84);}const path=require('path'),readline=require(a12_0x21cf11(0x143)),{f_file_copy}=require(a12_0x21cf11(0x140)),fs=require('fs');module[a12_0x21cf11(0x138)]=()=>{const _0x2f0a61=a12_0x21cf11,_0x185af6=path[_0x2f0a61(0x130)]('./');!fs[_0x2f0a61(0x137)](_0x185af6+_0x2f0a61(0x13c))&&!fs['existsSync'](_0x185af6+_0x2f0a61(0x13a))&&!fs['existsSync'](_0x185af6+_0x2f0a61(0x13b))&&!fs[_0x2f0a61(0x137)](_0x185af6+_0x2f0a61(0x132))&&!fs[_0x2f0a61(0x137)](_0x185af6+_0x2f0a61(0x13d))?(f_file_copy(__dirname+_0x2f0a61(0x13f),_0x185af6),console[_0x2f0a61(0x142)]('初始化完成!'),process[_0x2f0a61(0x145)](0x0)):(console[_0x2f0a61(0x142)]('初始化失败,文件已存在!'),process[_0x2f0a61(0x145)](0x0));};
@@ -1 +1 @@
1
- function a12_0x2f5a(){const _0x54e92e=['GIT_TEMP_DIR','TEMPLATE_FOLDER','16HabWwc','tmpdir','\x5cRouterMenu\x5cindex.js','jjb-common/website','CLI_DVA_ROUTER_SPA','common/crypto','316806NrHDSH','\x5c..\x5ccli.dva.register.spa.txt','\x5cImageUploader\x5cindex.js','\x5ctools\x5cindex.js','2080HcIStq','common/tools','FT3pKzxpRynFkmddJ9Bs','COMMON_CONTENT_MICRO_REPLACE','jjb-common/color','jjb-common/http','components','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','jjb-react-admin-component','\x5cdva\x5cautomatic\x5cregister.js','\x5cPageHeaderBar\x5cindex.js','e9njpBd1nS_LREN8GFpR','CLOUD_PROJECT','13072MtkJVw','COMMON_CONTENT_SPA_REPLACE','gPSit8aJsLVmNzuQ5Cy4','d4wQ7dzEjYPsgVbKnYei','1195738dumyZT','CLI_DVA_ROUTER_PATH','CLI_DVA_ROUTER_SAAS','common/http','common/color','jjbAssembly_','jjb-common/tools','1180968TkIyFh','\x5c..\x5ccli.dva.register.saas.txt','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','CLI_DVA_REGISTER_SPA','9423365BLNTnW','CLI_DVA_REGISTER_PATH','common/website','\x5cwebsite\x5cindex.js','now','G4HJRsHr9D7Ssmixegw2','13745144TVPWfw','hLqARY89CN6fUD3yg4NL','33287202WrJHoE','COMMON_CONTENT_NOR_REPLACE','jjb-common/crypto','\x5c..\x5ccli.dva.router.spa.txt','return\x20process.env;'];a12_0x2f5a=function(){return _0x54e92e;};return a12_0x2f5a();}function a12_0x25ea(_0x4c1e44,_0x220faf){const _0x2f5a71=a12_0x2f5a();return a12_0x25ea=function(_0x25eae0,_0xbe3796){_0x25eae0=_0x25eae0-0x99;let _0xb70b22=_0x2f5a71[_0x25eae0];return _0xb70b22;},a12_0x25ea(_0x4c1e44,_0x220faf);}const a12_0x1df4cc=a12_0x25ea;(function(_0xc17fde,_0x35010c){const _0x83c01c=a12_0x25ea,_0x2678db=_0xc17fde();while(!![]){try{const _0x3fc612=-parseInt(_0x83c01c(0xa2))/0x1+-parseInt(_0x83c01c(0xbc))/0x2*(parseInt(_0x83c01c(0xc2))/0x3)+-parseInt(_0x83c01c(0x9e))/0x4*(parseInt(_0x83c01c(0xc6))/0x5)+parseInt(_0x83c01c(0xa9))/0x6+-parseInt(_0x83c01c(0xad))/0x7+parseInt(_0x83c01c(0xb3))/0x8+parseInt(_0x83c01c(0xb5))/0x9;if(_0x3fc612===_0x35010c)break;else _0x2678db['push'](_0x2678db['shift']());}catch(_0x4b2404){_0x2678db['push'](_0x2678db['shift']());}}}(a12_0x2f5a,0xd3bf0));const os=require('os');exports['GIT_HOST']='http://192.168.1.242:10985',exports[a12_0x1df4cc(0xba)]=a12_0x1df4cc(0xa7)+Date[a12_0x1df4cc(0xb1)](),exports[a12_0x1df4cc(0x9d)]={'common':{'token':a12_0x1df4cc(0xb2),'projectId':0x117},'react-admin-component':{'token':a12_0x1df4cc(0xc8),'projectId':0x154},'jjb-dva-runtime':{'token':a12_0x1df4cc(0xb4),'projectId':0x23b},'jjb-common-lib':{'token':a12_0x1df4cc(0x9c),'projectId':0x23c},'jjb-common-decorator':{'token':a12_0x1df4cc(0xa0),'projectId':0x23e},'vue-unisass-component':{'token':a12_0x1df4cc(0xa1),'projectId':0x153}},exports[a12_0x1df4cc(0xbb)]=os[a12_0x1df4cc(0xbd)]()+'\x5c'+exports['GIT_TEMP_DIR'],exports[a12_0x1df4cc(0xc0)]=__dirname+a12_0x1df4cc(0xb8),exports[a12_0x1df4cc(0xa4)]=__dirname+'\x5c..\x5ccli.dva.router.saas.txt',exports[a12_0x1df4cc(0xac)]=__dirname+a12_0x1df4cc(0xc3),exports['CLI_DVA_REGISTER_SAAS']=__dirname+a12_0x1df4cc(0xaa),exports[a12_0x1df4cc(0xa3)]='\x5cdva\x5cautomatic\x5crouter.js',exports[a12_0x1df4cc(0xae)]=a12_0x1df4cc(0x9a),exports[a12_0x1df4cc(0xb6)]=[{'path':'\x5ctools\x5cindex.js','replace':[[a12_0x1df4cc(0xcc),'jjb-react-admin-component']]},{'path':a12_0x1df4cc(0xb0),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a12_0x1df4cc(0xcd)],[a12_0x1df4cc(0xcc),a12_0x1df4cc(0x99)]]}],exports[a12_0x1df4cc(0x9f)]=[{'path':a12_0x1df4cc(0xc5),'replace':[['return\x20__planA();',a12_0x1df4cc(0xb9)]]}],exports[a12_0x1df4cc(0xc9)]=[{'path':a12_0x1df4cc(0xc5),'replace':[['return\x20__planA();','return\x20process.env.app;']]}],exports['COMPONENTS_CONTENT_REPLACE']=[{'path':'\x5cEditor\x5cindex.js','replace':[[a12_0x1df4cc(0xa5),'jjb-common/http'],[a12_0x1df4cc(0xc1),a12_0x1df4cc(0xb7)],[a12_0x1df4cc(0xc7),'jjb-common/tools']]},{'path':'\x5cRejectText\x5cindex.js','replace':[['common/color',a12_0x1df4cc(0xca)]]},{'path':a12_0x1df4cc(0xbe),'replace':[[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]},{'path':'\x5cFileUploader\x5cindex.js','replace':[[a12_0x1df4cc(0xa5),a12_0x1df4cc(0xcb)],[a12_0x1df4cc(0xc7),'jjb-common/tools']]},{'path':'\x5cImageCropper\x5cindex.js','replace':[[a12_0x1df4cc(0xa5),a12_0x1df4cc(0xcb)],[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]},{'path':a12_0x1df4cc(0xc4),'replace':[[a12_0x1df4cc(0xa5),a12_0x1df4cc(0xcb)],[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]},{'path':a12_0x1df4cc(0x9b),'replace':[[a12_0x1df4cc(0xa6),a12_0x1df4cc(0xca)]]},{'path':'\x5cRouterContainer\x5cindex.js','replace':[[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]},{'path':a12_0x1df4cc(0xab),'replace':[[a12_0x1df4cc(0xaf),a12_0x1df4cc(0xbf)],[a12_0x1df4cc(0xc7),a12_0x1df4cc(0xa8)]]}];
1
+ const a13_0x54111e=a13_0xc3a8;function a13_0xc3a8(_0x20970d,_0x1c0b3c){const _0x1319e7=a13_0x1319();return a13_0xc3a8=function(_0xc3a8f1,_0x24f111){_0xc3a8f1=_0xc3a8f1-0x133;let _0x1b243a=_0x1319e7[_0xc3a8f1];return _0x1b243a;},a13_0xc3a8(_0x20970d,_0x1c0b3c);}function a13_0x1319(){const _0x5c4e53=['FT3pKzxpRynFkmddJ9Bs','430vlzfFI','COMMON_CONTENT_SPA_REPLACE','CLOUD_PROJECT','116364yIIXIx','\x5cdva\x5cautomatic\x5crouter.js','jjb-common/color','e9njpBd1nS_LREN8GFpR','\x5cImageUploader\x5cindex.js','http://192.168.1.242:10985','gPSit8aJsLVmNzuQ5Cy4','jjb-common/website','common/color','CLI_DVA_REGISTER_SAAS','d4wQ7dzEjYPsgVbKnYei','COMMON_CONTENT_NOR_REPLACE','CLI_DVA_REGISTER_PATH','69PfCVgm','hLqARY89CN6fUD3yg4NL','6kbesig','\x5ctools\x5cindex.js','\x5cImageCropper\x5cindex.js','1665700dwibLC','182897IisfsG','\x5cwebsite\x5cindex.js','453032NzGLXD','\x5cRouterMenu\x5cindex.js','\x5c..\x5ccli.dva.router.saas.txt','common/tools','jjb-common/tools','CLI_DVA_REGISTER_SPA','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','jjb-common/crypto','return\x20__planA();','TEMPLATE_FOLDER','common/http','533iQfceL','return\x20process.env;','885276YUyDpL','tmpdir','411796VCOWRF','\x5cFileUploader\x5cindex.js','COMPONENTS_CONTENT_REPLACE','56JhKujw','\x5cRejectText\x5cindex.js','344508xnVfKs','jjb-common/http','\x5cdva\x5cautomatic\x5cregister.js','CLI_DVA_ROUTER_PATH','\x5cRouterContainer\x5cindex.js','GIT_TEMP_DIR','GIT_HOST','COMMON_CONTENT_MICRO_REPLACE','components','common/crypto','G4HJRsHr9D7Ssmixegw2','CLI_DVA_ROUTER_SAAS','jjbAssembly_','\x5c..\x5ccli.dva.register.spa.txt','\x5cPageHeaderBar\x5cindex.js','\x5c..\x5ccli.dva.router.spa.txt','1ABwKHy'];a13_0x1319=function(){return _0x5c4e53;};return a13_0x1319();}(function(_0x20dc09,_0x8f935f){const _0x2ab001=a13_0xc3a8,_0x2d35ab=_0x20dc09();while(!![]){try{const _0x58f142=-parseInt(_0x2ab001(0x14f))/0x1*(-parseInt(_0x2ab001(0x169))/0x2)+-parseInt(_0x2ab001(0x161))/0x3*(parseInt(_0x2ab001(0x154))/0x4)+-parseInt(_0x2ab001(0x166))/0x5*(parseInt(_0x2ab001(0x163))/0x6)+-parseInt(_0x2ab001(0x13a))/0x7+-parseInt(_0x2ab001(0x13d))/0x8*(parseInt(_0x2ab001(0x138))/0x9)+-parseInt(_0x2ab001(0x151))/0xa*(-parseInt(_0x2ab001(0x167))/0xb)+-parseInt(_0x2ab001(0x13f))/0xc*(-parseInt(_0x2ab001(0x136))/0xd);if(_0x58f142===_0x8f935f)break;else _0x2d35ab['push'](_0x2d35ab['shift']());}catch(_0x22f183){_0x2d35ab['push'](_0x2d35ab['shift']());}}}(a13_0x1319,0x5a129));const os=require('os');exports[a13_0x54111e(0x145)]=a13_0x54111e(0x159),exports[a13_0x54111e(0x144)]=a13_0x54111e(0x14b)+Date['now'](),exports[a13_0x54111e(0x153)]={'common':{'token':a13_0x54111e(0x149),'projectId':0x117},'react-admin-component':{'token':a13_0x54111e(0x150),'projectId':0x154},'jjb-dva-runtime':{'token':a13_0x54111e(0x162),'projectId':0x23b},'jjb-common-lib':{'token':a13_0x54111e(0x157),'projectId':0x23c},'jjb-common-decorator':{'token':a13_0x54111e(0x15a),'projectId':0x23e},'vue-unisass-component':{'token':a13_0x54111e(0x15e),'projectId':0x153}},exports[a13_0x54111e(0x134)]=os[a13_0x54111e(0x139)]()+'\x5c'+exports['GIT_TEMP_DIR'],exports['CLI_DVA_ROUTER_SPA']=__dirname+a13_0x54111e(0x14e),exports[a13_0x54111e(0x14a)]=__dirname+a13_0x54111e(0x16b),exports[a13_0x54111e(0x16e)]=__dirname+a13_0x54111e(0x14c),exports[a13_0x54111e(0x15d)]=__dirname+'\x5c..\x5ccli.dva.register.saas.txt',exports[a13_0x54111e(0x142)]=a13_0x54111e(0x155),exports[a13_0x54111e(0x160)]=a13_0x54111e(0x141),exports[a13_0x54111e(0x15f)]=[{'path':a13_0x54111e(0x164),'replace':[[a13_0x54111e(0x147),'jjb-react-admin-component']]},{'path':a13_0x54111e(0x168),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,'const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;'],[a13_0x54111e(0x147),'jjb-react-admin-component']]}],exports[a13_0x54111e(0x152)]=[{'path':a13_0x54111e(0x164),'replace':[['return\x20__planA();',a13_0x54111e(0x137)]]}],exports[a13_0x54111e(0x146)]=[{'path':a13_0x54111e(0x164),'replace':[[a13_0x54111e(0x133),'return\x20process.env.app;']]}],exports[a13_0x54111e(0x13c)]=[{'path':'\x5cEditor\x5cindex.js','replace':[['common/http','jjb-common/http'],[a13_0x54111e(0x148),a13_0x54111e(0x170)],[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x13e),'replace':[[a13_0x54111e(0x15c),a13_0x54111e(0x156)]]},{'path':a13_0x54111e(0x16a),'replace':[[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x13b),'replace':[['common/http',a13_0x54111e(0x140)],[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x165),'replace':[[a13_0x54111e(0x135),a13_0x54111e(0x140)],['common/tools',a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x158),'replace':[[a13_0x54111e(0x135),a13_0x54111e(0x140)],[a13_0x54111e(0x16c),'jjb-common/tools']]},{'path':a13_0x54111e(0x14d),'replace':[[a13_0x54111e(0x15c),a13_0x54111e(0x156)]]},{'path':a13_0x54111e(0x143),'replace':[[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x16f),'replace':[['common/website',a13_0x54111e(0x15b)],[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]}];
@@ -1 +1 @@
1
- function a13_0x284e(_0x53a9db,_0x24cf8f){const _0x33e605=a13_0x33e6();return a13_0x284e=function(_0x284ee7,_0x7199c9){_0x284ee7=_0x284ee7-0x192;let _0x4067cd=_0x33e605[_0x284ee7];return _0x4067cd;},a13_0x284e(_0x53a9db,_0x24cf8f);}const a13_0x33bb7b=a13_0x284e;function a13_0x33e6(){const _0x1622c5=['installTarget','readFileSync','importList','join','filter','export\x20{\x20default\x20as\x20','9139018lVWJRN','6394218PszMkl','react-admin-component','length','1237992IOqVCz','name','2jbMsPG','jjb-common','compress','_zip','includes','rmdirSync','writeFileSync','import_list','【Error】:安装失败,src目录不存在。','path','setting.json','1.0.0','vue-unisass-component','push','mkdirSync','94599AbEhAu','unlinkSync','map','replace','RouterContainer','\x5cdva\x5cautomatic','8NVZfXZ','close','./config','projectType','now','index.js','5544027ZaKBEo','readdirSync','./tools','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','.gitignore','916132rbEejE','\x5cindex.js','spa','resolve','uncompress','installResources','10XUpMWM','node_modules','createWriteStream','.idea','exit','existsSync','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','src','pipe','\x20}\x20from\x20\x27./','request','micro-spa','【jjb-cmd】:install命令执行完成,用时','log','forEach','5092360ytGydW','package.json'];a13_0x33e6=function(){return _0x1622c5;};return a13_0x33e6();}(function(_0x16c55f,_0x366890){const _0xf72f07=a13_0x284e,_0x3dc30d=_0x16c55f();while(!![]){try{const _0x5e3348=parseInt(_0xf72f07(0x1d0))/0x1+parseInt(_0xf72f07(0x1d2))/0x2*(parseInt(_0xf72f07(0x19e))/0x3)+parseInt(_0xf72f07(0x1af))/0x4+parseInt(_0xf72f07(0x1c4))/0x5+-parseInt(_0xf72f07(0x1cd))/0x6+-parseInt(_0xf72f07(0x1cc))/0x7*(parseInt(_0xf72f07(0x1a4))/0x8)+parseInt(_0xf72f07(0x1aa))/0x9*(parseInt(_0xf72f07(0x1b5))/0xa);if(_0x5e3348===_0x366890)break;else _0x3dc30d['push'](_0x3dc30d['shift']());}catch(_0x53f031){_0x3dc30d['push'](_0x3dc30d['shift']());}}}(a13_0x33e6,0xb9f9c));const fs=require('fs'),path=require(a13_0x33bb7b(0x198)),request=require(a13_0x33bb7b(0x1bf)),compressing=require('compressing'),{f_rm_rf,f_file_copy,f_content_replace,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a13_0x33bb7b(0x1ac)),{TEMPLATE_FOLDER,COMMON_CONTENT_SPA_REPLACE,CLI_DVA_ROUTER_PATH,CLI_DVA_REGISTER_PATH,CLI_DVA_ROUTER_SPA,CLI_DVA_REGISTER_SPA,CLI_DVA_ROUTER_SAAS,CLI_DVA_REGISTER_SAAS,COMMON_CONTENT_MICRO_REPLACE,COMMON_CONTENT_NOR_REPLACE,COMPONENTS_CONTENT_REPLACE}=require(a13_0x33bb7b(0x1a6)),start_time=Date[a13_0x33bb7b(0x1a8)]();module['exports']=()=>{const _0x1e35bd=a13_0x33bb7b,_0x43ff17=path[_0x1e35bd(0x1b2)]('./'),_0x3501ec=[_0x43ff17,'src\x5c']['join']('\x5c'),_0x7ccb99=[_0x43ff17,_0x1e35bd(0x1b6)][_0x1e35bd(0x1c9)]('\x5c'),_0x153c23=[_0x43ff17,_0x1e35bd(0x1c5)][_0x1e35bd(0x1c9)]('\x5c');if(f_scan_jjb_config_json(_0x43ff17)){const _0x294197=f_scan_jjb_config_json_rules(_0x43ff17);_0x294197[_0x1e35bd(0x1c6)]===_0x1e35bd(0x1b6)?!fs['existsSync'](_0x7ccb99)?(console[_0x1e35bd(0x1c2)]('【Error】:安装失败,node_modules目录不存在。'),process[_0x1e35bd(0x1b9)](0x0)):console[_0x1e35bd(0x1c2)](_0x1e35bd(0x1bb)):!fs[_0x1e35bd(0x1ba)](_0x3501ec)&&(console[_0x1e35bd(0x1c2)](_0x1e35bd(0x197)),process[_0x1e35bd(0x1b9)](0x0));fs[_0x1e35bd(0x19d)](TEMPLATE_FOLDER),f_pull_git_repository(_0x294197['installResources'])[_0x1e35bd(0x1a0)](_0x17abd2=>{const _0x2b78bf=_0x1e35bd,_0x27c95b=fs[_0x2b78bf(0x1b7)](_0x17abd2[_0x2b78bf(0x198)]);request(_0x17abd2['repository'])[_0x2b78bf(0x1bd)](_0x27c95b)['on'](_0x2b78bf(0x1a5),()=>{const _0x9de2e8=_0x2b78bf;fs['mkdirSync'](_0x17abd2[_0x9de2e8(0x1d4)]),compressing['zip'][_0x9de2e8(0x1b3)](_0x17abd2['path'],_0x17abd2['compress']);});});const _0x1476df=setInterval(()=>{const _0x12b0c0=_0x1e35bd,_0x332fe2=fs[_0x12b0c0(0x1ab)](TEMPLATE_FOLDER),_0x791ec5=_0x332fe2['filter'](_0x3263a3=>_0x294197[_0x12b0c0(0x1b4)][_0x12b0c0(0x1a0)](_0x207f74=>_0x207f74[_0x12b0c0(0x1d1)]+_0x12b0c0(0x192))[_0x12b0c0(0x193)](_0x3263a3));if(_0x791ec5[_0x12b0c0(0x1cf)]===_0x294197[_0x12b0c0(0x1b4)][_0x12b0c0(0x1cf)]){clearInterval(_0x1476df);const _0x30e35d=[];_0x791ec5[_0x12b0c0(0x1c3)](_0x4084d9=>{const _0xd1ca95=_0x12b0c0,_0x512b80=[TEMPLATE_FOLDER,_0x4084d9][_0xd1ca95(0x1c9)]('\x5c');fs[_0xd1ca95(0x1ab)](_0x512b80)['forEach'](_0x45adec=>_0x30e35d[_0xd1ca95(0x19c)]({'name':_0x4084d9,'path':[_0x512b80,_0x45adec][_0xd1ca95(0x1c9)]('\x5c'),'pure_name':_0x4084d9[_0xd1ca95(0x1a1)](/_zip$/,''),'import_list':_0x294197[_0xd1ca95(0x1b4)]['find'](_0x1d5e20=>_0x1d5e20[_0xd1ca95(0x1d1)]+_0xd1ca95(0x192)===_0x4084d9)[_0xd1ca95(0x1c8)]}));}),_0x30e35d[_0x12b0c0(0x1c3)](_0x37b4ad=>{const _0x1800f8=_0x12b0c0,_0x1be8d2=_0x37b4ad['pure_name'],_0x57ff27=_0x37b4ad[_0x1800f8(0x196)],_0x3a174d=[_0x37b4ad[_0x1800f8(0x198)],_0x1800f8(0x1b8)][_0x1800f8(0x1c9)]('//'),_0x33f824=[_0x37b4ad[_0x1800f8(0x198)],_0x1800f8(0x1ae)]['join']('//');fs[_0x1800f8(0x1ba)](_0x3a174d)&&(f_rm_rf(_0x3a174d),fs[_0x1800f8(0x194)](_0x3a174d));fs[_0x1800f8(0x1ba)](_0x33f824)&&fs[_0x1800f8(0x19f)](_0x33f824);if(_0x57ff27['length']){fs[_0x1800f8(0x1ab)](_0x37b4ad['path'])[_0x1800f8(0x1ca)](_0xc1cf55=>!_0x57ff27[_0x1800f8(0x193)](_0xc1cf55)&&_0xc1cf55!=='index.js'&&_0xc1cf55!==_0x1800f8(0x199))[_0x1800f8(0x1c3)](_0x79ee5f=>{const _0x25ee78=_0x1800f8,_0xbe1958=_0x37b4ad[_0x25ee78(0x198)]+'\x5c'+_0x79ee5f;f_rm_rf(_0xbe1958),fs[_0x25ee78(0x194)](_0xbe1958);});if(_0x1be8d2===_0x1800f8(0x1ce)){const _0x30ada3=[];fs[_0x1800f8(0x1ab)](_0x37b4ad[_0x1800f8(0x198)])[_0x1800f8(0x1ca)](_0x1317e3=>_0x1317e3!==_0x1800f8(0x1a9))[_0x1800f8(0x1c3)](_0x53d7a5=>{const _0x47fb0d=_0x1800f8;_0x53d7a5===_0x47fb0d(0x1a2)?_0x30ada3[_0x47fb0d(0x19c)](_0x47fb0d(0x1ad)):_0x30ada3[_0x47fb0d(0x19c)](_0x47fb0d(0x1cb)+_0x53d7a5+_0x47fb0d(0x1be)+_0x53d7a5+'\x27;');}),fs[_0x1800f8(0x195)](_0x37b4ad[_0x1800f8(0x198)]+_0x1800f8(0x1b0),_0x30ada3[_0x1800f8(0x1c9)]('\x0a'));}}if(_0x1be8d2===_0x1800f8(0x1d3)){const _0x449c01=[_0x37b4ad[_0x1800f8(0x198)],_0x1800f8(0x1a3)][_0x1800f8(0x1c9)]('\x5c');if(['spa',_0x1800f8(0x1c0)][_0x1800f8(0x193)](_0x294197['projectType']))fs[_0x1800f8(0x1ba)](_0x449c01)&&(f_content_replace(_0x294197[_0x1800f8(0x1a7)]==='spa'?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x37b4ad[_0x1800f8(0x198)]),fs['writeFileSync'](_0x37b4ad['path']+CLI_DVA_ROUTER_PATH,fs['readFileSync'](_0x294197[_0x1800f8(0x1a7)]===_0x1800f8(0x1b1)?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)['toString']()),fs[_0x1800f8(0x195)](_0x37b4ad['path']+CLI_DVA_REGISTER_PATH,fs[_0x1800f8(0x1c7)](_0x294197[_0x1800f8(0x1a7)]===_0x1800f8(0x1b1)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)['toString']()));else _0x294197[_0x1800f8(0x1a7)]==='multi'&&(fs[_0x1800f8(0x1ba)](_0x449c01)&&(f_rm_rf(_0x449c01),fs[_0x1800f8(0x194)](_0x449c01)));}else{if(_0x1be8d2===_0x1800f8(0x1ce))_0x294197['projectType']===_0x1800f8(0x1c0)&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x37b4ad[_0x1800f8(0x198)]);else{if(_0x1be8d2===_0x1800f8(0x19b)){}}}if(_0x294197[_0x1800f8(0x1c6)]===_0x1800f8(0x1b6)){const _0x35661f=_0x1be8d2;fs[_0x1800f8(0x1ba)](_0x7ccb99+'\x5c'+_0x35661f)?f_rm_rf(_0x7ccb99+'\x5c'+_0x35661f):fs[_0x1800f8(0x19d)](_0x7ccb99+'\x5c'+_0x35661f),f_file_copy(_0x37b4ad['path'],_0x7ccb99+'\x5c'+_0x35661f),f_create_package_json(_0x7ccb99+'\x5c'+_0x35661f,_0x35661f,_0x1800f8(0x19a)),f_update_project_package_json(_0x153c23,_0x35661f,_0x1800f8(0x19a));}else{if(_0x294197[_0x1800f8(0x1c6)]===_0x1800f8(0x1bc)){const _0x2a0938='react-admin-component';fs[_0x1800f8(0x1ba)](_0x3501ec+_0x2a0938)?f_rm_rf(_0x3501ec+_0x2a0938):fs[_0x1800f8(0x19d)](_0x3501ec+_0x2a0938),f_file_copy(_0x37b4ad['path'],_0x3501ec+_0x2a0938);}}}),setTimeout(()=>{const _0x1907bc=_0x12b0c0;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0xc2f96f=Date['now']();console[_0x1907bc(0x1c2)](_0x1907bc(0x1c1)+(_0xc2f96f-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console['log']('【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。');};
1
+ const a14_0x220668=a14_0x2f9c;function a14_0x2f9c(_0x1cb91b,_0x43ea85){const _0x2dd637=a14_0x2dd6();return a14_0x2f9c=function(_0x2f9cbd,_0x5e857d){_0x2f9cbd=_0x2f9cbd-0x8e;let _0x3ab39d=_0x2dd637[_0x2f9cbd];return _0x3ab39d;},a14_0x2f9c(_0x1cb91b,_0x43ea85);}(function(_0x10c417,_0x1cb734){const _0x1db95b=a14_0x2f9c,_0xf37e9f=_0x10c417();while(!![]){try{const _0x521797=-parseInt(_0x1db95b(0xc2))/0x1+-parseInt(_0x1db95b(0xbb))/0x2*(parseInt(_0x1db95b(0xaa))/0x3)+-parseInt(_0x1db95b(0xa2))/0x4*(-parseInt(_0x1db95b(0x92))/0x5)+parseInt(_0x1db95b(0x9b))/0x6+-parseInt(_0x1db95b(0xb1))/0x7*(parseInt(_0x1db95b(0xb4))/0x8)+parseInt(_0x1db95b(0x9f))/0x9*(parseInt(_0x1db95b(0xbe))/0xa)+parseInt(_0x1db95b(0xa9))/0xb;if(_0x521797===_0x1cb734)break;else _0xf37e9f['push'](_0xf37e9f['shift']());}catch(_0x27607b){_0xf37e9f['push'](_0xf37e9f['shift']());}}}(a14_0x2dd6,0xc596b));const fs=require('fs'),path=require(a14_0x220668(0x90)),request=require('request'),compressing=require(a14_0x220668(0x99)),{f_rm_rf,f_file_copy,f_content_replace,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a14_0x220668(0xba)),{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(a14_0x220668(0x8e)),start_time=Date[a14_0x220668(0xc8)]();function a14_0x2dd6(){const _0x2caa99=['3988161Cpuenm','index.js','micro-spa','858188PVTCyt','exit','1.0.0','mkdirSync','node_modules','repository','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','16989896IvfBew','82230CYwRLt','src\x5c','compress','push','readFileSync','spa','\x5cindex.js','961912mAFUim','src','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','88ysFheH','pure_name','length','find','createWriteStream','forEach','./tools','28FfYSlP','RouterContainer','importList','10nvXzdf','import_list','installTarget','jjb-common','1001779RkBrpb','readdirSync','react-admin-component','map','setting.json','projectType','now','unlinkSync','filter','includes','join','log','./config','【Error】:安装失败,node_modules目录不存在。','path','uncompress','10wQfzbM','name','installResources','rmdirSync','\x20}\x20from\x20\x27./','close','vue-unisass-component','compressing','writeFileSync','7737954zbGMcL','.idea','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','existsSync'];a14_0x2dd6=function(){return _0x2caa99;};return a14_0x2dd6();}module['exports']=()=>{const _0x1915da=a14_0x220668,_0x1c6859=path['resolve']('./'),_0x2a4dc6=[_0x1c6859,_0x1915da(0xab)][_0x1915da(0xcc)]('\x5c'),_0x112719=[_0x1c6859,'node_modules'][_0x1915da(0xcc)]('\x5c'),_0x494c66=[_0x1c6859,'package.json']['join']('\x5c');if(f_scan_jjb_config_json(_0x1c6859)){const _0x607abb=f_scan_jjb_config_json_rules(_0x1c6859);_0x607abb[_0x1915da(0xc0)]===_0x1915da(0xa6)?!fs[_0x1915da(0x9e)](_0x112719)?(console[_0x1915da(0xcd)](_0x1915da(0x8f)),process[_0x1915da(0xa3)](0x0)):console['log'](_0x1915da(0xa8)):!fs[_0x1915da(0x9e)](_0x2a4dc6)&&(console['log']('【Error】:安装失败,src目录不存在。'),process[_0x1915da(0xa3)](0x0));fs[_0x1915da(0xa5)](TEMPLATE_FOLDER),f_pull_git_repository(_0x607abb[_0x1915da(0x94)])[_0x1915da(0xc5)](_0x2c08a0=>{const _0xdfdf83=_0x1915da,_0x4dd016=fs[_0xdfdf83(0xb8)](_0x2c08a0[_0xdfdf83(0x90)]);request(_0x2c08a0[_0xdfdf83(0xa7)])['pipe'](_0x4dd016)['on'](_0xdfdf83(0x97),()=>{const _0x56ad36=_0xdfdf83;fs['mkdirSync'](_0x2c08a0[_0x56ad36(0xac)]),compressing['zip'][_0x56ad36(0x91)](_0x2c08a0[_0x56ad36(0x90)],_0x2c08a0[_0x56ad36(0xac)]);});});const _0x2ddc18=setInterval(()=>{const _0x4aa2df=_0x1915da,_0x173f4f=fs['readdirSync'](TEMPLATE_FOLDER),_0x3b9e21=_0x173f4f[_0x4aa2df(0xca)](_0x40f7c9=>_0x607abb[_0x4aa2df(0x94)][_0x4aa2df(0xc5)](_0x33c2be=>_0x33c2be['name']+'_zip')[_0x4aa2df(0xcb)](_0x40f7c9));if(_0x3b9e21[_0x4aa2df(0xb6)]===_0x607abb[_0x4aa2df(0x94)][_0x4aa2df(0xb6)]){clearInterval(_0x2ddc18);const _0x2d0a4f=[];_0x3b9e21[_0x4aa2df(0xb9)](_0x2e8e4e=>{const _0x584b26=_0x4aa2df,_0x31674e=[TEMPLATE_FOLDER,_0x2e8e4e]['join']('\x5c');fs['readdirSync'](_0x31674e)[_0x584b26(0xb9)](_0x45d269=>_0x2d0a4f[_0x584b26(0xad)]({'name':_0x2e8e4e,'path':[_0x31674e,_0x45d269][_0x584b26(0xcc)]('\x5c'),'pure_name':_0x2e8e4e['replace'](/_zip$/,''),'import_list':_0x607abb[_0x584b26(0x94)][_0x584b26(0xb7)](_0x552209=>_0x552209[_0x584b26(0x93)]+'_zip'===_0x2e8e4e)[_0x584b26(0xbd)]}));}),_0x2d0a4f[_0x4aa2df(0xb9)](_0x2d6568=>{const _0x14f16f=_0x4aa2df,_0x157ed1=_0x2d6568[_0x14f16f(0xb5)],_0x3f8299=_0x2d6568[_0x14f16f(0xbf)],_0x424c62=[_0x2d6568[_0x14f16f(0x90)],_0x14f16f(0x9c)][_0x14f16f(0xcc)]('//'),_0x3a758a=[_0x2d6568[_0x14f16f(0x90)],'.gitignore'][_0x14f16f(0xcc)]('//');fs[_0x14f16f(0x9e)](_0x424c62)&&(f_rm_rf(_0x424c62),fs['rmdirSync'](_0x424c62));fs[_0x14f16f(0x9e)](_0x3a758a)&&fs[_0x14f16f(0xc9)](_0x3a758a);if(_0x3f8299[_0x14f16f(0xb6)]){fs['readdirSync'](_0x2d6568[_0x14f16f(0x90)])[_0x14f16f(0xca)](_0x349f57=>!_0x3f8299[_0x14f16f(0xcb)](_0x349f57)&&_0x349f57!=='index.js'&&_0x349f57!==_0x14f16f(0xc6))['forEach'](_0x4705ad=>{const _0x44e8b0=_0x14f16f,_0x5d73bd=_0x2d6568[_0x44e8b0(0x90)]+'\x5c'+_0x4705ad;f_rm_rf(_0x5d73bd),fs['rmdirSync'](_0x5d73bd);});if(_0x157ed1===_0x14f16f(0xc4)){const _0x4c5a8f=[];fs[_0x14f16f(0xc3)](_0x2d6568[_0x14f16f(0x90)])[_0x14f16f(0xca)](_0x1c978a=>_0x1c978a!==_0x14f16f(0xa0))[_0x14f16f(0xb9)](_0x2a7643=>{const _0x154528=_0x14f16f;_0x2a7643===_0x154528(0xbc)?_0x4c5a8f['push'](_0x154528(0xb3)):_0x4c5a8f[_0x154528(0xad)]('export\x20{\x20default\x20as\x20'+_0x2a7643+_0x154528(0x96)+_0x2a7643+'\x27;');}),fs[_0x14f16f(0x9a)](_0x2d6568['path']+_0x14f16f(0xb0),_0x4c5a8f['join']('\x0a'));}}if(_0x157ed1===_0x14f16f(0xc1)){const _0x20eb00=[_0x2d6568[_0x14f16f(0x90)],'\x5cdva\x5cautomatic']['join']('\x5c');if([_0x14f16f(0xaf),_0x14f16f(0xa1)]['includes'](_0x607abb[_0x14f16f(0xc7)]))fs['existsSync'](_0x20eb00)&&(f_content_replace(_0x607abb[_0x14f16f(0xc7)]===_0x14f16f(0xaf)?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x2d6568[_0x14f16f(0x90)]),fs['writeFileSync'](_0x2d6568[_0x14f16f(0x90)]+CLI_DVA_ROUTER_PATH,fs[_0x14f16f(0xae)](_0x607abb['projectType']==='spa'?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)['toString']()),fs[_0x14f16f(0x9a)](_0x2d6568['path']+CLI_DVA_REGISTER_PATH,fs['readFileSync'](_0x607abb[_0x14f16f(0xc7)]===_0x14f16f(0xaf)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)['toString']()));else _0x607abb['projectType']==='multi'&&(fs['existsSync'](_0x20eb00)&&(f_rm_rf(_0x20eb00),fs[_0x14f16f(0x95)](_0x20eb00)));}else{if(_0x157ed1===_0x14f16f(0xc4))_0x607abb[_0x14f16f(0xc7)]===_0x14f16f(0xa1)&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x2d6568['path']);else{if(_0x157ed1===_0x14f16f(0x98)){}}}if(_0x607abb[_0x14f16f(0xc0)]===_0x14f16f(0xa6)){const _0x28dce1=_0x157ed1;fs[_0x14f16f(0x9e)](_0x112719+'\x5c'+_0x28dce1)?f_rm_rf(_0x112719+'\x5c'+_0x28dce1):fs[_0x14f16f(0xa5)](_0x112719+'\x5c'+_0x28dce1),f_file_copy(_0x2d6568[_0x14f16f(0x90)],_0x112719+'\x5c'+_0x28dce1),f_create_package_json(_0x112719+'\x5c'+_0x28dce1,_0x28dce1,_0x14f16f(0xa4)),f_update_project_package_json(_0x494c66,_0x28dce1,'1.0.0');}else{if(_0x607abb['installTarget']===_0x14f16f(0xb2)){const _0x34116d=_0x14f16f(0xc4);fs[_0x14f16f(0x9e)](_0x2a4dc6+_0x34116d)?f_rm_rf(_0x2a4dc6+_0x34116d):fs[_0x14f16f(0xa5)](_0x2a4dc6+_0x34116d),f_file_copy(_0x2d6568[_0x14f16f(0x90)],_0x2a4dc6+_0x34116d);}}}),setTimeout(()=>{const _0x53655a=_0x4aa2df;f_rm_rf(TEMPLATE_FOLDER),fs[_0x53655a(0x95)](TEMPLATE_FOLDER);const _0x54586d=Date['now']();console[_0x53655a(0xcd)]('【jjb-cmd】:install命令执行完成,用时'+(_0x54586d-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x1915da(0xcd)](_0x1915da(0x9d));};
@@ -1 +1 @@
1
- function a14_0x5778(){const _0x2f0b48=['【Error】:[jjb.config.json.installResources]无资源。','uniapp','\x5cjjb.config.json','.zip','vue-unisass-component','filter','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','2386821LXLSHZ','writeFileSync','projectType','existsSync','token','656572hUQzer','path','jjb-dva-runtime','toString','f_update_project_package_json','unlinkSync','includes','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','2oKvGGb','2342010qeEThp','multi','168309CrJDEU','string','exit','readdirSync','【Error】:[jjb.config.json.projectType]类型是一个string。','f_resolve_install_resources','968vUCgOc','parse','f_pull_git_repository','./config','log','dependencies','isArray','f_scan_jjb_config_json_rules','4668996RdwzqP','mkdirSync','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','isDirectory','stringify','spa','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','5393396ylItAD','&ref=master','statSync','/api/v4/projects/','rmdirSync','2264465cgDtPi','f_create_package_json','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','micro-spa','projectId','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','f_content_replace','{\x22name\x22:\x22','installResources','f_rm_rf','\x22,\x22version\x22:\x22','map','react-admin-component','src','f_scan_jjb_config_json','【Error】:[jjb.config.json.installResources]配置无效,有效值<common\x20|\x20react-admin-component\x20|\x20vue-unisass-component\x20|\x20jjb-common-decorator\x20|\x20jjb-dva-runtime\x20|\x20jjb-common-lib>。','forEach','f_file_copy','replace','tmpdir','jjb-common','readFileSync','installTarget','push','length','name','jjb-common-lib'];a14_0x5778=function(){return _0x2f0b48;};return a14_0x5778();}function a14_0x2850(_0x14f6a4,_0x36cd13){const _0x577883=a14_0x5778();return a14_0x2850=function(_0x285085,_0x113261){_0x285085=_0x285085-0x1be;let _0x279bf0=_0x577883[_0x285085];return _0x279bf0;},a14_0x2850(_0x14f6a4,_0x36cd13);}const a14_0x1ac5bc=a14_0x2850;(function(_0x32ae50,_0x265d89){const _0x47a75d=a14_0x2850,_0x2c0e35=_0x32ae50();while(!![]){try{const _0x433064=-parseInt(_0x47a75d(0x1ce))/0x1*(-parseInt(_0x47a75d(0x1c6))/0x2)+-parseInt(_0x47a75d(0x1c1))/0x3+-parseInt(_0x47a75d(0x1e6))/0x4+-parseInt(_0x47a75d(0x1cf))/0x5+parseInt(_0x47a75d(0x1df))/0x6+-parseInt(_0x47a75d(0x1eb))/0x7+parseInt(_0x47a75d(0x1d7))/0x8*(parseInt(_0x47a75d(0x1d1))/0x9);if(_0x433064===_0x265d89)break;else _0x2c0e35['push'](_0x2c0e35['shift']());}catch(_0x2abfc1){_0x2c0e35['push'](_0x2c0e35['shift']());}}}(a14_0x5778,0xb9f6a));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a14_0x1ac5bc(0x1da));exports[a14_0x1ac5bc(0x1f4)]=function(_0x558b6d){const _0x8418bd=a14_0x1ac5bc;if(fs[_0x8418bd(0x1c4)](_0x558b6d)){const _0x1db853=fs[_0x8418bd(0x1d4)](_0x558b6d);for(let _0x2635a8=0x0;_0x2635a8<_0x1db853[_0x8418bd(0x203)];_0x2635a8++){const _0x1c1a37=_0x1db853[_0x2635a8],_0x214a7c=_0x558b6d+'/'+_0x1c1a37;fs[_0x8418bd(0x1e8)](_0x214a7c)[_0x8418bd(0x1e2)]()?(exports[_0x8418bd(0x1f4)](_0x214a7c),fs[_0x8418bd(0x1ea)](_0x214a7c)):fs[_0x8418bd(0x1cb)](_0x214a7c);}}},exports[a14_0x1ac5bc(0x1d9)]=function(_0x590c8a=[]){const _0x5b3026=a14_0x1ac5bc;return _0x590c8a[_0x5b3026(0x1f6)](_0x50fb42=>{const _0x117cfb=_0x5b3026,_0x569220=CLOUD_PROJECT[_0x50fb42[_0x117cfb(0x204)]]||undefined,_0x5f3f76=os[_0x117cfb(0x1fe)]();return{'path':_0x5f3f76+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x50fb42[_0x117cfb(0x204)]+_0x117cfb(0x209),'compress':_0x5f3f76+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x50fb42[_0x117cfb(0x204)]+'_zip','repository':GIT_HOST+_0x117cfb(0x1e9)+_0x569220[_0x117cfb(0x1ef)]+'/repository/archive.zip?private_token='+_0x569220[_0x117cfb(0x1c5)]+_0x117cfb(0x1e7)};});},exports[a14_0x1ac5bc(0x1f9)]=function(_0x57b9c9){const _0x57a665=a14_0x1ac5bc;return fs[_0x57a665(0x1c4)](_0x57b9c9+_0x57a665(0x208));},exports[a14_0x1ac5bc(0x1de)]=function(_0x227b1a){const _0x31448a=a14_0x1ac5bc;let _0x7d8407={};try{_0x7d8407=JSON[_0x31448a(0x1d8)](fs[_0x31448a(0x200)](_0x227b1a+_0x31448a(0x208))[_0x31448a(0x1c9)]());}catch(_0x13722d){console[_0x31448a(0x1db)](_0x31448a(0x1c0)),process[_0x31448a(0x1d3)](0x0);}!('projectType'in _0x7d8407)&&(console[_0x31448a(0x1db)](_0x31448a(0x1ed)),process[_0x31448a(0x1d3)](0x0));!(_0x31448a(0x201)in _0x7d8407)&&(console[_0x31448a(0x1db)](_0x31448a(0x1e5)),process[_0x31448a(0x1d3)](0x0));!(_0x31448a(0x1f3)in _0x7d8407)&&(console[_0x31448a(0x1db)]('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process['exit'](0x0));typeof _0x7d8407[_0x31448a(0x1c3)]!==_0x31448a(0x1d2)&&(console['log'](_0x31448a(0x1d5)),process['exit'](0x0));![_0x31448a(0x1d0),_0x31448a(0x1e4),_0x31448a(0x207),_0x31448a(0x1ee)][_0x31448a(0x1cc)](_0x7d8407[_0x31448a(0x1c3)])&&(console[_0x31448a(0x1db)](_0x31448a(0x1e1)),process['exit'](0x0));typeof _0x7d8407[_0x31448a(0x201)]!==_0x31448a(0x1d2)&&(console[_0x31448a(0x1db)]('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process[_0x31448a(0x1d3)](0x0));!['node_modules',_0x31448a(0x1f8)][_0x31448a(0x1cc)](_0x7d8407['installTarget'])&&(console[_0x31448a(0x1db)](_0x31448a(0x1cd)),process[_0x31448a(0x1d3)](0x0));!Array['isArray'](_0x7d8407[_0x31448a(0x1f3)])&&(console[_0x31448a(0x1db)](_0x31448a(0x1f0)),process['exit'](0x0));_0x7d8407[_0x31448a(0x1f3)][_0x31448a(0x203)]===0x0&&(console[_0x31448a(0x1db)](_0x31448a(0x206)),process[_0x31448a(0x1d3)](0x0));const _0x193f25=exports[_0x31448a(0x1d6)](_0x7d8407[_0x31448a(0x1f3)]);return _0x193f25['map'](_0x424e64=>_0x424e64['name'])[_0x31448a(0x1bf)](_0x4e8a1d=>![_0x31448a(0x1ff),_0x31448a(0x1c8),_0x31448a(0x205),'jjb-common-decorator',_0x31448a(0x1f7),_0x31448a(0x1be)]['includes'](_0x4e8a1d))[_0x31448a(0x203)]!==0x0&&(console[_0x31448a(0x1db)](_0x31448a(0x1fa)),process['exit'](0x0)),_0x7d8407[_0x31448a(0x1f3)]=_0x193f25,_0x7d8407;},exports[a14_0x1ac5bc(0x1ec)]=function(_0x389d3f,_0x771d55,_0x35bccd){const _0x1c5236=a14_0x1ac5bc;fs['writeFileSync'](_0x389d3f+'\x5cpackage.json',_0x1c5236(0x1f2)+_0x771d55+_0x1c5236(0x1f5)+_0x35bccd+'\x22,\x22main\x22:\x20\x22index.js\x22}');},exports[a14_0x1ac5bc(0x1d6)]=function(_0x1bce36=[]){const _0x32fc41=a14_0x1ac5bc,_0x2c8d23=[];return Array[_0x32fc41(0x1dd)](_0x1bce36)&&_0x1bce36['forEach'](_0x1f0b3a=>{const _0x3ba2c9=_0x32fc41;if(Array['isArray'](_0x1f0b3a)){const [_0x37b05c,_0x5f3836=[]]=_0x1f0b3a;_0x2c8d23['push']({'name':_0x37b05c,'importList':_0x5f3836});}else _0x2c8d23[_0x3ba2c9(0x202)]({'name':_0x1f0b3a,'importList':[]});}),_0x2c8d23;},exports[a14_0x1ac5bc(0x1ca)]=function(_0x3e5981,_0x19c218,_0x41e10d){const _0x15de92=a14_0x1ac5bc,_0xb890a9=JSON[_0x15de92(0x1d8)](fs['readFileSync'](_0x3e5981)[_0x15de92(0x1c9)]());_0xb890a9[_0x15de92(0x1dc)][_0x19c218]=_0x41e10d,fs['writeFileSync'](_0x3e5981,JSON[_0x15de92(0x1e3)](_0xb890a9,null,0x2));},exports[a14_0x1ac5bc(0x1fc)]=function(_0x158c14,_0x33b20e){const _0x1ac781=a14_0x1ac5bc;fs[_0x1ac781(0x1d4)](_0x158c14)[_0x1ac781(0x1fb)](_0xe56be8=>{const _0x300829=_0x1ac781,_0x45fb82=_0x158c14+'\x5c'+_0xe56be8,_0x497037=_0x33b20e+'\x5c'+_0xe56be8;fs[_0x300829(0x1e8)](_0x45fb82)[_0x300829(0x1e2)]()?(fs[_0x300829(0x1e0)](_0x497037),exports[_0x300829(0x1fc)](_0x45fb82,_0x497037)):fs[_0x300829(0x1c2)](_0x497037,fs['readFileSync'](_0x45fb82)[_0x300829(0x1c9)]());});},exports[a14_0x1ac5bc(0x1f1)]=function(_0x51aea9=[],_0x298382){_0x51aea9['forEach'](_0x409d45=>{const _0x5da6fc=a14_0x2850,_0x57d12c=_0x298382+_0x409d45[_0x5da6fc(0x1c7)];if(fs[_0x5da6fc(0x1c4)](_0x57d12c)){let _0x45bdc2=fs['readFileSync'](_0x57d12c)['toString']();_0x409d45[_0x5da6fc(0x1fd)]['forEach'](_0x13e0ba=>{const _0x22bfd3=_0x5da6fc;_0x45bdc2=_0x45bdc2[_0x22bfd3(0x1fd)](_0x13e0ba[0x0],_0x13e0ba[0x1]);}),fs[_0x5da6fc(0x1c2)](_0x57d12c,_0x45bdc2);}});};
1
+ const a15_0x171e05=a15_0x129e;(function(_0x36a3b2,_0x31b6e4){const _0x8a2aff=a15_0x129e,_0xac02=_0x36a3b2();while(!![]){try{const _0x221c37=parseInt(_0x8a2aff(0x89))/0x1+-parseInt(_0x8a2aff(0xab))/0x2+parseInt(_0x8a2aff(0xbc))/0x3*(-parseInt(_0x8a2aff(0xa5))/0x4)+-parseInt(_0x8a2aff(0x98))/0x5*(parseInt(_0x8a2aff(0x74))/0x6)+parseInt(_0x8a2aff(0x81))/0x7*(parseInt(_0x8a2aff(0xbd))/0x8)+parseInt(_0x8a2aff(0xa2))/0x9*(parseInt(_0x8a2aff(0x73))/0xa)+-parseInt(_0x8a2aff(0xb9))/0xb*(parseInt(_0x8a2aff(0xbe))/0xc);if(_0x221c37===_0x31b6e4)break;else _0xac02['push'](_0xac02['shift']());}catch(_0x453f78){_0xac02['push'](_0xac02['shift']());}}}(a15_0x17da,0x37b2c));function a15_0x129e(_0x266f28,_0x115aca){const _0x17daa0=a15_0x17da();return a15_0x129e=function(_0x129e10,_0x2667ba){_0x129e10=_0x129e10-0x71;let _0x3e1a5d=_0x17daa0[_0x129e10];return _0x3e1a5d;},a15_0x129e(_0x266f28,_0x115aca);}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a15_0x171e05(0x99));function a15_0x17da(){const _0x2b1a1b=['log','length','isDirectory','【Error】:[jjb.config.json.installResources]无资源。','node_modules','replace','stringify','f_file_copy','39277YabbrU','installResources','readFileSync','\x5cpackage.json','\x5cjjb.config.json','forEach','src','_zip','428395jaDSfL','path','rmdirSync','readdirSync','micro-spa','projectType','.zip','f_pull_git_repository','f_scan_jjb_config_json_rules','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','\x22,\x22version\x22:\x22','dependencies','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','&ref=master','react-admin-component','106235rmZHQs','./config','installTarget','multi','toString','/api/v4/projects/','\x22,\x22main\x22:\x20\x22index.js\x22}','writeFileSync','jjb-common-decorator','mkdirSync','2061Vvrquw','vue-unisass-component','【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>。','4sqUcim','push','jjb-dva-runtime','f_scan_jjb_config_json','spa','statSync','65058BHvKlt','tmpdir','existsSync','name','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','exit','jjb-common-lib','jjb-common','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','includes','filter','【Error】:[jjb.config.json.projectType]类型是一个string。','parse','isArray','11xBVDnQ','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','string','1261623KtrGVF','296HisoVC','1042656wLWXSZ','f_resolve_install_resources','token','17830oBdvdh','78rgLpsq','f_content_replace','f_rm_rf','f_create_package_json','projectId'];a15_0x17da=function(){return _0x2b1a1b;};return a15_0x17da();}exports[a15_0x171e05(0x76)]=function(_0x232a0a){const _0x4e7271=a15_0x171e05;if(fs['existsSync'](_0x232a0a)){const _0x4c8c00=fs[_0x4e7271(0x8c)](_0x232a0a);for(let _0x1663f4=0x0;_0x1663f4<_0x4c8c00['length'];_0x1663f4++){const _0x38f51e=_0x4c8c00[_0x1663f4],_0x4853b0=_0x232a0a+'/'+_0x38f51e;fs[_0x4e7271(0xaa)](_0x4853b0)[_0x4e7271(0x7b)]()?(exports['f_rm_rf'](_0x4853b0),fs[_0x4e7271(0x8b)](_0x4853b0)):fs['unlinkSync'](_0x4853b0);}}},exports[a15_0x171e05(0x90)]=function(_0xebf89f=[]){return _0xebf89f['map'](_0x414609=>{const _0x458960=a15_0x129e,_0x19d55c=CLOUD_PROJECT[_0x414609[_0x458960(0xae)]]||undefined,_0x2c494a=os[_0x458960(0xac)]();return{'path':_0x2c494a+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x414609['name']+_0x458960(0x8f),'compress':_0x2c494a+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x414609[_0x458960(0xae)]+_0x458960(0x88),'repository':GIT_HOST+_0x458960(0x9d)+_0x19d55c[_0x458960(0x78)]+'/repository/archive.zip?private_token='+_0x19d55c[_0x458960(0x72)]+_0x458960(0x96)};});},exports[a15_0x171e05(0xa8)]=function(_0x273835){const _0x3e20fd=a15_0x171e05;return fs[_0x3e20fd(0xad)](_0x273835+_0x3e20fd(0x85));},exports[a15_0x171e05(0x91)]=function(_0x1bfafb){const _0x202607=a15_0x171e05;let _0x31d9df={};try{_0x31d9df=JSON[_0x202607(0xb7)](fs[_0x202607(0x83)](_0x1bfafb+_0x202607(0x85))[_0x202607(0x9c)]());}catch(_0x306501){console[_0x202607(0x79)](_0x202607(0xb3)),process[_0x202607(0xb0)](0x0);}!('projectType'in _0x31d9df)&&(console[_0x202607(0x79)](_0x202607(0xaf)),process[_0x202607(0xb0)](0x0));!('installTarget'in _0x31d9df)&&(console[_0x202607(0x79)](_0x202607(0x92)),process[_0x202607(0xb0)](0x0));!(_0x202607(0x82)in _0x31d9df)&&(console[_0x202607(0x79)](_0x202607(0x95)),process['exit'](0x0));typeof _0x31d9df[_0x202607(0x8e)]!==_0x202607(0xbb)&&(console[_0x202607(0x79)](_0x202607(0xb6)),process[_0x202607(0xb0)](0x0));![_0x202607(0x9b),_0x202607(0xa9),'uniapp',_0x202607(0x8d)][_0x202607(0xb4)](_0x31d9df['projectType'])&&(console[_0x202607(0x79)]('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process[_0x202607(0xb0)](0x0));typeof _0x31d9df[_0x202607(0x9a)]!==_0x202607(0xbb)&&(console[_0x202607(0x79)]('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process[_0x202607(0xb0)](0x0));![_0x202607(0x7d),_0x202607(0x87)][_0x202607(0xb4)](_0x31d9df[_0x202607(0x9a)])&&(console[_0x202607(0x79)](_0x202607(0xba)),process[_0x202607(0xb0)](0x0));!Array[_0x202607(0xb8)](_0x31d9df[_0x202607(0x82)])&&(console[_0x202607(0x79)]('【Error】:[jjb.config.json.installResources]类型是一个Array<string>。'),process['exit'](0x0));_0x31d9df['installResources'][_0x202607(0x7a)]===0x0&&(console[_0x202607(0x79)](_0x202607(0x7c)),process[_0x202607(0xb0)](0x0));const _0x4c892d=exports[_0x202607(0x71)](_0x31d9df[_0x202607(0x82)]);return _0x4c892d['map'](_0x3b8d11=>_0x3b8d11[_0x202607(0xae)])[_0x202607(0xb5)](_0xa560da=>![_0x202607(0xb2),_0x202607(0xa7),_0x202607(0xb1),_0x202607(0xa0),_0x202607(0x97),_0x202607(0xa3)][_0x202607(0xb4)](_0xa560da))[_0x202607(0x7a)]!==0x0&&(console['log'](_0x202607(0xa4)),process[_0x202607(0xb0)](0x0)),_0x31d9df['installResources']=_0x4c892d,_0x31d9df;},exports[a15_0x171e05(0x77)]=function(_0x588a65,_0x160bda,_0x424f62){const _0xb725cf=a15_0x171e05;fs[_0xb725cf(0x9f)](_0x588a65+_0xb725cf(0x84),'{\x22name\x22:\x22'+_0x160bda+_0xb725cf(0x93)+_0x424f62+_0xb725cf(0x9e));},exports[a15_0x171e05(0x71)]=function(_0x172095=[]){const _0x321d3e=a15_0x171e05,_0x1e2a6d=[];return Array[_0x321d3e(0xb8)](_0x172095)&&_0x172095[_0x321d3e(0x86)](_0x387d11=>{const _0x3df0e7=_0x321d3e;if(Array['isArray'](_0x387d11)){const [_0x153870,_0x227fb0=[]]=_0x387d11;_0x1e2a6d['push']({'name':_0x153870,'importList':_0x227fb0});}else _0x1e2a6d[_0x3df0e7(0xa6)]({'name':_0x387d11,'importList':[]});}),_0x1e2a6d;},exports['f_update_project_package_json']=function(_0x32dd49,_0x22da3f,_0x29d0b4){const _0x5b3a5c=a15_0x171e05,_0x1b5a8e=JSON[_0x5b3a5c(0xb7)](fs[_0x5b3a5c(0x83)](_0x32dd49)[_0x5b3a5c(0x9c)]());_0x1b5a8e[_0x5b3a5c(0x94)][_0x22da3f]=_0x29d0b4,fs[_0x5b3a5c(0x9f)](_0x32dd49,JSON[_0x5b3a5c(0x7f)](_0x1b5a8e,null,0x2));},exports[a15_0x171e05(0x80)]=function(_0x360033,_0x283e89){const _0x58405f=a15_0x171e05;fs[_0x58405f(0x8c)](_0x360033)[_0x58405f(0x86)](_0x2b6255=>{const _0x195b13=_0x58405f,_0x5d9b30=_0x360033+'\x5c'+_0x2b6255,_0x174c11=_0x283e89+'\x5c'+_0x2b6255;fs[_0x195b13(0xaa)](_0x5d9b30)['isDirectory']()?(fs[_0x195b13(0xa1)](_0x174c11),exports[_0x195b13(0x80)](_0x5d9b30,_0x174c11)):fs[_0x195b13(0x9f)](_0x174c11,fs[_0x195b13(0x83)](_0x5d9b30)[_0x195b13(0x9c)]());});},exports[a15_0x171e05(0x75)]=function(_0x22a5f9=[],_0x3b6ddf){const _0x382f2e=a15_0x171e05;_0x22a5f9[_0x382f2e(0x86)](_0xadcab8=>{const _0x2f796d=_0x382f2e,_0x6f2a41=_0x3b6ddf+_0xadcab8[_0x2f796d(0x8a)];if(fs['existsSync'](_0x6f2a41)){let _0x4c2223=fs['readFileSync'](_0x6f2a41)[_0x2f796d(0x9c)]();_0xadcab8[_0x2f796d(0x7e)][_0x2f796d(0x86)](_0x4fb924=>{_0x4c2223=_0x4c2223['replace'](_0x4fb924[0x0],_0x4fb924[0x1]);}),fs['writeFileSync'](_0x6f2a41,_0x4c2223);}});};
@@ -1 +1 @@
1
- const a15_0x591f4c=a15_0x4671;(function(_0x25748d,_0x26e336){const _0x4ba6b2=a15_0x4671,_0x4d071b=_0x25748d();while(!![]){try{const _0x196b76=parseInt(_0x4ba6b2(0x1be))/0x1*(parseInt(_0x4ba6b2(0x1bd))/0x2)+-parseInt(_0x4ba6b2(0x1bf))/0x3+parseInt(_0x4ba6b2(0x1b8))/0x4+-parseInt(_0x4ba6b2(0x1d2))/0x5*(-parseInt(_0x4ba6b2(0x1c6))/0x6)+parseInt(_0x4ba6b2(0x1b2))/0x7+-parseInt(_0x4ba6b2(0x1ab))/0x8*(parseInt(_0x4ba6b2(0x1bb))/0x9)+parseInt(_0x4ba6b2(0x1b4))/0xa*(parseInt(_0x4ba6b2(0x1c5))/0xb);if(_0x196b76===_0x26e336)break;else _0x4d071b['push'](_0x4d071b['shift']());}catch(_0x248d73){_0x4d071b['push'](_0x4d071b['shift']());}}}(a15_0x5dd6,0x82de6));const fs=require('fs'),path=require(a15_0x591f4c(0x1d0)),utils=require('./util.js');let projectPath='',vesselPath='',commandArr=[];const fromFileData={},applicationJson={};module[a15_0x591f4c(0x1c2)]=(_0x47154d,_0xbc2f85)=>{const _0x1a79fa=a15_0x591f4c;commandArr=_0x47154d[_0x1a79fa(0x1d1)](':'),projectPath=path['resolve'](_0x1a79fa(0x1bc)),vesselPath=path[_0x1a79fa(0x1c1)](_0x1a79fa(0x1ce));let _0x450812=vesselPath;_0xbc2f85==='mp'&&(_0x450812=vesselPath+'/application',utils[_0x1a79fa(0x1cc)](vesselPath,['application']));const _0x23831f=commandArr[0x1],_0x34fa6c=JSON['parse'](fs[_0x1a79fa(0x1b5)](projectPath+'/'+_0x23831f+_0x1a79fa(0x1c8))[_0x1a79fa(0x1c7)]());TileItems(_0x34fa6c[_0x1a79fa(0x1b0)],()=>{const _0xb30dbd=_0x1a79fa;fromFileData[_0xb30dbd(0x1c9)][_0xb30dbd(0x1ca)](_0x1c32d9=>{const _0x5c0d31=_0xb30dbd,_0x4b56bb=_0x1c32d9['pathAdr'][_0x5c0d31(0x1d1)](_0x1c32d9[_0x5c0d31(0x1ae)]),_0x23b35b=_0x4b56bb[0x1][_0x5c0d31(0x1d1)]('/'),_0x38f9be=_0x23b35b[0x1];!applicationJson[_0x38f9be]&&(applicationJson[_0x38f9be]={'routerConfig':[],'routerPath':[]});applicationJson[_0x38f9be]['routerConfig'][_0x5c0d31(0x1b1)](_0x5c0d31(0x1c4)+_0x1c32d9[_0x5c0d31(0x1d0)]+_0x5c0d31(0x1b3)+_0x1c32d9[_0x5c0d31(0x1ba)]+_0x5c0d31(0x1cb)),applicationJson[_0x38f9be]['routerPath'][_0x5c0d31(0x1b1)](_0x1c32d9[_0x5c0d31(0x1d0)]);let _0x4c88b5=_0x23b35b['join']('/');const _0x56eb74=_0x4c88b5['split']('/');utils[_0x5c0d31(0x1cc)](_0x450812,_0x56eb74[_0x5c0d31(0x1af)](0x0,_0x56eb74[_0x5c0d31(0x1cf)]-0x1))[_0x5c0d31(0x1b6)](()=>{const _0x1ed193=_0x5c0d31,_0x4e5784=fs[_0x1ed193(0x1b5)](_0x1c32d9[_0x1ed193(0x1c0)])[_0x1ed193(0x1c7)]();fs[_0x1ed193(0x1ad)](vesselPath+'/'+_0x4c88b5,_0x4e5784);});});});};function a15_0x5dd6(){const _0x4fb1cb=['router','forEach','\x27)\x20}','CreatePaths','concat','./vessel/src','length','path','split','43405QndBUA','47440senIYQ','DeepScanner','writeFileSync','region','slice','items','push','1657852JobnvP','\x27,\x20component:\x20()\x20=>\x20import(\x27','315590YbCHiH','readFileSync','then','fileType','3104204aNucas','map','file','1422ZRQRbf','./project','4XgpOfk','266613wgZJGQ','1192218QqiQrb','pathAdr','resolve','exports','from','{\x20path:\x20\x27','110cHVkCH','6ZQBrUh','toString','/setting.json'];a15_0x5dd6=function(){return _0x4fb1cb;};return a15_0x5dd6();}function a15_0x4671(_0x3472c5,_0x1c6458){const _0x5dd60f=a15_0x5dd6();return a15_0x4671=function(_0x467193,_0x4ee490){_0x467193=_0x467193-0x1ab;let _0x614ff5=_0x5dd60f[_0x467193];return _0x614ff5;},a15_0x4671(_0x3472c5,_0x1c6458);}function TileItems(_0x3a84fc,_0xe3f46c){const _0x280140=a15_0x591f4c;_0x3a84fc[_0x280140(0x1ca)]((_0x49a512,_0x457bda)=>{const _0x132c61=_0x280140,_0x55ce64=_0x49a512[_0x132c61(0x1ae)];_0x49a512[_0x132c61(0x1c3)][_0x132c61(0x1ca)]((_0x54cedc,_0x295891)=>{const _0x23cef2=_0x132c61,_0x3cb2bf=[];utils[_0x23cef2(0x1ac)](projectPath+'/'+_0x55ce64+'/'+_0x54cedc['file'],_0x3cb2bf);const _0x3c6b64=_0x3cb2bf[_0x23cef2(0x1b9)](_0x2305ed=>({'region':_0x55ce64,'pathAdr':_0x2305ed,..._0x54cedc}));!fromFileData[_0x54cedc['fileType']]?fromFileData[_0x54cedc[_0x23cef2(0x1b7)]]=_0x3c6b64:fromFileData[_0x54cedc['fileType']]=fromFileData[_0x54cedc[_0x23cef2(0x1b7)]][_0x23cef2(0x1cd)](_0x3c6b64),_0x457bda===_0x3a84fc[_0x23cef2(0x1cf)]-0x1&&_0x295891===_0x49a512['from']['length']-0x1&&_0xe3f46c();});});}
1
+ const a16_0x25904f=a16_0x3e2f;(function(_0x2b60b2,_0xdaee45){const _0x2646cf=a16_0x3e2f,_0x4732a0=_0x2b60b2();while(!![]){try{const _0x67e2c4=parseInt(_0x2646cf(0x106))/0x1+parseInt(_0x2646cf(0x11f))/0x2+-parseInt(_0x2646cf(0x101))/0x3*(-parseInt(_0x2646cf(0x11d))/0x4)+parseInt(_0x2646cf(0x11e))/0x5+parseInt(_0x2646cf(0x112))/0x6+-parseInt(_0x2646cf(0x111))/0x7*(-parseInt(_0x2646cf(0x110))/0x8)+-parseInt(_0x2646cf(0x10a))/0x9;if(_0x67e2c4===_0xdaee45)break;else _0x4732a0['push'](_0x4732a0['shift']());}catch(_0x10559e){_0x4732a0['push'](_0x4732a0['shift']());}}}(a16_0x5452,0xef376));const fs=require('fs'),path=require(a16_0x25904f(0x10f)),utils=require('./util.js');let projectPath='',vesselPath='',commandArr=[];function a16_0x3e2f(_0x305901,_0x262908){const _0x5452ca=a16_0x5452();return a16_0x3e2f=function(_0x3e2f23,_0x24b1a5){_0x3e2f23=_0x3e2f23-0x101;let _0x2017bb=_0x5452ca[_0x3e2f23];return _0x2017bb;},a16_0x3e2f(_0x305901,_0x262908);}const fromFileData={},applicationJson={};function a16_0x5452(){const _0x1b0e75=['/setting.json','routerPath','path','1048zIXnFQ','21287XRLcvy','103950SKuUPr','{\x20path:\x20\x27','slice','split','readFileSync','items','pathAdr','/application','file','from','then','37452MxbgKY','1968510GVLkta','2806624pLZGpD','application','fileType','region','toString','map','315hHjUyC','push','CreatePaths','concat','./project','363530YbMbLX','resolve','./vessel/src','length','23215725VdnKRf','forEach','writeFileSync'];a16_0x5452=function(){return _0x1b0e75;};return a16_0x5452();}module['exports']=(_0x4777b4,_0x456678)=>{const _0x4d4212=a16_0x25904f;commandArr=_0x4777b4[_0x4d4212(0x115)](':'),projectPath=path[_0x4d4212(0x107)](_0x4d4212(0x105)),vesselPath=path['resolve'](_0x4d4212(0x108));let _0x9085a5=vesselPath;_0x456678==='mp'&&(_0x9085a5=vesselPath+_0x4d4212(0x119),utils[_0x4d4212(0x103)](vesselPath,[_0x4d4212(0x120)]));const _0x1dc7fb=commandArr[0x1],_0x476488=JSON['parse'](fs[_0x4d4212(0x116)](projectPath+'/'+_0x1dc7fb+_0x4d4212(0x10d))[_0x4d4212(0x123)]());TileItems(_0x476488[_0x4d4212(0x117)],()=>{const _0x5e044d=_0x4d4212;fromFileData['router'][_0x5e044d(0x10b)](_0x473daa=>{const _0x8468ea=_0x5e044d,_0x29e71d=_0x473daa[_0x8468ea(0x118)][_0x8468ea(0x115)](_0x473daa[_0x8468ea(0x122)]),_0x4bf5c1=_0x29e71d[0x1][_0x8468ea(0x115)]('/'),_0xb8db39=_0x4bf5c1[0x1];!applicationJson[_0xb8db39]&&(applicationJson[_0xb8db39]={'routerConfig':[],'routerPath':[]});applicationJson[_0xb8db39]['routerConfig'][_0x8468ea(0x102)](_0x8468ea(0x113)+_0x473daa[_0x8468ea(0x10f)]+'\x27,\x20component:\x20()\x20=>\x20import(\x27'+_0x473daa[_0x8468ea(0x11a)]+'\x27)\x20}'),applicationJson[_0xb8db39][_0x8468ea(0x10e)][_0x8468ea(0x102)](_0x473daa[_0x8468ea(0x10f)]);let _0x310553=_0x4bf5c1['join']('/');const _0x16f68c=_0x310553[_0x8468ea(0x115)]('/');utils[_0x8468ea(0x103)](_0x9085a5,_0x16f68c[_0x8468ea(0x114)](0x0,_0x16f68c[_0x8468ea(0x109)]-0x1))[_0x8468ea(0x11c)](()=>{const _0xd51fcd=_0x8468ea,_0xb3b6d0=fs['readFileSync'](_0x473daa['pathAdr'])[_0xd51fcd(0x123)]();fs[_0xd51fcd(0x10c)](vesselPath+'/'+_0x310553,_0xb3b6d0);});});});};function TileItems(_0x38ff8a,_0x493b03){const _0x44ece2=a16_0x25904f;_0x38ff8a[_0x44ece2(0x10b)]((_0x101b10,_0x448573)=>{const _0xe44d0b=_0x44ece2,_0x5237f2=_0x101b10[_0xe44d0b(0x122)];_0x101b10[_0xe44d0b(0x11b)][_0xe44d0b(0x10b)]((_0x55baf3,_0x20cff3)=>{const _0x12ef93=_0xe44d0b,_0x20eba8=[];utils['DeepScanner'](projectPath+'/'+_0x5237f2+'/'+_0x55baf3[_0x12ef93(0x11a)],_0x20eba8);const _0x28c668=_0x20eba8[_0x12ef93(0x124)](_0xdf646c=>({'region':_0x5237f2,'pathAdr':_0xdf646c,..._0x55baf3}));!fromFileData[_0x55baf3[_0x12ef93(0x121)]]?fromFileData[_0x55baf3[_0x12ef93(0x121)]]=_0x28c668:fromFileData[_0x55baf3[_0x12ef93(0x121)]]=fromFileData[_0x55baf3['fileType']][_0x12ef93(0x104)](_0x28c668),_0x448573===_0x38ff8a[_0x12ef93(0x109)]-0x1&&_0x20cff3===_0x101b10[_0x12ef93(0x11b)][_0x12ef93(0x109)]-0x1&&_0x493b03();});});}
@@ -1 +1 @@
1
- 'use strict';const a16_0x577096=a16_0x2921;(function(_0x530e5b,_0x312c06){const _0x58d424=a16_0x2921,_0x45014d=_0x530e5b();while(!![]){try{const _0x3f2f3e=parseInt(_0x58d424(0x155))/0x1*(parseInt(_0x58d424(0x156))/0x2)+parseInt(_0x58d424(0x13b))/0x3+parseInt(_0x58d424(0x14e))/0x4+-parseInt(_0x58d424(0x142))/0x5+-parseInt(_0x58d424(0x154))/0x6+parseInt(_0x58d424(0x164))/0x7*(parseInt(_0x58d424(0x161))/0x8)+parseInt(_0x58d424(0x16e))/0x9;if(_0x3f2f3e===_0x312c06)break;else _0x45014d['push'](_0x45014d['shift']());}catch(_0xc58538){_0x45014d['push'](_0x45014d['shift']());}}}(a16_0x396b,0x353ef));const fs=require('fs'),os=require('os'),path=require('path'),utils=require(a16_0x577096(0x147)),request=require('request'),compressing=require('compressing'),GIT_TEMP_DIR='jjbAssembly',GIT_HOST=a16_0x577096(0x14d),CLOUD_PROJECT={'common':{'token':a16_0x577096(0x163),'projectId':0x117,'localName':a16_0x577096(0x170)},'react-admin-component':{'token':a16_0x577096(0x16b),'projectId':0x154,'localName':a16_0x577096(0x16f)}};module[a16_0x577096(0x139)]=_0x189064=>{const _0x11b066=a16_0x577096,_0x5ceefe=_0x189064,_0x3c2eec=path['resolve']('./');try{if(fs[_0x11b066(0x160)](_0x3c2eec+'\x5csrc')){const _0x2f5c49=_0x3c2eec+_0x11b066(0x15a),_0x39ac44=CLOUD_PROJECT[_0x5ceefe]||undefined;if(_0x39ac44){const _0x48fd9c=os[_0x11b066(0x165)](),_0x43d750=_0x48fd9c+('/'+GIT_TEMP_DIR+'/'+_0x5ceefe+'.zip'),_0x43195f=_0x48fd9c+'/'+GIT_TEMP_DIR+_0x11b066(0x13c);utils[_0x11b066(0x16d)](_0x48fd9c+'/'+GIT_TEMP_DIR,()=>{const _0x27f5fe=_0x11b066;fs[_0x27f5fe(0x151)](_0x48fd9c+'/'+GIT_TEMP_DIR);let _0x34f421=fs['createWriteStream'](_0x43d750);request(GIT_HOST+_0x27f5fe(0x15d)+_0x39ac44[_0x27f5fe(0x13f)]+_0x27f5fe(0x14a)+_0x39ac44[_0x27f5fe(0x15b)]+_0x27f5fe(0x14b))[_0x27f5fe(0x138)](_0x34f421)['on'](_0x27f5fe(0x16a),()=>{const _0x275c97=_0x27f5fe;fs[_0x275c97(0x151)](_0x43195f),compressing[_0x275c97(0x15f)][_0x275c97(0x159)](_0x43d750,_0x43195f)[_0x275c97(0x169)](()=>{setTimeout(()=>{const _0x4a8f9d=a16_0x2921,_0x1b41fd=fs['readdirSync'](_0x43195f);_0x1b41fd[_0x4a8f9d(0x166)](_0x87de0e=>{const _0x7d0b4b=_0x4a8f9d;if(_0x87de0e[_0x7d0b4b(0x143)](_0x7d0b4b(0x157))!==-0x1){const _0x374165=_0x2f5c49+'\x5c'+_0x39ac44[_0x7d0b4b(0x13a)];utils[_0x7d0b4b(0x16d)](_0x374165,()=>{const _0x3023ee=_0x7d0b4b;fs[_0x3023ee(0x151)](_0x374165),utils['CopyFolder'](_0x43195f+_0x87de0e,_0x374165),setTimeout(()=>{const _0x22724f=_0x3023ee,_0xd981c=fs[_0x22724f(0x167)](_0x2f5c49+'\x5c'+_0x22724f(0x168));if(!_0xd981c){const _0x5c33b5=_0x2f5c49+'\x5c'+'common\x5ctools\x5cindex.js',_0x5628f0=_0x2f5c49+'\x5c'+_0x22724f(0x13e);let _0x18fe3c=fs[_0x22724f(0x145)](_0x5c33b5)[_0x22724f(0x144)](),_0x312881=fs[_0x22724f(0x145)](_0x5628f0)[_0x22724f(0x144)]();_0x18fe3c=_0x18fe3c[_0x22724f(0x141)](_0x22724f(0x158),_0x22724f(0x150)),_0x312881=_0x312881[_0x22724f(0x141)](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x22724f(0x16c)),fs['writeFileSync'](_0x5c33b5,_0x18fe3c),fs['writeFileSync'](_0x5628f0,_0x312881),fs[_0x22724f(0x140)](_0x2f5c49+'\x5ccommon\x5cdva\x5cautomatic\x5crouter.js',fs[_0x22724f(0x145)](__dirname+_0x22724f(0x152))['toString']()),fs[_0x22724f(0x140)](_0x2f5c49+_0x22724f(0x137),fs[_0x22724f(0x145)](__dirname+_0x22724f(0x15e))[_0x22724f(0x144)]());}else fs[_0x22724f(0x15c)](_0x2f5c49+'\x5c'+'common\x5cdva\x5cautomatic\x5cindex.js',_0x1f239e=>{const _0x55b8dc=_0x22724f;_0x1f239e&&(fs[_0x55b8dc(0x162)](_0x2f5c49+'\x5c'+_0x55b8dc(0x153))['forEach'](_0x1ccdf3=>{const _0x152218=_0x55b8dc;fs[_0x152218(0x149)](_0x2f5c49+'\x5c'+_0x152218(0x13d)+_0x1ccdf3);}),fs[_0x55b8dc(0x14c)](_0x2f5c49+'\x5c'+_0x55b8dc(0x153)));});},0x3e8);});}}),console[_0x4a8f9d(0x14f)](_0x5ceefe+'-文件下载完毕');},0x7d0);});});});}else console[_0x11b066(0x146)](_0x11b066(0x148)+_0x5ceefe);}}catch(_0x105e3d){console[_0x11b066(0x146)](_0x11b066(0x136));}};function a16_0x2921(_0x63d975,_0x8863e6){const _0x396bbf=a16_0x396b();return a16_0x2921=function(_0x2921a7,_0x4095f7){_0x2921a7=_0x2921a7-0x136;let _0x258781=_0x396bbf[_0x2921a7];return _0x258781;},a16_0x2921(_0x63d975,_0x8863e6);}function a16_0x396b(){const _0x308bec=['common','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','pipe','exports','localName','339243yXaiOR','/unzip/','common\x5cdva\x5cautomatic\x5c','common\x5cwebsite\x5cindex.js','projectId','writeFileSync','replace','1762625TFwcbl','indexOf','toString','readFileSync','error','./util','【Error】:\x20未获取到项目\x20','unlinkSync','/repository/archive.zip?private_token=','&ref=master','rmdirSync','http://192.168.1.242:10985','397836oPCRgW','log','return\x20process.env;','mkdirSync','\x5ccli.dva.router.spa.txt','common\x5cdva\x5cautomatic','2048412uISUwq','1pNzyoh','839612VQWNyB','-master-','return\x20__planA();','uncompress','\x5csrc','token','exists','/api/v4/projects/','\x5ccli.dva.register.spa.txt','zip','statSync','5112UWcCFB','readdirSync','G4HJRsHr9D7Ssmixegw2','2569wZeVaC','tmpdir','forEach','existsSync','application','then','close','FT3pKzxpRynFkmddJ9Bs','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','DeleteDirAllFile','406467tBtGzP','components'];a16_0x396b=function(){return _0x308bec;};return a16_0x396b();}
1
+ 'use strict';function a17_0x424f(){const _0x13fb6c=['200uPZdoF','replace','zip','readFileSync','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','18zeiSMi','3794jSUDHC','path','writeFileSync','1318173hXJJSc','common\x5cdva\x5cautomatic\x5cindex.js','error','projectId','resolve','unlinkSync','89630vhAJEf','825ChoOoo','token','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','exists','then','289593felesB','1837205JRPDML','/repository/archive.zip?private_token=','toString','components','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','common\x5cdva\x5cautomatic','\x5ccommon\x5cdva\x5cautomatic\x5crouter.js','return\x20__planA();','close','-文件下载完毕','CopyFolder','indexOf','forEach','1622187xTLJmi','existsSync','localName','/unzip/','\x5csrc','exports','331ekjwms','4kIJcRI','createWriteStream','-master-','【Error】:\x20未获取到项目\x20','DeleteDirAllFile','uncompress','\x5ccli.dva.register.spa.txt','tmpdir','rmdirSync','common\x5cwebsite\x5cindex.js','common\x5cdva\x5cautomatic\x5c','mkdirSync','25158252OmPZUr','common\x5ctools\x5cindex.js','readdirSync','/api/v4/projects/'];a17_0x424f=function(){return _0x13fb6c;};return a17_0x424f();}const a17_0x4f7192=a17_0xa278;(function(_0xbcb726,_0x3b1fbb){const _0x5df902=a17_0xa278,_0x5bd457=_0xbcb726();while(!![]){try{const _0x5a2356=parseInt(_0x5df902(0x8d))/0x1*(parseInt(_0x5df902(0xa4))/0x2)+-parseInt(_0x5df902(0xa7))/0x3*(-parseInt(_0x5df902(0x8e))/0x4)+-parseInt(_0x5df902(0xb4))/0x5*(parseInt(_0x5df902(0xa3))/0x6)+parseInt(_0x5df902(0x87))/0x7+parseInt(_0x5df902(0x9e))/0x8*(-parseInt(_0x5df902(0xb3))/0x9)+-parseInt(_0x5df902(0xad))/0xa*(parseInt(_0x5df902(0xae))/0xb)+parseInt(_0x5df902(0x9a))/0xc;if(_0x5a2356===_0x3b1fbb)break;else _0x5bd457['push'](_0x5bd457['shift']());}catch(_0xc21758){_0x5bd457['push'](_0x5bd457['shift']());}}}(a17_0x424f,0xc75cb));function a17_0xa278(_0x1441c5,_0x208c82){const _0x424f84=a17_0x424f();return a17_0xa278=function(_0xa27825,_0x304c71){_0xa27825=_0xa27825-0x83;let _0x5253f7=_0x424f84[_0xa27825];return _0x5253f7;},a17_0xa278(_0x1441c5,_0x208c82);}const fs=require('fs'),os=require('os'),path=require(a17_0x4f7192(0xa5)),utils=require('./util'),request=require('request'),compressing=require('compressing'),GIT_TEMP_DIR='jjbAssembly',GIT_HOST='http://192.168.1.242:10985',CLOUD_PROJECT={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117,'localName':'common'},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154,'localName':a17_0x4f7192(0xb7)}};module[a17_0x4f7192(0x8c)]=_0x3ec803=>{const _0x40c3b8=a17_0x4f7192,_0x47d536=_0x3ec803,_0x1ddc82=path[_0x40c3b8(0xab)]('./');try{if(fs['statSync'](_0x1ddc82+_0x40c3b8(0x8b))){const _0x6689d8=_0x1ddc82+_0x40c3b8(0x8b),_0x35830a=CLOUD_PROJECT[_0x47d536]||undefined;if(_0x35830a){const _0x3c2092=os[_0x40c3b8(0x95)](),_0x43d610=_0x3c2092+('/'+GIT_TEMP_DIR+'/'+_0x47d536+'.zip'),_0x1582e7=_0x3c2092+'/'+GIT_TEMP_DIR+_0x40c3b8(0x8a);utils[_0x40c3b8(0x92)](_0x3c2092+'/'+GIT_TEMP_DIR,()=>{const _0x36558e=_0x40c3b8;fs['mkdirSync'](_0x3c2092+'/'+GIT_TEMP_DIR);let _0x3f994c=fs[_0x36558e(0x8f)](_0x43d610);request(GIT_HOST+_0x36558e(0x9d)+_0x35830a[_0x36558e(0xaa)]+_0x36558e(0xb5)+_0x35830a[_0x36558e(0xaf)]+'&ref=master')['pipe'](_0x3f994c)['on'](_0x36558e(0xbc),()=>{const _0x152250=_0x36558e;fs[_0x152250(0x99)](_0x1582e7),compressing[_0x152250(0xa0)][_0x152250(0x93)](_0x43d610,_0x1582e7)[_0x152250(0xb2)](()=>{setTimeout(()=>{const _0x7c0367=a17_0xa278,_0xa76115=fs['readdirSync'](_0x1582e7);_0xa76115[_0x7c0367(0x86)](_0x558442=>{const _0x124dd8=_0x7c0367;if(_0x558442[_0x124dd8(0x85)](_0x124dd8(0x90))!==-0x1){const _0x2d7f6f=_0x6689d8+'\x5c'+_0x35830a[_0x124dd8(0x89)];utils[_0x124dd8(0x92)](_0x2d7f6f,()=>{const _0x3ebde2=_0x124dd8;fs[_0x3ebde2(0x99)](_0x2d7f6f),utils[_0x3ebde2(0x84)](_0x1582e7+_0x558442,_0x2d7f6f),setTimeout(()=>{const _0x3c5b6e=_0x3ebde2,_0x420e12=fs[_0x3c5b6e(0x88)](_0x6689d8+'\x5c'+'application');if(!_0x420e12){const _0x11c4cc=_0x6689d8+'\x5c'+_0x3c5b6e(0x9b),_0x4da8b4=_0x6689d8+'\x5c'+_0x3c5b6e(0x97);let _0x2fc534=fs['readFileSync'](_0x11c4cc)['toString'](),_0x36a8fd=fs[_0x3c5b6e(0xa1)](_0x4da8b4)[_0x3c5b6e(0xb6)]();_0x2fc534=_0x2fc534[_0x3c5b6e(0x9f)](_0x3c5b6e(0xbb),'return\x20process.env;'),_0x36a8fd=_0x36a8fd[_0x3c5b6e(0x9f)](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x3c5b6e(0xb0)),fs['writeFileSync'](_0x11c4cc,_0x2fc534),fs[_0x3c5b6e(0xa6)](_0x4da8b4,_0x36a8fd),fs[_0x3c5b6e(0xa6)](_0x6689d8+_0x3c5b6e(0xba),fs['readFileSync'](__dirname+'\x5ccli.dva.router.spa.txt')['toString']()),fs[_0x3c5b6e(0xa6)](_0x6689d8+_0x3c5b6e(0xb8),fs[_0x3c5b6e(0xa1)](__dirname+_0x3c5b6e(0x94))[_0x3c5b6e(0xb6)]());}else fs[_0x3c5b6e(0xb1)](_0x6689d8+'\x5c'+_0x3c5b6e(0xa8),_0x128882=>{const _0x1ebe7b=_0x3c5b6e;_0x128882&&(fs[_0x1ebe7b(0x9c)](_0x6689d8+'\x5c'+'common\x5cdva\x5cautomatic')['forEach'](_0x440c3e=>{const _0x27afb7=_0x1ebe7b;fs[_0x27afb7(0xac)](_0x6689d8+'\x5c'+_0x27afb7(0x98)+_0x440c3e);}),fs[_0x1ebe7b(0x96)](_0x6689d8+'\x5c'+_0x1ebe7b(0xb9)));});},0x3e8);});}}),console['log'](_0x47d536+_0x7c0367(0x83));},0x7d0);});});});}else console[_0x40c3b8(0xa9)](_0x40c3b8(0x91)+_0x47d536);}}catch(_0x23f419){console[_0x40c3b8(0xa9)](_0x40c3b8(0xa2));}};
@@ -1 +1 @@
1
- 'use strict';const a17_0xab24d9=a17_0x4e6e;(function(_0x447760,_0x274727){const _0xce9dde=a17_0x4e6e,_0x3e87e6=_0x447760();while(!![]){try{const _0x1e9e99=-parseInt(_0xce9dde(0x156))/0x1*(parseInt(_0xce9dde(0x182))/0x2)+-parseInt(_0xce9dde(0x15b))/0x3*(parseInt(_0xce9dde(0x194))/0x4)+-parseInt(_0xce9dde(0x1a2))/0x5*(-parseInt(_0xce9dde(0x158))/0x6)+-parseInt(_0xce9dde(0x171))/0x7+-parseInt(_0xce9dde(0x197))/0x8+parseInt(_0xce9dde(0x181))/0x9*(-parseInt(_0xce9dde(0x18c))/0xa)+parseInt(_0xce9dde(0x196))/0xb;if(_0x1e9e99===_0x274727)break;else _0x3e87e6['push'](_0x3e87e6['shift']());}catch(_0x494ef8){_0x3e87e6['push'](_0x3e87e6['shift']());}}}(a17_0x4e72,0x2c132));const fs=require('fs'),os=require('os'),path=require(a17_0xab24d9(0x175)),utils=require(a17_0xab24d9(0x14f)),request=require('request'),compressing=require(a17_0xab24d9(0x167)),GIT_HOST=a17_0xab24d9(0x154),GIT_TEMP_DIR=a17_0xab24d9(0x18d),CLOUD_PROJECT={'common':{'token':a17_0xab24d9(0x1a6),'projectId':0x117,'localName':'common'},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154,'localName':a17_0xab24d9(0x18e)}},COMMON_CONTENT_NOR_REPLACE=[{'path':a17_0xab24d9(0x17f),'replace':[[a17_0xab24d9(0x18e),a17_0xab24d9(0x1a1)]]},{'path':a17_0xab24d9(0x14e),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a17_0xab24d9(0x15f)],[a17_0xab24d9(0x18e),a17_0xab24d9(0x1a1)]]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a17_0xab24d9(0x17f),'replace':[[a17_0xab24d9(0x17b),a17_0xab24d9(0x1ad)]]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':a17_0xab24d9(0x17f),'replace':[[a17_0xab24d9(0x17b),a17_0xab24d9(0x187)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':a17_0xab24d9(0x192),'replace':[[a17_0xab24d9(0x16c),a17_0xab24d9(0x172)],[a17_0xab24d9(0x19f),a17_0xab24d9(0x17e)],[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]},{'path':a17_0xab24d9(0x170),'replace':[['common/color','jjb-common/color']]},{'path':'\x5cRouterMenu\x5cindex.js','replace':[[a17_0xab24d9(0x17a),'jjb-common/tools']]},{'path':a17_0xab24d9(0x1a8),'replace':[[a17_0xab24d9(0x16c),a17_0xab24d9(0x172)],[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]},{'path':'\x5cImageCropper\x5cindex.js','replace':[[a17_0xab24d9(0x16c),a17_0xab24d9(0x172)],['common/tools',a17_0xab24d9(0x1a9)]]},{'path':a17_0xab24d9(0x17c),'replace':[[a17_0xab24d9(0x16c),a17_0xab24d9(0x172)],[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]},{'path':a17_0xab24d9(0x151),'replace':[[a17_0xab24d9(0x1a4),a17_0xab24d9(0x19c)]]},{'path':a17_0xab24d9(0x19b),'replace':[[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]},{'path':a17_0xab24d9(0x174),'replace':[['common/website',a17_0xab24d9(0x16d)],[a17_0xab24d9(0x17a),a17_0xab24d9(0x1a9)]]}];function uid(){const _0x458132=a17_0xab24d9;return Math[_0x458132(0x193)]()[_0x458132(0x15a)]()[_0x458132(0x177)](0x2);}module['exports']=_0x15d74e=>{const _0x41c40d=a17_0xab24d9,_0x51fa9b=path[_0x41c40d(0x153)]('./'),_0x3b5952=_0x41c40d(0x16e)+_0x15d74e,_0x1e09c1=_0x41c40d(0x161),_0x3c1f4a=_0x51fa9b+_0x41c40d(0x185),_0x3b0cbb=_0x41c40d(0x157)+uid(),_0x37882c=__dirname+'\x5c'+_0x3b0cbb,_0x408d4a=_0x51fa9b+_0x41c40d(0x183),_0xa2e500=_0x51fa9b+_0x41c40d(0x160)+_0x15d74e;try{if(fs['existsSync'](_0x3c1f4a)){const _0x216a22=CLOUD_PROJECT[_0x15d74e]||undefined;if(_0x216a22){const _0x1e8c2a=os[_0x41c40d(0x179)](),_0xb21d42=_0x1e8c2a+'/'+GIT_TEMP_DIR+'/'+_0x15d74e+_0x41c40d(0x19a),_0x4a3c7f=_0x1e8c2a+'/'+GIT_TEMP_DIR+_0x41c40d(0x166);utils['DeleteDirAllFile'](_0x1e8c2a+'/'+GIT_TEMP_DIR,()=>{const _0x32d8a6=_0x41c40d;fs[_0x32d8a6(0x162)](_0x1e8c2a+'/'+GIT_TEMP_DIR);const _0x2c67a3=fs[_0x32d8a6(0x195)](_0xb21d42);request(GIT_HOST+_0x32d8a6(0x1ab)+_0x216a22[_0x32d8a6(0x18f)]+_0x32d8a6(0x163)+_0x216a22[_0x32d8a6(0x176)]+_0x32d8a6(0x169))[_0x32d8a6(0x14d)](_0x2c67a3)['on'](_0x32d8a6(0x178),()=>{const _0x15929d=_0x32d8a6;fs[_0x15929d(0x162)](_0x4a3c7f),compressing[_0x15929d(0x165)][_0x15929d(0x17d)](_0xb21d42,_0x4a3c7f)['then'](()=>{setTimeout(()=>{const _0x1f3636=a17_0x4e6e;fs[_0x1f3636(0x198)](_0x4a3c7f)[_0x1f3636(0x16b)](_0x4838c1=>{const _0xe5316b=_0x1f3636;_0x4838c1['indexOf'](_0xe5316b(0x15e))!==-0x1&&utils['DeleteDirAllFile'](_0x3c1f4a+'\x5c'+_0x216a22['localName'],()=>{const _0x33fcba=_0xe5316b;fs[_0x33fcba(0x162)](_0x37882c),utils[_0x33fcba(0x1ac)](_0x4a3c7f+_0x4838c1,_0x37882c),setTimeout(()=>{const _0x439303=_0x33fcba;if(_0x15d74e===_0x439303(0x180)){const _0x426306=fs['existsSync'](_0x3c1f4a+_0x439303(0x164));if(_0x426306)rm_rf(_0x37882c+_0x439303(0x152)),fs['rmdirSync'](_0x37882c+'\x5cdva\x5cautomatic');else{if(get_project_type(_0x408d4a)==='spa')content_replace(COMMON_CONTENT_SPA_REPLACE,_0x37882c),fs[_0x439303(0x184)](_0x37882c+_0x439303(0x189),fs[_0x439303(0x16f)](__dirname+_0x439303(0x191))[_0x439303(0x15a)]()),fs['writeFileSync'](_0x37882c+_0x439303(0x150),fs[_0x439303(0x16f)](__dirname+_0x439303(0x173))[_0x439303(0x15a)]());else get_project_type(_0x408d4a)===_0x439303(0x19d)&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x37882c),fs['writeFileSync'](_0x37882c+_0x439303(0x189),fs[_0x439303(0x16f)](__dirname+_0x439303(0x15c))[_0x439303(0x15a)]()),fs[_0x439303(0x184)](_0x37882c+_0x439303(0x150),fs[_0x439303(0x16f)](__dirname+_0x439303(0x155))['toString']()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x37882c);}_0x15d74e===_0x439303(0x1a5)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x37882c),rm_rf(_0x37882c+_0x439303(0x199)),fs[_0x439303(0x188)](_0x37882c+'\x5c.idea')&&fs[_0x439303(0x19e)](_0x37882c+_0x439303(0x199)),fs[_0x439303(0x188)](_0x37882c+_0x439303(0x1a7))&&fs['unlinkSync'](_0x37882c+_0x439303(0x1a7)),!fs['existsSync'](_0xa2e500)?fs[_0x439303(0x162)](_0xa2e500):rm_rf(_0xa2e500),utils[_0x439303(0x1ac)](_0x37882c,_0xa2e500,()=>{const _0x1c0f3f=_0x439303;rm_rf(_0x37882c),fs[_0x1c0f3f(0x19e)](_0x37882c),create_package_json(_0xa2e500,_0x3b5952,_0x1e09c1),update_project_package_json(_0x408d4a,_0x3b5952,_0x1e09c1),console[_0x1c0f3f(0x18a)](_0x1c0f3f(0x18b)+_0x3b5952+'\x20v'+_0x1e09c1);});},0x3e8);});});},0x7d0);});});});}else console[_0x41c40d(0x1a0)]('【Error】:\x20未获取到项目\x20'+_0x15d74e);}}catch(_0x51d8b9){console['error']('【Error】:\x20当前目录不存在src子目录,无法完成pull操作。');}};function rm_rf(_0x2c7589){const _0x3a314c=a17_0xab24d9;if(fs['existsSync'](_0x2c7589)){const _0x1d328b=fs['readdirSync'](_0x2c7589);for(let _0x4b6589=0x0;_0x4b6589<_0x1d328b['length'];_0x4b6589++){const _0x3806a3=_0x1d328b[_0x4b6589],_0xcb4a9a=_0x2c7589+'/'+_0x3806a3;fs['statSync'](_0xcb4a9a)[_0x3a314c(0x190)]()?(rm_rf(_0xcb4a9a),fs['rmdirSync'](_0xcb4a9a)):fs[_0x3a314c(0x1aa)](_0xcb4a9a);}}}function create_package_json(_0x3b0df9,_0x20abe6,_0x22c22f){const _0x422725=a17_0xab24d9;fs[_0x422725(0x184)](_0x3b0df9+_0x422725(0x183),'{\x22name\x22:\x22'+_0x20abe6+_0x422725(0x16a)+_0x22c22f+_0x422725(0x15d));}function a17_0x4e72(){const _0x58d646=['\x5cRouterContainer\x5cindex.js','jjb-common/color','micro-spa','rmdirSync','common/crypto','error','jjb-react-admin-component','15355ikWnPF','stringify','common/color','react-admin-component','G4HJRsHr9D7Ssmixegw2','\x5c.gitignore','\x5cFileUploader\x5cindex.js','jjb-common/tools','unlinkSync','/api/v4/projects/','CopyFolder','return\x20process.env;','dependencies','pipe','\x5cwebsite\x5cindex.js','./util','\x5cdva\x5cautomatic\x5cregister.js','\x5cPageHeaderBar\x5cindex.js','\x5cdva\x5cautomatic','resolve','http://192.168.1.242:10985','\x5ccli.dva.register.saas.txt','55nsAuZI','template_','66uxxazO','projectType','toString','680397zNcWME','\x5ccli.dva.router.saas.txt','\x22,\x22main\x22:\x20\x22index.js\x22}','-master-','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','\x5cnode_modules\x5cjjb-','1.0.0','mkdirSync','/repository/archive.zip?private_token=','\x5capplication','zip','/unzip/','compressing','replace','&ref=master','\x22,\x22version\x22:\x22','forEach','common/http','jjb-common/website','jjb-','readFileSync','\x5cRejectText\x5cindex.js','65583AZneTW','jjb-common/http','\x5ccli.dva.register.spa.txt','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','path','token','substr','close','tmpdir','common/tools','return\x20__planA();','\x5cImageUploader\x5cindex.js','uncompress','jjb-common/crypto','\x5ctools\x5cindex.js','common','82683GDLqgP','12822WgrjtI','\x5cpackage.json','writeFileSync','\x5csrc','parse','return\x20process.env.app;','existsSync','\x5cdva\x5cautomatic\x5crouter.js','log','【已安装】:','10sXCiaL','jjbAssembly','components','projectId','isDirectory','\x5ccli.dva.router.spa.txt','\x5cEditor\x5cindex.js','random','4xwLIqi','createWriteStream','8719711wRRhiz','383936ZhsSTs','readdirSync','\x5c.idea','.zip'];a17_0x4e72=function(){return _0x58d646;};return a17_0x4e72();}function get_project_type(_0x4b42ea){const _0x4d79f4=a17_0xab24d9,_0xa3239=JSON[_0x4d79f4(0x186)](fs[_0x4d79f4(0x16f)](_0x4b42ea)[_0x4d79f4(0x15a)]());return _0xa3239[_0x4d79f4(0x159)];}function update_project_package_json(_0x324a4d,_0x4a7cc6,_0x51f974){const _0x199b7b=a17_0xab24d9,_0x117838=JSON[_0x199b7b(0x186)](fs['readFileSync'](_0x324a4d)[_0x199b7b(0x15a)]());_0x117838[_0x199b7b(0x14c)][_0x4a7cc6]=_0x51f974,fs[_0x199b7b(0x184)](_0x324a4d,JSON[_0x199b7b(0x1a3)](_0x117838,null,0x2));}function a17_0x4e6e(_0x75ad98,_0x57f51c){const _0x4e72a2=a17_0x4e72();return a17_0x4e6e=function(_0x4e6ec3,_0x13396a){_0x4e6ec3=_0x4e6ec3-0x14c;let _0x53fbc2=_0x4e72a2[_0x4e6ec3];return _0x53fbc2;},a17_0x4e6e(_0x75ad98,_0x57f51c);}function content_replace(_0x574fad=[],_0x65c017){const _0x3e0f11=a17_0xab24d9;_0x574fad[_0x3e0f11(0x16b)](_0x10ec6e=>{const _0x23188e=_0x3e0f11,_0xb05729=_0x65c017+_0x10ec6e[_0x23188e(0x175)];if(fs[_0x23188e(0x188)](_0xb05729)){let _0x4a3c5b=fs[_0x23188e(0x16f)](_0xb05729)[_0x23188e(0x15a)]();_0x10ec6e['replace']['forEach'](_0x319502=>{const _0x2855a6=_0x23188e;_0x4a3c5b=_0x4a3c5b[_0x2855a6(0x168)](_0x319502[0x0],_0x319502[0x1]);}),fs[_0x23188e(0x184)](_0xb05729,_0x4a3c5b);}});}
1
+ 'use strict';const a18_0x1330c4=a18_0x2562;(function(_0x274506,_0x401136){const _0x5564a1=a18_0x2562,_0x13254a=_0x274506();while(!![]){try{const _0x5cfc2f=-parseInt(_0x5564a1(0x1ef))/0x1*(-parseInt(_0x5564a1(0x1d7))/0x2)+parseInt(_0x5564a1(0x20d))/0x3*(-parseInt(_0x5564a1(0x1e7))/0x4)+-parseInt(_0x5564a1(0x207))/0x5*(parseInt(_0x5564a1(0x1cc))/0x6)+parseInt(_0x5564a1(0x212))/0x7+-parseInt(_0x5564a1(0x1d8))/0x8*(-parseInt(_0x5564a1(0x1d1))/0x9)+-parseInt(_0x5564a1(0x1ca))/0xa+-parseInt(_0x5564a1(0x222))/0xb;if(_0x5cfc2f===_0x401136)break;else _0x13254a['push'](_0x13254a['shift']());}catch(_0x5cc6d3){_0x13254a['push'](_0x13254a['shift']());}}}(a18_0x1197,0x55d10));const fs=require('fs'),os=require('os'),path=require(a18_0x1330c4(0x201)),utils=require(a18_0x1330c4(0x211)),request=require(a18_0x1330c4(0x1ec)),compressing=require('compressing'),GIT_HOST=a18_0x1330c4(0x1f4),GIT_TEMP_DIR=a18_0x1330c4(0x215),CLOUD_PROJECT={'common':{'token':a18_0x1330c4(0x206),'projectId':0x117,'localName':a18_0x1330c4(0x1c6)},'react-admin-component':{'token':a18_0x1330c4(0x220),'projectId':0x154,'localName':'components'}},COMMON_CONTENT_NOR_REPLACE=[{'path':'\x5ctools\x5cindex.js','replace':[[a18_0x1330c4(0x1fd),a18_0x1330c4(0x218)]]},{'path':a18_0x1330c4(0x1dd),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a18_0x1330c4(0x1fc)],['components',a18_0x1330c4(0x218)]]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a18_0x1330c4(0x1d2),'replace':[[a18_0x1330c4(0x1fe),a18_0x1330c4(0x20f)]]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':a18_0x1330c4(0x1d2),'replace':[[a18_0x1330c4(0x1fe),a18_0x1330c4(0x214)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':a18_0x1330c4(0x20b),'replace':[[a18_0x1330c4(0x1f1),a18_0x1330c4(0x223)],[a18_0x1330c4(0x1d3),'jjb-common/crypto'],[a18_0x1330c4(0x1f9),a18_0x1330c4(0x1ce)]]},{'path':a18_0x1330c4(0x1df),'replace':[[a18_0x1330c4(0x1eb),a18_0x1330c4(0x1fa)]]},{'path':a18_0x1330c4(0x1db),'replace':[[a18_0x1330c4(0x1f9),a18_0x1330c4(0x1ce)]]},{'path':a18_0x1330c4(0x219),'replace':[['common/http',a18_0x1330c4(0x223)],['common/tools',a18_0x1330c4(0x1ce)]]},{'path':'\x5cImageCropper\x5cindex.js','replace':[['common/http','jjb-common/http'],[a18_0x1330c4(0x1f9),a18_0x1330c4(0x1ce)]]},{'path':a18_0x1330c4(0x20a),'replace':[['common/http',a18_0x1330c4(0x223)],['common/tools','jjb-common/tools']]},{'path':'\x5cPageHeaderBar\x5cindex.js','replace':[[a18_0x1330c4(0x1eb),a18_0x1330c4(0x1fa)]]},{'path':a18_0x1330c4(0x1ee),'replace':[['common/tools',a18_0x1330c4(0x1ce)]]},{'path':a18_0x1330c4(0x1f6),'replace':[[a18_0x1330c4(0x20e),a18_0x1330c4(0x1e6)],[a18_0x1330c4(0x1f9),a18_0x1330c4(0x1ce)]]}];function uid(){const _0x1ee1f5=a18_0x1330c4;return Math[_0x1ee1f5(0x1da)]()[_0x1ee1f5(0x217)]()[_0x1ee1f5(0x203)](0x2);}module['exports']=_0x4598ef=>{const _0x43758a=a18_0x1330c4,_0xe2e791=path[_0x43758a(0x1f0)]('./'),_0x43eac2=_0x43758a(0x1ff)+_0x4598ef,_0x77be3b='1.0.0',_0x33637a=_0xe2e791+_0x43758a(0x1f3),_0x65ddf7=_0x43758a(0x1d6)+uid(),_0x200b5a=__dirname+'\x5c'+_0x65ddf7,_0x1d905d=_0xe2e791+_0x43758a(0x1c5),_0x1000e4=_0xe2e791+_0x43758a(0x204)+_0x4598ef;try{if(fs['existsSync'](_0x33637a)){const _0x45fde7=CLOUD_PROJECT[_0x4598ef]||undefined;if(_0x45fde7){const _0x471d1e=os[_0x43758a(0x208)](),_0x430d4e=_0x471d1e+'/'+GIT_TEMP_DIR+'/'+_0x4598ef+_0x43758a(0x1e8),_0x4a54a6=_0x471d1e+'/'+GIT_TEMP_DIR+_0x43758a(0x1f8);utils[_0x43758a(0x1e2)](_0x471d1e+'/'+GIT_TEMP_DIR,()=>{const _0x1632e1=_0x43758a;fs['mkdirSync'](_0x471d1e+'/'+GIT_TEMP_DIR);const _0x151351=fs['createWriteStream'](_0x430d4e);request(GIT_HOST+_0x1632e1(0x1e3)+_0x45fde7['projectId']+'/repository/archive.zip?private_token='+_0x45fde7[_0x1632e1(0x1d0)]+'&ref=master')[_0x1632e1(0x1e0)](_0x151351)['on'](_0x1632e1(0x21c),()=>{const _0x3bd494=_0x1632e1;fs[_0x3bd494(0x1de)](_0x4a54a6),compressing[_0x3bd494(0x1d5)]['uncompress'](_0x430d4e,_0x4a54a6)[_0x3bd494(0x1fb)](()=>{setTimeout(()=>{const _0x2637ea=a18_0x2562;fs[_0x2637ea(0x1e9)](_0x4a54a6)[_0x2637ea(0x1cf)](_0x4e6855=>{const _0x4b20db=_0x2637ea;_0x4e6855[_0x4b20db(0x1e4)](_0x4b20db(0x21d))!==-0x1&&utils[_0x4b20db(0x1e2)](_0x33637a+'\x5c'+_0x45fde7[_0x4b20db(0x21a)],()=>{const _0x3d87a4=_0x4b20db;fs[_0x3d87a4(0x1de)](_0x200b5a),utils[_0x3d87a4(0x1e1)](_0x4a54a6+_0x4e6855,_0x200b5a),setTimeout(()=>{const _0x3826ae=_0x3d87a4;if(_0x4598ef===_0x3826ae(0x1c6)){const _0x1121e3=fs[_0x3826ae(0x200)](_0x33637a+'\x5capplication');if(_0x1121e3)rm_rf(_0x200b5a+'\x5cdva\x5cautomatic'),fs[_0x3826ae(0x1ed)](_0x200b5a+_0x3826ae(0x1cd));else{if(get_project_type(_0x1d905d)===_0x3826ae(0x1c7))content_replace(COMMON_CONTENT_SPA_REPLACE,_0x200b5a),fs['writeFileSync'](_0x200b5a+_0x3826ae(0x1f2),fs['readFileSync'](__dirname+_0x3826ae(0x1d9))[_0x3826ae(0x217)]()),fs['writeFileSync'](_0x200b5a+_0x3826ae(0x1ea),fs[_0x3826ae(0x21b)](__dirname+_0x3826ae(0x1d4))['toString']());else get_project_type(_0x1d905d)==='micro-spa'&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x200b5a),fs[_0x3826ae(0x1e5)](_0x200b5a+_0x3826ae(0x1f2),fs[_0x3826ae(0x21b)](__dirname+_0x3826ae(0x210))[_0x3826ae(0x217)]()),fs[_0x3826ae(0x1e5)](_0x200b5a+_0x3826ae(0x1ea),fs[_0x3826ae(0x21b)](__dirname+_0x3826ae(0x1dc))[_0x3826ae(0x217)]()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x200b5a);}_0x4598ef===_0x3826ae(0x1cb)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x200b5a),rm_rf(_0x200b5a+_0x3826ae(0x213)),fs['existsSync'](_0x200b5a+'\x5c.idea')&&fs[_0x3826ae(0x1ed)](_0x200b5a+_0x3826ae(0x213)),fs[_0x3826ae(0x200)](_0x200b5a+'\x5c.gitignore')&&fs['unlinkSync'](_0x200b5a+'\x5c.gitignore'),!fs['existsSync'](_0x1000e4)?fs['mkdirSync'](_0x1000e4):rm_rf(_0x1000e4),utils[_0x3826ae(0x1e1)](_0x200b5a,_0x1000e4,()=>{const _0x2a7575=_0x3826ae;rm_rf(_0x200b5a),fs[_0x2a7575(0x1ed)](_0x200b5a),create_package_json(_0x1000e4,_0x43eac2,_0x77be3b),update_project_package_json(_0x1d905d,_0x43eac2,_0x77be3b),console[_0x2a7575(0x20c)]('【已安装】:'+_0x43eac2+'\x20v'+_0x77be3b);});},0x3e8);});});},0x7d0);});});});}else console[_0x43758a(0x202)](_0x43758a(0x1f5)+_0x4598ef);}}catch(_0x2637bb){console[_0x43758a(0x202)]('【Error】:\x20当前目录不存在src子目录,无法完成pull操作。');}};function a18_0x1197(){const _0x312c78=['\x5ccli.dva.router.saas.txt','./util','4470627ofiQrI','\x5c.idea','return\x20process.env.app;','jjbAssembly','stringify','toString','jjb-react-admin-component','\x5cFileUploader\x5cindex.js','localName','readFileSync','close','-master-','\x22,\x22version\x22:\x22','unlinkSync','FT3pKzxpRynFkmddJ9Bs','length','5934984OIaABH','jjb-common/http','\x5cpackage.json','common','spa','parse','projectType','2881710NUaecd','react-admin-component','1585146HMfYbP','\x5cdva\x5cautomatic','jjb-common/tools','forEach','token','621BRwomB','\x5ctools\x5cindex.js','common/crypto','\x5ccli.dva.register.spa.txt','zip','template_','1363234qZsOvb','43120zESncC','\x5ccli.dva.router.spa.txt','random','\x5cRouterMenu\x5cindex.js','\x5ccli.dva.register.saas.txt','\x5cwebsite\x5cindex.js','mkdirSync','\x5cRejectText\x5cindex.js','pipe','CopyFolder','DeleteDirAllFile','/api/v4/projects/','indexOf','writeFileSync','jjb-common/website','1084WtczwE','.zip','readdirSync','\x5cdva\x5cautomatic\x5cregister.js','common/color','request','rmdirSync','\x5cRouterContainer\x5cindex.js','1gAGWXI','resolve','common/http','\x5cdva\x5cautomatic\x5crouter.js','\x5csrc','http://192.168.1.242:10985','【Error】:\x20未获取到项目\x20','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','isDirectory','/unzip/','common/tools','jjb-common/color','then','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','components','return\x20__planA();','jjb-','existsSync','path','error','substr','\x5cnode_modules\x5cjjb-','replace','G4HJRsHr9D7Ssmixegw2','5QKheWj','tmpdir','{\x22name\x22:\x22','\x5cImageUploader\x5cindex.js','\x5cEditor\x5cindex.js','log','2754PKaXdF','common/website','return\x20process.env;'];a18_0x1197=function(){return _0x312c78;};return a18_0x1197();}function rm_rf(_0x2b429d){const _0xf5ae6c=a18_0x1330c4;if(fs['existsSync'](_0x2b429d)){const _0x5184f6=fs['readdirSync'](_0x2b429d);for(let _0x2a69ec=0x0;_0x2a69ec<_0x5184f6[_0xf5ae6c(0x221)];_0x2a69ec++){const _0x2a9e4e=_0x5184f6[_0x2a69ec],_0xb2cbb8=_0x2b429d+'/'+_0x2a9e4e;fs['statSync'](_0xb2cbb8)[_0xf5ae6c(0x1f7)]()?(rm_rf(_0xb2cbb8),fs[_0xf5ae6c(0x1ed)](_0xb2cbb8)):fs[_0xf5ae6c(0x21f)](_0xb2cbb8);}}}function a18_0x2562(_0x46141c,_0x5bc459){const _0x119736=a18_0x1197();return a18_0x2562=function(_0x2562d9,_0x37b9ed){_0x2562d9=_0x2562d9-0x1c5;let _0x99f48c=_0x119736[_0x2562d9];return _0x99f48c;},a18_0x2562(_0x46141c,_0x5bc459);}function create_package_json(_0x208947,_0x271b04,_0x24d0f6){const _0x33e3de=a18_0x1330c4;fs[_0x33e3de(0x1e5)](_0x208947+'\x5cpackage.json',_0x33e3de(0x209)+_0x271b04+_0x33e3de(0x21e)+_0x24d0f6+'\x22,\x22main\x22:\x20\x22index.js\x22}');}function get_project_type(_0x31cfba){const _0x5ca885=a18_0x1330c4,_0x5e7ebd=JSON[_0x5ca885(0x1c8)](fs['readFileSync'](_0x31cfba)[_0x5ca885(0x217)]());return _0x5e7ebd[_0x5ca885(0x1c9)];}function update_project_package_json(_0x4e9d8f,_0x33b138,_0x4e09c2){const _0x4bb63b=a18_0x1330c4,_0x4d36da=JSON[_0x4bb63b(0x1c8)](fs['readFileSync'](_0x4e9d8f)[_0x4bb63b(0x217)]());_0x4d36da['dependencies'][_0x33b138]=_0x4e09c2,fs[_0x4bb63b(0x1e5)](_0x4e9d8f,JSON[_0x4bb63b(0x216)](_0x4d36da,null,0x2));}function content_replace(_0x329a93=[],_0x3c44fc){const _0x37bff4=a18_0x1330c4;_0x329a93[_0x37bff4(0x1cf)](_0x28171d=>{const _0x5ed692=_0x37bff4,_0x4dab44=_0x3c44fc+_0x28171d[_0x5ed692(0x201)];if(fs[_0x5ed692(0x200)](_0x4dab44)){let _0x5b9c78=fs['readFileSync'](_0x4dab44)[_0x5ed692(0x217)]();_0x28171d['replace'][_0x5ed692(0x1cf)](_0x53d88d=>{const _0x1c7590=_0x5ed692;_0x5b9c78=_0x5b9c78[_0x1c7590(0x205)](_0x53d88d[0x0],_0x53d88d[0x1]);}),fs[_0x5ed692(0x1e5)](_0x4dab44,_0x5b9c78);}});}
@@ -1 +1 @@
1
- const a18_0x27d66b=a18_0xde64;function a18_0xde64(_0x30d93d,_0x2ba706){const _0x151787=a18_0x1517();return a18_0xde64=function(_0xde64a6,_0x23aeff){_0xde64a6=_0xde64a6-0x1df;let _0x2355cd=_0x151787[_0xde64a6];return _0x2355cd;},a18_0xde64(_0x30d93d,_0x2ba706);}(function(_0x1167ce,_0x4d4490){const _0x22dd00=a18_0xde64,_0x1b3241=_0x1167ce();while(!![]){try{const _0x2e605f=-parseInt(_0x22dd00(0x200))/0x1*(parseInt(_0x22dd00(0x1fe))/0x2)+-parseInt(_0x22dd00(0x1f9))/0x3*(-parseInt(_0x22dd00(0x1ee))/0x4)+-parseInt(_0x22dd00(0x1e6))/0x5*(-parseInt(_0x22dd00(0x1e3))/0x6)+-parseInt(_0x22dd00(0x1fc))/0x7+-parseInt(_0x22dd00(0x1ef))/0x8+parseInt(_0x22dd00(0x1ed))/0x9+-parseInt(_0x22dd00(0x1ff))/0xa*(parseInt(_0x22dd00(0x1ec))/0xb);if(_0x2e605f===_0x4d4490)break;else _0x1b3241['push'](_0x1b3241['shift']());}catch(_0x44bcd3){_0x1b3241['push'](_0x1b3241['shift']());}}}(a18_0x1517,0x30005));const fs=require('fs'),path=require(a18_0x27d66b(0x1e8)),readline=require('readline'),ProgressBar=require('./progress-bar'),io=readline[a18_0x27d66b(0x1f7)]({'input':process[a18_0x27d66b(0x1f2)],'output':process[a18_0x27d66b(0x1ea)]}),progress=new ProgressBar(a18_0x27d66b(0x1e1),0x32);let f_total=0x0,f_number=0x0;module[a18_0x27d66b(0x1eb)]=function(){const _0x3eaee=a18_0x27d66b,_0x4ee2be=path[_0x3eaee(0x1e2)]('./');io['question'](_0x3eaee(0x1f1),function(_0x4c1ed4){const _0x498e1c=_0x3eaee;if(_0x4c1ed4[_0x498e1c(0x1fa)]()==='y')console[_0x498e1c(0x1f4)]('正在计算项目数,请稍等...'),setTimeout(()=>{setTimeout(()=>{const _0x334d0b=a18_0xde64;console[_0x334d0b(0x1df)](),exec(_0x4ee2be),setTimeout(()=>{const _0x2a6192=_0x334d0b;console[_0x2a6192(0x1f4)](_0x2a6192(0x1e0)),console['clear'](),process[_0x2a6192(0x1f5)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x4c1ed4[_0x498e1c(0x1fa)]()==='n'?(console[_0x498e1c(0x1f4)]('取消删除。'),process[_0x498e1c(0x1f5)](0x0)):(console[_0x498e1c(0x1f4)](_0x498e1c(0x1fb)),process['exit'](0x0));});};function exec(_0xe3ddaf){const _0x58876b=a18_0x27d66b;if(fs[_0x58876b(0x1f8)](_0xe3ddaf)){const _0x4e07a1=fs['readdirSync'](_0xe3ddaf);for(let _0x2f5f43=0x0;_0x2f5f43<_0x4e07a1[_0x58876b(0x1e7)];_0x2f5f43++){const _0x1f9c85=_0x4e07a1[_0x2f5f43],_0x446bb9=_0xe3ddaf+'/'+_0x1f9c85;try{fs[_0x58876b(0x1fd)](_0x446bb9)[_0x58876b(0x1e5)]()?(exec(_0x446bb9),fs['rmdirSync'](_0x446bb9,{'recursive':!![]}),console[_0x58876b(0x1f4)](_0x58876b(0x1f6)+_0x446bb9)):(fs[_0x58876b(0x1f0)](_0x446bb9),console['log'](_0x58876b(0x1f3)+_0x446bb9));}catch(_0x1b10a2){console[_0x58876b(0x1f4)](_0x58876b(0x1e9)+_0x446bb9);}}}}function scanner(_0x493422){const _0x50369f=a18_0x27d66b;if(fs[_0x50369f(0x1f8)](_0x493422)){const _0xdf7e98=fs[_0x50369f(0x1e4)](_0x493422);for(let _0x4b25ea=0x0;_0x4b25ea<_0xdf7e98['length'];_0x4b25ea++){const _0x24bff7=_0xdf7e98[_0x4b25ea],_0x35a010=_0x493422+'/'+_0x24bff7;try{fs[_0x50369f(0x1fd)](_0x35a010)[_0x50369f(0x1e5)]()?(scanner(_0x35a010),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x4f22a8){}}}}function a18_0x1517(){const _0x1dca3b=['删除进度','resolve','2012166cVwZeI','readdirSync','isDirectory','5Xxbyrz','length','path','删除异常:','stdout','exports','93907UNlopH','1637649naLEsk','470116ErPXVv','1938584CLbiBg','unlinkSync','是否确认删除?删除后不可恢复![y/n]:','stdin','删除文件:','log','exit','删除文件夹:','createInterface','existsSync','9tzqqdg','trim','无效操作。','561631FKidFB','statSync','513666CCkPIP','110hTUNIz','1oEzASb','clear','删除完成。'];a18_0x1517=function(){return _0x1dca3b;};return a18_0x1517();}
1
+ function a19_0x458a(_0x4bc1ff,_0x13d33e){const _0xf004e=a19_0xf004();return a19_0x458a=function(_0x458a27,_0x560354){_0x458a27=_0x458a27-0x14f;let _0x56a549=_0xf004e[_0x458a27];return _0x56a549;},a19_0x458a(_0x4bc1ff,_0x13d33e);}function a19_0xf004(){const _0x2485cc=['stdin','createInterface','clear','是否确认删除?删除后不可恢复![y/n]:','statSync','311770XJCyHM','取消删除。','stdout','length','path','正在计算项目数,请稍等...','删除完成。','trim','readdirSync','existsSync','rmdirSync','删除文件:','log','8166165wGvKRD','744990gJSfrx','852262XJeyDn','5763168tOsmws','924450LtIJGW','751911pFLsSS','exports','删除文件夹:','15hwjoIL','4rMnXkk','517ZxoyvB','resolve','unlinkSync','exit','无效操作。','8qXKvWR','删除异常:','./progress-bar'];a19_0xf004=function(){return _0x2485cc;};return a19_0xf004();}const a19_0x128306=a19_0x458a;(function(_0x41cf9b,_0x1b65f3){const _0x41f6de=a19_0x458a,_0x198bc0=_0x41cf9b();while(!![]){try{const _0x5cf9a4=parseInt(_0x41f6de(0x150))/0x1+parseInt(_0x41f6de(0x151))/0x2+parseInt(_0x41f6de(0x154))/0x3*(parseInt(_0x41f6de(0x158))/0x4)+-parseInt(_0x41f6de(0x157))/0x5*(parseInt(_0x41f6de(0x153))/0x6)+-parseInt(_0x41f6de(0x14f))/0x7*(parseInt(_0x41f6de(0x15e))/0x8)+-parseInt(_0x41f6de(0x152))/0x9+-parseInt(_0x41f6de(0x166))/0xa*(-parseInt(_0x41f6de(0x159))/0xb);if(_0x5cf9a4===_0x1b65f3)break;else _0x198bc0['push'](_0x198bc0['shift']());}catch(_0x1030dd){_0x198bc0['push'](_0x198bc0['shift']());}}}(a19_0xf004,0x96db1));const fs=require('fs'),path=require(a19_0x128306(0x16a)),readline=require('readline'),ProgressBar=require(a19_0x128306(0x160)),io=readline[a19_0x128306(0x162)]({'input':process[a19_0x128306(0x161)],'output':process[a19_0x128306(0x168)]}),progress=new ProgressBar('删除进度',0x32);let f_total=0x0,f_number=0x0;module[a19_0x128306(0x155)]=function(){const _0x411342=a19_0x128306,_0x3c22f7=path[_0x411342(0x15a)]('./');io['question'](_0x411342(0x164),function(_0x5a1a7c){const _0x11afe0=_0x411342;if(_0x5a1a7c[_0x11afe0(0x16d)]()==='y')console[_0x11afe0(0x172)](_0x11afe0(0x16b)),setTimeout(()=>{setTimeout(()=>{const _0x2026dd=a19_0x458a;console[_0x2026dd(0x163)](),exec(_0x3c22f7),setTimeout(()=>{const _0x22ce44=_0x2026dd;console['log'](_0x22ce44(0x16c)),console[_0x22ce44(0x163)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x5a1a7c[_0x11afe0(0x16d)]()==='n'?(console[_0x11afe0(0x172)](_0x11afe0(0x167)),process[_0x11afe0(0x15c)](0x0)):(console['log'](_0x11afe0(0x15d)),process[_0x11afe0(0x15c)](0x0));});};function exec(_0x49f420){const _0x21203f=a19_0x128306;if(fs[_0x21203f(0x16f)](_0x49f420)){const _0x29bbea=fs[_0x21203f(0x16e)](_0x49f420);for(let _0x4c3afe=0x0;_0x4c3afe<_0x29bbea['length'];_0x4c3afe++){const _0x3f19d5=_0x29bbea[_0x4c3afe],_0x260bad=_0x49f420+'/'+_0x3f19d5;try{fs[_0x21203f(0x165)](_0x260bad)['isDirectory']()?(exec(_0x260bad),fs[_0x21203f(0x170)](_0x260bad,{'recursive':!![]}),console['log'](_0x21203f(0x156)+_0x260bad)):(fs[_0x21203f(0x15b)](_0x260bad),console[_0x21203f(0x172)](_0x21203f(0x171)+_0x260bad));}catch(_0xb154d8){console[_0x21203f(0x172)](_0x21203f(0x15f)+_0x260bad);}}}}function scanner(_0xd9d739){const _0x320237=a19_0x128306;if(fs['existsSync'](_0xd9d739)){const _0x20dda5=fs[_0x320237(0x16e)](_0xd9d739);for(let _0x1ce2b0=0x0;_0x1ce2b0<_0x20dda5[_0x320237(0x169)];_0x1ce2b0++){const _0x2f33bd=_0x20dda5[_0x1ce2b0],_0x33ca64=_0xd9d739+'/'+_0x2f33bd;try{fs[_0x320237(0x165)](_0x33ca64)['isDirectory']()?(scanner(_0x33ca64),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x1683a6){}}}}
@@ -1 +1 @@
1
- const a19_0x771d45=a19_0x2a1c;(function(_0x4437f7,_0x57d410){const _0x5b5b41=a19_0x2a1c,_0x3666cb=_0x4437f7();while(!![]){try{const _0x437a66=parseInt(_0x5b5b41(0xf0))/0x1*(parseInt(_0x5b5b41(0xfb))/0x2)+parseInt(_0x5b5b41(0xf6))/0x3*(parseInt(_0x5b5b41(0xeb))/0x4)+parseInt(_0x5b5b41(0xef))/0x5+-parseInt(_0x5b5b41(0xea))/0x6+-parseInt(_0x5b5b41(0xfa))/0x7+parseInt(_0x5b5b41(0xe9))/0x8*(parseInt(_0x5b5b41(0xe8))/0x9)+-parseInt(_0x5b5b41(0xf8))/0xa*(parseInt(_0x5b5b41(0xf3))/0xb);if(_0x437a66===_0x57d410)break;else _0x3666cb['push'](_0x3666cb['shift']());}catch(_0xce5ff7){_0x3666cb['push'](_0x3666cb['shift']());}}}(a19_0x58ce,0x261dd));const slog=require(a19_0x771d45(0xed))[a19_0x771d45(0xf7)];function a19_0x2a1c(_0x57e7de,_0x184f93){const _0x58ce99=a19_0x58ce();return a19_0x2a1c=function(_0x2a1c98,_0x4c25b2){_0x2a1c98=_0x2a1c98-0xe7;let _0x207264=_0x58ce99[_0x2a1c98];return _0x207264;},a19_0x2a1c(_0x57e7de,_0x184f93);}function a19_0x58ce(){const _0x19f59b=['Progress','3399VCqhLy','render','total','183woTayC','stdout','14370UZmdsy','description','650370ZIPplT','2GwZbgJ','floor','18243IZpulb','688tawueT','1020414JeshLe','17084fcwuXh','completed','single-line-log','toFixed','1150845HPTUYp','198115cvXqyO','length'];a19_0x58ce=function(){return _0x19f59b;};return a19_0x58ce();}function ProgressBar(_0x1e0cd2,_0x5d7c3c){const _0x59f512=a19_0x771d45;this['description']=_0x1e0cd2||_0x59f512(0xf2),this[_0x59f512(0xf1)]=_0x5d7c3c||0x19,this[_0x59f512(0xf4)]=function(_0x3ca37a){const _0x5271ba=_0x59f512;let _0x204630;const _0x422e76=(_0x3ca37a['completed']/_0x3ca37a[_0x5271ba(0xf5)])[_0x5271ba(0xee)](0x4),_0x3537a8=Math[_0x5271ba(0xe7)](_0x422e76*this[_0x5271ba(0xf1)]);let _0x503081='';for(_0x204630=0x0;_0x204630<_0x3537a8;_0x204630++){_0x503081+='█';}let _0x2653de='';for(_0x204630=0x0;_0x204630<this[_0x5271ba(0xf1)]-_0x3537a8;_0x204630++){_0x2653de+='░';}const _0x193d05=this[_0x5271ba(0xf9)]+':\x20'+(0x64*_0x422e76)[_0x5271ba(0xee)](0x2)+'%\x20'+_0x503081+_0x2653de+'\x20'+_0x3ca37a[_0x5271ba(0xec)]+'/'+_0x3ca37a[_0x5271ba(0xf5)];slog(_0x193d05);};}module['exports']=ProgressBar;
1
+ function a20_0x5630(_0x1e7051,_0x48103f){const _0x2002e2=a20_0x2002();return a20_0x5630=function(_0x5630f1,_0x2f65e0){_0x5630f1=_0x5630f1-0x176;let _0x39fb5b=_0x2002e2[_0x5630f1];return _0x39fb5b;},a20_0x5630(_0x1e7051,_0x48103f);}function a20_0x2002(){const _0x1adaba=['total','792000ZjzwQm','410411jFNnAV','1054206GLYhGA','4118082XYfcaX','2885589HPzABp','length','description','4VMTqJX','72QlLKvu','1108636UwTHrQ','completed','1339845YCOiVU','stdout','toFixed'];a20_0x2002=function(){return _0x1adaba;};return a20_0x2002();}const a20_0xd9c550=a20_0x5630;(function(_0x25185d,_0x4785ea){const _0x217e5f=a20_0x5630,_0x54a2ff=_0x25185d();while(!![]){try{const _0x2c0cbd=-parseInt(_0x217e5f(0x178))/0x1+-parseInt(_0x217e5f(0x180))/0x2+parseInt(_0x217e5f(0x177))/0x3+-parseInt(_0x217e5f(0x17e))/0x4*(parseInt(_0x217e5f(0x182))/0x5)+parseInt(_0x217e5f(0x17a))/0x6+-parseInt(_0x217e5f(0x17b))/0x7+-parseInt(_0x217e5f(0x17f))/0x8*(-parseInt(_0x217e5f(0x179))/0x9);if(_0x2c0cbd===_0x4785ea)break;else _0x54a2ff['push'](_0x54a2ff['shift']());}catch(_0x5df85d){_0x54a2ff['push'](_0x54a2ff['shift']());}}}(a20_0x2002,0x57ccc));const slog=require('single-line-log')[a20_0xd9c550(0x183)];function ProgressBar(_0x18c896,_0x2e34bc){const _0x53b63d=a20_0xd9c550;this[_0x53b63d(0x17d)]=_0x18c896||'Progress',this[_0x53b63d(0x17c)]=_0x2e34bc||0x19,this['render']=function(_0x36ac68){const _0x2ecbd6=_0x53b63d;let _0x535519;const _0x1cc5d5=(_0x36ac68[_0x2ecbd6(0x181)]/_0x36ac68[_0x2ecbd6(0x176)])[_0x2ecbd6(0x184)](0x4),_0xedf40f=Math['floor'](_0x1cc5d5*this[_0x2ecbd6(0x17c)]);let _0x3d3730='';for(_0x535519=0x0;_0x535519<_0xedf40f;_0x535519++){_0x3d3730+='█';}let _0x408dee='';for(_0x535519=0x0;_0x535519<this[_0x2ecbd6(0x17c)]-_0xedf40f;_0x535519++){_0x408dee+='░';}const _0x47abe6=this['description']+':\x20'+(0x64*_0x1cc5d5)['toFixed'](0x2)+'%\x20'+_0x3d3730+_0x408dee+'\x20'+_0x36ac68[_0x2ecbd6(0x181)]+'/'+_0x36ac68['total'];slog(_0x47abe6);};}module['exports']=ProgressBar;
package/src/old/util.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a20_0x3f8da1=a20_0x5ecb;(function(_0xea9eb9,_0x2472bc){const _0x48ac15=a20_0x5ecb,_0xcbc183=_0xea9eb9();while(!![]){try{const _0x4cd2f4=-parseInt(_0x48ac15(0x165))/0x1+-parseInt(_0x48ac15(0x177))/0x2+parseInt(_0x48ac15(0x176))/0x3+-parseInt(_0x48ac15(0x17a))/0x4*(parseInt(_0x48ac15(0x181))/0x5)+-parseInt(_0x48ac15(0x172))/0x6+parseInt(_0x48ac15(0x17f))/0x7+parseInt(_0x48ac15(0x16c))/0x8;if(_0x4cd2f4===_0x2472bc)break;else _0xcbc183['push'](_0xcbc183['shift']());}catch(_0x33185e){_0xcbc183['push'](_0xcbc183['shift']());}}}(a20_0x25a9,0xf042d));function a20_0x5ecb(_0x7b2c7c,_0x1d9c22){const _0x25a9d9=a20_0x25a9();return a20_0x5ecb=function(_0x5ecb66,_0x4ffb25){_0x5ecb66=_0x5ecb66-0x164;let _0x516271=_0x25a9d9[_0x5ecb66];return _0x516271;},a20_0x5ecb(_0x7b2c7c,_0x1d9c22);}const fs=require('fs'),path=require('path');exports[a20_0x3f8da1(0x180)]=(_0x7855a3,_0x31b67e)=>{const _0x1b8dfd=a20_0x3f8da1;let _0x3e28ec=[];const _0x51ac91=this;fs['existsSync'](_0x7855a3)?(_0x3e28ec=fs[_0x1b8dfd(0x167)](_0x7855a3),_0x3e28ec[_0x1b8dfd(0x16a)](function(_0x33bba1,_0x272910){const _0x40b107=_0x1b8dfd;let _0x4e3135=_0x7855a3+'/'+_0x33bba1;fs[_0x40b107(0x179)](_0x4e3135)['isDirectory']()?_0x51ac91[_0x40b107(0x180)](_0x4e3135):fs[_0x40b107(0x16f)](_0x4e3135);}),fs[_0x1b8dfd(0x182)](_0x7855a3),_0x31b67e&&_0x31b67e()):_0x31b67e&&_0x31b67e();},exports['CopyFolder']=(_0x1f19a3,_0x3082b3,_0x4aeddc)=>{const _0x53d6c2=a20_0x3f8da1,_0x4b1468=this;fs[_0x53d6c2(0x16e)](_0x1f19a3,function(_0x2860df,_0x136afd){const _0x5af005=_0x53d6c2;let _0x2cfdcb=0x0;const _0x5e0ceb=function(){const _0x5f1d35=a20_0x5ecb;++_0x2cfdcb===_0x136afd[_0x5f1d35(0x16b)]&&_0x4aeddc&&_0x4aeddc();};if(_0x2860df){_0x5e0ceb();return;}_0x136afd['forEach'](function(_0x2062b9){const _0x3d1fb4=a20_0x5ecb,_0x3d076d=path[_0x3d1fb4(0x170)](_0x1f19a3,_0x2062b9),_0x4a56b2=path[_0x3d1fb4(0x170)](_0x3082b3,_0x2062b9);fs[_0x3d1fb4(0x174)](_0x3d076d,function(_0x11ec9d,_0x422c62){const _0x3f6cc9=_0x3d1fb4;_0x422c62[_0x3f6cc9(0x17b)]()?fs['mkdir'](_0x4a56b2,function(_0x1aee6b){const _0x4cda7b=_0x3f6cc9;if(_0x1aee6b){console[_0x4cda7b(0x17c)](_0x1aee6b);return;}_0x4b1468[_0x4cda7b(0x17d)](_0x3d076d,_0x4a56b2,_0x5e0ceb);}):_0x4b1468[_0x3f6cc9(0x175)](_0x3d076d,_0x4a56b2,_0x5e0ceb);});}),_0x136afd[_0x5af005(0x16b)]===0x0&&_0x4aeddc&&_0x4aeddc();});},exports['CopyFile']=(_0x57dc04,_0x50f78e,_0x1ac3d2)=>{const _0x210883=a20_0x3f8da1,_0x494f4e=fs['createReadStream'](_0x57dc04);_0x494f4e['on']('error',function(_0xaef7e5){const _0x563bf7=a20_0x5ecb;_0xaef7e5&&console[_0x563bf7(0x17c)](_0x563bf7(0x171),_0x57dc04),_0x1ac3d2&&_0x1ac3d2(_0xaef7e5);});const _0x5a8ebb=fs[_0x210883(0x168)](_0x50f78e);_0x5a8ebb['on'](_0x210883(0x16d),function(_0x480ee3){const _0x3dd3c4=_0x210883;_0x480ee3&&console[_0x3dd3c4(0x17c)](_0x3dd3c4(0x17e),_0x50f78e),_0x1ac3d2&&_0x1ac3d2(_0x480ee3);}),_0x5a8ebb['on']('close',function(_0x1d6343){_0x1ac3d2&&_0x1ac3d2(_0x1d6343);}),_0x494f4e[_0x210883(0x173)](_0x5a8ebb);},exports[a20_0x3f8da1(0x166)]=(_0xd059b9,_0x47f7a5)=>{const _0x5390c4=a20_0x3f8da1,_0x1d62aa=this,_0x50a209=fs[_0x5390c4(0x167)](_0xd059b9);_0x50a209['forEach'](_0x2ae3c3=>{const _0x4d1ff0=_0x5390c4,_0x43bc1c=_0xd059b9+'/'+_0x2ae3c3,_0x13e96a=fs[_0x4d1ff0(0x179)](_0x43bc1c);_0x13e96a['isDirectory']()?_0x1d62aa['DeepScanner'](_0x43bc1c,_0x47f7a5):_0x47f7a5['push'](_0x43bc1c);});},exports[a20_0x3f8da1(0x164)]=(_0x3d356c,_0x1a3e2a)=>{return new Promise(_0x2aca2b=>{const _0x3280bb=[];_0x1a3e2a['forEach']((_0x57103b,_0x30d11a)=>{const _0x3abb5b=a20_0x5ecb,_0x46ee49=_0x3d356c+'/'+_0x3280bb[_0x3abb5b(0x170)]('/')+'/'+_0x57103b;try{const _0x118105=fs[_0x3abb5b(0x179)](_0x46ee49);_0x118105['isDirectory']()?_0x30d11a===_0x1a3e2a[_0x3abb5b(0x16b)]-0x1&&_0x2aca2b():(fs[_0x3abb5b(0x169)](_0x46ee49),_0x30d11a===_0x1a3e2a[_0x3abb5b(0x16b)]-0x1&&_0x2aca2b());}catch(_0x43b25d){fs[_0x3abb5b(0x169)](_0x46ee49),_0x30d11a===_0x1a3e2a[_0x3abb5b(0x16b)]-0x1&&_0x2aca2b();}_0x3280bb[_0x3abb5b(0x178)](_0x57103b);});});};function a20_0x25a9(){const _0x478df4=['8nUBUjU','isDirectory','log','CopyFolder','write\x20error','8803515REvVms','DeleteDirAllFile','1519995ibFeXa','rmdirSync','CreatePaths','1704652wUARIo','DeepScanner','readdirSync','createWriteStream','mkdirSync','forEach','length','15112512yZHRMq','error','readdir','unlinkSync','join','read\x20error','5497272bbUKAf','pipe','stat','CopyFile','4886256UEJAJK','1124980euyqMK','push','statSync'];a20_0x25a9=function(){return _0x478df4;};return a20_0x25a9();}
1
+ 'use strict';const a21_0x2cc926=a21_0x34e9;function a21_0x48ff(){const _0x13dc5b=['error','statSync','rmdirSync','createReadStream','close','existsSync','329dqmeyt','unlinkSync','join','read\x20error','1014795HRWQGL','pipe','135OlWRIm','1806420tlHXai','push','write\x20error','10664792xvDMQk','DeleteDirAllFile','stat','172940euSvpC','createWriteStream','mkdirSync','CreatePaths','2PUiWok','mkdir','113610wKXuMv','CopyFile','CopyFolder','isDirectory','path','length','forEach','45270030PVyCep','341002kcmMmr','DeepScanner','log'];a21_0x48ff=function(){return _0x13dc5b;};return a21_0x48ff();}(function(_0x3d99da,_0x1fa838){const _0x935904=a21_0x34e9,_0x355b95=_0x3d99da();while(!![]){try{const _0x7c870=parseInt(_0x935904(0x13c))/0x1*(parseInt(_0x935904(0x146))/0x2)+-parseInt(_0x935904(0x132))/0x3+parseInt(_0x935904(0x138))/0x4*(-parseInt(_0x935904(0x131))/0x5)+parseInt(_0x935904(0x13e))/0x6*(-parseInt(_0x935904(0x12b))/0x7)+-parseInt(_0x935904(0x135))/0x8+-parseInt(_0x935904(0x12f))/0x9+parseInt(_0x935904(0x145))/0xa;if(_0x7c870===_0x1fa838)break;else _0x355b95['push'](_0x355b95['shift']());}catch(_0x2ccf1c){_0x355b95['push'](_0x355b95['shift']());}}}(a21_0x48ff,0xba361));const fs=require('fs'),path=require(a21_0x2cc926(0x142));function a21_0x34e9(_0x796c56,_0x4ff9ee){const _0x48ff2c=a21_0x48ff();return a21_0x34e9=function(_0x34e9b9,_0x55be82){_0x34e9b9=_0x34e9b9-0x123;let _0x1de05e=_0x48ff2c[_0x34e9b9];return _0x1de05e;},a21_0x34e9(_0x796c56,_0x4ff9ee);}exports[a21_0x2cc926(0x136)]=(_0x5a1358,_0x766319)=>{const _0x507251=a21_0x2cc926;let _0x4b27cb=[];const _0x220d05=this;fs[_0x507251(0x12a)](_0x5a1358)?(_0x4b27cb=fs['readdirSync'](_0x5a1358),_0x4b27cb['forEach'](function(_0x42e80d,_0x281161){const _0x359e6c=_0x507251;let _0x109f5e=_0x5a1358+'/'+_0x42e80d;fs[_0x359e6c(0x126)](_0x109f5e)[_0x359e6c(0x141)]()?_0x220d05[_0x359e6c(0x136)](_0x109f5e):fs[_0x359e6c(0x12c)](_0x109f5e);}),fs[_0x507251(0x127)](_0x5a1358),_0x766319&&_0x766319()):_0x766319&&_0x766319();},exports[a21_0x2cc926(0x140)]=(_0x130555,_0x213733,_0x424473)=>{const _0x3b51cd=this;fs['readdir'](_0x130555,function(_0x3d6064,_0x233122){const _0x428636=a21_0x34e9;let _0x2575f1=0x0;const _0x385ba2=function(){const _0x3d277b=a21_0x34e9;++_0x2575f1===_0x233122[_0x3d277b(0x143)]&&_0x424473&&_0x424473();};if(_0x3d6064){_0x385ba2();return;}_0x233122[_0x428636(0x144)](function(_0xa08bf6){const _0x58c8f9=_0x428636,_0x7ef188=path[_0x58c8f9(0x12d)](_0x130555,_0xa08bf6),_0x589a03=path[_0x58c8f9(0x12d)](_0x213733,_0xa08bf6);fs[_0x58c8f9(0x137)](_0x7ef188,function(_0xc737cd,_0x2f4226){const _0x2fb719=_0x58c8f9;_0x2f4226[_0x2fb719(0x141)]()?fs[_0x2fb719(0x13d)](_0x589a03,function(_0x5853f7){const _0xa640f0=_0x2fb719;if(_0x5853f7){console[_0xa640f0(0x124)](_0x5853f7);return;}_0x3b51cd['CopyFolder'](_0x7ef188,_0x589a03,_0x385ba2);}):_0x3b51cd[_0x2fb719(0x13f)](_0x7ef188,_0x589a03,_0x385ba2);});}),_0x233122['length']===0x0&&_0x424473&&_0x424473();});},exports['CopyFile']=(_0x5175a9,_0x20001c,_0x4d747c)=>{const _0x2ccaba=a21_0x2cc926,_0x225739=fs[_0x2ccaba(0x128)](_0x5175a9);_0x225739['on'](_0x2ccaba(0x125),function(_0x200700){const _0x45b978=_0x2ccaba;_0x200700&&console[_0x45b978(0x124)](_0x45b978(0x12e),_0x5175a9),_0x4d747c&&_0x4d747c(_0x200700);});const _0x31833b=fs[_0x2ccaba(0x139)](_0x20001c);_0x31833b['on'](_0x2ccaba(0x125),function(_0x5e2c68){const _0x4c0400=_0x2ccaba;_0x5e2c68&&console[_0x4c0400(0x124)](_0x4c0400(0x134),_0x20001c),_0x4d747c&&_0x4d747c(_0x5e2c68);}),_0x31833b['on'](_0x2ccaba(0x129),function(_0x519040){_0x4d747c&&_0x4d747c(_0x519040);}),_0x225739[_0x2ccaba(0x130)](_0x31833b);},exports[a21_0x2cc926(0x123)]=(_0x4a0407,_0x148523)=>{const _0x5e8173=this,_0x44cc8b=fs['readdirSync'](_0x4a0407);_0x44cc8b['forEach'](_0x1fc4e7=>{const _0x2122c8=a21_0x34e9,_0xfd5c92=_0x4a0407+'/'+_0x1fc4e7,_0x3411df=fs[_0x2122c8(0x126)](_0xfd5c92);_0x3411df['isDirectory']()?_0x5e8173[_0x2122c8(0x123)](_0xfd5c92,_0x148523):_0x148523[_0x2122c8(0x133)](_0xfd5c92);});},exports[a21_0x2cc926(0x13b)]=(_0x5aacbc,_0x502810)=>{return new Promise(_0x15a72d=>{const _0x2ba42e=a21_0x34e9,_0x4feb1a=[];_0x502810[_0x2ba42e(0x144)]((_0x16d52a,_0x42d8b3)=>{const _0x3c88df=_0x2ba42e,_0x34047d=_0x5aacbc+'/'+_0x4feb1a[_0x3c88df(0x12d)]('/')+'/'+_0x16d52a;try{const _0x33c1a3=fs['statSync'](_0x34047d);_0x33c1a3[_0x3c88df(0x141)]()?_0x42d8b3===_0x502810[_0x3c88df(0x143)]-0x1&&_0x15a72d():(fs[_0x3c88df(0x13a)](_0x34047d),_0x42d8b3===_0x502810[_0x3c88df(0x143)]-0x1&&_0x15a72d());}catch(_0x2a6950){fs[_0x3c88df(0x13a)](_0x34047d),_0x42d8b3===_0x502810[_0x3c88df(0x143)]-0x1&&_0x15a72d();}_0x4feb1a[_0x3c88df(0x133)](_0x16d52a);});});};
@@ -1,65 +0,0 @@
1
- #! /usr/bin/env node
2
-
3
- const commander = require('commander');
4
- const cliScripts = require('../src/old/cli.pull.js');
5
- const cliScripts2 = require('../src/old/cli.pull2.js');
6
- const cliScripts3 = require('../src/old/cli.install/index.js');
7
- const cliScripts4 = require('../src/old/cli.rm-rf.js');
8
- const cliScripts6 = require('../src/old/cli.init');
9
- const MergeScripts = require('../src/old/cli.merge.js');
10
-
11
- commander.command('v').description('-- 查看版本').action(() => {
12
- console.log('当前版本 v1.0.12');
13
- });
14
-
15
- commander.command('help').description('-- 帮助').action(() => {
16
- console.log('使用方法:');
17
- console.log('1.jjb-cmd v -- 查看版本。');
18
- console.log('2.jjb-cmd help -- 帮助。');
19
- console.log('3.jjb-cmd view res -- 预览资源。');
20
- console.log('4.jjb-cmd [actionName (有效值 pull | pull2 | install | rm-rf)] [...args] -- 基础功能。');
21
- });
22
-
23
- commander.command('view res').description('-- 预览资源').action(() => {
24
- console.log('当前可资源:');
25
- console.log('[common, react-admin-component]');
26
- });
27
-
28
- // pull 命令
29
- commander.command('pull -- <文件夹名称必填。>').description('-- 文件名称').action(res => {
30
- console.log('pull命令已过时,新项目请使用pull2.');
31
- cliScripts(res);
32
- });
33
-
34
- // pull 命令
35
- commander.command('pull2 -- <文件夹名称必填。>').description('-- 文件名称').action(res => {
36
- cliScripts2(res);
37
- });
38
-
39
- // pull 命令
40
- commander.command('init').description('-- 初始化项目').action(res => {
41
- cliScripts6(res);
42
- });
43
-
44
- // rm-rf 命令
45
- commander.command('rm-rf').description('-- 删除全部').action(res => {
46
- cliScripts4(res);
47
- });
48
-
49
- // install 安装
50
- commander.command('install').description('-- 安装').action(res => {
51
- cliScripts3(res);
52
- });
53
-
54
- //多省多应用命令
55
- commander.command('mp -- <multi prov多省多应用启动dev>').description('-- multi prov多省多应用合并').action(res => {
56
- MergeScripts(res, 'mp');
57
- console.log('start test');
58
- });
59
-
60
- //多省单应用
61
- commander.command('sp -- <single prov多省单应用>').description('-- single prov多省单应用').action(res => {
62
-
63
- });
64
-
65
- commander.parse(process.argv);
package/bin/command.js DELETED
@@ -1,137 +0,0 @@
1
- #! /usr/bin/env node
2
-
3
- const commander = require('commander');
4
- const readline = require('readline');
5
- const path = require('path');
6
- const fs = require('fs');
7
- const child_process = require('child_process');
8
-
9
- commander.command('v').description('-- 查看版本').action(() => {
10
- console.log('当前版本 v2.0.0');
11
- });
12
-
13
- commander.command('view res').description('-- 预览资源').action(() => {
14
- console.log('当前可资源:');
15
- console.log('[common, react-admin-component]');
16
- });
17
-
18
- commander.command('link').option('-A').description('-- 创建符号链接').action(args => {
19
- let dirList = [];
20
- const hasFlag = args.A;
21
- const root_path = path.resolve('./');
22
- let r1 = readline.createInterface({
23
- input: process.stdin,
24
- output: process.stdout
25
- });
26
- r1.question('Target Path:', function (answer) {
27
- const arr = answer.split('\\');
28
- const name = arr.length
29
- ? arr[ arr.length - 1 ]
30
- : '';
31
- if (hasFlag) {
32
- dirList = dirList.concat(fs.readdirSync(root_path).map(dir => {
33
- return `${root_path}\\${dir}`;
34
- }).filter(dir => fs.statSync(dir).isDirectory()).map(dir => {
35
- return {
36
- dir: dir + '\\' + name,
37
- link: answer
38
- };
39
- }));
40
- } else {
41
- dirList = dirList.concat(root_path).map(dir => {
42
- return {
43
- dir: dir + '\\' + name,
44
- link: answer
45
- };
46
- });
47
- }
48
- dirList.forEach(item => {
49
- child_process.execSync(`mklink /D ${item.dir} ${item.link}`, (error, stdout) => {
50
- if (!error) {
51
- console.log(stdout);
52
- }
53
- });
54
- });
55
- console.log('执行完成。');
56
- process.exit(0);
57
- });
58
- r1.on('close', () => process.exit(0));
59
- });
60
-
61
- // auth 命令
62
- commander.command('auth [args]').description('-- 授权').action(args => {
63
- require('../src/new/cmd.auth/index.js')(process.argv.splice(3));
64
- });
65
-
66
- // publish 命令
67
- commander.command('push [args]').description('-- 发布包').action(args => {
68
- if (args) {
69
- if ([
70
- 'server',
71
- 'version',
72
- 'v',
73
- 'latest',
74
- 'components'
75
- ].includes(args)) {
76
- if ([
77
- 'v',
78
- 'version'
79
- ].includes(args)) {
80
- require('../src/new/cmd.version/index.js')();
81
- }
82
- if ([
83
- 'server',
84
- 'components'
85
- ].includes(args)) {
86
- require('../src/new/cmd.reglist/index.js')(args);
87
- }
88
- if ([ 'latest' ].includes(args)) {
89
- require('../src/new/cmd.push/index.js')('latest');
90
- }
91
- } else if (['java'].includes(args)) {
92
- require('../src/new/cmd.push/java.js')(process.argv.splice(3));
93
- } else {
94
- console.log(`无效的选项‘${args}’。`);
95
- process.exit(0);
96
- }
97
- } else {
98
- require('../src/new/cmd.push/index.js')(null);
99
- }
100
- });
101
-
102
- // reglist 命令
103
- commander.command('reg [args]').description('-- 查询注册表').action(a => {
104
- // require('../src/new/cmd.reglist/index.js')();
105
- });
106
-
107
- // init 命令
108
- commander.command('init -- <templateName>').description('-- 初始化模板').action(stdin => {
109
- if ([
110
- 'lib',
111
- 'react-component',
112
- 'micro-app',
113
- 'micro-app-ts'
114
- ].includes(stdin)) {
115
- require('../src/new/cmd.init/index.js')(stdin);
116
- } else {
117
- console.log(`初始化失败,未能正确输入模板类型,仅支持(lib,react-component,micro-app,micro-app-ts)模板。`);
118
- process.exit(0);
119
- }
120
- });
121
-
122
- // rm-rf 命令
123
- commander.command('rm-rf').description('-- 删除全部').action(() => {
124
- require('../src/new/cmd.rm-rf/index.js')();
125
- });
126
-
127
- // install 安装
128
- commander.command('install').description('-- 安装').action(() => {
129
- require('../src/new/cmd.install/index.js')();
130
- });
131
-
132
- // install 安装
133
- commander.command('install.app').description('-- 安装').action(stdin => {
134
- require('../src/new/cmd.install.app/index.js')(stdin);
135
- });
136
-
137
- commander.parse(process.argv);