@maka/maka-cli 4.8.13 → 4.8.14
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/undo.js +1 -0
- 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(0x22a))/0x1+-parseInt(r(0x1da))/0x2*(parseInt(r(0x1e4))/0x3)+parseInt(r(0x1c9))/0x4+parseInt(r(0x1ed))/0x5*(parseInt(r(0x1bc))/0x6)+parseInt(r(0x205))/0x7+parseInt(r(0x23a))/0x8*(-parseInt(r(0x1fe))/0x9)+-parseInt(r(0x1e6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x57ef7));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(0x232)]()['search'](s(0x1ee))[s(0x232)]()[s(0x229)](a97a)[s(0x1db)](s(0x1ee));});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';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';function a97c(){const L=['_genTransactionId','options','Client','pallet','map','resourceName','localeCompare','name','tableList','match','Generator\x20','Name','4899447kXGjfa','_generators','client','server','message','minOptsLength','bind','792512lehQuP','existsSync','checkWhere','help','listGenerators','addToHistory','utf-8','Generator.create\x20requires\x20a\x20handler\x20function!','Too\x20many\x20options','slice','where','function','join','setColorMode','Generator\x20format\x20is\x20incorrect','config','readHistory','noNeedResource','success','processAndRunGenerator','Description','findProjectDirectory','writeHistory','exit','replace','length','Alias','pop','assign','history.json','opts','readFileSync','requiredEngines','_historyFilePath','dir','list','constructor','423718WeLteG','call','chdir','findGeneratorByName','Please\x20run\x20\x22maka\x20install\x20meteor\x22','keys','size','stringify','toString','forEach','\x20not\x20found','params','Both','Generator\x20requires\x20a\x20name','Generator\x20requires\x20a\x20handler\x20function','invoke','8VjtHTr','validateParams','getGlobalConfig','appPathPrefix','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','usage','6UNyTNX','from','pathFromProject','warn','fsi','maxOptsLength','minArgLength','sort','Server','Too\x20many\x20arguments','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','push','No\x20resource\x20name\x20specified','2844992UgCNgx','notice','number','error','lib','root','maxArgLength','undo','details','Generators:','parse','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','handleGenerateError','find','_undoHandler','writeFileSync','cwd','6Eqisot','search','both','\x20generator.\x20Skipping\x20undo.','generatorName','deepen','.maka','_handler','create','mustHaveMeteorInstalled','469548IdVUtg','No\x20undo\x20handler\x20defined\x20for\x20','5785600spfNNP','Nothing\x20to\x20undo.','mustBeInMakaProject','Generator\x20not\x20found','colLocAnswer','Location','validateMakaSubscription','3522460JVDxlh','(((.+)+)+)+$','validateEngines','split','aliases'];a97c=function(){return L;};return a97c();}let _prevGen='';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1b7;let f=c[d];return f;},a97d(a,b);}const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const t=a97d,c=process[t(0x1d9)]();let d=null;try{process[t(0x22c)](a),d=await b();}finally{process[t(0x22c)](c);}return d;}export class Generator extends Tool{[a97u(0x1f3)];[a97u(0x1ff)];[a97u(0x226)];['_undoHandler'];[a97u(0x1f2)];constructor(a,b,c){const v=a97u;super();if(!a)throw new Error(v(0x1ba));if(!a[v(0x1f9)])throw new Error(v(0x237));if(typeof b!==v(0x210))throw new Error(v(0x238));this[v(0x1ff)]=[],this[v(0x1f3)]=Object[v(0x221)]({},a),this[v(0x1f9)]=this[v(0x1f3)][v(0x1f9)],this[v(0x1e1)]=b[v(0x204)](this);try{this[v(0x226)]=this['fsi'][v(0x1be)]({'pathParts':[v(0x1e0),v(0x222)]})||a97e['join']('.','.maka',v(0x222));}catch(d){Log[v(0x1cc)](d);}c&&(this[v(0x1d7)]=c['bind'](this));}['getHistoryFileSize'](){const w=a97u;if(a97f[w(0x206)](this[w(0x226)])){const a=a97f['statSync'](this[w(0x226)]);return a[w(0x230)];}return 0x0;}[a97u(0x215)](){const x=a97u;if(!a97f[x(0x206)](this[x(0x226)]))return[];return JSON[x(0x1d3)](a97f[x(0x224)](this['_historyFilePath'],x(0x20b)));}[a97u(0x21b)](a){const y=a97u;this[y(0x226)]&&!a97f[y(0x206)](this[y(0x226)])&&a97f[y(0x1d8)](this[y(0x226)],JSON['stringify']([])),a97f[y(0x1d8)](this['_historyFilePath'],JSON[y(0x231)](a,null,0x2));}[a97u(0x20a)](a){const z=a97u;try{a?.[z(0x235)]?.[z(0x223)][z(0x214)]&&delete a[z(0x235)][z(0x223)]['config'];const b=this[z(0x215)](),c={'generatorName':this[z(0x1f9)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x1c7)](c);const d=Buffer[z(0x1bd)](JSON[z(0x231)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[z(0x21e)]>0x0){b['shift']();}this['writeHistory'](b);}catch(f){Log[z(0x1cc)](f);}}static[a97u(0x1e2)](a,b,c,d){const A=a97u;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==A(0x210))throw new Error(A(0x20c));const e=new Generator(a,b);return c&&(e[A(0x1d7)]=c['bind'](e)),d=d||a97i,Object['assign'](e,{'parent':d?.[A(0x1f3)]?.[A(0x1f9)]}),d['addGenerator'](e),e;}async[a97u(0x1d0)](){const B=a97u,a=this['readHistory'](),b=a[B(0x220)]();if(!b){Log[B(0x1bf)](B(0x1e7));return;}const c=this['findGeneratorByName'](b[B(0x1de)]);if(!c){Log[B(0x1cc)](B(0x1fc)+b[B(0x1de)]+'\x20not\x20found.\x20Cannot\x20undo.');return;}c[B(0x1d7)]?(await c['_undoHandler'](b[B(0x1d1)]),this[B(0x21b)](a)):Log[B(0x1bf)](B(0x1e5)+b['generatorName']+B(0x1dd));}['addGenerator'](a){if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators']['push'](a);}async[a97u(0x218)](a,b=[],c={}){const C=a97u;let d;try{const f=a?.[C(0x1f0)](':');if(!f||f['length']===0x0)throw C(0x213);let g=this['_generators'],h;for(const i of f){h=g[C(0x1d6)](j=>j[C(0x1fb)](i));if(!h)throw'Generator\x20'+i+'\x20not\x20found';await this[C(0x1ec)](h),g=h[C(0x1ff)];}if(h)d=await h[C(0x239)](b,c);else throw C(0x1e9);}catch(j){Log[C(0x1cc)](j);}return d;}[a97u(0x22d)](a){const D=a97u,b=a?.[D(0x1f0)](':');if(!b||b[D(0x21e)]===0x0)return Log[D(0x1cc)]('Generator\x20format\x20is\x20incorrect'),null;let c=this[D(0x1ff)],d;for(const e of b){d=c[D(0x1d6)](f=>f['match'](e));if(!d)return Log[D(0x1cc)](D(0x1fc)+e+D(0x234)),null;c=d[D(0x1ff)];}return d||null;}async[a97u(0x239)](a,b){const E=a97u,c=a[E(0x20e)]();b[E(0x1f7)]=c[0x0];try{const d=await this['fsi'][E(0x1b8)](),f=d[E(0x1f5)]==='light'?ColorMode['LIGHT']:ColorMode['DARK'];Log[E(0x212)](f),await this[E(0x1ec)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[E(0x1ff)][E(0x21e)]>=0x0,h=b[E(0x208)]||b['h'];if(g&&h){if(this[E(0x1ff)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[E(0x1f3)][E(0x1e8)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this['options'][E(0x1e3)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[E(0x1f3)]['minArgLength']===E(0x1cb)){if(a[E(0x21e)]<this[E(0x1f3)][E(0x1c2)]){Log[E(0x1cc)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[E(0x1f3)][E(0x1cf)]==='number'){if(a[E(0x21e)]>this[E(0x1f3)][E(0x1cf)]){Log[E(0x1cc)](E(0x1c5));throw new UsageError();}}if(typeof this[E(0x1f3)][E(0x203)]===E(0x1cb)){if(Object[E(0x22f)](b)[E(0x21e)]<this[E(0x1f3)][E(0x203)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[E(0x1f3)]['maxOptsLength']===E(0x1cb)){if(Object[E(0x22f)](b)[E(0x21e)]>=this[E(0x1f3)][E(0x1c1)]){Log[E(0x1cc)](E(0x20d));throw new UsageError();}}}this[E(0x1f3)][E(0x225)]&&this[E(0x1ef)](this[E(0x1f3)][E(0x225)]);await this[E(0x1b7)](a,b,this[E(0x1f3)]);if(!b[E(0x1f7)]&&!this['options'][E(0x216)]){Log['error'](E(0x1c8));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[E(0x1d5)](k),process[E(0x21c)](0x1);}return await inside(b[E(0x1d9)],async()=>{const F=E;try{if(!b[F(0x1ce)]&&!this[F(0x1c0)][F(0x21a)]())throw new MustBeInProjectError();const l=b[F(0x1f7)]?.[F(0x21d)](/\\/g,'/')[F(0x1f0)]('/');!b[F(0x227)]&&(l?.[F(0x21e)]>0x1?(b[F(0x1f7)]=l[F(0x220)](),c[0x0]=b[F(0x1f7)],b[F(0x227)]=l[F(0x1f6)](n=>{return paramCase(n);})[F(0x211)](a97e['sep'])):b[F(0x227)]='');if(this[F(0x1f3)][F(0x207)]){if(!b[F(0x20f)]){const o={'type':F(0x228),'name':F(0x1ea),'message':F(0x1eb),'choices':[{'name':F(0x1f4),'value':'client'},{'name':F(0x1c4),'value':F(0x201)},{'name':F(0x236),'value':F(0x1dc)}]},{colLocAnswer:p}=await Actions[F(0x1f3)](o);p?b[F(0x20f)]=p:b[F(0x20f)]=F(0x1dc);}const n=['both','client',F(0x201)];if(!n['includes'](b[F(0x20f)])){Log[F(0x1cc)](F(0x1d4));throw new UsageError();}switch(b[F(0x20f)]){case'both':b[F(0x1b9)]=F(0x1cd);break;case F(0x201):b[F(0x1b9)]=F(0x201);break;case F(0x200):b[F(0x1b9)]=F(0x200);break;default:b[F(0x1b9)]='';}}const m=await this[F(0x1e1)][F(0x22b)](this,c,b);return this['addToHistory']({'params':{'args':c,'opts':this[F(0x1c0)][F(0x1df)](b)},'success':m?.[F(0x217)],'message':m?.[F(0x202)],'details':m?.['details']}),m;}catch(q){this['handleGenerateError'](q);}});}[a97u(0x209)](){const G=a97u;this[G(0x1fa)](this[G(0x1ff)]);}['handleGenerateError'](a){const H=a97u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[H(0x1f3)];Log[H(0x1bb)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[H(0x1ca)](H(0x1d2)),this[H(0x1fa)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[H(0x1cc)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log['error'](H(0x1c6)),Log[H(0x1ca)](H(0x22e));else a instanceof NoMeteorAppFoundError&&Log[H(0x1cc)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a97u(0x1fa)](a){const I=a97u,b=new a97g({});b[I(0x1c7)]([I(0x1fd),I(0x21f),I(0x219)]),a[I(0x1c3)]((c,d)=>{const J=I;return c['name'][J(0x1f8)](d[J(0x1f9)]);})[I(0x233)](c=>{const K=I;b[K(0x1c7)]([c[K(0x1f9)],c[K(0x1f1)](),c['shortDesc']()]);}),Log['bright'](b[I(0x232)]());}}
|
|
1
|
+
const a98v=a98d;(function(a,b){const r=a98d,c=a();while(!![]){try{const d=-parseInt(r(0x11b))/0x1*(parseInt(r(0x14b))/0x2)+-parseInt(r(0x125))/0x3*(-parseInt(r(0x145))/0x4)+-parseInt(r(0x120))/0x5*(-parseInt(r(0x144))/0x6)+parseInt(r(0x136))/0x7*(-parseInt(r(0x141))/0x8)+-parseInt(r(0x155))/0x9*(parseInt(r(0x14e))/0xa)+-parseInt(r(0x162))/0xb*(parseInt(r(0x160))/0xc)+parseInt(r(0xe8))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xb7272));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a98d;if(c){const e=c[s(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const t=a98d;return a98a[t(0x11e)]()['search'](t(0x12d))[t(0x11e)]()[t(0x163)](a98a)[t(0x126)]('(((.+)+)+)+$');});function a98c(){const N=['filter','keys','invoke','_handler','validateMeteorInstall','params','transactionId','Description','addGenerator','findGeneratorByName','10222928wPxvom','usage','warn','30GBDneV','305716ukoIIx','addGenerator\x20requires\x20a\x20Generator\x20instance','function','pathFromProject','create','_genTransactionId','4pJKgoy','split','Location','3490010jBvfzq','parse','match','fullNameChain','reverse','slice','Nothing\x20to\x20undo.','9itPdQx','Generator\x20format\x20is\x20incorrect','statSync','Generator\x20','sep','Server','bind','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','_undoHandler','size','apply','192756PxOFGW','fsi','869KvSPkd','constructor','generatorName','root','bright','utf-8','server','call','validateEngines','length','readHistory','30145817WfjrJl','help','_generators','writeFileSync','sort','undo','forEach','push','setColorMode','config','shift','\x20not\x20found.\x20Cannot\x20undo.','Both','Too\x20many\x20options','pop','handleGenerateError','\x20not\x20found','notice','message','addToHistory','colLocAnswer','details','chdir','Generators:','error','dir','options','validateParams','tableList','where','name','join','There\x20is\x20no\x20Meteor\x20application\x20here','DARK','Too\x20many\x20arguments','existsSync','resourceName','validateMakaSubscription','LIGHT','find','both','stringify','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','Generator\x20not\x20found','deepen','Name','pallet','writeHistory','Please\x20run\x20\x22maka\x20install\x20meteor\x22','number','requiredEngines','82597JjBKTB','noNeedResource','includes','toString','aliases','1339465urlqJR','Generator.create\x20requires\x20a\x20handler\x20function!','cwd','Too\x20few\x20options','maxOptsLength','6OupHtd','search','minOptsLength','\x20generator.\x20Skipping\x20undo.','processAndRunGenerator','readFileSync','_historyFilePath','Alias','(((.+)+)+)+$','Generator\x20requires\x20a\x20handler\x20function','lib','replace','.maka','appPathPrefix','opts','from','client','7ACWJiL'];a98c=function(){return N;};return a98c();}a98a();import a98e from'path';import a98f from'fs';import a98g from'cli-table';import{v4 as a98h}from'uuid';import{paramCase}from'change-case';import a98i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xe1;let f=c[d];return f;},a98d(a,b);}const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a98h();async function inside(a='.',b){const u=a98d,c=process[u(0x122)]();let d=null;try{process[u(0xfe)](a),d=await b();}finally{process[u(0xfe)](c);}return d;}export class Generator extends Tool{[a98v(0x102)];[a98v(0x151)];[a98v(0xea)];[a98v(0x12b)];[a98v(0x15d)];[a98v(0x14a)];constructor(a,b,c){const w=a98v;super();if(!a)throw new Error(w(0x15c));if(!a[w(0x106)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==w(0x147))throw new Error(w(0x12e));this['_generators']=[],this[w(0x102)]=Object['assign']({},a),this[w(0x106)]=this[w(0x102)][w(0x106)],this[w(0x13a)]=b[w(0x15b)](this);try{this['_historyFilePath']=this[w(0x161)][w(0x148)]({'pathParts':['.maka','history.json']})||a98e[w(0x107)]('.',w(0x131),'history.json');}catch(d){Log[w(0x100)](d);}c&&(this[w(0x15d)]=c[w(0x15b)](this));}['getHistoryFileSize'](){const x=a98v;if(a98f[x(0x10b)](this['_historyFilePath'])){const a=a98f[x(0x157)](this[x(0x12b)]);return a[x(0x15e)];}return 0x0;}[a98v(0xe7)](){const y=a98v;if(!a98f[y(0x10b)](this['_historyFilePath']))return[];return JSON[y(0x14f)](a98f[y(0x12a)](this[y(0x12b)],y(0xe2)));}[a98v(0x117)](a){const z=a98v;this[z(0x12b)]&&!a98f['existsSync'](this['_historyFilePath'])&&a98f['writeFileSync'](this[z(0x12b)],JSON[z(0x111)]([])),a98f[z(0xeb)](this['_historyFilePath'],JSON[z(0x111)](a,null,0x2));}[a98v(0xfb)](a){const A=a98v;try{a?.[A(0x13c)]?.[A(0x133)][A(0xf1)]&&delete a[A(0x13c)][A(0x133)][A(0xf1)];const b=this[A(0xe7)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[A(0xef)](c);const d=Buffer[A(0x134)](JSON[A(0x111)](b))[A(0xe6)];while(d>MAX_HISTORY_SIZE&&b[A(0xe6)]>0x0){b[A(0xf2)]();}this[A(0x117)](b);}catch(f){Log['error'](f);}}async[a98v(0xed)](){const B=a98v,a=this[B(0xe7)]();if(a[B(0xe6)]===0x0){Log['warn'](B(0x154));return;}const b=a[B(0xf6)](),c=b[B(0x13d)],d=a[B(0x137)](e=>e[B(0x13d)]===c);d[B(0xef)](b),d[B(0x152)]();for(const e of d){const f=this['findGeneratorByName'](e[B(0x164)]);if(!f){Log[B(0x100)](B(0x158)+e['generatorName']+B(0xf3));continue;}f[B(0x15d)]?await f[B(0x15d)](e[B(0xfd)]):Log[B(0x143)]('No\x20undo\x20handler\x20defined\x20for\x20'+e['generatorName']+B(0x128));}this[B(0x117)](a[B(0x137)](g=>g[B(0x13d)]!==c));}static[a98v(0x149)](a,b,c,d){const C=a98v;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==C(0x147))throw new Error(C(0x121));const e=new Generator(a,b);c&&(e['_undoHandler']=c[C(0x15b)](e));d=d||a98i;const f=d?d[C(0x151)]:'';return e[C(0x151)]=f?f+':'+a[C(0x106)]:a['name'],Object['assign'](e,{'parent':d?.[C(0x102)]?.[C(0x106)]}),d[C(0x13f)](e),e;}['addGenerator'](a){const D=a98v;if(!(a instanceof Generator))throw new Error(D(0x146));this['_generators'][D(0xef)](a);}async[a98v(0x129)](a,b=[],c={}){const E=a98v;let d;try{const f=a?.[E(0x14c)](':');if(!f||f['length']===0x0)throw E(0x156);let g=this['_generators'],h;for(const i of f){h=g[E(0x10f)](j=>j['match'](i));if(!h)throw'Generator\x20'+i+E(0xf8);await this['validateMakaSubscription'](h),g=h['_generators'];}if(h)d=await h[E(0x139)](b,c);else throw E(0x113);}catch(j){Log[E(0x100)](j);}return d;}[a98v(0x140)](a){const F=a98v,b=a?.[F(0x14c)](':');if(!b||b[F(0xe6)]===0x0)return Log[F(0x100)]('Generator\x20format\x20is\x20incorrect'),null;let c=this['_generators'],d;for(const e of b){d=c[F(0x10f)](f=>f[F(0x150)](e));if(!d)return Log['error'](F(0x158)+e+'\x20not\x20found'),null;c=d[F(0xea)];}return d||null;}async[a98v(0x139)](a,b){const G=a98v,c=a[G(0x153)]();b[G(0x10c)]=c[0x0];try{const d=await this[G(0x161)]['getGlobalConfig'](),f=d[G(0x116)]==='light'?ColorMode[G(0x10e)]:ColorMode[G(0x109)];Log[G(0xf0)](f),await this[G(0x10d)](this);const g=a[0x0]===_prevGen||a[G(0xe6)]===0x0&&this['_generators']['length']>=0x0,h=b[G(0xe9)]||b['h'];if(g&&h){if(this[G(0xea)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x102)]['mustBeInMakaProject']){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this['options']['mustHaveMeteorInstalled']){const j=this[G(0x13b)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x102)]['minArgLength']==='number'){if(a[G(0xe6)]<this[G(0x102)]['minArgLength']){Log[G(0x100)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[G(0x102)]['maxArgLength']==='number'){if(a['length']>this[G(0x102)]['maxArgLength']){Log['error'](G(0x10a));throw new UsageError();}}if(typeof this[G(0x102)][G(0x127)]===G(0x119)){if(Object[G(0x138)](b)[G(0xe6)]<this[G(0x102)][G(0x127)]){Log['error'](G(0x123));throw new UsageError();}}if(typeof this[G(0x102)][G(0x124)]===G(0x119)){if(Object['keys'](b)[G(0xe6)]>=this[G(0x102)][G(0x124)]){Log[G(0x100)](G(0xf5));throw new UsageError();}}}this[G(0x102)]['requiredEngines']&&this[G(0xe5)](this[G(0x102)][G(0x11a)]);await this[G(0x103)](a,b,this[G(0x102)]);if(!b[G(0x10c)]&&!this[G(0x102)][G(0x11c)]){Log[G(0x100)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0xf7)](k),process['exit'](0x1);}return await inside(b[G(0x122)],async()=>{const H=G;try{if(!b[H(0x165)]&&!this[H(0x161)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b[H(0x10c)]?.[H(0x130)](/\\/g,'/')[H(0x14c)]('/');!b[H(0x101)]&&(l?.[H(0xe6)]>0x1?(b[H(0x10c)]=l['pop'](),c[0x0]=b[H(0x10c)],b[H(0x101)]=l['map'](n=>{return paramCase(n);})[H(0x107)](a98e[H(0x159)])):b[H(0x101)]='');if(this[H(0x102)]['checkWhere']){if(!b['where']){const o={'type':'list','name':H(0xfc),'message':H(0x14d),'choices':[{'name':'Client','value':'client'},{'name':H(0x15a),'value':'server'},{'name':H(0xf4),'value':H(0x110)}]},{colLocAnswer:p}=await Actions[H(0x102)](o);p?b['where']=p:b[H(0x105)]=H(0x110);}const n=[H(0x110),H(0x135),H(0xe3)];if(!n[H(0x11d)](b[H(0x105)])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[H(0x105)]){case H(0x110):b[H(0x132)]=H(0x12f);break;case H(0xe3):b['appPathPrefix']=H(0xe3);break;case H(0x135):b[H(0x132)]=H(0x135);break;default:b[H(0x132)]='';}}const m=await this[H(0x13a)][H(0xe4)](this,c,b);return m&&this['addToHistory']({'params':{'args':c,'opts':this[H(0x161)][H(0x114)](b)},'success':m?.['success'],'message':m?.[H(0xfa)],'details':m?.[H(0xfd)]}),m;}catch(q){this[H(0xf7)](q);}});}['listGenerators'](){const I=a98v;this['tableList'](this[I(0xea)]);}[a98v(0xf7)](a){const J=a98v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[J(0x102)];Log[J(0x142)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0xf9)](J(0xff)),this['tableList'](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[J(0x100)](J(0x112));else{if(a instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0xf9)](J(0x118));else a instanceof NoMeteorAppFoundError&&Log[J(0x100)](J(0x108));}}}[a98v(0x104)](a){const K=a98v,b=new a98g({});b[K(0xef)]([K(0x115),K(0x12c),K(0x13e)]),a[K(0xec)]((c,d)=>{const L=K;return c[L(0x106)]['localeCompare'](d[L(0x106)]);})[K(0xee)](c=>{const M=K;b[M(0xef)]([c[M(0x106)],c[M(0x11f)](),c['shortDesc']()]);}),Log[K(0xe1)](b['toString']());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a99d,c=a();while(!![]){try{var d=-parseInt(f(0x1e7))/0x1+parseInt(f(0x1ec))/0x2*(parseInt(f(0x1e8))/0x3)+parseInt(f(0x1e0))/0x4*(parseInt(f(0x1e6))/0x5)+parseInt(f(0x1ed))/0x6+-parseInt(f(0x1e2))/0x7+-parseInt(f(0x1ea))/0x8*(parseInt(f(0x1e9))/0x9)+parseInt(f(0x1eb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x3ff4c));var a99b=(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;};}()),a99a=a99b(this,function(){var g=a99d;return a99a[g(0x1e1)]()[g(0x1e4)](g(0x1e5))[g(0x1e1)]()[g(0x1e3)](a99a)['search'](g(0x1e5));});a99a();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';function a99c(){var h=['388130KFGlce','8LJuQFM','258042CdvAXF','232IAYCME','toString','2411213OcJJVR','constructor','search','(((.+)+)+)+$','42445CMVdNu','47804fQLSRG','123954aeveIw','255681LmHhvb','24BbGRqF'];a99c=function(){return h;};return a99c();}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 a99d(a,b){var c=a99c();return a99d=function(d,e){d=d-0x1e0;var f=c[d];return f;},a99d(a,b);}import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100x=a100d;function a100c(){const A=['const','test','rewriteDestinationPathForEngine','publications.','checkMeteorPackage','injectIntoFile','apply','withPubs','length','fsi','ddp-rate-limiter','api/register-api.js','options','2cSrmWd','1295478gyjmrz','includes','Resolvers);\x0a\x0a','840525DKTXcy','error','push','3100xseeoT','getMakaProjectConfig','Publications','(((.+)+)+)+$','apiAnswers','exit','api/tests.js','mongo','checkbox','tsx','graphql','constructor','api/api.js','TypeDefs);\x0a','rpc-methods.','Fixtures','RPC\x20(Methods)','pathFromApp','injectAtEndOfFile','engines','server','index.','dir','GraphQL','-api.','typeDefs.','api/typeDefs.js','collection','imports','withRest','rest','injectAtBeginningOfFile','toString','resourceName','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','rest-api.','apollo','withMethods','import\x20\x27./register-','template','startup','import\x20{\x20typeDefs\x20as\x20','.app-tests.','fixtures.','withValue','maka:check','/graphql/resolvers','1267144JQyREu','none','if\x20\x5c(typeList','withFixtures','api/fixtures.js','114rWWFgs','api','typeList.push(','81760nKLCmS','186585pMAqFh','24vqgSeT','api/publications.js','mdg:validated-method','resolverList.push(','3789590Wbqzsz','No\x20API\x20boundaries\x20selected','maka\x20g:api\x20Todos','/imports/api','processAndRunGenerator','search'];a100c=function(){return A;};return a100c();}(function(a,b){const u=a100d,c=a();while(!![]){try{const d=-parseInt(u(0x1f4))/0x1*(parseInt(u(0x1fb))/0x2)+parseInt(u(0x1f8))/0x3+-parseInt(u(0x22a))/0x4+-parseInt(u(0x1db))/0x5+parseInt(u(0x22f))/0x6*(parseInt(u(0x1dc))/0x7)+parseInt(u(0x1dd))/0x8*(-parseInt(u(0x1f5))/0x9)+parseInt(u(0x1e1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x610cb));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a100d;if(c){const e=c[v(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const w=a100d;return a100a[w(0x21b)]()[w(0x1e6)](w(0x1fe))['toString']()[w(0x206)](a100a)[w(0x1e6)]('(((.+)+)+)+$');});a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a100d(a,b);}import a100e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a100x(0x1d9),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a100x(0x21d),'validOpts':[a100x(0x211)],'examples':[a100x(0x1e3)],'description':'\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'},async function(a,b){const y=a100x;try{const c=this['fsi'][y(0x1fc)](),d=[{'name':y(0x20b),'value':y(0x220)},{'name':y(0x20a),'value':'withFixtures'},{'name':y(0x1fd),'value':y(0x1ee)}];c[y(0x20e)][y(0x1d9)]===y(0x219)&&d[y(0x1fa)]({'name':'REST\x20API','value':y(0x218)});c[y(0x20e)][y(0x205)]===y(0x21f)&&d[y(0x1fa)]({'name':y(0x212),'value':'withGql'});const f={'type':y(0x203),'name':y(0x1ff),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x1f3)](f);g[y(0x1ef)]===0x0&&(Log[y(0x1f9)](y(0x1e2)),process[y(0x200)](0x1)),await this[y(0x1f0)][y(0x227)](c,async()=>{const z=y,h=b[z(0x21c)],i=paramCase(h),j=camelCase(h),k=b[z(0x211)]?'/'+b[z(0x211)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0x20e)][z(0x1d9)],'graphql':c[z(0x20e)][z(0x205)],'test':c[z(0x20e)]['test'],'noRename':!![],'withPubs':g[z(0x1f6)](z(0x1ee)),'withFixtures':g[z(0x1f6)]('withFixtures'),'withMethods':g[z(0x1f6)](z(0x220)),'withRest':g['includes'](z(0x218))};let m='js';c[z(0x20e)]['js']===z(0x204)&&(m='ts');await this[z(0x1f0)][z(0x1eb)](['maka:rest',z(0x228),z(0x1f1),z(0x1df),z(0x202)],{'shouldInstall':!![]}),await a100e[z(0x1e5)](z(0x216),[i],{'config':c,'where':z(0x20f)});c[z(0x20e)][z(0x1d9)]==='rest'&&(l[z(0x218)]&&await this['fsi'][z(0x222)]({'srcPath':z(0x207),'destPath':this[z(0x1f0)]['pathFromApp']({'pathParts':[z(0x217),z(0x1d9),b[z(0x211)],i,z(0x21e)+m]}),'context':l,'config':c}));l[z(0x220)]&&await this[z(0x1f0)][z(0x222)]({'srcPath':'api/methods.js','destPath':this[z(0x1f0)]['pathFromApp']({'pathParts':[z(0x217),z(0x1d9),b['dir'],i,z(0x209)+m]}),'context':l,'config':c});l[z(0x22d)]&&await this[z(0x1f0)][z(0x222)]({'srcPath':z(0x22e),'destPath':this[z(0x1f0)][z(0x20c)]({'pathParts':[z(0x217),z(0x1d9),b[z(0x211)],i,z(0x226)+m]}),'context':l,'config':c});c[z(0x20e)][z(0x1e8)]!==z(0x22b)&&this[z(0x1f0)][z(0x222)]({'srcPath':z(0x201),'destPath':this[z(0x1f0)]['pathFromApp']({'pathParts':[z(0x217),z(0x1d9),b[z(0x211)],i,i+z(0x225)+m]}),'context':l,'config':c});l[z(0x1ee)]&&await this['fsi'][z(0x222)]({'srcPath':z(0x1de),'destPath':this[z(0x1f0)][z(0x20c)]({'pathParts':[z(0x217),z(0x1d9),b[z(0x211)],i,z(0x1ea)+m]}),'context':l,'config':c});if(c['engines'][z(0x205)]===z(0x21f)){if(g[z(0x1f6)]('withGql')){const o=this['fsi'][z(0x20c)]({'pathParts':['imports','startup','server',z(0x210)+c[z(0x20e)]['js']]}),p=this[z(0x1f0)][z(0x1e9)]({'pathParts':[o],'config':c}),q=this['fsi'][z(0x20c)]({'pathParts':[z(0x217),'api',b[z(0x211)],i,z(0x205),z(0x214)+m]}),r=z(0x1e4)+k+i+'/graphql/typeDefs';this[z(0x1f0)][z(0x222)]({'srcPath':z(0x215),'destPath':q,'context':l,'config':c}),await this[z(0x1f0)]['injectAtBeginningOfFile']({'filePath':p,'content':z(0x224)+j+'TypeDefs\x20}\x20from\x20\x27'+r+'\x27;\x0a'}),await this[z(0x1f0)][z(0x1ec)]({'filePath':p,'content':z(0x1da)+j+z(0x208),'begin':'const','end':z(0x22c)});const s=this[z(0x1f0)][z(0x20c)]({'pathParts':[z(0x217),'api',b['dir'],i,z(0x205),'resolvers.'+m]}),t=z(0x1e4)+k+i+z(0x229);await this[z(0x1f0)][z(0x222)]({'srcPath':'api/resolvers.js','destPath':s,'context':l,'config':c}),await this['fsi'][z(0x21a)]({'filePath':p,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+j+'Resolvers\x20}\x20from\x20\x27'+t+'\x27;'}),await this[z(0x1f0)][z(0x1ec)]({'filePath':p,'content':z(0x1e0)+j+z(0x1f7),'begin':z(0x1e7),'end':'if\x20\x5c(typeList'});}}await this['fsi'][z(0x222)]({'srcPath':z(0x1f2),'destPath':this[z(0x1f0)][z(0x20c)]({'pathParts':['imports',z(0x223),z(0x20f),'register-'+i+z(0x213)+m]}),'context':l,'config':c,'force':!![]});const n=this['fsi'][z(0x20c)]({'pathParts':[z(0x217),'startup',z(0x20f),z(0x210)+c[z(0x20e)]['js']]});await this['fsi'][z(0x20d)]({'filePath':n,'content':z(0x221)+i+'-api\x27;'});});}catch(h){console[y(0x1f9)](h),process[y(0x200)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101l=a101d;(function(a,b){const j=a101d,c=a();while(!![]){try{const d=parseInt(j(0xb5))/0x1+parseInt(j(0xac))/0x2*(-parseInt(j(0xa6))/0x3)+parseInt(j(0x96))/0x4*(-parseInt(j(0xae))/0x5)+parseInt(j(0xbd))/0x6+-parseInt(j(0xb9))/0x7*(parseInt(j(0xbc))/0x8)+parseInt(j(0x98))/0x9+parseInt(j(0xaf))/0xa*(-parseInt(j(0x9d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x6b176));function a101c(){const o=['error','collection','collection/collection.js','3BuDnHT','.app-tests.','imports','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','create','col','254806BwLaFk','engines','67225aZyVbw','10sYKHsj','dir','test','appPathPrefix','fsi','maka\x20g:collection\x20todos','429736ydOMnL','resourceName','pathFromApp','\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','28yYZZaz','mongo','withValue','764656eDmoUK','4722426fSdnas','maka:check','tsx','(((.+)+)+)+$','244FSwJXd','import\x20\x27./collections','5428746daTyQt','checkMeteorPackage','toString','injectAtEndOfFile','search','566269LYSXrX','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','collection/tests.js','getMakaProjectConfig','none','startup'];a101c=function(){return o;};return a101c();}function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x96;let f=c[d];return f;},a101d(a,b);}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 k=a101d;return a101a[k(0x9a)]()[k(0x9c)](k(0xc0))['toString']()['constructor'](a101a)[k(0x9c)](k(0xc0));});a101a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a101l(0xaa)]({'name':a101l(0xa4),'aliases':[a101l(0xab)],'usage':a101l(0xa9),'checkWhere':!![],'shortDesc':a101l(0x9e),'validOpts':[a101l(0xb0),'where'],'description':a101l(0xb8),'examples':[a101l(0xb4)]},async function(a,b){const m=a101l;try{const c=this['fsi'][m(0xa0)]();await this[m(0xb3)][m(0xbb)](c,async()=>{const n=m,d=paramCase(b[n(0xb6)]),f={'name':pascalCase(b[n(0xb6)]),'collectionName':pascalCase(b[n(0xb6)]),'fileName':d,'where':b['where'],'test':c['engines'][n(0xb1)],'noRename':!![]};let g='js';c['engines']['js']===n(0xbf)&&(g='ts');await this[n(0xb3)][n(0x99)]([n(0xba),n(0xbe)],{'shouldInstall':!![]}),await this['fsi']['template']({'srcPath':n(0xa5),'destPath':this[n(0xb3)][n(0xb7)]({'pathParts':[n(0xa8),n(0xa2),b['appPathPrefix'],'collections',b[n(0xb0)],d+'.'+g]}),'context':f,'config':c});c[n(0xad)]['test']!==n(0xa1)&&await this[n(0xb3)]['template']({'srcPath':n(0x9f),'destPath':this[n(0xb3)]['pathFromApp']({'pathParts':[n(0xa8),n(0xa2),b[n(0xb2)],'collections',b['dir'],d+n(0xa7)+g]}),'context':f,'config':c});const h=b[n(0xb0)]?'/'+b[n(0xb0)]+'/':'/',i=this[n(0xb3)][n(0xb7)]({'pathParts':['imports','startup',b[n(0xb2)],'index.'+c[n(0xad)]['js']]});await this[n(0xb3)][n(0x9b)]({'filePath':i,'content':n(0x97)+h+d+'\x27;'});});}catch(d){Log[m(0xa3)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102m=a102d;(function(a,b){const k=a102d,c=a();while(!![]){try{const d=parseInt(k(0x17f))/0x1+parseInt(k(0x16e))/0x2*(parseInt(k(0x164))/0x3)+parseInt(k(0x14c))/0x4+-parseInt(k(0x16f))/0x5*(parseInt(k(0x17b))/0x6)+parseInt(k(0x15d))/0x7*(-parseInt(k(0x15c))/0x8)+parseInt(k(0x170))/0x9*(parseInt(k(0x184))/0xa)+-parseInt(k(0x157))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x2c2f3));function a102c(){const p=['pathFromProject','/imports/ui/components','css','className','root','component/component.js','6108ievzIR','43625QyvYJX','13779lRJtXv','component','ramda','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','pages','layouts','components','findAppDirectory','graphql','client','injectAtBeginningOfFile','12HDusrG','fsi','dir','baseDir','262901YMMGPg','getMakaProjectConfig','(((.+)+)+)+$','template/template.css','.css','1580hVcvRe','installNpmPackage','relative','912620ZaiSQJ','pathFromApp','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','setTemplate','features','maka\x20g:comp\x20todos/todos-item','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','comp','checkNpmPackage','resourceName','react','4257308EPSnlk','test','cssCaseName','engines','fileName','8bilDfB','1545551mEFrwO','toString','warn','.js','template','import\x20\x27./','assign','72OtHXxJ','search','true','error'];a102c=function(){return p;};return a102c();}const a102b=(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;};}()),a102a=a102b(this,function(){const l=a102d;return a102a[l(0x15e)]()[l(0x165)](l(0x181))[l(0x15e)]()['constructor'](a102a)[l(0x165)](l(0x181));});a102a();import a102e from'path';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x14a;let f=c[d];return f;},a102d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a102m(0x153)];Generator['create']({'name':a102m(0x171),'aliases':aliases,'usage':a102m(0x173),'shortDesc':a102m(0x152),'validOpts':[{'name':'baseDir','values':['hooks',a102m(0x176),a102m(0x174),a102m(0x175)]}],'examples':[a102m(0x151)]},async function(a,b){const n=a102m;try{const c=this['fsi'][n(0x177)](),d=b[n(0x17e)]?'/imports/ui/'+b[n(0x17e)]:n(0x169),f=this['fsi'][n(0x14d)]({'pathParts':[d,b[n(0x17d)],paramCase(b[n(0x155)]),paramCase(b['resourceName'])]}),g=await this['fsi'][n(0x180)]();await this[n(0x17c)]['withValue'](g,async()=>{const o=n;typeof g[o(0x161)][o(0x158)]==='string'&&(g[o(0x161)]['test']=g[o(0x161)][o(0x158)]==='true'?!![]:![],this[o(0x17c)][o(0x14f)](o(0x158),g[o(0x161)][o(0x158)]));typeof g[o(0x161)][o(0x16a)]==='string'&&(g[o(0x161)][o(0x16a)]=g[o(0x161)][o(0x16a)]==='true'?!![]:![],this[o(0x17c)][o(0x14f)]('css',g['template'][o(0x16a)]));typeof g[o(0x161)]['js']==='string'&&(g[o(0x161)]['js']=g[o(0x161)]['js']===o(0x166)?!![]:![],this[o(0x17c)][o(0x14f)]('js',g[o(0x161)]['js']));!g[o(0x150)]&&(g[o(0x150)]={});!b['root']&&!this[o(0x17c)]['checkNpmPackage'](o(0x172))&&(Log[o(0x15f)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this['fsi'][o(0x14a)](o(0x172),{'cwd':c}));if(!b[o(0x16c)]&&!this['fsi'][o(0x154)]('react')){Log[o(0x167)](o(0x14e));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a102e[o(0x14b)](this['fsi'][o(0x168)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[o(0x155)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x155)]),'graphql':g[o(0x15a)][o(0x178)],'features':g[o(0x150)],'client':g[o(0x15a)][o(0x179)],'api':g[o(0x15a)]['api'],'ssr':g[o(0x15a)]['ssr'],'test':g[o(0x15a)]['test'],'theme':g[o(0x15a)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[o(0x150)]['withTranslations']};await this['fsi']['template']({'srcPath':o(0x16d),'destPath':f+o(0x160),'context':h,'framework':o(0x156),'config':g});g[o(0x15a)][o(0x158)]!=='none'&&await this[o(0x17c)][o(0x161)]({'srcPath':'test/test.js','destPath':f+'.tests.js','context':h,'framework':o(0x156),'config':g});g[o(0x161)][o(0x16a)]&&(await this[o(0x17c)][o(0x161)]({'srcPath':o(0x182),'destPath':f+o(0x183),'context':Object[o(0x163)]({},h,{'className':paramCase(b[o(0x155)])}),'config':g}),await this[o(0x17c)][o(0x17a)]({'filePath':f+'.'+g[o(0x15a)]['js'],'content':o(0x162)+h[o(0x159)]+'.'+g[o(0x15a)][o(0x16a)]+'\x27;'}));const i=b['dir']?'/'+b[o(0x17d)]+'/':'/',j=''+d+i+h[o(0x15b)]+'/'+h[o(0x15b)];await this[o(0x17c)]['injectTemplateModule'](h[o(0x16b)],g,j);});}catch(h){Log[n(0x167)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=parseInt(h(0x19e))/0x1+parseInt(h(0x19d))/0x2+-parseInt(h(0x19b))/0x3+parseInt(h(0x194))/0x4*(-parseInt(h(0x193))/0x5)+parseInt(h(0x192))/0x6+parseInt(h(0x196))/0x7+parseInt(h(0x197))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x3b5a3));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x19f)]()[j(0x190)](j(0x18e))[j(0x19f)]()[j(0x1a0)](a103a)[j(0x190)](j(0x18e));});a103a();function a103c(){const n=['toString','constructor','appName','ubuntu','pathFromProject','create','Generate\x20configuration\x20settings.','template','isDocker','fsi','maka\x20g:config\x20production','process.env','resourceName','getMakaProjectConfig','(((.+)+)+)+$','maka\x20{generate,\x20g}:{config}\x20<name>','search','settings.json','686874UOzZHQ','365vMpUTS','7932mnxIIE','config/settings.json','694491GwglIL','512120AMDpNb','development','prod','apply','474141uJMZHk','config','337678jaYgUq','99367TPgUjx'];a103c=function(){return n;};return a103c();}import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x187;let f=c[d];return f;},a103d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103k(0x1a4)]({'name':a103k(0x19c),'usage':a103k(0x18f),'shortDesc':a103k(0x1a5),'validOpts':[a103k(0x188)],'examples':[a103k(0x18a)]},async function(a,b){const l=a103k,c=this[l(0x189)][l(0x18d)]();await this[l(0x189)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0x1a1)],'appFileCase':paramCase(c[m(0x1a1)]),'name':pascalCase(b[m(0x18c)]),'fileName':paramCase(b[m(0x18c)]),'camelCase':camelCase(b[m(0x18c)]),'userName':m(0x1a2),'isDocker':b['isDocker']};let e=b['resourceName'];if(e==='dev')e=m(0x198);else e===m(0x199)&&(e='production');const f=this[m(0x189)][m(0x1a3)]({'pathParts':[m(0x19c),e,m(0x191)]});await this[m(0x189)][m(0x187)]({'srcPath':m(0x195),'destPath':f,'context':d,'config':c});if(!b[m(0x188)]){const g=this[m(0x189)][m(0x1a3)]({'pathParts':['config',e,m(0x18b)]});await this[m(0x189)][m(0x187)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a104m=a104d;function a104c(){const p=['6EEfdAC','checkNpmPackage','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','1382890gEjmsL','2yPxTkX','669756kfDmiI','1096SHZTxg','type','(((.+)+)+)+$','-dbc\x27;','template','39FGZSoq','pgsql','apply','3684534TvtXaX','resourceName','6701124cKlaKe','pathFromApp','sqlite','maka\x20g:dbc\x20azure\x20--type=mssql','16QNFciV','fsi','engines','error','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','mssql','constructor','installNpmPackage','toString','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','3558eamsxn','imports','dir','injectAtEndOfFile','194390KdKuHh','dbc','better-sqlite3','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','warn','server','search','1194183auclse','conn.','withValue','maka\x20g:dbc\x20geoserver\x20--type=pgsql','startup','maka\x20g:dbc\x20todos\x20--type=sqlite','22rRknOk','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','-dbc.'];a104c=function(){return p;};return a104c();}(function(a,b){const j=a104d,c=a();while(!![]){try{const d=-parseInt(j(0x183))/0x1*(-parseInt(j(0x182))/0x2)+parseInt(j(0x16a))/0x3*(parseInt(j(0x184))/0x4)+-parseInt(j(0x16e))/0x5+-parseInt(j(0x17e))/0x6*(-parseInt(j(0x18c))/0x7)+parseInt(j(0x192))/0x8*(parseInt(j(0x175))/0x9)+-parseInt(j(0x181))/0xa*(-parseInt(j(0x17b))/0xb)+-parseInt(j(0x18e))/0xc*(parseInt(j(0x189))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x552cb));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a104d;if(c){const e=c[k(0x18b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const l=a104d;return a104a[l(0x168)]()[l(0x174)](l(0x186))[l(0x168)]()[l(0x166)](a104a)[l(0x174)]('(((.+)+)+)+$');});a104a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x166;let f=c[d];return f;},a104d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a104m(0x16f),'usage':a104m(0x196),'shortDesc':a104m(0x180),'validOpts':[a104m(0x16c)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a104m(0x185),'values':[a104m(0x18a),a104m(0x197),a104m(0x190)]}],'examples':[a104m(0x178),a104m(0x191),a104m(0x17a)]},async function(a,b){const n=a104m;try{const c=await this[n(0x193)]['getMakaProjectConfig'](),d=this['fsi'][n(0x18f)]({}),f=paramCase(b[n(0x18d)]),g={'name':pascalCase(b[n(0x18d)]),'fileName':paramCase(b[n(0x18d)]),'camelCase':camelCase(b[n(0x18d)]),'type':b[n(0x185)],'engine':c[n(0x194)]['js'],'noRename':!![]};await this['fsi'][n(0x177)](c,async()=>{const o=n;let h='js';c[o(0x194)]['js']==='tsx'&&(h='ts');b[o(0x185)]==='pgsql'&&!this[o(0x193)][o(0x17f)]('pg')&&(Log[o(0x172)](o(0x169)),await this[o(0x193)][o(0x167)]('pg',{'cwd':d}));b[o(0x185)]==='mssql'&&!this[o(0x193)][o(0x17f)](o(0x197))&&(Log[o(0x172)](o(0x17c)),await this[o(0x193)][o(0x167)](o(0x197),{'cwd':d}));b[o(0x185)]==='sqlite'&&!this[o(0x193)][o(0x17f)](o(0x170))&&(Log['warn'](o(0x171)),await this[o(0x193)][o(0x167)]('better-sqlite3',{'cwd':d}));await this[o(0x193)]['template']({'srcPath':'dbc/config.js','destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x16b),o(0x179),'server',o(0x16f),b[o(0x16c)],f,'config.'+h]}),'context':g,'config':c}),await this['fsi']['template']({'srcPath':'dbc/conn.js','destPath':this[o(0x193)]['pathFromApp']({'pathParts':[o(0x16b),'startup',o(0x173),o(0x16f),b[o(0x16c)],f,o(0x176)+h]}),'context':g,'config':c}),await this[o(0x193)][o(0x188)]({'srcPath':'dbc/register-dbc.js','destPath':this[o(0x193)][o(0x18f)]({'pathParts':[o(0x16b),o(0x179),o(0x173),'register-'+f+o(0x17d)+h]}),'context':g,'config':c});const i=this[o(0x193)]['pathFromApp']({'pathParts':[o(0x16b),o(0x179),o(0x173),'index.'+c[o(0x194)]['js']]});await this[o(0x193)][o(0x16d)]({'filePath':i,'content':'import\x20\x27./register-'+f+o(0x187)});});}catch(h){Log[n(0x195)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105i=a105d;function a105c(){const l=['appName','5485504cpwzee','app','378609ZKmlhN','18PfQBMh','1226406ANVyvR','2bpYTGA','join','8ZexbSh','template','apply','14RiKxYj','13433783dTTXdb','isFile','389247LXECdN','fsi','1446545TkaCRp','toString','create','error','withValue','docker/Dockerfile','(((.+)+)+)+$','constructor','maka\x20{generate,\x20g}:dockerfile','1163530GsJNuk','search'];a105c=function(){return l;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xc0;let f=c[d];return f;},a105d(a,b);}(function(a,b){const f=a105d,c=a();while(!![]){try{const d=-parseInt(f(0xd9))/0x1+-parseInt(f(0xc1))/0x2*(-parseInt(f(0xc9))/0x3)+parseInt(f(0xc3))/0x4*(-parseInt(f(0xcb))/0x5)+-parseInt(f(0xc0))/0x6*(-parseInt(f(0xc6))/0x7)+-parseInt(f(0xd7))/0x8+parseInt(f(0xda))/0x9*(parseInt(f(0xd4))/0xa)+parseInt(f(0xc7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x5559b));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a105d;if(c){const e=c[g(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const h=a105d;return a105a[h(0xcc)]()['search']('(((.+)+)+)+$')[h(0xcc)]()[h(0xd2)](a105a)[h(0xd5)](h(0xd1));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a105e from'path';Generator[a105i(0xcd)]({'name':'dockerfile','usage':a105i(0xd3),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a105i;try{const a=await this[j(0xca)]['getMakaProjectConfig'](),b=await this[j(0xca)]['getGlobalConfig'](),c=this[j(0xca)]['findProjectDirectory']();await this[j(0xca)][j(0xcf)](a,async()=>{const k=j,d={'app':b[k(0xd6)],'config':a,'appPath':a105e[k(0xc2)](c,k(0xd8)),'bundlePath':a105e[k(0xc2)](c,'build','app.tar.gz'),'useCert':this['fsi'][k(0xc8)](b['cert'])};await this['fsi'][k(0xc4)]({'srcPath':k(0xd0),'destPath':a105e[k(0xc2)](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0xce)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0x8f))/0x1+parseInt(l(0xb9))/0x2+parseInt(l(0xb8))/0x3+parseInt(l(0xa0))/0x4+parseInt(l(0xb3))/0x5+-parseInt(l(0xc4))/0x6+-parseInt(l(0xc0))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x54cf8));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0xa5)]()['search']('(((.+)+)+)+$')['toString']()[n(0xb5)](a106a)[n(0xcd)](n(0xad));});function a106c(){const r=['pathFromProject','withTranslations','hook','224292LZUYtx','components','Creating\x20','getMakaProjectConfig','.app-tests.js','theme','.js','layouts','baseDir','search','notice','checkNpmPackage','397289upIXKC','setTemplate','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','apollo','react','className','hooks','warn','\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','injectTemplateModule','injectAtBeginningOfFile','apply','test','withValue','@apollo/client','fsi','template','1051624tNtcDi','none','relative','graphql','fileName','toString','engines','true','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','assign','dir','/imports/ui/hooks','create','(((.+)+)+)+$','resourceName','pathFromApp','pages','template/template.css','installNpmPackage','21150jSSpla','cssCaseName','constructor','features','hook/hook.js','460605zLNyHi','109528gmsIGF','force','css','error','string','import\x20\x27./','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','3415706pljQNV'];a106c=function(){return r;};return a106c();}a106a();import a106e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x8f;let f=c[d];return f;},a106d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a106o(0xac)]({'name':a106o(0xc3),'aliases':['h'],'checkWhere':![],'usage':a106o(0xbf),'shortDesc':a106o(0xa8),'validOpts':[{'name':'baseDir','values':[a106o(0x95),a106o(0xc5),a106o(0xb0),a106o(0xcb)]},{'name':a106o(0xba),'boolFlag':!![]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a106o(0x97)},async function(a,b){const p=a106o;Log[p(0xce)](p(0xc6)+b[p(0xae)]+'\x20hook...');try{const c=this[p(0x9e)]['checkNpmPackage']('react');if(!c){Log[p(0xbc)](p(0x91));throw new UsageError();}const d=this[p(0x9e)][p(0xaf)](b),f=b['baseDir']?'/imports/ui/'+b[p(0xcc)]:p(0xab),g=this['fsi']['pathFromApp']({'pathParts':[f,b[p(0xaa)],paramCase(b[p(0xae)]),paramCase(b[p(0xae)])]}),h=await this[p(0x9e)][p(0xc7)]();await this[p(0x9e)][p(0x9c)](h,async()=>{const q=p;typeof h[q(0x9f)]['css']===q(0xbd)&&(h[q(0x9f)][q(0xbb)]=h[q(0x9f)][q(0xbb)]===q(0xa7)?!![]:![],this[q(0x9e)][q(0x90)]('css',h[q(0x9f)][q(0xbb)]));h[q(0xa6)][q(0xa3)]===q(0x92)&&!this['fsi'][q(0xcf)](q(0x9d))&&(Log[q(0x96)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this['fsi'][q(0xb2)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0xae)]),'camelCaseName':camelCase(b[q(0xae)]),'className':pascalCase(b[q(0xae)]),'name':pascalCase(b[q(0xae)]),'graphql':h['engines'][q(0xa3)],'theme':h[q(0xa6)][q(0xc9)],'features':h['features'],'myPath':a106e[q(0xa2)](this[q(0x9e)][q(0xc1)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h[q(0xb6)][q(0xc2)]};await this[q(0x9e)]['template']({'srcPath':q(0xb7),'destPath':g+q(0xca),'context':i,'config':h,'framework':q(0x93),'force':b[q(0xba)]});h[q(0x9f)]['css']&&(await this['fsi'][q(0x9f)]({'srcPath':q(0xb1),'destPath':g+'.css','context':Object[q(0xa9)]({},i,{'className':i[q(0xb4)]}),'config':h,'force':b[q(0xba)]}),await this['fsi'][q(0x99)]({'filePath':g+'.'+h[q(0xa6)]['js'],'content':q(0xbe)+i[q(0xa4)]+'.'+h[q(0xa6)][q(0xbb)]+'\x27;'}));h['engines'][q(0x9b)]!==q(0xa1)&&await this[q(0x9e)][q(0x9f)]({'srcPath':'test/test.js','destPath':g+q(0xc8),'framework':q(0x93),'context':i,'config':h,'force':b['force']});const j=b['dir']?'/'+b['dir']+'/':'/',k=''+f+j+i['fileName']+'/'+i['fileName'];await this[q(0x9e)][q(0x98)](i[q(0x94)],h,k);});}catch(i){Log[p(0xbc)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=-parseInt(f(0xe0))/0x1*(-parseInt(f(0xde))/0x2)+parseInt(f(0xdf))/0x3*(parseInt(f(0xe1))/0x4)+-parseInt(f(0xdc))/0x5*(-parseInt(f(0xe2))/0x6)+-parseInt(f(0xdb))/0x7+parseInt(f(0xe6))/0x8*(parseInt(f(0xe7))/0x9)+parseInt(f(0xe9))/0xa*(parseInt(f(0xda))/0xb)+-parseInt(f(0xe8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x65c94));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a['toString']()[h(0xdd)](h(0xe4))[h(0xe3)]()['constructor'](a107a)['search'](h(0xe4));});a107a();function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0xda;var f=c[d];return f;},a107d(a,b);}import'./kit.js';import'./mui/_index.js';function a107c(){var i=['1XDEZff','213284MASdzJ','108366pCFBVS','toString','(((.+)+)+)+$','apply','16hNDhkH','90621xCemdb','5895972dhgMXZ','2018620StPKWI','22TbsYjB','1673721OFyHlL','65RQzwtV','search','337538LxTBgo','18RJLurZ'];a107c=function(){return i;};return a107c();}import'./esri/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=parseInt(f(0x129))/0x1*(-parseInt(f(0x127))/0x2)+-parseInt(f(0x121))/0x3+parseInt(f(0x11f))/0x4+-parseInt(f(0x123))/0x5*(-parseInt(f(0x11d))/0x6)+parseInt(f(0x128))/0x7+-parseInt(f(0x122))/0x8+parseInt(f(0x11e))/0x9*(parseInt(f(0x12a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x7a126));function a108c(){var h=['42oRFmUg','5015829MzZNGT','37079OscWls','366860irqjoY','78uvdpHE','36ZZjyqP','1319956EtsBtO','constructor','1203627SWXwzI','2010080DFKWkH','283790FXBrWK','toString','search','(((.+)+)+)+$'];a108c=function(){return h;};return a108c();}var a108b=(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;};}()),a108a=a108b(this,function(){var g=a108d;return a108a[g(0x124)]()[g(0x125)](g(0x126))[g(0x124)]()[g(0x120)](a108a)[g(0x125)](g(0x126));});a108a();function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x11d;var f=c[d];return f;},a108d(a,b);}import'./esri.generator.js';import'./map.esri.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109h=a109d;(function(a,b){const f=a109d,c=a();while(!![]){try{const d=-parseInt(f(0x71))/0x1*(parseInt(f(0x81))/0x2)+parseInt(f(0x75))/0x3*(-parseInt(f(0x6d))/0x4)+parseInt(f(0x7b))/0x5*(-parseInt(f(0x73))/0x6)+-parseInt(f(0x70))/0x7*(parseInt(f(0x7c))/0x8)+parseInt(f(0x7a))/0x9*(parseInt(f(0x7d))/0xa)+-parseInt(f(0x6f))/0xb+parseInt(f(0x76))/0xc*(parseInt(f(0x80))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x57c60));function a109c(){const j=['1RuuWLm','toString','868854JTrnyI','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','1702671edHAzW','277872jxsfaP','/foo','search','(((.+)+)+)+$','63kEMJdF','5KEoGhD','8nqXSGc','143940jhoMxX','\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','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','923etKpOy','14722kICcRI','4fGXGuI','esri','2522564nsPqUP','3053841livSHI'];a109c=function(){return j;};return a109c();}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 g=a109d;return a109a[g(0x72)]()[g(0x78)](g(0x79))[g(0x72)]()['constructor'](a109a)[g(0x78)](g(0x79));});a109a();import{Generator}from'../../../generator.js';import a109e from'../kit.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x6d;let f=c[d];return f;},a109d(a,b);}const EsriGen=Generator['create']({'name':a109h(0x6e),'aliases':['e'],'usage':a109h(0x74),'noNeedResource':!![],'shortDesc':a109h(0x7f),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:e'],'description':a109h(0x7e)},async function(){const i=a109h;return{'success':!![],'message':'Esri\x20Kit\x20generated\x20successfully','details':{'filesCreated':['/foo/bar'],'filesUpdated':[i(0x77)]}};},async function(){},a109e);export default EsriGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110s=a110d;(function(a,b){const p=a110d,c=a();while(!![]){try{const d=parseInt(p(0x1a2))/0x1+-parseInt(p(0x18f))/0x2+-parseInt(p(0x180))/0x3*(-parseInt(p(0x197))/0x4)+parseInt(p(0x177))/0x5*(-parseInt(p(0x18a))/0x6)+parseInt(p(0x179))/0x7+parseInt(p(0x182))/0x8+-parseInt(p(0x188))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x45d77));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a110d;if(c){const e=c[q(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const r=a110d;return a110a['toString']()['search'](r(0x192))[r(0x17b)]()[r(0x19d)](a110a)['search'](r(0x192));});a110a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a110e from'./esri.generator.js';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x176;let f=c[d];return f;},a110d(a,b);}import a110f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';function a110c(){const v=['363090LKLmPL','findProjectDirectory','true','<div\x20id=\x22map-hook\x22>','Generating\x20a\x20map\x20component','3125uKorjb','</div>','1805972cLqeCp','checkNpmPackage','toString','map','esri-loader','ssr','/imports/ui/hooks','18fSssGK','bright','2394184PnljIp','react','withValue','.js','REACT','engines','216954JFVJJC','fsi','3870OwFjQe','injectTemplateModule','FALSE','injectIntoFile','kit/esri/map/','655146ucDcOC','processAndRunGenerator','Generate\x20an\x20Esri\x20map\x20component','(((.+)+)+)+$','pathFromApp','/imports/startup/client/templates','dir','page','80344CMHhPU','replaceAll','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','error','apply','/imports/ui/','constructor','create','appName','baseDir','\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'];a110c=function(){return v;};return a110c();}Generator[a110s(0x19e)]({'name':a110s(0x17c),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','shortDesc':a110s(0x191),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a110s(0x186)],'ssr':SsrEngines[a110s(0x18c)]},'description':a110s(0x1a1)},async function(a,b){const t=a110s;try{Log[t(0x181)](t(0x176));const c='basic-map';await this[t(0x189)][t(0x17a)](['@esri/react-arcgis',t(0x17d)],{'shouldInstall':!![]});const d=this[t(0x189)][t(0x1a3)](),f=this[t(0x189)]['getMakaProjectConfig'](),g=f[t(0x187)][t(0x17e)]===t(0x1a4),h=await a110f[t(0x190)](t(0x196),['map'],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0x19f)])[t(0x198)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0x1a0)]?t(0x19c)+b['baseDir']:t(0x17f),k=this['fsi']['pathFromApp']({'pathParts':[j,b['dir'],paramCase(c),paramCase(c)]});this['fsi'][t(0x184)](f,async()=>{const u=t;this[u(0x189)]['template']({'srcPath':u(0x18e)+c+u(0x185),'destPath':k+u(0x185),'framework':u(0x183),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0x195)]+'/'+c+'/'+c;await this[t(0x189)][t(0x18b)](c,f,l);const m=h['split']('/'),n=this['fsi'][t(0x193)]({'pathParts':m});await this['fsi']['injectImport']({'filePath':n,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':t(0x194),'isNamedExport':!![]}),await this['fsi'][t(0x18d)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x199),'begin':[t(0x1a5),'<div\x20id=\x22map-component\x22>'],'end':[t(0x178)],'replace':!![]});}catch(o){Log[t(0x19a)](o),process['exit'](0x1);}},async function(){},a110e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111i=a111d;function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x16c;let f=c[d];return f;},a111d(a,b);}(function(a,b){const f=a111d,c=a();while(!![]){try{const d=-parseInt(f(0x16c))/0x1+parseInt(f(0x174))/0x2+parseInt(f(0x177))/0x3*(parseInt(f(0x170))/0x4)+-parseInt(f(0x16f))/0x5+-parseInt(f(0x17b))/0x6+-parseInt(f(0x179))/0x7*(-parseInt(f(0x17c))/0x8)+-parseInt(f(0x16e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x6e7ea));function a111c(){const j=['maka\x20g:kit','1720128nUHUCM','66848ONRPWr','734639wSwjdr','apply','343062zrFCjv','3943380OFXnsl','3216156oNpViw','search','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','toString','1689800aPFDxP','maka\x20g:k','maka\x20{generate,\x20g}:{kit}\x20<name>','3pGrAsK','(((.+)+)+)+$','546qjaApz'];a111c=function(){return j;};return a111c();}const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a111d;if(c){const e=c[g(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const h=a111d;return a111a[h(0x173)]()[h(0x171)](h(0x178))[h(0x173)]()['constructor'](a111a)[h(0x171)](h(0x178));});a111a();import{Generator}from'../../generator.js';const KitGen=Generator['create']({'name':'kit','aliases':['k'],'usage':a111i(0x176),'shortDesc':a111i(0x172),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a111i(0x17a),a111i(0x175)]},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112d(a,b){var c=a112c();return a112d=function(d,e){d=d-0x6d;var f=c[d];return f;},a112d(a,b);}(function(a,b){var f=a112d,c=a();while(!![]){try{var d=-parseInt(f(0x7a))/0x1*(parseInt(f(0x78))/0x2)+parseInt(f(0x73))/0x3+parseInt(f(0x71))/0x4+parseInt(f(0x72))/0x5*(-parseInt(f(0x70))/0x6)+-parseInt(f(0x7b))/0x7+parseInt(f(0x77))/0x8+parseInt(f(0x75))/0x9*(parseInt(f(0x6d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x62e6a));var a112b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a112d;if(c){var e=c[g(0x6e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){var h=a112d;return a112a[h(0x76)]()[h(0x74)]('(((.+)+)+)+$')['toString']()[h(0x79)](a112a)[h(0x74)](h(0x6f));});a112a();function a112c(){var i=['constructor','9VbLsKG','2538186XHResL','1290NOPLLP','apply','(((.+)+)+)+$','18858lSgnjy','2364620PKxrVm','365HwWsta','175845moXLpk','search','25758pJVqQY','toString','4173200wGIhUs','120774RUicOs'];a112c=function(){return i;};return a112c();}import'./mui.generator.js';import'./frame.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113A=a113d;(function(a,b){const x=a113d,c=a();while(!![]){try{const d=-parseInt(x(0x1a2))/0x1*(-parseInt(x(0x1a6))/0x2)+parseInt(x(0x171))/0x3+-parseInt(x(0x17a))/0x4+-parseInt(x(0x178))/0x5+-parseInt(x(0x190))/0x6*(-parseInt(x(0x18f))/0x7)+-parseInt(x(0x1a1))/0x8+parseInt(x(0x192))/0x9*(parseInt(x(0x1ab))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x2f412));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a113d;if(c){const e=c[y(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const z=a113d;return a113a[z(0x1a3)]()['search'](z(0x177))['toString']()[z(0x16e)](a113a)[z(0x180)](z(0x177));});a113a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a113c(){const E=['engines','injectIntoFile','session','<div\x20id=\x22','test','pathFromApp','join','constructor','jsx','checkMeteorPackage','1098246SrzJGn','withValue','getMakaProjectConfig','tests','replaceAll','basic-drawer','(((.+)+)+)+$','1449175aCLyhq','kit/mui/frame/app-bars/','978248GLLDWB','ssr','findAppDirectory','/imports/ui/hooks','.js','-hook\x22>','search','layouts','react','checkbox','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','maka\x20g:k:m:f','{\x20props.children\x20}','getDirectories','Cleaning\x20up...','/imports/startup/lib/templates','fsi','{this.props.children}','MATERIAL','dir','log','35cTgota','279168RDsHIK','{props.children}','392157qhzUar','frame','\x20/>\x0a','kit/mui/frame/drawers/','basic-app-bar','No\x20layouts\x20selected','injectImport','error','options','apply','baseDir','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','/imports/startup/client/templates','create','/imports/ui/','362456cawLki','2nZwNry','toString','maka\x20generate:kit:mui:frame','{\x20this.props.children\x20}','87390wOGZBC','injectTemplateModule','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','true','tsx','20XkboKa'];a113c=function(){return E;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x168;let f=c[d];return f;},a113d(a,b);}import{Actions}from'../../../tools/actions/actions.class.js';import a113e from'path';import a113f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a113A(0x19f)]({'name':a113A(0x193),'aliases':['f'],'usage':a113A(0x19d),'shortDesc':a113A(0x1a8),'validOpts':[a113A(0x181)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a113A(0x18c)],'client':ClientEngines['REACT']},'examples':[a113A(0x1a4),a113A(0x185)],'description':'\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20'},async function(a,b){const B=a113A;try{const c=B(0x196),d=B(0x176),f=this['fsi'][B(0x173)](),g=f[B(0x1ac)][B(0x17b)]===B(0x1a9);await this[B(0x18a)][B(0x170)](B(0x169),{'shouldInstall':!![]});const h=this[B(0x18a)][B(0x17c)](),i=a113e[B(0x16d)](h,'imports','ui',B(0x181)),j=this[B(0x18a)][B(0x187)](i),k=await Actions[B(0x19a)]({'type':B(0x183),'name':B(0x181),'message':B(0x184),'choices':j});if(k['layouts']['length']===0x0){Log[B(0x199)](B(0x197));return;}const l=b[B(0x19c)]?B(0x1a0)+b[B(0x19c)]:B(0x17d),m=this[B(0x18a)][B(0x16c)]({'pathParts':[l,b[B(0x18d)],paramCase(c),paramCase(c)]}),n=this['fsi'][B(0x16c)]({'pathParts':[l,b[B(0x18d)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f['appName'])[B(0x175)]('-','\x20')};await this[B(0x18a)][B(0x172)](f,async()=>{const C=B;await this[C(0x18a)]['template']({'srcPath':C(0x179)+c+C(0x17e),'destPath':m+'.js','framework':C(0x182),'context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x18a)]['template']({'srcPath':C(0x195)+d+C(0x17e),'destPath':n+'.js','framework':C(0x182),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0x18d)]+'/'+c+'/'+c;await this['fsi'][B(0x1a7)](c,f,p);const q=''+l+b[B(0x18d)]+'/'+d+'/'+d;await this[B(0x18a)][B(0x1a7)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this['fsi']['getFiles'](a113e[B(0x16d)](i,s),{'extensions':[B(0x16f),B(0x1aa)],'omit':['app-tests',B(0x174),B(0x16b)]});for(const u of t){const v=a113e['join'](i,s,u);await this['fsi'][B(0x198)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?B(0x189):'/imports/startup/client/templates','isNamedExport':!![]}),await this[B(0x18a)][B(0x168)]({'filePath':v,'content':'<'+pascalCase(c)+B(0x194),'begin':[B(0x16a)+s+'\x22>',B(0x16a)+s+B(0x17f)],'end':[B(0x18b),B(0x1a5),B(0x191),B(0x186)]}),await this[B(0x18a)][B(0x198)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0x189):B(0x19e),'isNamedExport':!![]}),await this[B(0x18a)][B(0x168)]({'filePath':v,'content':'<'+pascalCase(d)+'\x20/>\x0a','begin':['<div\x20id=\x22'+s+'\x22>','<div\x20id=\x22'+s+B(0x17f)],'end':[B(0x18b),'{\x20this.props.children\x20}',B(0x191),B(0x186)]});}}return!![];}catch(w){Log[B(0x199)](w);}},async function(){const D=a113A;console[D(0x18e)](D(0x188));},a113f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a114h=a114d;function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x15a;let f=c[d];return f;},a114d(a,b);}(function(a,b){const f=a114d,c=a();while(!![]){try{const d=-parseInt(f(0x15b))/0x1*(parseInt(f(0x161))/0x2)+-parseInt(f(0x164))/0x3+-parseInt(f(0x163))/0x4*(parseInt(f(0x15d))/0x5)+-parseInt(f(0x15a))/0x6*(parseInt(f(0x169))/0x7)+parseInt(f(0x16a))/0x8+parseInt(f(0x15c))/0x9+parseInt(f(0x165))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xe1b0e));const a114b=(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;};}()),a114a=a114b(this,function(){const g=a114d;return a114a[g(0x15f)]()[g(0x168)](g(0x166))[g(0x15f)]()[g(0x160)](a114a)['search'](g(0x166));});a114a();import{Generator}from'../../../generator.js';import a114e from'../kit.js';const MuiGen=Generator[a114h(0x162)]({'name':a114h(0x16b),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a114h(0x16c),'validOpts':[''],'isPro':![],'examples':[a114h(0x167)]},async function(){const i=a114h;throw i(0x15e);},async function(){},a114e);export default MuiGen;function a114c(){const j=['2513285vCgNsv','NIE','toString','constructor','4764SEeBNL','create','8jIJlRt','3854472oZByxM','37488260tlNUqD','(((.+)+)+)+$','maka\x20g:kit:m','search','7IeFPht','2176296vCazSz','mui','Material-UI\x20Kit','6781668QWjFkk','290gepPKD','9132867sqzzum'];a114c=function(){return j;};return a114c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x6e;let f=c[d];return f;},a115d(a,b);}const a115o=a115d;(function(a,b){const l=a115d,c=a();while(!![]){try{const d=-parseInt(l(0xac))/0x1*(-parseInt(l(0xa7))/0x2)+-parseInt(l(0x70))/0x3*(-parseInt(l(0xa6))/0x4)+-parseInt(l(0xa9))/0x5*(parseInt(l(0x92))/0x6)+parseInt(l(0x6f))/0x7*(parseInt(l(0x7c))/0x8)+-parseInt(l(0xa4))/0x9*(parseInt(l(0xa0))/0xa)+parseInt(l(0x75))/0xb*(-parseInt(l(0x8d))/0xc)+parseInt(l(0xa5))/0xd*(parseInt(l(0x9f))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xad193));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a115d;if(c){const e=c[m(0x9d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const n=a115d;return a115a[n(0x86)]()[n(0x87)](n(0x74))['toString']()[n(0x94)](a115a)['search']('(((.+)+)+)+$');});a115a();function a115c(){const r=['9hKCCUU','14344837JFmWmU','64764hXeMEn','146zabJan','maka\x20g:layout\x20mobile/iPhone8','204485rsGmIn','installNpmPackage','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','3865VcbExq','template','engines','154UEXOfG','3qwPgAr','fileName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.js','(((.+)+)+)+$','11KopcwQ','setTemplate','maka\x20g:l\x20web/safari','.css','import\x20\x27./','includes','true','324544VfAALL','css','test','theme','none','withValue','dir','ssr','pathFromApp','resourceName','toString','search','fsi','withHooks','.app-tests.js','features','className','13887924hDjKno','findAppDirectory','create','ramda','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','36ZbJTYx','client','constructor','injectTemplateModule','pathFromProject','checkNpmPackage','api','getMakaProjectConfig','template/template.css','Scaffolding\x20for\x20a\x20React\x20Layout.','injectAtBeginningOfFile','apply','warn','14JdTjMR','1825610TjMwdW','graphql','string','react'];a115c=function(){return r;};return a115c();}import a115e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a115o(0x8f)]({'name':'layout','aliases':aliases,'usage':a115o(0xab),'shortDesc':a115o(0x9b),'validOpts':[],'examples':[a115o(0xa8),a115o(0x77)]},async function(a,b){const p=a115o,c='/imports/ui/layouts',d=this[p(0x88)][p(0x8e)](),e=this['fsi'][p(0x84)]({'pathParts':[c,b[p(0x82)],paramCase(b[p(0x85)]),paramCase(b['resourceName'])]}),f=this[p(0x88)][p(0x99)]();await this['fsi'][p(0x81)](f,async()=>{const q=p;typeof f[q(0xad)][q(0x7e)]==='string'&&(f[q(0xad)]['test']=f[q(0xad)][q(0x7e)]==='true'?!![]:![],this['fsi'][q(0x76)](q(0x7e),f['template']['test']));typeof f[q(0xad)][q(0x7d)]===q(0xa2)&&(f[q(0xad)][q(0x7d)]=f[q(0xad)][q(0x7d)]===q(0x7b)?!![]:![],this[q(0x88)][q(0x76)](q(0x7d),f['template'][q(0x7d)]));typeof f['template']['js']===q(0xa2)&&(f[q(0xad)]['js']=f[q(0xad)]['js']===q(0x7b)?!![]:![],this['fsi'][q(0x76)]('js',f['template']['js']));!f[q(0x8b)]&&(f[q(0x8b)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[q(0x7a)](g);h&&!this[q(0x97)](q(0x90))&&(Log[q(0x9e)](q(0x91)),this['fsi'][q(0xaa)](q(0x90),{'cwd':d}));if(h&&!this['checkNpmPackage'](q(0xa3))){Log[q(0x9e)](q(0x72));return;}const i={'name':pascalCase(b[q(0x85)]),'myPath':a115e['relative'](this[q(0x88)][q(0x96)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x85)]),'fileName':paramCase(b[q(0x85)]),'graphql':f[q(0x6e)][q(0xa1)],'features':f['features'],'client':f[q(0x6e)][q(0x93)],'api':f[q(0x6e)][q(0x98)],'ssr':f[q(0x6e)][q(0x83)],'test':f['engines']['test'],'theme':f[q(0x6e)][q(0x7f)],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0x8b)]['withTranslations']};f[q(0x8b)]?.[q(0x89)]||b['withHook']?await this[q(0x88)]['template']({'srcPath':'hook/hook.js','destPath':e+q(0x73),'framework':'react','context':i,'config':f}):await this[q(0x88)]['template']({'srcPath':'component/component.js','destPath':e+q(0x73),'framework':'react','context':i,'config':f});f[q(0x6e)][q(0x7e)]!==q(0x80)&&await this[q(0x88)][q(0xad)]({'srcPath':'test/test.js','destPath':e+q(0x8a),'framework':q(0xa3),'context':i,'config':f});f[q(0xad)]['css']&&(await this[q(0x88)]['template']({'srcPath':q(0x9a),'destPath':e+q(0x78),'context':Object['assign']({},i,{'className':paramCase(b[q(0x85)])}),'config':f}),await this[q(0x88)][q(0x9c)]({'filePath':e+'.'+f[q(0x6e)]['js'],'content':q(0x79)+i['fileName']+'.'+f['engines']['css']+'\x27;'}));const j=b[q(0x82)]?'/'+b[q(0x82)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[q(0x71)];await this[q(0x88)][q(0x95)](i[q(0x8c)],f,k);});});
|