@maka/maka-cli 4.5.26 → 4.5.28
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/.eslintrc.json +2 -1
- package/bundle/obf/package.json +24 -22
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.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 -0
- 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 -0
- 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.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/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/kit.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/template/template.css.scss +3 -0
- package/bundle/obf/src/templates/react/component/component.css.scss +3 -0
- package/bundle/obf/src/templates/react/hook/hook.css +3 -0
- package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -0
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +1 -1
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +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/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 +24 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92u=a92d;(function(a,b){const q=a92d,c=a();while(!![]){try{const d=parseInt(q(0xc4))/0x1*(-parseInt(q(0x8a))/0x2)+parseInt(q(0xa6))/0x3*(parseInt(q(0xe6))/0x4)+-parseInt(q(0xb6))/0x5+-parseInt(q(0x9e))/0x6+parseInt(q(0xc6))/0x7+-parseInt(q(0x89))/0x8*(parseInt(q(0xca))/0x9)+parseInt(q(0xe1))/0xa*(parseInt(q(0xd9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0xe6342));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a92d;if(c){const e=c[r(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const s=a92d;return a92a['toString']()[s(0xe5)](s(0xc0))['toString']()[s(0x87)](a92a)[s(0xe5)](s(0xc0));});a92a();import a92e from'path';import a92f from'cli-table';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x86;let f=c[d];return f;},a92d(a,b);}import{paramCase}from'change-case';import a92g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a92c(){const F=['apply','Generator\x20requires\x20a\x20handler\x20function','root','search','4tkmmve','_handler','dir','minArgLength','function','validateMeteorInstall','constructor','bright','104wjtsDQ','5372wwTNBY','slice','roles','minOptsLength','pop','_generators','maxOptsLength','aliases','where','Generators:','usage','singleLicense','list','options','exit','colLocAnswer','sep','filter','cwd','push','4992846nIItHh','error','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','There\x20is\x20no\x20Meteor\x20application\x20here','proGenerators','listGenerators','getPro','2753769IVelLZ','Generator.create\x20requires\x20some\x20options!','Too\x20many\x20arguments','bind','appPathPrefix','number','No\x20resource\x20name\x20specified','match','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Server','name','map','Name','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','checkWhere','fsi','5183685PdyDIK','domainLicense','Both','keys','maxArgLength','validateMakaSubscription','parent','assign','findProjectDirectory','forEach','(((.+)+)+)+$','Alias','sort','findGenerator','463zqbTAD','help','10707396nbIQEu','proFlags','server','tableList','691857VjfWfl','addGenerator','lib','join','mustHaveMeteorInstalled','toString','Too\x20few\x20arguments','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','resourceName','includes','call','invoke','client','Generator\x20requires\x20a\x20name','validateParams','11CcTPEN','Generator.create\x20requires\x20a\x20handler\x20function!','both','mustBeInMakaProject','Client','length','Please\x20run\x20\x22maka\x20install\x20meteor\x22','validateMakaProject','26072080ODQLfb'];a92c=function(){return F;};return a92c();}import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const t=a92d,c=process[t(0x9c)]();let d=null;try{process['chdir'](a),d=b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a92u(0x97)];[a92u(0x8f)];constructor(a,b){const v=a92u;super();if(!a)throw new Error(v(0xb3));if(!a[v(0xb0)])throw new Error(v(0xd7));if(typeof b!==v(0xea))throw new Error(v(0xe3));this[v(0x8f)]=[],this[v(0x97)]=Object[v(0xbd)]({},a),this[v(0xb0)]=this[v(0x97)][v(0xb0)],this['_handler']=b[v(0xa9)](this);}static['create'](a,b,c){const w=a92u;if(!a)throw new Error(w(0xa7));if(typeof b!==w(0xea))throw new Error(w(0xda));const d=new Generator(a,b);return c=c||a92g,Object[w(0xbd)](d,{'parent':c?.['options']?.['name']}),c['addGenerator'](d),d;}[a92u(0xcb)](a){const x=a92u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[x(0x8f)]['push'](a);}[a92u(0xc3)](a){const y=a92u,b=this[y(0x8f)]['find'](c=>c[y(0xad)](a));return b;}async[a92u(0xbb)](a,b){const z=a92u,c=this[z(0xc3)](a[0x0]);if(c){const d=c?.[z(0xb0)]||a[0x0],e=c?.[z(0xbc)]||'',f=Object[z(0xb9)](b),g=await this[z(0xb5)][z(0xa5)]();!g&&(Log[z(0x9f)](z(0xae)),process['exit'](0x1));const h=!g?.['roles'][z(0xd3)](z(0x95))&&!g?.[z(0x8c)]['includes'](z(0xb7)),i=g?.[z(0xa3)]['includes'](d)||g?.[z(0xa3)][z(0xd3)](e);if(i&&h)throw'To\x20use\x20this\x20generator,\x20\x22'+d+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(f[z(0xde)]>0x0){const j=g?.[z(0xc7)][z(0x9b)](k=>f[z(0xd3)](k));if(j&&j[z(0xde)]>0x0&&h)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+j?.[z(0xcd)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a92u(0xd5)](a,b){const A=a92u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x97)];try{await this[A(0xbb)](a,b);}catch(g){Log[A(0x9f)](g),process[A(0x98)](0x1);}const f=a[A(0x8b)]();b[A(0xd2)]=f[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[A(0xc5)])throw new UsageError();if(this[A(0x97)][A(0xdc)]){const h=this[A(0xe0)]();if(!h)throw new MustBeInProjectError();}if(this[A(0x97)][A(0xce)]){const i=this[A(0x86)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0x97)][A(0xe9)]==='number'){if(a[A(0xde)]<this['options'][A(0xe9)]){Log[A(0x9f)](A(0xd0));throw new UsageError();}}if(typeof this[A(0x97)]['maxArgLength']===A(0xab)){if(a[A(0xde)]>this[A(0x97)][A(0xba)]){Log[A(0x9f)](A(0xa8));throw new UsageError();}}if(typeof this[A(0x97)][A(0x8d)]===A(0xab)){if(Object[A(0xb9)](b)[A(0xde)]<this[A(0x97)][A(0x8d)]){Log[A(0x9f)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[A(0x97)][A(0x90)]===A(0xab)){if(Object['keys'](b)['length']>=this[A(0x97)][A(0x90)]){Log[A(0x9f)]('Too\x20many\x20options');throw new UsageError();}}this[A(0xd8)](a,b,this[A(0x97)]);if(!b['resourceName']&&!this['options']['noResource']){Log[A(0x9f)](A(0xac));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[A(0x94)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[A(0x8f)][A(0xde)]>0x0&&b[A(0xc5)]&&(Log['notice'](A(0x93)),this['tableList'](this[A(0x8f)]));else{if(j instanceof MustBeInProjectError)Log['error'](A(0xd1));else{if(j instanceof NoMeteorFoundError)Log[A(0x9f)](A(0xa0)),Log['notice'](A(0xdf));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x9f)](A(0xa2));else throw j;}}}process['exit'](0x1);}return new Promise(k=>{inside(b['cwd'],async()=>{const B=a92d;try{if(!b[B(0xe4)]&&!this['fsi'][B(0xbe)]())throw new MustBeInProjectError();const l=b[B(0xd2)]?.['replace'](/\\/g,'/')['split']('/');!b[B(0xe8)]&&(l?.['length']>0x1?(b['resourceName']=l[B(0x8e)](),f[0x0]=b[B(0xd2)],b[B(0xe8)]=l[B(0xb1)](m=>{return paramCase(m);})['join'](a92e[B(0x9a)])):b[B(0xe8)]='');if(this['options'][B(0xb4)]){if(!b['where']){const n={'type':B(0x96),'name':B(0x99),'message':'Location','choices':[{'name':B(0xdd),'value':'client'},{'name':B(0xaf),'value':B(0xc8)},{'name':B(0xb8),'value':B(0xdb)}]},{colLocAnswer:o}=await Actions[B(0x97)](n);o?b[B(0x92)]=o:b['where']=B(0xdb);}const m=['both',B(0xd6),B(0xc8)];if(!m['includes'](b[B(0x92)])){Log[B(0x9f)](B(0xa1));throw new UsageError();}switch(b[B(0x92)]){case B(0xdb):b[B(0xaa)]=B(0xcc);break;case B(0xc8):b[B(0xaa)]=B(0xc8);break;case B(0xd6):b[B(0xaa)]=B(0xd6);break;default:b[B(0xaa)]='';}}k(this[B(0xe7)][B(0xd4)](this,f,b));}catch(p){console[B(0x9f)](p);}});});}[a92u(0xa4)](){const C=a92u;this['tableList'](this[C(0x8f)]);}[a92u(0xc9)](a){const D=a92u,b=new a92f({});b[D(0x9d)]([D(0xb2),D(0xc1),'Description']),a[D(0xc2)]()[D(0xbf)](c=>{const E=D;b[E(0x9d)]([c[E(0xb0)],c[E(0x91)](),c['shortDesc']()]);}),Log[D(0x88)](b[D(0xcf)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a93d,c=a();while(!![]){try{var d=parseInt(f(0x1c2))/0x1*(parseInt(f(0x1be))/0x2)+-parseInt(f(0x1c0))/0x3*(-parseInt(f(0x1bd))/0x4)+-parseInt(f(0x1bc))/0x5*(-parseInt(f(0x1c9))/0x6)+parseInt(f(0x1c1))/0x7*(parseInt(f(0x1c5))/0x8)+-parseInt(f(0x1c6))/0x9+parseInt(f(0x1c7))/0xa*(-parseInt(f(0x1bf))/0xb)+-parseInt(f(0x1c8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0xbc47e));var a93b=(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;};}()),a93a=a93b(this,function(){var g=a93d;return a93a[g(0x1cb)]()[g(0x1c3)]('(((.+)+)+)+$')['toString']()[g(0x1c4)](a93a)[g(0x1c3)](g(0x1ca));});a93a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';function a93c(){var h=['30wMqbko','(((.+)+)+)+$','toString','531025GqUemW','30196GpSnfu','281094GFywQY','213037cRQzTk','573qqCauP','458360sTAVTl','9oAWlHk','search','constructor','16AaeEgg','10858167chqjcU','710esAttg','192588fmgYYr'];a93c=function(){return h;};return a93c();}import'./maka.gen.js';import'./dockerfile.js';function a93d(a,b){var c=a93c();return a93d=function(d,e){d=d-0x1bc;var f=c[d];return f;},a93d(a,b);}import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94z=a94d;(function(a,b){const w=a94d,c=a();while(!![]){try{const d=parseInt(w(0x1fb))/0x1+-parseInt(w(0x206))/0x2*(-parseInt(w(0x1de))/0x3)+parseInt(w(0x20d))/0x4+parseInt(w(0x213))/0x5*(parseInt(w(0x211))/0x6)+-parseInt(w(0x1f1))/0x7+-parseInt(w(0x1d0))/0x8*(parseInt(w(0x215))/0x9)+parseInt(w(0x20f))/0xa*(parseInt(w(0x1ca))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xb87ab));function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a94d(a,b);}const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a94d;if(c){const e=c[x(0x20b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const y=a94d;return a94a['toString']()[y(0x212)](y(0x1d4))[y(0x1fc)]()[y(0x1e9)](a94a)[y(0x212)](y(0x1d4));});a94a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a94c(){const C=['10776fZMoNm','/imports/api','pathFromApp','Resolvers);\x0a\x0a','(((.+)+)+)+$','push','findGenerator','GraphQL','api','Publications','RPC\x20(Methods)','API\x20boundaries\x20to\x20create','const','installMeteorPackage','3HkVRBF','typeList.push(','.app-tests.','injectAtEndOfFile','test','/graphql/resolvers','graphql','rest','injectIntoFile','maka:rest','none','constructor','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rewriteDestinationPathForEngine','create','maka:check','engines','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withFixtures','7131152lqzmPR','withMethods','api/publications.js','injectAtBeginningOfFile','apollo','fsi','api/api.js','checkbox','startup','maka\x20{generate,\x20g}:{api}\x20<resource-name>','581178sKNdLa','toString','ddp-rate-limiter','maka\x20g:api\x20todos','\x0aimport\x20{\x20resolvers\x20as\x20','No\x20API\x20boundaries\x20selected','api/tests.js','server','withGql','publications.','index.','1120382nynTqb','includes','dir','api/typeDefs.js','Resolvers\x20}\x20from\x20\x27','apply','api/methods.js','394532DXbjAQ','api/fixtures.js','10BjcxmL','if\x20\x5c(typeList','6wsRGRs','search','6759785TpUMZi','register-','8649mBphDO','error','collection','import\x20\x27./register-','withRest','apiAnswers','-api.','template','imports','5245581rmWLab','withPubs','resolverList.push(','withValue','checkMeteorPackage','fixtures.'];a94c=function(){return C;};return a94c();}Generator[a94z(0x1ec)]({'name':a94z(0x1d8),'aliases':['a'],'usage':a94z(0x1fa),'shortDesc':a94z(0x1ef),'validOpts':[a94z(0x208)],'examples':[a94z(0x1fe)]},async function(a,b){const A=a94z;try{const c=this[A(0x1f6)]['getProjectConfig'](),d=[{'name':A(0x1da),'value':A(0x1f2)},{'name':'Fixtures','value':A(0x1f0)},{'name':A(0x1d9),'value':A(0x1cb)}];c['engines']['api']===A(0x1e5)&&d['push']({'name':'REST\x20API','value':A(0x219)});c[A(0x1ee)][A(0x1e4)]===A(0x1f5)&&d[A(0x1d5)]({'name':A(0x1d7),'value':A(0x203)});const f={'type':A(0x1f8),'name':A(0x21a),'message':A(0x1db),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[A(0x216)](A(0x200)),process['exit'](0x1)),this[A(0x1f6)][A(0x1cd)](c,async()=>{const B=A,h=this[B(0x1f6)][B(0x1d2)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x208)]?'/'+b[B(0x208)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1d8)],'graphql':c['engines'][B(0x1e4)],'test':c[B(0x1ee)][B(0x1e2)],'noRename':!![],'withPubs':g[B(0x207)]('withPubs'),'withFixtures':g[B(0x207)](B(0x1f0)),'withMethods':g[B(0x207)](B(0x1f2)),'withRest':g[B(0x207)](B(0x219))};let n='js';c['engines']['js']==='tsx'&&(n='ts');(!this['fsi'][B(0x1ce)](B(0x1e7))||!this['fsi']['checkMeteorPackage'](B(0x1ed))||!this[B(0x1f6)][B(0x1ce)](B(0x1fd))||!this[B(0x1f6)][B(0x1ce)]('mdg:validated-method')||!this['fsi'][B(0x1ce)]('mongo'))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements\x20...'),await this['fsi'][B(0x1dd)](B(0x1ea),{'cwd':h}));const o=a94e[B(0x1d6)](B(0x217));o&&await o['invoke']([j],{'config':c,'where':B(0x202)});c[B(0x1ee)][B(0x1d8)]===B(0x1e5)&&(m['withRest']&&this['fsi'][B(0x1c8)]({'srcPath':B(0x1f7),'destPath':this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x1c8)]({'srcPath':B(0x20c),'destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b['dir'],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x1f0)]&&this['fsi'][B(0x1c8)]({'srcPath':B(0x20e),'destPath':this['fsi'][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1cf)+n]}),'context':m,'config':c});c[B(0x1ee)][B(0x1e2)]!==B(0x1e8)&&this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x201),'destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b['dir'],j,j+B(0x1e0)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x1f3),'destPath':this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),'api',b[B(0x208)],j,B(0x204)+n]}),'context':m,'config':c});if(c[B(0x1ee)][B(0x1e4)]===B(0x1f5)){if(g[B(0x207)]('withGql')){const q=this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1f9),'server',B(0x205)+c[B(0x1ee)]['js']]}),r=this[B(0x1f6)][B(0x1eb)]({'pathParts':[q],'config':c}),s=this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1e4),'typeDefs.'+n]}),t=B(0x1d1)+l+j+'/graphql/typeDefs';this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x209),'destPath':s,'context':m,'config':c}),this['fsi'][B(0x1f4)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0x1f6)][B(0x1e6)]({'filePath':r,'content':B(0x1df)+k+'TypeDefs);\x0a','begin':B(0x1dc),'end':'if\x20\x5c(typeList'});const u=this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1e4),'resolvers.'+n]}),v=B(0x1d1)+l+j+B(0x1e3);this['fsi'][B(0x1c8)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x1f6)][B(0x1f4)]({'filePath':r,'content':B(0x1ff)+k+B(0x20a)+v+'\x27;'}),this[B(0x1f6)][B(0x1e6)]({'filePath':r,'content':B(0x1cc)+k+B(0x1d3),'begin':'const','end':B(0x210)});}}this[B(0x1f6)][B(0x1c8)]({'srcPath':'api/register-api.js','destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1f9),B(0x202),B(0x214)+j+B(0x1c7)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1f9),'server',B(0x205)+c[B(0x1ee)]['js']]});this[B(0x1f6)][B(0x1e1)]({'filePath':p,'content':B(0x218)+j+'-api\x27;'});});}catch(h){console['log'](h),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95n=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=-parseInt(k(0x1f3))/0x1*(-parseInt(k(0x1ce))/0x2)+-parseInt(k(0x1da))/0x3+parseInt(k(0x1e8))/0x4+parseInt(k(0x1d8))/0x5+-parseInt(k(0x1f4))/0x6+parseInt(k(0x1e2))/0x7*(-parseInt(k(0x1c9))/0x8)+parseInt(k(0x1e1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x616c1));function a95c(){const q=['create','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','template','test','2SddXtb','.app-tests.','collection','where','dir','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','none','appPathPrefix','collections','injectAtEndOfFile','2561375zODFsL','(((.+)+)+)+$','1033827TlKFUK','resourceName','withValue','tsx','imports','startup','fsi','6531714JqJVvV','33299DWxXnc','error','getProjectConfig','\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','collection/collection.js','collection/tests.js','858636zJaXAL','checkMeteorPackage','maka:check','mongo','engines','col','installMeteorPackage','apply','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','notice','toString','373181CCNynG','4409700yirCGZ','maka\x20g:collection\x20todos','import\x20\x27./collections','pathFromApp','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','584UkYKLS'];a95c=function(){return q;};return a95c();}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0x1f2)]()['search'](m(0x1d9))[m(0x1f2)]()['constructor'](a95a)['search']('(((.+)+)+)+$');});a95a();import{paramCase,pascalCase}from'change-case';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a95n(0x1ca)]({'name':a95n(0x1d0),'aliases':[a95n(0x1ed)],'usage':a95n(0x1c8),'checkWhere':!![],'shortDesc':a95n(0x1cb),'validOpts':[a95n(0x1d2),a95n(0x1d1)],'description':a95n(0x1e5),'examples':[a95n(0x1f5)]},async function(a,b){const o=a95n;try{const c=this['fsi'][o(0x1c7)]({}),d=this[o(0x1e0)][o(0x1e4)]();this[o(0x1e0)][o(0x1dc)](d,async()=>{const p=o,f=paramCase(b[p(0x1db)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x1d1)],'test':d[p(0x1ec)]['test'],'noRename':!![]};let h='js';d['engines']['js']===p(0x1dd)&&(h='ts');!this[p(0x1e0)][p(0x1e9)](p(0x1eb))&&(Log[p(0x1f1)](p(0x1d3)),await this[p(0x1e0)][p(0x1ee)](p(0x1eb),{'cwd':c}));!this[p(0x1e0)][p(0x1e9)](p(0x1ea))&&(Log[p(0x1f1)](p(0x1f0)),await this[p(0x1e0)][p(0x1ee)]('maka:check',{'cwd':c}));this[p(0x1e0)]['template']({'srcPath':p(0x1e6),'destPath':this[p(0x1e0)]['pathFromApp']({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],p(0x1d6),b[p(0x1d2)],f+'.'+h]}),'context':g,'config':d});d[p(0x1ec)][p(0x1cd)]!==p(0x1d4)&&this['fsi'][p(0x1cc)]({'srcPath':p(0x1e7),'destPath':this['fsi'][p(0x1c7)]({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],p(0x1d6),b[p(0x1d2)],f+p(0x1cf)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[p(0x1e0)][p(0x1c7)]({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],'index.'+d['engines']['js']]});this[p(0x1e0)][p(0x1d7)]({'filePath':j,'content':p(0x1c6)+i+f+'\x27;'});});}catch(f){Log[o(0x1e3)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=parseInt(o(0x10c))/0x1+-parseInt(o(0x100))/0x2+parseInt(o(0x137))/0x3+-parseInt(o(0x119))/0x4*(-parseInt(o(0xfe))/0x5)+parseInt(o(0x128))/0x6*(parseInt(o(0x10b))/0x7)+parseInt(o(0xfd))/0x8*(parseInt(o(0x142))/0x9)+-parseInt(o(0xf7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x39549));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a['toString']()[q(0x116)](q(0x122))[q(0x110)]()[q(0x138)](a96a)['search'](q(0x122));});function a96c(){const u=['\x20}\x20from\x20\x27','521320bMABcH','getProjectConfig','installNpmPackage','resourceName','create','assign','.css','reflux','component/component.js','test','root','147shWBXA','329043jTlhKT','tsx','string','fsi','toString','pages','baseDir','withValue','component','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','import\x20{\x20','features','68024FTEvph','graphql','hooks','setTemplate','apply','import\x20\x27','ramda','engines','injectAtBeginningOfFile','(((.+)+)+)+$','withTranslations','\x27;\x0a','relative','injectAtEndOfFile','error','95076PZzTmn','warn','components','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','.js','cssCaseName','maka\x20g:comp\x20todos/todos-item','findAppDirectory','\x20};\x0a','true','import\x20\x27./','pathFromProject','fileName','templates.js','className','635196aYMDqa','constructor','theme','template','css','Invalid\x20directory\x20option\x20\x22','dir','startup','/imports/ui/','template/template.css','react','9GSMMtX','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','imports','/imports/ui/components','8530330wCJzGD','pathFromApp','checkNpmPackage','api','client','rewriteDestinationPathForEngine','1895144wknYhT','70dHKEcC'];a96c=function(){return u;};return a96c();}function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xf4;let f=c[d];return f;},a96d(a,b);}a96a();import a96e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=['comp'];Generator[a96r(0x104)]({'name':a96r(0x114),'aliases':aliases,'usage':a96r(0x12b),'shortDesc':a96r(0xf4),'validOpts':[a96r(0x112)],'examples':[a96r(0x12e)]},async function(a,b){const s=a96r;try{const c=[s(0x11b),s(0x12a),s(0x111),'layouts'];if(b[s(0x112)]&&!c['includes'](b['baseDir'])){Log[s(0x127)](s(0x13c)+b[s(0x112)]+'\x22'),Log[s(0x127)]('Valid\x20options\x20are:\x20'+c['join'](',\x20'));throw new UsageError();}const d=this[s(0x10f)][s(0x12f)](),f=b[s(0x112)]?s(0x13f)+b['baseDir']:s(0xf6),g=this['fsi']['pathFromApp']({'pathParts':[f,b['dir'],b['resourceName'],paramCase(b[s(0x103)])]}),h=await this[s(0x10f)][s(0x101)]();this['fsi'][s(0x113)](h,async()=>{const t=s;typeof h['template'][t(0x109)]==='string'&&(h[t(0x13a)]['test']=h[t(0x13a)]['test']==='true'?!![]:![],this['fsi']['setTemplate'](t(0x109),h['template']['test']));typeof h[t(0x13a)]['css']==='string'&&(h[t(0x13a)]['css']=h[t(0x13a)][t(0x13b)]===t(0x131)?!![]:![],this['fsi'][t(0x11c)](t(0x13b),h[t(0x13a)][t(0x13b)]));typeof h['template']['js']===t(0x10e)&&(h[t(0x13a)]['js']=h[t(0x13a)]['js']===t(0x131)?!![]:![],this[t(0x10f)][t(0x11c)]('js',h['template']['js']));!h[t(0x118)]&&(h[t(0x118)]={});!b[t(0x10a)]&&!this[t(0x10f)][t(0xf9)]('ramda')&&(Log[t(0x129)](t(0x143)),await this[t(0x10f)][t(0x102)](t(0x11f),{'cwd':d}));if(!b[t(0x10a)]&&!this['fsi']['checkNpmPackage']('react')){Log['error'](t(0x115));return;}const i={'name':pascalCase(b[t(0x103)]),'myPath':a96e[t(0x125)](this[t(0x10f)][t(0x133)]({}),g),'cssCaseName':paramCase(b[t(0x103)]),'className':pascalCase(b[t(0x103)]),'camelCaseName':camelCase(b[t(0x103)]),'fileName':paramCase(b['resourceName']),'graphql':h[t(0x120)][t(0x11a)],'features':h[t(0x118)],'client':h[t(0x120)][t(0xfb)],'api':h['engines'][t(0xfa)],'ssr':h[t(0x120)]['ssr'],'test':h[t(0x120)][t(0x109)],'theme':h['engines'][t(0x139)],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x118)][t(0x123)]};this[t(0x10f)][t(0x13a)]({'srcPath':t(0x108),'destPath':g+t(0x12c),'context':i,'framework':t(0x141),'config':h});h[t(0x120)]['test']!=='none'&&this[t(0x10f)][t(0x13a)]({'srcPath':'test/test.js','destPath':g+'.tests.js','context':i,'framework':'react','config':h});h['template'][t(0x13b)]&&(this[t(0x10f)]['template']({'srcPath':t(0x140),'destPath':g+t(0x106),'context':Object[t(0x105)]({},i,{'className':paramCase(b[t(0x103)])}),'config':h}),this[t(0x10f)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x120)]['js'],'content':t(0x132)+i[t(0x12d)]+'.'+h[t(0x120)][t(0x13b)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x13d)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x134)];let l;if(h[t(0x120)]['ssr']==='true'){const m=this[t(0x10f)][t(0xf8)]({'pathParts':[t(0xf5),t(0x13e),'lib',t(0x135)]});l=this[t(0x10f)][t(0xfc)]({'pathParts':[m],'config':h});}else{const n=this[t(0x10f)][t(0xf8)]({'pathParts':['imports',t(0x13e),'client',t(0x135)]});l=this[t(0x10f)][t(0xfc)]({'pathParts':[n],'config':h});}h['engines'][t(0xfb)]===t(0x141)||h[t(0x120)][t(0xfb)]===t(0x107)?(h[t(0x120)]['js']===t(0x10d)?this[t(0x10f)][t(0x121)]({'filePath':l,'content':t(0x117)+i['className']+t(0xff)+k+t(0x124)}):this[t(0x10f)][t(0x121)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x136)]+t(0xff)+k+'.'+h[t(0x120)]['js']+t(0x124)}),this[t(0x10f)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0x136)]+t(0x130)})):this['fsi'][t(0x126)]({'filePath':l,'content':t(0x11e)+k+'.'+h[t(0x120)]['js']+t(0x124)});});}catch(i){Log[s(0x127)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97k=a97d;(function(a,b){const h=a97d,c=a();while(!![]){try{const d=parseInt(h(0x1e6))/0x1+parseInt(h(0x1d8))/0x2+-parseInt(h(0x1db))/0x3+-parseInt(h(0x1cb))/0x4+parseInt(h(0x1e7))/0x5*(-parseInt(h(0x1e0))/0x6)+parseInt(h(0x1e2))/0x7*(-parseInt(h(0x1d7))/0x8)+parseInt(h(0x1d2))/0x9*(parseInt(h(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xbd21e));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a['toString']()['search'](j(0x1cd))[j(0x1d3)]()[j(0x1ce)](a97a)['search'](j(0x1cd));});a97a();function a97c(){const n=['isDocker','3567221uBqFoN','pathFromProject','withValue','apply','1282107fEVgox','16495CKYmfi','production','20wNskmz','ubuntu','dev','5574584wZCHQG','Generate\x20configuration\x20settings.','(((.+)+)+)+$','constructor','create','maka\x20g:config\x20production','fsi','5303079tXxbiJ','toString','resourceName','config/settings.json','config','8FOkjzP','1160920SpLzUk','appName','template','406389fBKemJ','settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','getProjectConfig','development','414hkMJZI'];a97c=function(){return n;};return a97c();}import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a97d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a97k(0x1cf)]({'name':a97k(0x1d6),'usage':a97k(0x1dd),'shortDesc':a97k(0x1cc),'validOpts':[a97k(0x1e1)],'examples':[a97k(0x1d0)]},function(a,b){const l=a97k,c=this['fsi'][l(0x1de)]();this[l(0x1d1)][l(0x1e4)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x1d9)]),'name':pascalCase(b[m(0x1d4)]),'fileName':paramCase(b[m(0x1d4)]),'camelCase':camelCase(b[m(0x1d4)]),'userName':m(0x1c9),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x1ca))e=m(0x1df);else e==='prod'&&(e=m(0x1c7));const f=this[m(0x1d1)][m(0x1e3)]({'pathParts':[m(0x1d6),e,m(0x1dc)]});this['fsi'][m(0x1da)]({'srcPath':m(0x1d5),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1d1)][m(0x1e3)]({'pathParts':['config',e,'process.env']});this[m(0x1d1)]['template']({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a98c(){const t=['1930190Yabbrh','startup','9535064gmSabq','getProjectConfig','warn','1zDtHFj','tsx','33Mlttym','Invalid\x20type\x20','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','imports','fsi','pgsql','error','better-sqlite3','list','search','dbc/register-dbc.js','server','create','withValue','471wreWKy','maka\x20g:dbc\x20azure\x20--type=mssql','installNpmPackage','PostgreSQL','1964475quvsTN','dbc/config.js','31224tlevAB','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','6635845wRRzer','DB\x20Driver','template','register-','mssql','toString','engines',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','type','dbAnswer','checkNpmPackage','dbc/conn.js','options','config.','apply','pathFromApp','constructor','dir','35smIJpr','import\x20\x27./register-','dbc','-dbc\x27;','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','775538OkAiFI','sqlite','(((.+)+)+)+$','MS\x20SQL','injectAtEndOfFile','index.','maka\x20g:dbc\x20geoserver\x20--type=pgsql','indexOf','resourceName','(blank)','88842zBanDA'];a98c=function(){return t;};return a98c();}const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x123))/0x1*(parseInt(n(0x113))/0x2)+parseInt(n(0x133))/0x3*(parseInt(n(0xfa))/0x4)+parseInt(n(0xfc))/0x5+parseInt(n(0x11d))/0x6*(parseInt(n(0x10e))/0x7)+-parseInt(n(0x120))/0x8+parseInt(n(0xf8))/0x9+-parseInt(n(0x11e))/0xa*(parseInt(n(0x125))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xa78e8));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x101)]()[p(0x12e)](p(0x115))[p(0x101)]()[p(0x10c)](a98a)['search']('(((.+)+)+)+$');});a98a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xf5;let f=c[d];return f;},a98d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a98q(0x131)]({'name':'dbc','usage':a98q(0xfb),'shortDesc':a98q(0x112),'validOpts':[a98q(0x104),'dir'],'examples':[a98q(0x119),a98q(0xf5),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a98q;try{const c=await this[r(0x129)][r(0x121)](),d=this[r(0x129)][r(0x10b)]({}),f=paramCase(b[r(0x11b)]);if(!b['type']){const h={'type':r(0x12d),'name':r(0x105),'message':r(0xfd),'choices':[{'name':r(0xf7),'value':'pgsql'},{'name':r(0x116),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x108)](h);i&&(b[r(0x104)]=i);}const g={'name':pascalCase(b[r(0x11b)]),'fileName':paramCase(b[r(0x11b)]),'camelCase':camelCase(b['resourceName']),'type':b[r(0x104)],'engine':c[r(0x102)]['js'],'noRename':!![]};this['fsi'][r(0x132)](c,async()=>{const s=r;let j='js';c[s(0x102)]['js']===s(0x124)&&(j='ts');const k=['mssql',s(0x12a)];if(k[s(0x11a)](g[s(0x104)])<0x0){const m=g[s(0x104)]?g[s(0x104)]:s(0x11c);Log[s(0x12b)](s(0x126)+m+s(0x103));return;}b['type']===s(0x12a)&&!this['fsi'][s(0x106)]('pg')&&(Log[s(0x122)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0xf6)]('pg',{'cwd':d}));b[s(0x104)]===s(0x100)&&!this[s(0x129)]['checkNpmPackage'](s(0x100))&&(Log[s(0x122)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0x129)][s(0xf6)]('mssql',{'cwd':d}));b[s(0x104)]===s(0x114)&&!this['fsi'][s(0x106)](s(0x12c))&&(Log[s(0x122)](s(0x127)),await this[s(0x129)][s(0xf6)](s(0x12c),{'cwd':d}));this[s(0x129)][s(0xfe)]({'srcPath':s(0xf9),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),'server','dbc',b[s(0x10d)],f,s(0x109)+j]}),'context':g,'config':c}),this[s(0x129)][s(0xfe)]({'srcPath':s(0x107),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0x110),b[s(0x10d)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x129)][s(0xfe)]({'srcPath':s(0x12f),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0xff)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0x118)+c[s(0x102)]['js']]});this['fsi'][s(0x117)]({'filePath':l,'content':s(0x10f)+f+s(0x111)});});}catch(j){Log[r(0x12b)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=-parseInt(f(0x76))/0x1+parseInt(f(0x7b))/0x2*(parseInt(f(0x80))/0x3)+parseInt(f(0x7c))/0x4+-parseInt(f(0x88))/0x5+-parseInt(f(0x8b))/0x6*(-parseInt(f(0x73))/0x7)+-parseInt(f(0x84))/0x8+parseInt(f(0x7a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xbbb4f));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a[h(0x78)]()[h(0x89)](h(0x74))['toString']()[h(0x81)](a99a)[h(0x89)](h(0x74));});a99a();import{Generator}from'../generator.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x6b;let f=c[d];return f;},a99d(a,b);}import{Log}from'../tools/log/log.class.js';import a99e from'path';Generator[a99i(0x82)]({'name':'dockerfile','usage':a99i(0x6d),'shortDesc':a99i(0x70),'validOpts':[],'noResource':!![],'examples':[a99i(0x7f)]},async function(){const j=a99i;try{const a=await this['fsi'][j(0x72)](),b=await this['fsi'][j(0x7d)](),c=this[j(0x87)]['findProjectDirectory']();this[j(0x87)][j(0x6b)](a,async()=>{const k=j,d={'app':b[k(0x83)],'config':a,'appPath':a99e[k(0x79)](c,'app'),'bundlePath':a99e[k(0x79)](c,k(0x6c),k(0x85)),'useCert':this[k(0x87)][k(0x7e)](b[k(0x6e)])};this['fsi'][k(0x75)]({'srcPath':k(0x8a),'destPath':a99e[k(0x79)](c,k(0x77)),'framework':k(0x71),'context':d,'config':a});});}catch(d){Log[j(0x86)](d);}});function a99c(){const l=['docker/Dockerfile','6HRFYNO','withValue','build','maka\x20{generate,\x20g}:dockerfile','cert','apply','Generate\x20an\x20updated\x20dockerfile','service','getProjectConfig','3843637AMFbse','(((.+)+)+)+$','template','447875sMMRoH','Dockerfile','toString','join','3770523PIMqsk','6418jOZHgt','2370516TUUQVJ','getGlobalConfig','isFile','maka\x20g:dockerfile','930IpISPY','constructor','create','appName','552080pGRDky','app.tar.gz','error','fsi','6348625LaGLCW','search'];a99c=function(){return l;};return a99c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100s=a100d;(function(a,b){const p=a100d,c=a();while(!![]){try{const d=-parseInt(p(0x18f))/0x1+parseInt(p(0x174))/0x2+-parseInt(p(0x165))/0x3+parseInt(p(0x183))/0x4*(parseInt(p(0x15a))/0x5)+parseInt(p(0x180))/0x6+-parseInt(p(0x15c))/0x7+parseInt(p(0x164))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x7d2fd));function a100c(){const v=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','baseDir','includes','Creating\x20','ssr','templates.js','checkNpmPackage','pages','theme','template/template.css','/imports/ui/','export\x20{\x20','273236qxbOba','lib','assign','test/test.js','test','resourceName','\x20}\x20from\x20\x27','fsi','startup','.css','\x27;\x0a','injectAtEndOfFile','3353508YBYUHf','graphql','Valid\x20options\x20are:\x20','10732xocoVB','\x20hook...','/imports/ui/hooks','client','layouts','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','@apollo/client','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','Invalid\x20directory\x20option\x20\x22','template','apply','apollo','16533WsHRGy','components','setTemplate','(((.+)+)+)+$','rewriteDestinationPathForEngine','hook/hook.js','css','withValue','true','search','getProjectConfig','import\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','constructor','fileName','imports','hooks','relative','toString','@apollo/client\x20isomorphic-fetch','error','features','engines','pathFromProject','.js','185YMYVhx','.app-tests.js','6695829cShaSC','className','pathFromApp','import\x20{\x20','dir','injectAtBeginningOfFile','string','react','11141992WdrmxK','2105133TIkEfq','withTranslations','none'];a100c=function(){return v;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x157;let f=c[d];return f;},a100d(a,b);}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a100d;if(c){const e=c[q(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const r=a100d;return a100a[r(0x1a1)]()[r(0x198)](r(0x192))[r(0x1a1)]()[r(0x19c)](a100a)['search'](r(0x192));});a100a();import a100e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a100s(0x188),'shortDesc':a100s(0x18a),'validOpts':[a100s(0x169)],'examples':['maka\x20g:hook\x20cool-hook']},async function(a,b){const t=a100s;Log['notice'](t(0x16b)+a[0x0]+t(0x184));try{const c=[t(0x19f),t(0x190),t(0x16f),t(0x187)];if(b[t(0x169)]&&!c[t(0x16a)](b[t(0x169)])){Log[t(0x1a3)](t(0x18b)+b[t(0x169)]+'\x22'),Log[t(0x1a3)](t(0x182)+c['join'](',\x20'));throw new UsageError();}const d=this['fsi'][t(0x16e)](t(0x163));if(!d){Log[t(0x1a3)](t(0x168));throw new UsageError();}const f=this['fsi'][t(0x15e)](b),g=b['baseDir']?t(0x172)+b[t(0x169)]:t(0x185),h=this[t(0x17b)][t(0x15e)]({'pathParts':[g,b[t(0x160)],b[t(0x179)],paramCase(b['resourceName'])]}),i=await this[t(0x17b)][t(0x199)]();this[t(0x17b)][t(0x196)](i,async()=>{const u=t;typeof i[u(0x18c)][u(0x195)]===u(0x162)&&(i[u(0x18c)][u(0x195)]=i[u(0x18c)][u(0x195)]===u(0x197)?!![]:![],this[u(0x17b)][u(0x191)](u(0x195),i[u(0x18c)]['css']));i['engines'][u(0x181)]===u(0x18e)&&!this[u(0x17b)][u(0x16e)](u(0x189))&&(Log['warn'](u(0x19b)),await this[u(0x17b)]['installNpmPackage'](u(0x1a2),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0x179)]),'className':pascalCase(b[u(0x179)]),'name':pascalCase(b['resourceName']),'graphql':i[u(0x157)][u(0x181)],'theme':i[u(0x157)][u(0x170)],'features':i[u(0x1a4)],'myPath':a100e[u(0x1a0)](this['fsi'][u(0x158)]({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x1a4)][u(0x166)]};this[u(0x17b)][u(0x18c)]({'srcPath':u(0x194),'destPath':h+u(0x159),'context':j,'config':i,'framework':u(0x163)});i[u(0x18c)][u(0x195)]&&(this[u(0x17b)][u(0x18c)]({'srcPath':u(0x171),'destPath':h+u(0x17d),'context':Object[u(0x176)]({},j,{'className':j['cssCaseName']}),'config':i}),this[u(0x17b)][u(0x161)]({'filePath':h+'.'+i['engines']['js'],'content':'import\x20\x27./'+j[u(0x19d)]+'.'+i[u(0x157)]['css']+'\x27;'}));i['engines'][u(0x178)]!==u(0x167)&&this[u(0x17b)][u(0x18c)]({'srcPath':u(0x177),'destPath':h+u(0x15b),'framework':u(0x163),'context':j,'config':i});const k=b[u(0x160)]?'/'+b[u(0x160)]+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x19d)];let m;if(i['engines'][u(0x16c)]===u(0x197)){const n=this[u(0x17b)]['pathFromApp']({'pathParts':[u(0x19e),'startup',u(0x175),u(0x16d)]});m=this[u(0x17b)][u(0x193)]({'pathParts':[n],'config':i});}else{const o=this[u(0x17b)][u(0x15e)]({'pathParts':['imports',u(0x17c),u(0x186),u(0x16d)]});m=this[u(0x17b)][u(0x193)]({'pathParts':[o],'config':i});}i[u(0x157)][u(0x186)]===u(0x163)?(i[u(0x157)]['js']==='tsx'?this[u(0x17b)][u(0x161)]({'filePath':m,'content':u(0x15f)+j['className']+u(0x17a)+l+u(0x17e)}):this[u(0x17b)][u(0x161)]({'filePath':m,'content':u(0x15f)+j[u(0x15d)]+u(0x17a)+l+'.'+i[u(0x157)]['js']+'\x27;\x0a'}),this[u(0x17b)][u(0x17f)]({'filePath':m,'content':u(0x173)+j['className']+'\x20};\x0a'})):this[u(0x17b)][u(0x17f)]({'filePath':m,'content':u(0x19a)+l+'.'+i[u(0x157)]['js']+u(0x17e)});});}catch(j){Log['error'](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101k=a101d;function a101c(){const n=['2AQLwnI','engines','map','resourceName','maka\x20g:kit\x20--type=map','4ZCsAvR','login','maka\x20g:k\x20city-map\x20--type=leaflet-map','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','getProjectConfig','create','143ZjqEhk','withValue','2526cedftI','type','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','fsi','indexOf',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','NIE','search','error','notice','1278PdOaXV','3035zbcPsk','159622QQfUxU','1135248aOpnuR','leaflet-map','26056xHlJmV','apply','5303583JwMvVW','kit','8996267Myfnzk','(((.+)+)+)+$','toString','1473370qYoQTm'];a101c=function(){return n;};return a101c();}(function(a,b){const h=a101d,c=a();while(!![]){try{const d=-parseInt(h(0x7d))/0x1*(-parseInt(h(0x88))/0x2)+parseInt(h(0x82))/0x3*(parseInt(h(0x69))/0x4)+parseInt(h(0x7c))/0x5*(parseInt(h(0x71))/0x6)+parseInt(h(0x84))/0x7+parseInt(h(0x80))/0x8*(-parseInt(h(0x7b))/0x9)+-parseInt(h(0x87))/0xa*(parseInt(h(0x6f))/0xb)+-parseInt(h(0x7e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xf3194));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a[j(0x86)]()[j(0x78)](j(0x85))[j(0x86)]()['constructor'](a101a)[j(0x78)](j(0x85));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x68;let f=c[d];return f;},a101d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a101k(0x6e)]({'name':a101k(0x83),'aliases':['k'],'usage':a101k(0x73),'shortDesc':a101k(0x6c),'validOpts':[a101k(0x72)],'examples':[a101k(0x68),a101k(0x6b)]},async function(a,b){const l=a101k;try{const c=this[l(0x74)][l(0x6d)]();this[l(0x74)][l(0x70)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x8b)]),'fileName':paramCase(b[m(0x8b)]),'camelCase':camelCase(b[m(0x8b)]),'type':b[m(0x72)],'engine':c[m(0x89)]['js'],'noRename':!![]},f=[m(0x7f),m(0x6a)];if(f[m(0x75)](d[m(0x72)])<0x0){const g=d['type']?d[m(0x72)]:'(blank)';Log[m(0x79)]('Invalid\x20type\x20'+g+m(0x76));return;}b['type']===m(0x8a)&&Log[m(0x7a)](m(0x77)),b[m(0x72)]===m(0x6a)&&Log['notice'](m(0x77));});}catch(d){Log[l(0x79)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x1d2))/0x1+-parseInt(o(0x1e7))/0x2+parseInt(o(0x1c8))/0x3*(-parseInt(o(0x1d6))/0x4)+-parseInt(o(0x1de))/0x5+parseInt(o(0x1c3))/0x6*(parseInt(o(0x1d8))/0x7)+parseInt(o(0x1e8))/0x8*(parseInt(o(0x1eb))/0x9)+parseInt(o(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x49264));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a['toString']()['search'](q(0x1cf))[q(0x1e1)]()['constructor'](a102a)['search'](q(0x1cf));});a102a();function a102c(){const u=['ssr','6918090tyPTxj','layout','create','template/template.css','import\x20{\x20','maka\x20g:layout\x20mobile/iPhone8','\x20};\x0a','warn','348546lxXnkG','test','relative','.js','tsx','72537LQZcdm','.app-tests.js','import\x20\x27','fsi','injectAtBeginningOfFile','true','setTemplate','(((.+)+)+)+$','startup','import\x20\x27./','101941mZdYxs','templates.js','injectAtEndOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','56SKHjut','className','49EIvOCh','theme','pathFromApp','withHook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','resourceName','2059695XQISyt','template','\x20}\x20from\x20\x27','toString','css','\x27;\x0a','features','none','hook/hook.js','955132vZXxfr','456BrOvUV','string','findAppDirectory','83862CjvVXQ','dir','apply','fileName','assign','client','getProjectConfig','withValue','imports','rewriteDestinationPathForEngine','withTranslations','ramda','checkNpmPackage','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','maka\x20g:l\x20web/safari','engines','includes','lib','api','react','Scaffolding\x20for\x20a\x20React\x20Layout.','withHooks','split'];a102c=function(){return u;};return a102c();}import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1af;let f=c[d];return f;},a102d(a,b);}const aliases=['l'];Generator[a102r(0x1bd)]({'name':a102r(0x1bc),'aliases':aliases,'usage':a102r(0x1b0),'shortDesc':a102r(0x1b7),'validOpts':[],'examples':[a102r(0x1c0),a102r(0x1b1)]},function(a,b){const s=a102r,c='/imports/ui/layouts',d=this[s(0x1cb)][s(0x1ea)](),e=this[s(0x1cb)][s(0x1da)]({'pathParts':[c,b[s(0x1ec)],paramCase(b[s(0x1dd)]),paramCase(b[s(0x1dd)])]}),f=this[s(0x1cb)][s(0x1f1)]();this['fsi'][s(0x1f2)](f,()=>{const t=s;typeof f['template'][t(0x1c4)]===t(0x1e9)&&(f[t(0x1df)][t(0x1c4)]=f[t(0x1df)][t(0x1c4)]===t(0x1cd)?!![]:![],this[t(0x1cb)][t(0x1ce)](t(0x1c4),f[t(0x1df)][t(0x1c4)]));typeof f[t(0x1df)][t(0x1e2)]===t(0x1e9)&&(f[t(0x1df)][t(0x1e2)]=f[t(0x1df)][t(0x1e2)]===t(0x1cd)?!![]:![],this[t(0x1cb)]['setTemplate'](t(0x1e2),f['template'][t(0x1e2)]));typeof f[t(0x1df)]['js']===t(0x1e9)&&(f[t(0x1df)]['js']=f[t(0x1df)]['js']===t(0x1cd)?!![]:![],this[t(0x1cb)][t(0x1ce)]('js',f[t(0x1df)]['js']));!f[t(0x1e4)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x1b9)](':')[0x1]:![],h=b['_']&&aliases[t(0x1b3)](g);h&&!this[t(0x1af)](t(0x1f6))&&(Log['warn'](t(0x1d5)),this['fsi']['installNpmPackage'](t(0x1f6),{'cwd':d}));if(h&&!this[t(0x1af)](t(0x1b6))){Log[t(0x1c2)](t(0x1dc));return;}const i={'name':pascalCase(b[t(0x1dd)]),'myPath':a102e[t(0x1c5)](this[t(0x1cb)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0x1dd)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1dd)]),'fileName':paramCase(b[t(0x1dd)]),'graphql':f['engines']['graphql'],'features':f[t(0x1e4)],'client':f['engines']['client'],'api':f[t(0x1b2)][t(0x1b5)],'ssr':f[t(0x1b2)]['ssr'],'test':f['engines']['test'],'theme':f['engines'][t(0x1d9)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e4)][t(0x1f5)]};f['features']?.[t(0x1b8)]||b[t(0x1db)]?this['fsi'][t(0x1df)]({'srcPath':t(0x1e6),'destPath':e+t(0x1c6),'framework':t(0x1b6),'context':i,'config':f}):this['fsi'][t(0x1df)]({'srcPath':'component/component.js','destPath':e+t(0x1c6),'framework':t(0x1b6),'context':i,'config':f});f[t(0x1b2)][t(0x1c4)]!==t(0x1e5)&&this[t(0x1cb)][t(0x1df)]({'srcPath':'test/test.js','destPath':e+t(0x1c9),'framework':t(0x1b6),'context':i,'config':f});f[t(0x1df)][t(0x1e2)]&&(this[t(0x1cb)][t(0x1df)]({'srcPath':t(0x1be),'destPath':e+'.css','context':Object[t(0x1ef)]({},i,{'className':paramCase(b[t(0x1dd)])}),'config':f}),this['fsi'][t(0x1cc)]({'filePath':e+'.'+f[t(0x1b2)]['js'],'content':t(0x1d1)+i['fileName']+'.'+f[t(0x1b2)][t(0x1e2)]+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x1ee)]+'/'+i['fileName'];let l;if(f[t(0x1b2)][t(0x1ba)]===t(0x1cd)){const m=this[t(0x1cb)][t(0x1da)]({'pathParts':[t(0x1f3),'startup',t(0x1b4),t(0x1d3)]});l=this[t(0x1cb)][t(0x1f4)]({'pathParts':[m],'config':f});}else{const n=this['fsi']['pathFromApp']({'pathParts':['imports',t(0x1d0),t(0x1f0),'templates.js']});l=this[t(0x1cb)][t(0x1f4)]({'pathParts':[n],'config':f});}f[t(0x1b2)][t(0x1f0)]===t(0x1b6)?(f['engines']['js']===t(0x1c7)?this[t(0x1cb)][t(0x1cc)]({'filePath':l,'content':t(0x1bf)+i[t(0x1d7)]+'\x20}\x20from\x20\x27'+k+t(0x1e3)}):this[t(0x1cb)][t(0x1cc)]({'filePath':l,'content':t(0x1bf)+i['className']+t(0x1e0)+k+'.'+f[t(0x1b2)]['js']+t(0x1e3)}),this[t(0x1cb)][t(0x1d4)]({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x1c1)})):this['fsi'][t(0x1d4)]({'filePath':l,'content':t(0x1ca)+k+'.'+f['engines']['js']+t(0x1e3)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103i=a103d;(function(a,b){const f=a103d,c=a();while(!![]){try{const d=-parseInt(f(0x15f))/0x1+parseInt(f(0x159))/0x2+-parseInt(f(0x15e))/0x3*(-parseInt(f(0x162))/0x4)+parseInt(f(0x164))/0x5*(parseInt(f(0x157))/0x6)+parseInt(f(0x167))/0x7*(parseInt(f(0x169))/0x8)+-parseInt(f(0x16b))/0x9*(parseInt(f(0x160))/0xa)+-parseInt(f(0x16a))/0xb*(-parseInt(f(0x16c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x779e8));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a[h(0x163)]()[h(0x15c)](h(0x168))[h(0x163)]()[h(0x166)](a103a)[h(0x15c)](h(0x168));});a103a();import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x157;let f=c[d];return f;},a103d(a,b);}function a103c(){const j=['maka\x20g:hook\x20cool-hook','constructor','2488437gAwKSK','(((.+)+)+)+$','8JEqSDN','649CuJnRa','126hdgYdc','32388VXEiHo','6bepcwD','Maka!','646234iZoYHU','maka\x20generate:api\x20Trucks','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','search','apply','642981qjAmsD','553528CKLYUj','503340kGMWyw','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','16PtQrUp','toString','265035cOKObJ'];a103c=function(){return j;};return a103c();}const MakaGen=new Generator({'name':'maka','shortDesc':a103i(0x158),'validOpts':[],'description':a103i(0x161),'usage':a103i(0x15b),'examples':[a103i(0x15a),a103i(0x165)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104n=a104d;function a104c(){const q=['-rpc-method\x27;','getProjectConfig','1322364uYxcIR','method/method.js','toString','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','maka\x20g:method\x20todos','148977Hebmoh','91882hTzoxQ','962290BmTMUL','pathFromApp','import\x20\x27./methods','2088HMvKMB','check','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','methods','search','25701610oZgitC','fsi','resourceName','dir','408gZrFJl','apply','mdg:validated-method','constructor','1334wuhixV','8GFzoYB','550OYVbMO','appPathPrefix','index.','maka\x20{generate,\x20g}:{method,\x20m}\x20name','check\x20ddp-rate-limiter\x20mdg:validated-method','startup','template','create','ddp-rate-limiter','3822972yrSBNf','checkMeteorPackage','engines','warn','error'];a104c=function(){return q;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a104d(a,b);}(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x1dd))/0x1+parseInt(k(0x1cb))/0x2*(parseInt(k(0x1e8))/0x3)+-parseInt(k(0x1cc))/0x4*(parseInt(k(0x1e5))/0x5)+-parseInt(k(0x1d6))/0x6+-parseInt(k(0x1e4))/0x7*(parseInt(k(0x1c7))/0x8)+-parseInt(k(0x1e3))/0x9*(-parseInt(k(0x1cd))/0xa)+parseInt(k(0x1c3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xaa3c9));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a[m(0x1df)]()[m(0x1c2)](m(0x1e0))[m(0x1df)]()[m(0x1ca)](a104a)[m(0x1c2)](m(0x1e0));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a104n(0x1d4)]({'name':'method','aliases':['m'],'usage':a104n(0x1d0),'checkWhere':!![],'shortDesc':a104n(0x1e1),'validOpts':[a104n(0x1c6)],'examples':[a104n(0x1e2)]},function(a,b){const o=a104n;try{const c=this[o(0x1c4)][o(0x1dc)]();this[o(0x1c4)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x1c5)]),f={'name':b[p(0x1c5)],'fileName':d,'className':pascalCase(b[p(0x1c5)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1d8)]['js']==='tsx'&&(g='ts');const h=this['fsi'][p(0x1e6)]({});(!this[p(0x1c4)][p(0x1d7)](p(0x1bf))||!this['fsi'][p(0x1d7)](p(0x1d5))||!this['fsi'][p(0x1d7)](p(0x1c9)))&&(Log[p(0x1d9)](p(0x1c0)),this[p(0x1c4)]['installMeteorPackage'](p(0x1d1),{'cwd':h}));this[p(0x1c4)][p(0x1d3)]({'srcPath':p(0x1de),'destPath':this[p(0x1c4)][p(0x1e6)]({'pathParts':['imports',p(0x1d2),b[p(0x1ce)],p(0x1c1),b[p(0x1c6)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1c6)]?'/'+b[p(0x1c6)]+'/':'/',j=this[p(0x1c4)][p(0x1e6)]({'pathParts':['imports',p(0x1d2),b[p(0x1ce)],p(0x1cf)+c[p(0x1d8)]['js']]});this[p(0x1c4)]['injectAtEndOfFile']({'filePath':j,'content':p(0x1e7)+i+d+p(0x1db)});});}catch(d){Log[o(0x1da)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x16b))/0x1*(-parseInt(l(0x180))/0x2)+-parseInt(l(0x171))/0x3+parseInt(l(0x166))/0x4+parseInt(l(0x18a))/0x5+-parseInt(l(0x17a))/0x6*(-parseInt(l(0x16d))/0x7)+parseInt(l(0x182))/0x8*(parseInt(l(0x18e))/0x9)+-parseInt(l(0x189))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x88068));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x183)]()[n(0x167)]('(((.+)+)+)+$')[n(0x183)]()[n(0x174)](a105a)['search'](n(0x179));});a105a();import a105e from'path';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x161;let f=c[d];return f;},a105d(a,b);}function a105c(){const s=['1358100oPlfGp','client','tests/server','constructor','theme','relative','.js','noRename','(((.+)+)+)+$','209478BgUFuF','pathFromApp','fsi','tests/client','create','ssr','14ftqinv','/client/','230264KIFIql','toString','/package.js','getProjectConfig','maka\x20g:package\x20todos:package','pathFromAppWithNoReWrite','dir','6793280XPvKGO','163360ODJLOA','engines','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','server','207IkfDWi','layout','features','forEach','lib','template/template.js','package.js','template','1451632HxWsrX','search','packages','store','package/','25390ckfgad','hasOwnProperty','91jPtAqh','resourceName','apply','withValue'];a105c=function(){return s;};return a105c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105o(0x17e)]({'name':'package','aliases':['p'],'usage':a105o(0x18c),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a105o(0x188)],'examples':[a105o(0x186)]},async function(a,b){const p=a105o,c=paramCase(b[p(0x16e)]),d=this[p(0x17c)][p(0x17b)]({'pathParts':['packages',b['dir'],c]}),e=this[p(0x17c)][p(0x187)]({'pathParts':[p(0x168),b[p(0x188)],c,p(0x164)]}),f=this[p(0x17c)][p(0x185)]();this[p(0x17c)][p(0x170)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x16e)]),'myPath':a105e[q(0x176)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x16e)]),'className':pascalCase(b[q(0x16e)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x18b)][q(0x172)],'graphql':f[q(0x18b)]['graphql'],'ssr':f[q(0x18b)][q(0x17f)],'isComponent':b['hasOwnProperty']('component'),'isLayout':b['hasOwnProperty'](q(0x18f)),'isStore':b[q(0x16c)](q(0x169)),'features':f[q(0x190)],'noRename':!![],'theme':f[q(0x18b)][q(0x175)]};this[q(0x17c)][q(0x165)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x178)]=![];const h=d+q(0x181)+c+q(0x177);this[q(0x17c)][q(0x165)]({'srcPath':q(0x163),'destPath':h,'context':g,'config':f});const i=[q(0x162),q(0x18d),q(0x17d),q(0x173)];i[q(0x161)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x177);this[r(0x17c)]['template']({'srcPath':r(0x16a)+j+r(0x184),'destPath':k,'context':g,'config':f});});});});
|