@maka/maka-cli 4.6.21 → 4.6.23
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 +2 -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/templates/react/kit/mui/frame/basic-app-bar.js +32 -0
- package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.jsx +32 -0
- package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.ts +0 -0
- package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.tsx +0 -0
- 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 +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97u=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=parseInt(q(0x7d))/0x1+parseInt(q(0xb9))/0x2+-parseInt(q(0x8d))/0x3*(parseInt(q(0x94))/0x4)+-parseInt(q(0xc6))/0x5+-parseInt(q(0x81))/0x6+-parseInt(q(0xdf))/0x7*(-parseInt(q(0xc2))/0x8)+parseInt(q(0x7f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x67bf2));function a97c(){const F=['You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','apply','length','Too\x20many\x20arguments','Please\x20run\x20\x22maka\x20install\x20meteor\x22','_generators','validateParams','checkWhere','listGenerators','where','Too\x20few\x20arguments','client','appPathPrefix','replace','tableList','invoke','server','There\x20is\x20no\x20Meteor\x20application\x20here','notice','resourceName','includes','Description','sort','colLocAnswer','No\x20resource\x20name\x20specified','create','both','Name','Generator\x20not\x20found','cwd','LIGHT','usage','1428346tAglWj','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','maxArgLength','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','function','validateMeteorInstall','options','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','addGenerator\x20requires\x20a\x20Generator\x20instance','651208IRuksY','search','Generator.create\x20requires\x20a\x20handler\x20function!','aliases','3146290TGLQuH','getGlobalConfig','Alias','validateEngines','bind','chdir','pop','assign','validateMakaSubscription','(((.+)+)+)+$','Generator\x20format\x20is\x20incorrect','_handler','addGenerator','name','exit','findProjectDirectory','maxOptsLength','Too\x20few\x20options','requiredEngines','shortDesc','bright','split','minOptsLength','Generators:','error','70IgpYUM','fsi','Generator.create\x20requires\x20some\x20options!','processAndRunGenerator','43122BxyPiT','mustHaveMeteorInstalled','6665877RrMnpl','slice','4579446BMiHSA','\x20not\x20found','forEach','toString','join','mustBeInMakaProject','Both','Client','validateMakaProject','keys','call','Generator\x20requires\x20a\x20handler\x20function','3QpecHJ','noNeedResource','pallet','number','help','dir','minArgLength','1978052PQHjos','push','list','light','handleGenerateError'];a97c=function(){return F;};return a97c();}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a97d;if(c){const e=c[r(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const s=a97d;return a97a[s(0x84)]()['search'](s(0xcf))[s(0x84)]()['constructor'](a97a)[s(0xc3)](s(0xcf));});a97a();import a97e from'path';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x7d;let f=c[d];return f;},a97d(a,b);}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';let _prevGen='';function inside(a='.',b){const t=a97d,c=process[t(0xb6)]();let d=null;try{process[t(0xcb)](a),d=b();}finally{process[t(0xcb)](c);}return d;}export class Generator extends Tool{[a97u(0xbf)];[a97u(0x9e)];constructor(a,b){const v=a97u;super();if(!a)throw new Error(v(0xc0));if(!a['name'])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0xbd))throw new Error(v(0x8c));this[v(0x9e)]=[],this[v(0xbf)]=Object[v(0xcd)]({},a),this[v(0xd3)]=this['options'][v(0xd3)],this[v(0xd1)]=b[v(0xca)](this);}static[a97u(0xb2)](a,b,c){const w=a97u;if(!a)throw new Error(w(0xe1));if(typeof b!==w(0xbd))throw new Error(w(0xc4));const d=new Generator(a,b);return c=c||a97g,Object[w(0xcd)](d,{'parent':c?.[w(0xbf)]?.[w(0xd3)]}),c[w(0xd2)](d),d;}[a97u(0xd2)](a){const x=a97u;if(!(a instanceof Generator))throw new Error(x(0xc1));this[x(0x9e)]['push'](a);}async[a97u(0xe2)](a,b=[],c={}){const y=a97u;try{const d=a?.[y(0xdb)](':');if(!d||d[y(0x9b)]===0x0)throw y(0xd0);let f=this[y(0x9e)],g;for(const h of d){g=f['find'](i=>i['match'](h));if(!g)throw'Generator\x20'+h+y(0x82);await this[y(0xce)](g),f=g['_generators'];}if(g)await g[y(0xa8)](b,c);else throw y(0xb5);}catch(i){Log[y(0xde)](i);}}async[a97u(0xa8)](a,b){const z=a97u,c=a[z(0x80)]();b[z(0xac)]=c[0x0];try{const d=await this[z(0xe0)][z(0xc7)](),f=d[z(0x8f)]===z(0x97)?ColorMode[z(0xb7)]:ColorMode['DARK'];Log['setColorMode'](f),await this[z(0xce)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[z(0x9e)][z(0x9b)]>=0x0,h=b[z(0x91)]||b['h'];if(g&&h){if(this['_generators']['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[z(0xbf)][z(0x86)]){const i=this[z(0x89)]();if(!i)throw new MustBeInProjectError();}if(this[z(0xbf)][z(0x7e)]){const j=this[z(0xbe)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[z(0xbf)][z(0x93)]===z(0x90)){if(a[z(0x9b)]<this[z(0xbf)][z(0x93)]){Log[z(0xde)](z(0xa3));throw new UsageError();}}if(typeof this[z(0xbf)][z(0xbb)]==='number'){if(a['length']>this[z(0xbf)][z(0xbb)]){Log[z(0xde)](z(0x9c));throw new UsageError();}}if(typeof this['options'][z(0xdc)]===z(0x90)){if(Object[z(0x8a)](b)[z(0x9b)]<this[z(0xbf)][z(0xdc)]){Log[z(0xde)](z(0xd7));throw new UsageError();}}if(typeof this[z(0xbf)][z(0xd6)]===z(0x90)){if(Object[z(0x8a)](b)[z(0x9b)]>=this[z(0xbf)][z(0xd6)]){Log[z(0xde)]('Too\x20many\x20options');throw new UsageError();}}}this['options'][z(0xd8)]&&await this[z(0xc9)](this[z(0xbf)][z(0xd8)]);await this[z(0x9f)](a,b,this['options']);if(!b['resourceName']&&!this[z(0xbf)][z(0x8e)]){Log[z(0xde)](z(0xb1));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[z(0x98)](k),process[z(0xd4)](0x1);}inside(b['cwd'],async()=>{const A=z;try{if(!b['root']&&!this[A(0xe0)][A(0xd5)]())throw new MustBeInProjectError();const l=b['resourceName']?.[A(0xa6)](/\\/g,'/')['split']('/');!b[A(0x92)]&&(l?.[A(0x9b)]>0x1?(b[A(0xac)]=l[A(0xcc)](),c[0x0]=b[A(0xac)],b[A(0x92)]=l['map'](m=>{return paramCase(m);})[A(0x85)](a97e['sep'])):b[A(0x92)]='');if(this[A(0xbf)][A(0xa0)]){if(!b[A(0xa2)]){const n={'type':A(0x96),'name':A(0xb0),'message':'Location','choices':[{'name':A(0x88),'value':A(0xa4)},{'name':'Server','value':A(0xa9)},{'name':A(0x87),'value':A(0xb3)}]},{colLocAnswer:o}=await Actions['options'](n);o?b['where']=o:b[A(0xa2)]=A(0xb3);}const m=[A(0xb3),A(0xa4),'server'];if(!m[A(0xad)](b[A(0xa2)])){Log[A(0xde)](A(0xbc));throw new UsageError();}switch(b[A(0xa2)]){case A(0xb3):b['appPathPrefix']='lib';break;case A(0xa9):b['appPathPrefix']=A(0xa9);break;case A(0xa4):b[A(0xa5)]='client';break;default:b[A(0xa5)]='';}}await this[A(0xd1)][A(0x8b)](this,c,b);}catch(p){this[A(0x98)](p);}});}[a97u(0xa1)](){const B=a97u;this[B(0xa7)](this[B(0x9e)]);}[a97u(0x98)](a){const C=a97u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[C(0xbf)];Log[C(0xb8)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[C(0xab)](C(0xdd)),this['tableList'](this[C(0x9e)]);else{if(a instanceof MustBeInProjectError)Log[C(0xde)](C(0x99));else{if(a instanceof NoMeteorFoundError)Log[C(0xde)](C(0xba)),Log[C(0xab)](C(0x9d));else a instanceof NoMeteorAppFoundError&&Log[C(0xde)](C(0xaa));}}}[a97u(0xa7)](a){const D=a97u,b=new a97f({});b[D(0x95)]([D(0xb4),D(0xc8),D(0xae)]),a[D(0xaf)]()[D(0x83)](c=>{const E=D;b[E(0x95)]([c[E(0xd3)],c[E(0xc5)](),c[E(0xd9)]()]);}),Log[D(0xda)](b[D(0x84)]());}}
|
|
@@ -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(0x160))/0x1+parseInt(f(0x16d))/0x2*(parseInt(f(0x165))/0x3)+parseInt(f(0x164))/0x4+parseInt(f(0x16a))/0x5+parseInt(f(0x163))/0x6*(parseInt(f(0x168))/0x7)+parseInt(f(0x16b))/0x8+parseInt(f(0x16c))/0x9*(-parseInt(f(0x169))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xbd392));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x166)]()['search']('(((.+)+)+)+$')[h(0x166)]()[h(0x161)](a98a)[h(0x167)]('(((.+)+)+)+$');});a98a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x160;var f=c[d];return f;},a98d(a,b);}import'./methods.js';import'./package.js';import'./publish.js';function a98c(){var i=['254DvNgMp','88310UvbHQJ','constructor','apply','1391406hXZEKD','608388GiJOGV','32313loQPNd','toString','search','42GNhOwZ','830MyhbBJ','5322685tyNWKi','4292080cjelQv','414837vsTOPo'];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
|
|
1
|
+
const a99x=a99d;(function(a,b){const v=a99d,c=a();while(!![]){try{const d=parseInt(v(0xf4))/0x1*(-parseInt(v(0x100))/0x2)+parseInt(v(0xdc))/0x3+-parseInt(v(0xb6))/0x4*(parseInt(v(0xcc))/0x5)+-parseInt(v(0xaa))/0x6*(-parseInt(v(0xcd))/0x7)+-parseInt(v(0xc7))/0x8+parseInt(v(0xc8))/0x9+parseInt(v(0xdf))/0xa*(parseInt(v(0xeb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xc9178));function a99c(){const A=['withFixtures','fsi','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','template','resolverList.push(','import\x20{\x20typeDefs\x20as\x20','254447IQEKMk','rest-api.','register-','.app-tests.','push','notice','rpc-methods.','api/api.js','/imports/api','error','withPubs','api/tests.js','6qWAphg','\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','REST\x20API','includes','graphql','api','maka:rest','/graphql/typeDefs','api/resolvers.js','23652PvHRIN','API\x20boundaries\x20to\x20create','create','api/methods.js','checkMeteorPackage','GraphQL','Verifying\x20meteor\x20package\x20requirements\x20...','imports','options','resourceName','injectAtBeginningOfFile','typeList.push(','447428xvLump','getProjectConfig','checkbox','mongo','injectAtEndOfFile','toString','api/typeDefs.js','search','TypeDefs);\x0a','No\x20API\x20boundaries\x20selected','injectIntoFile','apollo','processAndRunGenerator','const','withGql','TypeDefs\x20}\x20from\x20\x27','withRest','6602776aRiLHN','8809101MmJafv','(((.+)+)+)+$','server','/graphql/resolvers','50ovmrgp','1043hIcirU','Resolvers\x20}\x20from\x20\x27','withMethods','if\x20\x5c(typeList','mdg:validated-method','test','-api\x27;','tsx','index.','RPC\x20(Methods)','fixtures.','import\x20\x27./register-','Publications','Resolvers);\x0a\x0a','maka\x20{generate,\x20g}:{api}\x20<resource-name>','4604358gORkpY','rest','apiAnswers','10jcswNp','exit','pathFromApp','typeDefs.','Fixtures','publications.','api/fixtures.js','engines','\x0aimport\x20{\x20resolvers\x20as\x20','startup','constructor','dir','4729967yoabcM','rewriteDestinationPathForEngine','\x27;\x0a'];a99c=function(){return A;};return a99c();}const a99b=(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;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0xbb)]()['search'](w(0xc9))[w(0xbb)]()[w(0xe9)](a99a)[w(0xbd)](w(0xc9));});a99a();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';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xa3;let f=c[d];return f;},a99d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99x(0xac)]({'name':a99x(0xa6),'aliases':['a'],'usage':a99x(0xdb),'shortDesc':a99x(0xf0),'validOpts':[a99x(0xea)],'examples':['maka\x20g:api\x20Todos'],'description':a99x(0x101)},async function(a,b){const y=a99x;try{const c=this[y(0xef)][y(0xb7)](),d=[{'name':y(0xd6),'value':'withMethods'},{'name':y(0xe3),'value':y(0xee)},{'name':y(0xd9),'value':y(0xfe)}];c[y(0xe6)][y(0xa6)]==='rest'&&d['push']({'name':y(0xa3),'value':y(0xc6)});c[y(0xe6)]['graphql']===y(0xc1)&&d[y(0xf8)]({'name':y(0xaf),'value':y(0xc4)});const f={'type':y(0xb8),'name':y(0xde),'message':y(0xab),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0xb2)](f);g['length']===0x0&&(Log[y(0xfd)](y(0xbf)),process[y(0xe0)](0x1)),this[y(0xef)]['withValue'](c,async()=>{const z=y,h=this[z(0xef)][z(0xe1)]({}),i=b[z(0xb3)],j=paramCase(i),k=camelCase(i),l=b[z(0xea)]?'/'+b[z(0xea)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[z(0xe6)][z(0xa6)],'graphql':c[z(0xe6)][z(0xa5)],'test':c['engines'][z(0xd2)],'noRename':!![],'withPubs':g[z(0xa4)]('withPubs'),'withFixtures':g[z(0xa4)](z(0xee)),'withMethods':g['includes'](z(0xcf)),'withRest':g[z(0xa4)](z(0xc6))};let n='js';c[z(0xe6)]['js']===z(0xd4)&&(n='ts');(!this['fsi']['checkMeteorPackage'](z(0xa7))||!this[z(0xef)]['checkMeteorPackage']('maka:check')||!this[z(0xef)]['checkMeteorPackage']('ddp-rate-limiter')||!this[z(0xef)][z(0xae)](z(0xd1))||!this[z(0xef)]['checkMeteorPackage'](z(0xb9)))&&(Log[z(0xf9)](z(0xb0)),await this[z(0xef)]['installMeteorPackage']('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));await a99e[z(0xc2)]('collection',[j],{'config':c,'where':z(0xca)});c[z(0xe6)][z(0xa6)]===z(0xdd)&&(m[z(0xc6)]&&this[z(0xef)][z(0xf1)]({'srcPath':z(0xfb),'destPath':this[z(0xef)][z(0xe1)]({'pathParts':['imports',z(0xa6),b[z(0xea)],j,z(0xf5)+n]}),'context':m,'config':c}));m[z(0xcf)]&&this[z(0xef)][z(0xf1)]({'srcPath':z(0xad),'destPath':this[z(0xef)][z(0xe1)]({'pathParts':['imports',z(0xa6),b[z(0xea)],j,z(0xfa)+n]}),'context':m,'config':c});m['withFixtures']&&this['fsi'][z(0xf1)]({'srcPath':z(0xe5),'destPath':this['fsi'][z(0xe1)]({'pathParts':[z(0xb1),z(0xa6),b[z(0xea)],j,z(0xd7)+n]}),'context':m,'config':c});c[z(0xe6)][z(0xd2)]!=='none'&&this[z(0xef)]['template']({'srcPath':z(0xff),'destPath':this[z(0xef)][z(0xe1)]({'pathParts':[z(0xb1),z(0xa6),b[z(0xea)],j,j+z(0xf7)+n]}),'context':m,'config':c});m[z(0xfe)]&&this['fsi'][z(0xf1)]({'srcPath':'api/publications.js','destPath':this[z(0xef)]['pathFromApp']({'pathParts':[z(0xb1),z(0xa6),b[z(0xea)],j,z(0xe4)+n]}),'context':m,'config':c});if(c['engines'][z(0xa5)]===z(0xc1)){if(g[z(0xa4)](z(0xc4))){const p=this['fsi'][z(0xe1)]({'pathParts':[z(0xb1),z(0xe8),z(0xca),z(0xd5)+c['engines']['js']]}),q=this[z(0xef)][z(0xec)]({'pathParts':[p],'config':c}),r=this[z(0xef)][z(0xe1)]({'pathParts':[z(0xb1),z(0xa6),b['dir'],j,z(0xa5),z(0xe2)+n]}),s='/imports/api'+l+j+z(0xa8);this[z(0xef)][z(0xf1)]({'srcPath':z(0xbc),'destPath':r,'context':m,'config':c}),this['fsi'][z(0xb4)]({'filePath':q,'content':z(0xf3)+k+z(0xc5)+s+z(0xed)}),this[z(0xef)][z(0xc0)]({'filePath':q,'content':z(0xb5)+k+z(0xbe),'begin':z(0xc3),'end':'if\x20\x5c(typeList'});const t=this['fsi'][z(0xe1)]({'pathParts':[z(0xb1),'api',b[z(0xea)],j,z(0xa5),'resolvers.'+n]}),u=z(0xfc)+l+j+z(0xcb);this['fsi']['template']({'srcPath':z(0xa9),'destPath':t,'context':m,'config':c}),this['fsi'][z(0xb4)]({'filePath':q,'content':z(0xe7)+k+z(0xce)+u+'\x27;'}),this[z(0xef)][z(0xc0)]({'filePath':q,'content':z(0xf2)+k+z(0xda),'begin':z(0xc3),'end':z(0xd0)});}}this[z(0xef)][z(0xf1)]({'srcPath':'api/register-api.js','destPath':this['fsi']['pathFromApp']({'pathParts':[z(0xb1),'startup',z(0xca),z(0xf6)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const o=this[z(0xef)]['pathFromApp']({'pathParts':[z(0xb1),z(0xe8),z(0xca),z(0xd5)+c['engines']['js']]});this[z(0xef)][z(0xba)]({'filePath':o,'content':z(0xd8)+j+z(0xd3)});});}catch(h){console[y(0xfd)](h),process[y(0xe0)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100n=a100d;
|
|
1
|
+
const a100n=a100d;(function(a,b){const k=a100d,c=a();while(!![]){try{const d=-parseInt(k(0x1c0))/0x1*(parseInt(k(0x1cc))/0x2)+parseInt(k(0x1c5))/0x3*(-parseInt(k(0x1af))/0x4)+parseInt(k(0x1bc))/0x5*(parseInt(k(0x1c9))/0x6)+parseInt(k(0x1c4))/0x7*(parseInt(k(0x1a6))/0x8)+-parseInt(k(0x1ac))/0x9+-parseInt(k(0x1ba))/0xa+parseInt(k(0x1b3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xc1550));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a100d;if(c){const e=c[l(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const m=a100d;return a100a[m(0x1b0)]()[m(0x1bb)](m(0x1a5))['toString']()['constructor'](a100a)[m(0x1bb)](m(0x1a5));});a100a();import{paramCase,pascalCase}from'change-case';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a100d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100n(0x1aa)]({'name':a100n(0x1b8),'aliases':[a100n(0x1c8)],'usage':a100n(0x1cf),'checkWhere':!![],'shortDesc':a100n(0x1b6),'validOpts':[a100n(0x1a7),a100n(0x1cb)],'description':a100n(0x1d0),'examples':[a100n(0x1c2)]},async function(a,b){const o=a100n;try{const c=this[o(0x1a2)][o(0x1ca)]({}),d=this['fsi'][o(0x1c7)]();this[o(0x1a2)][o(0x1d3)](d,async()=>{const p=o,f=paramCase(b[p(0x1ce)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x1cb)],'test':d[p(0x1a8)][p(0x1ab)],'noRename':!![]};let h='js';d[p(0x1a8)]['js']===p(0x1be)&&(h='ts');!this[p(0x1a2)][p(0x1b9)]('mongo')&&(Log[p(0x1b7)](p(0x1d2)),await this['fsi'][p(0x1d1)](p(0x1ad),{'cwd':c}));!this[p(0x1a2)][p(0x1b9)](p(0x1b2))&&(Log[p(0x1b7)](p(0x1c3)),await this[p(0x1a2)][p(0x1d1)](p(0x1b2),{'cwd':c}));this[p(0x1a2)][p(0x1bf)]({'srcPath':p(0x1bd),'destPath':this[p(0x1a2)][p(0x1ca)]({'pathParts':[p(0x1b1),'startup',b[p(0x1ae)],p(0x1cd),b[p(0x1a7)],f+'.'+h]}),'context':g,'config':d});d['engines'][p(0x1ab)]!=='none'&&this['fsi'][p(0x1bf)]({'srcPath':p(0x1b4),'destPath':this[p(0x1a2)]['pathFromApp']({'pathParts':[p(0x1b1),p(0x1a3),b[p(0x1ae)],'collections',b[p(0x1a7)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[p(0x1a2)][p(0x1ca)]({'pathParts':[p(0x1b1),p(0x1a3),b['appPathPrefix'],p(0x1c1)+d[p(0x1a8)]['js']]});this[p(0x1a2)][p(0x1c6)]({'filePath':j,'content':p(0x1b5)+i+f+'\x27;'});});}catch(f){Log[o(0x1a4)](f);}});function a100c(){const q=['315bynAuV','657hSyosC','injectAtEndOfFile','getProjectConfig','col','341262BfHnrq','pathFromApp','where','4846NVaUwr','collections','resourceName','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','\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','installMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','withValue','fsi','startup','error','(((.+)+)+)+$','41904EJySWK','dir','engines','apply','create','test','3293658zHYteq','mongo','appPathPrefix','26372ethCUH','toString','imports','maka:check','42151538QeYkio','collection/tests.js','import\x20\x27./collections','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','notice','collection','checkMeteorPackage','9495980Cullql','search','20TNebLs','collection/collection.js','tsx','template','307IphYZl','index.','maka\x20g:collection\x20todos','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'];a100c=function(){return q;};return a100c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101q=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x128))/0x1*(parseInt(n(0x155))/0x2)+parseInt(n(0x157))/0x3+-parseInt(n(0x147))/0x4+parseInt(n(0x11e))/0x5*(parseInt(n(0x160))/0x6)+-parseInt(n(0x15f))/0x7*(-parseInt(n(0x149))/0x8)+-parseInt(n(0x145))/0x9+parseInt(n(0x141))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x27475));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a101d;if(c){const e=c[o(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const p=a101d;return a101a['toString']()[p(0x123)](p(0x13e))[p(0x153)]()['constructor'](a101a)[p(0x123)](p(0x13e));});a101a();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x117;let f=c[d];return f;},a101d(a,b);}function a101c(){const t=['relative','installNpmPackage','checkNpmPackage','components','6915OLBOQB','test','react','apply','\x20}\x20from\x20\x27','search','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','setTemplate','rewriteDestinationPathForEngine','root','6373zfyOwf','component/component.js','client','engines','comp','template/template.css','cssCaseName','error','getProjectConfig','\x27;\x0a','withTranslations','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','ramda','true','injectAtBeginningOfFile','api','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','create','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.js','/imports/ui/components','.tests.js','(((.+)+)+)+$','css','resourceName','4854410vFZprQ','baseDir','startup','className','2456829uwPjnG','withValue','1240372DnBRbW','reflux','45040VqFTUn','layouts','import\x20\x27./','assign','hooks','fsi','template','fileName','imports','component','toString','ssr','82OSlQpe','pathFromProject','294381jpyMhq','string','export\x20{\x20','graphql','dir','templates.js','/imports/ui/','findAppDirectory','287EqxRiL','828pLHVyv','none','maka\x20g:comp\x20todos/todos-item','export\x20\x27','.css','features','pathFromApp','pages'];a101c=function(){return t;};return a101c();}import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a101q(0x12c)];Generator[a101q(0x139)]({'name':a101q(0x152),'aliases':aliases,'usage':a101q(0x124),'shortDesc':a101q(0x133),'validOpts':[{'name':a101q(0x142),'values':[a101q(0x14d),a101q(0x11d),a101q(0x119),a101q(0x14a)]}],'examples':[a101q(0x162)]},async function(a,b){const r=a101q;try{const c=this['fsi'][r(0x15e)](),d=b[r(0x142)]?r(0x15d)+b['baseDir']:r(0x13c),f=this[r(0x14e)][r(0x118)]({'pathParts':[d,b['dir'],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),g=await this['fsi'][r(0x130)]();this[r(0x14e)][r(0x146)](g,async()=>{const s=r;typeof g[s(0x14f)][s(0x11f)]==='string'&&(g['template']['test']=g[s(0x14f)][s(0x11f)]===s(0x135)?!![]:![],this[s(0x14e)][s(0x125)](s(0x11f),g['template'][s(0x11f)]));typeof g[s(0x14f)][s(0x13f)]===s(0x158)&&(g[s(0x14f)][s(0x13f)]=g[s(0x14f)][s(0x13f)]===s(0x135)?!![]:![],this[s(0x14e)][s(0x125)](s(0x13f),g['template'][s(0x13f)]));typeof g[s(0x14f)]['js']===s(0x158)&&(g[s(0x14f)]['js']=g['template']['js']===s(0x135)?!![]:![],this[s(0x14e)]['setTemplate']('js',g['template']['js']));!g[s(0x117)]&&(g[s(0x117)]={});!b[s(0x127)]&&!this['fsi']['checkNpmPackage'](s(0x134))&&(Log['warn'](s(0x138)),await this[s(0x14e)][s(0x11b)](s(0x134),{'cwd':c}));if(!b[s(0x127)]&&!this[s(0x14e)][s(0x11c)]('react')){Log['error'](s(0x13a));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[s(0x11a)](this[s(0x14e)][s(0x156)]({}),f),'cssCaseName':paramCase(b[s(0x140)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x140)]),'fileName':paramCase(b[s(0x140)]),'graphql':g['engines'][s(0x15a)],'features':g['features'],'client':g[s(0x12b)][s(0x12a)],'api':g[s(0x12b)][s(0x137)],'ssr':g[s(0x12b)][s(0x154)],'test':g[s(0x12b)][s(0x11f)],'theme':g[s(0x12b)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x117)][s(0x132)]};this['fsi'][s(0x14f)]({'srcPath':s(0x129),'destPath':f+s(0x13b),'context':h,'framework':'react','config':g});g['engines'][s(0x11f)]!==s(0x161)&&this[s(0x14e)][s(0x14f)]({'srcPath':'test/test.js','destPath':f+s(0x13d),'context':h,'framework':s(0x120),'config':g});g['template'][s(0x13f)]&&(this[s(0x14e)]['template']({'srcPath':s(0x12d),'destPath':f+s(0x164),'context':Object[s(0x14c)]({},h,{'className':paramCase(b[s(0x140)])}),'config':g}),this[s(0x14e)][s(0x136)]({'filePath':f+'.'+g['engines']['js'],'content':s(0x14b)+h[s(0x12e)]+'.'+g[s(0x12b)][s(0x13f)]+'\x27;'}));const i=b[s(0x15b)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x150)]+'/'+h[s(0x150)];let k;if(g[s(0x12b)]['ssr']==='true'){const l=this[s(0x14e)][s(0x118)]({'pathParts':[s(0x151),s(0x143),'lib',s(0x15c)]});k=this[s(0x14e)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x14e)][s(0x118)]({'pathParts':[s(0x151),s(0x143),s(0x12a),s(0x15c)]});k=this[s(0x14e)][s(0x126)]({'pathParts':[m],'config':g});}g[s(0x12b)][s(0x12a)]===s(0x120)||g['engines']['client']===s(0x148)?this[s(0x14e)]['injectAtEndOfFile']({'filePath':k,'content':s(0x159)+h[s(0x144)]+s(0x122)+j+s(0x131)}):this[s(0x14e)]['injectAtEndOfFile']({'filePath':k,'content':s(0x163)+j+'.'+g[s(0x12b)]['js']+s(0x131)});});}catch(h){Log[r(0x12f)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x14d))/0x1*(parseInt(h(0x152))/0x2)+-parseInt(h(0x15f))/0x3+parseInt(h(0x164))/0x4*(-parseInt(h(0x153))/0x5)+-parseInt(h(0x169))/0x6+-parseInt(h(0x159))/0x7+-parseInt(h(0x160))/0x8*(parseInt(h(0x168))/0x9)+-parseInt(h(0x15d))/0xa*(-parseInt(h(0x154))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xc1f1c));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x14e)]()['search']('(((.+)+)+)+$')[j(0x14e)]()[j(0x15a)](a102a)['search'](j(0x14f));});function a102c(){const n=['6367944oRKIxK','dev','settings.json','83075hpVemj','toString','(((.+)+)+)+$','getProjectConfig','create','10xhjjLj','85RMXcFC','725626PZRFvv','appName','withValue','maka\x20g:config\x20production','config','423185FaEOBU','constructor','resourceName','isDocker','410FwqOVC','template','391551ZkXBSc','328sAnymn','config/settings.json','apply','development','2564dOrxBA','prod','pathFromProject','fsi','233208mqQeel'];a102c=function(){return n;};return a102c();}a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x14b;let f=c[d];return f;},a102d(a,b);}Generator[a102k(0x151)]({'name':a102k(0x158),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a102k(0x15c)],'examples':[a102k(0x157)]},function(a,b){const l=a102k,c=this[l(0x167)][l(0x150)]();this['fsi'][l(0x156)](c,async()=>{const m=l,d={'app':c[m(0x155)],'appFileCase':paramCase(c[m(0x155)]),'name':pascalCase(b[m(0x15b)]),'fileName':paramCase(b[m(0x15b)]),'camelCase':camelCase(b[m(0x15b)]),'userName':'ubuntu','isDocker':b[m(0x15c)]};let e=b[m(0x15b)];if(e===m(0x14b))e=m(0x163);else e===m(0x165)&&(e='production');const f=this[m(0x167)][m(0x166)]({'pathParts':['config',e,m(0x14c)]});this[m(0x167)][m(0x15e)]({'srcPath':m(0x161),'destPath':f,'context':d,'config':c});if(!b[m(0x15c)]){const g=this[m(0x167)][m(0x166)]({'pathParts':[m(0x158),e,'process.env']});this[m(0x167)]['template']({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x1e9))/0x1*(parseInt(j(0x1e5))/0x2)+-parseInt(j(0x1dc))/0x3*(-parseInt(j(0x1c2))/0x4)+-parseInt(j(0x1f0))/0x5+parseInt(j(0x1c3))/0x6*(parseInt(j(0x1ed))/0x7)+-parseInt(j(0x1e2))/0x8+-parseInt(j(0x1db))/0x9*(parseInt(j(0x1d0))/0xa)+-parseInt(j(0x1cf))/0xb*(-parseInt(j(0x1e0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xc74a6));function a103c(){const p=['27372qWGUJH','pgsql','9120712cNOXTg','create','startup','14894eRXdGx','fsi','server','withValue','151IjHtJU','toString','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','dbc/conn.js','10723454FUDAho','search','index.','4632000TvzJZY','better-sqlite3','4hUSjoQ','6FKYDNW','checkNpmPackage','apply','sqlite','resourceName','tsx','import\x20\x27./register-','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','type','pathFromApp','imports','injectAtEndOfFile','6391nGwhoM','220oXQZHR','maka\x20g:dbc\x20todos\x20--type=sqlite','maka\x20g:dbc\x20geoserver\x20--type=pgsql','warn','dir','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','template','(((.+)+)+)+$','mssql','register-','constructor','72999mqmAcN','3985617SnKKEj','installNpmPackage','engines','dbc'];a103c=function(){return p;};return a103c();}function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1c1;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(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a['toString']()[l(0x1ee)](l(0x1d7))[l(0x1ea)]()[l(0x1da)](a103a)[l(0x1ee)](l(0x1d7));});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a103m(0x1e3)]({'name':a103m(0x1df),'usage':a103m(0x1ca),'shortDesc':a103m(0x1eb),'validOpts':[a103m(0x1d4)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x1cb),'values':[a103m(0x1e1),'mssql',a103m(0x1c6)]}],'examples':[a103m(0x1d2),'maka\x20g:dbc\x20azure\x20--type=mssql',a103m(0x1d1)]},async function(a,b){const n=a103m;try{const c=await this[n(0x1e6)]['getProjectConfig'](),d=this[n(0x1e6)][n(0x1cc)]({}),f=paramCase(b[n(0x1c7)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b[n(0x1cb)],'engine':c[n(0x1de)]['js'],'noRename':!![]};this['fsi'][n(0x1e8)](c,async()=>{const o=n;let h='js';c[o(0x1de)]['js']===o(0x1c8)&&(h='ts');b['type']===o(0x1e1)&&!this[o(0x1e6)][o(0x1c4)]('pg')&&(Log[o(0x1d3)](o(0x1d5)),await this[o(0x1e6)][o(0x1dd)]('pg',{'cwd':d}));b['type']===o(0x1d8)&&!this['fsi'][o(0x1c4)](o(0x1d8))&&(Log[o(0x1d3)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this['fsi']['installNpmPackage'](o(0x1d8),{'cwd':d}));b[o(0x1cb)]===o(0x1c6)&&!this[o(0x1e6)][o(0x1c4)](o(0x1c1))&&(Log[o(0x1d3)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0x1e6)][o(0x1dd)](o(0x1c1),{'cwd':d}));this[o(0x1e6)][o(0x1d6)]({'srcPath':'dbc/config.js','destPath':this[o(0x1e6)]['pathFromApp']({'pathParts':[o(0x1cd),'startup','server','dbc',b[o(0x1d4)],f,'config.'+h]}),'context':g,'config':c}),this[o(0x1e6)][o(0x1d6)]({'srcPath':o(0x1ec),'destPath':this[o(0x1e6)]['pathFromApp']({'pathParts':['imports','startup','server',o(0x1df),b[o(0x1d4)],f,'conn.'+h]}),'context':g,'config':c}),this[o(0x1e6)]['template']({'srcPath':'dbc/register-dbc.js','destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x1cd),'startup',o(0x1e7),o(0x1d9)+f+'-dbc.'+h]}),'context':g,'config':c});const i=this[o(0x1e6)][o(0x1cc)]({'pathParts':[o(0x1cd),o(0x1e4),'server',o(0x1ef)+c[o(0x1de)]['js']]});this[o(0x1e6)][o(0x1ce)]({'filePath':i,'content':o(0x1c9)+f+'-dbc\x27;'});});}catch(h){Log['error'](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(0x10e))/0x1*(-parseInt(f(0x112))/0x2)+parseInt(f(0x110))/0x3*(-parseInt(f(0x119))/0x4)+-parseInt(f(0x125))/0x5*(-parseInt(f(0x12a))/0x6)+-parseInt(f(0x11a))/0x7+-parseInt(f(0x122))/0x8+parseInt(f(0x113))/0x9+parseInt(f(0x12b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x608b2));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x11e)]()['search'](h(0x11d))[h(0x11e)]()[h(0x11b)](a104a)['search'](h(0x11d));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104c(){const l=['getGlobalConfig','2526468CqUZls','5207699Nsieoa','constructor','Dockerfile','(((.+)+)+)+$','toString','app.tar.gz','withValue','fsi','2317232oAcgQx','isFile','template','1442855GgkApw','service','join','apply','error','6CXWZUk','17885860DMstXl','getProjectConfig','37cctZRt','dockerfile','3WxTiML','build','38508vdTNpT','6263199hWBekj','app','create','cert','Generate\x20an\x20updated\x20dockerfile'];a104c=function(){return l;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x10e;let f=c[d];return f;},a104d(a,b);}import a104e from'path';Generator[a104i(0x115)]({'name':a104i(0x10f),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a104i(0x117),'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a104i;try{const a=await this['fsi'][j(0x12c)](),b=await this['fsi'][j(0x118)](),c=this[j(0x121)]['findProjectDirectory']();this[j(0x121)][j(0x120)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a104e[k(0x127)](c,k(0x114)),'bundlePath':a104e['join'](c,k(0x111),k(0x11f)),'useCert':this[k(0x121)][k(0x123)](b[k(0x116)])};this[k(0x121)][k(0x124)]({'srcPath':'docker/Dockerfile','destPath':a104e[k(0x127)](c,k(0x11c)),'framework':k(0x126),'context':d,'config':a});});}catch(d){Log[j(0x129)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a105r=a105d;(function(a,b){const o=a105d,c=a();while(!![]){try{const d=parseInt(o(0x134))/0x1+-parseInt(o(0x14b))/0x2*(parseInt(o(0x151))/0x3)+-parseInt(o(0x165))/0x4+-parseInt(o(0x168))/0x5+parseInt(o(0x141))/0x6+-parseInt(o(0x14e))/0x7*(parseInt(o(0x146))/0x8)+parseInt(o(0x15a))/0x9*(parseInt(o(0x152))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x76be6));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0x136)]()[q(0x12c)](q(0x137))[q(0x136)]()['constructor'](a105a)[q(0x12c)](q(0x137));});a105a();import a105e from'path';function a105c(){const u=['@apollo/client\x20isomorphic-fetch','533298dZcEUj','48420HFhsYn','fsi','lib','.js','assign','resourceName','apollo','checkNpmPackage','4482pNkHmS','warn','react','imports','.css','client','import\x20\x27./','test','features','pathFromApp','setTemplate','1053452WMRlkF','apply','getProjectConfig','4036480mmMdCB','Creating\x20','\x20}\x20from\x20\x27','\x27;\x0a','css','maka\x20g:hook\x20cool-hook','theme','hook','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','none','startup','cssCaseName','error','search','create','template','pages','\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','components','ssr','template/template.css','474394ErPiZW','export\x20\x27','toString','(((.+)+)+)+$','force','injectAtEndOfFile','/imports/ui/hooks','withValue','templates.js','baseDir','true','hooks','@apollo/client','990960Dqzsmi','.app-tests.js','graphql','fileName','rewriteDestinationPathForEngine','312gXvCNd','engines','hook/hook.js','export\x20{\x20','\x20hook...','10cANqAk','withTranslations','className','108591XHCIxH','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>'];a105c=function(){return u;};return a105c();}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x123;let f=c[d];return f;},a105d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105r(0x12d)]({'name':a105r(0x125),'aliases':['h'],'checkWhere':![],'usage':a105r(0x14f),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a105r(0x13d),'values':[a105r(0x13f),a105r(0x131),a105r(0x12f),'layouts']},{'name':a105r(0x138),'boolFlag':!![]}],'examples':[a105r(0x123)],'description':a105r(0x130)},async function(a,b){const s=a105r;Log['notice'](s(0x169)+b[s(0x157)]+s(0x14a));try{const c=this[s(0x153)][s(0x159)](s(0x15c));if(!c){Log[s(0x12b)](s(0x127));throw new UsageError();}const d=this['fsi'][s(0x163)](b),f=b[s(0x13d)]?'/imports/ui/'+b[s(0x13d)]:s(0x13a),g=this[s(0x153)][s(0x163)]({'pathParts':[f,b['dir'],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),h=await this[s(0x153)][s(0x167)]();this[s(0x153)][s(0x13b)](h,async()=>{const t=s;typeof h[t(0x12e)][t(0x16c)]==='string'&&(h['template'][t(0x16c)]=h[t(0x12e)][t(0x16c)]==='true'?!![]:![],this[t(0x153)][t(0x164)](t(0x16c),h[t(0x12e)][t(0x16c)]));h[t(0x147)][t(0x143)]===t(0x158)&&!this[t(0x153)][t(0x159)](t(0x140))&&(Log[t(0x15b)](t(0x126)),await this[t(0x153)]['installNpmPackage'](t(0x150),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x157)]),'camelCaseName':camelCase(b[t(0x157)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b['resourceName']),'graphql':h[t(0x147)][t(0x143)],'theme':h[t(0x147)][t(0x124)],'features':h['features'],'myPath':a105e['relative'](this['fsi']['pathFromProject']({}),g),'fileName':paramCase(b[t(0x157)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x162)][t(0x14c)]};this[t(0x153)][t(0x12e)]({'srcPath':t(0x148),'destPath':g+t(0x155),'context':i,'config':h,'framework':t(0x15c),'force':b['force']});h[t(0x12e)][t(0x16c)]&&(this[t(0x153)][t(0x12e)]({'srcPath':t(0x133),'destPath':g+t(0x15e),'context':Object[t(0x156)]({},i,{'className':i[t(0x12a)]}),'config':h,'force':b[t(0x138)]}),this[t(0x153)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x147)]['js'],'content':t(0x160)+i[t(0x144)]+'.'+h['engines'][t(0x16c)]+'\x27;'}));h['engines'][t(0x161)]!==t(0x128)&&this[t(0x153)][t(0x12e)]({'srcPath':'test/test.js','destPath':g+t(0x142),'framework':t(0x15c),'context':i,'config':h,'force':b[t(0x138)]});const j=b['dir']?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x144)]+'/'+i['fileName'];let l;if(h[t(0x147)][t(0x132)]===t(0x13e)){const m=this['fsi'][t(0x163)]({'pathParts':[t(0x15d),t(0x129),t(0x154),'templates.js']});l=this[t(0x153)][t(0x145)]({'pathParts':[m],'config':h});}else{const n=this['fsi']['pathFromApp']({'pathParts':[t(0x15d),'startup',t(0x15f),t(0x13c)]});l=this[t(0x153)][t(0x145)]({'pathParts':[n],'config':h});}h[t(0x147)][t(0x15f)]===t(0x15c)?this[t(0x153)][t(0x139)]({'filePath':l,'content':t(0x149)+i[t(0x14d)]+t(0x16a)+k+t(0x16b)}):this[t(0x153)][t(0x139)]({'filePath':l,'content':t(0x135)+k+'.'+h[t(0x147)]['js']+'\x27;\x0a'});});}catch(i){Log['error'](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=parseInt(f(0x18a))/0x1*(-parseInt(f(0x184))/0x2)+-parseInt(f(0x18b))/0x3*(-parseInt(f(0x182))/0x4)+-parseInt(f(0x190))/0x5+parseInt(f(0x18d))/0x6*(-parseInt(f(0x189))/0x7)+parseInt(f(0x183))/0x8*(-parseInt(f(0x186))/0x9)+parseInt(f(0x185))/0xa*(-parseInt(f(0x187))/0xb)+parseInt(f(0x18e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xf39bb));function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x181;var f=c[d];return f;},a106d(a,b);}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a[h(0x18f)]()[h(0x18c)](h(0x188))['toString']()[h(0x191)](a106a)[h(0x18c)](h(0x188));});a106a();import'./kit.js';function a106c(){var i=['351YZgZpL','440ekufXC','(((.+)+)+)+$','161MAeoci','3hqVzpM','3DbaEBh','search','179682vjbeaV','41850372wFgdhi','toString','1278665MGikmc','constructor','apply','4955708beheKr','178576QxJUpo','190538aIHbIQ','406940SfhKyk'];a106c=function(){return i;};return a106c();}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
|
+
function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a107d(a,b);}const a107i=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(0x1e8))/0x1*(parseInt(f(0x1ee))/0x2)+parseInt(f(0x1e2))/0x3+parseInt(f(0x1ed))/0x4*(-parseInt(f(0x1e3))/0x5)+-parseInt(f(0x1f1))/0x6+parseInt(f(0x1e1))/0x7+-parseInt(f(0x1e6))/0x8+-parseInt(f(0x1e7))/0x9*(-parseInt(f(0x1f0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x856bc));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a[h(0x1ea)]()[h(0x1e5)](h(0x1eb))[h(0x1ea)]()['constructor'](a107a)['search']('(((.+)+)+)+$');});a107a();import{Generator}from'../../generator.js';const KitGen=Generator[a107i(0x1ec)]({'name':a107i(0x1ef),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<name>','shortDesc':a107i(0x1e0),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit',a107i(0x1e4)]},async function(){});export default KitGen;function a107c(){const j=['search','3667136PRnuFd','9036315UCsAdM','3zOigvL','apply','toString','(((.+)+)+)+$','create','104FXyKBf','209836hvJUag','kit','20AssQTF','1538550AFefIL','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','324016pDUSMz','741939Svjgfu','139540wccisR','maka\x20g:k'];a107c=function(){return j;};return a107c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a108d,c=a();while(!![]){try{var d
|
|
1
|
+
function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0xaf;var f=c[d];return f;},a108d(a,b);}function a108c(){var i=['1398pkdiYc','constructor','5IdhPQw','530598yNaQgC','apply','33WpuNqF','(((.+)+)+)+$','84BxCngI','3086750gHtKyi','5834700JszslF','3742984qVQFYU','1aQmoFD','4028fRRZVP','2975999iRrcxQ','2113068qCwvGN','14JJBhal'];a108c=function(){return i;};return a108c();}(function(a,b){var f=a108d,c=a();while(!![]){try{var d=parseInt(f(0xb7))/0x1*(parseInt(f(0xba))/0x2)+parseInt(f(0xbc))/0x3*(parseInt(f(0xb8))/0x4)+-parseInt(f(0xbe))/0x5*(-parseInt(f(0xaf))/0x6)+parseInt(f(0xbb))/0x7*(parseInt(f(0xb6))/0x8)+parseInt(f(0xb5))/0x9+-parseInt(f(0xb4))/0xa*(parseInt(f(0xb1))/0xb)+parseInt(f(0xb3))/0xc*(-parseInt(f(0xb9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xa385d));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a['toString']()['search'](h(0xb2))['toString']()[h(0xbd)](a108a)['search'](h(0xb2));});a108a();import'./mui.generator.js';import'./layout.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a109x=a109d;(function(a,b){const u=a109d,c=a();while(!![]){try{const d=parseInt(u(0x17b))/0x1+parseInt(u(0x18d))/0x2+-parseInt(u(0x17c))/0x3*(-parseInt(u(0x190))/0x4)+parseInt(u(0x1ac))/0x5*(-parseInt(u(0x1a0))/0x6)+parseInt(u(0x18c))/0x7*(parseInt(u(0x184))/0x8)+parseInt(u(0x18f))/0x9*(-parseInt(u(0x195))/0xa)+-parseInt(u(0x1aa))/0xb*(parseInt(u(0x1ad))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x33052));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a109d;if(c){const e=c[v(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const w=a109d;return a109a[w(0x1a6)]()['search'](w(0x178))[w(0x1a6)]()[w(0x19d)](a109a)[w(0x18a)](w(0x178));});a109a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a109c(){const z=['toString','react','.js','engines','629013MvTePI','error','40NtkFMk','12SDcvcN','baseDir','(((.+)+)+)+$','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','pathFromApp','6544lNJMia','13371sTbPHJ','findAppDirectory','checkbox','getProjectConfig','true','length','appName','dir','40aIoJkZ','ssr','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20layout\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','<div\x20id=\x22','jsx','fsi','search','layout','94822IcBCXe','769942arYdrB','-hook\x22>','16758IYzQGc','296egVsaS','{this.props.children}','No\x20layouts\x20selected','kit/mui/frame/','/imports/startup/client/templates','2090WjckQy','MATERIAL','apply','getFiles','options','/imports/ui/hooks','Generate\x20a\x20standard\x20MUI\x20layout','layouts','constructor','/imports/ui/','/imports/startup/lib/templates','100308ajTieK','basic-app-bar','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{layout,\x20l}','{\x20this.props.children\x20}','{\x20props.children\x20}','\x20/>\x0a'];a109c=function(){return z;};return a109c();}import{Actions}from'../../../tools/actions/actions.class.js';import a109e from'path';import a109f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines}from'../../../tools/fsi/fsi.interfaces.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x178;let f=c[d];return f;},a109d(a,b);}Generator['create']({'name':a109x(0x18b),'aliases':['l'],'usage':a109x(0x1a2),'shortDesc':a109x(0x19b),'validOpts':['layouts'],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a109x(0x196)]},'examples':['maka\x20g:k:m:l'],'description':a109x(0x186)},async function(a,b){const y=a109x;try{const c=y(0x1a1),d=this['fsi'][y(0x17f)](),f=d[y(0x1a9)][y(0x185)]===y(0x180),g=this['fsi'][y(0x17d)](),h=a109e['join'](g,'imports','ui',y(0x19c)),i=this[y(0x189)]['getDirectories'](h),j=await Actions[y(0x199)]({'type':y(0x17e),'name':y(0x19c),'message':y(0x179),'choices':i});if(j['layouts'][y(0x181)]===0x0){Log['error'](y(0x192));return;}const k=b[y(0x1ae)]?y(0x19e)+b['baseDir']:y(0x19a),l=this[y(0x189)][y(0x17a)]({'pathParts':[k,b[y(0x183)],paramCase(c),paramCase(c)]}),m={'name':headerCase(d[y(0x182)])['replace']('-','\x20')};this[y(0x189)]['template']({'srcPath':y(0x193)+c+'.js','destPath':l+y(0x1a8),'framework':y(0x1a7),'context':m,'config':d,'force':![],'ignore':!![]});const n=''+k+b[y(0x183)]+'/'+c+'/'+c;await this['fsi']['injectTemplateModule'](c,d,n);const {layouts:o}=j;for(const p of o){const q=this[y(0x189)][y(0x198)](a109e['join'](h,p),{'extensions':[y(0x188),'tsx']});for(const r of q){const s=a109e['join'](h,p,r);await this[y(0x189)]['injectImport']({'filePath':s,'importName':pascalCase(c),'modulePath':f?y(0x19f):y(0x194),'isNamedExport':!![]}),await this['fsi']['injectIntoFile']({'filePath':s,'content':'<'+pascalCase(c)+y(0x1a5),'begin':[y(0x187)+p+'-component\x22>','<div\x20id=\x22'+p+y(0x18e)],'end':[y(0x191),y(0x1a3),'{props.children}',y(0x1a4)]});}}}catch(t){t&&Log[y(0x1ab)](t);}},a109f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110h=a110d;function a110c(){const j=['24pBcWXU','constructor','104yKoWeO','3432540bfuEkL','NIE','2230WhYgOq','5250276TaGwKN','2126789eAbdQs','(((.+)+)+)+$','Material-UI\x20Kit','toString','2412345XbXVsp','mui','search','79882tXBjUI','114jKfHkp','create','maka\x20g:kit:m','164960kAmdTr','18572BVyYyV'];a110c=function(){return j;};return a110c();}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x16a))/0x1*(-parseInt(f(0x16d))/0x2)+-parseInt(f(0x162))/0x3+parseInt(f(0x16e))/0x4+-parseInt(f(0x169))/0x5*(parseInt(f(0x166))/0x6)+-parseInt(f(0x15e))/0x7*(parseInt(f(0x16b))/0x8)+-parseInt(f(0x15d))/0x9+-parseInt(f(0x15c))/0xa*(-parseInt(f(0x165))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x7e579));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const g=a110d;return a110a[g(0x161)]()['search'](g(0x15f))[g(0x161)]()[g(0x16c)](a110a)[g(0x164)]('(((.+)+)+)+$');});a110a();function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x15c;let f=c[d];return f;},a110d(a,b);}import{Generator}from'../../../generator.js';import a110e from'../kit.js';const MuiGen=Generator[a110h(0x167)]({'name':a110h(0x163),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a110h(0x160),'validOpts':[''],'isPro':!![],'examples':[a110h(0x168)]},async function(){const i=a110h;throw i(0x16f);},a110e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111q=a111d;(function(a,b){const o=a111d,c=a();while(!![]){try{const d=-parseInt(o(0x105))/0x1*(-parseInt(o(0x11f))/0x2)+-parseInt(o(0x108))/0x3+-parseInt(o(0x13d))/0x4+parseInt(o(0x137))/0x5*(parseInt(o(0x11d))/0x6)+-parseInt(o(0x111))/0x7+-parseInt(o(0x136))/0x8+parseInt(o(0x135))/0x9*(parseInt(o(0x112))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x55aae));function a111c(){const t=['template/template.css','276774NvFjVk','.app-tests.js','constructor','dir','fileName','fsi','\x27;\x0a','injectAtBeginningOfFile','maka\x20g:l\x20web/safari','3891664FGyoRT','73330pMxzbV','withTranslations','import\x20\x27./','withValue','layout','ramda','string','maka\x20g:layout\x20mobile/iPhone8','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20a\x20React\x20Layout.','warn','12nbTgnB','export\x20\x27','41942cNudjr','api','checkNpmPackage','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','pathFromApp','className','injectAtEndOfFile','component/component.js','css','react','resourceName','assign','setTemplate','template','true','(((.+)+)+)+$','features','withHook','includes','split','startup','relative','2025wKcmwP','3885048HIRCVG','151195hDJgJb','test','create','getProjectConfig','.js','templates.js','1825396ADWOqJ','client','imports','withHooks','search','installNpmPackage','engines','export\x20{\x20','test/test.js','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','toString','11VLQTAF','none'];a111c=function(){return t;};return a111c();}const a111b=(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;};}()),a111a=a111b(this,function(){const p=a111d;return a111a[p(0x104)]()['search'](p(0x12e))[p(0x104)]()[p(0x10a)](a111a)[p(0x141)](p(0x12e));});a111a();import a111e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x101;let f=c[d];return f;},a111d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a111q(0x139)]({'name':a111q(0x116),'aliases':aliases,'usage':a111q(0x122),'shortDesc':a111q(0x11b),'validOpts':[],'examples':[a111q(0x119),a111q(0x110)]},function(a,b){const r=a111q,c='/imports/ui/layouts',d=this[r(0x10d)]['findAppDirectory'](),e=this[r(0x10d)][r(0x123)]({'pathParts':[c,b[r(0x10b)],paramCase(b[r(0x129)]),paramCase(b[r(0x129)])]}),f=this[r(0x10d)][r(0x13a)]();this['fsi'][r(0x115)](f,()=>{const s=r;typeof f[s(0x12c)][s(0x138)]===s(0x118)&&(f[s(0x12c)][s(0x138)]=f[s(0x12c)]['test']===s(0x12d)?!![]:![],this['fsi'][s(0x12b)](s(0x138),f[s(0x12c)][s(0x138)]));typeof f['template']['css']===s(0x118)&&(f[s(0x12c)]['css']=f[s(0x12c)][s(0x127)]==='true'?!![]:![],this[s(0x10d)][s(0x12b)](s(0x127),f[s(0x12c)][s(0x127)]));typeof f[s(0x12c)]['js']==='string'&&(f[s(0x12c)]['js']=f[s(0x12c)]['js']===s(0x12d)?!![]:![],this[s(0x10d)]['setTemplate']('js',f[s(0x12c)]['js']));!f[s(0x12f)]&&(f[s(0x12f)]={});const g=b['_']?b['_'][0x0][s(0x132)](':')[0x1]:![],h=b['_']&&aliases[s(0x131)](g);h&&!this['checkNpmPackage'](s(0x117))&&(Log[s(0x11c)](s(0x11a)),this[s(0x10d)][s(0x142)](s(0x117),{'cwd':d}));if(h&&!this[s(0x121)](s(0x128))){Log['warn'](s(0x103));return;}const i={'name':pascalCase(b[s(0x129)]),'myPath':a111e[s(0x134)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x129)]),'fileName':paramCase(b['resourceName']),'graphql':f[s(0x143)]['graphql'],'features':f[s(0x12f)],'client':f[s(0x143)][s(0x13e)],'api':f[s(0x143)][s(0x120)],'ssr':f[s(0x143)]['ssr'],'test':f[s(0x143)]['test'],'theme':f[s(0x143)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x12f)][s(0x113)]};f[s(0x12f)]?.[s(0x140)]||b[s(0x130)]?this['fsi'][s(0x12c)]({'srcPath':'hook/hook.js','destPath':e+s(0x13b),'framework':'react','context':i,'config':f}):this[s(0x10d)][s(0x12c)]({'srcPath':s(0x126),'destPath':e+s(0x13b),'framework':s(0x128),'context':i,'config':f});f['engines']['test']!==s(0x106)&&this[s(0x10d)][s(0x12c)]({'srcPath':s(0x102),'destPath':e+s(0x109),'framework':s(0x128),'context':i,'config':f});f['template'][s(0x127)]&&(this[s(0x10d)]['template']({'srcPath':s(0x107),'destPath':e+'.css','context':Object[s(0x12a)]({},i,{'className':paramCase(b[s(0x129)])}),'config':f}),this['fsi'][s(0x10f)]({'filePath':e+'.'+f[s(0x143)]['js'],'content':s(0x114)+i['fileName']+'.'+f[s(0x143)][s(0x127)]+'\x27;'}));const j=b[s(0x10b)]?'/'+b[s(0x10b)]+'/':'/',k=''+c+j+i[s(0x10c)]+'/'+i[s(0x10c)];let l;if(f[s(0x143)]['ssr']===s(0x12d)){const m=this[s(0x10d)][s(0x123)]({'pathParts':[s(0x13f),s(0x133),'lib',s(0x13c)]});l=this[s(0x10d)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[s(0x10d)]['pathFromApp']({'pathParts':[s(0x13f),'startup',s(0x13e),s(0x13c)]});l=this[s(0x10d)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[s(0x143)]['client']===s(0x128)?this[s(0x10d)][s(0x125)]({'filePath':l,'content':s(0x101)+i[s(0x124)]+'\x20}\x20from\x20\x27'+k+s(0x10e)}):this[s(0x10d)]['injectAtEndOfFile']({'filePath':l,'content':s(0x11e)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xce;let f=c[d];return f;},a112d(a,b);}const a112h=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(0xd4))/0x1*(-parseInt(f(0xd6))/0x2)+parseInt(f(0xdb))/0x3*(parseInt(f(0xd1))/0x4)+parseInt(f(0xd2))/0x5+-parseInt(f(0xdf))/0x6+-parseInt(f(0xdc))/0x7*(parseInt(f(0xe4))/0x8)+-parseInt(f(0xd0))/0x9+parseInt(f(0xe5))/0xa*(-parseInt(f(0xd5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x70789));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const g=a112d;return a112a['toString']()[g(0xe2)]('(((.+)+)+)+$')[g(0xde)]()['constructor'](a112a)[g(0xe2)](g(0xe3));});a112a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a112h(0xdd),'aliases':['g'],'usage':a112h(0xce),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a112h(0xe0),'examples':[a112h(0xd3),a112h(0xd7),a112h(0xcf),a112h(0xd8),a112h(0xda),a112h(0xd9),a112h(0xe1)]},function(){});function a112c(){const i=['189dToctL','generate','toString','1336980ouGUix','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:dbc\x20geoserver\x20--type=pgsql','search','(((.+)+)+)+$','196632STBcqg','22910IZSSvk','maka\x20{generate,\x20g}:<generator>\x20<name>','maka\x20g:template\x20todos/todo_item','562923BQoqjN','4oFJWqF','469450WWYUiv','maka\x20generate:scaffold\x20todos','7167YHdVmC','418IjdFSY','194ONcHIA','maka\x20g:scaffold\x20todos','maka\x20g:package\x20package:name','maka\x20g:api\x20trucks','maka\x20g:route\x20todos/edit','2122980UHXSsw'];a112c=function(){return i;};return a112c();}export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=parseInt(k(0xca))/0x1*(parseInt(k(0xd6))/0x2)+parseInt(k(0xc0))/0x3*(-parseInt(k(0xbf))/0x4)+parseInt(k(0xb8))/0x5*(-parseInt(k(0xb0))/0x6)+-parseInt(k(0xd2))/0x7+parseInt(k(0xd1))/0x8*(-parseInt(k(0xbd))/0x9)+parseInt(k(0xb3))/0xa*(-parseInt(k(0xb2))/0xb)+parseInt(k(0xc5))/0xc*(parseInt(k(0xd3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x770be));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a113d;if(c){const e=c[l(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const m=a113d;return a113a[m(0xb6)]()[m(0xbc)](m(0xc6))[m(0xb6)]()['constructor'](a113a)[m(0xbc)]('(((.+)+)+)+$');});a113a();function a113c(){const q=['fsi','engines','maka\x20g:method\x20todos','6752880IERQFX','5535166OWJfjf','39556907qpYQJE','-rpc-method.','dir','839284bzAoWE','maka\x20{generate,\x20g}:{method,\x20m}\x20name','mdg:validated-method','injectAtEndOfFile','apply','startup','6uLWSSb','imports','8723VFgphc','7270Fmviog','installMeteorPackage','index.','toString','check','2114780fhfeXq','pathFromApp','withValue','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','search','9Xkqfrb','appPathPrefix','170276iHYbWY','24IpIuix','check\x20ddp-rate-limiter\x20mdg:validated-method','method','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','resourceName','12AXlHdE','(((.+)+)+)+$','-rpc-method\x27;','warn','method/method.js','1yrhqJA','methods','checkMeteorPackage','tsx'];a113c=function(){return q;};return a113c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xab;let f=c[d];return f;},a113d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a113n(0xc2),'aliases':['m'],'usage':a113n(0xab),'checkWhere':!![],'shortDesc':a113n(0xc3),'validOpts':[a113n(0xd5)],'examples':[a113n(0xd0)]},function(a,b){const o=a113n;try{const c=this[o(0xce)]['getProjectConfig']();this[o(0xce)][o(0xba)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0xc4)]),'camelCase':camelCase(b[p(0xc4)]),'noRename':!![]};let g='js';c[p(0xcf)]['js']===p(0xcd)&&(g='ts');const h=this[p(0xce)]['pathFromApp']({});(!this[p(0xce)]['checkMeteorPackage'](p(0xb7))||!this[p(0xce)][p(0xcc)]('ddp-rate-limiter')||!this[p(0xce)][p(0xcc)](p(0xac)))&&(Log[p(0xc8)](p(0xbb)),this['fsi'][p(0xb4)](p(0xc1),{'cwd':h}));this[p(0xce)]['template']({'srcPath':p(0xc9),'destPath':this[p(0xce)][p(0xb9)]({'pathParts':[p(0xb1),'startup',b[p(0xbe)],p(0xcb),b[p(0xd5)],d+p(0xd4)+g]}),'context':f,'config':c});const i=b[p(0xd5)]?'/'+b['dir']+'/':'/',j=this[p(0xce)][p(0xb9)]({'pathParts':['imports',p(0xaf),b[p(0xbe)],p(0xb5)+c[p(0xcf)]['js']]});this[p(0xce)][p(0xad)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0xc7)});});}catch(d){Log['error'](d);}});
|