@maka/maka-cli 4.8.4 → 4.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97u=a97d;(function(a,b){const r=a97d,c=a();while(!![]){try{const d=-parseInt(r(0xdf))/0x1+parseInt(r(0x106))/0x2*(-parseInt(r(0xe1))/0x3)+parseInt(r(0x121))/0x4+-parseInt(r(0xea))/0x5*(parseInt(r(0x13e))/0x6)+-parseInt(r(0xf6))/0x7+parseInt(r(0x117))/0x8+parseInt(r(0x110))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xbc7ee));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const s=a97d;return a97a[s(0x108)]()[s(0xe2)](s(0xd9))[s(0x108)]()[s(0x132)](a97a)[s(0xe2)](s(0xd9));});a97a();function a97c(){const M=['generatorName','891144CFLnGv','opts','9507OUTJSm','search','light','Alias','Too\x20many\x20options','Generator.create\x20requires\x20a\x20handler\x20function!','.maka','fsi','localeCompare','5PjKIOB','LIGHT','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Description','pallet','Location','from','_genTransactionId','cwd','addGenerator','setColorMode','exit','1528632eEiNWt','join','mustBeInMakaProject','notice','help','history.json','utf-8','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','minArgLength','Generator\x20requires\x20a\x20handler\x20function','replace','DARK','readFileSync','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','client','writeHistory','268bCnbzA','_historyFilePath','toString','call','params','Generator\x20format\x20is\x20incorrect','_undoHandler','function','dir','validateMakaSubscription','2468979GWlpUG','getGlobalConfig','readHistory','split','colLocAnswer','shift','root','10282984DMPHou','validateMeteorInstall','handleGenerateError','undo','name','_generators','assign','length','options','find','4949268uOiXZF','usage','listGenerators','slice','aliases','mustHaveMeteorInstalled','bind','resourceName','Too\x20few\x20options','addToHistory','statSync','maxArgLength','success','where','match','findProjectDirectory','number','constructor','writeFileSync','parse','\x20generator.\x20Skipping\x20undo.','validateEngines','existsSync','findGeneratorByName','tableList','chdir','details','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Generator\x20not\x20found','2944662czhchD','invoke','validateMakaProject','map','both','maxOptsLength','warn','Generator.create\x20requires\x20some\x20options!','push','error','deepen','Too\x20many\x20arguments','addGenerator\x20requires\x20a\x20Generator\x20instance','shortDesc','processAndRunGenerator','Name','message','pathFromProject','list','checkWhere','appPathPrefix','minOptsLength','Client','\x20not\x20found','server','_handler','Generator\x20','(((.+)+)+)+$','sort','requiredEngines','pop','bright'];a97c=function(){return M;};return a97c();}import a97e from'path';import a97f from'fs';import a97g from'cli-table';import{v4 as a97h}from'uuid';import{paramCase}from'change-case';import a97i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xcf;let f=c[d];return f;},a97d(a,b);}import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const t=a97d,c=process[t(0xf2)]();let d=null;try{process[t(0x13a)](a),d=await b();}finally{process[t(0x13a)](c);}return d;}export class Generator extends Tool{['options'];[a97u(0x11c)];[a97u(0x107)];[a97u(0x10c)];[a97u(0xf1)];constructor(a,b,c){const v=a97u;super();if(!a)throw new Error(v(0xfd));if(!a[v(0x11b)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!=='function')throw new Error(v(0xff));this['_generators']=[],this[v(0x11f)]=Object[v(0x11d)]({},a),this[v(0x11b)]=this[v(0x11f)][v(0x11b)],this[v(0xd7)]=b[v(0x127)](this);try{this['_historyFilePath']=this[v(0xe8)][v(0xcf)]({'pathParts':[v(0xe7),v(0xfb)]})||a97e[v(0xf7)]('.',v(0xe7),v(0xfb));}catch(d){Log[v(0x147)](d);}c&&(this[v(0x10c)]=c[v(0x127)](this));}['getHistoryFileSize'](){const w=a97u;if(a97f[w(0x137)](this[w(0x107)])){const a=a97f[w(0x12b)](this[w(0x107)]);return a['size'];}return 0x0;}['readHistory'](){const x=a97u;if(!a97f[x(0x137)](this[x(0x107)]))return[];return JSON[x(0x134)](a97f[x(0x102)](this[x(0x107)],x(0xfc)));}[a97u(0x105)](a){const y=a97u;this[y(0x107)]&&!a97f['existsSync'](this[y(0x107)])&&a97f[y(0x133)](this[y(0x107)],JSON['stringify']([])),a97f['writeFileSync'](this[y(0x107)],JSON['stringify'](a,null,0x2));}[a97u(0x12a)](a){const z=a97u;try{a?.[z(0x10a)]?.[z(0xe0)]['config']&&delete a[z(0x10a)][z(0xe0)]['config'];const b=this[z(0x112)](),c={'generatorName':this[z(0x11b)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x146)](c);const d=Buffer[z(0xf0)](JSON['stringify'](b))[z(0x11e)];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[z(0x115)]();}this[z(0x105)](b);}catch(f){Log[z(0x147)](f);}}static['create'](a,b,c,d){const A=a97u;if(!a)throw new Error(A(0x145));if(typeof b!==A(0x10d))throw new Error(A(0xe6));const e=new Generator(a,b);return c&&(e[A(0x10c)]=c[A(0x127)](e)),d=d||a97i,Object[A(0x11d)](e,{'parent':d?.[A(0x11f)]?.[A(0x11b)]}),d[A(0xf3)](e),e;}async[a97u(0x11a)](){const B=a97u,a=this[B(0x112)](),b=a[B(0xdc)]();if(!b){Log[B(0x144)]('Nothing\x20to\x20undo.');return;}const c=this[B(0x138)](b[B(0xde)]);if(!c){Log['error'](B(0xd8)+b['generatorName']+'\x20not\x20found.\x20Cannot\x20undo.');return;}c[B(0x10c)]?(await c[B(0x10c)](b['details']),this['writeHistory'](a)):Log[B(0x144)]('No\x20undo\x20handler\x20defined\x20for\x20'+b[B(0xde)]+B(0x135));}[a97u(0xf3)](a){const C=a97u;if(!(a instanceof Generator))throw new Error(C(0x14a));this[C(0x11c)][C(0x146)](a);}async[a97u(0x14c)](a,b=[],c={}){const D=a97u;let d;try{const f=a?.[D(0x113)](':');if(!f||f[D(0x11e)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[D(0x11c)],h;for(const i of f){h=g[D(0x120)](j=>j['match'](i));if(!h)throw'Generator\x20'+i+D(0xd5);await this[D(0x10f)](h),g=h['_generators'];}if(h)d=await h[D(0x13f)](b,c);else throw D(0x13d);}catch(j){Log[D(0x147)](j);}return d;}['findGeneratorByName'](a){const E=a97u,b=a?.['split'](':');if(!b||b[E(0x11e)]===0x0)return Log[E(0x147)](E(0x10b)),null;let c=this['_generators'],d;for(const e of b){d=c[E(0x120)](f=>f[E(0x12f)](e));if(!d)return Log[E(0x147)](E(0xd8)+e+E(0xd5)),null;c=d['_generators'];}return d||null;}async['invoke'](a,b){const F=a97u,c=a[F(0x124)]();b['resourceName']=c[0x0];try{const d=await this[F(0xe8)][F(0x111)](),f=d[F(0xee)]===F(0xe3)?ColorMode[F(0xeb)]:ColorMode[F(0x101)];Log[F(0xf4)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[F(0x11e)]===0x0&&this[F(0x11c)][F(0x11e)]>=0x0,h=b[F(0xfa)]||b['h'];if(g&&h){if(this[F(0x11c)][F(0x11e)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x11f)][F(0xf8)]){const i=this[F(0x140)]();if(!i)throw new MustBeInProjectError();}if(this[F(0x11f)][F(0x126)]){const j=this[F(0x118)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][F(0xfe)]===F(0x131)){if(a[F(0x11e)]<this[F(0x11f)][F(0xfe)]){Log[F(0x147)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x11f)][F(0x12c)]===F(0x131)){if(a[F(0x11e)]>this[F(0x11f)][F(0x12c)]){Log[F(0x147)](F(0x149));throw new UsageError();}}if(typeof this[F(0x11f)][F(0xd3)]==='number'){if(Object['keys'](b)[F(0x11e)]<this['options']['minOptsLength']){Log[F(0x147)](F(0x129));throw new UsageError();}}if(typeof this['options'][F(0x143)]===F(0x131)){if(Object['keys'](b)['length']>=this[F(0x11f)][F(0x143)]){Log[F(0x147)](F(0xe5));throw new UsageError();}}}this[F(0x11f)][F(0xdb)]&&this[F(0x136)](this[F(0x11f)][F(0xdb)]);await this['validateParams'](a,b,this['options']);if(!b[F(0x128)]&&!this[F(0x11f)]['noNeedResource']){Log[F(0x147)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x119)](k),process[F(0xf5)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0x116)]&&!this[G(0xe8)][G(0x130)]())throw new MustBeInProjectError();const l=b[G(0x128)]?.[G(0x100)](/\\/g,'/')[G(0x113)]('/');!b[G(0x10e)]&&(l?.[G(0x11e)]>0x1?(b[G(0x128)]=l[G(0xdc)](),c[0x0]=b[G(0x128)],b['dir']=l[G(0x141)](n=>{return paramCase(n);})[G(0xf7)](a97e['sep'])):b[G(0x10e)]='');if(this[G(0x11f)][G(0xd1)]){if(!b[G(0x12e)]){const o={'type':G(0xd0),'name':G(0x114),'message':G(0xef),'choices':[{'name':G(0xd4),'value':G(0x104)},{'name':'Server','value':'server'},{'name':'Both','value':G(0x142)}]},{colLocAnswer:p}=await Actions[G(0x11f)](o);p?b['where']=p:b[G(0x12e)]=G(0x142);}const n=[G(0x142),'client',G(0xd6)];if(!n['includes'](b[G(0x12e)])){Log[G(0x147)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0x12e)]){case G(0x142):b[G(0xd2)]='lib';break;case'server':b[G(0xd2)]='server';break;case'client':b[G(0xd2)]=G(0x104);break;default:b[G(0xd2)]='';}}const m=await this[G(0xd7)][G(0x109)](this,c,b);return this['addToHistory']({'params':{'args':c,'opts':this['fsi'][G(0x148)](b)},'success':m?.[G(0x12d)],'message':m?.[G(0x14e)],'details':m?.[G(0x13b)]}),m;}catch(q){this[G(0x119)](q);}});}[a97u(0x123)](){const H=a97u;this['tableList'](this[H(0x11c)]);}[a97u(0x119)](a){const I=a97u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log[I(0x122)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log['notice']('Generators:'),this[I(0x139)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log['error'](I(0x103));else{if(a instanceof NoMeteorFoundError)Log[I(0x147)](I(0xec)),Log[I(0xf9)](I(0x13c));else a instanceof NoMeteorAppFoundError&&Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a97u(0x139)](a){const J=a97u,b=new a97g({});b['push']([J(0x14d),J(0xe4),J(0xed)]),a[J(0xda)]((c,d)=>{const K=J;return c[K(0x11b)][K(0xe9)](d[K(0x11b)]);})['forEach'](c=>{const L=J;b[L(0x146)]([c['name'],c[L(0x125)](),c[L(0x14b)]()]);}),Log[J(0xdd)](b[J(0x108)]());}}
|
|
1
|
+
const a97v=a97d;(function(a,b){const r=a97d,c=a();while(!![]){try{const d=parseInt(r(0x9a))/0x1*(parseInt(r(0xe5))/0x2)+-parseInt(r(0x9e))/0x3+parseInt(r(0xbf))/0x4+-parseInt(r(0xc8))/0x5+parseInt(r(0x110))/0x6+-parseInt(r(0xe4))/0x7+parseInt(r(0x113))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x2fffd));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a97d;if(c){const e=c[s(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const t=a97d;return a97a[t(0xa0)]()[t(0xcf)](t(0xf0))['toString']()[t(0x102)](a97a)[t(0xcf)](t(0xf0));});a97a();import a97e from'path';import a97f from'fs';import a97g from'cli-table';import{v4 as a97h}from'uuid';import{paramCase}from'change-case';import a97i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x94;let f=c[d];return f;},a97d(a,b);}import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const u=a97d,c=process[u(0xbc)]();let d=null;try{process[u(0xaa)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a97v(0xf3)];[a97v(0xe7)];[a97v(0xb1)];['_undoHandler'];[a97v(0x109)];constructor(a,b,c){const w=a97v;super();if(!a)throw new Error(w(0x105));if(!a['name'])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==w(0x97))throw new Error(w(0xbb));this['_generators']=[],this[w(0xf3)]=Object[w(0xd1)]({},a),this[w(0xfa)]=this['options'][w(0xfa)],this[w(0xfb)]=b[w(0xc2)](this);try{this[w(0xb1)]=this['fsi'][w(0xc3)]({'pathParts':[w(0x10c),w(0xd9)]})||a97e[w(0xac)]('.','.maka',w(0xd9));}catch(d){Log['error'](d);}c&&(this[w(0xd8)]=c[w(0xc2)](this));}[a97v(0xee)](){const x=a97v;if(a97f[x(0x9d)](this[x(0xb1)])){const a=a97f[x(0x10a)](this[x(0xb1)]);return a['size'];}return 0x0;}[a97v(0xc7)](){const y=a97v;if(!a97f[y(0x9d)](this[y(0xb1)]))return[];return JSON[y(0xcb)](a97f[y(0xa9)](this['_historyFilePath'],y(0xaf)));}[a97v(0xc1)](a){const z=a97v;this[z(0xb1)]&&!a97f[z(0x9d)](this[z(0xb1)])&&a97f[z(0x10e)](this[z(0xb1)],JSON['stringify']([])),a97f[z(0x10e)](this[z(0xb1)],JSON[z(0xc4)](a,null,0x2));}[a97v(0xf5)](a){const A=a97v;try{a?.[A(0xbe)]?.[A(0xd4)][A(0x117)]&&delete a[A(0xbe)][A(0xd4)]['config'];const b=this[A(0xc7)](),c={'generatorName':this[A(0xfa)],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer[A(0xf2)](JSON['stringify'](b))[A(0xce)];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[A(0xe6)]();}this[A(0xc1)](b);}catch(f){Log['error'](f);}}static[a97v(0x115)](a,b,c,d){const B=a97v;if(!a)throw new Error(B(0xb7));if(typeof b!==B(0x97))throw new Error(B(0xde));const e=new Generator(a,b);return c&&(e[B(0xd8)]=c['bind'](e)),d=d||a97i,Object[B(0xd1)](e,{'parent':d?.[B(0xf3)]?.[B(0xfa)]}),d[B(0xab)](e),e;}async[a97v(0x116)](){const C=a97v,a=this[C(0xc7)](),b=a[C(0xf8)]();if(!b){Log[C(0xe2)]('Nothing\x20to\x20undo.');return;}const c=this[C(0xb2)](b[C(0xe1)]);if(!c){Log[C(0xb8)](C(0xb4)+b[C(0xe1)]+C(0xa2));return;}c[C(0xd8)]?(await c['_undoHandler'](b[C(0xc9)]),this['writeHistory'](a)):Log['warn'](C(0x94)+b['generatorName']+C(0xb5));}[a97v(0xab)](a){const D=a97v;if(!(a instanceof Generator))throw new Error(D(0xd7));this['_generators']['push'](a);}async[a97v(0x9c)](a,b=[],c={}){const E=a97v;let d;try{const f=a?.['split'](':');if(!f||f[E(0xce)]===0x0)throw E(0x106);let g=this['_generators'],h;for(const i of f){h=g[E(0xcd)](j=>j[E(0x10f)](i));if(!h)throw E(0xb4)+i+'\x20not\x20found';await this[E(0xba)](h),g=h['_generators'];}if(h)d=await h['invoke'](b,c);else throw E(0xfc);}catch(j){Log[E(0xb8)](j);}return d;}['findGeneratorByName'](a){const F=a97v,b=a?.[F(0x98)](':');if(!b||b[F(0xce)]===0x0)return Log[F(0xb8)]('Generator\x20format\x20is\x20incorrect'),null;let c=this[F(0xe7)],d;for(const e of b){d=c[F(0xcd)](f=>f[F(0x10f)](e));if(!d)return Log['error'](F(0xb4)+e+F(0xae)),null;c=d[F(0xe7)];}return d||null;}async['invoke'](a,b){const G=a97v,c=a[G(0xd6)]();b['resourceName']=c[0x0];try{const d=await this[G(0x9f)]['getGlobalConfig'](),f=d[G(0x100)]===G(0x114)?ColorMode[G(0x112)]:ColorMode['DARK'];Log[G(0x101)](f),await this[G(0xba)](this);const g=a[0x0]===_prevGen||a[G(0xce)]===0x0&&this[G(0xe7)][G(0xce)]>=0x0,h=b[G(0xf7)]||b['h'];if(g&&h){if(this[G(0xe7)][G(0xce)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0xf3)][G(0x103)]){const i=this[G(0xd5)]();if(!i)throw new MustBeInProjectError();}if(this[G(0xf3)][G(0xad)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0xf3)][G(0xef)]===G(0x9b)){if(a[G(0xce)]<this[G(0xf3)]['minArgLength']){Log[G(0xb8)](G(0xe0));throw new UsageError();}}if(typeof this['options']['maxArgLength']===G(0x9b)){if(a[G(0xce)]>this[G(0xf3)][G(0xf1)]){Log[G(0xb8)](G(0xc0));throw new UsageError();}}if(typeof this['options'][G(0xf9)]===G(0x9b)){if(Object[G(0xfe)](b)[G(0xce)]<this[G(0xf3)][G(0xf9)]){Log[G(0xb8)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this['options'][G(0xe8)]===G(0x9b)){if(Object[G(0xfe)](b)[G(0xce)]>=this['options'][G(0xe8)]){Log[G(0xb8)]('Too\x20many\x20options');throw new UsageError();}}}this[G(0xf3)][G(0xc5)]&&this['validateEngines'](this[G(0xf3)][G(0xc5)]);await this[G(0xdf)](a,b,this['options']);if(!b[G(0xf4)]&&!this[G(0xf3)][G(0xa5)]){Log[G(0xb8)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0xea)](k),process[G(0xfd)](0x1);}return await inside(b[G(0xbc)],async()=>{const H=G;try{if(!b[H(0xdb)]&&!this[H(0x9f)][H(0x104)]())throw new MustBeInProjectError();const l=b[H(0xf4)]?.[H(0xed)](/\\/g,'/')[H(0x98)]('/');!b[H(0xd3)]&&(l?.[H(0xce)]>0x1?(b[H(0xf4)]=l[H(0xf8)](),c[0x0]=b[H(0xf4)],b[H(0xd3)]=l[H(0xff)](n=>{return paramCase(n);})[H(0xac)](a97e[H(0x111)])):b[H(0xd3)]='');if(this[H(0xf3)][H(0xe9)]){if(!b[H(0xa8)]){const o={'type':'list','name':H(0xf6),'message':H(0xb3),'choices':[{'name':H(0xa1),'value':H(0x107)},{'name':'Server','value':H(0xb6)},{'name':H(0xe3),'value':H(0x10d)}]},{colLocAnswer:p}=await Actions[H(0xf3)](o);p?b[H(0xa8)]=p:b['where']=H(0x10d);}const n=[H(0x10d),'client',H(0xb6)];if(!n[H(0xec)](b[H(0xa8)])){Log[H(0xb8)](H(0x95));throw new UsageError();}switch(b['where']){case H(0x10d):b[H(0xcc)]=H(0xdd);break;case H(0xb6):b['appPathPrefix']=H(0xb6);break;case H(0x107):b[H(0xcc)]=H(0x107);break;default:b[H(0xcc)]='';}}const m=await this[H(0xfb)][H(0xd0)](this,c,b);return this['addToHistory']({'params':{'args':c,'opts':this[H(0x9f)]['deepen'](b)},'success':m?.[H(0xb0)],'message':m?.[H(0xd2)],'details':m?.[H(0xc9)]}),m;}catch(q){this[H(0xea)](q);}});}['listGenerators'](){const I=a97v;this[I(0xa6)](this[I(0xe7)]);}[a97v(0xea)](a){const J=a97v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[J(0xf3)];Log[J(0xbd)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0x99)](J(0x10b)),this[J(0xa6)](this[J(0xe7)]);else{if(a instanceof MustBeInProjectError)Log[J(0xb8)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[J(0xb8)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](J(0xda));else a instanceof NoMeteorAppFoundError&&Log[J(0xb8)](J(0x96));}}}[a97v(0xa6)](a){const K=a97v,b=new a97g({});b[K(0xb9)]([K(0xa3),K(0xc6),K(0xdc)]),a['sort']((c,d)=>{const L=K;return c[L(0xfa)][L(0x108)](d[L(0xfa)]);})['forEach'](c=>{const M=K;b[M(0xb9)]([c['name'],c[M(0xa7)](),c[M(0xca)]()]);}),Log[K(0xa4)](b[K(0xa0)]());}}function a97c(){const N=['sep','LIGHT','4133744yOSKvY','light','create','undo','config','No\x20undo\x20handler\x20defined\x20for\x20','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','There\x20is\x20no\x20Meteor\x20application\x20here','function','split','notice','2CwwYfL','number','processAndRunGenerator','existsSync','331476PnJllE','fsi','toString','Client','\x20not\x20found.\x20Cannot\x20undo.','Name','bright','noNeedResource','tableList','aliases','where','readFileSync','chdir','addGenerator','join','mustHaveMeteorInstalled','\x20not\x20found','utf-8','success','_historyFilePath','findGeneratorByName','Location','Generator\x20','\x20generator.\x20Skipping\x20undo.','server','Generator.create\x20requires\x20some\x20options!','error','push','validateMakaSubscription','Generator\x20requires\x20a\x20handler\x20function','cwd','usage','params','4580rBwbOi','Too\x20many\x20arguments','writeHistory','bind','pathFromProject','stringify','requiredEngines','Alias','readHistory','1106065OgxLHo','details','shortDesc','parse','appPathPrefix','find','length','search','call','assign','message','dir','opts','validateMakaProject','slice','addGenerator\x20requires\x20a\x20Generator\x20instance','_undoHandler','history.json','Please\x20run\x20\x22maka\x20install\x20meteor\x22','root','Description','lib','Generator.create\x20requires\x20a\x20handler\x20function!','validateParams','Too\x20few\x20arguments','generatorName','warn','Both','2166192kLxtQO','245332LvUUav','shift','_generators','maxOptsLength','checkWhere','handleGenerateError','apply','includes','replace','getHistoryFileSize','minArgLength','(((.+)+)+)+$','maxArgLength','from','options','resourceName','addToHistory','colLocAnswer','help','pop','minOptsLength','name','_handler','Generator\x20not\x20found','exit','keys','map','pallet','setColorMode','constructor','mustBeInMakaProject','findProjectDirectory','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Generator\x20format\x20is\x20incorrect','client','localeCompare','_genTransactionId','statSync','Generators:','.maka','both','writeFileSync','match','447426tYxwLO'];a97c=function(){return N;};return a97c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0x88))/0x1*(parseInt(f(0x8e))/0x2)+parseInt(f(0x8a))/0x3*(parseInt(f(0x89))/0x4)+parseInt(f(0x84))/0x5+parseInt(f(0x8c))/0x6+parseInt(f(0x87))/0x7+parseInt(f(0x8b))/0x8+-parseInt(f(0x86))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xaa59b));function a98c(){var h=['toString','4810510fBmnEn','search','44730117eSsMgB','8405369MMzNFi','905623IIqpOC','1084jQpPtG','600rTDOKG','9433704oCTGeA','8195178MaRuRo','(((.+)+)+)+$','2qSGbky','constructor'];a98c=function(){return h;};return a98c();}var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var g=a98d;return a98a[g(0x90)]()[g(0x85)](g(0x8d))[g(0x90)]()[g(0x8f)](a98a)['search']('(((.+)+)+)+$');});a98a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x84;var f=c[d];return f;},a98d(a,b);}import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-
|
|
1
|
+
const a99x=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x6d;let f=c[d];return f;},a99d(a,b);}(function(a,b){const u=a99d,c=a();while(!![]){try{const d=parseInt(u(0xbb))/0x1+parseInt(u(0x87))/0x2+parseInt(u(0x7d))/0x3*(parseInt(u(0x7c))/0x4)+-parseInt(u(0xc1))/0x5*(-parseInt(u(0x74))/0x6)+parseInt(u(0x9e))/0x7+parseInt(u(0xae))/0x8*(-parseInt(u(0x89))/0x9)+-parseInt(u(0xa7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x6bdb1));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x6d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0x82)]()[w(0x72)](w(0x88))[w(0x82)]()[w(0x78)](a99a)[w(0x72)](w(0x88));});a99a();function a99c(){const A=['6jumUEx','startup','const','withRest','withGql','toString','.app-tests.','maka:check','apollo','rest-api.','1356314FgVPDr','(((.+)+)+)+$','82827intCes','resourceName','withMethods','tsx','create','length','import\x20\x27./register-','rest','push','api/register-api.js','Fixtures','exit','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','publications.','imports','injectIntoFile','collection','error','/graphql/typeDefs','injectAtBeginningOfFile','GraphQL','96355tgVrQc','api/methods.js','template','api/typeDefs.js','resolvers.','graphql','processAndRunGenerator','rpc-methods.','api/tests.js','15122700fDSnIC','/imports/api','injectAtEndOfFile','if\x20\x5c(typeList','fsi','Resolvers\x20}\x20from\x20\x27','/graphql/resolvers','56zwjwVS','withValue','RPC\x20(Methods)','dir','pathFromApp','apiAnswers','No\x20API\x20boundaries\x20selected','\x27;\x0a','Publications','checkbox','api/api.js','REST\x20API','\x0aimport\x20{\x20resolvers\x20as\x20','350163uFvGBU','api/fixtures.js','withFixtures','api','api/resolvers.js','mdg:validated-method','15875ocSuhj','Resolvers);\x0a\x0a','index.','rewriteDestinationPathForEngine','register-','fixtures.','engines','options','-api\x27;','apply','maka\x20g:api\x20Todos','api/publications.js','import\x20{\x20typeDefs\x20as\x20','maka:rest','search','test','1002RlXMdk','withPubs','server','includes','constructor','TypeDefs);\x0a','checkMeteorPackage','typeList.push(','892316hNXCZR'];a99c=function(){return A;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99x(0x8d)]({'name':a99x(0xbe),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a99x(0xb1)],'examples':[a99x(0x6e)],'description':a99x(0x95)},async function(a,b){const y=a99x;try{const c=this[y(0xab)]['getMakaProjectConfig'](),d=[{'name':y(0xb0),'value':y(0x8b)},{'name':y(0x93),'value':y(0xbd)},{'name':y(0xb6),'value':y(0x75)}];c[y(0xc7)][y(0xbe)]===y(0x90)&&d[y(0x91)]({'name':y(0xb9),'value':y(0x80)});c['engines']['graphql']==='apollo'&&d['push']({'name':y(0x9d),'value':y(0x81)});const f={'type':y(0xb7),'name':y(0xb3),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0xc8)](f);g[y(0x8e)]===0x0&&(Log[y(0x9a)](y(0xb4)),process['exit'](0x1)),await this[y(0xab)][y(0xaf)](c,async()=>{const z=y,h=b[z(0x8a)],i=paramCase(h),j=camelCase(h),k=b[z(0xb1)]?'/'+b[z(0xb1)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c['engines']['api'],'graphql':c['engines'][z(0xa3)],'test':c[z(0xc7)][z(0x73)],'noRename':!![],'withPubs':g[z(0x77)](z(0x75)),'withFixtures':g[z(0x77)](z(0xbd)),'withMethods':g[z(0x77)](z(0x8b)),'withRest':g[z(0x77)](z(0x80))};let m='js';c[z(0xc7)]['js']===z(0x8c)&&(m='ts');await this[z(0xab)][z(0x7a)]([z(0x71),z(0x84),'ddp-rate-limiter',z(0xc0),'mongo'],{'shouldInstall':!![]}),await a99e[z(0xa4)](z(0x99),[i],{'config':c,'where':'server'});c[z(0xc7)][z(0xbe)]===z(0x90)&&(l[z(0x80)]&&await this[z(0xab)]['template']({'srcPath':z(0xb8),'destPath':this[z(0xab)][z(0xb2)]({'pathParts':['imports',z(0xbe),b[z(0xb1)],i,z(0x86)+m]}),'context':l,'config':c}));l['withMethods']&&await this[z(0xab)][z(0xa0)]({'srcPath':z(0x9f),'destPath':this[z(0xab)][z(0xb2)]({'pathParts':[z(0x97),z(0xbe),b[z(0xb1)],i,z(0xa5)+m]}),'context':l,'config':c});l[z(0xbd)]&&await this['fsi'][z(0xa0)]({'srcPath':z(0xbc),'destPath':this['fsi'][z(0xb2)]({'pathParts':['imports',z(0xbe),b[z(0xb1)],i,z(0xc6)+m]}),'context':l,'config':c});c[z(0xc7)]['test']!=='none'&&this[z(0xab)][z(0xa0)]({'srcPath':z(0xa6),'destPath':this['fsi']['pathFromApp']({'pathParts':[z(0x97),z(0xbe),b[z(0xb1)],i,i+z(0x83)+m]}),'context':l,'config':c});l[z(0x75)]&&await this[z(0xab)][z(0xa0)]({'srcPath':z(0x6f),'destPath':this[z(0xab)]['pathFromApp']({'pathParts':[z(0x97),'api',b[z(0xb1)],i,z(0x96)+m]}),'context':l,'config':c});if(c[z(0xc7)][z(0xa3)]===z(0x85)){if(g[z(0x77)](z(0x81))){const o=this[z(0xab)][z(0xb2)]({'pathParts':[z(0x97),'startup',z(0x76),z(0xc3)+c[z(0xc7)]['js']]}),p=this[z(0xab)][z(0xc4)]({'pathParts':[o],'config':c}),q=this[z(0xab)][z(0xb2)]({'pathParts':['imports','api',b[z(0xb1)],i,z(0xa3),'typeDefs.'+m]}),r=z(0xa8)+k+i+z(0x9b);this[z(0xab)][z(0xa0)]({'srcPath':z(0xa1),'destPath':q,'context':l,'config':c}),await this[z(0xab)][z(0x9c)]({'filePath':p,'content':z(0x70)+j+'TypeDefs\x20}\x20from\x20\x27'+r+z(0xb5)}),await this['fsi'][z(0x98)]({'filePath':p,'content':z(0x7b)+j+z(0x79),'begin':z(0x7f),'end':z(0xaa)});const s=this[z(0xab)]['pathFromApp']({'pathParts':[z(0x97),'api',b['dir'],i,z(0xa3),z(0xa2)+m]}),t='/imports/api'+k+i+z(0xad);await this[z(0xab)][z(0xa0)]({'srcPath':z(0xbf),'destPath':s,'context':l,'config':c}),await this['fsi'][z(0x9c)]({'filePath':p,'content':z(0xba)+j+z(0xac)+t+'\x27;'}),await this['fsi'][z(0x98)]({'filePath':p,'content':'resolverList.push('+j+z(0xc2),'begin':z(0x7f),'end':z(0xaa)});}}await this[z(0xab)][z(0xa0)]({'srcPath':z(0x92),'destPath':this[z(0xab)][z(0xb2)]({'pathParts':[z(0x97),z(0x7e),'server',z(0xc5)+i+'-api.'+m]}),'context':l,'config':c,'force':!![]});const n=this['fsi'][z(0xb2)]({'pathParts':[z(0x97),z(0x7e),z(0x76),z(0xc3)+c[z(0xc7)]['js']]});await this[z(0xab)][z(0xa9)]({'filePath':n,'content':z(0x8f)+i+z(0xc9)});});}catch(h){console[y(0x9a)](h),process[y(0x94)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100m=a100d;
|
|
1
|
+
const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0x202))/0x1+-parseInt(j(0x1fa))/0x2*(parseInt(j(0x1fb))/0x3)+-parseInt(j(0x1f6))/0x4+-parseInt(j(0x219))/0x5*(parseInt(j(0x20a))/0x6)+parseInt(j(0x214))/0x7*(-parseInt(j(0x1ff))/0x8)+parseInt(j(0x211))/0x9+parseInt(j(0x21b))/0xa*(parseInt(j(0x1fc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x28e03));function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a100d(a,b);}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x1f8)]()['search'](l(0x204))['toString']()[l(0x215)](a100a)[l(0x1f1)](l(0x204));});function a100c(){const p=['startup','300710ZuapHG','dir','(((.+)+)+)+$','where','template','pathFromApp','withValue','none','12EJoeEG','.app-tests.','col','tsx','collections','engines','collection/tests.js','153018WwybsO','maka:check','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','1106aDUieC','constructor','collection','error','getMakaProjectConfig','502145DOJGcy','index.','3306150aHakff','imports','appPathPrefix','search','checkMeteorPackage','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','test','collection/collection.js','248748DhlAAR','fsi','toString','apply','2VwcVrI','832521MzTbIC','33dIMqjI','resourceName','injectAtEndOfFile','8skNcMk','create'];a100c=function(){return p;};return a100c();}a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100m(0x200)]({'name':a100m(0x216),'aliases':[a100m(0x20c)],'usage':a100m(0x1f3),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a100m(0x203),a100m(0x205)],'description':a100m(0x213),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a100m;try{const c=this[n(0x1f7)][n(0x218)]();await this[n(0x1f7)][n(0x208)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0x1fd)]),'fileName':d,'where':b[o(0x205)],'test':c[o(0x20f)][o(0x1f4)],'noRename':!![]};let g='js';c[o(0x20f)]['js']===o(0x20d)&&(g='ts');await this[o(0x1f7)][o(0x1f2)](['mongo',o(0x212)],{'shouldInstall':!![]}),await this[o(0x1f7)]['template']({'srcPath':o(0x1f5),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x21c),'startup',b['appPathPrefix'],'collections',b[o(0x203)],d+'.'+g]}),'context':f,'config':c});c['engines'][o(0x1f4)]!==o(0x209)&&await this[o(0x1f7)][o(0x206)]({'srcPath':o(0x210),'destPath':this['fsi'][o(0x207)]({'pathParts':['imports',o(0x201),b[o(0x21d)],o(0x20e),b[o(0x203)],d+o(0x20b)+g]}),'context':f,'config':c});const h=b[o(0x203)]?'/'+b[o(0x203)]+'/':'/',i=this[o(0x1f7)][o(0x207)]({'pathParts':['imports','startup',b[o(0x21d)],o(0x21a)+c[o(0x20f)]['js']]});await this['fsi'][o(0x1fe)]({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log[n(0x217)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101m=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x184))/0x1*(-parseInt(k(0x199))/0x2)+-parseInt(k(0x1a4))/0x3+parseInt(k(0x191))/0x4+parseInt(k(0x178))/0x5*(-parseInt(k(0x1b1))/0x6)+parseInt(k(0x1a5))/0x7+parseInt(k(0x18f))/0x8+parseInt(k(0x1a2))/0x9*(-parseInt(k(0x182))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x7c13a));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const l=a101d;return a101a[l(0x19a)]()[l(0x17c)]('(((.+)+)+)+$')[l(0x19a)]()[l(0x192)](a101a)[l(0x17c)](l(0x177));});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x174;let f=c[d];return f;},a101d(a,b);}a101a();import a101e from'path';function a101c(){const p=['Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','setTemplate','10aixbgr','.css','3HCBSUF','test/test.js','true','injectAtBeginningOfFile','components','pages','hooks','string','template','resourceName','template/template.css','2621976qpUOdP','comp','3019652kiJYvc','constructor','client','getMakaProjectConfig','baseDir','dir','fileName','cssCaseName','182644mywwlU','toString','injectTemplateModule','assign','engines','findAppDirectory','warn','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','pathFromProject','7272081ArBJvy','.tests.js','449130GJfUPB','7101759jPhbYV','maka\x20g:comp\x20todos/todos-item','withValue','test','api','ssr','fsi','features','relative','layouts','theme','css','1974bRCRSR','checkNpmPackage','ramda','installNpmPackage','/imports/ui/','(((.+)+)+)+$','5430dRJOPl','pathFromApp','react','import\x20\x27./','search','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','create','className'];a101c=function(){return p;};return a101c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a101m(0x190)];Generator[a101m(0x17e)]({'name':'component','aliases':aliases,'usage':a101m(0x1a0),'shortDesc':a101m(0x180),'validOpts':[{'name':a101m(0x195),'values':[a101m(0x18a),a101m(0x188),a101m(0x189),a101m(0x1ae)]}],'examples':[a101m(0x1a6)]},async function(a,b){const n=a101m;try{const c=this[n(0x1ab)][n(0x19e)](),d=b[n(0x195)]?n(0x176)+b['baseDir']:'/imports/ui/components',f=this[n(0x1ab)][n(0x179)]({'pathParts':[d,b[n(0x196)],paramCase(b[n(0x18d)]),paramCase(b[n(0x18d)])]}),g=await this[n(0x1ab)][n(0x194)]();await this['fsi'][n(0x1a7)](g,async()=>{const o=n;typeof g[o(0x18c)][o(0x1a8)]===o(0x18b)&&(g[o(0x18c)][o(0x1a8)]=g['template'][o(0x1a8)]===o(0x186)?!![]:![],this[o(0x1ab)]['setTemplate'](o(0x1a8),g[o(0x18c)][o(0x1a8)]));typeof g[o(0x18c)][o(0x1b0)]===o(0x18b)&&(g[o(0x18c)][o(0x1b0)]=g[o(0x18c)][o(0x1b0)]===o(0x186)?!![]:![],this[o(0x1ab)]['setTemplate']('css',g[o(0x18c)][o(0x1b0)]));typeof g[o(0x18c)]['js']==='string'&&(g['template']['js']=g['template']['js']===o(0x186)?!![]:![],this[o(0x1ab)][o(0x181)]('js',g['template']['js']));!g[o(0x1ac)]&&(g[o(0x1ac)]={});!b['root']&&!this[o(0x1ab)][o(0x1b2)](o(0x174))&&(Log[o(0x19f)](o(0x17d)),await this[o(0x1ab)][o(0x175)]('ramda',{'cwd':c}));if(!b['root']&&!this[o(0x1ab)][o(0x1b2)](o(0x17a))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[o(0x1ad)](this['fsi'][o(0x1a1)]({}),f),'cssCaseName':paramCase(b[o(0x18d)]),'className':pascalCase(b[o(0x18d)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x18d)]),'graphql':g['engines']['graphql'],'features':g[o(0x1ac)],'client':g[o(0x19d)][o(0x193)],'api':g[o(0x19d)][o(0x1a9)],'ssr':g[o(0x19d)][o(0x1aa)],'test':g[o(0x19d)]['test'],'theme':g['engines'][o(0x1af)],'isLayout':![],'isComponent':!![],'withTranslations':g['features']['withTranslations']};await this[o(0x1ab)][o(0x18c)]({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':o(0x17a),'config':g});g[o(0x19d)][o(0x1a8)]!=='none'&&await this['fsi'][o(0x18c)]({'srcPath':o(0x185),'destPath':f+o(0x1a3),'context':h,'framework':'react','config':g});g['template']['css']&&(await this[o(0x1ab)]['template']({'srcPath':o(0x18e),'destPath':f+o(0x183),'context':Object[o(0x19c)]({},h,{'className':paramCase(b[o(0x18d)])}),'config':g}),await this[o(0x1ab)][o(0x187)]({'filePath':f+'.'+g[o(0x19d)]['js'],'content':o(0x17b)+h[o(0x198)]+'.'+g[o(0x19d)][o(0x1b0)]+'\x27;'}));const i=b['dir']?'/'+b[o(0x196)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[o(0x197)];await this[o(0x1ab)][o(0x19b)](h[o(0x17f)],g,j);});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a102c(){const n=['dev','config','isDocker','create','5468792qpzDfJ','6YdTDUK','1745rhddcm','config/process.env','production','pathFromProject','13820skeCWM','maka\x20{generate,\x20g}:{config}\x20<name>','23690790hreHeN','template','fsi','getMakaProjectConfig','search','9569286sgJiTo','process.env','prod','507421oBOXBv','appName','apply','development','3983796wewJKg','(((.+)+)+)+$','resourceName','toString','withValue','Generate\x20configuration\x20settings.','1064525gxDpJo'];a102c=function(){return n;};return a102c();}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x1c0))/0x1*(parseInt(h(0x1b1))/0x2)+-parseInt(h(0x1c4))/0x3+-parseInt(h(0x1b6))/0x4*(-parseInt(h(0x1b2))/0x5)+parseInt(h(0x1bd))/0x6+-parseInt(h(0x1ab))/0x7+parseInt(h(0x1b0))/0x8+-parseInt(h(0x1b8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xda50d));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x1c7)]()[j(0x1bc)](j(0x1c5))[j(0x1c7)]()['constructor'](a102a)['search']('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a102d(a,b);}Generator[a102k(0x1af)]({'name':a102k(0x1ad),'usage':a102k(0x1b7),'shortDesc':a102k(0x1c9),'validOpts':[a102k(0x1ae)],'examples':['maka\x20g:config\x20production']},async function(a,b){const l=a102k,c=this['fsi'][l(0x1bb)]();await this['fsi'][l(0x1c8)](c,async()=>{const m=l,d={'app':c[m(0x1c1)],'appFileCase':paramCase(c[m(0x1c1)]),'name':pascalCase(b[m(0x1c6)]),'fileName':paramCase(b[m(0x1c6)]),'camelCase':camelCase(b[m(0x1c6)]),'userName':'ubuntu','isDocker':b[m(0x1ae)]};let e=b[m(0x1c6)];if(e===m(0x1ac))e=m(0x1c3);else e===m(0x1bf)&&(e=m(0x1b4));const f=this[m(0x1ba)][m(0x1b5)]({'pathParts':['config',e,'settings.json']});await this[m(0x1ba)][m(0x1b9)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x1ae)]){const g=this['fsi'][m(0x1b5)]({'pathParts':[m(0x1ad),e,m(0x1be)]});await this[m(0x1ba)][m(0x1b9)]({'srcPath':m(0x1b3),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103l=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d
|
|
1
|
+
const a103l=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x131))/0x1*(parseInt(j(0x136))/0x2)+parseInt(j(0x124))/0x3*(-parseInt(j(0x134))/0x4)+-parseInt(j(0x119))/0x5*(parseInt(j(0x123))/0x6)+-parseInt(j(0x128))/0x7+parseInt(j(0x13b))/0x8+parseInt(j(0x12a))/0x9*(-parseInt(j(0x115))/0xa)+parseInt(j(0x13a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x33bd4));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const k=a103d;return a103a['toString']()[k(0x146)]('(((.+)+)+)+$')['toString']()[k(0x135)](a103a)[k(0x146)](k(0x129));});a103a();function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x115;let f=c[d];return f;},a103d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a103l(0x117)]({'name':a103l(0x12e),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a103l(0x122),'validOpts':[a103l(0x12b)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103l(0x143),'values':[a103l(0x12c),'mssql',a103l(0x141)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20g:dbc\x20azure\x20--type=mssql','maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const m=a103l;try{const c=await this[m(0x125)][m(0x130)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[m(0x138)]),g={'name':pascalCase(b[m(0x138)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[m(0x11f)]['js'],'noRename':!![]};await this['fsi'][m(0x12d)](c,async()=>{const n=m;let h='js';c[n(0x11f)]['js']===n(0x132)&&(h='ts');b[n(0x143)]===n(0x12c)&&!this[n(0x125)][n(0x145)]('pg')&&(Log['warn'](n(0x137)),await this[n(0x125)][n(0x116)]('pg',{'cwd':d}));b[n(0x143)]===n(0x127)&&!this[n(0x125)]['checkNpmPackage']('mssql')&&(Log[n(0x12f)](n(0x121)),await this[n(0x125)]['installNpmPackage'](n(0x127),{'cwd':d}));b[n(0x143)]===n(0x141)&&!this[n(0x125)]['checkNpmPackage'](n(0x11c))&&(Log[n(0x12f)](n(0x144)),await this[n(0x125)][n(0x116)]('better-sqlite3',{'cwd':d}));await this[n(0x125)][n(0x13c)]({'srcPath':'dbc/config.js','destPath':this[n(0x125)][n(0x11e)]({'pathParts':[n(0x11d),'startup','server',n(0x12e),b[n(0x12b)],f,n(0x142)+h]}),'context':g,'config':c}),await this[n(0x125)][n(0x13c)]({'srcPath':n(0x11a),'destPath':this[n(0x125)][n(0x11e)]({'pathParts':['imports',n(0x11b),n(0x139),n(0x12e),b[n(0x12b)],f,n(0x13e)+h]}),'context':g,'config':c}),await this['fsi']['template']({'srcPath':n(0x13f),'destPath':this[n(0x125)]['pathFromApp']({'pathParts':[n(0x11d),n(0x11b),n(0x139),n(0x133)+f+'-dbc.'+h]}),'context':g,'config':c});const i=this['fsi'][n(0x11e)]({'pathParts':[n(0x11d),n(0x11b),'server',n(0x118)+c[n(0x11f)]['js']]});await this[n(0x125)][n(0x126)]({'filePath':i,'content':n(0x120)+f+n(0x13d)});});}catch(h){Log[m(0x140)](h);}});function a103c(){const o=['engines','import\x20\x27./register-','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','498vAPXFO','3YubKaZ','fsi','injectAtEndOfFile','mssql','2966110SMUBal','(((.+)+)+)+$','1599039JltLZy','dir','pgsql','withValue','dbc','warn','getMakaProjectConfig','365343HvbfhT','tsx','register-','1198928tmsYWE','constructor','2DcxjDH','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','resourceName','server','22717365bWCSuS','67432YhEGjZ','template','-dbc\x27;','conn.','dbc/register-dbc.js','error','sqlite','config.','type','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','checkNpmPackage','search','20DZmQHf','installNpmPackage','create','index.','25155DkjawU','dbc/conn.js','startup','better-sqlite3','imports','pathFromApp'];a103c=function(){return o;};return a103c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;
|
|
1
|
+
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x17a))/0x1+parseInt(f(0x177))/0x2*(parseInt(f(0x17d))/0x3)+-parseInt(f(0x184))/0x4+-parseInt(f(0x174))/0x5+parseInt(f(0x183))/0x6+parseInt(f(0x18c))/0x7+-parseInt(f(0x17b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xc0014));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x18d)]()[h(0x178)](h(0x187))['toString']()['constructor'](a104a)[h(0x178)](h(0x187));});function a104c(){const l=['fsi','1841652nXpwgx','search','app.tar.gz','266254gHxIUF','12925904QdIzTP','getGlobalConfig','3ISvyPS','apply','dockerfile','template','cert','getMakaProjectConfig','6820290PsCnpD','76456Kqotcg','join','appName','(((.+)+)+)+$','create','docker/Dockerfile','maka\x20g:dockerfile','service','8053164BnUwUj','toString','findProjectDirectory','Dockerfile','error','withValue','Generate\x20an\x20updated\x20dockerfile','2602175hWAgaR','isFile'];a104c=function(){return l;};return a104c();}a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x170;let f=c[d];return f;},a104d(a,b);}import a104e from'path';Generator[a104i(0x188)]({'name':a104i(0x17f),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a104i(0x173),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x18a)]},async function(){const j=a104i;try{const a=await this[j(0x176)][j(0x182)](),b=await this[j(0x176)][j(0x17c)](),c=this[j(0x176)][j(0x18e)]();await this[j(0x176)][j(0x172)](a,async()=>{const k=j,d={'app':b[k(0x186)],'config':a,'appPath':a104e[k(0x185)](c,'app'),'bundlePath':a104e[k(0x185)](c,'build',k(0x179)),'useCert':this[k(0x176)][k(0x175)](b[k(0x181)])};await this[k(0x176)][k(0x180)]({'srcPath':k(0x189),'destPath':a104e[k(0x185)](c,k(0x170)),'framework':k(0x18b),'context':d,'config':a});});}catch(d){Log[j(0x171)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105n=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0xab))/0x1*(-parseInt(l(0x9f))/0x2)+-parseInt(l(0x7d))/0x3*(parseInt(l(0xb2))/0x4)+-parseInt(l(0x80))/0x5*(-parseInt(l(0x9e))/0x6)+-parseInt(l(0xa4))/0x7*(-parseInt(l(0x83))/0x8)+parseInt(l(0xb6))/0x9+-parseInt(l(0x8e))/0xa*(parseInt(l(0x8c))/0xb)+-parseInt(l(0x92))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xb50ff));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x85)]()[m(0xa6)](m(0x98))[m(0x85)]()['constructor'](a105a)[m(0xa6)](m(0x98));});function a105c(){const q=['28744HinhXY','graphql','toString','hooks','template','hook/hook.js','injectAtBeginningOfFile','.js','features','55583xnfovb','pathFromProject','90zEZEcY','setTemplate','test/test.js','fsi','26191860kETGwY','/imports/ui/','fileName','warn','relative','template/template.css','(((.+)+)+)+$','react','withTranslations','@apollo/client\x20isomorphic-fetch','cssCaseName','engines','15306Bfigit','134fMnbQK','checkNpmPackage','force','maka\x20g:hook\x20cool-hook','className','371msepsG','create','search','baseDir','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','components','dir','15558IQnBod','withValue','error','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','pathFromApp','css','hook','824404LovclL','installNpmPackage','assign','@apollo/client','8822358cfCMug','injectTemplateModule','resourceName','/imports/ui/hooks','string','layouts','Creating\x20','9hdZTzo','theme','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','2695qHZmXA','\x20hook...','.css'];a105c=function(){return q;};return a105c();}a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x7d;let f=c[d];return f;},a105d(a,b);}Generator[a105n(0xa5)]({'name':a105n(0xb1),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a105n(0xa8),'validOpts':[{'name':a105n(0xa7),'values':[a105n(0x86),a105n(0xa9),'pages',a105n(0xbb)]},{'name':a105n(0xa1),'boolFlag':!![]}],'examples':[a105n(0xa2)],'description':'\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20'},async function(a,b){const o=a105n;Log['notice'](o(0xbc)+b[o(0xb8)]+o(0x81));try{const c=this[o(0x91)][o(0xa0)](o(0x99));if(!c){Log[o(0xad)](o(0x7f));throw new UsageError();}const d=this[o(0x91)][o(0xaf)](b),f=b[o(0xa7)]?o(0x93)+b[o(0xa7)]:o(0xb9),g=this[o(0x91)]['pathFromApp']({'pathParts':[f,b['dir'],paramCase(b[o(0xb8)]),paramCase(b[o(0xb8)])]}),h=await this[o(0x91)]['getMakaProjectConfig']();await this['fsi'][o(0xac)](h,async()=>{const p=o;typeof h[p(0x87)][p(0xb0)]===p(0xba)&&(h['template']['css']=h[p(0x87)]['css']==='true'?!![]:![],this[p(0x91)][p(0x8f)]('css',h[p(0x87)]['css']));h['engines']['graphql']==='apollo'&&!this['fsi'][p(0xa0)](p(0xb5))&&(Log[p(0x95)](p(0xae)),await this[p(0x91)][p(0xb3)](p(0x9b),{'cwd':d}));const i={'cssCaseName':paramCase(b[p(0xb8)]),'camelCaseName':camelCase(b[p(0xb8)]),'className':pascalCase(b[p(0xb8)]),'name':pascalCase(b['resourceName']),'graphql':h[p(0x9d)][p(0x84)],'theme':h['engines'][p(0x7e)],'features':h[p(0x8b)],'myPath':a105e[p(0x96)](this[p(0x91)][p(0x8d)]({}),g),'fileName':paramCase(b[p(0xb8)]),'isComponent':![],'isLayout':![],'withTranslations':h[p(0x8b)][p(0x9a)]};await this[p(0x91)][p(0x87)]({'srcPath':p(0x88),'destPath':g+p(0x8a),'context':i,'config':h,'framework':p(0x99),'force':b['force']});h[p(0x87)]['css']&&(await this[p(0x91)][p(0x87)]({'srcPath':p(0x97),'destPath':g+p(0x82),'context':Object[p(0xb4)]({},i,{'className':i[p(0x9c)]}),'config':h,'force':b[p(0xa1)]}),await this[p(0x91)][p(0x89)]({'filePath':g+'.'+h[p(0x9d)]['js'],'content':'import\x20\x27./'+i[p(0x94)]+'.'+h['engines'][p(0xb0)]+'\x27;'}));h[p(0x9d)]['test']!=='none'&&await this[p(0x91)][p(0x87)]({'srcPath':p(0x90),'destPath':g+'.app-tests.js','framework':p(0x99),'context':i,'config':h,'force':b[p(0xa1)]});const j=b['dir']?'/'+b[p(0xaa)]+'/':'/',k=''+f+j+i[p(0x94)]+'/'+i['fileName'];await this[p(0x91)][p(0xb7)](i[p(0xa3)],h,k);});}catch(i){Log['error'](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=parseInt(f(0x16d))/0x1*(-parseInt(f(0x172))/0x2)+-parseInt(f(0x176))/0x3*(parseInt(f(0x171))/0x4)+parseInt(f(0x178))/0x5*(parseInt(f(0x16f))/0x6)+-parseInt(f(0x17a))/0x7*(-parseInt(f(0x17b))/0x8)+-parseInt(f(0x170))/0x9+-parseInt(f(0x16e))/0xa+parseInt(f(0x174))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x25def));function a106c(){var h=['1062009qieLlC','56860PZgaBX','2XmlzQF','search','3924855wdiwhb','toString','39FvJYCn','constructor','1131085EZkBou','(((.+)+)+)+$','949389AuOoDd','8vwwQSw','127797JHoYYY','1329370OFXQKx','6vCnMPg'];a106c=function(){return h;};return a106c();}function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x16d;var f=c[d];return f;},a106d(a,b);}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var g=a106d;return a106a['toString']()[g(0x173)]('(((.+)+)+)+$')[g(0x175)]()[g(0x177)](a106a)['search'](g(0x179));});a106a();import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a107d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0x145))/0x1*(parseInt(f(0x14c))/0x2)+-parseInt(f(0x148))/0x3+-parseInt(f(0x143))/0x4*(-parseInt(f(0x142))/0x5)+-parseInt(f(0x149))/0x6+-parseInt(f(0x14e))/0x7*(-parseInt(f(0x144))/0x8)+-parseInt(f(0x147))/0x9*(parseInt(f(0x146))/0xa)+parseInt(f(0x14d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x38082));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var g=a107d;return a107a['toString']()[g(0x141)](g(0x14a))[g(0x14b)]()['constructor'](a107a)['search']('(((.+)+)+)+$');});function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x141;var f=c[d];return f;},a107d(a,b);}a107a();import'./esri.generator.js';import'./map.esri.gen.js';function a107c(){var h=['1553776XNhEja','2mtSuGX','30klXMTv','464958oUSTDm','402771fWojCl','1266054fyCoxm','(((.+)+)+)+$','toString','94422YYOeZi','2683109SBaVdp','7mOTVbI','search','197195eQPoNB','20lzoSNI'];a107c=function(){return h;};return a107c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a108c(){const k=['10KWAMlL','21whnotX','13282587yDDBrP','apply','create','928nmpuGN','900984FUMoGc','221804CjUGmX','Esri\x20Kit\x20generated\x20successfully','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','maka\x20g:kit:e','85463nSqtke','623432JtREiQ','toString','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20kit\x20for\x20Esri\x20Maps.\x20Starting\x20with\x20a\x20basic\x20map,\x0a\x20\x20\x20\x20but\x20with\x20the\x20ability\x20to\x20add\x20more\x20components\x20to\x20the\x20kit.\x0a\x20\x20','/foo/bar','4764960KuojUO','(((.+)+)+)+$','2669708pBsifM'];a108c=function(){return k;};return a108c();}function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x13e;let f=c[d];return f;},a108d(a,b);}const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=parseInt(f(0x14d))/0x1+-parseInt(f(0x13f))/0x2+-parseInt(f(0x141))/0x3*(-parseInt(f(0x147))/0x4)+parseInt(f(0x151))/0x5+parseInt(f(0x146))/0x6+-parseInt(f(0x14c))/0x7*(-parseInt(f(0x145))/0x8)+parseInt(f(0x142))/0x9*(-parseInt(f(0x140))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xafda4));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x14e)]()['search'](h(0x13e))[h(0x14e)]()['constructor'](a108a)['search']('(((.+)+)+)+$');});a108a();import{Generator}from'../../../generator.js';import a108e from'../kit.js';const EsriGen=Generator[a108i(0x144)]({'name':'esri','aliases':['e'],'usage':a108i(0x14a),'noNeedResource':!![],'shortDesc':a108i(0x149),'validOpts':[''],'isPro':!![],'examples':[a108i(0x14b)],'description':a108i(0x14f)},async function(){const j=a108i;return{'success':!![],'message':j(0x148),'details':{'filesCreated':[j(0x150)],'filesUpdated':['/foo']}};},async function(){},a108e);export default EsriGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109r=a109d;(function(a,b){const p=a109d,c=a();while(!![]){try{const d=-parseInt(p(0x1de))/0x1*(parseInt(p(0x1e3))/0x2)+parseInt(p(0x1db))/0x3+-parseInt(p(0x1d8))/0x4+parseInt(p(0x1b7))/0x5+parseInt(p(0x1dc))/0x6*(-parseInt(p(0x1b4))/0x7)+-parseInt(p(0x1b8))/0x8*(-parseInt(p(0x1c3))/0x9)+parseInt(p(0x1be))/0xa*(parseInt(p(0x1c9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x30914));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const q=a109d;return a109a['toString']()[q(0x1c5)](q(0x1da))['toString']()[q(0x1d4)](a109a)[q(0x1c5)](q(0x1da));});a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a109d(a,b);}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a109e from'./esri.generator.js';import a109f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';function a109c(){const u=['error','kit/esri/map/','11WlcXam','injectImport','split','<div\x20id=\x22map-component\x22>','map','injectIntoFile','react','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','injectTemplateModule','engines','dir','constructor','ssr','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','<div\x20id=\x22map-hook\x22>','263600rpoYfI','fsi','(((.+)+)+)+$','621150tsnnNo','6iRuwRg','.js','432MxeEVe','@esri/react-arcgis','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20map\x20component\x20in\x20the\x20/imports/ui/hooks\x20directory.\x0a\x0a\x20\x20\x20\x20It\x27ll\x20also\x20create\x20a\x20page\x20component\x20in\x20the\x20/imports/ui/pages/map\x20directory.\x0a\x0a\x20\x20\x20\x20The\x20map\x20component\x20will\x20be\x20named\x20\x27BasicMap\x27\x20by\x20default.\x0a\x0a\x20\x20','template','getMakaProjectConfig','1826WinDaH','2708909WvUjTr','baseDir','pathFromApp','628510eQckaI','350128LyUtDl','REACT','create','true','processAndRunGenerator','bright','6259510bEcyXl','checkNpmPackage','basic-map','appName','replaceAll','18rloQCy','Generating\x20a\x20map\x20component','search','findProjectDirectory'];a109c=function(){return u;};return a109c();}import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a109r(0x1ba)]({'name':'map','aliases':['m'],'usage':a109r(0x1d6),'shortDesc':'Generate\x20an\x20Esri\x20map\x20component','validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a109r(0x1b9)],'ssr':SsrEngines['FALSE']},'description':a109r(0x1e0)},async function(a,b){const s=a109r;try{Log[s(0x1bd)](s(0x1c4));const c=s(0x1c0);await this[s(0x1d9)][s(0x1bf)]([s(0x1df),'esri-loader'],{'shouldInstall':!![]});const d=this[s(0x1d9)][s(0x1c6)](),f=this[s(0x1d9)][s(0x1e2)](),g=f[s(0x1d2)][s(0x1d5)]===s(0x1bb),h=await a109f[s(0x1bc)]('page',[s(0x1cd)],{'cwd':d,'config':f}),i={'name':headerCase(f[s(0x1c1)])[s(0x1c2)]('-','\x20'),'componentName':pascalCase(c)},j=b[s(0x1b5)]?'/imports/ui/'+b['baseDir']:'/imports/ui/hooks',k=this[s(0x1d9)][s(0x1b6)]({'pathParts':[j,b['dir'],paramCase(c),paramCase(c)]});this['fsi']['withValue'](f,async()=>{const t=s;this[t(0x1d9)][t(0x1e1)]({'srcPath':t(0x1c8)+c+t(0x1dd),'destPath':k+'.js','framework':t(0x1cf),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[s(0x1d3)]+'/'+c+'/'+c;await this[s(0x1d9)][s(0x1d1)](c,f,l);const m=h[s(0x1cb)]('/'),n=this[s(0x1d9)][s(0x1b6)]({'pathParts':m});await this[s(0x1d9)][s(0x1ca)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':'/imports/startup/client/templates','isNamedExport':!![]}),await this['fsi'][s(0x1ce)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+s(0x1d0),'begin':[s(0x1d7),s(0x1cc)],'end':['</div>'],'replace':!![]});}catch(o){Log[s(0x1c7)](o),process['exit'](0x1);}},async function(){},a109e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-
|
|
1
|
+
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x198;let f=c[d];return f;},a110d(a,b);}const a110h=a110d;function a110c(){const i=['kit','115677nMdjlI','3xiBjLN','create','(((.+)+)+)+$','747639poNLND','2597497DRWlIg','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','1568044JypOmD','6779080NkOQxY','255106EtZsES','13712960jBYywl','constructor','3480WEmZsV','30mEXjzx','toString','maka\x20{generate,\x20g}:{kit}\x20<name>'];a110c=function(){return i;};return a110c();}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x19c))/0x1+-parseInt(f(0x1a1))/0x2+parseInt(f(0x199))/0x3*(-parseInt(f(0x19f))/0x4)+parseInt(f(0x1a0))/0x5+-parseInt(f(0x1a5))/0x6*(parseInt(f(0x19d))/0x7)+-parseInt(f(0x1a2))/0x8+-parseInt(f(0x198))/0x9*(-parseInt(f(0x1a4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xf22ee));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const g=a110d;return a110a['toString']()['search']('(((.+)+)+)+$')[g(0x1a6)]()[g(0x1a3)](a110a)['search'](g(0x19b));});a110a();import{Generator}from'../../generator.js';const KitGen=Generator[a110h(0x19a)]({'name':a110h(0x1a8),'aliases':['k'],'usage':a110h(0x1a7),'shortDesc':a110h(0x19e),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit','maka\x20g:k']},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a111d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0x1b6))/0x1*(parseInt(f(0x1b1))/0x2)+parseInt(f(0x1b7))/0x3*(-parseInt(f(0x1b3))/0x4)+-parseInt(f(0x1b4))/0x5+parseInt(f(0x1ab))/0x6+-parseInt(f(0x1b2))/0x7+-parseInt(f(0x1ac))/0x8*(parseInt(f(0x1af))/0x9)+parseInt(f(0x1ae))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x7913f));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var g=a111d;return a111a['toString']()[g(0x1b0)]('(((.+)+)+)+$')[g(0x1b5)]()[g(0x1ad)](a111a)[g(0x1b0)]('(((.+)+)+)+$');});a111a();function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x1ab;var f=c[d];return f;},a111d(a,b);}function a111c(){var h=['constructor','14443760LKczTF','4940829YIvHyZ','search','26hFaOha','3680474zSRhas','11604CIsZBl','2488185rXFiCb','toString','33208WEOMzE','417hGoryC','3572964WvssYR','8riBQvB'];a111c=function(){return h;};return a111c();}import'./mui.generator.js';import'./frame.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112z=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d=-parseInt(x(0x18b))/0x1*(parseInt(x(0x19c))/0x2)+parseInt(x(0x177))/0x3*(parseInt(x(0x196))/0x4)+-parseInt(x(0x193))/0x5+parseInt(x(0x192))/0x6+-parseInt(x(0x198))/0x7*(-parseInt(x(0x194))/0x8)+-parseInt(x(0x170))/0x9*(-parseInt(x(0x183))/0xa)+-parseInt(x(0x186))/0xb*(parseInt(x(0x188))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x5ef0b));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const y=a112d;return a112a['toString']()[y(0x16d)]('(((.+)+)+)+$')[y(0x189)]()[y(0x16e)](a112a)[y(0x16d)](y(0x17b));});a112a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a112e from'path';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x163;let f=c[d];return f;},a112d(a,b);}import a112f from'./mui.generator.js';function a112c(){const C=['679261LenEWh','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','36PKoOtN','toString','checkMeteorPackage','80909qKQDTP','{this.props.children}','withValue','MATERIAL','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','findAppDirectory','kit/mui/frame/drawers/','374952LtUdUw','3052205vUVeFb','24ABBaeL','checkbox','13628QMzXCN','appName','1613717cyumni','REACT','injectImport','join','16tWRoHm','basic-drawer','tsx','test','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','layouts','/imports/startup/lib/templates','basic-app-bar','session','dir','pathFromApp','template','maka\x20g:k:m:f','{props.children}','/imports/ui/hooks','options','maka\x20generate:kit:mui:frame','imports','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','{\x20props.children\x20}','app-tests','search','constructor','fsi','3383226DRJjIQ','{\x20this.props.children\x20}','/imports/startup/client/templates','baseDir','injectIntoFile','tests','engines','618pBKqHX','react','kit/mui/frame/app-bars/','\x20/>\x0a','(((.+)+)+)+$','.js','ssr','injectTemplateModule','getDirectories','error','<div\x20id=\x22','getFiles','10VNQXKH','-hook\x22>','-component\x22>'];a112c=function(){return C;};return a112c();}import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':'frame','aliases':['f'],'usage':a112z(0x187),'shortDesc':a112z(0x18f),'validOpts':[a112z(0x1a1)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a112z(0x18e)],'client':ClientEngines[a112z(0x199)]},'examples':[a112z(0x168),a112z(0x164)],'description':a112z(0x16a)},async function(a,b){const A=a112z;try{const c=A(0x1a3),d=A(0x19d),f=this['fsi']['getMakaProjectConfig'](),g=f[A(0x176)][A(0x17d)]==='true';await this[A(0x16f)][A(0x18a)](A(0x1a4),{'shouldInstall':!![]});const h=this['fsi'][A(0x190)](),i=a112e['join'](h,A(0x169),'ui','layouts'),j=this['fsi'][A(0x17f)](i),k=await Actions[A(0x167)]({'type':A(0x195),'name':'layouts','message':A(0x1a0),'choices':j});if(k[A(0x1a1)]['length']===0x0){Log[A(0x180)]('No\x20layouts\x20selected');return;}const l=b[A(0x173)]?'/imports/ui/'+b[A(0x173)]:A(0x166),m=this[A(0x16f)][A(0x1a6)]({'pathParts':[l,b[A(0x1a5)],paramCase(c),paramCase(c)]}),n=this[A(0x16f)][A(0x1a6)]({'pathParts':[l,b['dir'],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[A(0x197)])['replaceAll']('-','\x20')};await this['fsi'][A(0x18d)](f,async()=>{const B=A;await this['fsi'][B(0x163)]({'srcPath':B(0x179)+c+B(0x17c),'destPath':m+'.js','framework':B(0x178),'context':o,'config':f,'force':![],'ignore':![]}),await this[B(0x16f)][B(0x163)]({'srcPath':B(0x191)+d+B(0x17c),'destPath':n+B(0x17c),'framework':B(0x178),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[A(0x1a5)]+'/'+c+'/'+c;await this[A(0x16f)][A(0x17e)](c,f,p);const q=''+l+b[A(0x1a5)]+'/'+d+'/'+d;await this[A(0x16f)][A(0x17e)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this['fsi'][A(0x182)](a112e[A(0x19b)](i,s),{'extensions':['jsx',A(0x19e)],'omit':[A(0x16c),A(0x175),A(0x19f)]});for(const u of t){const v=a112e[A(0x19b)](i,s,u);await this['fsi'][A(0x19a)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':A(0x172),'isNamedExport':!![]}),await this['fsi'][A(0x174)]({'filePath':v,'content':'<'+pascalCase(c)+'\x20/>\x0a','begin':[A(0x181)+s+A(0x185),A(0x181)+s+A(0x184)],'end':[A(0x18c),A(0x171),A(0x165),A(0x16b)]}),await this[A(0x16f)]['injectImport']({'filePath':v,'importName':pascalCase(d),'modulePath':g?A(0x1a2):'/imports/startup/client/templates','isNamedExport':!![]}),await this[A(0x16f)][A(0x174)]({'filePath':v,'content':'<'+pascalCase(d)+A(0x17a),'begin':[A(0x181)+s+A(0x185),A(0x181)+s+'-hook\x22>'],'end':['{this.props.children}',A(0x171),A(0x165),A(0x16b)]});}}}catch(w){Log[A(0x180)](w);}},async function(){},a112f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113i=a113d;function a113c(){const j=['32GhUVkb','5065896itzCKv','159513PhnbHR','9uPjOxy','constructor','3454871QTYbKe','mui','(((.+)+)+)+$','2939005ohXtdf','6LrZchY','apply','483053sHxteh','639660jqACrG','5273960GEIWzc','toString','search','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>'];a113c=function(){return j;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x177;let f=c[d];return f;},a113d(a,b);}(function(a,b){const f=a113d,c=a();while(!![]){try{const d=parseInt(f(0x186))/0x1+parseInt(f(0x187))/0x2+parseInt(f(0x17d))/0x3*(-parseInt(f(0x17b))/0x4)+parseInt(f(0x183))/0x5*(-parseInt(f(0x184))/0x6)+parseInt(f(0x180))/0x7+parseInt(f(0x17c))/0x8+-parseInt(f(0x17e))/0x9*(parseInt(f(0x177))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x5eff4));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a[h(0x178)]()[h(0x179)](h(0x182))[h(0x178)]()[h(0x17f)](a113a)[h(0x179)](h(0x182));});a113a();import{Generator}from'../../../generator.js';import a113e from'../kit.js';const MuiGen=Generator['create']({'name':a113i(0x181),'aliases':['m'],'usage':a113i(0x17a),'noNeedResource':!![],'shortDesc':'Material-UI\x20Kit','validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:m']},async function(){throw'NIE';},async function(){},a113e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d
|
|
1
|
+
const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=-parseInt(l(0x131))/0x1*(-parseInt(l(0x11f))/0x2)+-parseInt(l(0x11a))/0x3*(parseInt(l(0x142))/0x4)+parseInt(l(0x140))/0x5+-parseInt(l(0x126))/0x6+parseInt(l(0x149))/0x7*(-parseInt(l(0x139))/0x8)+parseInt(l(0x127))/0x9+parseInt(l(0x14b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x5fb4c));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a[n(0x129)]()['search']('(((.+)+)+)+$')['toString']()[n(0x14a)](a114a)['search'](n(0x134));});a114a();import a114e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a114c(){const r=['withHook','true','maka\x20g:l\x20web/safari','578NvIUfF','css','apply','checkNpmPackage','react','hook/hook.js','getMakaProjectConfig','2347536TEqFEQ','2743119xFxRLt','withHooks','toString','setTemplate','api','withValue','template','fsi','engines','maka\x20g:layout\x20mobile/iPhone8','1688LabMRI','fileName','string','(((.+)+)+)+$','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','create','warn','injectTemplateModule','307512WUbahI','test','dir','features','.js','pathFromApp','ssr','1328410XXbPQd','assign','2444ZwhvVd','component/component.js','ramda','theme','resourceName','installNpmPackage','.css','126JQcPmb','constructor','7290860DnMrze','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','template/template.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','client','1533pMsQGF','.app-tests.js'];a114c=function(){return r;};return a114c();}const aliases=['l'];function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x116;let f=c[d];return f;},a114d(a,b);}Generator[a114o(0x136)]({'name':'layout','aliases':aliases,'usage':a114o(0x116),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a114o(0x130),a114o(0x11e)]},async function(a,b){const p=a114o,c='/imports/ui/layouts',d=this['fsi']['findAppDirectory'](),e=this[p(0x12e)][p(0x13e)]({'pathParts':[c,b[p(0x13b)],paramCase(b[p(0x146)]),paramCase(b[p(0x146)])]}),f=this[p(0x12e)][p(0x125)]();await this['fsi'][p(0x12c)](f,async()=>{const q=p;typeof f[q(0x12d)][q(0x13a)]==='string'&&(f[q(0x12d)][q(0x13a)]=f[q(0x12d)][q(0x13a)]===q(0x11d)?!![]:![],this[q(0x12e)]['setTemplate'](q(0x13a),f[q(0x12d)][q(0x13a)]));typeof f['template'][q(0x120)]==='string'&&(f[q(0x12d)][q(0x120)]=f[q(0x12d)]['css']==='true'?!![]:![],this['fsi']['setTemplate'](q(0x120),f['template'][q(0x120)]));typeof f['template']['js']===q(0x133)&&(f[q(0x12d)]['js']=f[q(0x12d)]['js']===q(0x11d)?!![]:![],this[q(0x12e)][q(0x12a)]('js',f['template']['js']));!f[q(0x13c)]&&(f[q(0x13c)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[q(0x122)](q(0x144))&&(Log['warn'](q(0x118)),this[q(0x12e)][q(0x147)](q(0x144),{'cwd':d}));if(h&&!this[q(0x122)]('react')){Log[q(0x137)](q(0x135));return;}const i={'name':pascalCase(b[q(0x146)]),'myPath':a114e['relative'](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b[q(0x146)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x12f)]['graphql'],'features':f[q(0x13c)],'client':f[q(0x12f)][q(0x119)],'api':f[q(0x12f)][q(0x12b)],'ssr':f[q(0x12f)][q(0x13f)],'test':f[q(0x12f)][q(0x13a)],'theme':f[q(0x12f)][q(0x145)],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0x13c)]['withTranslations']};f[q(0x13c)]?.[q(0x128)]||b[q(0x11c)]?await this[q(0x12e)][q(0x12d)]({'srcPath':q(0x124),'destPath':e+'.js','framework':'react','context':i,'config':f}):await this[q(0x12e)][q(0x12d)]({'srcPath':q(0x143),'destPath':e+q(0x13d),'framework':q(0x123),'context':i,'config':f});f['engines'][q(0x13a)]!=='none'&&await this[q(0x12e)][q(0x12d)]({'srcPath':'test/test.js','destPath':e+q(0x11b),'framework':q(0x123),'context':i,'config':f});f[q(0x12d)]['css']&&(await this[q(0x12e)][q(0x12d)]({'srcPath':q(0x117),'destPath':e+q(0x148),'context':Object[q(0x141)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),await this[q(0x12e)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x12f)]['js'],'content':'import\x20\x27./'+i[q(0x132)]+'.'+f[q(0x12f)][q(0x120)]+'\x27;'}));const j=b[q(0x13b)]?'/'+b[q(0x13b)]+'/':'/',k=''+c+j+i[q(0x132)]+'/'+i[q(0x132)];await this[q(0x12e)][q(0x138)](i['className'],f,k);});});
|