jjb-cmd 2.2.12 → 2.2.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.
@@ -1 +1 @@
1
- function a13_0x2d76(_0x4a874e,_0x731191){const _0x512b48=a13_0x512b();return a13_0x2d76=function(_0x2d76e7,_0x3447e9){_0x2d76e7=_0x2d76e7-0x67;let _0x5af6af=_0x512b48[_0x2d76e7];return _0x5af6af;},a13_0x2d76(_0x4a874e,_0x731191);}const a13_0x3945b5=a13_0x2d76;(function(_0x22d4a0,_0x2c687a){const _0x2dacc4=a13_0x2d76,_0x45dd05=_0x22d4a0();while(!![]){try{const _0x317168=-parseInt(_0x2dacc4(0x80))/0x1+parseInt(_0x2dacc4(0x7b))/0x2*(-parseInt(_0x2dacc4(0x84))/0x3)+-parseInt(_0x2dacc4(0x72))/0x4*(parseInt(_0x2dacc4(0x71))/0x5)+parseInt(_0x2dacc4(0x75))/0x6*(parseInt(_0x2dacc4(0x6c))/0x7)+-parseInt(_0x2dacc4(0x81))/0x8*(-parseInt(_0x2dacc4(0x6b))/0x9)+-parseInt(_0x2dacc4(0x7c))/0xa+parseInt(_0x2dacc4(0x69))/0xb;if(_0x317168===_0x2c687a)break;else _0x45dd05['push'](_0x45dd05['shift']());}catch(_0xd79c2b){_0x45dd05['push'](_0x45dd05['shift']());}}}(a13_0x512b,0x5e56d));const fs=require('fs'),path=require(a13_0x3945b5(0x70)),readline=require(a13_0x3945b5(0x6f)),io=readline[a13_0x3945b5(0x77)]({'input':process['stdin'],'output':process[a13_0x3945b5(0x79)]});let f_total=0x0;module[a13_0x3945b5(0x73)]=function(){const _0x2b83a2=a13_0x3945b5,_0x4c1c54=path[_0x2b83a2(0x6a)]('./');io[_0x2b83a2(0x6e)]('是否确认删除?删除后不可恢复![y/n]:',function(_0x3c11bd){const _0x50ea3a=_0x2b83a2;if(_0x3c11bd[_0x50ea3a(0x6d)]()==='y')console[_0x50ea3a(0x68)](_0x50ea3a(0x7f)),setTimeout(()=>{setTimeout(()=>{console['clear'](),exec(_0x4c1c54),setTimeout(()=>{const _0x171de6=a13_0x2d76;console[_0x171de6(0x68)]('删除完成。'),console[_0x171de6(0x78)](),process[_0x171de6(0x67)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x3c11bd[_0x50ea3a(0x6d)]()==='n'?(console[_0x50ea3a(0x68)](_0x50ea3a(0x83)),process[_0x50ea3a(0x67)](0x0)):(console[_0x50ea3a(0x68)](_0x50ea3a(0x76)),process[_0x50ea3a(0x67)](0x0));});};function a13_0x512b(){const _0x3b47a9=['resolve','189xepbxL','7CUENcN','trim','question','readline','path','3380870cHQcqR','4mpaIum','exports','删除文件:','3952038CymkJY','无效操作。','createInterface','clear','stdout','删除异常:','2UFzDCU','3305170eovvqT','rmdirSync','isDirectory','正在计算项目数,请稍等...','193807UsVpDL','248496XuIozf','unlinkSync','取消删除。','45417pmVZjv','exit','log','3201825hpzIWc'];a13_0x512b=function(){return _0x3b47a9;};return a13_0x512b();}function exec(_0x5557e7){const _0x30bc4c=a13_0x3945b5;if(fs['existsSync'](_0x5557e7)){const _0x4b50e8=fs['readdirSync'](_0x5557e7);for(let _0x1fb9f9=0x0;_0x1fb9f9<_0x4b50e8['length'];_0x1fb9f9++){const _0x1c1f34=_0x4b50e8[_0x1fb9f9],_0x5eb674=_0x5557e7+'/'+_0x1c1f34;try{fs['statSync'](_0x5eb674)[_0x30bc4c(0x7e)]()?(exec(_0x5eb674),fs[_0x30bc4c(0x7d)](_0x5eb674,{'recursive':!![]}),console[_0x30bc4c(0x68)]('删除文件夹:'+_0x5eb674)):(fs[_0x30bc4c(0x82)](_0x5eb674),console[_0x30bc4c(0x68)](_0x30bc4c(0x74)+_0x5eb674));}catch(_0x4b7959){console[_0x30bc4c(0x68)](_0x30bc4c(0x7a)+_0x5eb674);}}}}
1
+ const a13_0x16200a=a13_0xc451;(function(_0x4f0e60,_0x55c2a1){const _0x58d740=a13_0xc451,_0xb3b62e=_0x4f0e60();while(!![]){try{const _0x2d09e1=parseInt(_0x58d740(0x98))/0x1+-parseInt(_0x58d740(0x9a))/0x2*(parseInt(_0x58d740(0x86))/0x3)+parseInt(_0x58d740(0x9d))/0x4+-parseInt(_0x58d740(0x88))/0x5+-parseInt(_0x58d740(0x92))/0x6+parseInt(_0x58d740(0x90))/0x7+parseInt(_0x58d740(0x94))/0x8*(parseInt(_0x58d740(0x8b))/0x9);if(_0x2d09e1===_0x55c2a1)break;else _0xb3b62e['push'](_0xb3b62e['shift']());}catch(_0x4bfbb5){_0xb3b62e['push'](_0xb3b62e['shift']());}}}(a13_0x2278,0xc78ae));function a13_0x2278(){const _0x44cbf0=['5109228mwGbKy','6sibYzE','stdin','5836390SaHBpX','取消删除。','删除异常:','1098YYmWnD','unlinkSync','trim','readdirSync','删除文件:','2088373TYsvPn','isDirectory','9354438EQvDZt','是否确认删除?删除后不可恢复![y/n]:','87008xHDysz','rmdirSync','exit','删除文件夹:','1362601HLcFwr','正在计算项目数,请稍等...','721442OiSkHk','log','clear'];a13_0x2278=function(){return _0x44cbf0;};return a13_0x2278();}const fs=require('fs'),path=require('path'),readline=require('readline'),io=readline['createInterface']({'input':process[a13_0x16200a(0x87)],'output':process['stdout']});function a13_0xc451(_0x164c17,_0x594563){const _0x2278f2=a13_0x2278();return a13_0xc451=function(_0xc45163,_0x369c42){_0xc45163=_0xc45163-0x86;let _0x16c2f9=_0x2278f2[_0xc45163];return _0x16c2f9;},a13_0xc451(_0x164c17,_0x594563);}let f_total=0x0;module['exports']=function(){const _0x556963=a13_0x16200a,_0x7889d1=path['resolve']('./');io['question'](_0x556963(0x93),function(_0x50c0b4){const _0x22d792=_0x556963;if(_0x50c0b4[_0x22d792(0x8d)]()==='y')console[_0x22d792(0x9b)](_0x22d792(0x99)),setTimeout(()=>{setTimeout(()=>{const _0x351112=a13_0xc451;console[_0x351112(0x9c)](),exec(_0x7889d1),setTimeout(()=>{const _0x4e1639=_0x351112;console[_0x4e1639(0x9b)]('删除完成。'),console[_0x4e1639(0x9c)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x50c0b4[_0x22d792(0x8d)]()==='n'?(console[_0x22d792(0x9b)](_0x22d792(0x89)),process[_0x22d792(0x96)](0x0)):(console[_0x22d792(0x9b)]('无效操作。'),process[_0x22d792(0x96)](0x0));});};function exec(_0x25f9ed){const _0x266ce1=a13_0x16200a;if(fs['existsSync'](_0x25f9ed)){const _0x11ba50=fs[_0x266ce1(0x8e)](_0x25f9ed);for(let _0x51236a=0x0;_0x51236a<_0x11ba50['length'];_0x51236a++){const _0x5050f9=_0x11ba50[_0x51236a],_0x9650b0=_0x25f9ed+'/'+_0x5050f9;try{fs['statSync'](_0x9650b0)[_0x266ce1(0x91)]()?(exec(_0x9650b0),fs[_0x266ce1(0x95)](_0x9650b0,{'recursive':!![]}),console[_0x266ce1(0x9b)](_0x266ce1(0x97)+_0x9650b0)):(fs[_0x266ce1(0x8c)](_0x9650b0),console[_0x266ce1(0x9b)](_0x266ce1(0x8f)+_0x9650b0));}catch(_0x537da5){console[_0x266ce1(0x9b)](_0x266ce1(0x8a)+_0x9650b0);}}}}
@@ -1 +1 @@
1
- function a14_0x2b3b(){const _0x26be45=['axios','10066763CmncMn','6194536NuLAaB','3FlMmGw','3oUITLO','existsSync','resolve','网络异常。','27470196EjXmlA','35uTFSog','post','880572DEvbvK','then','path','data','status','8JINPpB','toString','exit','10xpycpP','catch','/api/file/version','716594VybDDE','log','exports','\x5cpackage.json','8934563acVJct','350343dkkfMW'];a14_0x2b3b=function(){return _0x26be45;};return a14_0x2b3b();}const a14_0x51cbb7=a14_0x32f7;function a14_0x32f7(_0x557a5e,_0x22c6d6){const _0x2b3b22=a14_0x2b3b();return a14_0x32f7=function(_0x32f7cc,_0x3833ba){_0x32f7cc=_0x32f7cc-0xa1;let _0x3922a3=_0x2b3b22[_0x32f7cc];return _0x3922a3;},a14_0x32f7(_0x557a5e,_0x22c6d6);}(function(_0x47a9a1,_0x400249){const _0x2f3633=a14_0x32f7,_0x3e4bdf=_0x47a9a1();while(!![]){try{const _0x2a6294=parseInt(_0x2f3633(0xb8))/0x1*(-parseInt(_0x2f3633(0xaf))/0x2)+parseInt(_0x2f3633(0xb9))/0x3*(-parseInt(_0x2f3633(0xb7))/0x4)+parseInt(_0x2f3633(0xa2))/0x5*(-parseInt(_0x2f3633(0xa4))/0x6)+parseInt(_0x2f3633(0xb6))/0x7*(parseInt(_0x2f3633(0xa9))/0x8)+parseInt(_0x2f3633(0xb4))/0x9*(-parseInt(_0x2f3633(0xac))/0xa)+parseInt(_0x2f3633(0xb3))/0xb+parseInt(_0x2f3633(0xa1))/0xc;if(_0x2a6294===_0x400249)break;else _0x3e4bdf['push'](_0x3e4bdf['shift']());}catch(_0x5416d3){_0x3e4bdf['push'](_0x3e4bdf['shift']());}}}(a14_0x2b3b,0xcf74b));const path=require(a14_0x51cbb7(0xa6)),fs=require('fs'),axios=require(a14_0x51cbb7(0xb5)),{getApiHost}=require('../cmd.install/config');module[a14_0x51cbb7(0xb1)]=()=>{const _0x4b11be=a14_0x51cbb7,_0x4446b2=path[_0x4b11be(0xbb)]('./'),_0x3a6194=_0x4446b2+_0x4b11be(0xb2);if(fs[_0x4b11be(0xba)](_0x3a6194)){const _0x519929=JSON['parse'](fs['readFileSync'](_0x3a6194)[_0x4b11be(0xaa)]()),{name:_0xb8cbde}=_0x519929;axios[_0x4b11be(0xa3)](getApiHost()+_0x4b11be(0xae),{'package_name':_0xb8cbde})[_0x4b11be(0xa5)](_0x155993=>{const _0x59d24e=_0x4b11be;_0x155993[_0x59d24e(0xa7)][_0x59d24e(0xa8)]?console[_0x59d24e(0xb0)](_0x155993[_0x59d24e(0xa7)][_0x59d24e(0xa7)]):console[_0x59d24e(0xb0)](_0x155993[_0x59d24e(0xa7)]['message']),process[_0x59d24e(0xab)](0x0);})[_0x4b11be(0xad)](()=>{const _0x432052=_0x4b11be;console['log'](_0x432052(0xbc)),process['exit'](0x0);});}else console[_0x4b11be(0xb0)]('查询失败!根目录缺少‘package.json’文件,无法完成查询。'),process[_0x4b11be(0xab)](0x0);};
1
+ const a14_0x11dd7a=a14_0x22c4;function a14_0x4da7(){const _0x2d2c73=['then','4914990PwDQJo','6140130WKhwfE','1128CWzmeR','exit','4865WmAkAs','catch','50iJAAyQ','data','parse','5892iSejQw','../cmd.install/config','post','911880geEYMw','879NdMLCS','2427520eDlSGw','\x5cpackage.json','toString','/api/file/version','path','网络异常。','log','resolve','92088tNVBsA','查询失败!根目录缺少‘package.json’文件,无法完成查询。','message'];a14_0x4da7=function(){return _0x2d2c73;};return a14_0x4da7();}function a14_0x22c4(_0x3e052e,_0x5c90d8){const _0x4da798=a14_0x4da7();return a14_0x22c4=function(_0x22c4b0,_0x1dbc55){_0x22c4b0=_0x22c4b0-0x119;let _0x425d48=_0x4da798[_0x22c4b0];return _0x425d48;},a14_0x22c4(_0x3e052e,_0x5c90d8);}(function(_0x300581,_0x26d05a){const _0x27942e=a14_0x22c4,_0x5d9082=_0x300581();while(!![]){try{const _0x6db60=-parseInt(_0x27942e(0x128))/0x1*(parseInt(_0x27942e(0x11d))/0x2)+parseInt(_0x27942e(0x127))/0x3+-parseInt(_0x27942e(0x131))/0x4*(-parseInt(_0x27942e(0x121))/0x5)+parseInt(_0x27942e(0x124))/0x6*(parseInt(_0x27942e(0x11f))/0x7)+-parseInt(_0x27942e(0x129))/0x8+parseInt(_0x27942e(0x11b))/0x9+-parseInt(_0x27942e(0x11c))/0xa;if(_0x6db60===_0x26d05a)break;else _0x5d9082['push'](_0x5d9082['shift']());}catch(_0x44a034){_0x5d9082['push'](_0x5d9082['shift']());}}}(a14_0x4da7,0x55583));const path=require(a14_0x11dd7a(0x12d)),fs=require('fs'),axios=require('axios'),{getApiHost}=require(a14_0x11dd7a(0x125));module['exports']=()=>{const _0x3d054c=a14_0x11dd7a,_0x42a2e2=path[_0x3d054c(0x130)]('./'),_0x154598=_0x42a2e2+_0x3d054c(0x12a);if(fs['existsSync'](_0x154598)){const _0x209482=JSON[_0x3d054c(0x123)](fs['readFileSync'](_0x154598)[_0x3d054c(0x12b)]()),{name:_0x2e6810}=_0x209482;axios[_0x3d054c(0x126)](getApiHost()+_0x3d054c(0x12c),{'package_name':_0x2e6810})[_0x3d054c(0x11a)](_0x3e9979=>{const _0xfd917d=_0x3d054c;_0x3e9979[_0xfd917d(0x122)]['status']?console[_0xfd917d(0x12f)](_0x3e9979[_0xfd917d(0x122)][_0xfd917d(0x122)]):console[_0xfd917d(0x12f)](_0x3e9979[_0xfd917d(0x122)][_0xfd917d(0x119)]),process[_0xfd917d(0x11e)](0x0);})[_0x3d054c(0x120)](()=>{const _0x3402b7=_0x3d054c;console[_0x3402b7(0x12f)](_0x3402b7(0x12e)),process['exit'](0x0);});}else console[_0x3d054c(0x12f)](_0x3d054c(0x132)),process['exit'](0x0);};
@@ -1 +1 @@
1
- const a15_0x129233=a15_0x4aa7;function a15_0x4aa7(_0x180f7c,_0x2ba331){const _0x4e61d6=a15_0x4e61();return a15_0x4aa7=function(_0x4aa7cd,_0x4b6f66){_0x4aa7cd=_0x4aa7cd-0x1b9;let _0x5f705a=_0x4e61d6[_0x4aa7cd];return _0x5f705a;},a15_0x4aa7(_0x180f7c,_0x2ba331);}(function(_0x400d40,_0x4857c6){const _0x594048=a15_0x4aa7,_0x590c4b=_0x400d40();while(!![]){try{const _0x397946=parseInt(_0x594048(0x1c4))/0x1*(-parseInt(_0x594048(0x1b9))/0x2)+-parseInt(_0x594048(0x1c9))/0x3+-parseInt(_0x594048(0x1c7))/0x4*(-parseInt(_0x594048(0x1c0))/0x5)+parseInt(_0x594048(0x1c6))/0x6*(parseInt(_0x594048(0x1cc))/0x7)+-parseInt(_0x594048(0x1c3))/0x8*(-parseInt(_0x594048(0x1c8))/0x9)+parseInt(_0x594048(0x1ba))/0xa*(parseInt(_0x594048(0x1d0))/0xb)+-parseInt(_0x594048(0x1c5))/0xc;if(_0x397946===_0x4857c6)break;else _0x590c4b['push'](_0x590c4b['shift']());}catch(_0x11c1da){_0x590c4b['push'](_0x590c4b['shift']());}}}(a15_0x4e61,0xe4182));const path=require(a15_0x129233(0x1c1)),readline=require('readline'),{f_file_copy}=require(a15_0x129233(0x1bb)),fs=require('fs');function a15_0x4e61(){const _0x3dfba8=['3742977WEFEpZ','exit','\x5cpublic','98soRCBC','初始化完成!','\x5cjjb.script','\x5cpackage.json','55oFbBeB','86174PTonpJ','29030aPpTsc','./cli.install/tools','初始化失败,文件已存在!','log','\x5ccli.init','exports','4555fgJCbg','path','existsSync','187560AgaRhn','1zdJmAd','28717404aDZiqH','630396fVXMPX','6652KNgWTN','621QteDVB'];a15_0x4e61=function(){return _0x3dfba8;};return a15_0x4e61();}module[a15_0x129233(0x1bf)]=()=>{const _0x1c057c=a15_0x129233,_0x599c1b=path['resolve']('./');!fs['existsSync'](_0x599c1b+_0x1c057c(0x1ce))&&!fs[_0x1c057c(0x1c2)](_0x599c1b+_0x1c057c(0x1cb))&&!fs['existsSync'](_0x599c1b+'\x5cjjb.config.json')&&!fs[_0x1c057c(0x1c2)](_0x599c1b+_0x1c057c(0x1cf))&&!fs[_0x1c057c(0x1c2)](_0x599c1b+'\x5cwebstorm.config.js')?(f_file_copy(__dirname+_0x1c057c(0x1be),_0x599c1b),console[_0x1c057c(0x1bd)](_0x1c057c(0x1cd)),process['exit'](0x0)):(console[_0x1c057c(0x1bd)](_0x1c057c(0x1bc)),process[_0x1c057c(0x1ca)](0x0));};
1
+ const a15_0x199a3d=a15_0xa87a;function a15_0x25e7(){const _0x1072e2=['path','exports','log','\x5ccli.init','exit','71185XTSvoJ','48wXLsnM','\x5cjjb.script','./cli.install/tools','101896XCnylg','269956mYuEGO','9mqBsKw','2370856kLLVKj','1177673ZKOxJs','\x5cwebstorm.config.js','readline','\x5cpackage.json','24IsyiJG','existsSync','7066LYnFaI','\x5cpublic','初始化失败,文件已存在!','1825400sDweCa'];a15_0x25e7=function(){return _0x1072e2;};return a15_0x25e7();}(function(_0x377fb9,_0x11c904){const _0xcd79b3=a15_0xa87a,_0x2f4b7e=_0x377fb9();while(!![]){try{const _0x53ea43=parseInt(_0xcd79b3(0x1d7))/0x1+parseInt(_0xcd79b3(0x1ca))/0x2*(-parseInt(_0xcd79b3(0x1c8))/0x3)+-parseInt(_0xcd79b3(0x1c1))/0x4+parseInt(_0xcd79b3(0x1d3))/0x5*(-parseInt(_0xcd79b3(0x1d4))/0x6)+parseInt(_0xcd79b3(0x1c4))/0x7+-parseInt(_0xcd79b3(0x1c3))/0x8*(-parseInt(_0xcd79b3(0x1c2))/0x9)+-parseInt(_0xcd79b3(0x1cd))/0xa;if(_0x53ea43===_0x11c904)break;else _0x2f4b7e['push'](_0x2f4b7e['shift']());}catch(_0x398cc3){_0x2f4b7e['push'](_0x2f4b7e['shift']());}}}(a15_0x25e7,0x2a8df));const path=require(a15_0x199a3d(0x1ce)),readline=require(a15_0x199a3d(0x1c6)),{f_file_copy}=require(a15_0x199a3d(0x1d6)),fs=require('fs');function a15_0xa87a(_0x4e9339,_0x3a92bd){const _0x25e782=a15_0x25e7();return a15_0xa87a=function(_0xa87afb,_0x4494c1){_0xa87afb=_0xa87afb-0x1c1;let _0x5d82cd=_0x25e782[_0xa87afb];return _0x5d82cd;},a15_0xa87a(_0x4e9339,_0x3a92bd);}module[a15_0x199a3d(0x1cf)]=()=>{const _0x14d299=a15_0x199a3d,_0x17032d=path['resolve']('./');!fs[_0x14d299(0x1c9)](_0x17032d+_0x14d299(0x1d5))&&!fs['existsSync'](_0x17032d+_0x14d299(0x1cb))&&!fs[_0x14d299(0x1c9)](_0x17032d+'\x5cjjb.config.json')&&!fs[_0x14d299(0x1c9)](_0x17032d+_0x14d299(0x1c7))&&!fs[_0x14d299(0x1c9)](_0x17032d+_0x14d299(0x1c5))?(f_file_copy(__dirname+_0x14d299(0x1d1),_0x17032d),console[_0x14d299(0x1d0)]('初始化完成!'),process[_0x14d299(0x1d2)](0x0)):(console[_0x14d299(0x1d0)](_0x14d299(0x1cc)),process[_0x14d299(0x1d2)](0x0));};
@@ -1 +1 @@
1
- function a16_0x3967(_0x557604,_0x237a59){const _0x16417d=a16_0x1641();return a16_0x3967=function(_0x3967b8,_0x3c3edb){_0x3967b8=_0x3967b8-0x1e4;let _0x2d56d7=_0x16417d[_0x3967b8];return _0x2d56d7;},a16_0x3967(_0x557604,_0x237a59);}const a16_0x298832=a16_0x3967;(function(_0x29334,_0x5a7681){const _0x135423=a16_0x3967,_0x38b465=_0x29334();while(!![]){try{const _0x12ad58=parseInt(_0x135423(0x1e9))/0x1+parseInt(_0x135423(0x20b))/0x2*(-parseInt(_0x135423(0x1e8))/0x3)+-parseInt(_0x135423(0x1ed))/0x4*(-parseInt(_0x135423(0x217))/0x5)+-parseInt(_0x135423(0x1f0))/0x6+-parseInt(_0x135423(0x1ff))/0x7*(parseInt(_0x135423(0x1f9))/0x8)+parseInt(_0x135423(0x1f3))/0x9*(parseInt(_0x135423(0x1fa))/0xa)+parseInt(_0x135423(0x20f))/0xb;if(_0x12ad58===_0x5a7681)break;else _0x38b465['push'](_0x38b465['shift']());}catch(_0x24276c){_0x38b465['push'](_0x38b465['shift']());}}}(a16_0x1641,0x29a78));const os=require('os');function a16_0x1641(){const _0x2ca91f=['now','161056FaseIh','1848440nPhVFM','GIT_HOST','COMPONENTS_CONTENT_REPLACE','G4HJRsHr9D7Ssmixegw2','\x5cFileUploader\x5cindex.js','14KXxqJe','tmpdir','GIT_TEMP_DIR','jjbAssembly_','components','common/http','\x5cdva\x5cautomatic\x5cregister.js','CLI_DVA_REGISTER_SAAS','http://192.168.1.242:10985','COMMON_CONTENT_SPA_REPLACE','CLI_DVA_REGISTER_SPA','\x5cImageCropper\x5cindex.js','605122iScdOG','gPSit8aJsLVmNzuQ5Cy4','jjb-common/website','\x5cImageUploader\x5cindex.js','3916209vzjvzL','jjb-common/color','\x5cEditor\x5cindex.js','CLI_DVA_ROUTER_SPA','CLI_DVA_ROUTER_SAAS','common/color','return\x20__planA();','\x5ctools\x5cindex.js','159955XSODEl','CLI_DVA_REGISTER_PATH','jjb-common/tools','\x5cwebsite\x5cindex.js','TEMPLATE_FOLDER','return\x20process.env;','common/tools','jjb-react-admin-component','common/website','FT3pKzxpRynFkmddJ9Bs','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','\x5c..\x5ccli.dva.register.saas.txt','\x5c..\x5ccli.dva.register.spa.txt','COMMON_CONTENT_MICRO_REPLACE','3XfueAv','217857eDblmb','jjb-common/http','\x5cPageHeaderBar\x5cindex.js','e9njpBd1nS_LREN8GFpR','4unRmQr','return\x20process.env.app;','\x5cRouterMenu\x5cindex.js','1663620QaZuoW','hLqARY89CN6fUD3yg4NL','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','9roqzjZ','d4wQ7dzEjYPsgVbKnYei','COMMON_CONTENT_NOR_REPLACE','jjb-common/crypto','\x5cRejectText\x5cindex.js'];a16_0x1641=function(){return _0x2ca91f;};return a16_0x1641();}exports[a16_0x298832(0x1fb)]=a16_0x298832(0x207),exports[a16_0x298832(0x201)]=a16_0x298832(0x202)+Date[a16_0x298832(0x1f8)](),exports['CLOUD_PROJECT']={'common':{'token':a16_0x298832(0x1fd),'projectId':0x117},'react-admin-component':{'token':a16_0x298832(0x220),'projectId':0x154},'jjb-dva-runtime':{'token':a16_0x298832(0x1f1),'projectId':0x23b},'jjb-common-lib':{'token':a16_0x298832(0x1ec),'projectId':0x23c},'jjb-common-decorator':{'token':a16_0x298832(0x20c),'projectId':0x23e},'vue-unisass-component':{'token':a16_0x298832(0x1f4),'projectId':0x153}},exports[a16_0x298832(0x21b)]=os[a16_0x298832(0x200)]()+'\x5c'+exports[a16_0x298832(0x201)],exports[a16_0x298832(0x212)]=__dirname+'\x5c..\x5ccli.dva.router.spa.txt',exports[a16_0x298832(0x213)]=__dirname+'\x5c..\x5ccli.dva.router.saas.txt',exports[a16_0x298832(0x209)]=__dirname+a16_0x298832(0x1e6),exports[a16_0x298832(0x206)]=__dirname+a16_0x298832(0x1e5),exports['CLI_DVA_ROUTER_PATH']='\x5cdva\x5cautomatic\x5crouter.js',exports[a16_0x298832(0x218)]=a16_0x298832(0x205),exports[a16_0x298832(0x1f5)]=[{'path':'\x5ctools\x5cindex.js','replace':[[a16_0x298832(0x203),a16_0x298832(0x21e)]]},{'path':a16_0x298832(0x21a),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a16_0x298832(0x1e4)],['components',a16_0x298832(0x21e)]]}],exports[a16_0x298832(0x208)]=[{'path':'\x5ctools\x5cindex.js','replace':[['return\x20__planA();',a16_0x298832(0x21c)]]}],exports[a16_0x298832(0x1e7)]=[{'path':a16_0x298832(0x216),'replace':[[a16_0x298832(0x215),a16_0x298832(0x1ee)]]}],exports[a16_0x298832(0x1fc)]=[{'path':a16_0x298832(0x211),'replace':[[a16_0x298832(0x204),a16_0x298832(0x1ea)],['common/crypto',a16_0x298832(0x1f6)],[a16_0x298832(0x21d),a16_0x298832(0x219)]]},{'path':a16_0x298832(0x1f7),'replace':[[a16_0x298832(0x214),a16_0x298832(0x210)]]},{'path':a16_0x298832(0x1ef),'replace':[[a16_0x298832(0x21d),a16_0x298832(0x219)]]},{'path':a16_0x298832(0x1fe),'replace':[[a16_0x298832(0x204),a16_0x298832(0x1ea)],[a16_0x298832(0x21d),'jjb-common/tools']]},{'path':a16_0x298832(0x20a),'replace':[[a16_0x298832(0x204),a16_0x298832(0x1ea)],[a16_0x298832(0x21d),'jjb-common/tools']]},{'path':a16_0x298832(0x20e),'replace':[['common/http',a16_0x298832(0x1ea)],['common/tools',a16_0x298832(0x219)]]},{'path':a16_0x298832(0x1eb),'replace':[[a16_0x298832(0x214),a16_0x298832(0x210)]]},{'path':'\x5cRouterContainer\x5cindex.js','replace':[[a16_0x298832(0x21d),a16_0x298832(0x219)]]},{'path':a16_0x298832(0x1f2),'replace':[[a16_0x298832(0x21f),a16_0x298832(0x20d)],[a16_0x298832(0x21d),'jjb-common/tools']]}];
1
+ function a16_0x48eb(_0x510a2e,_0x91acc2){const _0x1b889c=a16_0x1b88();return a16_0x48eb=function(_0x48eba9,_0x344680){_0x48eba9=_0x48eba9-0x1c1;let _0x2af015=_0x1b889c[_0x48eba9];return _0x2af015;},a16_0x48eb(_0x510a2e,_0x91acc2);}const a16_0x4f44ee=a16_0x48eb;(function(_0x382cb8,_0x3a85d2){const _0x16dbc2=a16_0x48eb,_0xf27222=_0x382cb8();while(!![]){try{const _0x5f4c0d=-parseInt(_0x16dbc2(0x1ce))/0x1+parseInt(_0x16dbc2(0x1d5))/0x2*(-parseInt(_0x16dbc2(0x1f5))/0x3)+-parseInt(_0x16dbc2(0x1f7))/0x4*(-parseInt(_0x16dbc2(0x1de))/0x5)+parseInt(_0x16dbc2(0x1ca))/0x6+parseInt(_0x16dbc2(0x1e6))/0x7*(-parseInt(_0x16dbc2(0x1d1))/0x8)+parseInt(_0x16dbc2(0x1d3))/0x9+-parseInt(_0x16dbc2(0x1c4))/0xa;if(_0x5f4c0d===_0x3a85d2)break;else _0xf27222['push'](_0xf27222['shift']());}catch(_0x2ac6b3){_0xf27222['push'](_0xf27222['shift']());}}}(a16_0x1b88,0xc397b));const os=require('os');function a16_0x1b88(){const _0x2a9df2=['11760300uyfckH','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','CLOUD_PROJECT','COMPONENTS_CONTENT_REPLACE','\x5c..\x5ccli.dva.router.spa.txt','CLI_DVA_ROUTER_SPA','7812498NsfVhp','COMMON_CONTENT_NOR_REPLACE','tmpdir','return\x20process.env;','367162zDMEuH','jjbAssembly_','\x5cImageUploader\x5cindex.js','357464oBdbez','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','10603872BgaHAZ','CLI_DVA_REGISTER_SPA','6BSVEiR','return\x20__planA();','common/crypto','gPSit8aJsLVmNzuQ5Cy4','COMMON_CONTENT_MICRO_REPLACE','http://192.168.1.242:10985','\x5c..\x5ccli.dva.register.saas.txt','components','\x5cRouterMenu\x5cindex.js','240hhybMp','jjb-common/crypto','G4HJRsHr9D7Ssmixegw2','jjb-common/color','COMMON_CONTENT_SPA_REPLACE','\x5cRouterContainer\x5cindex.js','\x5c..\x5ccli.dva.router.saas.txt','d4wQ7dzEjYPsgVbKnYei','7kUEAix','e9njpBd1nS_LREN8GFpR','\x5cdva\x5cautomatic\x5cregister.js','common/tools','\x5cEditor\x5cindex.js','return\x20process.env.app;','common/http','now','jjb-react-admin-component','\x5c..\x5ccli.dva.register.spa.txt','\x5cFileUploader\x5cindex.js','common/color','common/website','FT3pKzxpRynFkmddJ9Bs','\x5ctools\x5cindex.js','289077KRcHvS','\x5cdva\x5cautomatic\x5crouter.js','16484vhORdf','\x5cPageHeaderBar\x5cindex.js','jjb-common/tools','jjb-common/http','CLI_DVA_ROUTER_SAAS','hLqARY89CN6fUD3yg4NL'];a16_0x1b88=function(){return _0x2a9df2;};return a16_0x1b88();}exports['GIT_HOST']=a16_0x4f44ee(0x1da),exports['GIT_TEMP_DIR']=a16_0x4f44ee(0x1cf)+Date[a16_0x4f44ee(0x1ed)](),exports[a16_0x4f44ee(0x1c6)]={'common':{'token':a16_0x4f44ee(0x1e0),'projectId':0x117},'react-admin-component':{'token':a16_0x4f44ee(0x1f3),'projectId':0x154},'jjb-dva-runtime':{'token':a16_0x4f44ee(0x1c3),'projectId':0x23b},'jjb-common-lib':{'token':a16_0x4f44ee(0x1e7),'projectId':0x23c},'jjb-common-decorator':{'token':a16_0x4f44ee(0x1d8),'projectId':0x23e},'vue-unisass-component':{'token':a16_0x4f44ee(0x1e5),'projectId':0x153}},exports['TEMPLATE_FOLDER']=os[a16_0x4f44ee(0x1cc)]()+'\x5c'+exports['GIT_TEMP_DIR'],exports[a16_0x4f44ee(0x1c9)]=__dirname+a16_0x4f44ee(0x1c8),exports[a16_0x4f44ee(0x1c2)]=__dirname+a16_0x4f44ee(0x1e4),exports[a16_0x4f44ee(0x1d4)]=__dirname+a16_0x4f44ee(0x1ef),exports['CLI_DVA_REGISTER_SAAS']=__dirname+a16_0x4f44ee(0x1db),exports['CLI_DVA_ROUTER_PATH']=a16_0x4f44ee(0x1f6),exports['CLI_DVA_REGISTER_PATH']=a16_0x4f44ee(0x1e8),exports[a16_0x4f44ee(0x1cb)]=[{'path':a16_0x4f44ee(0x1f4),'replace':[[a16_0x4f44ee(0x1dc),a16_0x4f44ee(0x1ee)]]},{'path':'\x5cwebsite\x5cindex.js','replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a16_0x4f44ee(0x1c5)],['components',a16_0x4f44ee(0x1ee)]]}],exports[a16_0x4f44ee(0x1e2)]=[{'path':a16_0x4f44ee(0x1f4),'replace':[['return\x20__planA();',a16_0x4f44ee(0x1cd)]]}],exports[a16_0x4f44ee(0x1d9)]=[{'path':a16_0x4f44ee(0x1f4),'replace':[[a16_0x4f44ee(0x1d6),a16_0x4f44ee(0x1eb)]]}],exports[a16_0x4f44ee(0x1c7)]=[{'path':a16_0x4f44ee(0x1ea),'replace':[[a16_0x4f44ee(0x1ec),a16_0x4f44ee(0x1c1)],[a16_0x4f44ee(0x1d7),a16_0x4f44ee(0x1df)],[a16_0x4f44ee(0x1e9),a16_0x4f44ee(0x1f9)]]},{'path':'\x5cRejectText\x5cindex.js','replace':[[a16_0x4f44ee(0x1f1),'jjb-common/color']]},{'path':a16_0x4f44ee(0x1dd),'replace':[[a16_0x4f44ee(0x1e9),a16_0x4f44ee(0x1f9)]]},{'path':a16_0x4f44ee(0x1f0),'replace':[['common/http',a16_0x4f44ee(0x1c1)],[a16_0x4f44ee(0x1e9),a16_0x4f44ee(0x1f9)]]},{'path':'\x5cImageCropper\x5cindex.js','replace':[[a16_0x4f44ee(0x1ec),a16_0x4f44ee(0x1c1)],[a16_0x4f44ee(0x1e9),a16_0x4f44ee(0x1f9)]]},{'path':a16_0x4f44ee(0x1d0),'replace':[['common/http',a16_0x4f44ee(0x1c1)],['common/tools',a16_0x4f44ee(0x1f9)]]},{'path':a16_0x4f44ee(0x1f8),'replace':[[a16_0x4f44ee(0x1f1),a16_0x4f44ee(0x1e1)]]},{'path':a16_0x4f44ee(0x1e3),'replace':[[a16_0x4f44ee(0x1e9),a16_0x4f44ee(0x1f9)]]},{'path':a16_0x4f44ee(0x1d2),'replace':[[a16_0x4f44ee(0x1f2),'jjb-common/website'],[a16_0x4f44ee(0x1e9),'jjb-common/tools']]}];
@@ -1 +1 @@
1
- const a17_0x53ef9c=a17_0x53be;(function(_0x57053c,_0x7aacec){const _0x3351bc=a17_0x53be,_0x1bb4e8=_0x57053c();while(!![]){try{const _0x21a99b=-parseInt(_0x3351bc(0xb2))/0x1*(-parseInt(_0x3351bc(0x8d))/0x2)+-parseInt(_0x3351bc(0xa1))/0x3+parseInt(_0x3351bc(0x93))/0x4+parseInt(_0x3351bc(0xa0))/0x5*(parseInt(_0x3351bc(0x91))/0x6)+-parseInt(_0x3351bc(0x9a))/0x7*(-parseInt(_0x3351bc(0xae))/0x8)+parseInt(_0x3351bc(0xaa))/0x9*(parseInt(_0x3351bc(0x85))/0xa)+parseInt(_0x3351bc(0x7f))/0xb*(-parseInt(_0x3351bc(0xb5))/0xc);if(_0x21a99b===_0x7aacec)break;else _0x1bb4e8['push'](_0x1bb4e8['shift']());}catch(_0x5d681f){_0x1bb4e8['push'](_0x1bb4e8['shift']());}}}(a17_0x1cb6,0xbcdb1));const fs=require('fs'),path=require('path'),request=require(a17_0x53ef9c(0x8a)),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(a17_0x53ef9c(0x9b)),{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(a17_0x53ef9c(0xbd)),start_time=Date[a17_0x53ef9c(0x95)]();module[a17_0x53ef9c(0x86)]=()=>{const _0x2d1c96=a17_0x53ef9c,_0x5833d9=path[_0x2d1c96(0x9f)]('./'),_0x55b70b=[_0x5833d9,_0x2d1c96(0x7e)][_0x2d1c96(0xbc)]('\x5c'),_0x578c3f=[_0x5833d9,_0x2d1c96(0xab)][_0x2d1c96(0xbc)]('\x5c'),_0x578d9e=[_0x5833d9,_0x2d1c96(0x9c)][_0x2d1c96(0xbc)]('\x5c');if(f_scan_jjb_config_json(_0x5833d9)){const _0x321172=f_scan_jjb_config_json_rules(_0x5833d9);_0x321172[_0x2d1c96(0xbe)]==='node_modules'?!fs['existsSync'](_0x578c3f)?(console[_0x2d1c96(0x9d)]('【Error】:安装失败,node_modules目录不存在。'),process[_0x2d1c96(0xb3)](0x0)):console[_0x2d1c96(0x9d)](_0x2d1c96(0xb1)):!fs['existsSync'](_0x55b70b)&&(console[_0x2d1c96(0x9d)](_0x2d1c96(0xbb)),process[_0x2d1c96(0xb3)](0x0));fs[_0x2d1c96(0x7d)](TEMPLATE_FOLDER),f_pull_git_repository(_0x321172[_0x2d1c96(0xa9)])['map'](_0x24da2c=>{const _0x3bc0ff=_0x2d1c96,_0x2392c2=fs[_0x3bc0ff(0x81)](_0x24da2c[_0x3bc0ff(0x88)]);request(_0x24da2c[_0x3bc0ff(0xa3)])['pipe'](_0x2392c2)['on'](_0x3bc0ff(0x8c),()=>{const _0x1c0b1d=_0x3bc0ff;fs[_0x1c0b1d(0x7d)](_0x24da2c[_0x1c0b1d(0xbf)]),compressing[_0x1c0b1d(0x87)]['uncompress'](_0x24da2c[_0x1c0b1d(0x88)],_0x24da2c[_0x1c0b1d(0xbf)]);});});const _0x45044a=setInterval(()=>{const _0x4ef1bc=_0x2d1c96,_0x108119=fs[_0x4ef1bc(0x8e)](TEMPLATE_FOLDER),_0x58fb58=_0x108119[_0x4ef1bc(0xac)](_0x4cfad0=>_0x321172['installResources'][_0x4ef1bc(0x8b)](_0x2d9533=>_0x2d9533[_0x4ef1bc(0xa7)]+_0x4ef1bc(0x96))[_0x4ef1bc(0xa5)](_0x4cfad0));if(_0x58fb58[_0x4ef1bc(0xba)]===_0x321172[_0x4ef1bc(0xa9)][_0x4ef1bc(0xba)]){clearInterval(_0x45044a);const _0x429a6c=[];_0x58fb58[_0x4ef1bc(0x9e)](_0x4bb8e1=>{const _0xb20809=_0x4ef1bc,_0x3d9efa=[TEMPLATE_FOLDER,_0x4bb8e1][_0xb20809(0xbc)]('\x5c');fs[_0xb20809(0x8e)](_0x3d9efa)[_0xb20809(0x9e)](_0x3de8a7=>_0x429a6c[_0xb20809(0xb7)]({'name':_0x4bb8e1,'path':[_0x3d9efa,_0x3de8a7]['join']('\x5c'),'pure_name':_0x4bb8e1['replace'](/_zip$/,''),'import_list':_0x321172[_0xb20809(0xa9)]['find'](_0x39f0ab=>_0x39f0ab[_0xb20809(0xa7)]+_0xb20809(0x96)===_0x4bb8e1)[_0xb20809(0xa8)]}));}),_0x429a6c[_0x4ef1bc(0x9e)](_0x4a13f5=>{const _0x13e1d5=_0x4ef1bc,_0x1a4cae=_0x4a13f5[_0x13e1d5(0xa4)],_0x62cce8=_0x4a13f5['import_list'],_0x23cbbb=[_0x4a13f5[_0x13e1d5(0x88)],'.idea']['join']('//'),_0x5754cd=[_0x4a13f5[_0x13e1d5(0x88)],_0x13e1d5(0xb6)][_0x13e1d5(0xbc)]('//');fs[_0x13e1d5(0x83)](_0x23cbbb)&&(f_rm_rf(_0x23cbbb),fs[_0x13e1d5(0x8f)](_0x23cbbb));fs[_0x13e1d5(0x83)](_0x5754cd)&&fs[_0x13e1d5(0xa6)](_0x5754cd);if(_0x62cce8[_0x13e1d5(0xba)]){fs[_0x13e1d5(0x8e)](_0x4a13f5[_0x13e1d5(0x88)])[_0x13e1d5(0xac)](_0x449ba2=>!_0x62cce8[_0x13e1d5(0xa5)](_0x449ba2)&&_0x449ba2!==_0x13e1d5(0xb4)&&_0x449ba2!==_0x13e1d5(0x84))[_0x13e1d5(0x9e)](_0x3d038e=>{const _0x352c9f=_0x4a13f5['path']+'\x5c'+_0x3d038e;f_rm_rf(_0x352c9f),fs['rmdirSync'](_0x352c9f);});if(_0x1a4cae===_0x13e1d5(0x99)){const _0x49e93c=[];fs[_0x13e1d5(0x8e)](_0x4a13f5[_0x13e1d5(0x88)])['filter'](_0x277daa=>_0x277daa!==_0x13e1d5(0xb4))['forEach'](_0x1cb2d6=>{const _0x2477b4=_0x13e1d5;_0x1cb2d6===_0x2477b4(0x98)?_0x49e93c[_0x2477b4(0xb7)](_0x2477b4(0x82)):_0x49e93c[_0x2477b4(0xb7)](_0x2477b4(0x80)+_0x1cb2d6+'\x20}\x20from\x20\x27./'+_0x1cb2d6+'\x27;');}),fs[_0x13e1d5(0x97)](_0x4a13f5[_0x13e1d5(0x88)]+_0x13e1d5(0xa2),_0x49e93c[_0x13e1d5(0xbc)]('\x0a'));}}if(_0x1a4cae===_0x13e1d5(0xb0)){const _0x48503d=[_0x4a13f5[_0x13e1d5(0x88)],'\x5cdva\x5cautomatic'][_0x13e1d5(0xbc)]('\x5c');if([_0x13e1d5(0x94),'micro-spa'][_0x13e1d5(0xa5)](_0x321172[_0x13e1d5(0x92)]))fs[_0x13e1d5(0x83)](_0x48503d)&&(f_content_replace(_0x321172['projectType']===_0x13e1d5(0x94)?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x4a13f5[_0x13e1d5(0x88)]),fs[_0x13e1d5(0x97)](_0x4a13f5['path']+CLI_DVA_ROUTER_PATH,fs[_0x13e1d5(0x89)](_0x321172['projectType']===_0x13e1d5(0x94)?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)[_0x13e1d5(0xb8)]()),fs['writeFileSync'](_0x4a13f5['path']+CLI_DVA_REGISTER_PATH,fs['readFileSync'](_0x321172['projectType']===_0x13e1d5(0x94)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)[_0x13e1d5(0xb8)]()));else _0x321172['projectType']==='multi'&&(fs[_0x13e1d5(0x83)](_0x48503d)&&(f_rm_rf(_0x48503d),fs[_0x13e1d5(0x8f)](_0x48503d)));}else{if(_0x1a4cae===_0x13e1d5(0x99))_0x321172[_0x13e1d5(0x92)]===_0x13e1d5(0xad)&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x4a13f5[_0x13e1d5(0x88)]);else{if(_0x1a4cae===_0x13e1d5(0x90)){}}}if(_0x321172[_0x13e1d5(0xbe)]===_0x13e1d5(0xab)){const _0xee06f9=_0x1a4cae;fs[_0x13e1d5(0x83)](_0x578c3f+'\x5c'+_0xee06f9)?f_rm_rf(_0x578c3f+'\x5c'+_0xee06f9):fs[_0x13e1d5(0x7d)](_0x578c3f+'\x5c'+_0xee06f9),f_file_copy(_0x4a13f5[_0x13e1d5(0x88)],_0x578c3f+'\x5c'+_0xee06f9),f_create_package_json(_0x578c3f+'\x5c'+_0xee06f9,_0xee06f9,'1.0.0'),f_update_project_package_json(_0x578d9e,_0xee06f9,'1.0.0');}else{if(_0x321172[_0x13e1d5(0xbe)]===_0x13e1d5(0xaf)){const _0x4e5817=_0x13e1d5(0x99);fs['existsSync'](_0x55b70b+_0x4e5817)?f_rm_rf(_0x55b70b+_0x4e5817):fs[_0x13e1d5(0x7d)](_0x55b70b+_0x4e5817),f_file_copy(_0x4a13f5[_0x13e1d5(0x88)],_0x55b70b+_0x4e5817);}}}),setTimeout(()=>{const _0x35fecf=_0x4ef1bc;f_rm_rf(TEMPLATE_FOLDER),fs[_0x35fecf(0x8f)](TEMPLATE_FOLDER);const _0x5242b1=Date[_0x35fecf(0x95)]();console[_0x35fecf(0x9d)](_0x35fecf(0xb9)+(_0x5242b1-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x2d1c96(0x9d)]('【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。');};function a17_0x53be(_0xcf606d,_0x3f4d73){const _0x1cb62e=a17_0x1cb6();return a17_0x53be=function(_0x53be5c,_0x4b7256){_0x53be5c=_0x53be5c-0x7d;let _0x58d6e5=_0x1cb62e[_0x53be5c];return _0x58d6e5;},a17_0x53be(_0xcf606d,_0x3f4d73);}function a17_0x1cb6(){const _0x660fa4=['mkdirSync','src\x5c','374sJXJmB','export\x20{\x20default\x20as\x20','createWriteStream','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','existsSync','setting.json','770qJhNrs','exports','zip','path','readFileSync','request','map','close','2SMaoEg','readdirSync','rmdirSync','vue-unisass-component','6aVTMmw','projectType','4248448LXiumP','spa','now','_zip','writeFileSync','RouterContainer','react-admin-component','579593FDCLwr','./tools','package.json','log','forEach','resolve','3468335zUuRXJ','2702025rWkqnz','\x5cindex.js','repository','pure_name','includes','unlinkSync','name','importList','installResources','98379NuChBd','node_modules','filter','micro-spa','8NZctCK','src','jjb-common','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','692705UiSdzj','exit','index.js','599556Zemeee','.gitignore','push','toString','【jjb-cmd】:install命令执行完成,用时','length','【Error】:安装失败,src目录不存在。','join','./config','installTarget','compress'];a17_0x1cb6=function(){return _0x660fa4;};return a17_0x1cb6();}
1
+ const a17_0x554581=a17_0xf41d;function a17_0xf41d(_0x232993,_0x4e5586){const _0x4aa8a0=a17_0x4aa8();return a17_0xf41d=function(_0xf41dd8,_0x936b86){_0xf41dd8=_0xf41dd8-0x1c6;let _0x1e2784=_0x4aa8a0[_0xf41dd8];return _0x1e2784;},a17_0xf41d(_0x232993,_0x4e5586);}(function(_0x3e948f,_0x582e81){const _0x359a61=a17_0xf41d,_0x5aeaf6=_0x3e948f();while(!![]){try{const _0x144e90=-parseInt(_0x359a61(0x1e0))/0x1*(-parseInt(_0x359a61(0x1d9))/0x2)+-parseInt(_0x359a61(0x1ce))/0x3*(parseInt(_0x359a61(0x1c9))/0x4)+parseInt(_0x359a61(0x205))/0x5*(-parseInt(_0x359a61(0x1e7))/0x6)+-parseInt(_0x359a61(0x1fb))/0x7*(parseInt(_0x359a61(0x1d6))/0x8)+parseInt(_0x359a61(0x1f1))/0x9+-parseInt(_0x359a61(0x1c6))/0xa+parseInt(_0x359a61(0x1e4))/0xb;if(_0x144e90===_0x582e81)break;else _0x5aeaf6['push'](_0x5aeaf6['shift']());}catch(_0x47c4e9){_0x5aeaf6['push'](_0x5aeaf6['shift']());}}}(a17_0x4aa8,0xab225));function a17_0x4aa8(){const _0x37de2b=['installTarget','2428NFuiqY','compressing','./tools','node_modules','rmdirSync','3501pzKTdg','src\x5c','\x20}\x20from\x20\x27./','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','.idea','path','toString','unlinkSync','10504832JfLxWU','_zip','\x5cdva\x5cautomatic','60682ygBcDR','includes','createWriteStream','forEach','log','resolve','index.js','31mzuGdd','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','export\x20{\x20default\x20as\x20','zip','23158355dqMoid','push','uncompress','6VmqhMc','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','now','exports','writeFileSync','join','length','name','map','projectType','10901646QqzRIG','jjb-common','request','exit','existsSync','.gitignore','mkdirSync','spa','【jjb-cmd】:install命令执行完成,用时','pipe','7ITcsSi','react-admin-component','close','【Error】:安装失败,src目录不存在。','【Error】:安装失败,node_modules目录不存在。','setting.json','1.0.0','filter','readFileSync','readdirSync','6074060LFNTPz','micro-spa','importList','compress','src','vue-unisass-component','3199200GgAswG','installResources'];a17_0x4aa8=function(){return _0x37de2b;};return a17_0x4aa8();}const fs=require('fs'),path=require(a17_0x554581(0x1d3)),request=require(a17_0x554581(0x1f3)),compressing=require(a17_0x554581(0x1ca)),{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(a17_0x554581(0x1cb)),{TEMPLATE_FOLDER,COMMON_CONTENT_SPA_REPLACE,CLI_DVA_ROUTER_PATH,CLI_DVA_REGISTER_PATH,CLI_DVA_ROUTER_SPA,CLI_DVA_REGISTER_SPA,CLI_DVA_ROUTER_SAAS,CLI_DVA_REGISTER_SAAS,COMMON_CONTENT_MICRO_REPLACE,COMMON_CONTENT_NOR_REPLACE,COMPONENTS_CONTENT_REPLACE}=require('./config'),start_time=Date[a17_0x554581(0x1e9)]();module[a17_0x554581(0x1ea)]=()=>{const _0xb3bdaf=a17_0x554581,_0x3efe2c=path[_0xb3bdaf(0x1de)]('./'),_0x1a670d=[_0x3efe2c,_0xb3bdaf(0x1cf)][_0xb3bdaf(0x1ec)]('\x5c'),_0x1c6509=[_0x3efe2c,_0xb3bdaf(0x1cc)][_0xb3bdaf(0x1ec)]('\x5c'),_0x3c97a2=[_0x3efe2c,'package.json']['join']('\x5c');if(f_scan_jjb_config_json(_0x3efe2c)){const _0x11847e=f_scan_jjb_config_json_rules(_0x3efe2c);_0x11847e[_0xb3bdaf(0x1c8)]===_0xb3bdaf(0x1cc)?!fs[_0xb3bdaf(0x1f5)](_0x1c6509)?(console[_0xb3bdaf(0x1dd)](_0xb3bdaf(0x1ff)),process[_0xb3bdaf(0x1f4)](0x0)):console[_0xb3bdaf(0x1dd)](_0xb3bdaf(0x1d1)):!fs[_0xb3bdaf(0x1f5)](_0x1a670d)&&(console[_0xb3bdaf(0x1dd)](_0xb3bdaf(0x1fe)),process[_0xb3bdaf(0x1f4)](0x0));fs[_0xb3bdaf(0x1f7)](TEMPLATE_FOLDER),f_pull_git_repository(_0x11847e[_0xb3bdaf(0x1c7)])[_0xb3bdaf(0x1ef)](_0x3e9906=>{const _0x49bca6=_0xb3bdaf,_0x576195=fs[_0x49bca6(0x1db)](_0x3e9906[_0x49bca6(0x1d3)]);request(_0x3e9906['repository'])[_0x49bca6(0x1fa)](_0x576195)['on'](_0x49bca6(0x1fd),()=>{const _0x538c68=_0x49bca6;fs[_0x538c68(0x1f7)](_0x3e9906[_0x538c68(0x208)]),compressing[_0x538c68(0x1e3)][_0x538c68(0x1e6)](_0x3e9906['path'],_0x3e9906['compress']);});});const _0x1c8ae9=setInterval(()=>{const _0x410923=_0xb3bdaf,_0x4637f9=fs[_0x410923(0x204)](TEMPLATE_FOLDER),_0x35f71f=_0x4637f9[_0x410923(0x202)](_0x3c6077=>_0x11847e['installResources']['map'](_0x1eb5ad=>_0x1eb5ad['name']+'_zip')[_0x410923(0x1da)](_0x3c6077));if(_0x35f71f[_0x410923(0x1ed)]===_0x11847e[_0x410923(0x1c7)][_0x410923(0x1ed)]){clearInterval(_0x1c8ae9);const _0x572ed7=[];_0x35f71f[_0x410923(0x1dc)](_0x1796be=>{const _0xbddfc0=_0x410923,_0x371eaf=[TEMPLATE_FOLDER,_0x1796be][_0xbddfc0(0x1ec)]('\x5c');fs[_0xbddfc0(0x204)](_0x371eaf)['forEach'](_0x2252e9=>_0x572ed7['push']({'name':_0x1796be,'path':[_0x371eaf,_0x2252e9][_0xbddfc0(0x1ec)]('\x5c'),'pure_name':_0x1796be['replace'](/_zip$/,''),'import_list':_0x11847e['installResources']['find'](_0x45a090=>_0x45a090[_0xbddfc0(0x1ee)]+_0xbddfc0(0x1d7)===_0x1796be)[_0xbddfc0(0x207)]}));}),_0x572ed7[_0x410923(0x1dc)](_0x85573d=>{const _0x5bc28d=_0x410923,_0x5bd5cc=_0x85573d['pure_name'],_0x5a160a=_0x85573d['import_list'],_0x3578e9=[_0x85573d[_0x5bc28d(0x1d3)],_0x5bc28d(0x1d2)][_0x5bc28d(0x1ec)]('//'),_0x3aaf17=[_0x85573d['path'],_0x5bc28d(0x1f6)]['join']('//');fs[_0x5bc28d(0x1f5)](_0x3578e9)&&(f_rm_rf(_0x3578e9),fs[_0x5bc28d(0x1cd)](_0x3578e9));fs[_0x5bc28d(0x1f5)](_0x3aaf17)&&fs[_0x5bc28d(0x1d5)](_0x3aaf17);if(_0x5a160a[_0x5bc28d(0x1ed)]){fs['readdirSync'](_0x85573d['path'])[_0x5bc28d(0x202)](_0x6bf0bb=>!_0x5a160a[_0x5bc28d(0x1da)](_0x6bf0bb)&&_0x6bf0bb!==_0x5bc28d(0x1df)&&_0x6bf0bb!==_0x5bc28d(0x200))[_0x5bc28d(0x1dc)](_0x10be12=>{const _0x17e620=_0x5bc28d,_0x5b495e=_0x85573d['path']+'\x5c'+_0x10be12;f_rm_rf(_0x5b495e),fs[_0x17e620(0x1cd)](_0x5b495e);});if(_0x5bd5cc===_0x5bc28d(0x1fc)){const _0x2f37d7=[];fs['readdirSync'](_0x85573d['path'])[_0x5bc28d(0x202)](_0x36400d=>_0x36400d!=='index.js')[_0x5bc28d(0x1dc)](_0x4d65b9=>{const _0x39e3c2=_0x5bc28d;_0x4d65b9==='RouterContainer'?_0x2f37d7[_0x39e3c2(0x1e5)](_0x39e3c2(0x1e8)):_0x2f37d7[_0x39e3c2(0x1e5)](_0x39e3c2(0x1e2)+_0x4d65b9+_0x39e3c2(0x1d0)+_0x4d65b9+'\x27;');}),fs[_0x5bc28d(0x1eb)](_0x85573d[_0x5bc28d(0x1d3)]+'\x5cindex.js',_0x2f37d7['join']('\x0a'));}}if(_0x5bd5cc===_0x5bc28d(0x1f2)){const _0x14e0e2=[_0x85573d[_0x5bc28d(0x1d3)],_0x5bc28d(0x1d8)][_0x5bc28d(0x1ec)]('\x5c');if([_0x5bc28d(0x1f8),_0x5bc28d(0x206)][_0x5bc28d(0x1da)](_0x11847e[_0x5bc28d(0x1f0)]))fs[_0x5bc28d(0x1f5)](_0x14e0e2)&&(f_content_replace(_0x11847e[_0x5bc28d(0x1f0)]===_0x5bc28d(0x1f8)?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x85573d[_0x5bc28d(0x1d3)]),fs[_0x5bc28d(0x1eb)](_0x85573d[_0x5bc28d(0x1d3)]+CLI_DVA_ROUTER_PATH,fs[_0x5bc28d(0x203)](_0x11847e[_0x5bc28d(0x1f0)]==='spa'?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)[_0x5bc28d(0x1d4)]()),fs[_0x5bc28d(0x1eb)](_0x85573d['path']+CLI_DVA_REGISTER_PATH,fs[_0x5bc28d(0x203)](_0x11847e['projectType']===_0x5bc28d(0x1f8)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)[_0x5bc28d(0x1d4)]()));else _0x11847e[_0x5bc28d(0x1f0)]==='multi'&&(fs[_0x5bc28d(0x1f5)](_0x14e0e2)&&(f_rm_rf(_0x14e0e2),fs['rmdirSync'](_0x14e0e2)));}else{if(_0x5bd5cc===_0x5bc28d(0x1fc))_0x11847e['projectType']==='micro-spa'&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x85573d[_0x5bc28d(0x1d3)]);else{if(_0x5bd5cc===_0x5bc28d(0x20a)){}}}if(_0x11847e[_0x5bc28d(0x1c8)]==='node_modules'){const _0x4f1c0c=_0x5bd5cc;fs[_0x5bc28d(0x1f5)](_0x1c6509+'\x5c'+_0x4f1c0c)?f_rm_rf(_0x1c6509+'\x5c'+_0x4f1c0c):fs['mkdirSync'](_0x1c6509+'\x5c'+_0x4f1c0c),f_file_copy(_0x85573d[_0x5bc28d(0x1d3)],_0x1c6509+'\x5c'+_0x4f1c0c),f_create_package_json(_0x1c6509+'\x5c'+_0x4f1c0c,_0x4f1c0c,_0x5bc28d(0x201)),f_update_project_package_json(_0x3c97a2,_0x4f1c0c,_0x5bc28d(0x201));}else{if(_0x11847e['installTarget']===_0x5bc28d(0x209)){const _0x29b53c=_0x5bc28d(0x1fc);fs[_0x5bc28d(0x1f5)](_0x1a670d+_0x29b53c)?f_rm_rf(_0x1a670d+_0x29b53c):fs[_0x5bc28d(0x1f7)](_0x1a670d+_0x29b53c),f_file_copy(_0x85573d[_0x5bc28d(0x1d3)],_0x1a670d+_0x29b53c);}}}),setTimeout(()=>{const _0x32604e=_0x410923;f_rm_rf(TEMPLATE_FOLDER),fs[_0x32604e(0x1cd)](TEMPLATE_FOLDER);const _0x2086e6=Date[_0x32604e(0x1e9)]();console[_0x32604e(0x1dd)](_0x32604e(0x1f9)+(_0x2086e6-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0xb3bdaf(0x1dd)](_0xb3bdaf(0x1e1));};
@@ -1 +1 @@
1
- const a18_0x651a3b=a18_0x133b;(function(_0x117520,_0x2dd7ac){const _0x24e5e9=a18_0x133b,_0x3a88ea=_0x117520();while(!![]){try{const _0x5901a6=parseInt(_0x24e5e9(0x121))/0x1*(-parseInt(_0x24e5e9(0x138))/0x2)+-parseInt(_0x24e5e9(0x10e))/0x3+parseInt(_0x24e5e9(0x129))/0x4*(-parseInt(_0x24e5e9(0xff))/0x5)+-parseInt(_0x24e5e9(0x13b))/0x6+parseInt(_0x24e5e9(0x13a))/0x7*(parseInt(_0x24e5e9(0xfe))/0x8)+-parseInt(_0x24e5e9(0x119))/0x9*(parseInt(_0x24e5e9(0x10d))/0xa)+parseInt(_0x24e5e9(0x11b))/0xb;if(_0x5901a6===_0x2dd7ac)break;else _0x3a88ea['push'](_0x3a88ea['shift']());}catch(_0x2a11c6){_0x3a88ea['push'](_0x3a88ea['shift']());}}}(a18_0x1f0a,0x7c140));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a18_0x651a3b(0x101));function a18_0x133b(_0x2b63bf,_0x3aba72){const _0x1f0aa0=a18_0x1f0a();return a18_0x133b=function(_0x133b0a,_0x2adf5b){_0x133b0a=_0x133b0a-0xfe;let _0x25875b=_0x1f0aa0[_0x133b0a];return _0x25875b;},a18_0x133b(_0x2b63bf,_0x3aba72);}exports['f_rm_rf']=function(_0xa9bd9d){const _0x5dd0e8=a18_0x651a3b;if(fs['existsSync'](_0xa9bd9d)){const _0x5427de=fs[_0x5dd0e8(0x114)](_0xa9bd9d);for(let _0x3cf83e=0x0;_0x3cf83e<_0x5427de['length'];_0x3cf83e++){const _0x10751b=_0x5427de[_0x3cf83e],_0x4b34ac=_0xa9bd9d+'/'+_0x10751b;fs[_0x5dd0e8(0x10a)](_0x4b34ac)[_0x5dd0e8(0x124)]()?(exports[_0x5dd0e8(0x116)](_0x4b34ac),fs[_0x5dd0e8(0x104)](_0x4b34ac)):fs['unlinkSync'](_0x4b34ac);}}},exports[a18_0x651a3b(0x118)]=function(_0x22518b=[]){const _0x1a68cf=a18_0x651a3b;return _0x22518b[_0x1a68cf(0x11d)](_0x49ae34=>{const _0x4b615b=_0x1a68cf,_0x5737e2=CLOUD_PROJECT[_0x49ae34[_0x4b615b(0x13f)]]||undefined,_0x4ec082=os['tmpdir']();return{'path':_0x4ec082+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x49ae34[_0x4b615b(0x13f)]+_0x4b615b(0x11a),'compress':_0x4ec082+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x49ae34['name']+_0x4b615b(0x131),'repository':GIT_HOST+'/api/v4/projects/'+_0x5737e2[_0x4b615b(0x10c)]+'/repository/archive.zip?private_token='+_0x5737e2[_0x4b615b(0x120)]+_0x4b615b(0x12c)};});},exports[a18_0x651a3b(0x139)]=function(_0x5c6fb5){const _0x5ae401=a18_0x651a3b;return fs[_0x5ae401(0x13e)](_0x5c6fb5+'\x5cjjb.config.json');},exports[a18_0x651a3b(0x133)]=function(_0x13149b){const _0x106d19=a18_0x651a3b;let _0x2b88fd={};try{_0x2b88fd=JSON[_0x106d19(0x12e)](fs['readFileSync'](_0x13149b+'\x5cjjb.config.json')['toString']());}catch(_0x470771){console[_0x106d19(0x110)](_0x106d19(0x12a)),process[_0x106d19(0x137)](0x0);}!(_0x106d19(0x126)in _0x2b88fd)&&(console[_0x106d19(0x110)](_0x106d19(0x140)),process[_0x106d19(0x137)](0x0));!(_0x106d19(0x11c)in _0x2b88fd)&&(console[_0x106d19(0x110)](_0x106d19(0x115)),process[_0x106d19(0x137)](0x0));!(_0x106d19(0x105)in _0x2b88fd)&&(console[_0x106d19(0x110)]('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process[_0x106d19(0x137)](0x0));typeof _0x2b88fd[_0x106d19(0x126)]!==_0x106d19(0x130)&&(console['log'](_0x106d19(0x106)),process[_0x106d19(0x137)](0x0));![_0x106d19(0x111),'spa',_0x106d19(0x10f),_0x106d19(0x11f)][_0x106d19(0x132)](_0x2b88fd[_0x106d19(0x126)])&&(console['log']('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process[_0x106d19(0x137)](0x0));typeof _0x2b88fd[_0x106d19(0x11c)]!==_0x106d19(0x130)&&(console['log'](_0x106d19(0x141)),process[_0x106d19(0x137)](0x0));![_0x106d19(0x136),'src'][_0x106d19(0x132)](_0x2b88fd[_0x106d19(0x11c)])&&(console['log'](_0x106d19(0x100)),process[_0x106d19(0x137)](0x0));!Array['isArray'](_0x2b88fd[_0x106d19(0x105)])&&(console['log'](_0x106d19(0x125)),process['exit'](0x0));_0x2b88fd['installResources'][_0x106d19(0x122)]===0x0&&(console[_0x106d19(0x110)](_0x106d19(0x143)),process[_0x106d19(0x137)](0x0));const _0x4c6f77=exports['f_resolve_install_resources'](_0x2b88fd[_0x106d19(0x105)]);return _0x4c6f77[_0x106d19(0x11d)](_0x3eac06=>_0x3eac06[_0x106d19(0x13f)])[_0x106d19(0x12d)](_0x288d37=>![_0x106d19(0x13c),_0x106d19(0x13d),'jjb-common-lib',_0x106d19(0x112),_0x106d19(0x128),_0x106d19(0x123)][_0x106d19(0x132)](_0x288d37))[_0x106d19(0x122)]!==0x0&&(console[_0x106d19(0x110)](_0x106d19(0x142)),process[_0x106d19(0x137)](0x0)),_0x2b88fd[_0x106d19(0x105)]=_0x4c6f77,_0x2b88fd;},exports[a18_0x651a3b(0x12f)]=function(_0x18514b,_0x28089a,_0x49e2fb){const _0x43873b=a18_0x651a3b;fs[_0x43873b(0x103)](_0x18514b+'\x5cpackage.json',_0x43873b(0x108)+_0x28089a+'\x22,\x22version\x22:\x22'+_0x49e2fb+'\x22,\x22main\x22:\x20\x22index.js\x22}');},exports[a18_0x651a3b(0x11e)]=function(_0x3228df=[]){const _0x4a980e=a18_0x651a3b,_0x36041a=[];return Array[_0x4a980e(0x134)](_0x3228df)&&_0x3228df[_0x4a980e(0x12b)](_0x50755c=>{const _0x3909a2=_0x4a980e;if(Array[_0x3909a2(0x134)](_0x50755c)){const [_0x34bb65,_0x32bb85=[]]=_0x50755c;_0x36041a[_0x3909a2(0x117)]({'name':_0x34bb65,'importList':_0x32bb85});}else _0x36041a[_0x3909a2(0x117)]({'name':_0x50755c,'importList':[]});}),_0x36041a;},exports[a18_0x651a3b(0x102)]=function(_0x3cb0e1,_0x53e97f,_0x42542c){const _0x4019ff=a18_0x651a3b,_0x571324=JSON[_0x4019ff(0x12e)](fs[_0x4019ff(0x113)](_0x3cb0e1)[_0x4019ff(0x135)]());_0x571324['dependencies'][_0x53e97f]=_0x42542c,fs['writeFileSync'](_0x3cb0e1,JSON['stringify'](_0x571324,null,0x2));},exports['f_file_copy']=function(_0x22df61,_0x111f3a){const _0x42b551=a18_0x651a3b;fs['readdirSync'](_0x22df61)[_0x42b551(0x12b)](_0x2b7a6b=>{const _0x5671aa=_0x42b551,_0x7c8c1d=_0x22df61+'\x5c'+_0x2b7a6b,_0x5e1615=_0x111f3a+'\x5c'+_0x2b7a6b;fs['statSync'](_0x7c8c1d)[_0x5671aa(0x124)]()?(fs[_0x5671aa(0x10b)](_0x5e1615),exports[_0x5671aa(0x107)](_0x7c8c1d,_0x5e1615)):fs['writeFileSync'](_0x5e1615,fs[_0x5671aa(0x113)](_0x7c8c1d)['toString']());});},exports[a18_0x651a3b(0x109)]=function(_0x3e8597=[],_0x4290fa){const _0x48c591=a18_0x651a3b;_0x3e8597[_0x48c591(0x12b)](_0x2404fb=>{const _0x1f2694=_0x48c591,_0x3cbbc2=_0x4290fa+_0x2404fb['path'];if(fs['existsSync'](_0x3cbbc2)){let _0x7a2807=fs[_0x1f2694(0x113)](_0x3cbbc2)['toString']();_0x2404fb[_0x1f2694(0x127)][_0x1f2694(0x12b)](_0x37887a=>{const _0x56dec3=_0x1f2694;_0x7a2807=_0x7a2807[_0x56dec3(0x127)](_0x37887a[0x0],_0x37887a[0x1]);}),fs[_0x1f2694(0x103)](_0x3cbbc2,_0x7a2807);}});};function a18_0x1f0a(){const _0x495837=['【Error】:[jjb.config.json.installTarget]类型是一个string。','【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>。','【Error】:[jjb.config.json.installResources]无资源。','378920DqOgVm','1538155IMdKtE','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','./config','f_update_project_package_json','writeFileSync','rmdirSync','installResources','【Error】:[jjb.config.json.projectType]类型是一个string。','f_file_copy','{\x22name\x22:\x22','f_content_replace','statSync','mkdirSync','projectId','1114220PwZfKR','1601352dNNZej','uniapp','log','multi','jjb-common-decorator','readFileSync','readdirSync','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','f_rm_rf','push','f_pull_git_repository','54xabzcj','.zip','28254105XflZtZ','installTarget','map','f_resolve_install_resources','micro-spa','token','9OmBXYN','length','vue-unisass-component','isDirectory','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','projectType','replace','react-admin-component','8Yxpqfq','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','forEach','&ref=master','filter','parse','f_create_package_json','string','_zip','includes','f_scan_jjb_config_json_rules','isArray','toString','node_modules','exit','93988yxhiiB','f_scan_jjb_config_json','56bOPLYF','1192362OHWTob','jjb-common','jjb-dva-runtime','existsSync','name','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。'];a18_0x1f0a=function(){return _0x495837;};return a18_0x1f0a();}
1
+ const a18_0x15085b=a18_0x3584;(function(_0x4531e6,_0x4aad4d){const _0x32d8a3=a18_0x3584,_0x1818da=_0x4531e6();while(!![]){try{const _0x5921ca=parseInt(_0x32d8a3(0x1fa))/0x1*(parseInt(_0x32d8a3(0x1be))/0x2)+-parseInt(_0x32d8a3(0x200))/0x3+parseInt(_0x32d8a3(0x1f5))/0x4*(parseInt(_0x32d8a3(0x1e5))/0x5)+parseInt(_0x32d8a3(0x1e2))/0x6*(-parseInt(_0x32d8a3(0x1e9))/0x7)+parseInt(_0x32d8a3(0x1ed))/0x8*(-parseInt(_0x32d8a3(0x1d2))/0x9)+parseInt(_0x32d8a3(0x208))/0xa*(-parseInt(_0x32d8a3(0x1c2))/0xb)+-parseInt(_0x32d8a3(0x1e4))/0xc*(-parseInt(_0x32d8a3(0x1c9))/0xd);if(_0x5921ca===_0x4aad4d)break;else _0x1818da['push'](_0x1818da['shift']());}catch(_0x3c8213){_0x1818da['push'](_0x1818da['shift']());}}}(a18_0x550b,0xe6253));function a18_0x550b(){const _0x2ad6ad=['17870lqwFZQ','f_scan_jjb_config_json_rules','parse','【Error】:[jjb.config.json.installTarget]类型是一个string。','2631646lOKNdL','node_modules','projectType','\x22,\x22main\x22:\x20\x22index.js\x22}','3080YpNiHJ','jjb-common','f_resolve_install_resources','src','exit','replace','f_scan_jjb_config_json','22333363wcdYbm','\x22,\x22version\x22:\x22','string','【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>。','unlinkSync','isArray','includes','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','.zip','30933hOxgrl','statSync','spa','forEach','push','f_update_project_package_json','path','f_rm_rf','tmpdir','react-admin-component','f_pull_git_repository','length','f_content_replace','{\x22name\x22:\x22','/api/v4/projects/','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','6ApSCVl','multi','12YKYBSx','374705LjFTNq','jjb-dva-runtime','installResources','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','4947852wIFnLF','uniapp','【Error】:[jjb.config.json.projectType]类型是一个string。','existsSync','696FQshDS','filter','f_file_copy','writeFileSync','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','installTarget','mkdirSync','8CsxsPj','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','_zip','stringify','isDirectory','1kgGePG','readdirSync','name','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','f_create_package_json','toString','2204298wNcsHJ','dependencies','\x5cjjb.config.json','jjb-common-decorator','readFileSync','map','vue-unisass-component','log'];a18_0x550b=function(){return _0x2ad6ad;};return a18_0x550b();}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require('./config');function a18_0x3584(_0x27c5f6,_0x38c97e){const _0x550b32=a18_0x550b();return a18_0x3584=function(_0x358449,_0x39dd0a){_0x358449=_0x358449-0x1be;let _0x433cc3=_0x550b32[_0x358449];return _0x433cc3;},a18_0x3584(_0x27c5f6,_0x38c97e);}exports[a18_0x15085b(0x1d9)]=function(_0x5c6ed7){const _0x5073a7=a18_0x15085b;if(fs[_0x5073a7(0x1ec)](_0x5c6ed7)){const _0x342ddd=fs[_0x5073a7(0x1fb)](_0x5c6ed7);for(let _0x562fd3=0x0;_0x562fd3<_0x342ddd[_0x5073a7(0x1dd)];_0x562fd3++){const _0x9f01a2=_0x342ddd[_0x562fd3],_0x49b1c4=_0x5c6ed7+'/'+_0x9f01a2;fs[_0x5073a7(0x1d3)](_0x49b1c4)[_0x5073a7(0x1f9)]()?(exports['f_rm_rf'](_0x49b1c4),fs['rmdirSync'](_0x49b1c4)):fs[_0x5073a7(0x1cd)](_0x49b1c4);}}},exports[a18_0x15085b(0x1dc)]=function(_0x2bbc59=[]){const _0x5aac7d=a18_0x15085b;return _0x2bbc59[_0x5aac7d(0x205)](_0x1d65f3=>{const _0x24d33d=_0x5aac7d,_0x120c9f=CLOUD_PROJECT[_0x1d65f3[_0x24d33d(0x1fc)]]||undefined,_0x532b68=os[_0x24d33d(0x1da)]();return{'path':_0x532b68+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x1d65f3[_0x24d33d(0x1fc)]+_0x24d33d(0x1d1),'compress':_0x532b68+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x1d65f3[_0x24d33d(0x1fc)]+_0x24d33d(0x1f7),'repository':GIT_HOST+_0x24d33d(0x1e0)+_0x120c9f['projectId']+'/repository/archive.zip?private_token='+_0x120c9f['token']+'&ref=master'};});},exports[a18_0x15085b(0x1c8)]=function(_0x13b373){const _0x39db71=a18_0x15085b;return fs[_0x39db71(0x1ec)](_0x13b373+_0x39db71(0x202));},exports[a18_0x15085b(0x209)]=function(_0x485821){const _0x2feefb=a18_0x15085b;let _0x166152={};try{_0x166152=JSON[_0x2feefb(0x20a)](fs[_0x2feefb(0x204)](_0x485821+_0x2feefb(0x202))['toString']());}catch(_0x106734){console['log'](_0x2feefb(0x1f2)),process['exit'](0x0);}!(_0x2feefb(0x1c0)in _0x166152)&&(console[_0x2feefb(0x207)](_0x2feefb(0x1f1)),process[_0x2feefb(0x1c6)](0x0));!('installTarget'in _0x166152)&&(console[_0x2feefb(0x207)](_0x2feefb(0x1e1)),process[_0x2feefb(0x1c6)](0x0));!(_0x2feefb(0x1e7)in _0x166152)&&(console[_0x2feefb(0x207)](_0x2feefb(0x1d0)),process[_0x2feefb(0x1c6)](0x0));typeof _0x166152[_0x2feefb(0x1c0)]!=='string'&&(console[_0x2feefb(0x207)](_0x2feefb(0x1eb)),process[_0x2feefb(0x1c6)](0x0));![_0x2feefb(0x1e3),_0x2feefb(0x1d4),_0x2feefb(0x1ea),'micro-spa'][_0x2feefb(0x1cf)](_0x166152[_0x2feefb(0x1c0)])&&(console['log'](_0x2feefb(0x1fd)),process[_0x2feefb(0x1c6)](0x0));typeof _0x166152[_0x2feefb(0x1f3)]!==_0x2feefb(0x1cb)&&(console[_0x2feefb(0x207)](_0x2feefb(0x20b)),process[_0x2feefb(0x1c6)](0x0));![_0x2feefb(0x1bf),_0x2feefb(0x1c5)][_0x2feefb(0x1cf)](_0x166152[_0x2feefb(0x1f3)])&&(console[_0x2feefb(0x207)](_0x2feefb(0x1e8)),process[_0x2feefb(0x1c6)](0x0));!Array[_0x2feefb(0x1ce)](_0x166152[_0x2feefb(0x1e7)])&&(console[_0x2feefb(0x207)](_0x2feefb(0x1f6)),process[_0x2feefb(0x1c6)](0x0));_0x166152['installResources'][_0x2feefb(0x1dd)]===0x0&&(console[_0x2feefb(0x207)]('【Error】:[jjb.config.json.installResources]无资源。'),process[_0x2feefb(0x1c6)](0x0));const _0x51edff=exports[_0x2feefb(0x1c4)](_0x166152[_0x2feefb(0x1e7)]);return _0x51edff[_0x2feefb(0x205)](_0x4f3097=>_0x4f3097[_0x2feefb(0x1fc)])[_0x2feefb(0x1ee)](_0x5916a9=>![_0x2feefb(0x1c3),_0x2feefb(0x1e6),'jjb-common-lib',_0x2feefb(0x203),_0x2feefb(0x1db),_0x2feefb(0x206)][_0x2feefb(0x1cf)](_0x5916a9))[_0x2feefb(0x1dd)]!==0x0&&(console[_0x2feefb(0x207)](_0x2feefb(0x1cc)),process['exit'](0x0)),_0x166152[_0x2feefb(0x1e7)]=_0x51edff,_0x166152;},exports[a18_0x15085b(0x1fe)]=function(_0x344c4d,_0x58c1ab,_0x46a773){const _0x238db1=a18_0x15085b;fs[_0x238db1(0x1f0)](_0x344c4d+'\x5cpackage.json',_0x238db1(0x1df)+_0x58c1ab+_0x238db1(0x1ca)+_0x46a773+_0x238db1(0x1c1));},exports['f_resolve_install_resources']=function(_0x55b69b=[]){const _0xff085e=[];return Array['isArray'](_0x55b69b)&&_0x55b69b['forEach'](_0x429813=>{const _0x34aacd=a18_0x3584;if(Array[_0x34aacd(0x1ce)](_0x429813)){const [_0x34c9e5,_0x21bfc5=[]]=_0x429813;_0xff085e[_0x34aacd(0x1d6)]({'name':_0x34c9e5,'importList':_0x21bfc5});}else _0xff085e[_0x34aacd(0x1d6)]({'name':_0x429813,'importList':[]});}),_0xff085e;},exports[a18_0x15085b(0x1d7)]=function(_0x5251ec,_0x4154b7,_0x258472){const _0x55aa6a=a18_0x15085b,_0x1ce5d7=JSON[_0x55aa6a(0x20a)](fs['readFileSync'](_0x5251ec)['toString']());_0x1ce5d7[_0x55aa6a(0x201)][_0x4154b7]=_0x258472,fs[_0x55aa6a(0x1f0)](_0x5251ec,JSON[_0x55aa6a(0x1f8)](_0x1ce5d7,null,0x2));},exports[a18_0x15085b(0x1ef)]=function(_0x1ae1e7,_0x2b04ae){const _0x895640=a18_0x15085b;fs[_0x895640(0x1fb)](_0x1ae1e7)[_0x895640(0x1d5)](_0x339536=>{const _0x9a7ce3=_0x895640,_0x4ace5e=_0x1ae1e7+'\x5c'+_0x339536,_0x58f714=_0x2b04ae+'\x5c'+_0x339536;fs[_0x9a7ce3(0x1d3)](_0x4ace5e)[_0x9a7ce3(0x1f9)]()?(fs[_0x9a7ce3(0x1f4)](_0x58f714),exports[_0x9a7ce3(0x1ef)](_0x4ace5e,_0x58f714)):fs[_0x9a7ce3(0x1f0)](_0x58f714,fs[_0x9a7ce3(0x204)](_0x4ace5e)['toString']());});},exports[a18_0x15085b(0x1de)]=function(_0x4bcc2a=[],_0x243bf4){const _0x5b2e7a=a18_0x15085b;_0x4bcc2a[_0x5b2e7a(0x1d5)](_0x110512=>{const _0x14c4ed=_0x5b2e7a,_0xd3aad5=_0x243bf4+_0x110512[_0x14c4ed(0x1d8)];if(fs[_0x14c4ed(0x1ec)](_0xd3aad5)){let _0x1b2317=fs[_0x14c4ed(0x204)](_0xd3aad5)[_0x14c4ed(0x1ff)]();_0x110512[_0x14c4ed(0x1c7)][_0x14c4ed(0x1d5)](_0x52f556=>{const _0x2a168c=_0x14c4ed;_0x1b2317=_0x1b2317[_0x2a168c(0x1c7)](_0x52f556[0x0],_0x52f556[0x1]);}),fs['writeFileSync'](_0xd3aad5,_0x1b2317);}});};
@@ -1 +1 @@
1
- const a19_0x425f97=a19_0xd861;(function(_0xb15bd5,_0x48da0c){const _0x53654a=a19_0xd861,_0x21f8ba=_0xb15bd5();while(!![]){try{const _0x2a32a6=-parseInt(_0x53654a(0x89))/0x1*(parseInt(_0x53654a(0x92))/0x2)+-parseInt(_0x53654a(0xa3))/0x3+-parseInt(_0x53654a(0x8c))/0x4+parseInt(_0x53654a(0x9a))/0x5+-parseInt(_0x53654a(0x9c))/0x6*(parseInt(_0x53654a(0x9e))/0x7)+parseInt(_0x53654a(0xa4))/0x8*(parseInt(_0x53654a(0xa7))/0x9)+parseInt(_0x53654a(0x9b))/0xa;if(_0x2a32a6===_0x48da0c)break;else _0x21f8ba['push'](_0x21f8ba['shift']());}catch(_0x412562){_0x21f8ba['push'](_0x21f8ba['shift']());}}}(a19_0x5c3a,0x559c1));const fs=require('fs'),path=require(a19_0x425f97(0xa5)),utils=require('./util.js');function a19_0x5c3a(){const _0x1ce391=['98Uedlty','region','DeepScanner','map','fileType','items','/application','forEach','2746725YbSMHf','8491040hHawiC','942stjIXz','toString','1967edkMmE','from','writeFileSync','{\x20path:\x20\x27','split','1286289BKmDMg','257168CbGZfV','path','parse','90CMZxiT','pathAdr','slice','join','routerPath','push','router','13613GhUoSm','file','length','917340QmuuPt','\x27,\x20component:\x20()\x20=>\x20import(\x27','./vessel/src','CreatePaths','readFileSync','concat'];a19_0x5c3a=function(){return _0x1ce391;};return a19_0x5c3a();}let projectPath='',vesselPath='',commandArr=[];const fromFileData={},applicationJson={};function a19_0xd861(_0x4b9bce,_0x334331){const _0x5c3a73=a19_0x5c3a();return a19_0xd861=function(_0xd86141,_0x4c6c25){_0xd86141=_0xd86141-0x87;let _0x755d62=_0x5c3a73[_0xd86141];return _0x755d62;},a19_0xd861(_0x4b9bce,_0x334331);}module['exports']=(_0xbf0f33,_0x3b5f66)=>{const _0x2912fb=a19_0x425f97;commandArr=_0xbf0f33[_0x2912fb(0xa2)](':'),projectPath=path['resolve']('./project'),vesselPath=path['resolve'](_0x2912fb(0x8e));let _0x358582=vesselPath;_0x3b5f66==='mp'&&(_0x358582=vesselPath+_0x2912fb(0x98),utils['CreatePaths'](vesselPath,['application']));const _0x22415b=commandArr[0x1],_0x383575=JSON[_0x2912fb(0xa6)](fs[_0x2912fb(0x90)](projectPath+'/'+_0x22415b+'/setting.json')[_0x2912fb(0x9d)]());TileItems(_0x383575[_0x2912fb(0x97)],()=>{const _0x2d862f=_0x2912fb;fromFileData[_0x2d862f(0x88)]['forEach'](_0x8d220b=>{const _0x49a290=_0x2d862f,_0x522f62=_0x8d220b[_0x49a290(0xa8)]['split'](_0x8d220b[_0x49a290(0x93)]),_0x58f78e=_0x522f62[0x1][_0x49a290(0xa2)]('/'),_0x33b5a0=_0x58f78e[0x1];!applicationJson[_0x33b5a0]&&(applicationJson[_0x33b5a0]={'routerConfig':[],'routerPath':[]});applicationJson[_0x33b5a0]['routerConfig'][_0x49a290(0x87)](_0x49a290(0xa1)+_0x8d220b['path']+_0x49a290(0x8d)+_0x8d220b[_0x49a290(0x8a)]+'\x27)\x20}'),applicationJson[_0x33b5a0][_0x49a290(0xab)][_0x49a290(0x87)](_0x8d220b[_0x49a290(0xa5)]);let _0x26505c=_0x58f78e[_0x49a290(0xaa)]('/');const _0x183be4=_0x26505c['split']('/');utils[_0x49a290(0x8f)](_0x358582,_0x183be4[_0x49a290(0xa9)](0x0,_0x183be4[_0x49a290(0x8b)]-0x1))['then'](()=>{const _0x4f4e44=_0x49a290,_0x534f73=fs[_0x4f4e44(0x90)](_0x8d220b[_0x4f4e44(0xa8)])['toString']();fs[_0x4f4e44(0xa0)](vesselPath+'/'+_0x26505c,_0x534f73);});});});};function TileItems(_0x3676a1,_0x5c3002){const _0x46e18f=a19_0x425f97;_0x3676a1[_0x46e18f(0x99)]((_0x4a60f0,_0x3c6dfc)=>{const _0x1036b8=_0x46e18f,_0x2cba59=_0x4a60f0[_0x1036b8(0x93)];_0x4a60f0[_0x1036b8(0x9f)]['forEach']((_0x71a3b7,_0x243639)=>{const _0x4577a0=_0x1036b8,_0x37395e=[];utils[_0x4577a0(0x94)](projectPath+'/'+_0x2cba59+'/'+_0x71a3b7[_0x4577a0(0x8a)],_0x37395e);const _0x38fa23=_0x37395e[_0x4577a0(0x95)](_0x588b24=>({'region':_0x2cba59,'pathAdr':_0x588b24,..._0x71a3b7}));!fromFileData[_0x71a3b7[_0x4577a0(0x96)]]?fromFileData[_0x71a3b7['fileType']]=_0x38fa23:fromFileData[_0x71a3b7[_0x4577a0(0x96)]]=fromFileData[_0x71a3b7[_0x4577a0(0x96)]][_0x4577a0(0x91)](_0x38fa23),_0x3c6dfc===_0x3676a1[_0x4577a0(0x8b)]-0x1&&_0x243639===_0x4a60f0['from']['length']-0x1&&_0x5c3002();});});}
1
+ const a19_0x3d8ce1=a19_0x18c3;(function(_0x1d7ecb,_0x32b92d){const _0x7634a5=a19_0x18c3,_0x4e0af3=_0x1d7ecb();while(!![]){try{const _0x79eafd=parseInt(_0x7634a5(0x180))/0x1+-parseInt(_0x7634a5(0x179))/0x2*(-parseInt(_0x7634a5(0x17f))/0x3)+-parseInt(_0x7634a5(0x175))/0x4*(-parseInt(_0x7634a5(0x16b))/0x5)+parseInt(_0x7634a5(0x178))/0x6+parseInt(_0x7634a5(0x16d))/0x7*(parseInt(_0x7634a5(0x183))/0x8)+-parseInt(_0x7634a5(0x165))/0x9+parseInt(_0x7634a5(0x164))/0xa*(-parseInt(_0x7634a5(0x16c))/0xb);if(_0x79eafd===_0x32b92d)break;else _0x4e0af3['push'](_0x4e0af3['shift']());}catch(_0x34016d){_0x4e0af3['push'](_0x4e0af3['shift']());}}}(a19_0x2ec7,0x44601));const fs=require('fs'),path=require(a19_0x3d8ce1(0x181)),utils=require('./util.js');let projectPath='',vesselPath='',commandArr=[];const fromFileData={},applicationJson={};function a19_0x18c3(_0x4d7238,_0x33b9fe){const _0x2ec7f1=a19_0x2ec7();return a19_0x18c3=function(_0x18c344,_0x5e3f6d){_0x18c344=_0x18c344-0x164;let _0x244e9f=_0x2ec7f1[_0x18c344];return _0x244e9f;},a19_0x18c3(_0x4d7238,_0x33b9fe);}function a19_0x2ec7(){const _0x2ec1e1=['15900Wgdviq','165CFtXnz','849695fLLafE','\x27,\x20component:\x20()\x20=>\x20import(\x27','DeepScanner','region','writeFileSync','forEach','\x27)\x20}','slice','204VUbdfb','push','from','1681470inxvwf','179966GOajLi','exports','length','CreatePaths','fileType','join','9LjuHxw','544009pkTdfC','path','then','8MwxLus','readFileSync','router','/application','470150BfblMq','3532302GwdtWc','resolve','concat','routerConfig','file','split'];a19_0x2ec7=function(){return _0x2ec1e1;};return a19_0x2ec7();}module[a19_0x3d8ce1(0x17a)]=(_0x85624e,_0x57045e)=>{const _0x5f1a14=a19_0x3d8ce1;commandArr=_0x85624e['split'](':'),projectPath=path[_0x5f1a14(0x166)]('./project'),vesselPath=path[_0x5f1a14(0x166)]('./vessel/src');let _0x2e74ac=vesselPath;_0x57045e==='mp'&&(_0x2e74ac=vesselPath+_0x5f1a14(0x186),utils['CreatePaths'](vesselPath,['application']));const _0x461567=commandArr[0x1],_0xeb8654=JSON['parse'](fs[_0x5f1a14(0x184)](projectPath+'/'+_0x461567+'/setting.json')['toString']());TileItems(_0xeb8654['items'],()=>{const _0x41eb48=_0x5f1a14;fromFileData[_0x41eb48(0x185)]['forEach'](_0x2bb778=>{const _0x4ca971=_0x41eb48,_0x263ce9=_0x2bb778['pathAdr'][_0x4ca971(0x16a)](_0x2bb778['region']),_0x116803=_0x263ce9[0x1]['split']('/'),_0x14aba9=_0x116803[0x1];!applicationJson[_0x14aba9]&&(applicationJson[_0x14aba9]={'routerConfig':[],'routerPath':[]});applicationJson[_0x14aba9][_0x4ca971(0x168)][_0x4ca971(0x176)]('{\x20path:\x20\x27'+_0x2bb778[_0x4ca971(0x181)]+_0x4ca971(0x16e)+_0x2bb778['file']+_0x4ca971(0x173)),applicationJson[_0x14aba9]['routerPath'][_0x4ca971(0x176)](_0x2bb778[_0x4ca971(0x181)]);let _0x5bbd63=_0x116803[_0x4ca971(0x17e)]('/');const _0x55ed55=_0x5bbd63[_0x4ca971(0x16a)]('/');utils[_0x4ca971(0x17c)](_0x2e74ac,_0x55ed55[_0x4ca971(0x174)](0x0,_0x55ed55[_0x4ca971(0x17b)]-0x1))[_0x4ca971(0x182)](()=>{const _0x138ad8=_0x4ca971,_0x139937=fs[_0x138ad8(0x184)](_0x2bb778['pathAdr'])['toString']();fs[_0x138ad8(0x171)](vesselPath+'/'+_0x5bbd63,_0x139937);});});});};function TileItems(_0x312bba,_0x5cc360){const _0x1728c5=a19_0x3d8ce1;_0x312bba[_0x1728c5(0x172)]((_0x4bcc20,_0x3b8572)=>{const _0x3c8f5a=_0x1728c5,_0x5bdf5a=_0x4bcc20[_0x3c8f5a(0x170)];_0x4bcc20[_0x3c8f5a(0x177)][_0x3c8f5a(0x172)]((_0x13b6dd,_0x5f3b0d)=>{const _0x904d85=_0x3c8f5a,_0xbc7ffb=[];utils[_0x904d85(0x16f)](projectPath+'/'+_0x5bdf5a+'/'+_0x13b6dd[_0x904d85(0x169)],_0xbc7ffb);const _0x25ca30=_0xbc7ffb['map'](_0x18be6c=>({'region':_0x5bdf5a,'pathAdr':_0x18be6c,..._0x13b6dd}));!fromFileData[_0x13b6dd[_0x904d85(0x17d)]]?fromFileData[_0x13b6dd['fileType']]=_0x25ca30:fromFileData[_0x13b6dd[_0x904d85(0x17d)]]=fromFileData[_0x13b6dd[_0x904d85(0x17d)]][_0x904d85(0x167)](_0x25ca30),_0x3b8572===_0x312bba[_0x904d85(0x17b)]-0x1&&_0x5f3b0d===_0x4bcc20['from'][_0x904d85(0x17b)]-0x1&&_0x5cc360();});});}
@@ -1 +1 @@
1
- 'use strict';const a20_0x236028=a20_0x5d0e;(function(_0x2cc263,_0x52f6bd){const _0x4926fa=a20_0x5d0e,_0x4c8e83=_0x2cc263();while(!![]){try{const _0x220e30=-parseInt(_0x4926fa(0x17f))/0x1+-parseInt(_0x4926fa(0x18d))/0x2+-parseInt(_0x4926fa(0x184))/0x3+parseInt(_0x4926fa(0x189))/0x4+parseInt(_0x4926fa(0x162))/0x5*(-parseInt(_0x4926fa(0x157))/0x6)+parseInt(_0x4926fa(0x16f))/0x7*(parseInt(_0x4926fa(0x15c))/0x8)+-parseInt(_0x4926fa(0x168))/0x9*(-parseInt(_0x4926fa(0x15a))/0xa);if(_0x220e30===_0x52f6bd)break;else _0x4c8e83['push'](_0x4c8e83['shift']());}catch(_0x4086e6){_0x4c8e83['push'](_0x4c8e83['shift']());}}}(a20_0x5dcf,0x9fc08));const fs=require('fs'),os=require('os'),path=require(a20_0x236028(0x18b)),utils=require(a20_0x236028(0x17c)),request=require(a20_0x236028(0x174)),compressing=require(a20_0x236028(0x17a)),GIT_TEMP_DIR=a20_0x236028(0x161),GIT_HOST=a20_0x236028(0x16b),CLOUD_PROJECT={'common':{'token':a20_0x236028(0x167),'projectId':0x117,'localName':a20_0x236028(0x18f)},'react-admin-component':{'token':a20_0x236028(0x169),'projectId':0x154,'localName':a20_0x236028(0x181)}};module[a20_0x236028(0x156)]=_0x522bfd=>{const _0x2c5070=a20_0x236028,_0x3c79a7=_0x522bfd,_0x59fb6e=path[_0x2c5070(0x178)]('./');try{if(fs['statSync'](_0x59fb6e+_0x2c5070(0x15e))){const _0x53c827=_0x59fb6e+_0x2c5070(0x15e),_0x5cc43e=CLOUD_PROJECT[_0x3c79a7]||undefined;if(_0x5cc43e){const _0x29e1a1=os[_0x2c5070(0x172)](),_0x2dd282=_0x29e1a1+('/'+GIT_TEMP_DIR+'/'+_0x3c79a7+'.zip'),_0x306397=_0x29e1a1+'/'+GIT_TEMP_DIR+_0x2c5070(0x183);utils[_0x2c5070(0x18a)](_0x29e1a1+'/'+GIT_TEMP_DIR,()=>{const _0x1959d4=_0x2c5070;fs[_0x1959d4(0x15d)](_0x29e1a1+'/'+GIT_TEMP_DIR);let _0x2a57f0=fs[_0x1959d4(0x17e)](_0x2dd282);request(GIT_HOST+_0x1959d4(0x16a)+_0x5cc43e[_0x1959d4(0x17b)]+'/repository/archive.zip?private_token='+_0x5cc43e[_0x1959d4(0x163)]+_0x1959d4(0x180))[_0x1959d4(0x16e)](_0x2a57f0)['on'](_0x1959d4(0x177),()=>{const _0x1a6551=_0x1959d4;fs[_0x1a6551(0x15d)](_0x306397),compressing[_0x1a6551(0x187)][_0x1a6551(0x15f)](_0x2dd282,_0x306397)['then'](()=>{setTimeout(()=>{const _0x377697=a20_0x5d0e,_0x412be7=fs[_0x377697(0x186)](_0x306397);_0x412be7[_0x377697(0x18e)](_0x1c7a48=>{const _0x24356c=_0x377697;if(_0x1c7a48['indexOf'](_0x24356c(0x160))!==-0x1){const _0x1f8639=_0x53c827+'\x5c'+_0x5cc43e[_0x24356c(0x15b)];utils['DeleteDirAllFile'](_0x1f8639,()=>{const _0x102fe0=_0x24356c;fs[_0x102fe0(0x15d)](_0x1f8639),utils[_0x102fe0(0x164)](_0x306397+_0x1c7a48,_0x1f8639),setTimeout(()=>{const _0x45fc44=_0x102fe0,_0xacefdd=fs['existsSync'](_0x53c827+'\x5c'+_0x45fc44(0x166));if(!_0xacefdd){const _0x171b6f=_0x53c827+'\x5c'+'common\x5ctools\x5cindex.js',_0x5bc821=_0x53c827+'\x5c'+_0x45fc44(0x192);let _0x47238c=fs[_0x45fc44(0x185)](_0x171b6f)[_0x45fc44(0x173)](),_0x33ec03=fs[_0x45fc44(0x185)](_0x5bc821)[_0x45fc44(0x173)]();_0x47238c=_0x47238c[_0x45fc44(0x171)](_0x45fc44(0x179),_0x45fc44(0x170)),_0x33ec03=_0x33ec03[_0x45fc44(0x171)](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x45fc44(0x17d)),fs[_0x45fc44(0x191)](_0x171b6f,_0x47238c),fs[_0x45fc44(0x191)](_0x5bc821,_0x33ec03),fs[_0x45fc44(0x191)](_0x53c827+_0x45fc44(0x158),fs['readFileSync'](__dirname+'\x5ccli.dva.router.spa.txt')[_0x45fc44(0x173)]()),fs[_0x45fc44(0x191)](_0x53c827+_0x45fc44(0x188),fs[_0x45fc44(0x185)](__dirname+_0x45fc44(0x18c))[_0x45fc44(0x173)]());}else fs[_0x45fc44(0x190)](_0x53c827+'\x5c'+_0x45fc44(0x165),_0x2dc1df=>{const _0x11387e=_0x45fc44;_0x2dc1df&&(fs[_0x11387e(0x186)](_0x53c827+'\x5c'+_0x11387e(0x16c))[_0x11387e(0x18e)](_0x4c87d0=>{const _0xe5a9c7=_0x11387e;fs[_0xe5a9c7(0x16d)](_0x53c827+'\x5c'+_0xe5a9c7(0x176)+_0x4c87d0);}),fs[_0x11387e(0x175)](_0x53c827+'\x5c'+_0x11387e(0x16c)));});},0x3e8);});}}),console['log'](_0x3c79a7+_0x377697(0x159));},0x7d0);});});});}else console[_0x2c5070(0x182)]('【Error】:\x20未获取到项目\x20'+_0x3c79a7);}}catch(_0x24ab9f){console[_0x2c5070(0x182)]('【Error】:\x20当前目录不存在src子目录,无法完成pull操作。');}};function a20_0x5d0e(_0x367d85,_0x37e94b){const _0x5dcfe0=a20_0x5dcf();return a20_0x5d0e=function(_0x5d0e97,_0x1a66d9){_0x5d0e97=_0x5d0e97-0x156;let _0x5a950e=_0x5dcfe0[_0x5d0e97];return _0x5a950e;},a20_0x5d0e(_0x367d85,_0x37e94b);}function a20_0x5dcf(){const _0x4cc8c0=['exports','282OaxRgR','\x5ccommon\x5cdva\x5cautomatic\x5crouter.js','-文件下载完毕','12640vtwoRr','localName','1197208SJcnkd','mkdirSync','\x5csrc','uncompress','-master-','jjbAssembly','57565fmagUH','token','CopyFolder','common\x5cdva\x5cautomatic\x5cindex.js','application','G4HJRsHr9D7Ssmixegw2','23076gRmWXR','FT3pKzxpRynFkmddJ9Bs','/api/v4/projects/','http://192.168.1.242:10985','common\x5cdva\x5cautomatic','unlinkSync','pipe','7YUpZgc','return\x20process.env;','replace','tmpdir','toString','request','rmdirSync','common\x5cdva\x5cautomatic\x5c','close','resolve','return\x20__planA();','compressing','projectId','./util','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','createWriteStream','19091cwBDUZ','&ref=master','components','error','/unzip/','3305556UHZhKa','readFileSync','readdirSync','zip','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','384176xVvilj','DeleteDirAllFile','path','\x5ccli.dva.register.spa.txt','2340386VwqFUp','forEach','common','exists','writeFileSync','common\x5cwebsite\x5cindex.js'];a20_0x5dcf=function(){return _0x4cc8c0;};return a20_0x5dcf();}
1
+ 'use strict';const a20_0x427724=a20_0x1163;function a20_0x31f5(){const _0x14e170=['50WslhBe','tmpdir','.zip','common\x5cdva\x5cautomatic\x5cindex.js','return\x20__planA();','/api/v4/projects/','4CbDVyC','1675908FdgdvI','96659OxCRPQ','existsSync','【Error】:\x20未获取到项目\x20','resolve','&ref=master','7878906oiGqtl','common\x5cwebsite\x5cindex.js','readdirSync','return\x20process.env;','exports','replace','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','-文件下载完毕','unlinkSync','\x5csrc','5yMLCYO','jjbAssembly','projectId','writeFileSync','pipe','3593313lilAGw','FT3pKzxpRynFkmddJ9Bs','DeleteDirAllFile','forEach','token','common\x5cdva\x5cautomatic','components','6248328nUKvLu','common','common\x5ctools\x5cindex.js','432404popbUZ','common\x5cdva\x5cautomatic\x5c','error','G4HJRsHr9D7Ssmixegw2','mkdirSync','compressing','exists','statSync','7560858kpWGwC','uncompress','toString','zip','readFileSync','\x5ccommon\x5cdva\x5cautomatic\x5crouter.js','/repository/archive.zip?private_token=','createWriteStream','rmdirSync'];a20_0x31f5=function(){return _0x14e170;};return a20_0x31f5();}(function(_0x4d45c9,_0x449f6f){const _0xba5114=a20_0x1163,_0x2d9693=_0x4d45c9();while(!![]){try{const _0x4b6023=-parseInt(_0xba5114(0x212))/0x1*(-parseInt(_0xba5114(0x210))/0x2)+-parseInt(_0xba5114(0x211))/0x3+-parseInt(_0xba5114(0x1f9))/0x4+-parseInt(_0xba5114(0x1ea))/0x5*(-parseInt(_0xba5114(0x201))/0x6)+parseInt(_0xba5114(0x217))/0x7+parseInt(_0xba5114(0x1f6))/0x8+-parseInt(_0xba5114(0x1ef))/0x9*(parseInt(_0xba5114(0x20a))/0xa);if(_0x4b6023===_0x449f6f)break;else _0x2d9693['push'](_0x2d9693['shift']());}catch(_0x520491){_0x2d9693['push'](_0x2d9693['shift']());}}}(a20_0x31f5,0xaa2ce));const fs=require('fs'),os=require('os'),path=require('path'),utils=require('./util'),request=require('request'),compressing=require(a20_0x427724(0x1fe)),GIT_TEMP_DIR=a20_0x427724(0x1eb),GIT_HOST='http://192.168.1.242:10985',CLOUD_PROJECT={'common':{'token':a20_0x427724(0x1fc),'projectId':0x117,'localName':a20_0x427724(0x1f7)},'react-admin-component':{'token':a20_0x427724(0x1f0),'projectId':0x154,'localName':a20_0x427724(0x1f5)}};function a20_0x1163(_0x56a543,_0x124c3d){const _0x31f5d6=a20_0x31f5();return a20_0x1163=function(_0x11635a,_0x139208){_0x11635a=_0x11635a-0x1e4;let _0x19e0b1=_0x31f5d6[_0x11635a];return _0x19e0b1;},a20_0x1163(_0x56a543,_0x124c3d);}module[a20_0x427724(0x1e4)]=_0xa21a18=>{const _0x5cd921=a20_0x427724,_0x7a96bc=_0xa21a18,_0x2ba095=path[_0x5cd921(0x215)]('./');try{if(fs[_0x5cd921(0x200)](_0x2ba095+_0x5cd921(0x1e9))){const _0x34cf81=_0x2ba095+_0x5cd921(0x1e9),_0x21deaa=CLOUD_PROJECT[_0x7a96bc]||undefined;if(_0x21deaa){const _0x2824aa=os[_0x5cd921(0x20b)](),_0x163cd6=_0x2824aa+('/'+GIT_TEMP_DIR+'/'+_0x7a96bc+_0x5cd921(0x20c)),_0x9b55eb=_0x2824aa+'/'+GIT_TEMP_DIR+'/unzip/';utils[_0x5cd921(0x1f1)](_0x2824aa+'/'+GIT_TEMP_DIR,()=>{const _0x16e548=_0x5cd921;fs[_0x16e548(0x1fd)](_0x2824aa+'/'+GIT_TEMP_DIR);let _0x531b6a=fs[_0x16e548(0x208)](_0x163cd6);request(GIT_HOST+_0x16e548(0x20f)+_0x21deaa[_0x16e548(0x1ec)]+_0x16e548(0x207)+_0x21deaa[_0x16e548(0x1f3)]+_0x16e548(0x216))[_0x16e548(0x1ee)](_0x531b6a)['on']('close',()=>{const _0x9852bd=_0x16e548;fs[_0x9852bd(0x1fd)](_0x9b55eb),compressing[_0x9852bd(0x204)][_0x9852bd(0x202)](_0x163cd6,_0x9b55eb)['then'](()=>{setTimeout(()=>{const _0x5ca598=a20_0x1163,_0x10c6f8=fs['readdirSync'](_0x9b55eb);_0x10c6f8[_0x5ca598(0x1f2)](_0x5b479c=>{const _0x3f0644=_0x5ca598;if(_0x5b479c['indexOf']('-master-')!==-0x1){const _0x2a8896=_0x34cf81+'\x5c'+_0x21deaa['localName'];utils[_0x3f0644(0x1f1)](_0x2a8896,()=>{fs['mkdirSync'](_0x2a8896),utils['CopyFolder'](_0x9b55eb+_0x5b479c,_0x2a8896),setTimeout(()=>{const _0x31450d=a20_0x1163,_0x4cd704=fs[_0x31450d(0x213)](_0x34cf81+'\x5c'+'application');if(!_0x4cd704){const _0x5c3072=_0x34cf81+'\x5c'+_0x31450d(0x1f8),_0x1f479f=_0x34cf81+'\x5c'+_0x31450d(0x218);let _0x2d92c9=fs[_0x31450d(0x205)](_0x5c3072)[_0x31450d(0x203)](),_0x1afbde=fs[_0x31450d(0x205)](_0x1f479f)[_0x31450d(0x203)]();_0x2d92c9=_0x2d92c9[_0x31450d(0x1e5)](_0x31450d(0x20e),_0x31450d(0x21a)),_0x1afbde=_0x1afbde['replace'](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,'const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;'),fs['writeFileSync'](_0x5c3072,_0x2d92c9),fs[_0x31450d(0x1ed)](_0x1f479f,_0x1afbde),fs[_0x31450d(0x1ed)](_0x34cf81+_0x31450d(0x206),fs[_0x31450d(0x205)](__dirname+'\x5ccli.dva.router.spa.txt')[_0x31450d(0x203)]()),fs[_0x31450d(0x1ed)](_0x34cf81+_0x31450d(0x1e6),fs[_0x31450d(0x205)](__dirname+'\x5ccli.dva.register.spa.txt')[_0x31450d(0x203)]());}else fs[_0x31450d(0x1ff)](_0x34cf81+'\x5c'+_0x31450d(0x20d),_0x3bb961=>{const _0x360e13=_0x31450d;_0x3bb961&&(fs[_0x360e13(0x219)](_0x34cf81+'\x5c'+_0x360e13(0x1f4))[_0x360e13(0x1f2)](_0x5bf07e=>{const _0x542cd8=_0x360e13;fs[_0x542cd8(0x1e8)](_0x34cf81+'\x5c'+_0x542cd8(0x1fa)+_0x5bf07e);}),fs[_0x360e13(0x209)](_0x34cf81+'\x5c'+_0x360e13(0x1f4)));});},0x3e8);});}}),console['log'](_0x7a96bc+_0x5ca598(0x1e7));},0x7d0);});});});}else console[_0x5cd921(0x1fb)](_0x5cd921(0x214)+_0x7a96bc);}}catch(_0x3acaec){console['error']('【Error】:\x20当前目录不存在src子目录,无法完成pull操作。');}};
@@ -1 +1 @@
1
- 'use strict';const a21_0x2310c7=a21_0x56ae;(function(_0x4a8261,_0x22d6c7){const _0x1c77db=a21_0x56ae,_0x20e50b=_0x4a8261();while(!![]){try{const _0x331851=parseInt(_0x1c77db(0xc7))/0x1*(-parseInt(_0x1c77db(0x118))/0x2)+-parseInt(_0x1c77db(0x116))/0x3+parseInt(_0x1c77db(0xce))/0x4+-parseInt(_0x1c77db(0xc2))/0x5*(parseInt(_0x1c77db(0xd0))/0x6)+-parseInt(_0x1c77db(0xea))/0x7+parseInt(_0x1c77db(0xdc))/0x8*(-parseInt(_0x1c77db(0xe0))/0x9)+-parseInt(_0x1c77db(0xcb))/0xa*(-parseInt(_0x1c77db(0xf0))/0xb);if(_0x331851===_0x22d6c7)break;else _0x20e50b['push'](_0x20e50b['shift']());}catch(_0x226237){_0x20e50b['push'](_0x20e50b['shift']());}}}(a21_0x6878,0xb3e2b));function a21_0x56ae(_0x15296d,_0x100ede){const _0x687811=a21_0x6878();return a21_0x56ae=function(_0x56aebd,_0x13355f){_0x56aebd=_0x56aebd-0xbd;let _0x24f610=_0x687811[_0x56aebd];return _0x24f610;},a21_0x56ae(_0x15296d,_0x100ede);}const fs=require('fs'),os=require('os'),path=require(a21_0x2310c7(0xfd)),utils=require(a21_0x2310c7(0xd8)),request=require(a21_0x2310c7(0xef)),compressing=require(a21_0x2310c7(0xfe)),GIT_HOST=a21_0x2310c7(0xf1),GIT_TEMP_DIR=a21_0x2310c7(0xf8),CLOUD_PROJECT={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117,'localName':a21_0x2310c7(0x10f)},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154,'localName':a21_0x2310c7(0x106)}},COMMON_CONTENT_NOR_REPLACE=[{'path':a21_0x2310c7(0xee),'replace':[[a21_0x2310c7(0x106),'jjb-react-admin-component']]},{'path':a21_0x2310c7(0x117),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a21_0x2310c7(0xc0)],[a21_0x2310c7(0x106),a21_0x2310c7(0xf9)]]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a21_0x2310c7(0xee),'replace':[[a21_0x2310c7(0xbd),'return\x20process.env;']]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':'\x5ctools\x5cindex.js','replace':[[a21_0x2310c7(0xbd),a21_0x2310c7(0xc6)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':a21_0x2310c7(0x111),'replace':[['common/http',a21_0x2310c7(0xdb)],[a21_0x2310c7(0xe7),a21_0x2310c7(0x114)],[a21_0x2310c7(0xed),a21_0x2310c7(0x10a)]]},{'path':'\x5cRejectText\x5cindex.js','replace':[['common/color',a21_0x2310c7(0x100)]]},{'path':a21_0x2310c7(0xdf),'replace':[[a21_0x2310c7(0xed),a21_0x2310c7(0x10a)]]},{'path':a21_0x2310c7(0x107),'replace':[[a21_0x2310c7(0xf2),'jjb-common/http'],['common/tools','jjb-common/tools']]},{'path':'\x5cImageCropper\x5cindex.js','replace':[[a21_0x2310c7(0xf2),a21_0x2310c7(0xdb)],[a21_0x2310c7(0xed),a21_0x2310c7(0x10a)]]},{'path':a21_0x2310c7(0xc1),'replace':[[a21_0x2310c7(0xf2),'jjb-common/http'],[a21_0x2310c7(0xed),a21_0x2310c7(0x10a)]]},{'path':a21_0x2310c7(0x10d),'replace':[[a21_0x2310c7(0xbe),a21_0x2310c7(0x100)]]},{'path':a21_0x2310c7(0xe1),'replace':[[a21_0x2310c7(0xed),a21_0x2310c7(0x10a)]]},{'path':'\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','replace':[[a21_0x2310c7(0xcf),'jjb-common/website'],[a21_0x2310c7(0xed),a21_0x2310c7(0x10a)]]}];function uid(){return Math['random']()['toString']()['substr'](0x2);}module[a21_0x2310c7(0xbf)]=_0x4fe2e2=>{const _0x29b7de=a21_0x2310c7,_0x278a9c=path[_0x29b7de(0xcc)]('./'),_0x22fb5b='jjb-'+_0x4fe2e2,_0xbad71e=_0x29b7de(0xe3),_0x478ac4=_0x278a9c+_0x29b7de(0xd9),_0x253d8e=_0x29b7de(0xeb)+uid(),_0x9962fb=__dirname+'\x5c'+_0x253d8e,_0xef18bc=_0x278a9c+'\x5cpackage.json',_0x428245=_0x278a9c+_0x29b7de(0x101)+_0x4fe2e2;try{if(fs[_0x29b7de(0x10c)](_0x478ac4)){const _0x41e820=CLOUD_PROJECT[_0x4fe2e2]||undefined;if(_0x41e820){const _0x4f3352=os[_0x29b7de(0x119)](),_0x59ccf9=_0x4f3352+'/'+GIT_TEMP_DIR+'/'+_0x4fe2e2+'.zip',_0x228030=_0x4f3352+'/'+GIT_TEMP_DIR+_0x29b7de(0xd2);utils[_0x29b7de(0xf5)](_0x4f3352+'/'+GIT_TEMP_DIR,()=>{const _0x3eca60=_0x29b7de;fs[_0x3eca60(0xde)](_0x4f3352+'/'+GIT_TEMP_DIR);const _0x29da1e=fs['createWriteStream'](_0x59ccf9);request(GIT_HOST+'/api/v4/projects/'+_0x41e820[_0x3eca60(0xe4)]+_0x3eca60(0xd7)+_0x41e820[_0x3eca60(0xd5)]+_0x3eca60(0xd4))[_0x3eca60(0x10e)](_0x29da1e)['on']('close',()=>{const _0x5c8978=_0x3eca60;fs[_0x5c8978(0xde)](_0x228030),compressing[_0x5c8978(0xc3)][_0x5c8978(0xda)](_0x59ccf9,_0x228030)[_0x5c8978(0xc4)](()=>{setTimeout(()=>{const _0x37fd63=a21_0x56ae;fs[_0x37fd63(0xc9)](_0x228030)[_0x37fd63(0xf4)](_0x1e986d=>{const _0x51c57a=_0x37fd63;_0x1e986d[_0x51c57a(0x11a)](_0x51c57a(0xf7))!==-0x1&&utils[_0x51c57a(0xf5)](_0x478ac4+'\x5c'+_0x41e820[_0x51c57a(0x115)],()=>{const _0x321d57=_0x51c57a;fs['mkdirSync'](_0x9962fb),utils[_0x321d57(0xe6)](_0x228030+_0x1e986d,_0x9962fb),setTimeout(()=>{const _0x578679=_0x321d57;if(_0x4fe2e2==='common'){const _0x6142b9=fs[_0x578679(0x10c)](_0x478ac4+_0x578679(0xec));if(_0x6142b9)rm_rf(_0x9962fb+_0x578679(0xcd)),fs['rmdirSync'](_0x9962fb+_0x578679(0xcd));else{if(get_project_type(_0xef18bc)===_0x578679(0xff))content_replace(COMMON_CONTENT_SPA_REPLACE,_0x9962fb),fs[_0x578679(0xe2)](_0x9962fb+'\x5cdva\x5cautomatic\x5crouter.js',fs[_0x578679(0xca)](__dirname+'\x5ccli.dva.router.spa.txt')[_0x578679(0xd3)]()),fs['writeFileSync'](_0x9962fb+_0x578679(0xd6),fs[_0x578679(0xca)](__dirname+_0x578679(0x103))[_0x578679(0xd3)]());else get_project_type(_0xef18bc)===_0x578679(0xe9)&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x9962fb),fs[_0x578679(0xe2)](_0x9962fb+_0x578679(0xfa),fs[_0x578679(0xca)](__dirname+_0x578679(0x113))[_0x578679(0xd3)]()),fs[_0x578679(0xe2)](_0x9962fb+'\x5cdva\x5cautomatic\x5cregister.js',fs[_0x578679(0xca)](__dirname+_0x578679(0xf6))[_0x578679(0xd3)]()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x9962fb);}_0x4fe2e2===_0x578679(0xc8)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x9962fb),rm_rf(_0x9962fb+_0x578679(0x108)),fs['existsSync'](_0x9962fb+_0x578679(0x108))&&fs['rmdirSync'](_0x9962fb+_0x578679(0x108)),fs[_0x578679(0x10c)](_0x9962fb+_0x578679(0x109))&&fs[_0x578679(0x112)](_0x9962fb+_0x578679(0x109)),!fs[_0x578679(0x10c)](_0x428245)?fs[_0x578679(0xde)](_0x428245):rm_rf(_0x428245),utils[_0x578679(0xe6)](_0x9962fb,_0x428245,()=>{const _0x3992fe=_0x578679;rm_rf(_0x9962fb),fs[_0x3992fe(0xfb)](_0x9962fb),create_package_json(_0x428245,_0x22fb5b,_0xbad71e),update_project_package_json(_0xef18bc,_0x22fb5b,_0xbad71e),console['log'](_0x3992fe(0x105)+_0x22fb5b+'\x20v'+_0xbad71e);});},0x3e8);});});},0x7d0);});});});}else console['error'](_0x29b7de(0x110)+_0x4fe2e2);}}catch(_0x1ce4cf){console['error'](_0x29b7de(0xc5));}};function rm_rf(_0x5b71c3){const _0x304e94=a21_0x2310c7;if(fs['existsSync'](_0x5b71c3)){const _0x4b940a=fs[_0x304e94(0xc9)](_0x5b71c3);for(let _0xfea581=0x0;_0xfea581<_0x4b940a[_0x304e94(0x102)];_0xfea581++){const _0x24d2da=_0x4b940a[_0xfea581],_0x124308=_0x5b71c3+'/'+_0x24d2da;fs[_0x304e94(0xe8)](_0x124308)['isDirectory']()?(rm_rf(_0x124308),fs['rmdirSync'](_0x124308)):fs[_0x304e94(0x112)](_0x124308);}}}function a21_0x6878(){const _0x42555a=['stringify','forEach','DeleteDirAllFile','\x5ccli.dva.register.saas.txt','-master-','jjbAssembly','jjb-react-admin-component','\x5cdva\x5cautomatic\x5crouter.js','rmdirSync','parse','path','compressing','spa','jjb-common/color','\x5cnode_modules\x5cjjb-','length','\x5ccli.dva.register.spa.txt','dependencies','【已安装】:','components','\x5cFileUploader\x5cindex.js','\x5c.idea','\x5c.gitignore','jjb-common/tools','\x5cpackage.json','existsSync','\x5cPageHeaderBar\x5cindex.js','pipe','common','【Error】:\x20未获取到项目\x20','\x5cEditor\x5cindex.js','unlinkSync','\x5ccli.dva.router.saas.txt','jjb-common/crypto','localName','1920780roPbFB','\x5cwebsite\x5cindex.js','120652CSISUJ','tmpdir','indexOf','return\x20__planA();','common/color','exports','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','\x5cImageUploader\x5cindex.js','185tXucPB','zip','then','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','return\x20process.env.app;','1Lcxqao','react-admin-component','readdirSync','readFileSync','490pDChXT','resolve','\x5cdva\x5cautomatic','1907052WSlAba','common/website','138594JtMvmT','\x22,\x22main\x22:\x20\x22index.js\x22}','/unzip/','toString','&ref=master','token','\x5cdva\x5cautomatic\x5cregister.js','/repository/archive.zip?private_token=','./util','\x5csrc','uncompress','jjb-common/http','5933496lXCOgp','replace','mkdirSync','\x5cRouterMenu\x5cindex.js','9FXSUAr','\x5cRouterContainer\x5cindex.js','writeFileSync','1.0.0','projectId','projectType','CopyFolder','common/crypto','statSync','micro-spa','9264997BpdrmM','template_','\x5capplication','common/tools','\x5ctools\x5cindex.js','request','871145UnfAws','http://192.168.1.242:10985','common/http'];a21_0x6878=function(){return _0x42555a;};return a21_0x6878();}function create_package_json(_0x588e83,_0x29efd8,_0x4df9b1){const _0x42c583=a21_0x2310c7;fs[_0x42c583(0xe2)](_0x588e83+_0x42c583(0x10b),'{\x22name\x22:\x22'+_0x29efd8+'\x22,\x22version\x22:\x22'+_0x4df9b1+_0x42c583(0xd1));}function get_project_type(_0x1c35f0){const _0x1411db=a21_0x2310c7,_0x2fc560=JSON['parse'](fs[_0x1411db(0xca)](_0x1c35f0)[_0x1411db(0xd3)]());return _0x2fc560[_0x1411db(0xe5)];}function update_project_package_json(_0x121856,_0xa00c92,_0x5a4f72){const _0x553788=a21_0x2310c7,_0x1d30ab=JSON[_0x553788(0xfc)](fs[_0x553788(0xca)](_0x121856)[_0x553788(0xd3)]());_0x1d30ab[_0x553788(0x104)][_0xa00c92]=_0x5a4f72,fs['writeFileSync'](_0x121856,JSON[_0x553788(0xf3)](_0x1d30ab,null,0x2));}function content_replace(_0x4a31a8=[],_0x1309dc){const _0x307ee3=a21_0x2310c7;_0x4a31a8[_0x307ee3(0xf4)](_0x137da6=>{const _0x545440=_0x307ee3,_0x55512c=_0x1309dc+_0x137da6[_0x545440(0xfd)];if(fs[_0x545440(0x10c)](_0x55512c)){let _0x1a54b3=fs['readFileSync'](_0x55512c)[_0x545440(0xd3)]();_0x137da6[_0x545440(0xdd)]['forEach'](_0x17e06f=>{const _0x5562b9=_0x545440;_0x1a54b3=_0x1a54b3[_0x5562b9(0xdd)](_0x17e06f[0x0],_0x17e06f[0x1]);}),fs['writeFileSync'](_0x55512c,_0x1a54b3);}});}
1
+ 'use strict';const a21_0x42e46b=a21_0x5dd6;(function(_0x42ed7b,_0xbb5305){const _0x1914a2=a21_0x5dd6,_0x1ffcfd=_0x42ed7b();while(!![]){try{const _0x428d5f=parseInt(_0x1914a2(0x22d))/0x1*(parseInt(_0x1914a2(0x1fc))/0x2)+-parseInt(_0x1914a2(0x222))/0x3*(parseInt(_0x1914a2(0x205))/0x4)+-parseInt(_0x1914a2(0x233))/0x5+-parseInt(_0x1914a2(0x23a))/0x6+-parseInt(_0x1914a2(0x232))/0x7+parseInt(_0x1914a2(0x200))/0x8+-parseInt(_0x1914a2(0x20e))/0x9*(-parseInt(_0x1914a2(0x22f))/0xa);if(_0x428d5f===_0xbb5305)break;else _0x1ffcfd['push'](_0x1ffcfd['shift']());}catch(_0x47685b){_0x1ffcfd['push'](_0x1ffcfd['shift']());}}}(a21_0x1a20,0x36bc5));function a21_0x1a20(){const _0x3a5eb3=['toString','request','\x5cdva\x5cautomatic','random','【Error】:\x20未获取到项目\x20','148690lIoGLM','unlinkSync','forEach','substr','1440048pidYkR','\x5ccli.dva.router.saas.txt','statSync','close','dependencies','92RBOIJM','compressing','common/website','\x22,\x22version\x22:\x22','common/color','【已安装】:','\x5cpackage.json','exports','stringify','9mulIGD','common/http','.zip','readdirSync','\x5cPageHeaderBar\x5cindex.js','jjb-common/color','then','micro-spa','existsSync','length','/repository/archive.zip?private_token=','resolve','\x5cEditor\x5cindex.js','mkdirSync','replace','CopyFolder','readFileSync','\x5ccli.dva.register.saas.txt','spa','FT3pKzxpRynFkmddJ9Bs','33795IEccaZ','common/tools','error','parse','return\x20__planA();','\x5cdva\x5cautomatic\x5crouter.js','jjb-common/http','DeleteDirAllFile','createWriteStream','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','/unzip/','1BGMSMJ','components','8920770WkdmUW','uncompress','\x5cRouterMenu\x5cindex.js','528822GsDjhj','1352925CCQWbz','projectType','return\x20process.env;','isDirectory','http://192.168.1.242:10985','\x5cnode_modules\x5cjjb-','react-admin-component','1902030aFoqlS','path','common/crypto','jjb-common/tools','jjb-common/website','\x22,\x22main\x22:\x20\x22index.js\x22}','\x5ctools\x5cindex.js','return\x20process.env.app;','jjb-react-admin-component','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','template_','rmdirSync','jjbAssembly','jjb-common/crypto','./util','\x5ccli.dva.register.spa.txt','\x5c.gitignore','common','/api/v4/projects/','log','writeFileSync','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','\x5cdva\x5cautomatic\x5cregister.js','\x5cRouterContainer\x5cindex.js'];a21_0x1a20=function(){return _0x3a5eb3;};return a21_0x1a20();}const fs=require('fs'),os=require('os'),path=require(a21_0x42e46b(0x23b)),utils=require(a21_0x42e46b(0x1ed)),request=require(a21_0x42e46b(0x1f8)),compressing=require(a21_0x42e46b(0x206)),GIT_HOST=a21_0x42e46b(0x237),GIT_TEMP_DIR=a21_0x42e46b(0x246),CLOUD_PROJECT={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117,'localName':'common'},'react-admin-component':{'token':a21_0x42e46b(0x221),'projectId':0x154,'localName':a21_0x42e46b(0x22e)}},COMMON_CONTENT_NOR_REPLACE=[{'path':a21_0x42e46b(0x240),'replace':[[a21_0x42e46b(0x22e),a21_0x42e46b(0x242)]]},{'path':'\x5cwebsite\x5cindex.js','replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a21_0x42e46b(0x22b)],['components',a21_0x42e46b(0x242)]]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a21_0x42e46b(0x240),'replace':[['return\x20__planA();',a21_0x42e46b(0x235)]]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':a21_0x42e46b(0x240),'replace':[[a21_0x42e46b(0x226),a21_0x42e46b(0x241)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':a21_0x42e46b(0x21a),'replace':[['common/http',a21_0x42e46b(0x228)],[a21_0x42e46b(0x23c),a21_0x42e46b(0x1ec)],[a21_0x42e46b(0x223),a21_0x42e46b(0x23d)]]},{'path':'\x5cRejectText\x5cindex.js','replace':[[a21_0x42e46b(0x209),a21_0x42e46b(0x213)]]},{'path':a21_0x42e46b(0x231),'replace':[[a21_0x42e46b(0x223),'jjb-common/tools']]},{'path':'\x5cFileUploader\x5cindex.js','replace':[[a21_0x42e46b(0x20f),a21_0x42e46b(0x228)],['common/tools',a21_0x42e46b(0x23d)]]},{'path':'\x5cImageCropper\x5cindex.js','replace':[[a21_0x42e46b(0x20f),a21_0x42e46b(0x228)],[a21_0x42e46b(0x223),a21_0x42e46b(0x23d)]]},{'path':'\x5cImageUploader\x5cindex.js','replace':[[a21_0x42e46b(0x20f),a21_0x42e46b(0x228)],[a21_0x42e46b(0x223),a21_0x42e46b(0x23d)]]},{'path':a21_0x42e46b(0x212),'replace':[['common/color',a21_0x42e46b(0x213)]]},{'path':a21_0x42e46b(0x1f6),'replace':[['common/tools',a21_0x42e46b(0x23d)]]},{'path':a21_0x42e46b(0x243),'replace':[[a21_0x42e46b(0x207),a21_0x42e46b(0x23e)],[a21_0x42e46b(0x223),a21_0x42e46b(0x23d)]]}];function uid(){const _0x1565d1=a21_0x42e46b;return Math[_0x1565d1(0x1fa)]()[_0x1565d1(0x1f7)]()[_0x1565d1(0x1ff)](0x2);}module[a21_0x42e46b(0x20c)]=_0x231344=>{const _0x337041=a21_0x42e46b,_0x269e02=path[_0x337041(0x219)]('./'),_0x4a9c53='jjb-'+_0x231344,_0x40d76b='1.0.0',_0x402a40=_0x269e02+'\x5csrc',_0x7d3c2f=_0x337041(0x244)+uid(),_0x162923=__dirname+'\x5c'+_0x7d3c2f,_0x4d241b=_0x269e02+'\x5cpackage.json',_0x126853=_0x269e02+_0x337041(0x238)+_0x231344;try{if(fs['existsSync'](_0x402a40)){const _0x29a789=CLOUD_PROJECT[_0x231344]||undefined;if(_0x29a789){const _0x59e6c0=os['tmpdir'](),_0x516c92=_0x59e6c0+'/'+GIT_TEMP_DIR+'/'+_0x231344+_0x337041(0x210),_0x5ea4b1=_0x59e6c0+'/'+GIT_TEMP_DIR+_0x337041(0x22c);utils[_0x337041(0x229)](_0x59e6c0+'/'+GIT_TEMP_DIR,()=>{const _0x52f247=_0x337041;fs[_0x52f247(0x21b)](_0x59e6c0+'/'+GIT_TEMP_DIR);const _0x9143ee=fs[_0x52f247(0x22a)](_0x516c92);request(GIT_HOST+_0x52f247(0x1f1)+_0x29a789['projectId']+_0x52f247(0x218)+_0x29a789['token']+'&ref=master')['pipe'](_0x9143ee)['on'](_0x52f247(0x203),()=>{const _0x5d357e=_0x52f247;fs[_0x5d357e(0x21b)](_0x5ea4b1),compressing['zip'][_0x5d357e(0x230)](_0x516c92,_0x5ea4b1)[_0x5d357e(0x214)](()=>{setTimeout(()=>{const _0x3134d6=a21_0x5dd6;fs[_0x3134d6(0x211)](_0x5ea4b1)[_0x3134d6(0x1fe)](_0x30fad0=>{_0x30fad0['indexOf']('-master-')!==-0x1&&utils['DeleteDirAllFile'](_0x402a40+'\x5c'+_0x29a789['localName'],()=>{const _0x52dc39=a21_0x5dd6;fs[_0x52dc39(0x21b)](_0x162923),utils[_0x52dc39(0x21d)](_0x5ea4b1+_0x30fad0,_0x162923),setTimeout(()=>{const _0x38926d=_0x52dc39;if(_0x231344===_0x38926d(0x1f0)){const _0x5b8f20=fs['existsSync'](_0x402a40+'\x5capplication');if(_0x5b8f20)rm_rf(_0x162923+_0x38926d(0x1f9)),fs[_0x38926d(0x245)](_0x162923+_0x38926d(0x1f9));else{if(get_project_type(_0x4d241b)===_0x38926d(0x220))content_replace(COMMON_CONTENT_SPA_REPLACE,_0x162923),fs[_0x38926d(0x1f3)](_0x162923+_0x38926d(0x227),fs[_0x38926d(0x21e)](__dirname+'\x5ccli.dva.router.spa.txt')['toString']()),fs[_0x38926d(0x1f3)](_0x162923+_0x38926d(0x1f5),fs[_0x38926d(0x21e)](__dirname+_0x38926d(0x1ee))['toString']());else get_project_type(_0x4d241b)===_0x38926d(0x215)&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x162923),fs[_0x38926d(0x1f3)](_0x162923+_0x38926d(0x227),fs[_0x38926d(0x21e)](__dirname+_0x38926d(0x201))[_0x38926d(0x1f7)]()),fs['writeFileSync'](_0x162923+'\x5cdva\x5cautomatic\x5cregister.js',fs[_0x38926d(0x21e)](__dirname+_0x38926d(0x21f))[_0x38926d(0x1f7)]()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x162923);}_0x231344===_0x38926d(0x239)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x162923),rm_rf(_0x162923+'\x5c.idea'),fs['existsSync'](_0x162923+'\x5c.idea')&&fs['rmdirSync'](_0x162923+'\x5c.idea'),fs[_0x38926d(0x216)](_0x162923+_0x38926d(0x1ef))&&fs['unlinkSync'](_0x162923+'\x5c.gitignore'),!fs[_0x38926d(0x216)](_0x126853)?fs[_0x38926d(0x21b)](_0x126853):rm_rf(_0x126853),utils[_0x38926d(0x21d)](_0x162923,_0x126853,()=>{const _0xd290ab=_0x38926d;rm_rf(_0x162923),fs[_0xd290ab(0x245)](_0x162923),create_package_json(_0x126853,_0x4a9c53,_0x40d76b),update_project_package_json(_0x4d241b,_0x4a9c53,_0x40d76b),console[_0xd290ab(0x1f2)](_0xd290ab(0x20a)+_0x4a9c53+'\x20v'+_0x40d76b);});},0x3e8);});});},0x7d0);});});});}else console['error'](_0x337041(0x1fb)+_0x231344);}}catch(_0x22d5f0){console[_0x337041(0x224)](_0x337041(0x1f4));}};function a21_0x5dd6(_0x3c6380,_0x148034){const _0x1a20a3=a21_0x1a20();return a21_0x5dd6=function(_0x5dd6a0,_0x1da21a){_0x5dd6a0=_0x5dd6a0-0x1ec;let _0x103057=_0x1a20a3[_0x5dd6a0];return _0x103057;},a21_0x5dd6(_0x3c6380,_0x148034);}function rm_rf(_0x1caa7f){const _0x15d335=a21_0x42e46b;if(fs[_0x15d335(0x216)](_0x1caa7f)){const _0x5de48e=fs[_0x15d335(0x211)](_0x1caa7f);for(let _0x1c721b=0x0;_0x1c721b<_0x5de48e[_0x15d335(0x217)];_0x1c721b++){const _0xb29fb4=_0x5de48e[_0x1c721b],_0x525597=_0x1caa7f+'/'+_0xb29fb4;fs[_0x15d335(0x202)](_0x525597)[_0x15d335(0x236)]()?(rm_rf(_0x525597),fs[_0x15d335(0x245)](_0x525597)):fs[_0x15d335(0x1fd)](_0x525597);}}}function create_package_json(_0x2858f8,_0x273883,_0xd47c83){const _0x314340=a21_0x42e46b;fs['writeFileSync'](_0x2858f8+_0x314340(0x20b),'{\x22name\x22:\x22'+_0x273883+_0x314340(0x208)+_0xd47c83+_0x314340(0x23f));}function get_project_type(_0x5d2190){const _0x14bc2a=a21_0x42e46b,_0x1d1657=JSON[_0x14bc2a(0x225)](fs[_0x14bc2a(0x21e)](_0x5d2190)['toString']());return _0x1d1657[_0x14bc2a(0x234)];}function update_project_package_json(_0x19db5b,_0x269784,_0x2944b6){const _0x2f199e=a21_0x42e46b,_0x50120a=JSON['parse'](fs['readFileSync'](_0x19db5b)[_0x2f199e(0x1f7)]());_0x50120a[_0x2f199e(0x204)][_0x269784]=_0x2944b6,fs[_0x2f199e(0x1f3)](_0x19db5b,JSON[_0x2f199e(0x20d)](_0x50120a,null,0x2));}function content_replace(_0x2a6dce=[],_0x15eeaf){const _0x191c5b=a21_0x42e46b;_0x2a6dce[_0x191c5b(0x1fe)](_0x44d636=>{const _0x5cc1f2=_0x191c5b,_0x1b76ae=_0x15eeaf+_0x44d636[_0x5cc1f2(0x23b)];if(fs[_0x5cc1f2(0x216)](_0x1b76ae)){let _0x2305e6=fs[_0x5cc1f2(0x21e)](_0x1b76ae)['toString']();_0x44d636[_0x5cc1f2(0x21c)][_0x5cc1f2(0x1fe)](_0x13b9b6=>{const _0x59b13b=_0x5cc1f2;_0x2305e6=_0x2305e6[_0x59b13b(0x21c)](_0x13b9b6[0x0],_0x13b9b6[0x1]);}),fs['writeFileSync'](_0x1b76ae,_0x2305e6);}});}
@@ -1 +1 @@
1
- const a22_0x5b69e7=a22_0x1ca7;(function(_0x504e46,_0x158a3e){const _0x157cce=a22_0x1ca7,_0x5147a8=_0x504e46();while(!![]){try{const _0x1f99aa=-parseInt(_0x157cce(0x189))/0x1+parseInt(_0x157cce(0x18f))/0x2*(parseInt(_0x157cce(0x184))/0x3)+parseInt(_0x157cce(0x19e))/0x4*(-parseInt(_0x157cce(0x18c))/0x5)+-parseInt(_0x157cce(0x196))/0x6+-parseInt(_0x157cce(0x192))/0x7*(-parseInt(_0x157cce(0x19b))/0x8)+parseInt(_0x157cce(0x1a0))/0x9+parseInt(_0x157cce(0x181))/0xa;if(_0x1f99aa===_0x158a3e)break;else _0x5147a8['push'](_0x5147a8['shift']());}catch(_0x4d9d0e){_0x5147a8['push'](_0x5147a8['shift']());}}}(a22_0x167e,0xbbcc5));function a22_0x167e(){const _0x4ceb8a=['390425GNTlOY','readdirSync','length','2wjxeJg','path','exit','7iZDlSL','log','resolve','删除文件:','5039520Okhgdz','删除进度','trim','existsSync','无效操作。','453760XuIinK','删除文件夹:','删除异常:','24pEPRgd','clear','5441661gPAroD','删除完成。','question','12524880edreIn','取消删除。','rmdirSync','1894533eEhUwu','statSync','isDirectory','./progress-bar','是否确认删除?删除后不可恢复![y/n]:','467697KZYmVa','unlinkSync','正在计算项目数,请稍等...'];a22_0x167e=function(){return _0x4ceb8a;};return a22_0x167e();}const fs=require('fs'),path=require(a22_0x5b69e7(0x190)),readline=require('readline'),ProgressBar=require(a22_0x5b69e7(0x187)),io=readline['createInterface']({'input':process['stdin'],'output':process['stdout']}),progress=new ProgressBar(a22_0x5b69e7(0x197),0x32);let f_total=0x0,f_number=0x0;function a22_0x1ca7(_0x5371a4,_0x2ea704){const _0x167ed0=a22_0x167e();return a22_0x1ca7=function(_0x1ca706,_0x514056){_0x1ca706=_0x1ca706-0x17f;let _0x15b421=_0x167ed0[_0x1ca706];return _0x15b421;},a22_0x1ca7(_0x5371a4,_0x2ea704);}module['exports']=function(){const _0x49a448=a22_0x5b69e7,_0x3a4d79=path[_0x49a448(0x194)]('./');io[_0x49a448(0x180)](_0x49a448(0x188),function(_0x2b7759){const _0x350803=_0x49a448;if(_0x2b7759[_0x350803(0x198)]()==='y')console[_0x350803(0x193)](_0x350803(0x18b)),setTimeout(()=>{setTimeout(()=>{const _0x439a66=a22_0x1ca7;console[_0x439a66(0x19f)](),exec(_0x3a4d79),setTimeout(()=>{const _0x5e44e8=_0x439a66;console[_0x5e44e8(0x193)](_0x5e44e8(0x17f)),console[_0x5e44e8(0x19f)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x2b7759[_0x350803(0x198)]()==='n'?(console[_0x350803(0x193)](_0x350803(0x182)),process['exit'](0x0)):(console['log'](_0x350803(0x19a)),process[_0x350803(0x191)](0x0));});};function exec(_0x92f984){const _0x328950=a22_0x5b69e7;if(fs[_0x328950(0x199)](_0x92f984)){const _0x329a65=fs[_0x328950(0x18d)](_0x92f984);for(let _0x1e592d=0x0;_0x1e592d<_0x329a65['length'];_0x1e592d++){const _0x82b8d8=_0x329a65[_0x1e592d],_0x4dd5f0=_0x92f984+'/'+_0x82b8d8;try{fs[_0x328950(0x185)](_0x4dd5f0)[_0x328950(0x186)]()?(exec(_0x4dd5f0),fs[_0x328950(0x183)](_0x4dd5f0,{'recursive':!![]}),console[_0x328950(0x193)](_0x328950(0x19c)+_0x4dd5f0)):(fs[_0x328950(0x18a)](_0x4dd5f0),console[_0x328950(0x193)](_0x328950(0x195)+_0x4dd5f0));}catch(_0x1be6ac){console[_0x328950(0x193)](_0x328950(0x19d)+_0x4dd5f0);}}}}function scanner(_0xa0c6fa){const _0x282d51=a22_0x5b69e7;if(fs['existsSync'](_0xa0c6fa)){const _0xef863e=fs[_0x282d51(0x18d)](_0xa0c6fa);for(let _0x59a349=0x0;_0x59a349<_0xef863e[_0x282d51(0x18e)];_0x59a349++){const _0x485a78=_0xef863e[_0x59a349],_0x572cb6=_0xa0c6fa+'/'+_0x485a78;try{fs[_0x282d51(0x185)](_0x572cb6)[_0x282d51(0x186)]()?(scanner(_0x572cb6),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x369488){}}}}
1
+ const a22_0x3a43a7=a22_0x132b;(function(_0x169482,_0x30efae){const _0x142fa2=a22_0x132b,_0x1ae882=_0x169482();while(!![]){try{const _0x7d2186=-parseInt(_0x142fa2(0x1b8))/0x1+parseInt(_0x142fa2(0x1c7))/0x2*(parseInt(_0x142fa2(0x1c2))/0x3)+parseInt(_0x142fa2(0x1d3))/0x4+-parseInt(_0x142fa2(0x1bd))/0x5+parseInt(_0x142fa2(0x1c3))/0x6+-parseInt(_0x142fa2(0x1c0))/0x7+parseInt(_0x142fa2(0x1d0))/0x8*(parseInt(_0x142fa2(0x1c1))/0x9);if(_0x7d2186===_0x30efae)break;else _0x1ae882['push'](_0x1ae882['shift']());}catch(_0x186afe){_0x1ae882['push'](_0x1ae882['shift']());}}}(a22_0x56f5,0xaaa52));const fs=require('fs'),path=require('path'),readline=require('readline'),ProgressBar=require(a22_0x3a43a7(0x1ba)),io=readline[a22_0x3a43a7(0x1ca)]({'input':process[a22_0x3a43a7(0x1ce)],'output':process[a22_0x3a43a7(0x1c6)]}),progress=new ProgressBar(a22_0x3a43a7(0x1c4),0x32);let f_total=0x0,f_number=0x0;module[a22_0x3a43a7(0x1c8)]=function(){const _0x1206e2=a22_0x3a43a7,_0x5dc2f6=path[_0x1206e2(0x1d1)]('./');io[_0x1206e2(0x1be)](_0x1206e2(0x1bc),function(_0x509f95){const _0x5478f1=_0x1206e2;if(_0x509f95[_0x5478f1(0x1cf)]()==='y')console['log'](_0x5478f1(0x1d2)),setTimeout(()=>{setTimeout(()=>{const _0x4edea7=a22_0x132b;console[_0x4edea7(0x1cc)](),exec(_0x5dc2f6),setTimeout(()=>{const _0x4c1f70=_0x4edea7;console[_0x4c1f70(0x1bb)](_0x4c1f70(0x1cd)),console[_0x4c1f70(0x1cc)](),process[_0x4c1f70(0x1cb)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x509f95[_0x5478f1(0x1cf)]()==='n'?(console[_0x5478f1(0x1bb)](_0x5478f1(0x1b6)),process['exit'](0x0)):(console[_0x5478f1(0x1bb)]('无效操作。'),process[_0x5478f1(0x1cb)](0x0));});};function a22_0x132b(_0x29cc34,_0x2c3783){const _0x56f5fe=a22_0x56f5();return a22_0x132b=function(_0x132b7c,_0x5092de){_0x132b7c=_0x132b7c-0x1b5;let _0x1f387a=_0x56f5fe[_0x132b7c];return _0x1f387a;},a22_0x132b(_0x29cc34,_0x2c3783);}function a22_0x56f5(){const _0x1139f9=['取消删除。','unlinkSync','1120119ScTecF','existsSync','./progress-bar','log','是否确认删除?删除后不可恢复![y/n]:','5154845ytfUVe','question','statSync','6991565AJfARs','4830939dmOBXk','168621Cqusfd','5086080eTzBCG','删除进度','readdirSync','stdout','4SYcPag','exports','length','createInterface','exit','clear','删除完成。','stdin','trim','32LYqOyr','resolve','正在计算项目数,请稍等...','2966668JWioQc','删除文件:'];a22_0x56f5=function(){return _0x1139f9;};return a22_0x56f5();}function exec(_0x35ff8f){const _0x54f5b1=a22_0x3a43a7;if(fs[_0x54f5b1(0x1b9)](_0x35ff8f)){const _0x35ab35=fs[_0x54f5b1(0x1c5)](_0x35ff8f);for(let _0x19adf=0x0;_0x19adf<_0x35ab35['length'];_0x19adf++){const _0x28b3f2=_0x35ab35[_0x19adf],_0x4fec87=_0x35ff8f+'/'+_0x28b3f2;try{fs[_0x54f5b1(0x1bf)](_0x4fec87)['isDirectory']()?(exec(_0x4fec87),fs['rmdirSync'](_0x4fec87,{'recursive':!![]}),console[_0x54f5b1(0x1bb)]('删除文件夹:'+_0x4fec87)):(fs[_0x54f5b1(0x1b7)](_0x4fec87),console['log'](_0x54f5b1(0x1b5)+_0x4fec87));}catch(_0x28ae01){console[_0x54f5b1(0x1bb)]('删除异常:'+_0x4fec87);}}}}function scanner(_0x3c9040){const _0x4a59d5=a22_0x3a43a7;if(fs[_0x4a59d5(0x1b9)](_0x3c9040)){const _0x30fb21=fs[_0x4a59d5(0x1c5)](_0x3c9040);for(let _0x3fad61=0x0;_0x3fad61<_0x30fb21[_0x4a59d5(0x1c9)];_0x3fad61++){const _0x14a157=_0x30fb21[_0x3fad61],_0x132503=_0x3c9040+'/'+_0x14a157;try{fs[_0x4a59d5(0x1bf)](_0x132503)['isDirectory']()?(scanner(_0x132503),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x12bd5){}}}}
@@ -1 +1 @@
1
- const a23_0x1ac2d1=a23_0x4853;function a23_0x3822(){const _0xfa8ec5=['description','length','total','completed','57834FyHtqc','3tXycbr','34925580LqWCCO','toFixed','exports','3612892DqYuHx','floor','57bnXwGA','9616098FSUJva','344720DrFQfV','9392232sSwkdo','render','5895477LxoiXc','stdout'];a23_0x3822=function(){return _0xfa8ec5;};return a23_0x3822();}(function(_0x151578,_0x21b4f7){const _0x4b96bd=a23_0x4853,_0xb5e67a=_0x151578();while(!![]){try{const _0xac36db=-parseInt(_0x4b96bd(0x6f))/0x1*(parseInt(_0x4b96bd(0x7a))/0x2)+parseInt(_0x4b96bd(0x7b))/0x3*(-parseInt(_0x4b96bd(0x6d))/0x4)+-parseInt(_0x4b96bd(0x71))/0x5+parseInt(_0x4b96bd(0x70))/0x6+-parseInt(_0x4b96bd(0x74))/0x7+-parseInt(_0x4b96bd(0x72))/0x8+parseInt(_0x4b96bd(0x7c))/0x9;if(_0xac36db===_0x21b4f7)break;else _0xb5e67a['push'](_0xb5e67a['shift']());}catch(_0x526300){_0xb5e67a['push'](_0xb5e67a['shift']());}}}(a23_0x3822,0xceb23));const slog=require('single-line-log')[a23_0x1ac2d1(0x75)];function ProgressBar(_0xfdae9,_0x78ca9f){const _0x4bbac5=a23_0x1ac2d1;this['description']=_0xfdae9||'Progress',this[_0x4bbac5(0x77)]=_0x78ca9f||0x19,this[_0x4bbac5(0x73)]=function(_0x3a89e8){const _0x5cfa86=_0x4bbac5;let _0x49af9b;const _0x3a828a=(_0x3a89e8[_0x5cfa86(0x79)]/_0x3a89e8[_0x5cfa86(0x78)])[_0x5cfa86(0x7d)](0x4),_0x4b963b=Math[_0x5cfa86(0x6e)](_0x3a828a*this[_0x5cfa86(0x77)]);let _0x2472b1='';for(_0x49af9b=0x0;_0x49af9b<_0x4b963b;_0x49af9b++){_0x2472b1+='█';}let _0x2e16a4='';for(_0x49af9b=0x0;_0x49af9b<this[_0x5cfa86(0x77)]-_0x4b963b;_0x49af9b++){_0x2e16a4+='░';}const _0x536f25=this[_0x5cfa86(0x76)]+':\x20'+(0x64*_0x3a828a)[_0x5cfa86(0x7d)](0x2)+'%\x20'+_0x2472b1+_0x2e16a4+'\x20'+_0x3a89e8[_0x5cfa86(0x79)]+'/'+_0x3a89e8['total'];slog(_0x536f25);};}function a23_0x4853(_0x13dbe3,_0xe83fdd){const _0x3822a2=a23_0x3822();return a23_0x4853=function(_0x4853fa,_0x4eff69){_0x4853fa=_0x4853fa-0x6c;let _0x4d83a5=_0x3822a2[_0x4853fa];return _0x4d83a5;},a23_0x4853(_0x13dbe3,_0xe83fdd);}module[a23_0x1ac2d1(0x6c)]=ProgressBar;
1
+ function a23_0x5336(){const _0x4a6ba7=['render','description','138870FOpiRy','345642ECZyro','84jLaeqn','completed','11mpNofi','279008VnwEES','exports','stdout','8MNzwWf','total','floor','length','61657dCEebQ','792ORJOzE','1570948iXRWxT','21BLEJyg','3190dxBMyz','89772eLoLzg'];a23_0x5336=function(){return _0x4a6ba7;};return a23_0x5336();}const a23_0x5e62ee=a23_0x3691;(function(_0x4ac928,_0x2079d4){const _0x2d45e3=a23_0x3691,_0x429859=_0x4ac928();while(!![]){try{const _0x1562d3=parseInt(_0x2d45e3(0x138))/0x1+parseInt(_0x2d45e3(0x148))/0x2*(-parseInt(_0x2d45e3(0x141))/0x3)+parseInt(_0x2d45e3(0x13a))/0x4+parseInt(_0x2d45e3(0x140))/0x5*(parseInt(_0x2d45e3(0x142))/0x6)+parseInt(_0x2d45e3(0x13b))/0x7*(-parseInt(_0x2d45e3(0x145))/0x8)+parseInt(_0x2d45e3(0x139))/0x9*(-parseInt(_0x2d45e3(0x13c))/0xa)+-parseInt(_0x2d45e3(0x144))/0xb*(parseInt(_0x2d45e3(0x13d))/0xc);if(_0x1562d3===_0x2079d4)break;else _0x429859['push'](_0x429859['shift']());}catch(_0x3b42cc){_0x429859['push'](_0x429859['shift']());}}}(a23_0x5336,0x3b211));const slog=require('single-line-log')[a23_0x5e62ee(0x147)];function ProgressBar(_0x5eeb18,_0x4fca82){const _0x19acf5=a23_0x5e62ee;this[_0x19acf5(0x13f)]=_0x5eeb18||'Progress',this[_0x19acf5(0x137)]=_0x4fca82||0x19,this[_0x19acf5(0x13e)]=function(_0x1e94e9){const _0x201dda=_0x19acf5;let _0x30cb65;const _0x305db3=(_0x1e94e9[_0x201dda(0x143)]/_0x1e94e9[_0x201dda(0x135)])['toFixed'](0x4),_0x384184=Math[_0x201dda(0x136)](_0x305db3*this[_0x201dda(0x137)]);let _0x567347='';for(_0x30cb65=0x0;_0x30cb65<_0x384184;_0x30cb65++){_0x567347+='█';}let _0x5a8fd5='';for(_0x30cb65=0x0;_0x30cb65<this[_0x201dda(0x137)]-_0x384184;_0x30cb65++){_0x5a8fd5+='░';}const _0x2f741c=this['description']+':\x20'+(0x64*_0x305db3)['toFixed'](0x2)+'%\x20'+_0x567347+_0x5a8fd5+'\x20'+_0x1e94e9[_0x201dda(0x143)]+'/'+_0x1e94e9[_0x201dda(0x135)];slog(_0x2f741c);};}function a23_0x3691(_0x1ca4c3,_0x5c3e0a){const _0x5336b9=a23_0x5336();return a23_0x3691=function(_0x3691f9,_0x5adb98){_0x3691f9=_0x3691f9-0x135;let _0x4a21ad=_0x5336b9[_0x3691f9];return _0x4a21ad;},a23_0x3691(_0x1ca4c3,_0x5c3e0a);}module[a23_0x5e62ee(0x146)]=ProgressBar;
package/src/old/util.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a24_0x510955=a24_0x1ab2;function a24_0x1d11(){const _0x1ab12f=['12350628ymDPaX','5XUJvtY','length','unlinkSync','readdir','1883preUmC','isDirectory','read\x20error','36712EzoHEU','push','1240xmiONw','readdirSync','3042576HicoPJ','createReadStream','5430318TojnWv','forEach','join','statSync','5324eIyWyr','CreatePaths','rmdirSync','DeepScanner','212IBZkxg','11121RNLDlP','createWriteStream','CopyFolder','log','30BMksOc','mkdir','mkdirSync','write\x20error','stat','2040AXTnBT','close'];a24_0x1d11=function(){return _0x1ab12f;};return a24_0x1d11();}function a24_0x1ab2(_0x524c2c,_0x192844){const _0x1d113b=a24_0x1d11();return a24_0x1ab2=function(_0x1ab2f6,_0xf1d64f){_0x1ab2f6=_0x1ab2f6-0x144;let _0x24ca44=_0x1d113b[_0x1ab2f6];return _0x24ca44;},a24_0x1ab2(_0x524c2c,_0x192844);}(function(_0x4d2d15,_0x5ad35d){const _0x506942=a24_0x1ab2,_0x5f3834=_0x4d2d15();while(!![]){try{const _0x4fb3ba=parseInt(_0x506942(0x14d))/0x1*(-parseInt(_0x506942(0x151))/0x2)+-parseInt(_0x506942(0x156))/0x3*(parseInt(_0x506942(0x145))/0x4)+-parseInt(_0x506942(0x15e))/0x5*(-parseInt(_0x506942(0x149))/0x6)+parseInt(_0x506942(0x162))/0x7*(-parseInt(_0x506942(0x165))/0x8)+parseInt(_0x506942(0x147))/0x9+-parseInt(_0x506942(0x15b))/0xa*(-parseInt(_0x506942(0x152))/0xb)+parseInt(_0x506942(0x15d))/0xc;if(_0x4fb3ba===_0x5ad35d)break;else _0x5f3834['push'](_0x5f3834['shift']());}catch(_0x3a453d){_0x5f3834['push'](_0x5f3834['shift']());}}}(a24_0x1d11,0xa5357));const fs=require('fs'),path=require('path');exports['DeleteDirAllFile']=(_0x2cbe80,_0x22f32)=>{const _0x5b2607=a24_0x1ab2;let _0x5aa075=[];const _0x519f10=this;fs['existsSync'](_0x2cbe80)?(_0x5aa075=fs['readdirSync'](_0x2cbe80),_0x5aa075[_0x5b2607(0x14a)](function(_0x5bde5f,_0x3e63b1){const _0x526561=_0x5b2607;let _0x1c400c=_0x2cbe80+'/'+_0x5bde5f;fs[_0x526561(0x14c)](_0x1c400c)[_0x526561(0x163)]()?_0x519f10['DeleteDirAllFile'](_0x1c400c):fs[_0x526561(0x160)](_0x1c400c);}),fs[_0x5b2607(0x14f)](_0x2cbe80),_0x22f32&&_0x22f32()):_0x22f32&&_0x22f32();},exports[a24_0x510955(0x154)]=(_0x3b5451,_0x34c4f7,_0x366db0)=>{const _0x56a5d5=a24_0x510955,_0x24e136=this;fs[_0x56a5d5(0x161)](_0x3b5451,function(_0xe8dbc1,_0x2bf993){const _0x1dd257=_0x56a5d5;let _0x34eb01=0x0;const _0x4c1f74=function(){const _0x5815f0=a24_0x1ab2;++_0x34eb01===_0x2bf993[_0x5815f0(0x15f)]&&_0x366db0&&_0x366db0();};if(_0xe8dbc1){_0x4c1f74();return;}_0x2bf993[_0x1dd257(0x14a)](function(_0x4c6ef4){const _0x1981e2=_0x1dd257,_0x21c200=path[_0x1981e2(0x14b)](_0x3b5451,_0x4c6ef4),_0x49822d=path['join'](_0x34c4f7,_0x4c6ef4);fs[_0x1981e2(0x15a)](_0x21c200,function(_0x33a5e3,_0x1cfd3b){const _0x30cb18=_0x1981e2;_0x1cfd3b[_0x30cb18(0x163)]()?fs[_0x30cb18(0x157)](_0x49822d,function(_0x4ee253){const _0x5b82fe=_0x30cb18;if(_0x4ee253){console['log'](_0x4ee253);return;}_0x24e136[_0x5b82fe(0x154)](_0x21c200,_0x49822d,_0x4c1f74);}):_0x24e136['CopyFile'](_0x21c200,_0x49822d,_0x4c1f74);});}),_0x2bf993[_0x1dd257(0x15f)]===0x0&&_0x366db0&&_0x366db0();});},exports['CopyFile']=(_0x585ab0,_0x552df3,_0x47a999)=>{const _0x31ae50=a24_0x510955,_0x23c7b2=fs[_0x31ae50(0x148)](_0x585ab0);_0x23c7b2['on']('error',function(_0x1006d2){const _0x20ca76=_0x31ae50;_0x1006d2&&console['log'](_0x20ca76(0x164),_0x585ab0),_0x47a999&&_0x47a999(_0x1006d2);});const _0x1ac1c8=fs[_0x31ae50(0x153)](_0x552df3);_0x1ac1c8['on']('error',function(_0x3ff233){const _0x16f820=_0x31ae50;_0x3ff233&&console[_0x16f820(0x155)](_0x16f820(0x159),_0x552df3),_0x47a999&&_0x47a999(_0x3ff233);}),_0x1ac1c8['on'](_0x31ae50(0x15c),function(_0xbd5996){_0x47a999&&_0x47a999(_0xbd5996);}),_0x23c7b2['pipe'](_0x1ac1c8);},exports[a24_0x510955(0x150)]=(_0x32b803,_0x39df56)=>{const _0x14360f=a24_0x510955,_0x1d397a=this,_0xdb162=fs[_0x14360f(0x146)](_0x32b803);_0xdb162[_0x14360f(0x14a)](_0x521d32=>{const _0x4eeaef=_0x14360f,_0x1b29cf=_0x32b803+'/'+_0x521d32,_0x462cc6=fs[_0x4eeaef(0x14c)](_0x1b29cf);_0x462cc6[_0x4eeaef(0x163)]()?_0x1d397a[_0x4eeaef(0x150)](_0x1b29cf,_0x39df56):_0x39df56[_0x4eeaef(0x144)](_0x1b29cf);});},exports[a24_0x510955(0x14e)]=(_0x182db8,_0x47e71f)=>{return new Promise(_0x230708=>{const _0x53db1b=a24_0x1ab2,_0x18ed17=[];_0x47e71f[_0x53db1b(0x14a)]((_0x48f4a9,_0x3429f3)=>{const _0x56f51e=_0x53db1b,_0x4c998f=_0x182db8+'/'+_0x18ed17[_0x56f51e(0x14b)]('/')+'/'+_0x48f4a9;try{const _0x2c1831=fs[_0x56f51e(0x14c)](_0x4c998f);_0x2c1831[_0x56f51e(0x163)]()?_0x3429f3===_0x47e71f['length']-0x1&&_0x230708():(fs['mkdirSync'](_0x4c998f),_0x3429f3===_0x47e71f[_0x56f51e(0x15f)]-0x1&&_0x230708());}catch(_0x5dabc7){fs[_0x56f51e(0x158)](_0x4c998f),_0x3429f3===_0x47e71f[_0x56f51e(0x15f)]-0x1&&_0x230708();}_0x18ed17[_0x56f51e(0x144)](_0x48f4a9);});});};
1
+ 'use strict';function a24_0x2a4a(_0x1ef371,_0x901aa2){const _0x1954e1=a24_0x1954();return a24_0x2a4a=function(_0x2a4a0b,_0xa238c8){_0x2a4a0b=_0x2a4a0b-0xc2;let _0x3ddf0c=_0x1954e1[_0x2a4a0b];return _0x3ddf0c;},a24_0x2a4a(_0x1ef371,_0x901aa2);}const a24_0x429fba=a24_0x2a4a;(function(_0x308aba,_0x31a93a){const _0x2fee4e=a24_0x2a4a,_0x1b6068=_0x308aba();while(!![]){try{const _0xee0afc=-parseInt(_0x2fee4e(0xd7))/0x1*(-parseInt(_0x2fee4e(0xe3))/0x2)+parseInt(_0x2fee4e(0xe2))/0x3*(parseInt(_0x2fee4e(0xc3))/0x4)+parseInt(_0x2fee4e(0xcd))/0x5+-parseInt(_0x2fee4e(0xda))/0x6*(-parseInt(_0x2fee4e(0xe4))/0x7)+-parseInt(_0x2fee4e(0xd4))/0x8+parseInt(_0x2fee4e(0xc5))/0x9*(-parseInt(_0x2fee4e(0xd5))/0xa)+-parseInt(_0x2fee4e(0xc4))/0xb*(-parseInt(_0x2fee4e(0xd9))/0xc);if(_0xee0afc===_0x31a93a)break;else _0x1b6068['push'](_0x1b6068['shift']());}catch(_0x54fee9){_0x1b6068['push'](_0x1b6068['shift']());}}}(a24_0x1954,0xde1c1));function a24_0x1954(){const _0x391eaa=['105903aZTLPn','CopyFile','DeleteDirAllFile','DeepScanner','statSync','join','pipe','mkdirSync','5557560sdIqTN','push','existsSync','isDirectory','write\x20error','readdir','log','12013064PjpUJO','1480vTCSdl','readdirSync','643819tpzZQm','createReadStream','2249004tPdAPP','23766TvgZnj','CopyFolder','forEach','rmdirSync','error','length','CreatePaths','stat','23649YfKOCH','2knTmPV','3101ntwRNp','read\x20error','path','unlinkSync','136TsVEmR','22fIhHMS'];a24_0x1954=function(){return _0x391eaa;};return a24_0x1954();}const fs=require('fs'),path=require(a24_0x429fba(0xe6));exports[a24_0x429fba(0xc7)]=(_0x39eaa3,_0x500eeb)=>{const _0x3497cf=a24_0x429fba;let _0x2ffb25=[];const _0x3bc425=this;fs[_0x3497cf(0xcf)](_0x39eaa3)?(_0x2ffb25=fs[_0x3497cf(0xd6)](_0x39eaa3),_0x2ffb25[_0x3497cf(0xdc)](function(_0x1430f4,_0x4b49aa){const _0x1fbbab=_0x3497cf;let _0x4814df=_0x39eaa3+'/'+_0x1430f4;fs[_0x1fbbab(0xc9)](_0x4814df)[_0x1fbbab(0xd0)]()?_0x3bc425[_0x1fbbab(0xc7)](_0x4814df):fs[_0x1fbbab(0xc2)](_0x4814df);}),fs[_0x3497cf(0xdd)](_0x39eaa3),_0x500eeb&&_0x500eeb()):_0x500eeb&&_0x500eeb();},exports[a24_0x429fba(0xdb)]=(_0x48a6bc,_0x4cbffd,_0xebedb9)=>{const _0xb75423=a24_0x429fba,_0x5675c4=this;fs[_0xb75423(0xd2)](_0x48a6bc,function(_0x2d6df1,_0x393c27){const _0x18b450=_0xb75423;let _0x3d1227=0x0;const _0xa3ca9=function(){const _0x4984f8=a24_0x2a4a;++_0x3d1227===_0x393c27[_0x4984f8(0xdf)]&&_0xebedb9&&_0xebedb9();};if(_0x2d6df1){_0xa3ca9();return;}_0x393c27[_0x18b450(0xdc)](function(_0x13d5ce){const _0x4dc6b5=_0x18b450,_0x41d839=path[_0x4dc6b5(0xca)](_0x48a6bc,_0x13d5ce),_0x560ea7=path[_0x4dc6b5(0xca)](_0x4cbffd,_0x13d5ce);fs[_0x4dc6b5(0xe1)](_0x41d839,function(_0x5b7073,_0x1d8548){const _0x4ce63f=_0x4dc6b5;_0x1d8548[_0x4ce63f(0xd0)]()?fs['mkdir'](_0x560ea7,function(_0x458db3){if(_0x458db3){console['log'](_0x458db3);return;}_0x5675c4['CopyFolder'](_0x41d839,_0x560ea7,_0xa3ca9);}):_0x5675c4[_0x4ce63f(0xc6)](_0x41d839,_0x560ea7,_0xa3ca9);});}),_0x393c27['length']===0x0&&_0xebedb9&&_0xebedb9();});},exports[a24_0x429fba(0xc6)]=(_0x19f9b9,_0x4f11ae,_0x2c21fe)=>{const _0x45e14c=a24_0x429fba,_0x6de1ba=fs[_0x45e14c(0xd8)](_0x19f9b9);_0x6de1ba['on'](_0x45e14c(0xde),function(_0x1022d3){const _0x372b9d=_0x45e14c;_0x1022d3&&console['log'](_0x372b9d(0xe5),_0x19f9b9),_0x2c21fe&&_0x2c21fe(_0x1022d3);});const _0x32f3b9=fs['createWriteStream'](_0x4f11ae);_0x32f3b9['on']('error',function(_0x573fd3){const _0x2ffeb5=_0x45e14c;_0x573fd3&&console[_0x2ffeb5(0xd3)](_0x2ffeb5(0xd1),_0x4f11ae),_0x2c21fe&&_0x2c21fe(_0x573fd3);}),_0x32f3b9['on']('close',function(_0x1f25c1){_0x2c21fe&&_0x2c21fe(_0x1f25c1);}),_0x6de1ba[_0x45e14c(0xcb)](_0x32f3b9);},exports[a24_0x429fba(0xc8)]=(_0x58f19e,_0x1c6896)=>{const _0x1fd421=a24_0x429fba,_0x1e84b1=this,_0x564c90=fs[_0x1fd421(0xd6)](_0x58f19e);_0x564c90['forEach'](_0x3f9c90=>{const _0x23d068=_0x1fd421,_0x66f2a7=_0x58f19e+'/'+_0x3f9c90,_0x389420=fs[_0x23d068(0xc9)](_0x66f2a7);_0x389420[_0x23d068(0xd0)]()?_0x1e84b1[_0x23d068(0xc8)](_0x66f2a7,_0x1c6896):_0x1c6896[_0x23d068(0xce)](_0x66f2a7);});},exports[a24_0x429fba(0xe0)]=(_0x519440,_0x570282)=>{return new Promise(_0x2ad067=>{const _0xe78276=a24_0x2a4a,_0x1b5f04=[];_0x570282[_0xe78276(0xdc)]((_0x18aeef,_0x374a0e)=>{const _0x1a93dc=_0xe78276,_0x473206=_0x519440+'/'+_0x1b5f04[_0x1a93dc(0xca)]('/')+'/'+_0x18aeef;try{const _0x5d325f=fs[_0x1a93dc(0xc9)](_0x473206);_0x5d325f[_0x1a93dc(0xd0)]()?_0x374a0e===_0x570282[_0x1a93dc(0xdf)]-0x1&&_0x2ad067():(fs[_0x1a93dc(0xcc)](_0x473206),_0x374a0e===_0x570282[_0x1a93dc(0xdf)]-0x1&&_0x2ad067());}catch(_0x18378c){fs[_0x1a93dc(0xcc)](_0x473206),_0x374a0e===_0x570282[_0x1a93dc(0xdf)]-0x1&&_0x2ad067();}_0x1b5f04['push'](_0x18aeef);});});};
@@ -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);