@maka/maka-cli 4.6.20 → 4.6.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/layout.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/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
|
|
1
|
+
const a97t=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=-parseInt(q(0x143))/0x1*(-parseInt(q(0x127))/0x2)+parseInt(q(0x124))/0x3*(-parseInt(q(0x11b))/0x4)+parseInt(q(0x171))/0x5*(-parseInt(q(0x13e))/0x6)+-parseInt(q(0x154))/0x7+-parseInt(q(0x159))/0x8*(parseInt(q(0x145))/0x9)+-parseInt(q(0x17c))/0xa+parseInt(q(0x170))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xf1e6f));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 r=a97d;return a97a[r(0x11f)]()[r(0x16e)](r(0x158))[r(0x11f)]()[r(0x176)](a97a)[r(0x16e)](r(0x158));});a97a();import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g 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 a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x117;let f=c[d];return f;},a97d(a,b);}let _prevGen='';function inside(a='.',b){const s=a97d,c=process['cwd']();let d=null;try{process[s(0x14c)](a),d=b();}finally{process[s(0x14c)](c);}return d;}export class Generator extends Tool{['options'];[a97t(0x16c)];constructor(a,b){const u=a97t;super();if(!a)throw new Error(u(0x137));if(!a[u(0x14f)])throw new Error(u(0x14b));if(typeof b!==u(0x122))throw new Error(u(0x123));this[u(0x16c)]=[],this[u(0x120)]=Object[u(0x16f)]({},a),this['name']=this[u(0x120)][u(0x14f)],this[u(0x148)]=b[u(0x16a)](this);}static[a97t(0x142)](a,b,c){const v=a97t;if(!a)throw new Error(v(0x138));if(typeof b!=='function')throw new Error(v(0x134));const d=new Generator(a,b);return c=c||a97g,Object['assign'](d,{'parent':c?.[v(0x120)]?.['name']}),c[v(0x132)](d),d;}[a97t(0x132)](a){const w=a97t;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[w(0x16c)][w(0x12f)](a);}async[a97t(0x160)](a,b=[],c={}){const x=a97t;try{const d=a?.['split'](':');if(!d||d[x(0x161)]===0x0)throw x(0x14a);let f=this[x(0x16c)],g;for(const h of d){g=f[x(0x131)](i=>i[x(0x12c)](h));if(!g)throw x(0x152)+h+'\x20not\x20found';await this[x(0x11d)](g),f=g[x(0x16c)];}if(g)await g['invoke'](b,c);else throw x(0x163);}catch(i){Log['error'](i);}}async[a97t(0x167)](a,b){const y=a97t,c=a[y(0x144)]();b[y(0x12a)]=c[0x0];try{const d=await this['fsi'][y(0x147)](),f=d[y(0x12b)]===y(0x121)?ColorMode[y(0x16b)]:ColorMode[y(0x178)];Log[y(0x140)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[y(0x161)]===0x0&&this['_generators'][y(0x161)]>=0x0,h=b[y(0x162)]||b['h'];if(g&&h){if(this['_generators'][y(0x161)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[y(0x120)][y(0x129)]){const i=this[y(0x125)]();if(!i)throw new MustBeInProjectError();}if(this['options'][y(0x149)]){const j=this[y(0x126)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][y(0x164)]==='number'){if(a[y(0x161)]<this['options']['minArgLength']){Log[y(0x133)](y(0x165));throw new UsageError();}}if(typeof this[y(0x120)][y(0x11e)]===y(0x118)){if(a[y(0x161)]>this[y(0x120)][y(0x11e)]){Log[y(0x133)](y(0x13d));throw new UsageError();}}if(typeof this[y(0x120)][y(0x15a)]===y(0x118)){if(Object[y(0x16d)](b)[y(0x161)]<this[y(0x120)][y(0x15a)]){Log[y(0x133)](y(0x141));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===y(0x118)){if(Object[y(0x16d)](b)['length']>=this[y(0x120)][y(0x11a)]){Log[y(0x133)]('Too\x20many\x20options');throw new UsageError();}}}await this[y(0x13b)](a,b,this[y(0x120)]);if(!b[y(0x12a)]&&!this[y(0x120)][y(0x17b)]){Log[y(0x133)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[y(0x15f)](k),process[y(0x179)](0x1);}inside(b[y(0x139)],async()=>{const z=y;try{if(!b[z(0x13f)]&&!this[z(0x15c)][z(0x150)]())throw new MustBeInProjectError();const l=b[z(0x12a)]?.[z(0x128)](/\\/g,'/')['split']('/');!b[z(0x135)]&&(l?.[z(0x161)]>0x1?(b[z(0x12a)]=l['pop'](),c[0x0]=b['resourceName'],b[z(0x135)]=l[z(0x15d)](m=>{return paramCase(m);})['join'](a97e[z(0x13c)])):b['dir']='');if(this[z(0x120)]['checkWhere']){if(!b[z(0x166)]){const n={'type':z(0x175),'name':'colLocAnswer','message':z(0x172),'choices':[{'name':z(0x156),'value':z(0x13a)},{'name':'Server','value':z(0x153)},{'name':z(0x15b),'value':z(0x17a)}]},{colLocAnswer:o}=await Actions[z(0x120)](n);o?b[z(0x166)]=o:b['where']=z(0x17a);}const m=[z(0x17a),z(0x13a),z(0x153)];if(!m[z(0x15e)](b[z(0x166)])){Log[z(0x133)](z(0x177));throw new UsageError();}switch(b[z(0x166)]){case z(0x17a):b[z(0x151)]='lib';break;case z(0x153):b['appPathPrefix']=z(0x153);break;case z(0x13a):b[z(0x151)]=z(0x13a);break;default:b[z(0x151)]='';}}await this[z(0x148)][z(0x11c)](this,c,b);}catch(p){this['handleGenerateError'](p);}});}[a97t(0x174)](){const A=a97t;this[A(0x119)](this[A(0x16c)]);}[a97t(0x15f)](a){const B=a97t,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[B(0x120)];Log[B(0x168)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log['notice'](B(0x14d)),this[B(0x119)](this[B(0x16c)]);else{if(a instanceof MustBeInProjectError)Log[B(0x133)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[B(0x133)](B(0x173)),Log[B(0x130)](B(0x169));else a instanceof NoMeteorAppFoundError&&Log[B(0x133)](B(0x117));}}}[a97t(0x119)](a){const C=a97t,b=new a97f({});b[C(0x12f)]([C(0x157),C(0x12e),C(0x14e)]),a['sort']()[C(0x146)](c=>{const D=C;b[D(0x12f)]([c[D(0x14f)],c[D(0x136)](),c[D(0x155)]()]);}),Log[C(0x12d)](b[C(0x11f)]());}}function a97c(){const E=['match','bright','Alias','push','notice','find','addGenerator','error','Generator.create\x20requires\x20a\x20handler\x20function!','dir','aliases','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Generator.create\x20requires\x20some\x20options!','cwd','client','validateParams','sep','Too\x20many\x20arguments','2706594XNGblL','root','setColorMode','Too\x20few\x20options','create','229ljUvLG','slice','28953OZCCte','forEach','getGlobalConfig','_handler','mustHaveMeteorInstalled','Generator\x20format\x20is\x20incorrect','Generator\x20requires\x20a\x20name','chdir','Generators:','Description','name','findProjectDirectory','appPathPrefix','Generator\x20','server','11753931TFMKyA','shortDesc','Client','Name','(((.+)+)+)+$','2368sZpNwu','minOptsLength','Both','fsi','map','includes','handleGenerateError','processAndRunGenerator','length','help','Generator\x20not\x20found','minArgLength','Too\x20few\x20arguments','where','invoke','usage','Please\x20run\x20\x22maka\x20install\x20meteor\x22','bind','LIGHT','_generators','keys','search','assign','71508976fUNijA','15ZAwnDq','Location','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','listGenerators','list','constructor','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','DARK','exit','both','noNeedResource','13894600FTmkxh','There\x20is\x20no\x20Meteor\x20application\x20here','number','tableList','maxOptsLength','2086780aYtfmW','call','validateMakaSubscription','maxArgLength','toString','options','light','function','Generator\x20requires\x20a\x20handler\x20function','6cEKzcV','validateMakaProject','validateMeteorInstall','7926TrINFl','replace','mustBeInMakaProject','resourceName','pallet'];a97c=function(){return E;};return a97c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=-parseInt(f(0x136))/0x1*(parseInt(f(0x12e))/0x2)+-parseInt(f(0x13d))/0x3*(-parseInt(f(0x12f))/0x4)+-parseInt(f(0x137))/0x5+-parseInt(f(0x13a))/0x6*(parseInt(f(0x139))/0x7)+parseInt(f(0x130))/0x8*(-parseInt(f(0x132))/0x9)+-parseInt(f(0x134))/0xa+-parseInt(f(0x12d))/0xb*(-parseInt(f(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xea237));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x138)]()['search'](h(0x135))[h(0x138)]()[h(0x131)](a98a)[h(0x13b)]('(((.+)+)+)+$');});a98a();import'./services/_index.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x12d;var f=c[d];return f;},a98d(a,b);}import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';function a98c(){var i=['2002mtCqnd','5058GfYGZt','search','9864gcRrKn','3UCvwcl','38676CjhePW','4oasiSe','2329676jQodcg','26008THAFAX','constructor','2466nrovhH','apply','1823660yjWsdW','(((.+)+)+)+$','463084kcxwaH','1365670cXrNVy','toString'];a98c=function(){return i;};return a98c();}import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99y=a99d;(function(a,b){const v=a99d,c=a();while(!![]){try{const d=-parseInt(v(
|
|
1
|
+
const a99y=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xbb;let f=c[d];return f;},a99d(a,b);}(function(a,b){const v=a99d,c=a();while(!![]){try{const d=-parseInt(v(0xcf))/0x1+-parseInt(v(0xde))/0x2*(-parseInt(v(0xf3))/0x3)+parseInt(v(0x10e))/0x4+parseInt(v(0xda))/0x5*(-parseInt(v(0xe6))/0x6)+parseInt(v(0x10d))/0x7*(parseInt(v(0xec))/0x8)+parseInt(v(0x102))/0x9+-parseInt(v(0xee))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x6459f));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a99d;if(c){const e=c[w(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const x=a99d;return a99a['toString']()['search']('(((.+)+)+)+$')[x(0xdb)]()[x(0xf8)](a99a)[x(0xcd)]('(((.+)+)+)+$');});a99a();function a99c(){const B=['processAndRunGenerator','-api\x27;','resolvers.','pathFromApp','Resolvers\x20}\x20from\x20\x27','/graphql/resolvers','maka:check','fsi','Fixtures','injectAtEndOfFile','search','installMeteorPackage','153589yuddMT','maka:rest','withPubs','api/fixtures.js','apiAnswers','withFixtures','injectIntoFile','maka\x20{generate,\x20g}:{api}\x20<resource-name>','if\x20\x5c(typeList','apply','push','40OdHmiH','toString','\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','exit','22wDYyDb','apollo','Verifying\x20meteor\x20package\x20requirements\x20...','api/tests.js','withMethods','GraphQL','none','rest-api.','489414NIMGcG','const','getProjectConfig','test','maka\x20g:api\x20Todos','checkMeteorPackage','8jBFYlD','import\x20{\x20typeDefs\x20as\x20','6470710YxVIdy','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','/graphql/typeDefs','graphql','startup','195480lhozwo','dir','rpc-methods.','resourceName','notice','constructor','withGql','\x27;\x0a','withRest','template','API\x20boundaries\x20to\x20create','ddp-rate-limiter','import\x20\x27./register-','injectAtBeginningOfFile','server','4307391RoIdtm','register-','api','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','typeList.push(','/imports/api','engines','error','-api.','resolverList.push(','\x0aimport\x20{\x20resolvers\x20as\x20','1947449kKxPdD','1562740svGlKb','typeDefs.','checkbox','fixtures.','api/api.js','api/register-api.js','length','index.','rest','tsx','includes','imports'];a99c=function(){return B;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a99y(0x104),'aliases':['a'],'usage':a99y(0xd6),'shortDesc':a99y(0x105),'validOpts':[a99y(0xf4)],'examples':[a99y(0xea)],'description':a99y(0xdc)},async function(a,b){const z=a99y;try{const c=this['fsi'][z(0xe8)](),d=[{'name':'RPC\x20(Methods)','value':z(0xe2)},{'name':z(0xcb),'value':z(0xd4)},{'name':'Publications','value':z(0xd1)}];c[z(0x108)][z(0x104)]===z(0xbf)&&d['push']({'name':'REST\x20API','value':'withRest'});c[z(0x108)][z(0xf1)]===z(0xdf)&&d[z(0xd9)]({'name':z(0xe3),'value':z(0xf9)});const f={'type':z(0x110),'name':z(0xd3),'message':z(0xfd),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[z(0xbd)]===0x0&&(Log[z(0x109)]('No\x20API\x20boundaries\x20selected'),process[z(0xdd)](0x1)),this[z(0xca)]['withValue'](c,async()=>{const A=z,h=this[A(0xca)][A(0xc6)]({}),i=b[A(0xf6)],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x108)][A(0x104)],'graphql':c[A(0x108)][A(0xf1)],'test':c['engines'][A(0xe9)],'noRename':!![],'withPubs':g[A(0xc1)]('withPubs'),'withFixtures':g[A(0xc1)](A(0xd4)),'withMethods':g['includes']('withMethods'),'withRest':g[A(0xc1)](A(0xfb))};let n='js';c[A(0x108)]['js']===A(0xc0)&&(n='ts');(!this[A(0xca)][A(0xeb)](A(0xd0))||!this['fsi'][A(0xeb)](A(0xc9))||!this[A(0xca)][A(0xeb)](A(0xfe))||!this['fsi']['checkMeteorPackage']('mdg:validated-method')||!this['fsi']['checkMeteorPackage']('mongo'))&&(Log[A(0xf7)](A(0xe0)),await this[A(0xca)][A(0xce)](A(0xef),{'cwd':h}));await a99e[A(0xc3)]('collection',[j],{'config':c,'where':A(0x101)});c[A(0x108)][A(0x104)]==='rest'&&(m[A(0xfb)]&&this[A(0xca)]['template']({'srcPath':A(0xbb),'destPath':this[A(0xca)]['pathFromApp']({'pathParts':[A(0xc2),'api',b['dir'],j,A(0xe5)+n]}),'context':m,'config':c}));m['withMethods']&&this[A(0xca)][A(0xfc)]({'srcPath':'api/methods.js','destPath':this['fsi'][A(0xc6)]({'pathParts':['imports',A(0x104),b['dir'],j,A(0xf5)+n]}),'context':m,'config':c});m[A(0xd4)]&&this[A(0xca)][A(0xfc)]({'srcPath':A(0xd2),'destPath':this[A(0xca)][A(0xc6)]({'pathParts':['imports',A(0x104),b[A(0xf4)],j,A(0x111)+n]}),'context':m,'config':c});c[A(0x108)][A(0xe9)]!==A(0xe4)&&this['fsi']['template']({'srcPath':A(0xe1),'destPath':this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m['withPubs']&&this['fsi'][A(0xfc)]({'srcPath':'api/publications.js','destPath':this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][A(0xf1)]===A(0xdf)){if(g['includes']('withGql')){const p=this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),A(0x101),'index.'+c['engines']['js']]}),q=this[A(0xca)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b['dir'],j,A(0xf1),A(0x10f)+n]}),s=A(0x107)+l+j+A(0xf0);this['fsi'][A(0xfc)]({'srcPath':'api/typeDefs.js','destPath':r,'context':m,'config':c}),this[A(0xca)][A(0x100)]({'filePath':q,'content':A(0xed)+k+'TypeDefs\x20}\x20from\x20\x27'+s+A(0xfa)}),this[A(0xca)][A(0xd5)]({'filePath':q,'content':A(0x106)+k+'TypeDefs);\x0a','begin':A(0xe7),'end':A(0xd7)});const t=this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,A(0xf1),A(0xc5)+n]}),u=A(0x107)+l+j+A(0xc8);this[A(0xca)][A(0xfc)]({'srcPath':'api/resolvers.js','destPath':t,'context':m,'config':c}),this[A(0xca)][A(0x100)]({'filePath':q,'content':A(0x10c)+k+A(0xc7)+u+'\x27;'}),this['fsi'][A(0xd5)]({'filePath':q,'content':A(0x10b)+k+'Resolvers);\x0a\x0a','begin':A(0xe7),'end':'if\x20\x5c(typeList'});}}this['fsi'][A(0xfc)]({'srcPath':A(0xbc),'destPath':this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),'server',A(0x103)+j+A(0x10a)+n]}),'context':m,'config':c,'force':!![]});const o=this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),A(0x101),A(0xbe)+c['engines']['js']]});this[A(0xca)][A(0xcc)]({'filePath':o,'content':A(0xff)+j+A(0xc4)});});}catch(h){console[z(0x109)](h),process[z(0xdd)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a100n=a100d;function a100c(){const q=['engines','fsi','collection/tests.js','create','maka\x20g:collection\x20todos','6020830iGsFQr','notice','11RxMGzW','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','installMeteorPackage','tsx','apply','2903643ZQBYAC','test','where','391162JVGLVh','getProjectConfig','col','import\x20\x27./collections','injectAtEndOfFile','2051913VDJpXr','error','none','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','mongo','template','11602752kaDhyd','5aArwPP','263102nwnRtM','startup','230164WTOySw','resourceName','search','60LxpNYw','withValue','checkMeteorPackage','(((.+)+)+)+$','toString','imports','maka:check','.app-tests.','\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','2UdbeDf','16tAsEAD','pathFromApp','dir','constructor','appPathPrefix'];a100c=function(){return q;};return a100c();}(function(a,b){const k=a100d,c=a();while(!![]){try{const d=parseInt(k(0x1e5))/0x1*(parseInt(k(0x1d0))/0x2)+parseInt(k(0x1ba))/0x3+parseInt(k(0x1c4))/0x4*(-parseInt(k(0x1c1))/0x5)+-parseInt(k(0x1c7))/0x6*(parseInt(k(0x1c2))/0x7)+-parseInt(k(0x1d1))/0x8*(parseInt(k(0x1e2))/0x9)+-parseInt(k(0x1db))/0xa*(parseInt(k(0x1dd))/0xb)+parseInt(k(0x1c0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x5834b));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a100d;if(c){const e=c[l(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const m=a100d;return a100a[m(0x1cb)]()[m(0x1c6)](m(0x1ca))[m(0x1cb)]()[m(0x1d4)](a100a)['search']('(((.+)+)+)+$');});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a100d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a100n(0x1d9)]({'name':'collection','aliases':[a100n(0x1e7)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a100n(0x1de),'validOpts':['dir',a100n(0x1e4)],'description':a100n(0x1cf),'examples':[a100n(0x1da)]},async function(a,b){const o=a100n;try{const c=this[o(0x1d7)][o(0x1d2)]({}),d=this['fsi'][o(0x1e6)]();this[o(0x1d7)][o(0x1c8)](d,async()=>{const p=o,f=paramCase(b[p(0x1c5)]),g={'name':pascalCase(b[p(0x1c5)]),'collectionName':pascalCase(b[p(0x1c5)]),'fileName':f,'where':b[p(0x1e4)],'test':d['engines']['test'],'noRename':!![]};let h='js';d[p(0x1d6)]['js']===p(0x1e0)&&(h='ts');!this[p(0x1d7)][p(0x1c9)](p(0x1be))&&(Log[p(0x1dc)](p(0x1bd)),await this[p(0x1d7)][p(0x1df)](p(0x1be),{'cwd':c}));!this[p(0x1d7)][p(0x1c9)](p(0x1cd))&&(Log[p(0x1dc)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x1d7)][p(0x1df)](p(0x1cd),{'cwd':c}));this[p(0x1d7)]['template']({'srcPath':'collection/collection.js','destPath':this['fsi']['pathFromApp']({'pathParts':[p(0x1cc),'startup',b[p(0x1d5)],'collections',b[p(0x1d3)],f+'.'+h]}),'context':g,'config':d});d[p(0x1d6)][p(0x1e3)]!==p(0x1bc)&&this[p(0x1d7)][p(0x1bf)]({'srcPath':p(0x1d8),'destPath':this[p(0x1d7)][p(0x1d2)]({'pathParts':[p(0x1cc),'startup',b[p(0x1d5)],'collections',b['dir'],f+p(0x1ce)+h]}),'context':g,'config':d});const i=b[p(0x1d3)]?'/'+b[p(0x1d3)]+'/':'/',j=this[p(0x1d7)][p(0x1d2)]({'pathParts':[p(0x1cc),p(0x1c3),b['appPathPrefix'],'index.'+d[p(0x1d6)]['js']]});this[p(0x1d7)][p(0x1e9)]({'filePath':j,'content':p(0x1e8)+i+f+'\x27;'});});}catch(f){Log[o(0x1bb)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a101p=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x1b6))/0x1+parseInt(n(0x1e4))/0x2*(parseInt(n(0x1cc))/0x3)+-parseInt(n(0x1b7))/0x4*(-parseInt(n(0x1d2))/0x5)+-parseInt(n(0x1df))/0x6*(parseInt(n(0x1b8))/0x7)+-parseInt(n(0x1bb))/0x8+-parseInt(n(0x1bf))/0x9*(parseInt(n(0x1bc))/0xa)+parseInt(n(0x1ea))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xb7746));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 o=a101d;return a101a[o(0x1c4)]()[o(0x1d4)]('(((.+)+)+)+$')[o(0x1c4)]()[o(0x1da)](a101a)[o(0x1d4)](o(0x1b0));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a101c(){const s=['dir','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','toString','assign','test','findAppDirectory','className','imports','fsi','true','3045rTrdfc','withTranslations','installNpmPackage','error','export\x20{\x20','.css','317875TLHEfM','.tests.js','search','template/template.css','engines','\x27;\x0a','.js','layouts','constructor','pathFromProject','features','baseDir','setTemplate','8558790fuyBmP','injectAtEndOfFile','css','string','injectAtBeginningOfFile','696iOmwGk','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','fileName','getProjectConfig','create','/imports/ui/components','33984423WElKhM','client','ramda','relative','pathFromApp','api','template','/imports/ui/','theme','cssCaseName','(((.+)+)+)+$','resourceName','pages','root','maka\x20g:comp\x20todos/todos-item','checkNpmPackage','328400LyGJyk','12vvUzWZ','7HhKSJn','rewriteDestinationPathForEngine','test/test.js','2280160FqdsMn','8421230EaHZbA','react','components','9RZfNLr','hooks'];a101c=function(){return s;};return a101c();}import{Log}from'../tools/log/log.class.js';const aliases=['comp'];function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a101d(a,b);}Generator[a101p(0x1e8)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a101p(0x1e5),'validOpts':[{'name':a101p(0x1dd),'values':[a101p(0x1c0),a101p(0x1be),a101p(0x1b2),a101p(0x1d9)]}],'examples':[a101p(0x1b4)]},async function(a,b){const q=a101p;try{const c=this[q(0x1ca)][q(0x1c7)](),d=b['baseDir']?q(0x1ad)+b[q(0x1dd)]:q(0x1e9),f=this[q(0x1ca)][q(0x1aa)]({'pathParts':[d,b['dir'],paramCase(b[q(0x1b1)]),paramCase(b[q(0x1b1)])]}),g=await this[q(0x1ca)][q(0x1e7)]();this['fsi']['withValue'](g,async()=>{const r=q;typeof g['template'][r(0x1c6)]==='string'&&(g[r(0x1ac)][r(0x1c6)]=g['template'][r(0x1c6)]===r(0x1cb)?!![]:![],this[r(0x1ca)]['setTemplate']('test',g[r(0x1ac)][r(0x1c6)]));typeof g[r(0x1ac)]['css']===r(0x1e2)&&(g[r(0x1ac)][r(0x1e1)]=g[r(0x1ac)][r(0x1e1)]===r(0x1cb)?!![]:![],this[r(0x1ca)][r(0x1de)](r(0x1e1),g[r(0x1ac)]['css']));typeof g[r(0x1ac)]['js']===r(0x1e2)&&(g['template']['js']=g[r(0x1ac)]['js']===r(0x1cb)?!![]:![],this[r(0x1ca)][r(0x1de)]('js',g[r(0x1ac)]['js']));!g[r(0x1dc)]&&(g['features']={});!b[r(0x1b3)]&&!this[r(0x1ca)][r(0x1b5)](r(0x1ec))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[r(0x1ca)][r(0x1ce)](r(0x1ec),{'cwd':c}));if(!b[r(0x1b3)]&&!this[r(0x1ca)][r(0x1b5)](r(0x1bd))){Log[r(0x1cf)](r(0x1c2));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[r(0x1ed)](this[r(0x1ca)][r(0x1db)]({}),f),'cssCaseName':paramCase(b[r(0x1b1)]),'className':pascalCase(b[r(0x1b1)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x1b1)]),'graphql':g['engines']['graphql'],'features':g[r(0x1dc)],'client':g[r(0x1d6)][r(0x1eb)],'api':g['engines'][r(0x1ab)],'ssr':g[r(0x1d6)]['ssr'],'test':g[r(0x1d6)][r(0x1c6)],'theme':g['engines'][r(0x1ae)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][r(0x1cd)]};this[r(0x1ca)]['template']({'srcPath':'component/component.js','destPath':f+r(0x1d8),'context':h,'framework':r(0x1bd),'config':g});g[r(0x1d6)][r(0x1c6)]!=='none'&&this[r(0x1ca)][r(0x1ac)]({'srcPath':r(0x1ba),'destPath':f+r(0x1d3),'context':h,'framework':r(0x1bd),'config':g});g['template']['css']&&(this['fsi'][r(0x1ac)]({'srcPath':r(0x1d5),'destPath':f+r(0x1d1),'context':Object[r(0x1c5)]({},h,{'className':paramCase(b[r(0x1b1)])}),'config':g}),this[r(0x1ca)][r(0x1e3)]({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[r(0x1af)]+'.'+g[r(0x1d6)][r(0x1e1)]+'\x27;'}));const i=b[r(0x1c1)]?'/'+b['dir']+'/':'/',j=''+d+i+h[r(0x1e6)]+'/'+h[r(0x1e6)];let k;if(g[r(0x1d6)]['ssr']===r(0x1cb)){const l=this[r(0x1ca)][r(0x1aa)]({'pathParts':[r(0x1c9),'startup','lib',r(0x1c3)]});k=this['fsi'][r(0x1b9)]({'pathParts':[l],'config':g});}else{const m=this[r(0x1ca)][r(0x1aa)]({'pathParts':['imports','startup',r(0x1eb),r(0x1c3)]});k=this['fsi'][r(0x1b9)]({'pathParts':[m],'config':g});}g[r(0x1d6)]['client']===r(0x1bd)||g[r(0x1d6)]['client']==='reflux'?this['fsi'][r(0x1e0)]({'filePath':k,'content':r(0x1d0)+h[r(0x1c8)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[r(0x1ca)][r(0x1e0)]({'filePath':k,'content':'export\x20\x27'+j+'.'+g['engines']['js']+r(0x1d7)});});}catch(h){Log[q(0x1cf)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d
|
|
1
|
+
function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a102d(a,b);}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x1be))/0x1+parseInt(h(0x1b4))/0x2*(-parseInt(h(0x1b2))/0x3)+-parseInt(h(0x1c6))/0x4*(-parseInt(h(0x1c2))/0x5)+-parseInt(h(0x1ad))/0x6+parseInt(h(0x1ac))/0x7+parseInt(h(0x1b3))/0x8*(parseInt(h(0x1c8))/0x9)+-parseInt(h(0x1bd))/0xa*(parseInt(h(0x1b8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xbbf54));function a102c(){const n=['appName','toString','472228YBntzg','dev','4513041lZaMFd','withValue','create','6764289ZoyJyG','3596280cMfxGh','config/process.env','isDocker','apply','pathFromProject','265929tsnkuk','24VWgbHY','4LvVEEi','resourceName','Generate\x20configuration\x20settings.','prod','4796231KGZeoL','config','(((.+)+)+)+$','settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','20gxIyoT','996546RFqPfF','production','development','fsi','40GDdUYq','ubuntu'];a102c=function(){return n;};return a102c();}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a['toString']()['search'](j(0x1ba))[j(0x1c5)]()['constructor'](a102a)['search']('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x1ab)]({'name':'config','usage':a102k(0x1bc),'shortDesc':a102k(0x1b6),'validOpts':[a102k(0x1af)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a102k,c=this[l(0x1c1)]['getProjectConfig']();this[l(0x1c1)][l(0x1c9)](c,async()=>{const m=l,d={'app':c[m(0x1c4)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x1b5)]),'fileName':paramCase(b[m(0x1b5)]),'camelCase':camelCase(b[m(0x1b5)]),'userName':m(0x1c3),'isDocker':b['isDocker']};let e=b['resourceName'];if(e===m(0x1c7))e=m(0x1c0);else e===m(0x1b7)&&(e=m(0x1bf));const f=this[m(0x1c1)]['pathFromProject']({'pathParts':[m(0x1b9),e,m(0x1bb)]});this[m(0x1c1)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x1af)]){const g=this[m(0x1c1)][m(0x1b1)]({'pathParts':[m(0x1b9),e,'process.env']});this['fsi']['template']({'srcPath':m(0x1ae),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x15e))/0x1*(-parseInt(j(0x162))/0x2)+parseInt(j(0x157))/0x3+-parseInt(j(0x166))/0x4*(-parseInt(j(0x14c))/0x5)+parseInt(j(0x14a))/0x6+-parseInt(j(0x16e))/0x7+parseInt(j(0x15a))/0x8+-parseInt(j(0x158))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x30988));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x148;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x179)]()[l(0x15c)](l(0x151))[l(0x179)]()[l(0x148)](a103a)[l(0x15c)]('(((.+)+)+)+$');});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a103c(){const p=['startup','config.','dbc','fsi','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','checkNpmPackage','164227uCKnoy','warn','dbc/register-dbc.js','maka\x20g:dbc\x20todos\x20--type=sqlite','conn.','error','dbc/conn.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql','dbc/config.js','-dbc.','apply','toString','import\x20\x27./register-','constructor','server','1852620euGNRg','withValue','260BkOjti','create','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','template','pgsql','(((.+)+)+)+$','installNpmPackage','pathFromApp','better-sqlite3','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','injectAtEndOfFile','282366bSRwTB','6147936NmDuVK','maka\x20g:dbc\x20azure\x20--type=mssql','1990112dzGXwX','imports','search','getProjectConfig','32801xEyqzL','dir','resourceName','mssql','2BlMkvT','-dbc\x27;','sqlite','engines','17012Yvbmnf','type'];a103c=function(){return p;};return a103c();}import{Log}from'../tools/log/log.class.js';Generator[a103m(0x14d)]({'name':a103m(0x16a),'usage':a103m(0x16c),'shortDesc':a103m(0x155),'validOpts':[a103m(0x15f)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x167),'values':[a103m(0x150),'mssql',a103m(0x164)]}],'examples':[a103m(0x175),a103m(0x159),a103m(0x171)]},async function(a,b){const n=a103m;try{const c=await this[n(0x16b)][n(0x15d)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[n(0x160)]),g={'name':pascalCase(b[n(0x160)]),'fileName':paramCase(b[n(0x160)]),'camelCase':camelCase(b[n(0x160)]),'type':b[n(0x167)],'engine':c['engines']['js'],'noRename':!![]};this[n(0x16b)][n(0x14b)](c,async()=>{const o=n;let h='js';c[o(0x165)]['js']==='tsx'&&(h='ts');b[o(0x167)]===o(0x150)&&!this[o(0x16b)][o(0x16d)]('pg')&&(Log[o(0x16f)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[o(0x16b)][o(0x152)]('pg',{'cwd':d}));b[o(0x167)]==='mssql'&&!this['fsi'][o(0x16d)]('mssql')&&(Log[o(0x16f)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x16b)][o(0x152)](o(0x161),{'cwd':d}));b[o(0x167)]===o(0x164)&&!this[o(0x16b)][o(0x16d)](o(0x154))&&(Log[o(0x16f)](o(0x14e)),await this[o(0x16b)]['installNpmPackage'](o(0x154),{'cwd':d}));this[o(0x16b)][o(0x14f)]({'srcPath':o(0x176),'destPath':this['fsi'][o(0x153)]({'pathParts':[o(0x15b),o(0x168),o(0x149),o(0x16a),b[o(0x15f)],f,o(0x169)+h]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':o(0x174),'destPath':this[o(0x16b)][o(0x153)]({'pathParts':[o(0x15b),'startup',o(0x149),'dbc',b[o(0x15f)],f,o(0x172)+h]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':o(0x170),'destPath':this[o(0x16b)][o(0x153)]({'pathParts':[o(0x15b),'startup','server','register-'+f+o(0x177)+h]}),'context':g,'config':c});const i=this[o(0x16b)][o(0x153)]({'pathParts':['imports',o(0x168),'server','index.'+c[o(0x165)]['js']]});this['fsi'][o(0x156)]({'filePath':i,'content':o(0x17a)+f+o(0x163)});});}catch(h){Log[n(0x173)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x1dc))/0x1*(-parseInt(f(0x1da))/0x2)+-parseInt(f(0x1e0))/0x3+-parseInt(f(0x1d1))/0x4+parseInt(f(0x1c9))/0x5*(parseInt(f(0x1d0))/0x6)+-parseInt(f(0x1e1))/0x7+parseInt(f(0x1d9))/0x8+-parseInt(f(0x1cd))/0x9*(-parseInt(f(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xb3d21));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1d7)]()[h(0x1c5)](h(0x1e3))[h(0x1d7)]()[h(0x1d4)](a104a)[h(0x1c5)](h(0x1e3));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a104d(a,b);}a104a();function a104c(){const l=['14002wNGKEq','findProjectDirectory','73tbmzRZ','fsi','maka\x20g:dockerfile','apply','57060XNxorC','2915941JxqgQF','app','(((.+)+)+)+$','search','docker/Dockerfile','isFile','20230670CLOCuS','354985JBjhaZ','join','getGlobalConfig','withValue','9bIhPgL','getProjectConfig','dockerfile','30LAAFzH','5732684lBpGIU','maka\x20{generate,\x20g}:dockerfile','build','constructor','template','Generate\x20an\x20updated\x20dockerfile','toString','create','5906560RCTODl'];a104c=function(){return l;};return a104c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0x1d8)]({'name':a104i(0x1cf),'usage':a104i(0x1d2),'shortDesc':a104i(0x1d6),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x1de)]},async function(){const j=a104i;try{const a=await this[j(0x1dd)][j(0x1ce)](),b=await this[j(0x1dd)][j(0x1cb)](),c=this[j(0x1dd)][j(0x1db)]();this[j(0x1dd)][j(0x1cc)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a104e[k(0x1ca)](c,k(0x1e2)),'bundlePath':a104e[k(0x1ca)](c,k(0x1d3),'app.tar.gz'),'useCert':this[k(0x1dd)][k(0x1c7)](b['cert'])};this['fsi'][k(0x1d5)]({'srcPath':k(0x1c6),'destPath':a104e[k(0x1ca)](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-
|
|
1
|
+
function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x101;let f=c[d];return f;},a105d(a,b);}const a105r=a105d;function a105c(){const u=['test','lib','pages','1191330iDdqHU','features','warn','client','layouts','test/test.js','892505ihhRLC','getProjectConfig','1052673xmJGEE','apply','setTemplate','export\x20\x27','resourceName','import\x20\x27./','2NflmRU','startup','7CFVXXc','assign','template','pathFromApp','(((.+)+)+)+$','\x20hook...','.js','\x27;\x0a','\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','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','constructor','fileName','hook','withValue','@apollo/client','installNpmPackage','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','cssCaseName','components','search','none','withTranslations','72aCIUMc','export\x20{\x20','55FKxzsR','rewriteDestinationPathForEngine','graphql','react','true','716388oXoAzk','120528TJFLYa','checkNpmPackage','8kVLTIM','notice','dir','Creating\x20','/imports/ui/','injectAtEndOfFile','/imports/ui/hooks','maka\x20g:hook\x20cool-hook','engines','error','.app-tests.js','imports','@apollo/client\x20isomorphic-fetch','string','templates.js','relative','fsi','2851784vOBxEs','toString','injectAtBeginningOfFile','css','hooks','393790GOlayA','baseDir','hook/hook.js','template/template.css'];a105c=function(){return u;};return a105c();}(function(a,b){const o=a105d,c=a();while(!![]){try{const d=parseInt(o(0x12b))/0x1+-parseInt(o(0x10b))/0x2*(parseInt(o(0x105))/0x3)+parseInt(o(0x12d))/0x4*(-parseInt(o(0x103))/0x5)+-parseInt(o(0x14a))/0x6+parseInt(o(0x10d))/0x7*(parseInt(o(0x13e))/0x8)+parseInt(o(0x123))/0x9*(parseInt(o(0x143))/0xa)+-parseInt(o(0x125))/0xb*(-parseInt(o(0x12a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x2cf10));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0x13f)]()[q(0x120)]('(((.+)+)+)+$')[q(0x13f)]()[q(0x117)](a105a)[q(0x120)](q(0x111));});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a105r(0x119),'aliases':['h'],'checkWhere':![],'usage':a105r(0x11d),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a105r(0x144),'values':[a105r(0x142),a105r(0x11f),a105r(0x149),a105r(0x101)]}],'examples':[a105r(0x134)],'description':a105r(0x115)},async function(a,b){const s=a105r;Log[s(0x12e)](s(0x130)+b[s(0x109)]+s(0x112));try{const c=this[s(0x13d)][s(0x12c)](s(0x128));if(!c){Log[s(0x136)](s(0x116));throw new UsageError();}const d=this[s(0x13d)][s(0x110)](b),f=b[s(0x144)]?s(0x131)+b[s(0x144)]:s(0x133),g=this[s(0x13d)][s(0x110)]({'pathParts':[f,b[s(0x12f)],paramCase(b[s(0x109)]),paramCase(b[s(0x109)])]}),h=await this[s(0x13d)][s(0x104)]();this[s(0x13d)][s(0x11a)](h,async()=>{const t=s;typeof h['template']['css']===t(0x13a)&&(h[t(0x10f)]['css']=h['template'][t(0x141)]===t(0x129)?!![]:![],this[t(0x13d)][t(0x107)]('css',h[t(0x10f)][t(0x141)]));h[t(0x135)][t(0x127)]==='apollo'&&!this['fsi']['checkNpmPackage'](t(0x11b))&&(Log[t(0x14c)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x13d)][t(0x11c)](t(0x139),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x109)]),'camelCaseName':camelCase(b[t(0x109)]),'className':pascalCase(b[t(0x109)]),'name':pascalCase(b[t(0x109)]),'graphql':h[t(0x135)][t(0x127)],'theme':h[t(0x135)]['theme'],'features':h['features'],'myPath':a105e[t(0x13c)](this[t(0x13d)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x109)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x14b)][t(0x122)]};this[t(0x13d)][t(0x10f)]({'srcPath':t(0x145),'destPath':g+t(0x113),'context':i,'config':h,'framework':'react'});h['template'][t(0x141)]&&(this['fsi'][t(0x10f)]({'srcPath':t(0x146),'destPath':g+'.css','context':Object[t(0x10e)]({},i,{'className':i[t(0x11e)]}),'config':h}),this[t(0x13d)][t(0x140)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x10a)+i[t(0x118)]+'.'+h[t(0x135)][t(0x141)]+'\x27;'}));h['engines'][t(0x147)]!==t(0x121)&&this['fsi']['template']({'srcPath':t(0x102),'destPath':g+t(0x137),'framework':t(0x128),'context':i,'config':h});const j=b[t(0x12f)]?'/'+b[t(0x12f)]+'/':'/',k=''+f+j+i[t(0x118)]+'/'+i[t(0x118)];let l;if(h[t(0x135)]['ssr']===t(0x129)){const m=this['fsi'][t(0x110)]({'pathParts':['imports',t(0x10c),t(0x148),t(0x13b)]});l=this[t(0x13d)][t(0x126)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x110)]({'pathParts':[t(0x138),t(0x10c),'client',t(0x13b)]});l=this[t(0x13d)][t(0x126)]({'pathParts':[n],'config':h});}h['engines'][t(0x14d)]==='react'?this[t(0x13d)][t(0x132)]({'filePath':l,'content':t(0x124)+i['className']+'\x20}\x20from\x20\x27'+k+'\x27;\x0a'}):this[t(0x13d)][t(0x132)]({'filePath':l,'content':t(0x108)+k+'.'+h[t(0x135)]['js']+t(0x114)});});}catch(i){Log[s(0x136)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0xad;var f=c[d];return f;},a106d(a,b);}(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0xb0))/0x1*(-parseInt(f(0xb5))/0x2)+-parseInt(f(0xb8))/0x3+-parseInt(f(0xaf))/0x4+parseInt(f(0xad))/0x5+parseInt(f(0xb6))/0x6+-parseInt(f(0xb2))/0x7*(-parseInt(f(0xba))/0x8)+-parseInt(f(0xae))/0x9*(-parseInt(f(0xb4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x9cdad));function a106c(){var i=['7PIGUVM','apply','5396210LgKker','13772RYGNeq','5341734PrIxSp','(((.+)+)+)+$','3537972XCWqPh','search','1589752zmoPUi','1120435uBFYER','27LgRECT','4468172qijEgu','1EcIKXY','toString'];a106c=function(){return i;};return a106c();}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()['search'](h(0xb7))[h(0xb1)]()['constructor'](a106a)[h(0xb9)](h(0xb7));});a106a();import'./kit.js';import'./mui/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107i=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a107i=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(0x15a))/0x1+parseInt(f(0x155))/0x2+-parseInt(f(0x15d))/0x3+parseInt(f(0x156))/0x4*(-parseInt(f(0x150))/0x5)+-parseInt(f(0x151))/0x6*(parseInt(f(0x15b))/0x7)+-parseInt(f(0x159))/0x8+parseInt(f(0x14f))/0x9*(parseInt(f(0x14d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x53379));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a['toString']()['search'](h(0x153))[h(0x152)]()['constructor'](a107a)[h(0x15e)](h(0x153));});a107a();import{Generator}from'../../generator.js';function a107c(){const j=['941304sVrhrV','search','30XgIFuu','kit','2283741lUGEiv','15pGXDPT','17016HLDfYb','toString','(((.+)+)+)+$','apply','993484xodihs','104148iToeJc','maka\x20{generate,\x20g}:{kit}\x20<name>','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','1134048fQKKoJ','309761okSDYu','182QaTrzM','create'];a107c=function(){return j;};return a107c();}function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x14d;let f=c[d];return f;},a107d(a,b);}const KitGen=Generator[a107i(0x15c)]({'name':a107i(0x14e),'aliases':['k'],'usage':a107i(0x157),'shortDesc':a107i(0x158),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit','maka\x20g:k']},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x165))/0x1*(parseInt(f(0x15a))/0x2)+-parseInt(f(0x15d))/0x3+parseInt(f(0x163))/0x4+-parseInt(f(0x158))/0x5+parseInt(f(0x164))/0x6*(-parseInt(f(0x166))/0x7)+-parseInt(f(0x15b))/0x8*(parseInt(f(0x15f))/0x9)+-parseInt(f(0x15c))/0xa*(-parseInt(f(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xd4e47));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a['toString']()['search'](h(0x159))[h(0x162)]()[h(0x157)](a108a)[h(0x160)](h(0x159));});a108a();function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x157;var f=c[d];return f;},a108d(a,b);}import'./mui.generator.js';function a108c(){var i=['toString','3679984RxQbHW','4026OQLpWH','5911PsuBfb','16758FnlztW','constructor','7586725ZASVKN','(((.+)+)+)+$','76tjAwHp','688zPosdB','43620680grfTSx','2374524ItSKoD','11LHUREf','28278yIFrjv','search','apply'];a108c=function(){return i;};return a108c();}import'./layout.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a109h=a109d;function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0xca;var f=c[d];return f;},a109d(a,b);}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=parseInt(f(0xcc))/0x1*(parseInt(f(0xd1))/0x2)+parseInt(f(0xd9))/0x3*(parseInt(f(0xd5))/0x4)+-parseInt(f(0xd2))/0x5+-parseInt(f(0xda))/0x6+-parseInt(f(0xde))/0x7*(-parseInt(f(0xd0))/0x8)+-parseInt(f(0xca))/0x9+-parseInt(f(0xd8))/0xa*(-parseInt(f(0xcf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xcdf9a));var a109b=(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;};}()),a109a=a109b(this,function(){var g=a109d;return a109a[g(0xd3)]()[g(0xd7)]('(((.+)+)+)+$')[g(0xd3)]()[g(0xdc)](a109a)['search'](g(0xcd));});a109a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a109e from'./mui.generator.js';function a109c(){var j=['8329590kIWHmG','notice','1oyjKcJ','(((.+)+)+)+$','create','11rMZZJc','1112408SGYlAs','1405022jyrTvI','6039870IeXMIG','toString','maka\x20{generate,\x20g}:{kit}:{layout,\x20l}\x20<kit-name>','16CJIccf','NIE','search','14830230mwONiQ','138714JbbWoj','5537334CtRPSL','layout','constructor','Generate\x20a\x20standard\x20MUI\x20layout','77jlZniz'];a109c=function(){return j;};return a109c();}Generator[a109h(0xce)]({'name':a109h(0xdb),'aliases':['l'],'usage':a109h(0xd4),'shortDesc':a109h(0xdd),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:l\x20master-layout']},async function(){var i=a109h;Log[i(0xcb)](i(0xd6));},a109e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x17e))/0x1+-parseInt(f(0x172))/0x2+-parseInt(f(0x17c))/0x3+-parseInt(f(0x17f))/0x4*(-parseInt(f(0x173))/0x5)+-parseInt(f(0x17d))/0x6*(-parseInt(f(0x171))/0x7)+-parseInt(f(0x174))/0x8+-parseInt(f(0x178))/0x9*(-parseInt(f(0x170))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x88291));function a110c(){const k=['apply','2222553OSXxQa','300KFeBwl','654903TMpyUb','1215260DXqJZF','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','constructor','search','11910gQcloF','129675fRRpaU','1354666hGCNTs','5sovdCv','7726256TnMrXq','Material-UI\x20Kit','toString','create','17883PhmYTy','NIE','maka\x20g:kit:m'];a110c=function(){return k;};return a110c();}function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x16e;let f=c[d];return f;},a110d(a,b);}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x176)]()[h(0x16f)](h(0x180))[h(0x176)]()[h(0x16e)](a110a)[h(0x16f)](h(0x180));});a110a();import{Generator}from'../../../generator.js';import a110e from'../kit.js';const MuiGen=Generator[a110i(0x177)]({'name':'mui','aliases':['m'],'usage':a110i(0x181),'noNeedResource':!![],'shortDesc':a110i(0x175),'validOpts':[''],'isPro':!![],'examples':[a110i(0x17a)]},async function(){const j=a110i;throw j(0x179);},a110e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111r=a111d;
|
|
1
|
+
const a111r=a111d;(function(a,b){const o=a111d,c=a();while(!![]){try{const d=-parseInt(o(0x1e6))/0x1+-parseInt(o(0x205))/0x2+parseInt(o(0x1e7))/0x3+parseInt(o(0x207))/0x4+-parseInt(o(0x1f0))/0x5*(parseInt(o(0x1e8))/0x6)+-parseInt(o(0x1f7))/0x7+parseInt(o(0x1e0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x6d1d9));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a111d;if(c){const e=c[p(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const q=a111d;return a111a[q(0x20b)]()[q(0x1ee)](q(0x20e))[q(0x20b)]()[q(0x1df)](a111a)[q(0x1ee)]('(((.+)+)+)+$');});a111a();function a111c(){const u=['\x27;\x0a','layout','ssr','maka\x20g:layout\x20mobile/iPhone8','injectAtEndOfFile','.css','split','pathFromApp','17914IqSpCY','none','849912yoWmxR','lib','warn','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','toString','test','imports','(((.+)+)+)+$','rewriteDestinationPathForEngine','withValue','withHooks','pathFromProject','template','export\x20\x27','react','fileName','create','true','api','css','hook/hook.js','setTemplate','.js','constructor','3374080iIpXhM','string','features','client','className','dir','43746suFMwk','2382693zGAlZi','78vJnhIf','maka\x20g:l\x20web/safari','fsi','import\x20\x27./','templates.js','relative','search','export\x20{\x20','21570FZDcuz','/imports/ui/layouts','engines','injectAtBeginningOfFile','.app-tests.js','apply','ramda','6109229JkEViL','findAppDirectory','component/component.js','startup','checkNpmPackage','resourceName'];a111c=function(){return u;};return a111c();}import a111e 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'];function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a111d(a,b);}Generator[a111r(0x1d8)]({'name':a111r(0x1fe),'aliases':aliases,'usage':a111r(0x20a),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a111r(0x200),a111r(0x1e9)]},function(a,b){const s=a111r,c=s(0x1f1),d=this[s(0x1ea)][s(0x1f8)](),e=this[s(0x1ea)][s(0x204)]({'pathParts':[c,b[s(0x1e5)],paramCase(b[s(0x1fc)]),paramCase(b[s(0x1fc)])]}),f=this[s(0x1ea)]['getProjectConfig']();this[s(0x1ea)][s(0x210)](f,()=>{const t=s;typeof f[t(0x213)][t(0x20c)]===t(0x1e1)&&(f[t(0x213)][t(0x20c)]=f[t(0x213)][t(0x20c)]===t(0x1d9)?!![]:![],this[t(0x1ea)][t(0x1dd)]('test',f[t(0x213)]['test']));typeof f[t(0x213)][t(0x1db)]==='string'&&(f['template'][t(0x1db)]=f[t(0x213)][t(0x1db)]===t(0x1d9)?!![]:![],this[t(0x1ea)][t(0x1dd)](t(0x1db),f[t(0x213)][t(0x1db)]));typeof f[t(0x213)]['js']===t(0x1e1)&&(f['template']['js']=f[t(0x213)]['js']==='true'?!![]:![],this[t(0x1ea)]['setTemplate']('js',f[t(0x213)]['js']));!f[t(0x1e2)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x203)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x1fb)]('ramda')&&(Log[t(0x209)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x1ea)]['installNpmPackage'](t(0x1f6),{'cwd':d}));if(h&&!this[t(0x1fb)](t(0x215))){Log[t(0x209)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x1fc)]),'myPath':a111e[t(0x1ed)](this[t(0x1ea)][t(0x212)]({}),e),'cssCaseName':paramCase(b[t(0x1fc)]),'className':pascalCase(b[t(0x1fc)]),'camelCaseName':camelCase(b[t(0x1fc)]),'fileName':paramCase(b[t(0x1fc)]),'graphql':f[t(0x1f2)]['graphql'],'features':f[t(0x1e2)],'client':f[t(0x1f2)][t(0x1e3)],'api':f[t(0x1f2)][t(0x1da)],'ssr':f[t(0x1f2)][t(0x1ff)],'test':f[t(0x1f2)][t(0x20c)],'theme':f[t(0x1f2)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e2)]['withTranslations']};f[t(0x1e2)]?.[t(0x211)]||b['withHook']?this[t(0x1ea)][t(0x213)]({'srcPath':t(0x1dc),'destPath':e+t(0x1de),'framework':t(0x215),'context':i,'config':f}):this[t(0x1ea)]['template']({'srcPath':t(0x1f9),'destPath':e+t(0x1de),'framework':'react','context':i,'config':f});f['engines'][t(0x20c)]!==t(0x206)&&this[t(0x1ea)][t(0x213)]({'srcPath':'test/test.js','destPath':e+t(0x1f4),'framework':t(0x215),'context':i,'config':f});f[t(0x213)][t(0x1db)]&&(this[t(0x1ea)][t(0x213)]({'srcPath':'template/template.css','destPath':e+t(0x202),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x1ea)][t(0x1f3)]({'filePath':e+'.'+f[t(0x1f2)]['js'],'content':t(0x1eb)+i[t(0x216)]+'.'+f[t(0x1f2)]['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0x1e5)]+'/':'/',k=''+c+j+i[t(0x216)]+'/'+i[t(0x216)];let l;if(f[t(0x1f2)][t(0x1ff)]===t(0x1d9)){const m=this[t(0x1ea)]['pathFromApp']({'pathParts':[t(0x20d),t(0x1fa),t(0x208),t(0x1ec)]});l=this[t(0x1ea)][t(0x20f)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1ea)][t(0x204)]({'pathParts':[t(0x20d),t(0x1fa),t(0x1e3),'templates.js']});l=this[t(0x1ea)][t(0x20f)]({'pathParts':[n],'config':f});}f['engines'][t(0x1e3)]===t(0x215)?this[t(0x1ea)][t(0x201)]({'filePath':l,'content':t(0x1ef)+i[t(0x1e4)]+'\x20}\x20from\x20\x27'+k+t(0x1fd)}):this[t(0x1ea)][t(0x201)]({'filePath':l,'content':t(0x214)+k+'.'+f[t(0x1f2)]['js']+t(0x1fd)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112i=a112d;
|
|
1
|
+
const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(0x1c4))/0x1+-parseInt(f(0x1c7))/0x2+parseInt(f(0x1c5))/0x3*(-parseInt(f(0x1d7))/0x4)+parseInt(f(0x1d5))/0x5*(-parseInt(f(0x1d9))/0x6)+-parseInt(f(0x1ca))/0x7*(-parseInt(f(0x1cd))/0x8)+-parseInt(f(0x1c6))/0x9+parseInt(f(0x1d4))/0xa*(parseInt(f(0x1ce))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x313ab));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0x1d3)]()[h(0x1c8)]('(((.+)+)+)+$')[h(0x1d3)]()[h(0x1c9)](a112a)[h(0x1c8)](h(0x1d2));});a112a();import{Generator}from'../generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a112d(a,b);}function a112c(){const j=['85016HYgptf','maka\x20g:scaffold\x20todos','348BuxzHJ','maka\x20{generate,\x20g}:<generator>\x20<name>','351598XrBudP','30PxNZxw','688797ilUWEw','226430KFFbCg','search','constructor','7UlHXGX','maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20g:package\x20package:name','2801672QoZFkt','517MXzToA','apply','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:template\x20todos/todo_item','(((.+)+)+)+$','toString','141280DMcMVJ','5060SvLLZi','maka\x20g:api\x20trucks'];a112c=function(){return j;};return a112c();}const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a112i(0x1da),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a112i(0x1d0),'examples':['maka\x20generate:scaffold\x20todos',a112i(0x1d8),a112i(0x1d1),a112i(0x1cc),'maka\x20g:route\x20todos/edit',a112i(0x1d6),a112i(0x1cb)]},function(){});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113m=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=parseInt(k(0x12f))/0x1*(parseInt(k(0x12a))/0x2)+-parseInt(k(0x137))/0x3+parseInt(k(0x133))/0x4+parseInt(k(0x142))/0x5*(parseInt(k(0x147))/0x6)+-parseInt(k(0x12e))/0x7+parseInt(k(0x132))/0x8+-parseInt(k(0x138))/0x9*(parseInt(k(0x140))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xa478b));function a113c(){const p=['mdg:validated-method','imports','checkMeteorPackage','7681093YdJebd','1237zNxPjR','import\x20\x27./methods','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','9595104JfUznu','4514492oqowTR','index.','search','error','3035949nKtlEw','27ijMCiR','startup','(((.+)+)+)+$','-rpc-method.','method/method.js','injectAtEndOfFile','toString','check','3159990AmVzHP','resourceName','262955peWwMq','methods','pathFromApp','create','fsi','60TPpoTx','ddp-rate-limiter','-rpc-method\x27;','appPathPrefix','check\x20ddp-rate-limiter\x20mdg:validated-method','dir','getProjectConfig','maka\x20g:method\x20todos','1418rLNqho'];a113c=function(){return p;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x123;let f=c[d];return f;},a113d(a,b);}const a113b=(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;};}()),a113a=a113b(this,function(){const l=a113d;return a113a['toString']()[l(0x135)](l(0x13a))[l(0x13e)]()['constructor'](a113a)['search'](l(0x13a));});a113a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a113m(0x145)]({'name':'method','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a113m(0x131),'validOpts':[a113m(0x127)],'examples':[a113m(0x129)]},function(a,b){const n=a113m;try{const c=this['fsi'][n(0x128)]();this[n(0x146)]['withValue'](c,async()=>{const o=n,d=paramCase(b[o(0x141)]),f={'name':b[o(0x141)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x141)]),'noRename':!![]};let g='js';c['engines']['js']==='tsx'&&(g='ts');const h=this[o(0x146)][o(0x144)]({});(!this['fsi'][o(0x12d)](o(0x13f))||!this[o(0x146)][o(0x12d)](o(0x123))||!this[o(0x146)][o(0x12d)](o(0x12b)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[o(0x146)]['installMeteorPackage'](o(0x126),{'cwd':h}));this['fsi']['template']({'srcPath':o(0x13c),'destPath':this[o(0x146)]['pathFromApp']({'pathParts':['imports',o(0x139),b['appPathPrefix'],o(0x143),b[o(0x127)],d+o(0x13b)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[o(0x146)]['pathFromApp']({'pathParts':[o(0x12c),o(0x139),b[o(0x125)],o(0x134)+c['engines']['js']]});this[o(0x146)][o(0x13d)]({'filePath':j,'content':o(0x130)+i+d+o(0x124)});});}catch(d){Log[n(0x136)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0xc6))/0x1+-parseInt(l(0xba))/0x2*(-parseInt(l(0xc3))/0x3)+parseInt(l(0xa1))/0x4+parseInt(l(0xbd))/0x5*(parseInt(l(0xb3))/0x6)+parseInt(l(0xbe))/0x7+-parseInt(l(0xbb))/0x8*(parseInt(l(0xa9))/0x9)+-parseInt(l(0xb0))/0xa*(parseInt(l(0xbc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x8c8d2));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a[n(0xcb)]()[n(0xb1)](n(0xb4))['toString']()['constructor'](a114a)[n(0xb1)](n(0xb4));});a114a();import a114e from'path';function a114c(){const s=['noRename','server','ssr','package.js','relative','packages','client','45DDVCXw','layout','apply','component','withValue','graphql','hasOwnProperty','10EbrMCi','search','theme','552kmBfha','(((.+)+)+)+$','forEach','package','getProjectConfig','pathFromProject','.js','34QtTWyr','1686584iYnZXc','13573549FVTpKs','53055IkRrzl','2185211xNWCJZ','tests/server','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','resourceName','dir','113907qfIgal','package/','pathFromApp','320959XeVsYa','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','template/template.js','store','/client/','toString','engines','create','fsi','/package.js','template','2435820OFEWAY'];a114c=function(){return s;};return a114c();}function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x9c;let f=c[d];return f;},a114d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a114o(0x9d)]({'name':a114o(0xb6),'aliases':['p'],'usage':a114o(0xc7),'shortDesc':a114o(0xc0),'validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a114o,c=paramCase(b[p(0xc1)]),d=this[p(0x9e)][p(0xc5)]({'pathParts':['packages',b[p(0xc2)],c]}),e=this[p(0x9e)]['pathFromAppWithNoReWrite']({'pathParts':[p(0xa7),b[p(0xc2)],c,p(0xa5)]}),f=this['fsi'][p(0xb7)]();this[p(0x9e)][p(0xad)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xc1)]),'myPath':a114e[q(0xa6)](this[q(0x9e)][q(0xb8)]({}),d),'cssCaseName':paramCase(b[q(0xc1)]),'className':pascalCase(b[q(0xc1)]),'camelCaseName':camelCase(b[q(0xc1)]),'fileName':c,'client':f[q(0x9c)][q(0xa8)],'graphql':f[q(0x9c)][q(0xae)],'ssr':f[q(0x9c)][q(0xa4)],'isComponent':b[q(0xaf)](q(0xac)),'isLayout':b[q(0xaf)](q(0xaa)),'isStore':b[q(0xaf)](q(0xc9)),'features':f['features'],'noRename':!![],'theme':f[q(0x9c)][q(0xb2)]};this[q(0x9e)][q(0xa0)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xa2)]=![];const h=d+q(0xca)+c+q(0xb9);this['fsi'][q(0xa0)]({'srcPath':q(0xc8),'destPath':h,'context':g,'config':f});const i=['lib',q(0xa3),'tests/client',q(0xbf)];i[q(0xb5)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi'][r(0xa0)]({'srcPath':r(0xc4)+j+r(0x9f),'destPath':k,'context':g,'config':f});});});});
|