@maka/maka-cli 4.6.10 → 4.6.12

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.
Files changed (137) hide show
  1. package/bundle/obf/package.json +3 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/install.js +1 -1
  73. package/bundle/obf/src/commands/jsdoc.js +1 -1
  74. package/bundle/obf/src/commands/lint.js +1 -1
  75. package/bundle/obf/src/commands/login.js +1 -1
  76. package/bundle/obf/src/commands/logout.js +1 -1
  77. package/bundle/obf/src/commands/logs.js +1 -1
  78. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  79. package/bundle/obf/src/commands/murder.js +1 -1
  80. package/bundle/obf/src/commands/proxy.js +1 -1
  81. package/bundle/obf/src/commands/reconfig.js +1 -1
  82. package/bundle/obf/src/commands/run/_index.js +1 -1
  83. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  84. package/bundle/obf/src/commands/run/run.command.js +1 -1
  85. package/bundle/obf/src/commands/set/_index.js +1 -1
  86. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/set/set.command.js +1 -1
  89. package/bundle/obf/src/commands/ssh.js +1 -1
  90. package/bundle/obf/src/commands/ssl.js +1 -1
  91. package/bundle/obf/src/commands/test.js +1 -1
  92. package/bundle/obf/src/commands/version.js +1 -1
  93. package/bundle/obf/src/error.js +1 -1
  94. package/bundle/obf/src/exec.js +1 -1
  95. package/bundle/obf/src/generator.js +1 -1
  96. package/bundle/obf/src/generators/_index.js +1 -1
  97. package/bundle/obf/src/generators/api.js +1 -1
  98. package/bundle/obf/src/generators/collection.js +1 -1
  99. package/bundle/obf/src/generators/component.js +1 -1
  100. package/bundle/obf/src/generators/config.js +1 -1
  101. package/bundle/obf/src/generators/dbc.js +1 -1
  102. package/bundle/obf/src/generators/dockerfile.js +1 -1
  103. package/bundle/obf/src/generators/hook.js +1 -1
  104. package/bundle/obf/src/generators/kit.js +1 -1
  105. package/bundle/obf/src/generators/layout.js +1 -1
  106. package/bundle/obf/src/generators/maka.gen.js +1 -1
  107. package/bundle/obf/src/generators/methods.js +1 -1
  108. package/bundle/obf/src/generators/package.js +1 -1
  109. package/bundle/obf/src/generators/page.js +1 -1
  110. package/bundle/obf/src/generators/publish.js +1 -1
  111. package/bundle/obf/src/generators/route.js +1 -1
  112. package/bundle/obf/src/generators/service.js +1 -1
  113. package/bundle/obf/src/generators/services/_index.js +1 -1
  114. package/bundle/obf/src/generators/services/openssl.js +1 -1
  115. package/bundle/obf/src/generators/services/translation.js +1 -1
  116. package/bundle/obf/src/maka.js +1 -1
  117. package/bundle/obf/src/tool.js +1 -1
  118. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  120. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  122. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  124. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/https/https.class.js +1 -1
  126. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  127. package/bundle/obf/src/tools/log/log.class.js +1 -1
  128. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  129. package/bundle/obf/src/tools/options/options.class.js +1 -1
  130. package/bundle/obf/src/tools/progress/progress.class.js +1 -0
  131. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  136. package/package.json +3 -1
  137. package/bundle/obf/src/tools/https/progress.class.js +0 -1
@@ -1 +1 @@
1
- const a96y=a96d;(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x15f))/0x1*(-parseInt(w(0x117))/0x2)+parseInt(w(0x157))/0x3*(-parseInt(w(0x131))/0x4)+parseInt(w(0x141))/0x5+-parseInt(w(0x15d))/0x6*(parseInt(w(0x166))/0x7)+parseInt(w(0x151))/0x8+parseInt(w(0x139))/0x9*(parseInt(w(0x162))/0xa)+-parseInt(w(0x134))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x3f341));const a96b=(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;};}()),a96a=a96b(this,function(){const x=a96d;return a96a[x(0x115)]()['search'](x(0x155))[x(0x115)]()[x(0x140)](a96a)['search'](x(0x155));});a96a();function a96c(){const B=['1515450iASlNj','withRest','43607FfXthY','RPC\x20(Methods)','/graphql/typeDefs','27310ECDNAB','error','test','if\x20\x5c(typeList','14WrIQGC','Fixtures','maka:check','apollo','maka\x20{generate,\x20g}:{api}\x20<resource-name>','rest','findGenerator','exit','toString','withPubs','20DTHpja','TypeDefs\x20}\x20from\x20\x27','api/fixtures.js','invoke','ddp-rate-limiter','tsx','Verifying\x20meteor\x20package\x20requirements\x20...','\x27;\x0a','maka\x20g:api\x20Todos','withGql','server','mongo','options','-api\x27;','rewriteDestinationPathForEngine','push','template','typeDefs.','import\x20\x27./register-','fsi','api/register-api.js','collection','maka:rest','dir','api/api.js','startup','3464gcUCFX','apiAnswers','api/resolvers.js','5360784ZrkhSW','import\x20{\x20typeDefs\x20as\x20','getProjectConfig','checkMeteorPackage','api/publications.js','1269vZEJQj','installMeteorPackage','injectIntoFile','includes','Resolvers\x20}\x20from\x20\x27','typeList.push(','api','constructor','1846110AaTSwv','withFixtures','Publications','register-','resolverList.push(','withMethods','engines','injectAtBeginningOfFile','fixtures.','API\x20boundaries\x20to\x20create','/graphql/resolvers','mdg:validated-method','api/tests.js','pathFromApp','const','Resolvers);\x0a\x0a','495024kDHWDo','graphql','create','resourceName','(((.+)+)+)+$','GraphQL','3HNPFih','checkbox','imports','index.','api/typeDefs.js','notice'];a96c=function(){return B;};return a96c();}import{Generator}from'../generator.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x114;let f=c[d];return f;},a96d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a96y(0x153)]({'name':a96y(0x13f),'aliases':['a'],'usage':a96y(0x16a),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':['dir'],'examples':[a96y(0x11f)],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const z=a96y;try{const c=this[z(0x12a)][z(0x136)](),d=[{'name':z(0x160),'value':z(0x146)},{'name':z(0x167),'value':z(0x142)},{'name':z(0x143),'value':z(0x116)}];c[z(0x147)][z(0x13f)]===z(0x16b)&&d[z(0x126)]({'name':'REST\x20API','value':z(0x15e)});c[z(0x147)][z(0x152)]==='apollo'&&d[z(0x126)]({'name':z(0x156),'value':z(0x120)});const f={'type':z(0x158),'name':z(0x132),'message':z(0x14a),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x123)](f);g['length']===0x0&&(Log['error']('No\x20API\x20boundaries\x20selected'),process[z(0x114)](0x1)),this[z(0x12a)]['withValue'](c,async()=>{const A=z,h=this[A(0x12a)][A(0x14e)]({}),i=b[A(0x154)],j=paramCase(i),k=camelCase(i),l=b[A(0x12e)]?'/'+b[A(0x12e)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines']['api'],'graphql':c[A(0x147)]['graphql'],'test':c['engines'][A(0x164)],'noRename':!![],'withPubs':g[A(0x13c)](A(0x116)),'withFixtures':g[A(0x13c)](A(0x142)),'withMethods':g[A(0x13c)](A(0x146)),'withRest':g[A(0x13c)](A(0x15e))};let n='js';c[A(0x147)]['js']===A(0x11c)&&(n='ts');(!this[A(0x12a)][A(0x137)](A(0x12d))||!this[A(0x12a)][A(0x137)](A(0x168))||!this[A(0x12a)]['checkMeteorPackage'](A(0x11b))||!this['fsi']['checkMeteorPackage'](A(0x14c))||!this[A(0x12a)][A(0x137)](A(0x122)))&&(Log[A(0x15c)](A(0x11d)),await this[A(0x12a)][A(0x13a)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a96e[A(0x16c)](A(0x12c));o&&await o[A(0x11a)]([j],{'config':c,'where':A(0x121)});c['engines'][A(0x13f)]===A(0x16b)&&(m[A(0x15e)]&&this['fsi'][A(0x127)]({'srcPath':A(0x12f),'destPath':this['fsi'][A(0x14e)]({'pathParts':[A(0x159),A(0x13f),b[A(0x12e)],j,'rest-api.'+n]}),'context':m,'config':c}));m[A(0x146)]&&this[A(0x12a)]['template']({'srcPath':'api/methods.js','destPath':this[A(0x12a)]['pathFromApp']({'pathParts':[A(0x159),'api',b[A(0x12e)],j,'rpc-methods.'+n]}),'context':m,'config':c});m[A(0x142)]&&this[A(0x12a)][A(0x127)]({'srcPath':A(0x119),'destPath':this[A(0x12a)][A(0x14e)]({'pathParts':[A(0x159),'api',b[A(0x12e)],j,A(0x149)+n]}),'context':m,'config':c});c['engines'][A(0x164)]!=='none'&&this[A(0x12a)][A(0x127)]({'srcPath':A(0x14d),'destPath':this[A(0x12a)]['pathFromApp']({'pathParts':[A(0x159),'api',b[A(0x12e)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[A(0x116)]&&this[A(0x12a)]['template']({'srcPath':A(0x138),'destPath':this[A(0x12a)][A(0x14e)]({'pathParts':[A(0x159),'api',b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c[A(0x147)][A(0x152)]===A(0x169)){if(g[A(0x13c)](A(0x120))){const q=this['fsi'][A(0x14e)]({'pathParts':[A(0x159),'startup',A(0x121),'index.'+c[A(0x147)]['js']]}),r=this[A(0x12a)][A(0x125)]({'pathParts':[q],'config':c}),s=this[A(0x12a)][A(0x14e)]({'pathParts':[A(0x159),A(0x13f),b[A(0x12e)],j,A(0x152),A(0x128)+n]}),t='/imports/api'+l+j+A(0x161);this[A(0x12a)][A(0x127)]({'srcPath':A(0x15b),'destPath':s,'context':m,'config':c}),this[A(0x12a)][A(0x148)]({'filePath':r,'content':A(0x135)+k+A(0x118)+t+A(0x11e)}),this[A(0x12a)]['injectIntoFile']({'filePath':r,'content':A(0x13e)+k+'TypeDefs);\x0a','begin':A(0x14f),'end':A(0x165)});const u=this[A(0x12a)][A(0x14e)]({'pathParts':[A(0x159),A(0x13f),b[A(0x12e)],j,A(0x152),'resolvers.'+n]}),v='/imports/api'+l+j+A(0x14b);this['fsi']['template']({'srcPath':A(0x133),'destPath':u,'context':m,'config':c}),this[A(0x12a)][A(0x148)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0x13d)+v+'\x27;'}),this[A(0x12a)][A(0x13b)]({'filePath':r,'content':A(0x145)+k+A(0x150),'begin':A(0x14f),'end':A(0x165)});}}this['fsi'][A(0x127)]({'srcPath':A(0x12b),'destPath':this['fsi']['pathFromApp']({'pathParts':['imports',A(0x130),'server',A(0x144)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x12a)][A(0x14e)]({'pathParts':[A(0x159),A(0x130),A(0x121),A(0x15a)+c[A(0x147)]['js']]});this[A(0x12a)]['injectAtEndOfFile']({'filePath':p,'content':A(0x129)+j+A(0x124)});});}catch(h){console[z(0x163)](h),process[z(0x114)](0x0);}});
1
+ const a96y=a96d;function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a96d(a,b);}(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x20c))/0x1+-parseInt(w(0x1df))/0x2*(parseInt(w(0x1ce))/0x3)+-parseInt(w(0x200))/0x4+parseInt(w(0x1c8))/0x5*(parseInt(w(0x1da))/0x6)+-parseInt(w(0x218))/0x7*(-parseInt(w(0x202))/0x8)+parseInt(w(0x226))/0x9*(-parseInt(w(0x207))/0xa)+-parseInt(w(0x1d3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x56621));function a96c(){const B=['777URBTZN','injectIntoFile','tsx','withValue','pathFromApp','typeList.push(','withFixtures','Resolvers\x20}\x20from\x20\x27','if\x20\x5c(typeList','push','mongo','template','fixtures.','withRest','385551TLZDOv','graphql','\x27;\x0a','5TolcNw','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','publications.','injectAtEndOfFile','.app-tests.','checkMeteorPackage','7053ZUKJeb','fsi','maka:rest','collection','checkbox','2818959acDnwB','apiAnswers','const','error','API\x20boundaries\x20to\x20create','test','ddp-rate-limiter','4191438BGkWtH','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rest','maka\x20{generate,\x20g}:{api}\x20<resource-name>','resolverList.push(','156MtGbtb','engines','Publications','length','api','startup','toString','includes','Fixtures','import\x20{\x20typeDefs\x20as\x20','api/resolvers.js','TypeDefs);\x0a','rpc-methods.','REST\x20API','exit','register-','withMethods','getProjectConfig','-api.','-api\x27;','RPC\x20(Methods)','api/register-api.js','index.','rewriteDestinationPathForEngine','injectAtBeginningOfFile','/imports/api','api/methods.js','api/typeDefs.js','maka\x20g:api\x20Todos','withGql','TypeDefs\x20}\x20from\x20\x27','search','imports','879416JwllLm','withPubs','32272QPkgpI','options','create','No\x20API\x20boundaries\x20selected','/graphql/typeDefs','20KgVaRk','dir','typeDefs.','(((.+)+)+)+$','Resolvers);\x0a\x0a','47343GtRFez','apollo','rest-api.','api/api.js','resourceName','\x0aimport\x20{\x20resolvers\x20as\x20','notice','/graphql/resolvers','server','import\x20\x27./register-','GraphQL','none'];a96c=function(){return B;};return a96c();}const a96b=(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;};}()),a96a=a96b(this,function(){const x=a96d;return a96a['toString']()[x(0x1fe)](x(0x20a))[x(0x1e5)]()['constructor'](a96a)[x(0x1fe)](x(0x20a));});a96a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a96y(0x204)]({'name':a96y(0x1e3),'aliases':['a'],'usage':a96y(0x1dd),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a96y(0x208)],'examples':[a96y(0x1fb)],'description':a96y(0x1c9)},async function(a,b){const z=a96y;try{const c=this[z(0x1cf)][z(0x1f0)](),d=[{'name':z(0x1f3),'value':'withMethods'},{'name':z(0x1e7),'value':z(0x21e)},{'name':z(0x1e1),'value':z(0x201)}];c[z(0x1e0)][z(0x1e3)]===z(0x1dc)&&d['push']({'name':z(0x1ec),'value':'withRest'});c[z(0x1e0)][z(0x227)]==='apollo'&&d[z(0x221)]({'name':z(0x216),'value':z(0x1fc)});const f={'type':z(0x1d2),'name':z(0x1d4),'message':z(0x1d7),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x203)](f);g[z(0x1e2)]===0x0&&(Log['error'](z(0x205)),process[z(0x1ed)](0x1)),this[z(0x1cf)][z(0x21b)](c,async()=>{const A=z,h=this['fsi'][A(0x21c)]({}),i=b[A(0x210)],j=paramCase(i),k=camelCase(i),l=b[A(0x208)]?'/'+b[A(0x208)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x1e0)]['api'],'graphql':c[A(0x1e0)][A(0x227)],'test':c[A(0x1e0)][A(0x1d8)],'noRename':!![],'withPubs':g[A(0x1e6)](A(0x201)),'withFixtures':g[A(0x1e6)](A(0x21e)),'withMethods':g[A(0x1e6)](A(0x1ef)),'withRest':g['includes']('withRest')};let n='js';c['engines']['js']===A(0x21a)&&(n='ts');(!this[A(0x1cf)][A(0x1cd)](A(0x1d0))||!this[A(0x1cf)][A(0x1cd)]('maka:check')||!this[A(0x1cf)][A(0x1cd)](A(0x1d9))||!this[A(0x1cf)][A(0x1cd)]('mdg:validated-method')||!this[A(0x1cf)]['checkMeteorPackage'](A(0x222)))&&(Log[A(0x212)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[A(0x1cf)]['installMeteorPackage'](A(0x1db),{'cwd':h}));const o=a96e['findGenerator'](A(0x1d1));o&&await o['invoke']([j],{'config':c,'where':A(0x214)});c[A(0x1e0)][A(0x1e3)]===A(0x1dc)&&(m[A(0x225)]&&this[A(0x1cf)][A(0x223)]({'srcPath':A(0x20f),'destPath':this['fsi'][A(0x21c)]({'pathParts':['imports',A(0x1e3),b[A(0x208)],j,A(0x20e)+n]}),'context':m,'config':c}));m[A(0x1ef)]&&this[A(0x1cf)][A(0x223)]({'srcPath':A(0x1f9),'destPath':this[A(0x1cf)][A(0x21c)]({'pathParts':[A(0x1ff),A(0x1e3),b[A(0x208)],j,A(0x1eb)+n]}),'context':m,'config':c});m['withFixtures']&&this[A(0x1cf)][A(0x223)]({'srcPath':'api/fixtures.js','destPath':this[A(0x1cf)][A(0x21c)]({'pathParts':[A(0x1ff),A(0x1e3),b['dir'],j,A(0x224)+n]}),'context':m,'config':c});c['engines'][A(0x1d8)]!==A(0x217)&&this[A(0x1cf)][A(0x223)]({'srcPath':'api/tests.js','destPath':this[A(0x1cf)][A(0x21c)]({'pathParts':[A(0x1ff),A(0x1e3),b[A(0x208)],j,j+A(0x1cc)+n]}),'context':m,'config':c});m[A(0x201)]&&this[A(0x1cf)][A(0x223)]({'srcPath':'api/publications.js','destPath':this[A(0x1cf)][A(0x21c)]({'pathParts':[A(0x1ff),A(0x1e3),b[A(0x208)],j,A(0x1ca)+n]}),'context':m,'config':c});if(c[A(0x1e0)]['graphql']===A(0x20d)){if(g['includes']('withGql')){const q=this['fsi'][A(0x21c)]({'pathParts':[A(0x1ff),A(0x1e4),A(0x214),A(0x1f5)+c[A(0x1e0)]['js']]}),r=this[A(0x1cf)][A(0x1f6)]({'pathParts':[q],'config':c}),s=this[A(0x1cf)][A(0x21c)]({'pathParts':['imports',A(0x1e3),b['dir'],j,'graphql',A(0x209)+n]}),t=A(0x1f8)+l+j+A(0x206);this[A(0x1cf)][A(0x223)]({'srcPath':A(0x1fa),'destPath':s,'context':m,'config':c}),this[A(0x1cf)][A(0x1f7)]({'filePath':r,'content':A(0x1e8)+k+A(0x1fd)+t+A(0x1c7)}),this['fsi'][A(0x219)]({'filePath':r,'content':A(0x21d)+k+A(0x1ea),'begin':A(0x1d5),'end':'if\x20\x5c(typeList'});const u=this[A(0x1cf)][A(0x21c)]({'pathParts':[A(0x1ff),A(0x1e3),b[A(0x208)],j,A(0x227),'resolvers.'+n]}),v=A(0x1f8)+l+j+A(0x213);this['fsi']['template']({'srcPath':A(0x1e9),'destPath':u,'context':m,'config':c}),this[A(0x1cf)]['injectAtBeginningOfFile']({'filePath':r,'content':A(0x211)+k+A(0x21f)+v+'\x27;'}),this['fsi']['injectIntoFile']({'filePath':r,'content':A(0x1de)+k+A(0x20b),'begin':A(0x1d5),'end':A(0x220)});}}this[A(0x1cf)][A(0x223)]({'srcPath':A(0x1f4),'destPath':this['fsi']['pathFromApp']({'pathParts':[A(0x1ff),A(0x1e4),A(0x214),A(0x1ee)+j+A(0x1f1)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi']['pathFromApp']({'pathParts':['imports',A(0x1e4),A(0x214),A(0x1f5)+c['engines']['js']]});this[A(0x1cf)][A(0x1cb)]({'filePath':p,'content':A(0x215)+j+A(0x1f2)});});}catch(h){console[z(0x1d6)](h),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a97n=a97d;function a97c(){const q=['constructor','(((.+)+)+)+$','5042520wumfXb','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','col','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','startup','engines','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','3523195HhLTqK','test','imports','collection','index.','dir','tsx','withValue','2116218XWNFHw','fsi','pathFromApp','appPathPrefix','maka\x20g:collection\x20todos','getProjectConfig','collections','apply','4dMtePV','1189224WLBZGn','\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','maka:check','error','notice','collection/tests.js','resourceName','5230512AwTIAJ','none','checkMeteorPackage','template','603452jayQfc','226370DZCOza','search','create','mongo','where','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','collection/collection.js','installMeteorPackage'];a97c=function(){return q;};return a97c();}(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x104))/0x1*(parseInt(k(0xf7))/0x2)+-parseInt(k(0xef))/0x3+-parseInt(k(0x103))/0x4+parseInt(k(0xe7))/0x5+parseInt(k(0xf8))/0x6+-parseInt(k(0xe0))/0x7+parseInt(k(0xff))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x69a80));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a['toString']()['search'](m(0xdf))['toString']()[m(0xde)](a97a)[m(0x105)]('(((.+)+)+)+$');});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xd9;let f=c[d];return f;},a97d(a,b);}a97a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a97n(0x106)]({'name':a97n(0xea),'aliases':[a97n(0xe2)],'usage':a97n(0xe3),'checkWhere':!![],'shortDesc':a97n(0xdb),'validOpts':['dir',a97n(0xda)],'description':a97n(0xf9),'examples':[a97n(0xf3)]},async function(a,b){const o=a97n;try{const c=this[o(0xf0)][o(0xf1)]({}),d=this[o(0xf0)][o(0xf4)]();this[o(0xf0)][o(0xee)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0xfe)]),'collectionName':pascalCase(b[p(0xfe)]),'fileName':f,'where':b[p(0xda)],'test':d[p(0xe5)]['test'],'noRename':!![]};let h='js';d[p(0xe5)]['js']===p(0xed)&&(h='ts');!this[p(0xf0)][p(0x101)]('mongo')&&(Log[p(0xfc)](p(0xe6)),await this[p(0xf0)][p(0xdd)](p(0xd9),{'cwd':c}));!this['fsi']['checkMeteorPackage'](p(0xfa))&&(Log['notice'](p(0xe1)),await this[p(0xf0)][p(0xdd)](p(0xfa),{'cwd':c}));this[p(0xf0)][p(0x102)]({'srcPath':p(0xdc),'destPath':this[p(0xf0)]['pathFromApp']({'pathParts':[p(0xe9),'startup',b[p(0xf2)],p(0xf5),b[p(0xec)],f+'.'+h]}),'context':g,'config':d});d['engines'][p(0xe8)]!==p(0x100)&&this[p(0xf0)][p(0x102)]({'srcPath':p(0xfd),'destPath':this[p(0xf0)][p(0xf1)]({'pathParts':['imports','startup',b['appPathPrefix'],'collections',b['dir'],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b[p(0xec)]?'/'+b[p(0xec)]+'/':'/',j=this[p(0xf0)][p(0xf1)]({'pathParts':[p(0xe9),p(0xe4),b[p(0xf2)],p(0xeb)+d['engines']['js']]});this['fsi']['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0xfb)](f);}});
1
+ const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x15c))/0x1+parseInt(k(0x16f))/0x2+-parseInt(k(0x15d))/0x3+-parseInt(k(0x15e))/0x4+parseInt(k(0x162))/0x5+-parseInt(k(0x167))/0x6*(parseInt(k(0x17a))/0x7)+-parseInt(k(0x172))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xbe8a0));function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x15c;let f=c[d];return f;},a97d(a,b);}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x175)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x185)]()[m(0x183)](m(0x186))[m(0x185)]()[m(0x165)](a97a)['search']('(((.+)+)+)+$');});function a97c(){const q=['collection','maka\x20g:collection\x20todos','1297498mJzbzc','appPathPrefix','fsi','1455640cSpbSF','pathFromApp','error','apply','startup','engines','tsx','checkMeteorPackage','743218YKOaIX','test','create','installMeteorPackage','collection/collection.js','col','collections','none','notice','search','where','toString','(((.+)+)+)+$','628270MvmJGF','1616283IfcLSP','2592760QRDsEV','getProjectConfig','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','mongo','5423415zHCNrB','resourceName','collection/tests.js','constructor','.app-tests.','12kAWSgx','imports','dir','index.','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','injectAtEndOfFile'];a97c=function(){return q;};return a97c();}a97a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a97n(0x17c)]({'name':a97n(0x16d),'aliases':[a97n(0x17f)],'usage':a97n(0x16b),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a97n(0x169),a97n(0x184)],'description':a97n(0x160),'examples':[a97n(0x16e)]},async function(a,b){const o=a97n;try{const c=this['fsi']['pathFromApp']({}),d=this[o(0x171)][o(0x15f)]();this['fsi']['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0x163)]),g={'name':pascalCase(b[p(0x163)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x184)],'test':d['engines'][p(0x17b)],'noRename':!![]};let h='js';d[p(0x177)]['js']===p(0x178)&&(h='ts');!this[p(0x171)][p(0x179)](p(0x161))&&(Log[p(0x182)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0x171)][p(0x17d)]('mongo',{'cwd':c}));!this[p(0x171)]['checkMeteorPackage']('maka:check')&&(Log[p(0x182)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x171)][p(0x17d)]('maka:check',{'cwd':c}));this[p(0x171)]['template']({'srcPath':p(0x17e),'destPath':this['fsi'][p(0x173)]({'pathParts':[p(0x168),p(0x176),b['appPathPrefix'],p(0x180),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x177)][p(0x17b)]!==p(0x181)&&this[p(0x171)]['template']({'srcPath':p(0x164),'destPath':this[p(0x171)][p(0x173)]({'pathParts':['imports',p(0x176),b['appPathPrefix'],p(0x180),b[p(0x169)],f+p(0x166)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x169)]+'/':'/',j=this[p(0x171)]['pathFromApp']({'pathParts':[p(0x168),p(0x176),b[p(0x170)],p(0x16a)+d[p(0x177)]['js']]});this[p(0x171)][p(0x16c)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0x174)](f);}});
@@ -1 +1 @@
1
- const a98p=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0xb8))/0x1+-parseInt(n(0xab))/0x2+parseInt(n(0x9d))/0x3+parseInt(n(0xa2))/0x4+-parseInt(n(0x87))/0x5*(parseInt(n(0xb7))/0x6)+-parseInt(n(0x94))/0x7+parseInt(n(0xa5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xb9430));const a98b=(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;};}()),a98a=a98b(this,function(){const o=a98d;return a98a[o(0x90)]()[o(0x88)](o(0x8d))[o(0x90)]()[o(0x9b)](a98a)[o(0x88)](o(0x8d));});a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x78;let f=c[d];return f;},a98d(a,b);}import{Generator}from'../generator.js';function a98c(){const s=['pages','injectAtBeginningOfFile','checkNpmPackage','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','none','templates.js','baseDir','warn','startup','20155threpF','search','test/test.js','template','injectAtEndOfFile','assign','(((.+)+)+)+$','ramda','.js','toString','findAppDirectory','root','error','2328942gKOrum','fileName','reflux','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','template/template.css','cssCaseName','create','constructor','setTemplate','4171599oojllA','rewriteDestinationPathForEngine','dir','react','ssr','4754772EEAQEp','\x27;\x0a','relative','18791600pVeTtN','\x20}\x20from\x20\x27','api','import\x20\x27./','css','test','2911476zXxuKR','client','className','import\x20{\x20','features','import\x20\x27','lib','.tests.js','theme','withValue','installNpmPackage','engines','1506MMpBCr','1369119IQJHbY','resourceName','maka\x20g:comp\x20todos/todos-item','/imports/ui/','component','string','comp','tsx','.css','fsi','true','imports'];a98c=function(){return s;};return a98c();}import{Log}from'../tools/log/log.class.js';const aliases=[a98p(0xbe)];Generator[a98p(0x9a)]({'name':a98p(0xbc),'aliases':aliases,'usage':a98p(0x97),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':'baseDir','values':['hooks','components',a98p(0x7d),'layouts']}],'examples':[a98p(0xba)]},async function(a,b){const q=a98p;try{const c=this[q(0x7a)][q(0x91)](),d=b['baseDir']?q(0xbb)+b[q(0x84)]:'/imports/ui/components',f=this[q(0x7a)][q(0x81)]({'pathParts':[d,b[q(0x9f)],paramCase(b[q(0xb9)]),paramCase(b[q(0xb9)])]}),g=await this['fsi']['getProjectConfig']();this[q(0x7a)][q(0xb4)](g,async()=>{const r=q;typeof g[r(0x8a)]['test']===r(0xbd)&&(g[r(0x8a)]['test']=g[r(0x8a)][r(0xaa)]===r(0x7b)?!![]:![],this[r(0x7a)]['setTemplate'](r(0xaa),g[r(0x8a)][r(0xaa)]));typeof g['template']['css']===r(0xbd)&&(g[r(0x8a)][r(0xa9)]=g['template']['css']===r(0x7b)?!![]:![],this[r(0x7a)][r(0x9c)](r(0xa9),g[r(0x8a)][r(0xa9)]));typeof g[r(0x8a)]['js']===r(0xbd)&&(g[r(0x8a)]['js']=g['template']['js']===r(0x7b)?!![]:![],this[r(0x7a)]['setTemplate']('js',g[r(0x8a)]['js']));!g[r(0xaf)]&&(g['features']={});!b[r(0x92)]&&!this[r(0x7a)][r(0x7f)](r(0x8e))&&(Log[r(0x85)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[r(0x7a)][r(0xb5)](r(0x8e),{'cwd':c}));if(!b[r(0x92)]&&!this[r(0x7a)]['checkNpmPackage'](r(0xa0))){Log[r(0x93)](r(0x80));return;}const h={'name':pascalCase(b[r(0xb9)]),'myPath':a98e[r(0xa4)](this[r(0x7a)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[r(0xb9)]),'className':pascalCase(b[r(0xb9)]),'camelCaseName':camelCase(b[r(0xb9)]),'fileName':paramCase(b[r(0xb9)]),'graphql':g['engines']['graphql'],'features':g['features'],'client':g['engines']['client'],'api':g['engines'][r(0xa7)],'ssr':g[r(0xb6)][r(0xa1)],'test':g[r(0xb6)][r(0xaa)],'theme':g['engines'][r(0xb3)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0xaf)]['withTranslations']};this['fsi'][r(0x8a)]({'srcPath':'component/component.js','destPath':f+r(0x8f),'context':h,'framework':'react','config':g});g[r(0xb6)][r(0xaa)]!==r(0x82)&&this['fsi'][r(0x8a)]({'srcPath':r(0x89),'destPath':f+r(0xb2),'context':h,'framework':r(0xa0),'config':g});g[r(0x8a)][r(0xa9)]&&(this[r(0x7a)][r(0x8a)]({'srcPath':r(0x98),'destPath':f+r(0x79),'context':Object[r(0x8c)]({},h,{'className':paramCase(b[r(0xb9)])}),'config':g}),this[r(0x7a)][r(0x7e)]({'filePath':f+'.'+g[r(0xb6)]['js'],'content':r(0xa8)+h[r(0x99)]+'.'+g['engines'][r(0xa9)]+'\x27;'}));const i=b[r(0x9f)]?'/'+b[r(0x9f)]+'/':'/',j=''+d+i+h[r(0x95)]+'/'+h['fileName'];let k;if(g['engines'][r(0xa1)]===r(0x7b)){const l=this[r(0x7a)][r(0x81)]({'pathParts':[r(0x7c),r(0x86),r(0xb1),r(0x83)]});k=this[r(0x7a)][r(0x9e)]({'pathParts':[l],'config':g});}else{const m=this[r(0x7a)][r(0x81)]({'pathParts':[r(0x7c),r(0x86),r(0xac),r(0x83)]});k=this['fsi'][r(0x9e)]({'pathParts':[m],'config':g});}g[r(0xb6)][r(0xac)]==='react'||g['engines'][r(0xac)]===r(0x96)?(g[r(0xb6)]['js']===r(0x78)?this[r(0x7a)][r(0x7e)]({'filePath':k,'content':r(0xae)+h[r(0xad)]+r(0xa6)+j+r(0xa3)}):this[r(0x7a)][r(0x7e)]({'filePath':k,'content':'import\x20{\x20'+h[r(0xad)]+r(0xa6)+j+'.'+g[r(0xb6)]['js']+r(0xa3)}),this[r(0x7a)][r(0x8b)]({'filePath':k,'content':'export\x20{\x20'+h[r(0xad)]+'\x20};\x0a'})):this[r(0x7a)][r(0x8b)]({'filePath':k,'content':r(0xb0)+j+'.'+g[r(0xb6)]['js']+r(0xa3)});});}catch(h){Log[q(0x93)](h);}});
1
+ const a98p=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x1bb))/0x1+-parseInt(n(0x1ac))/0x2*(parseInt(n(0x1ad))/0x3)+parseInt(n(0x1da))/0x4+parseInt(n(0x1ef))/0x5*(-parseInt(n(0x1c0))/0x6)+-parseInt(n(0x1dc))/0x7*(-parseInt(n(0x1cb))/0x8)+-parseInt(n(0x1a9))/0x9*(-parseInt(n(0x1b3))/0xa)+-parseInt(n(0x1e8))/0xb*(-parseInt(n(0x1b7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x48659));const a98b=(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;};}()),a98a=a98b(this,function(){const o=a98d;return a98a[o(0x1ca)]()['search'](o(0x1af))['toString']()[o(0x1aa)](a98a)[o(0x1c5)](o(0x1af));});a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a98c(){const s=['engines','component','reflux','42yJyUAW','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','dir','\x20}\x20from\x20\x27','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','test/test.js','none','/imports/ui/','test','toString','8aLuyNP','layouts','injectAtEndOfFile','injectAtBeginningOfFile','fsi','withValue','tsx','findAppDirectory','import\x20{\x20','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','templates.js','resourceName','import\x20\x27./','.css','setTemplate','312400IWzuZq','startup','2514337dTnhjL','pathFromApp','\x27;\x0a','maka\x20g:comp\x20todos/todos-item','baseDir','features','hooks','components','string','.js','fileName','true','5325639LxmiSN','.tests.js','cssCaseName','root','getProjectConfig','lib','error','261875GwMVAW','css','relative','ssr','className','imports','react','117cNOwFq','constructor','component/component.js','404QsTvOi','3999tRPWzK','rewriteDestinationPathForEngine','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','client','template/template.css','216020SvVoRU','comp','template','export\x20{\x20','12iTADsm','ramda','theme','create','269838YiDgdr','\x20};\x0a'];a98c=function(){return s;};return a98c();}function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a98d(a,b);}const aliases=[a98p(0x1b4)];Generator[a98p(0x1ba)]({'name':a98p(0x1be),'aliases':aliases,'usage':a98p(0x1c1),'shortDesc':a98p(0x1b0),'validOpts':[{'name':'baseDir','values':[a98p(0x1e2),a98p(0x1e3),'pages',a98p(0x1cc)]}],'examples':[a98p(0x1df)]},async function(a,b){const q=a98p;try{const c=this['fsi'][q(0x1d2)](),d=b['baseDir']?q(0x1c8)+b[q(0x1e0)]:'/imports/ui/components',f=this['fsi'][q(0x1dd)]({'pathParts':[d,b[q(0x1c2)],paramCase(b['resourceName']),paramCase(b[q(0x1d6)])]}),g=await this[q(0x1cf)][q(0x1ec)]();this[q(0x1cf)][q(0x1d0)](g,async()=>{const r=q;typeof g[r(0x1b5)][r(0x1c9)]===r(0x1e4)&&(g[r(0x1b5)]['test']=g[r(0x1b5)]['test']===r(0x1e7)?!![]:![],this[r(0x1cf)][r(0x1d9)]('test',g[r(0x1b5)][r(0x1c9)]));typeof g[r(0x1b5)]['css']==='string'&&(g[r(0x1b5)][r(0x1f0)]=g['template'][r(0x1f0)]==='true'?!![]:![],this[r(0x1cf)][r(0x1d9)](r(0x1f0),g[r(0x1b5)][r(0x1f0)]));typeof g[r(0x1b5)]['js']===r(0x1e4)&&(g[r(0x1b5)]['js']=g['template']['js']===r(0x1e7)?!![]:![],this[r(0x1cf)][r(0x1d9)]('js',g[r(0x1b5)]['js']));!g[r(0x1e1)]&&(g[r(0x1e1)]={});!b['root']&&!this['fsi']['checkNpmPackage'](r(0x1b8))&&(Log['warn'](r(0x1d4)),await this['fsi']['installNpmPackage'](r(0x1b8),{'cwd':c}));if(!b[r(0x1eb)]&&!this[r(0x1cf)]['checkNpmPackage'](r(0x1a8))){Log[r(0x1ee)](r(0x1c4));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a98e[r(0x1f1)](this['fsi']['pathFromProject']({}),f),'cssCaseName':paramCase(b[r(0x1d6)]),'className':pascalCase(b[r(0x1d6)]),'camelCaseName':camelCase(b[r(0x1d6)]),'fileName':paramCase(b['resourceName']),'graphql':g[r(0x1bd)]['graphql'],'features':g[r(0x1e1)],'client':g['engines'][r(0x1b1)],'api':g[r(0x1bd)]['api'],'ssr':g[r(0x1bd)][r(0x1a5)],'test':g['engines'][r(0x1c9)],'theme':g['engines'][r(0x1b9)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0x1e1)]['withTranslations']};this['fsi'][r(0x1b5)]({'srcPath':r(0x1ab),'destPath':f+r(0x1e5),'context':h,'framework':r(0x1a8),'config':g});g[r(0x1bd)]['test']!==r(0x1c7)&&this[r(0x1cf)][r(0x1b5)]({'srcPath':r(0x1c6),'destPath':f+r(0x1e9),'context':h,'framework':r(0x1a8),'config':g});g[r(0x1b5)][r(0x1f0)]&&(this['fsi']['template']({'srcPath':r(0x1b2),'destPath':f+r(0x1d8),'context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[r(0x1cf)][r(0x1ce)]({'filePath':f+'.'+g[r(0x1bd)]['js'],'content':r(0x1d7)+h[r(0x1ea)]+'.'+g[r(0x1bd)][r(0x1f0)]+'\x27;'}));const i=b[r(0x1c2)]?'/'+b[r(0x1c2)]+'/':'/',j=''+d+i+h[r(0x1e6)]+'/'+h[r(0x1e6)];let k;if(g[r(0x1bd)][r(0x1a5)]===r(0x1e7)){const l=this['fsi'][r(0x1dd)]({'pathParts':[r(0x1a7),r(0x1db),r(0x1ed),r(0x1d5)]});k=this[r(0x1cf)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this['fsi'][r(0x1dd)]({'pathParts':[r(0x1a7),'startup',r(0x1b1),'templates.js']});k=this[r(0x1cf)][r(0x1ae)]({'pathParts':[m],'config':g});}g[r(0x1bd)][r(0x1b1)]===r(0x1a8)||g[r(0x1bd)]['client']===r(0x1bf)?(g['engines']['js']===r(0x1d1)?this[r(0x1cf)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[r(0x1a6)]+'\x20}\x20from\x20\x27'+j+r(0x1de)}):this[r(0x1cf)]['injectAtBeginningOfFile']({'filePath':k,'content':r(0x1d3)+h[r(0x1a6)]+r(0x1c3)+j+'.'+g[r(0x1bd)]['js']+r(0x1de)}),this[r(0x1cf)][r(0x1cd)]({'filePath':k,'content':r(0x1b6)+h[r(0x1a6)]+r(0x1bc)})):this[r(0x1cf)][r(0x1cd)]({'filePath':k,'content':'import\x20\x27'+j+'.'+g[r(0x1bd)]['js']+r(0x1de)});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xd1;let f=c[d];return f;},a99d(a,b);}const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=-parseInt(h(0xeb))/0x1*(-parseInt(h(0xda))/0x2)+-parseInt(h(0xe5))/0x3*(parseInt(h(0xd7))/0x4)+parseInt(h(0xe0))/0x5*(parseInt(h(0xe8))/0x6)+parseInt(h(0xd6))/0x7*(parseInt(h(0xe6))/0x8)+-parseInt(h(0xe1))/0x9*(parseInt(h(0xef))/0xa)+-parseInt(h(0xe2))/0xb+-parseInt(h(0xe9))/0xc*(-parseInt(h(0xd3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x9580e));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0xe4)]()[j(0xd9)](j(0xd1))[j(0xe4)]()['constructor'](a99a)[j(0xd9)]('(((.+)+)+)+$');});a99a();function a99c(){const n=['10GfqhXS','apply','template','pathFromProject','(((.+)+)+)+$','maka\x20g:config\x20production','2254317qhOMzu','appName','fsi','7FoJqao','34288PRhJeN','ubuntu','search','142mTmWdY','getProjectConfig','development','dev','isDocker','config/settings.json','5YYDIbp','7929918YdTesh','11731478VZeWLN','settings.json','toString','405EnRHYl','7702648vhJTYI','Generate\x20configuration\x20settings.','5849538CWhpDF','108yUDOdY','create','3081CEGeKN','config/process.env','resourceName','config'];a99c=function(){return n;};return a99c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0xea)]({'name':'config','usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a99k(0xe7),'validOpts':[a99k(0xde)],'examples':[a99k(0xd2)]},function(a,b){const l=a99k,c=this[l(0xd5)][l(0xdb)]();this[l(0xd5)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0xd4)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0xed)]),'camelCase':camelCase(b['resourceName']),'userName':m(0xd8),'isDocker':b['isDocker']};let e=b[m(0xed)];if(e===m(0xdd))e=m(0xdc);else e==='prod'&&(e='production');const f=this[m(0xd5)]['pathFromProject']({'pathParts':['config',e,m(0xe3)]});this[m(0xd5)]['template']({'srcPath':m(0xdf),'destPath':f,'context':d,'config':c});if(!b[m(0xde)]){const g=this[m(0xd5)][m(0xf2)]({'pathParts':[m(0xee),e,'process.env']});this[m(0xd5)][m(0xf1)]({'srcPath':m(0xec),'destPath':g,'context':d,'config':c});}});});
1
+ function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a99d(a,b);}function a99c(){const n=['getProjectConfig','process.env','632vLHJno','179884YDYAQL','41260ivtmfx','Generate\x20configuration\x20settings.','isDocker','resourceName','constructor','config','fsi','3868296REkUKn','33xyqjdq','978844MYdGkB','dev','1872wLvMvx','71113gpcNEu','config/process.env','settings.json','pathFromProject','45JsdctW','(((.+)+)+)+$','development','config/settings.json','prod','5iwqbmJ','1750638kbnwTl','search','appName','production','apply','toString','withValue','236689xSwxIg','maka\x20{generate,\x20g}:{config}\x20<name>','create'];a99c=function(){return n;};return a99c();}const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x1c3))/0x1+parseInt(h(0x1af))/0x2+-parseInt(h(0x1b6))/0x3*(parseInt(h(0x1c9))/0x4)+parseInt(h(0x1bb))/0x5*(-parseInt(h(0x1bc))/0x6)+parseInt(h(0x1b2))/0x7*(parseInt(h(0x1c8))/0x8)+parseInt(h(0x1b1))/0x9*(parseInt(h(0x1ca))/0xa)+-parseInt(h(0x1ae))/0xb*(parseInt(h(0x1ad))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x6eb5c));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x1c1)]()[j(0x1bd)](j(0x1b7))[j(0x1c1)]()[j(0x1aa)](a99a)[j(0x1bd)](j(0x1b7));});a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0x1c5)]({'name':'config','usage':a99k(0x1c4),'shortDesc':a99k(0x1cb),'validOpts':[a99k(0x1cc)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a99k,c=this[l(0x1ac)][l(0x1c6)]();this['fsi'][l(0x1c2)](c,async()=>{const m=l,d={'app':c[m(0x1be)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x1cd)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x1cd)]),'userName':'ubuntu','isDocker':b[m(0x1cc)]};let e=b[m(0x1cd)];if(e===m(0x1b0))e=m(0x1b8);else e===m(0x1ba)&&(e=m(0x1bf));const f=this[m(0x1ac)][m(0x1b5)]({'pathParts':[m(0x1ab),e,m(0x1b4)]});this[m(0x1ac)]['template']({'srcPath':m(0x1b9),'destPath':f,'context':d,'config':c});if(!b[m(0x1cc)]){const g=this[m(0x1ac)][m(0x1b5)]({'pathParts':[m(0x1ab),e,m(0x1c7)]});this['fsi']['template']({'srcPath':m(0x1b3),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a100m=a100d;function a100c(){const p=['dbc/conn.js','error','dir','toString','index.','53236cQsfep','(((.+)+)+)+$','better-sqlite3','constructor','installNpmPackage','maka\x20g:dbc\x20geoserver\x20--type=pgsql','injectAtEndOfFile','conn.','sqlite','config.','warn','-dbc.','register-','30443dTcKYf','pgsql','resourceName','server','mssql','306932cHonyR','imports','pathFromApp','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','create','1286847YWrSoK','engines','10aJTZLp','maka\x20g:dbc\x20todos\x20--type=sqlite','import\x20\x27./register-','tsx','9722VpgPrH','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','startup','checkNpmPackage','816260IbfwUM','template','dbc','fsi','1209324rQJSbA','maka\x20g:dbc\x20azure\x20--type=mssql','27VuEHYZ','search','dbc/config.js','type','apply','withValue','getProjectConfig','416uRyjfW'];a100c=function(){return p;};return a100c();}(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x19f))/0x1+parseInt(j(0x1aa))/0x2*(parseInt(j(0x1b4))/0x3)+-parseInt(j(0x1c1))/0x4+parseInt(j(0x1ae))/0x5+-parseInt(j(0x1b2))/0x6+parseInt(j(0x1ce))/0x7*(-parseInt(j(0x1bb))/0x8)+parseInt(j(0x1a4))/0x9*(parseInt(j(0x1a6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x34b61));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x1bf)]()[l(0x1b5)](l(0x1c2))['toString']()[l(0x1c4)](a100a)[l(0x1b5)](l(0x1c2));});a100a();import{camelCase,paramCase,pascalCase}from'change-case';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x19e;let f=c[d];return f;},a100d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100m(0x1a3)]({'name':'dbc','usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a100m(0x1ab),'validOpts':[a100m(0x1be)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100m(0x1b7),'values':['pgsql','mssql',a100m(0x1c9)]}],'examples':[a100m(0x1c6),a100m(0x1b3),a100m(0x1a7)]},async function(a,b){const n=a100m;try{const c=await this[n(0x1b1)][n(0x1ba)](),d=this[n(0x1b1)][n(0x1a1)]({}),f=paramCase(b[n(0x1d0)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[n(0x1d0)]),'camelCase':camelCase(b[n(0x1d0)]),'type':b['type'],'engine':c[n(0x1a5)]['js'],'noRename':!![]};this[n(0x1b1)][n(0x1b9)](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0x1a9)&&(h='ts');b['type']===o(0x1cf)&&!this[o(0x1b1)][o(0x1ad)]('pg')&&(Log['warn']('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[o(0x1b1)][o(0x1c5)]('pg',{'cwd':d}));b[o(0x1b7)]===o(0x19e)&&!this[o(0x1b1)][o(0x1ad)]('mssql')&&(Log[o(0x1cb)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x1b1)][o(0x1c5)](o(0x19e),{'cwd':d}));b[o(0x1b7)]===o(0x1c9)&&!this[o(0x1b1)][o(0x1ad)](o(0x1c3))&&(Log['warn'](o(0x1a2)),await this[o(0x1b1)][o(0x1c5)](o(0x1c3),{'cwd':d}));this['fsi'][o(0x1af)]({'srcPath':o(0x1b6),'destPath':this[o(0x1b1)][o(0x1a1)]({'pathParts':['imports','startup',o(0x1d1),o(0x1b0),b['dir'],f,o(0x1ca)+h]}),'context':g,'config':c}),this[o(0x1b1)][o(0x1af)]({'srcPath':o(0x1bc),'destPath':this[o(0x1b1)]['pathFromApp']({'pathParts':[o(0x1a0),'startup',o(0x1d1),o(0x1b0),b[o(0x1be)],f,o(0x1c8)+h]}),'context':g,'config':c}),this[o(0x1b1)][o(0x1af)]({'srcPath':'dbc/register-dbc.js','destPath':this[o(0x1b1)]['pathFromApp']({'pathParts':[o(0x1a0),o(0x1ac),o(0x1d1),o(0x1cd)+f+o(0x1cc)+h]}),'context':g,'config':c});const i=this['fsi']['pathFromApp']({'pathParts':[o(0x1a0),o(0x1ac),o(0x1d1),o(0x1c0)+c[o(0x1a5)]['js']]});this[o(0x1b1)][o(0x1c7)]({'filePath':i,'content':o(0x1a8)+f+'-dbc\x27;'});});}catch(h){Log[n(0x1bd)](h);}});
1
+ const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x188))/0x1+parseInt(j(0x19c))/0x2+-parseInt(j(0x196))/0x3*(parseInt(j(0x184))/0x4)+-parseInt(j(0x198))/0x5+-parseInt(j(0x180))/0x6+parseInt(j(0x18b))/0x7*(parseInt(j(0x18f))/0x8)+-parseInt(j(0x19d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x80706));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x193)]()[l(0x191)](l(0x19f))[l(0x193)]()[l(0x1a3)](a100a)[l(0x191)]('(((.+)+)+)+$');});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x17e;let f=c[d];return f;},a100d(a,b);}function a100c(){const p=['dir','77609eoAciW','getProjectConfig','pgsql','apply','632rRhEft','register-','search','resourceName','toString','fsi','template','129LknAnl','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','4459875AXKFAi','engines','-dbc\x27;','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','1535308XPErRZ','4856832PYyNog','imports','(((.+)+)+)+$','installNpmPackage','dbc/conn.js','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','constructor','startup','maka\x20g:dbc\x20geoserver\x20--type=pgsql','warn','type','index.','pathFromApp','server','create','sqlite','dbc/register-dbc.js','withValue','-dbc.','2717136bKeoWK','better-sqlite3','dbc','maka\x20g:dbc\x20azure\x20--type=mssql','23736YQHYhN','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','mssql','error','1022200mpOslN','checkNpmPackage'];a100c=function(){return p;};return a100c();}a100a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100m(0x1ab)]({'name':a100m(0x182),'usage':a100m(0x197),'shortDesc':a100m(0x185),'validOpts':['dir'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100m(0x1a7),'values':[a100m(0x18d),a100m(0x186),'sqlite']}],'examples':[a100m(0x1a5),a100m(0x183),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const n=a100m;try{const c=await this[n(0x194)][n(0x18c)](),d=this[n(0x194)][n(0x1a9)]({}),f=paramCase(b[n(0x192)]),g={'name':pascalCase(b[n(0x192)]),'fileName':paramCase(b[n(0x192)]),'camelCase':camelCase(b[n(0x192)]),'type':b['type'],'engine':c[n(0x199)]['js'],'noRename':!![]};this['fsi'][n(0x17e)](c,async()=>{const o=n;let h='js';c['engines']['js']==='tsx'&&(h='ts');b[o(0x1a7)]===o(0x18d)&&!this[o(0x194)][o(0x189)]('pg')&&(Log[o(0x1a6)](o(0x1a2)),await this[o(0x194)]['installNpmPackage']('pg',{'cwd':d}));b[o(0x1a7)]===o(0x186)&&!this[o(0x194)][o(0x189)]('mssql')&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x194)][o(0x1a0)](o(0x186),{'cwd':d}));b[o(0x1a7)]===o(0x1ac)&&!this['fsi']['checkNpmPackage']('better-sqlite3')&&(Log[o(0x1a6)](o(0x19b)),await this[o(0x194)][o(0x1a0)](o(0x181),{'cwd':d}));this[o(0x194)][o(0x195)]({'srcPath':'dbc/config.js','destPath':this[o(0x194)]['pathFromApp']({'pathParts':['imports',o(0x1a4),'server',o(0x182),b[o(0x18a)],f,'config.'+h]}),'context':g,'config':c}),this[o(0x194)]['template']({'srcPath':o(0x1a1),'destPath':this[o(0x194)][o(0x1a9)]({'pathParts':[o(0x19e),o(0x1a4),'server',o(0x182),b[o(0x18a)],f,'conn.'+h]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':o(0x1ad),'destPath':this[o(0x194)][o(0x1a9)]({'pathParts':[o(0x19e),o(0x1a4),o(0x1aa),o(0x190)+f+o(0x17f)+h]}),'context':g,'config':c});const i=this[o(0x194)]['pathFromApp']({'pathParts':[o(0x19e),o(0x1a4),o(0x1aa),o(0x1a8)+c[o(0x199)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':i,'content':'import\x20\x27./register-'+f+o(0x19a)});});}catch(h){Log[n(0x187)](h);}});
@@ -1 +1 @@
1
- const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0xc7))/0x1+parseInt(f(0xcc))/0x2*(parseInt(f(0xca))/0x3)+-parseInt(f(0xde))/0x4+parseInt(f(0xdd))/0x5*(-parseInt(f(0xdc))/0x6)+-parseInt(f(0xc9))/0x7+-parseInt(f(0xd4))/0x8+parseInt(f(0xd3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x5ea0f));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0xdb)]()[h(0xd6)]('(((.+)+)+)+$')[h(0xdb)]()['constructor'](a101a)[h(0xd6)](h(0xd8));});a101a();function a101c(){const l=['search','template','(((.+)+)+)+$','cert','isFile','toString','12UZxhJO','296125QIEmEv','353188tnJeJv','apply','maka\x20{generate,\x20g}:dockerfile','Generate\x20an\x20updated\x20dockerfile','Dockerfile','appName','664905sPWJWl','getProjectConfig','2780337AjFePW','315JQKbdO','app.tar.gz','10666qJGokN','dockerfile','findProjectDirectory','app','getGlobalConfig','fsi','maka\x20g:dockerfile','11451501ajiqHX','1407296MduQaV','join'];a101c=function(){return l;};return a101c();}function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xc6;let f=c[d];return f;},a101d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';Generator['create']({'name':a101i(0xcd),'usage':a101i(0xe0),'shortDesc':a101i(0xe1),'validOpts':[],'noResource':!![],'examples':[a101i(0xd2)]},async function(){const j=a101i;try{const a=await this['fsi'][j(0xc8)](),b=await this[j(0xd1)][j(0xd0)](),c=this['fsi'][j(0xce)]();this[j(0xd1)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0xc6)],'config':a,'appPath':a101e[k(0xd5)](c,k(0xcf)),'bundlePath':a101e[k(0xd5)](c,'build',k(0xcb)),'useCert':this[k(0xd1)][k(0xda)](b[k(0xd9)])};this[k(0xd1)][k(0xd7)]({'srcPath':'docker/Dockerfile','destPath':a101e[k(0xd5)](c,k(0xe2)),'framework':'service','context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ const a101i=a101d;function a101c(){const l=['dockerfile','search','getProjectConfig','getGlobalConfig','301DnhYUl','126873cWtvES','7496960NPZMTG','maka\x20g:dockerfile','app','fsi','toString','280639qTnLLl','error','create','apply','join','(((.+)+)+)+$','Generate\x20an\x20updated\x20dockerfile','template','10cpVOll','1407426hzbxYN','withValue','appName','38580TCWzBD','35SxnoLH','maka\x20{generate,\x20g}:dockerfile','12562HqJSZK','97304JUmOOz','constructor','1210pzQzYZ','findProjectDirectory','isFile','build','3172896uCtLLk','app.tar.gz'];a101c=function(){return l;};return a101c();}(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x152))/0x1*(-parseInt(f(0x137))/0x2)+parseInt(f(0x145))/0x3+-parseInt(f(0x14d))/0x4+-parseInt(f(0x13c))/0x5*(parseInt(f(0x138))/0x6)+-parseInt(f(0x14b))/0x7*(parseInt(f(0x13f))/0x8)+parseInt(f(0x14c))/0x9*(parseInt(f(0x141))/0xa)+parseInt(f(0x13e))/0xb*(parseInt(f(0x13b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xf24ca));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x151)]()[h(0x148)](h(0x134))[h(0x151)]()[h(0x140)](a101a)[h(0x148)](h(0x134));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x133;let f=c[d];return f;},a101d(a,b);}Generator[a101i(0x154)]({'name':a101i(0x147),'usage':a101i(0x13d),'shortDesc':a101i(0x135),'validOpts':[],'noResource':!![],'examples':[a101i(0x14e)]},async function(){const j=a101i;try{const a=await this[j(0x150)][j(0x149)](),b=await this[j(0x150)][j(0x14a)](),c=this['fsi'][j(0x142)]();this['fsi'][j(0x139)](a,async()=>{const k=j,d={'app':b[k(0x13a)],'config':a,'appPath':a101e['join'](c,k(0x14f)),'bundlePath':a101e[k(0x133)](c,k(0x144),k(0x146)),'useCert':this[k(0x150)][k(0x143)](b['cert'])};this[k(0x150)][k(0x136)]({'srcPath':'docker/Dockerfile','destPath':a101e['join'](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x153)](d);}});
@@ -1 +1 @@
1
- const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0xb6))/0x1*(parseInt(o(0xe5))/0x2)+parseInt(o(0xd2))/0x3+-parseInt(o(0xaa))/0x4*(parseInt(o(0xd1))/0x5)+-parseInt(o(0xc6))/0x6*(-parseInt(o(0xda))/0x7)+-parseInt(o(0xe3))/0x8*(parseInt(o(0xb5))/0x9)+-parseInt(o(0xc5))/0xa+-parseInt(o(0xab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xaf63e));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0xa1)]()[q(0xcf)](q(0xdd))[q(0xa1)]()[q(0xb3)](a102a)[q(0xcf)](q(0xdd));});a102a();import a102e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x97;let f=c[d];return f;},a102d(a,b);}import{UsageError}from'../error.js';function a102c(){const u=['.js','3829340ZYhRRS','2772714hNgQmP','components','fileName','theme','getProjectConfig','apollo','injectAtEndOfFile','/imports/ui/','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','search','\x27;\x0a','15CnEKbO','3483192VPXGVt','imports','import\x20{\x20','template/template.css','@apollo/client\x20isomorphic-fetch','features','graphql','pages','21BkqPxh','baseDir','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','(((.+)+)+)+$','className','Creating\x20','\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','ssr','resourceName','16eZZKMg','engines','465774unmaUV','@apollo/client','true','hook/hook.js','.app-tests.js','export\x20{\x20','template','apply','rewriteDestinationPathForEngine','.css','templates.js','dir','\x20hook...','toString','injectAtBeginningOfFile','maka\x20g:hook\x20cool-hook','pathFromProject','import\x20\x27','\x20}\x20from\x20\x27','client','startup','withTranslations','845064FvkoTG','4856764jULkKe','pathFromApp','cssCaseName','css','test/test.js','checkNpmPackage','\x20};\x0a','tsx','constructor','installNpmPackage','4812426QgdNtu','3DPeuqo','layouts','error','fsi','assign','warn','withValue','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','react','setTemplate','lib','none','string','test'];a102c=function(){return u;};return a102c();}Generator['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a102r(0xce),'shortDesc':a102r(0xbd),'validOpts':[{'name':a102r(0xdb),'values':['hooks',a102r(0xc7),a102r(0xd9),a102r(0xb7)]}],'examples':[a102r(0xa3)],'description':a102r(0xe0)},async function(a,b){const s=a102r;Log['notice'](s(0xdf)+b['resourceName']+s(0xa0));try{const c=this[s(0xb9)][s(0xb0)](s(0xbe));if(!c){Log['error'](s(0xdc));throw new UsageError();}const d=this[s(0xb9)]['pathFromApp'](b),f=b['baseDir']?s(0xcd)+b[s(0xdb)]:'/imports/ui/hooks',g=this[s(0xb9)][s(0xac)]({'pathParts':[f,b['dir'],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),h=await this[s(0xb9)][s(0xca)]();this['fsi'][s(0xbc)](h,async()=>{const t=s;typeof h['template'][t(0xae)]===t(0xc2)&&(h['template'][t(0xae)]=h[t(0x9a)]['css']===t(0xe7)?!![]:![],this[t(0xb9)][t(0xbf)](t(0xae),h[t(0x9a)][t(0xae)]));h[t(0xe4)][t(0xd8)]===t(0xcb)&&!this[t(0xb9)][t(0xb0)](t(0xe6))&&(Log[t(0xbb)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0xb9)][t(0xb4)](t(0xd6),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xe2)]),'camelCaseName':camelCase(b[t(0xe2)]),'className':pascalCase(b[t(0xe2)]),'name':pascalCase(b[t(0xe2)]),'graphql':h[t(0xe4)]['graphql'],'theme':h[t(0xe4)][t(0xc9)],'features':h[t(0xd7)],'myPath':a102e['relative'](this['fsi'][t(0xa4)]({}),g),'fileName':paramCase(b[t(0xe2)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][t(0xa9)]};this[t(0xb9)][t(0x9a)]({'srcPath':t(0x97),'destPath':g+t(0xc4),'context':i,'config':h,'framework':'react'});h[t(0x9a)][t(0xae)]&&(this[t(0xb9)][t(0x9a)]({'srcPath':t(0xd5),'destPath':g+t(0x9d),'context':Object[t(0xba)]({},i,{'className':i[t(0xad)]}),'config':h}),this[t(0xb9)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0xe4)]['js'],'content':'import\x20\x27./'+i[t(0xc8)]+'.'+h[t(0xe4)][t(0xae)]+'\x27;'}));h[t(0xe4)][t(0xc3)]!==t(0xc1)&&this[t(0xb9)][t(0x9a)]({'srcPath':t(0xaf),'destPath':g+t(0x98),'framework':'react','context':i,'config':h});const j=b[t(0x9f)]?'/'+b[t(0x9f)]+'/':'/',k=''+f+j+i[t(0xc8)]+'/'+i[t(0xc8)];let l;if(h[t(0xe4)][t(0xe1)]==='true'){const m=this['fsi'][t(0xac)]({'pathParts':[t(0xd3),t(0xa8),t(0xc0),t(0x9e)]});l=this[t(0xb9)][t(0x9c)]({'pathParts':[m],'config':h});}else{const n=this[t(0xb9)]['pathFromApp']({'pathParts':[t(0xd3),t(0xa8),'client',t(0x9e)]});l=this[t(0xb9)][t(0x9c)]({'pathParts':[n],'config':h});}h[t(0xe4)][t(0xa7)]===t(0xbe)?(h[t(0xe4)]['js']===t(0xb2)?this[t(0xb9)][t(0xa2)]({'filePath':l,'content':t(0xd4)+i[t(0xde)]+t(0xa6)+k+t(0xd0)}):this[t(0xb9)][t(0xa2)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xde)]+t(0xa6)+k+'.'+h[t(0xe4)]['js']+t(0xd0)}),this['fsi'][t(0xcc)]({'filePath':l,'content':t(0x99)+i[t(0xde)]+t(0xb1)})):this['fsi'][t(0xcc)]({'filePath':l,'content':t(0xa5)+k+'.'+h['engines']['js']+t(0xd0)});});}catch(i){Log[s(0xb8)](i);}});
1
+ const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0x1cc))/0x1+-parseInt(o(0x1cb))/0x2+-parseInt(o(0x1bb))/0x3+parseInt(o(0x1db))/0x4*(-parseInt(o(0x1fd))/0x5)+-parseInt(o(0x1d2))/0x6*(parseInt(o(0x1df))/0x7)+-parseInt(o(0x1b9))/0x8*(parseInt(o(0x1f3))/0x9)+parseInt(o(0x200))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xe0072));function a102c(){const u=['withValue','assign','graphql','withTranslations','\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','templates.js','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','react','imports','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','css','maka\x20g:hook\x20cool-hook','tsx','components','pathFromApp','notice','import\x20\x27','hook/hook.js','3881916PlESTM','hook','lib','injectAtEndOfFile','.app-tests.js','apollo','ssr','installNpmPackage','export\x20{\x20','getProjectConfig','69485PWBTYR','fileName','startup','62643600NrZZGb','.css','theme','baseDir','@apollo/client\x20isomorphic-fetch','true','error','32bplPsa','rewriteDestinationPathForEngine','4747602VTYNKR','pathFromProject','features','warn','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','relative','dir','test/test.js','client','string','/imports/ui/','\x27;\x0a','pages','engines','className','2102552ReNuVP','1107843gCSsBR','(((.+)+)+)+$','.js','resourceName','apply','checkNpmPackage','123960pXUkyo','none','@apollo/client','import\x20{\x20','\x20hook...','template','cssCaseName','fsi','Creating\x20','508SULKFO','\x20}\x20from\x20\x27','template/template.css','injectAtBeginningOfFile','112vCFwVL','hooks'];a102c=function(){return u;};return a102c();}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x1d0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a['toString']()[q(0x1c0)](q(0x1cd))['toString']()['constructor'](a102a)[q(0x1c0)](q(0x1cd));});a102a();function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a102d(a,b);}import a102e 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':a102r(0x1f4),'aliases':['h'],'checkWhere':![],'usage':a102r(0x1e7),'shortDesc':a102r(0x1ea),'validOpts':[{'name':a102r(0x203),'values':[a102r(0x1e0),a102r(0x1ee),a102r(0x1c8),'layouts']}],'examples':[a102r(0x1ec)],'description':a102r(0x1e5)},async function(a,b){const s=a102r;Log[s(0x1f0)](s(0x1da)+b[s(0x1cf)]+s(0x1d6));try{const c=this['fsi'][s(0x1d1)](s(0x1e8));if(!c){Log[s(0x1b8)](s(0x1bf));throw new UsageError();}const d=this[s(0x1d9)][s(0x1ef)](b),f=b[s(0x203)]?s(0x1c6)+b['baseDir']:'/imports/ui/hooks',g=this[s(0x1d9)][s(0x1ef)]({'pathParts':[f,b[s(0x1c2)],paramCase(b[s(0x1cf)]),paramCase(b[s(0x1cf)])]}),h=await this[s(0x1d9)][s(0x1fc)]();this[s(0x1d9)][s(0x1e1)](h,async()=>{const t=s;typeof h[t(0x1d7)][t(0x1eb)]===t(0x1c5)&&(h[t(0x1d7)][t(0x1eb)]=h[t(0x1d7)][t(0x1eb)]===t(0x205)?!![]:![],this[t(0x1d9)]['setTemplate'](t(0x1eb),h['template'][t(0x1eb)]));h[t(0x1c9)][t(0x1e3)]===t(0x1f8)&&!this[t(0x1d9)][t(0x1d1)](t(0x1d4))&&(Log[t(0x1be)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x1d9)][t(0x1fa)](t(0x204),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1cf)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x1cf)]),'graphql':h[t(0x1c9)]['graphql'],'theme':h[t(0x1c9)][t(0x202)],'features':h[t(0x1bd)],'myPath':a102e[t(0x1c1)](this[t(0x1d9)][t(0x1bc)]({}),g),'fileName':paramCase(b[t(0x1cf)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1bd)][t(0x1e4)]};this[t(0x1d9)][t(0x1d7)]({'srcPath':t(0x1f2),'destPath':g+t(0x1ce),'context':i,'config':h,'framework':t(0x1e8)});h['template'][t(0x1eb)]&&(this['fsi'][t(0x1d7)]({'srcPath':t(0x1dd),'destPath':g+t(0x201),'context':Object[t(0x1e2)]({},i,{'className':i[t(0x1d8)]}),'config':h}),this[t(0x1d9)][t(0x1de)]({'filePath':g+'.'+h[t(0x1c9)]['js'],'content':'import\x20\x27./'+i[t(0x1fe)]+'.'+h[t(0x1c9)][t(0x1eb)]+'\x27;'}));h['engines']['test']!==t(0x1d3)&&this[t(0x1d9)][t(0x1d7)]({'srcPath':t(0x1c3),'destPath':g+t(0x1f7),'framework':t(0x1e8),'context':i,'config':h});const j=b[t(0x1c2)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x1fe)]+'/'+i[t(0x1fe)];let l;if(h[t(0x1c9)][t(0x1f9)]==='true'){const m=this[t(0x1d9)][t(0x1ef)]({'pathParts':[t(0x1e9),'startup',t(0x1f5),t(0x1e6)]});l=this[t(0x1d9)][t(0x1ba)]({'pathParts':[m],'config':h});}else{const n=this['fsi']['pathFromApp']({'pathParts':['imports',t(0x1ff),t(0x1c4),t(0x1e6)]});l=this[t(0x1d9)][t(0x1ba)]({'pathParts':[n],'config':h});}h['engines'][t(0x1c4)]===t(0x1e8)?(h[t(0x1c9)]['js']===t(0x1ed)?this[t(0x1d9)][t(0x1de)]({'filePath':l,'content':t(0x1d5)+i[t(0x1ca)]+t(0x1dc)+k+t(0x1c7)}):this[t(0x1d9)][t(0x1de)]({'filePath':l,'content':t(0x1d5)+i[t(0x1ca)]+t(0x1dc)+k+'.'+h['engines']['js']+t(0x1c7)}),this[t(0x1d9)][t(0x1f6)]({'filePath':l,'content':t(0x1fb)+i[t(0x1ca)]+'\x20};\x0a'})):this[t(0x1d9)][t(0x1f6)]({'filePath':l,'content':t(0x1f1)+k+'.'+h[t(0x1c9)]['js']+t(0x1c7)});});}catch(i){Log[s(0x1b8)](i);}});
@@ -1 +1 @@
1
- function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x191;let f=c[d];return f;},a103d(a,b);}const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=parseInt(h(0x1ad))/0x1+-parseInt(h(0x19d))/0x2*(parseInt(h(0x1a8))/0x3)+-parseInt(h(0x1a9))/0x4*(-parseInt(h(0x195))/0x5)+parseInt(h(0x19a))/0x6*(-parseInt(h(0x193))/0x7)+-parseInt(h(0x192))/0x8*(parseInt(h(0x1a7))/0x9)+parseInt(h(0x1a5))/0xa+parseInt(h(0x1a4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x5ecb5));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x19f)]()['search'](j(0x1aa))[j(0x19f)]()['constructor'](a103a)[j(0x199)](j(0x1aa));});function a103c(){const n=['apply','leaflet-map','search','1035282tUGcJF','(blank)','create','154TwpeRa','maka\x20g:k\x20city-map\x20--type=leaflet-map','toString','kit','type','notice','fsi','5400868foqAcs','1283260zPSxqa',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','945549NQmgVp','28371bGnGWZ','1699292pCEtGU','(((.+)+)+)+$','Invalid\x20type\x20','NIE','522484NQVgRm','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','engines','indexOf','8rQmTgu','14xBoWpL','resourceName','5qPtAKO','login'];a103c=function(){return n;};return a103c();}a103a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103k(0x19c)]({'name':a103k(0x1a0),'aliases':['k'],'usage':a103k(0x1af),'shortDesc':a103k(0x1ae),'validOpts':['type'],'examples':['maka\x20g:kit\x20--type=map',a103k(0x19e)]},async function(a,b){const l=a103k;try{const c=this[l(0x1a3)]['getProjectConfig']();this[l(0x1a3)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x194)]),'fileName':paramCase(b[m(0x194)]),'camelCase':camelCase(b[m(0x194)]),'type':b['type'],'engine':c[m(0x1b0)]['js'],'noRename':!![]},f=[m(0x198),'login'];if(f[m(0x191)](d[m(0x1a1)])<0x0){const g=d[m(0x1a1)]?d[m(0x1a1)]:m(0x19b);Log['error'](m(0x1ab)+g+m(0x1a6));return;}b[m(0x1a1)]==='map'&&Log[m(0x1a2)]('NIE'),b[m(0x1a1)]===m(0x196)&&Log[m(0x1a2)](m(0x1ac));});}catch(d){Log['error'](d);}});
1
+ const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=parseInt(h(0xd8))/0x1*(-parseInt(h(0xcf))/0x2)+-parseInt(h(0xe1))/0x3*(parseInt(h(0xd0))/0x4)+-parseInt(h(0xc5))/0x5+parseInt(h(0xd6))/0x6*(-parseInt(h(0xd3))/0x7)+parseInt(h(0xdf))/0x8*(-parseInt(h(0xe2))/0x9)+parseInt(h(0xc8))/0xa+parseInt(h(0xd5))/0xb*(parseInt(h(0xe0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x3f899));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0xd7)]()[j(0xdc)](j(0xde))[j(0xd7)]()[j(0xc6)](a103a)['search'](j(0xde));});a103a();import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xc3;let f=c[d];return f;},a103d(a,b);}function a103c(){const n=['726650NAvAOQ','leaflet-map','notice','type','indexOf','getProjectConfig','resourceName','397770IUckNg','19364soPLfa','error','apply','630049xfEMwL','NIE','11UvnHyr','6CicKwz','toString','1FkvhTV','create','login','fsi','search','maka\x20g:kit\x20--type=map','(((.+)+)+)+$','790808yxmGIx','11391336oNnBaH','45NbbMul','9IBQFCx','Invalid\x20type\x20','withValue','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','kit','1506680YiBHbh','constructor','map'];a103c=function(){return n;};return a103c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103k(0xd9)]({'name':a103k(0xc4),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':a103k(0xc3),'validOpts':[a103k(0xcb)],'examples':[a103k(0xdd),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a103k;try{const c=this[l(0xdb)][l(0xcd)]();this[l(0xdb)][l(0xe4)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xce)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0xce)]),'type':b[m(0xcb)],'engine':c['engines']['js'],'noRename':!![]},f=[m(0xc9),m(0xda)];if(f[m(0xcc)](d[m(0xcb)])<0x0){const g=d[m(0xcb)]?d[m(0xcb)]:'(blank)';Log[m(0xd1)](m(0xe3)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xcb)]===m(0xc7)&&Log[m(0xca)](m(0xd4)),b[m(0xcb)]===m(0xda)&&Log['notice'](m(0xd4));});}catch(d){Log[l(0xd1)](d);}});
@@ -1 +1 @@
1
- function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a104d(a,b);}const a104r=a104d;(function(a,b){const o=a104d,c=a();while(!![]){try{const d=-parseInt(o(0x1f0))/0x1*(-parseInt(o(0x1da))/0x2)+-parseInt(o(0x1e3))/0x3*(-parseInt(o(0x1db))/0x4)+parseInt(o(0x1c8))/0x5+parseInt(o(0x1c2))/0x6+parseInt(o(0x1e2))/0x7+-parseInt(o(0x1ee))/0x8+-parseInt(o(0x1c6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x49119));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0x1ba)]()['search'](q(0x1d1))[q(0x1ba)]()['constructor'](a104a)[q(0x1cf)](q(0x1d1));});a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104c(){const u=['relative','layout','includes','fileName','import\x20\x27','396172kvjNbO','38012LlhAYA','hook/hook.js','none','.js','startup','warn','apply','2528085EQGjIc','147wVKCYr','assign','resourceName','css','true','withHooks','react','setTemplate','fsi','withTranslations','test','36456fGrnta','\x20}\x20from\x20\x27','1kpSHDh','test/test.js','ramda','templates.js','import\x20{\x20','imports','features','withHook','component/component.js','className','export\x20{\x20','toString','maka\x20g:layout\x20mobile/iPhone8','rewriteDestinationPathForEngine','split','\x20};\x0a','.app-tests.js','ssr','engines','1764882yvNMTB','injectAtEndOfFile','injectAtBeginningOfFile','getProjectConfig','13767966PgtXiT','installNpmPackage','2572925RtcFVj','string','template','checkNpmPackage','\x27;\x0a','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','pathFromApp','search','Scaffolding\x20for\x20a\x20React\x20Layout.','(((.+)+)+)+$','api','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','findAppDirectory'];a104c=function(){return u;};return a104c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a104r(0x1d6),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a104r(0x1d0),'validOpts':[],'examples':[a104r(0x1bb),'maka\x20g:l\x20web/safari']},function(a,b){const s=a104r,c='/imports/ui/layouts',d=this[s(0x1eb)][s(0x1d4)](),e=this['fsi']['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[s(0x1e5)]),paramCase(b[s(0x1e5)])]}),f=this['fsi'][s(0x1c5)]();this[s(0x1eb)]['withValue'](f,()=>{const t=s;typeof f['template']['test']==='string'&&(f['template'][t(0x1ed)]=f[t(0x1ca)][t(0x1ed)]===t(0x1e7)?!![]:![],this[t(0x1eb)][t(0x1ea)](t(0x1ed),f[t(0x1ca)][t(0x1ed)]));typeof f[t(0x1ca)][t(0x1e6)]===t(0x1c9)&&(f[t(0x1ca)][t(0x1e6)]=f[t(0x1ca)][t(0x1e6)]===t(0x1e7)?!![]:![],this[t(0x1eb)][t(0x1ea)](t(0x1e6),f['template'][t(0x1e6)]));typeof f[t(0x1ca)]['js']===t(0x1c9)&&(f[t(0x1ca)]['js']=f['template']['js']==='true'?!![]:![],this[t(0x1eb)][t(0x1ea)]('js',f[t(0x1ca)]['js']));!f['features']&&(f[t(0x1f6)]={});const g=b['_']?b['_'][0x0][t(0x1bd)](':')[0x1]:![],h=b['_']&&aliases[t(0x1d7)](g);h&&!this[t(0x1cb)](t(0x1f2))&&(Log[t(0x1e0)](t(0x1cd)),this[t(0x1eb)][t(0x1c7)]('ramda',{'cwd':d}));if(h&&!this[t(0x1cb)](t(0x1e9))){Log[t(0x1e0)](t(0x1d3));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a104e[t(0x1d5)](this[t(0x1eb)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0x1e5)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x1e5)]),'graphql':f[t(0x1c1)]['graphql'],'features':f[t(0x1f6)],'client':f[t(0x1c1)]['client'],'api':f[t(0x1c1)][t(0x1d2)],'ssr':f[t(0x1c1)]['ssr'],'test':f[t(0x1c1)][t(0x1ed)],'theme':f['engines']['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1f6)][t(0x1ec)]};f[t(0x1f6)]?.[t(0x1e8)]||b[t(0x1f7)]?this[t(0x1eb)][t(0x1ca)]({'srcPath':t(0x1dc),'destPath':e+t(0x1de),'framework':t(0x1e9),'context':i,'config':f}):this[t(0x1eb)]['template']({'srcPath':t(0x1f8),'destPath':e+'.js','framework':'react','context':i,'config':f});f['engines'][t(0x1ed)]!==t(0x1dd)&&this[t(0x1eb)][t(0x1ca)]({'srcPath':t(0x1f1),'destPath':e+t(0x1bf),'framework':t(0x1e9),'context':i,'config':f});f[t(0x1ca)][t(0x1e6)]&&(this[t(0x1eb)][t(0x1ca)]({'srcPath':'template/template.css','destPath':e+'.css','context':Object[t(0x1e4)]({},i,{'className':paramCase(b[t(0x1e5)])}),'config':f}),this[t(0x1eb)][t(0x1c4)]({'filePath':e+'.'+f[t(0x1c1)]['js'],'content':'import\x20\x27./'+i[t(0x1d8)]+'.'+f['engines'][t(0x1e6)]+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x1d8)]+'/'+i[t(0x1d8)];let l;if(f[t(0x1c1)][t(0x1c0)]==='true'){const m=this[t(0x1eb)][t(0x1ce)]({'pathParts':['imports',t(0x1df),'lib','templates.js']});l=this['fsi'][t(0x1bc)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1eb)][t(0x1ce)]({'pathParts':[t(0x1f5),t(0x1df),'client',t(0x1f3)]});l=this[t(0x1eb)][t(0x1bc)]({'pathParts':[n],'config':f});}f[t(0x1c1)]['client']==='react'?(f['engines']['js']==='tsx'?this[t(0x1eb)][t(0x1c4)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x1f9)]+t(0x1ef)+k+'\x27;\x0a'}):this[t(0x1eb)][t(0x1c4)]({'filePath':l,'content':t(0x1f4)+i[t(0x1f9)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x1c1)]['js']+t(0x1cc)}),this['fsi'][t(0x1c3)]({'filePath':l,'content':t(0x1fa)+i['className']+t(0x1be)})):this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x1d9)+k+'.'+f[t(0x1c1)]['js']+'\x27;\x0a'});});});
1
+ const a104r=a104d;function a104c(){const u=['client','injectAtEndOfFile','checkNpmPackage','test','className','dir','withTranslations','template','\x20}\x20from\x20\x27','react','fileName','1026463Vizjit','export\x20{\x20','findAppDirectory','\x27;\x0a','relative','3RlYGFc','apply','ssr','ramda','/imports/ui/layouts','features','graphql','css','2508023NsFkWO','withValue','installNpmPackage','true','963aEYfRq','test/test.js','(((.+)+)+)+$','toString','816770dLYdst','maka\x20g:l\x20web/safari','rewriteDestinationPathForEngine','753140nIWKYT','search','setTemplate','7162397QKorUW','.js','component/component.js','6UqXMwk','injectAtBeginningOfFile','templates.js','lib','10485850bDljYK','tsx','pathFromProject','layout','startup','maka\x20g:layout\x20mobile/iPhone8','import\x20{\x20','import\x20\x27','import\x20\x27./','\x20};\x0a','includes','warn','split','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','assign','72oXaimh','resourceName','withHook','hook/hook.js','4CRtxKv','fsi','engines','constructor','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','11896OJdGHu'];a104c=function(){return u;};return a104c();}(function(a,b){const o=a104d,c=a();while(!![]){try{const d=-parseInt(o(0x11c))/0x1+parseInt(o(0x134))/0x2*(-parseInt(o(0x121))/0x3)+parseInt(o(0x109))/0x4*(-parseInt(o(0x131))/0x5)+-parseInt(o(0x13a))/0x6*(parseInt(o(0x129))/0x7)+-parseInt(o(0x110))/0x8*(parseInt(o(0x12d))/0x9)+-parseInt(o(0x13e))/0xa+parseInt(o(0x137))/0xb*(parseInt(o(0x14d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xbd0f8));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0x130)]()[q(0x135)](q(0x12f))[q(0x130)]()[q(0x10c)](a104a)['search']('(((.+)+)+)+$');});a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x108;let f=c[d];return f;},a104d(a,b);}const aliases=['l'];Generator['create']({'name':a104r(0x141),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a104r(0x143),a104r(0x132)]},function(a,b){const s=a104r,c=s(0x125),d=this['fsi'][s(0x11e)](),e=this[s(0x10a)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[s(0x14e)]),paramCase(b[s(0x14e)])]}),f=this[s(0x10a)]['getProjectConfig']();this[s(0x10a)][s(0x12a)](f,()=>{const t=s;typeof f[t(0x118)][t(0x114)]==='string'&&(f[t(0x118)]['test']=f[t(0x118)][t(0x114)]===t(0x12c)?!![]:![],this[t(0x10a)][t(0x136)]('test',f[t(0x118)][t(0x114)]));typeof f[t(0x118)][t(0x128)]===t(0x10d)&&(f['template'][t(0x128)]=f[t(0x118)][t(0x128)]==='true'?!![]:![],this[t(0x10a)][t(0x136)]('css',f[t(0x118)][t(0x128)]));typeof f[t(0x118)]['js']===t(0x10d)&&(f[t(0x118)]['js']=f['template']['js']===t(0x12c)?!![]:![],this[t(0x10a)][t(0x136)]('js',f['template']['js']));!f['features']&&(f[t(0x126)]={});const g=b['_']?b['_'][0x0][t(0x14a)](':')[0x1]:![],h=b['_']&&aliases[t(0x148)](g);h&&!this[t(0x113)](t(0x124))&&(Log['warn'](t(0x14b)),this['fsi'][t(0x12b)]('ramda',{'cwd':d}));if(h&&!this['checkNpmPackage'](t(0x11a))){Log[t(0x149)](t(0x10e));return;}const i={'name':pascalCase(b[t(0x14e)]),'myPath':a104e[t(0x120)](this[t(0x10a)][t(0x140)]({}),e),'cssCaseName':paramCase(b[t(0x14e)]),'className':pascalCase(b[t(0x14e)]),'camelCaseName':camelCase(b[t(0x14e)]),'fileName':paramCase(b[t(0x14e)]),'graphql':f[t(0x10b)][t(0x127)],'features':f[t(0x126)],'client':f['engines'][t(0x111)],'api':f[t(0x10b)]['api'],'ssr':f[t(0x10b)][t(0x123)],'test':f[t(0x10b)]['test'],'theme':f[t(0x10b)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x126)][t(0x117)]};f[t(0x126)]?.['withHooks']||b[t(0x14f)]?this[t(0x10a)][t(0x118)]({'srcPath':t(0x108),'destPath':e+t(0x138),'framework':t(0x11a),'context':i,'config':f}):this[t(0x10a)][t(0x118)]({'srcPath':t(0x139),'destPath':e+t(0x138),'framework':t(0x11a),'context':i,'config':f});f[t(0x10b)]['test']!=='none'&&this['fsi']['template']({'srcPath':t(0x12e),'destPath':e+'.app-tests.js','framework':t(0x11a),'context':i,'config':f});f[t(0x118)][t(0x128)]&&(this[t(0x10a)][t(0x118)]({'srcPath':'template/template.css','destPath':e+'.css','context':Object[t(0x14c)]({},i,{'className':paramCase(b[t(0x14e)])}),'config':f}),this[t(0x10a)][t(0x13b)]({'filePath':e+'.'+f[t(0x10b)]['js'],'content':t(0x146)+i['fileName']+'.'+f[t(0x10b)][t(0x128)]+'\x27;'}));const j=b[t(0x116)]?'/'+b[t(0x116)]+'/':'/',k=''+c+j+i[t(0x11b)]+'/'+i['fileName'];let l;if(f[t(0x10b)][t(0x123)]===t(0x12c)){const m=this[t(0x10a)]['pathFromApp']({'pathParts':['imports',t(0x142),t(0x13d),t(0x13c)]});l=this[t(0x10a)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x10f)]({'pathParts':['imports',t(0x142),'client',t(0x13c)]});l=this[t(0x10a)][t(0x133)]({'pathParts':[n],'config':f});}f[t(0x10b)][t(0x111)]===t(0x11a)?(f['engines']['js']===t(0x13f)?this[t(0x10a)][t(0x13b)]({'filePath':l,'content':t(0x144)+i[t(0x115)]+t(0x119)+k+t(0x11f)}):this[t(0x10a)][t(0x13b)]({'filePath':l,'content':'import\x20{\x20'+i['className']+t(0x119)+k+'.'+f['engines']['js']+t(0x11f)}),this[t(0x10a)]['injectAtEndOfFile']({'filePath':l,'content':t(0x11d)+i[t(0x115)]+t(0x147)})):this[t(0x10a)][t(0x112)]({'filePath':l,'content':t(0x145)+k+'.'+f[t(0x10b)]['js']+'\x27;\x0a'});});});
@@ -1 +1 @@
1
- function a105c(){const i=['20qsaTTi','286fFtruF','166416KvMFot','1BTPoPm','toString','maka\x20g:hook\x20cool-hook','(((.+)+)+)+$','350WDbObG','maka\x20generate:api\x20Trucks','895YSUkws','9eHKiBa','search','maka','Maka!','1309118JFGuRc','constructor','2102601gOCnad','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','5319664DTLhLc','68964tErsxc','18572DnAgHl','3318359JMkEmy','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20'];a105c=function(){return i;};return a105c();}const a105h=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=-parseInt(f(0x1d1))/0x1*(-parseInt(f(0x1c5))/0x2)+-parseInt(f(0x1c7))/0x3+-parseInt(f(0x1cb))/0x4*(-parseInt(f(0x1d7))/0x5)+parseInt(f(0x1ca))/0x6*(-parseInt(f(0x1d5))/0x7)+parseInt(f(0x1c9))/0x8*(-parseInt(f(0x1d8))/0x9)+parseInt(f(0x1ce))/0xa*(parseInt(f(0x1cc))/0xb)+-parseInt(f(0x1d0))/0xc*(-parseInt(f(0x1cf))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x6ebbd));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const g=a105d;return a105a[g(0x1d2)]()[g(0x1d9)]('(((.+)+)+)+$')[g(0x1d2)]()[g(0x1c6)](a105a)[g(0x1d9)](g(0x1d4));});a105a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a105h(0x1c3),'shortDesc':a105h(0x1c4),'validOpts':[],'description':a105h(0x1cd),'usage':a105h(0x1c8),'examples':[a105h(0x1d6),a105h(0x1d3)]},function(){return null;});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a105d(a,b);}export default MakaGen;
1
+ const a105h=a105d;function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x8c;let f=c[d];return f;},a105d(a,b);}function a105c(){const i=['search','1695912CgrUhY','4571688ZQMOGV','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','91839ofUadb','maka\x20g:hook\x20cool-hook','1965yLMeph','7908DMVeoM','Maka!','10jnhTJu','constructor','1683954FhZcxD','14welzOC','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','10ocXbJA','(((.+)+)+)+$','207224voiuXK','2418162YrAHxI','toString'];a105c=function(){return i;};return a105c();}(function(a,b){const f=a105d,c=a();while(!![]){try{const d=parseInt(f(0x9a))/0x1+-parseInt(f(0x98))/0x2*(parseInt(f(0x8e))/0x3)+parseInt(f(0x91))/0x4*(parseInt(f(0x90))/0x5)+parseInt(f(0x9b))/0x6*(-parseInt(f(0x96))/0x7)+-parseInt(f(0x9e))/0x8+-parseInt(f(0x95))/0x9*(-parseInt(f(0x93))/0xa)+parseInt(f(0x8c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x6582f));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const g=a105d;return a105a[g(0x9c)]()[g(0x9d)](g(0x99))['toString']()[g(0x94)](a105a)[g(0x9d)]('(((.+)+)+)+$');});a105a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a105h(0x92),'validOpts':[],'description':a105h(0x8d),'usage':a105h(0x97),'examples':['maka\x20generate:api\x20Trucks',a105h(0x8f)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0xbb))/0x1*(parseInt(k(0xc7))/0x2)+parseInt(k(0xb9))/0x3+parseInt(k(0xc9))/0x4*(parseInt(k(0xcd))/0x5)+-parseInt(k(0xd3))/0x6+parseInt(k(0xb7))/0x7*(-parseInt(k(0xb6))/0x8)+-parseInt(k(0xcf))/0x9*(parseInt(k(0xd6))/0xa)+parseInt(k(0xd9))/0xb*(parseInt(k(0xce))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x3b8f0));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0xca)]()[m(0xbe)]('(((.+)+)+)+$')[m(0xca)]()['constructor'](a106a)['search']('(((.+)+)+)+$');});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0xd5)]({'name':a106n(0xbf),'aliases':['m'],'usage':a106n(0xc3),'checkWhere':!![],'shortDesc':a106n(0xc0),'validOpts':['dir'],'examples':[a106n(0xc4)]},function(a,b){const o=a106n;try{const c=this[o(0xb8)][o(0xcb)]();this[o(0xb8)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0xbd)]),f={'name':b[p(0xbd)],'fileName':d,'className':pascalCase(b[p(0xbd)]),'camelCase':camelCase(b[p(0xbd)]),'noRename':!![]};let g='js';c['engines']['js']==='tsx'&&(g='ts');const h=this[p(0xb8)][p(0xd8)]({});(!this[p(0xb8)][p(0xd7)]('check')||!this[p(0xb8)]['checkMeteorPackage'](p(0xbc))||!this[p(0xb8)][p(0xd7)]('mdg:validated-method'))&&(Log[p(0xcc)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0xb8)][p(0xc1)](p(0xc2),{'cwd':h}));this[p(0xb8)][p(0xda)]({'srcPath':p(0xd4),'destPath':this[p(0xb8)][p(0xd8)]({'pathParts':[p(0xd1),p(0xdd),b[p(0xc8)],p(0xd0),b[p(0xc5)],d+p(0xb5)+g]}),'context':f,'config':c});const i=b[p(0xc5)]?'/'+b['dir']+'/':'/',j=this[p(0xb8)][p(0xd8)]({'pathParts':[p(0xd1),p(0xdd),b[p(0xc8)],'index.'+c[p(0xdc)]['js']]});this[p(0xb8)][p(0xba)]({'filePath':j,'content':p(0xdb)+i+d+p(0xc6)});});}catch(d){Log['error'](d);}});function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xb5;let f=c[d];return f;},a106d(a,b);}function a106c(){const q=['pathFromApp','1673782uqiGrl','template','import\x20\x27./methods','engines','startup','-rpc-method.','364160soLOXC','14PzpBbJ','fsi','936753RBeRxe','injectAtEndOfFile','56626OHJzQD','ddp-rate-limiter','resourceName','search','method','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','installMeteorPackage','check\x20ddp-rate-limiter\x20mdg:validated-method','maka\x20{generate,\x20g}:{method,\x20m}\x20name','maka\x20g:method\x20todos','dir','-rpc-method\x27;','2njsjur','appPathPrefix','12688Phkebu','toString','getProjectConfig','warn','630CpSEdX','12wvTxlx','153zzwSVZ','methods','imports','apply','2387724ECtbye','method/method.js','create','110450FCsrLQ','checkMeteorPackage'];a106c=function(){return q;};return a106c();}
1
+ function a106c(){const q=['9EAOjtt','method','checkMeteorPackage','26AVqaaa','fsi','engines','constructor','maka\x20g:method\x20todos','injectAtEndOfFile','withValue','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','template','apply','index.','(((.+)+)+)+$','imports','ddp-rate-limiter','create','check','99729xQUTRI','8745whDzOU','resourceName','search','methods','dir','-rpc-method\x27;','-rpc-method.','mdg:validated-method','470270ViyeIt','732MDbwQm','appPathPrefix','1362616ZVlPFz','tsx','6055ImEeBT','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','startup','method/method.js','installMeteorPackage','2711090tZUxCM','toString','1220972fjWQPD'];a106c=function(){return q;};return a106c();}const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0xaf))/0x1+parseInt(k(0xbf))/0x2*(-parseInt(k(0xcf))/0x3)+-parseInt(k(0xbb))/0x4+-parseInt(k(0xd0))/0x5+-parseInt(k(0xb0))/0x6*(-parseInt(k(0xb4))/0x7)+parseInt(k(0xb2))/0x8+parseInt(k(0xbc))/0x9*(parseInt(k(0xb9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x43e45));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0xba)]()[m(0xd2)](m(0xca))[m(0xba)]()[m(0xc2)](a106a)[m(0xd2)]('(((.+)+)+)+$');});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xae;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0xcd)]({'name':a106n(0xbd),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a106n(0xc6),'validOpts':['dir'],'examples':[a106n(0xc3)]},function(a,b){const o=a106n;try{const c=this[o(0xc0)]['getProjectConfig']();this[o(0xc0)][o(0xc5)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0xd1)],'fileName':d,'className':pascalCase(b[p(0xd1)]),'camelCase':camelCase(b[p(0xd1)]),'noRename':!![]};let g='js';c[p(0xc1)]['js']===p(0xb3)&&(g='ts');const h=this[p(0xc0)]['pathFromApp']({});(!this[p(0xc0)]['checkMeteorPackage'](p(0xce))||!this[p(0xc0)][p(0xbe)](p(0xcc))||!this[p(0xc0)][p(0xbe)](p(0xae)))&&(Log['warn'](p(0xb5)),this['fsi'][p(0xb8)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[p(0xc0)][p(0xc7)]({'srcPath':p(0xb7),'destPath':this[p(0xc0)]['pathFromApp']({'pathParts':['imports',p(0xb6),b[p(0xb1)],p(0xd3),b[p(0xd4)],d+p(0xd6)+g]}),'context':f,'config':c});const i=b[p(0xd4)]?'/'+b[p(0xd4)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[p(0xcb),'startup',b[p(0xb1)],p(0xc9)+c[p(0xc1)]['js']]});this[p(0xc0)][p(0xc4)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0xd5)});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- function a107c(){const s=['dir','ssr','store','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','.js','client','133wdlZMD','/package.js','package/','features','withValue','relative','server','119634WWqCGd','maka\x20g:package\x20todos:package','search','toString','resourceName','package','lib','4966515vOYAXj','pathFromAppWithNoReWrite','164wnrGjT','packages','theme','noRename','2403290lOkbmI','532778XWuGcX','engines','/client/','template','template/template.js','229486lrQlLK','constructor','layout','getProjectConfig','hasOwnProperty','component','fsi','apply','package/package.js','(((.+)+)+)+$','tests/client','create','816088EMDlXK','11394GcUrMG'];a107c=function(){return s;};return a107c();}const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=parseInt(l(0x161))/0x1+parseInt(l(0x15c))/0x2+-parseInt(l(0x140))/0x3*(-parseInt(l(0x157))/0x4)+-parseInt(l(0x15b))/0x5+-parseInt(l(0x14e))/0x6*(parseInt(l(0x147))/0x7)+-parseInt(l(0x13f))/0x8+parseInt(l(0x155))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x3b0fe));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a[n(0x151)]()[n(0x150)](n(0x13c))[n(0x151)]()[n(0x162)](a107a)[n(0x150)](n(0x13c));});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x135;let f=c[d];return f;},a107d(a,b);}a107a();import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a107o(0x13e)]({'name':a107o(0x153),'aliases':['p'],'usage':a107o(0x144),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a107o(0x141)],'examples':[a107o(0x14f)]},async function(a,b){const p=a107o,c=paramCase(b[p(0x152)]),d=this['fsi']['pathFromApp']({'pathParts':[p(0x158),b[p(0x141)],c]}),e=this['fsi'][p(0x156)]({'pathParts':[p(0x158),b['dir'],c,'package.js']}),f=this['fsi'][p(0x136)]();this['fsi'][p(0x14b)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x152)]),'myPath':a107e[q(0x14c)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x152)]),'camelCaseName':camelCase(b[q(0x152)]),'fileName':c,'client':f[q(0x15d)][q(0x146)],'graphql':f[q(0x15d)]['graphql'],'ssr':f[q(0x15d)][q(0x142)],'isComponent':b[q(0x137)](q(0x138)),'isLayout':b[q(0x137)](q(0x135)),'isStore':b[q(0x137)](q(0x143)),'features':f[q(0x14a)],'noRename':!![],'theme':f[q(0x15d)][q(0x159)]};this[q(0x139)][q(0x15f)]({'srcPath':q(0x13b),'destPath':e,'context':g,'config':f}),g[q(0x15a)]=![];const h=d+q(0x15e)+c+q(0x145);this['fsi'][q(0x15f)]({'srcPath':q(0x160),'destPath':h,'context':g,'config':f});const i=[q(0x154),q(0x14d),q(0x13d),'tests/server'];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x145);this[r(0x139)][r(0x15f)]({'srcPath':r(0x149)+j+r(0x148),'destPath':k,'context':g,'config':f});});});});
1
+ const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=-parseInt(l(0x97))/0x1+parseInt(l(0x8a))/0x2*(parseInt(l(0x71))/0x3)+parseInt(l(0x9c))/0x4*(parseInt(l(0x84))/0x5)+parseInt(l(0x83))/0x6+-parseInt(l(0x7a))/0x7*(-parseInt(l(0x8e))/0x8)+parseInt(l(0x98))/0x9*(parseInt(l(0x82))/0xa)+-parseInt(l(0x89))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x5fd0d));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0x76)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a['toString']()[n(0x72)](n(0x99))[n(0x7f)]()[n(0x7c)](a107a)[n(0x72)](n(0x99));});a107a();import a107e from'path';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x71;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../generator.js';function a107c(){const s=['dir','tests/client','159197UhqhWT','119547JrCiJF','(((.+)+)+)+$','package/','forEach','4ekoBWN','tests/server','getProjectConfig','packages','60eqqlRI','search','resourceName','package.js','fsi','apply','lib','client','component','259Iqxfbe','theme','constructor','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','withValue','toString','/package.js','server','180igeWWZ','1084932mvyZFX','3834885FNLCgM','engines','ssr','template','/client/','18487436cniRLW','62538HPCBnv','relative','package','pathFromAppWithNoReWrite','90824POHrgJ','pathFromProject','noRename','hasOwnProperty','graphql','.js','package/package.js'];a107c=function(){return s;};return a107c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a107o(0x8c),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a107o(0x7d),'validOpts':[a107o(0x95)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a107o,c=paramCase(b['resourceName']),d=this['fsi']['pathFromApp']({'pathParts':[p(0x9f),b[p(0x95)],c]}),e=this['fsi'][p(0x8d)]({'pathParts':['packages',b[p(0x95)],c,p(0x74)]}),f=this[p(0x75)][p(0x9e)]();this[p(0x75)][p(0x7e)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a107e[q(0x8b)](this['fsi'][q(0x8f)]({}),d),'cssCaseName':paramCase(b[q(0x73)]),'className':pascalCase(b[q(0x73)]),'camelCaseName':camelCase(b[q(0x73)]),'fileName':c,'client':f[q(0x85)][q(0x78)],'graphql':f[q(0x85)][q(0x92)],'ssr':f[q(0x85)][q(0x86)],'isComponent':b[q(0x91)](q(0x79)),'isLayout':b[q(0x91)]('layout'),'isStore':b[q(0x91)]('store'),'features':f['features'],'noRename':!![],'theme':f[q(0x85)][q(0x7b)]};this[q(0x75)][q(0x87)]({'srcPath':q(0x94),'destPath':e,'context':g,'config':f}),g[q(0x90)]=![];const h=d+q(0x88)+c+q(0x93);this[q(0x75)][q(0x87)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0x77),q(0x81),q(0x96),q(0x9d)];i[q(0x9b)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this[r(0x75)][r(0x87)]({'srcPath':r(0x9a)+j+r(0x80),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a108p=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=parseInt(m(0x217))/0x1+-parseInt(m(0x1ec))/0x2+parseInt(m(0x1e2))/0x3*(-parseInt(m(0x204))/0x4)+parseInt(m(0x218))/0x5+parseInt(m(0x1e7))/0x6*(-parseInt(m(0x21f))/0x7)+-parseInt(m(0x1ee))/0x8*(-parseInt(m(0x209))/0x9)+parseInt(m(0x1e6))/0xa*(parseInt(m(0x208))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x7072d));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a['toString']()[o(0x20e)](o(0x20b))[o(0x22b)]()[o(0x1e9)](a108a)[o(0x20e)](o(0x20b));});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a108d(a,b);}function a108c(){const s=['css','Updating\x20npm\x20packages\x20...','fsi','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','installNpmPackage','component','tsx','import\x20\x27','export\x20{\x20','className','react','template/template.css','1755596tYSxtq','component/component.js','warn','true','251933BcUYFy','9gQGzCb','string','(((.+)+)+)+$','none','getProjectConfig','search','template','page','engines','.html','injectAtBeginningOfFile','ramda','ssr','.app-tests.js','811980fyfPiU','2610880auCsTB','layouts','template/template.html','resourceName','features','hooks','html','1726039KfQEWw','\x27;\x0a','api','components','.css','test','withHooks','\x20}\x20from\x20\x27','setTemplate','/imports/ui/','import\x20\x27./','pathFromProject','toString','pages','dir','rewriteDestinationPathForEngine','templates.js','apply','fileName','3IHUiRO','lib','client','checkNpmPackage','160JQhfRw','18UuVcjA','baseDir','constructor','injectAtEndOfFile','hasOwnProperty','908778CnbbsT','withHook','3144032JAVqxJ','imports','.js','pathFromApp','root','withValue','withTranslations','import\x20{\x20','create','relative'];a108c=function(){return s;};return a108c();}a108a();import a108e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a108p(0x1f6)]({'name':a108p(0x210),'aliases':aliases,'usage':a108p(0x1fb),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':'baseDir','values':[a108p(0x21d),a108p(0x222),a108p(0x1dc),a108p(0x219)]},{'name':a108p(0x1ed),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a108p,c=b[q(0x1e8)]?q(0x228)+b[q(0x1e8)]:'/imports/ui/pages',d=this[q(0x1fa)][q(0x1f1)](b),e=this[q(0x1fa)]['pathFromApp']({'pathParts':[c,b[q(0x1dd)],paramCase(b[q(0x21b)]),paramCase(b[q(0x21b)])]}),f=this[q(0x1fa)][q(0x20d)]();this['fsi'][q(0x1f3)](f,()=>{const r=q;typeof f['template']['html']===r(0x20a)&&(f[r(0x20f)]['html']=f[r(0x20f)]['html']===r(0x207)?!![]:![],this[r(0x1fa)][r(0x227)](r(0x21e),f[r(0x20f)]['html']));typeof f[r(0x20f)][r(0x224)]==='string'&&(f[r(0x20f)]['test']=f['template'][r(0x224)]===r(0x207)?!![]:![],this[r(0x1fa)][r(0x227)](r(0x224),f[r(0x20f)][r(0x224)]));typeof f[r(0x20f)][r(0x1f8)]==='string'&&(f['template']['css']=f[r(0x20f)][r(0x1f8)]===r(0x207)?!![]:![],this[r(0x1fa)][r(0x227)]('css',f[r(0x20f)]['css']));typeof f['template']['js']===r(0x20a)&&(f[r(0x20f)]['js']=f[r(0x20f)]['js']==='true'?!![]:![],this['fsi']['setTemplate']('js',f['template']['js']));!f[r(0x21c)]&&(f[r(0x21c)]={});!b[r(0x1f2)]&&!this[r(0x1fa)][r(0x1e5)](r(0x214))&&(Log[r(0x206)](r(0x1f9)),this[r(0x1fa)][r(0x1fc)](r(0x214),{'cwd':d}));const g={'name':pascalCase(b[r(0x21b)]),'myPath':a108e[r(0x1f7)](this['fsi'][r(0x22a)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[r(0x21b)]),'camelCaseName':camelCase(b[r(0x21b)]),'fileName':paramCase(b[r(0x21b)]),'graphql':f[r(0x211)]['graphql'],'features':f['features'],'client':f[r(0x211)][r(0x1e4)],'api':f[r(0x211)][r(0x221)],'ssr':f[r(0x211)][r(0x215)],'isStore':b[r(0x1eb)]('store'),'isComponent':b[r(0x1eb)](r(0x1fd)),'isLayout':b[r(0x1eb)]('layout'),'withTranslations':f[r(0x21c)][r(0x1f4)],'test':f[r(0x211)][r(0x224)],'theme':f[r(0x211)]['theme']};f[r(0x20f)]['html']&&this['fsi']['template']({'srcPath':r(0x21a),'destPath':e+r(0x212),'context':g,'config':f});f['features']?.[r(0x225)]||b[r(0x1ed)]?this[r(0x1fa)][r(0x20f)]({'srcPath':'hook/hook.js','destPath':e+r(0x1f0),'framework':r(0x202),'context':g,'config':f}):this['fsi'][r(0x20f)]({'srcPath':r(0x205),'destPath':e+r(0x1f0),'framework':r(0x202),'context':g,'config':f});f[r(0x211)][r(0x224)]!==r(0x20c)&&this[r(0x1fa)]['template']({'srcPath':'test/test.js','destPath':e+r(0x216),'framework':r(0x202),'context':g,'config':f});f[r(0x20f)]['css']&&this[r(0x1fa)][r(0x20f)]({'srcPath':r(0x203),'destPath':e+r(0x223),'context':Object['assign']({},g,{'className':paramCase(b[r(0x21b)])}),'config':f});f[r(0x211)][r(0x1e4)]!=='react'&&f['engines'][r(0x1e4)]!=='vanilla'?(f[r(0x20f)][r(0x1f8)]&&this[r(0x1fa)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x211)]['js'],'content':r(0x229)+g[r(0x1e1)]+'.'+f[r(0x211)][r(0x21e)]+'\x27;\x0a'+r(0x229)+g[r(0x1e1)]+'.'+f['engines'][r(0x1f8)]+'\x27;'}),!f[r(0x20f)][r(0x1f8)]&&this[r(0x1fa)][r(0x213)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0x1e1)]+'.'+f[r(0x211)][r(0x21e)]+'\x27;'})):f[r(0x20f)][r(0x1f8)]&&this[r(0x1fa)][r(0x213)]({'filePath':e+'.'+f[r(0x211)]['js'],'content':r(0x229)+g[r(0x1e1)]+'.'+f[r(0x211)][r(0x1f8)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0x1e1)]+'/'+g[r(0x1e1)];let j;if(f[r(0x211)][r(0x215)]==='true'){const k=this[r(0x1fa)][r(0x1f1)]({'pathParts':[r(0x1ef),'startup',r(0x1e3),r(0x1df)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this[r(0x1fa)][r(0x1f1)]({'pathParts':[r(0x1ef),'startup',r(0x1e4),r(0x1df)]});j=this['fsi'][r(0x1de)]({'pathParts':[l],'config':f});}f[r(0x211)][r(0x1e4)]===r(0x202)?(f[r(0x211)]['js']===r(0x1fe)?this[r(0x1fa)][r(0x213)]({'filePath':j,'content':r(0x1f5)+g[r(0x201)]+r(0x226)+i+r(0x220)}):this[r(0x1fa)][r(0x213)]({'filePath':j,'content':r(0x1f5)+g[r(0x201)]+r(0x226)+i+'.'+f[r(0x211)]['js']+'\x27;\x0a'}),this[r(0x1fa)][r(0x1ea)]({'filePath':j,'content':r(0x200)+g['className']+'\x20};\x0a'})):this[r(0x1fa)]['injectAtEndOfFile']({'filePath':j,'content':r(0x1ff)+i+'.'+f[r(0x211)]['js']+r(0x220)});});});
1
+ const a108p=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=-parseInt(m(0x102))/0x1*(-parseInt(m(0x105))/0x2)+parseInt(m(0xf3))/0x3*(parseInt(m(0xfd))/0x4)+parseInt(m(0xdf))/0x5+parseInt(m(0xe7))/0x6+-parseInt(m(0xe3))/0x7+-parseInt(m(0x110))/0x8*(parseInt(m(0xd8))/0x9)+-parseInt(m(0xdd))/0xa*(parseInt(m(0xf2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x26703));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0xd7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a[o(0x113)]()[o(0x11d)](o(0xfc))[o(0x113)]()['constructor'](a108a)[o(0x11d)](o(0xfc));});a108a();function a108c(){const s=['\x20}\x20from\x20\x27','import\x20\x27','2nAXoTE','checkNpmPackage','test','react','maka\x20g:page\x20todos/todos-item','ramda','.html','warn','/imports/ui/','startup','page','523856AgDeYL','withHooks','engines','toString','template','css','hasOwnProperty','lib','\x27;\x0a','withTranslations','.js','layouts','imports','search','fsi','import\x20\x27./','root','\x20};\x0a','rewriteDestinationPathForEngine','features','apply','27djTDWu','pathFromProject','setTemplate','true','theme','30icISwE','injectAtEndOfFile','658585BAPyFz','template/template.html','withValue','hooks','1586452JfkeaT','Generate\x20a\x20page.','string','html','567252ZCgjkk','component/component.js','pathFromApp','baseDir','client','className','injectAtBeginningOfFile','component','api','resourceName','dir','83963QWPVzx','716340jopSOv','layout','fileName','ssr','import\x20{\x20','templates.js','hook/hook.js','installNpmPackage','store','(((.+)+)+)+$','4HdWhfX','/imports/ui/pages','vanilla','template/template.css','withHook','138385snJkXP'];a108c=function(){return s;};return a108c();}import a108e from'path';import{Generator}from'../generator.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xd1;let f=c[d];return f;},a108d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a108p(0x10f),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a108p(0xe4),'validOpts':[{'name':a108p(0xea),'values':[a108p(0xe2),'components','pages',a108p(0x11b)]},{'name':a108p(0x101),'boolFlag':!![]}],'examples':[a108p(0x109)]},function(a,b){const q=a108p,c=b[q(0xea)]?q(0x10d)+b['baseDir']:q(0xfe),d=this[q(0xd1)][q(0xe9)](b),e=this[q(0xd1)][q(0xe9)]({'pathParts':[c,b[q(0xf1)],paramCase(b[q(0xf0)]),paramCase(b[q(0xf0)])]}),f=this['fsi']['getProjectConfig']();this[q(0xd1)][q(0xe1)](f,()=>{const r=q;typeof f[r(0x114)][r(0xe6)]==='string'&&(f[r(0x114)]['html']=f['template'][r(0xe6)]===r(0xdb)?!![]:![],this[r(0xd1)][r(0xda)](r(0xe6),f[r(0x114)]['html']));typeof f[r(0x114)][r(0x107)]===r(0xe5)&&(f[r(0x114)]['test']=f[r(0x114)][r(0x107)]===r(0xdb)?!![]:![],this['fsi'][r(0xda)](r(0x107),f['template'][r(0x107)]));typeof f[r(0x114)][r(0x115)]===r(0xe5)&&(f['template'][r(0x115)]=f['template']['css']==='true'?!![]:![],this[r(0xd1)][r(0xda)](r(0x115),f['template'][r(0x115)]));typeof f[r(0x114)]['js']===r(0xe5)&&(f['template']['js']=f[r(0x114)]['js']===r(0xdb)?!![]:![],this[r(0xd1)][r(0xda)]('js',f['template']['js']));!f['features']&&(f[r(0xd6)]={});!b[r(0xd3)]&&!this[r(0xd1)][r(0x106)](r(0x10a))&&(Log[r(0x10c)]('Updating\x20npm\x20packages\x20...'),this[r(0xd1)][r(0xfa)](r(0x10a),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a108e['relative'](this[r(0xd1)][r(0xd9)]({}),e),'cssCaseName':paramCase(b[r(0xf0)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0xf0)]),'fileName':paramCase(b[r(0xf0)]),'graphql':f[r(0x112)]['graphql'],'features':f['features'],'client':f[r(0x112)]['client'],'api':f[r(0x112)][r(0xef)],'ssr':f[r(0x112)][r(0xf6)],'isStore':b[r(0x116)](r(0xfb)),'isComponent':b[r(0x116)](r(0xee)),'isLayout':b['hasOwnProperty'](r(0xf4)),'withTranslations':f['features'][r(0x119)],'test':f['engines'][r(0x107)],'theme':f[r(0x112)][r(0xdc)]};f[r(0x114)]['html']&&this[r(0xd1)][r(0x114)]({'srcPath':r(0xe0),'destPath':e+r(0x10b),'context':g,'config':f});f['features']?.[r(0x111)]||b[r(0x101)]?this[r(0xd1)][r(0x114)]({'srcPath':r(0xf9),'destPath':e+r(0x11a),'framework':'react','context':g,'config':f}):this[r(0xd1)][r(0x114)]({'srcPath':r(0xe8),'destPath':e+'.js','framework':r(0x108),'context':g,'config':f});f['engines']['test']!=='none'&&this[r(0xd1)][r(0x114)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':'react','context':g,'config':f});f[r(0x114)]['css']&&this['fsi']['template']({'srcPath':r(0x100),'destPath':e+'.css','context':Object['assign']({},g,{'className':paramCase(b[r(0xf0)])}),'config':f});f['engines'][r(0xeb)]!==r(0x108)&&f[r(0x112)]['client']!==r(0xff)?(f[r(0x114)][r(0x115)]&&this['fsi'][r(0xed)]({'filePath':e+'.'+f[r(0x112)]['js'],'content':r(0xd2)+g[r(0xf5)]+'.'+f[r(0x112)][r(0xe6)]+r(0x118)+r(0xd2)+g[r(0xf5)]+'.'+f[r(0x112)][r(0x115)]+'\x27;'}),!f[r(0x114)][r(0x115)]&&this[r(0xd1)][r(0xed)]({'filePath':e+'.'+f[r(0x112)]['js'],'content':r(0xd2)+g[r(0xf5)]+'.'+f[r(0x112)][r(0xe6)]+'\x27;'})):f[r(0x114)][r(0x115)]&&this[r(0xd1)][r(0xed)]({'filePath':e+'.'+f[r(0x112)]['js'],'content':r(0xd2)+g[r(0xf5)]+'.'+f[r(0x112)][r(0x115)]+'\x27;'});const h=b[r(0xf1)]?'/'+b[r(0xf1)]+'/':'/',i=''+c+h+g[r(0xf5)]+'/'+g[r(0xf5)];let j;if(f['engines'][r(0xf6)]===r(0xdb)){const k=this['fsi'][r(0xe9)]({'pathParts':[r(0x11c),'startup',r(0x117),r(0xf8)]});j=this[r(0xd1)][r(0xd5)]({'pathParts':[k],'config':f});}else{const l=this[r(0xd1)][r(0xe9)]({'pathParts':['imports',r(0x10e),r(0xeb),r(0xf8)]});j=this[r(0xd1)][r(0xd5)]({'pathParts':[l],'config':f});}f[r(0x112)][r(0xeb)]===r(0x108)?(f['engines']['js']==='tsx'?this[r(0xd1)][r(0xed)]({'filePath':j,'content':r(0xf7)+g[r(0xec)]+r(0x103)+i+r(0x118)}):this[r(0xd1)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0xf7)+g[r(0xec)]+'\x20}\x20from\x20\x27'+i+'.'+f[r(0x112)]['js']+r(0x118)}),this[r(0xd1)]['injectAtEndOfFile']({'filePath':j,'content':'export\x20{\x20'+g[r(0xec)]+r(0xd4)})):this['fsi'][r(0xde)]({'filePath':j,'content':r(0x104)+i+'.'+f['engines']['js']+r(0x118)});});});
@@ -1 +1 @@
1
- const a109j=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=-parseInt(h(0x1ad))/0x1*(-parseInt(h(0x1b3))/0x2)+-parseInt(h(0x1ac))/0x3*(parseInt(h(0x1b2))/0x4)+-parseInt(h(0x1a6))/0x5+parseInt(h(0x1a9))/0x6*(parseInt(h(0x1bb))/0x7)+-parseInt(h(0x1ab))/0x8*(-parseInt(h(0x1b6))/0x9)+parseInt(h(0x1a7))/0xa+parseInt(h(0x1b7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x8a4bb));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const i=a109d;return a109a[i(0x1b8)]()[i(0x1b1)](i(0x1af))['toString']()['constructor'](a109a)['search'](i(0x1af));});a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':a109j(0x1ba),'aliases':['p'],'usage':a109j(0x1aa),'shortDesc':a109j(0x1ae),'validOpts':[],'examples':[a109j(0x1bc)]},async function(a,b){const k=a109j,c=this[k(0x1b4)][k(0x1be)]();this[k(0x1b4)][k(0x1a8)](c,async()=>{const l=k,d={'name':b[l(0x1b9)],'collection':paramCase(b[l(0x1b9)]),'noRename':!![]};let e='js';c[l(0x1bd)]['js']==='tsx'&&(e='ts');const f=this['fsi'][l(0x1a5)]({'pathParts':['server/publish.'+c[l(0x1bd)]['js']]}),g=this[l(0x1b4)][l(0x1b5)]({'srcPath':l(0x1b0)+e,'context':d,'config':c});this[l(0x1b4)][l(0x1bf)]({'filePath':f,'content':'\x0a'+g});});});function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a109d(a,b);}function a109c(){const m=['maka\x20g:publish\x20todos','engines','getProjectConfig','injectAtEndOfFile','rewriteDestinationPathForEngine','4976745apZWSP','10457510boHkDD','withValue','6pDsHOn','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','8PGvtKf','105zahvwJ','50071wiYAfC','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','(((.+)+)+)+$','publish/publish.','search','98492ipDbZl','14gWCNNp','fsi','templateContent','1865655HdJlTA','6426112sxCAkP','toString','resourceName','publish','1651146rfxzCw'];a109c=function(){return m;};return a109c();}
1
+ const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0xd3))/0x1*(parseInt(h(0xce))/0x2)+-parseInt(h(0xcd))/0x3+-parseInt(h(0xc5))/0x4*(parseInt(h(0xd2))/0x5)+-parseInt(h(0xd0))/0x6+parseInt(h(0xca))/0x7+-parseInt(h(0xc9))/0x8+parseInt(h(0xd5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x1f59f));function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xc4;let f=c[d];return f;},a109d(a,b);}function a109c(){const n=['resourceName','1423520dzrawM','1139824SEBVGd','apply','withValue','311556fIURHF','29510tdEddT','create','1145034Aapbvx','getProjectConfig','35SSbxSt','12aYNUSw','engines','4641129EWXuSR','templateContent','publish','toString','(((.+)+)+)+$','server/publish.','tsx','constructor','145444AmIqcT','fsi','rewriteDestinationPathForEngine'];a109c=function(){return n;};return a109c();}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0xd8)]()['search'](j(0xd9))[j(0xd8)]()[j(0xc4)](a109a)['search'](j(0xd9));});a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a109k(0xcf)]({'name':a109k(0xd7),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a109k,c=this[l(0xc6)][l(0xd1)]();this[l(0xc6)][l(0xcc)](c,async()=>{const m=l,d={'name':b[m(0xc8)],'collection':paramCase(b[m(0xc8)]),'noRename':!![]};let e='js';c[m(0xd4)]['js']===m(0xdb)&&(e='ts');const f=this[m(0xc6)][m(0xc7)]({'pathParts':[m(0xda)+c[m(0xd4)]['js']]}),g=this[m(0xc6)][m(0xd6)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0xc6)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +1 @@
1
- const a110z=a110d;function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xe5;let f=c[d];return f;},a110d(a,b);}(function(a,b){const x=a110d,c=a();while(!![]){try{const d=parseInt(x(0x130))/0x1+parseInt(x(0xfe))/0x2*(-parseInt(x(0x11a))/0x3)+parseInt(x(0x107))/0x4+-parseInt(x(0x104))/0x5*(-parseInt(x(0x11f))/0x6)+parseInt(x(0x11e))/0x7*(-parseInt(x(0x102))/0x8)+-parseInt(x(0x116))/0x9*(-parseInt(x(0xe9))/0xa)+-parseInt(x(0xf3))/0xb*(parseInt(x(0x115))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x7bc25));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 y=a110d;return a110a[y(0xee)]()[y(0x123)](y(0x126))['toString']()[y(0xeb)](a110a)[y(0x123)](y(0x126));});a110a();import a110e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a110c(){const I=['withTranslations','rewriteDestinationPathForEngine','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','react','route/route.js','create','true','fsi','16rXGpUp','config','pathFromApp','route','8znejpP','length','5zdphlR','components','pages','1515336IiMtRx','</Router>','\x0a\x09\x09','includes','<Router','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','layout','const\x20publicRoutes\x20=\x20(<>','client','withValue','imports','MasterLayout','ssr','vanilla','4968rYFlJr','2277uWKpEb','injectAfterLineNumber','routes.js','getProjectConfig','27126Vjfrww','\x22*\x22','error','dir','6139518LUGceo','2325378cIvaSB','<Route','Scaffolding\x20for\x20a\x20Route.','/imports/ui/','search','baseDir','PrivateLayout','(((.+)+)+)+$','invoke','maka\x20g:route\x20pages/lists/listIndex\x20lists','readFileLines','lib','startup','newForm','maka\x20g:route\x20todosIndex\x20todos','map','url','458573fRmwkO','templateContent','join','indexOf','private','injectAtEndOfFile','engines','/imports/ui/pages','22710Pvrjmk','filter','constructor','maka\x20g:route\x20pages/about','injectIntoFile','toString','maka\x20g:route\x20todosEdit\x20todos/:id/edit','templateName','warn','root','9119URmDGd','Invalid\x20directory\x20option\x20\x22','hooks'];a110c=function(){return I;};return a110c();}import a110f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a110z(0xfb)]({'name':a110z(0x101),'aliases':aliases,'validOpts':[a110z(0xe5),a110z(0x10d),'only','cwd',a110z(0xff),'root','withHook',a110z(0x12f),a110z(0x124)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a110z(0x121),'examples':[a110z(0x12d),a110z(0xef),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a110z(0x128),a110z(0xec)]},function(a,b){const A=a110z;try{const c=[A(0xf5),A(0x105),A(0x106),'layouts'];if(b[A(0x124)]&&!c[A(0x10a)](b[A(0x124)])){Log['error'](A(0xf4)+b[A(0x124)]+'\x22'),Log[A(0x11c)]('Valid\x20options\x20are:\x20'+c[A(0x132)](',\x20'));throw new UsageError();}const d=this[A(0xfd)][A(0x119)]();this[A(0xfd)][A(0x110)](d,async()=>{const B=A,f=b[B(0xe5)]??![];let g=paramCase(b['resourceName']),h='/'+g;a[B(0x103)]>0x1&&(h='/'+a[B(0xea)](function(n){return n!=='/';})['join']('/')['toLowerCase']());g=camelCase(g);b[B(0x10d)]&&(b['layout']=camelCase(b[B(0x10d)]));const i=b[B(0x124)]?B(0x122)+b[B(0x124)]:B(0xe8),j=a110e[B(0x132)](i,b[B(0x11d)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||B(0x112),'templatePath':j,'templateName':pascalCase(g),'client':d['engines']['client'],'newForm':![],'withTranslations':d['features'][B(0xf6)]};f&&(k[B(0x10d)]=B(0x125));if(!b[B(0xf2)]){const n=a110f['findGenerator']('page');n&&await n[B(0x127)](a,b);}let l,m;if(d[B(0xe7)][B(0x10f)]===B(0xf9)){if(d['engines'][B(0x113)]===B(0xfc)){const r=this[B(0xfd)][B(0x100)]({'pathParts':['imports',B(0x12b),B(0x12a),B(0x118)]});l=this[B(0xfd)][B(0xf7)]({'pathParts':[r],'config':d});}else{const s=this[B(0xfd)]['pathFromApp']({'pathParts':[B(0x111),B(0x12b),B(0x10f),B(0x118)]});l=this[B(0xfd)]['rewriteDestinationPathForEngine']({'pathParts':[s],'config':d});}const o=this['fsi']['readFileLines'](l)['map']((t,u)=>{const C=B;return t[C(0x10a)](C(0x10c))?u+0x1:null;})[B(0xea)](t=>t!==null);let p=this['fsi'][B(0x129)](l)[B(0x12e)]((t,u)=>{const D=B;return t[D(0x10a)]('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})[B(0xea)](t=>t!==null),q=this[B(0xfd)][B(0x129)](l)[B(0x12e)]((t,u)=>{const E=B;return t[E(0x10a)]('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})[B(0xea)](t=>t!==null);p['length']>0x0&&q[B(0x103)]>0x0&&(k[B(0x12c)]=!![]);m=this[B(0xfd)][B(0x131)]({'srcPath':B(0xfa),'framework':B(0xf9),'context':k,'config':d});if(p[B(0x103)]>0x0||q['length']>0x0){this[B(0xfd)][B(0x117)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[B(0x103)]>0x0)q=this[B(0xfd)][B(0x129)](l)[B(0x12e)]((t,u)=>{const F=B;return t[F(0x10a)]('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})[B(0xea)](t=>t!==null),this[B(0xfd)][B(0x117)]({'filePath':l,'content':'\x09{'+k[B(0xf0)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this['fsi'][B(0x129)](l)[B(0x12e)]((t,u)=>{const G=B;return t[G(0x10a)](G(0x10e))?u+0x1:null;})[B(0xea)](t=>t!==null),this[B(0xfd)][B(0x117)]({'filePath':l,'content':'\x09{'+k[B(0xf0)]+'}','lineNumber':p[0x0]})):Log[B(0xf1)](B(0xf8)+l);}else{const t=this['fsi'][B(0x129)](l)[B(0x12e)](w=>{const H=B;return w[H(0x10a)](H(0x11b));}),u=t[B(0x133)](!![])>-0x1,v=u?B(0x120):B(0x108);this['fsi'][B(0xed)]({'filePath':l,'content':B(0x109)+m+B(0x109),'begin':B(0x10b),'end':v});}}else{if(d[B(0xe7)][B(0x10f)]===B(0x114)){const w=this[B(0xfd)][B(0x100)]({'pathParts':[B(0x111),B(0x12b),B(0x10f),B(0x118)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[w],'config':d}),m=this[B(0xfd)][B(0x131)]({'srcPath':B(0xfa),'context':k}),this['fsi'][B(0xe6)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
1
+ const a110A=a110d;(function(a,b){const x=a110d,c=a();while(!![]){try{const d=parseInt(x(0x17b))/0x1*(parseInt(x(0x17f))/0x2)+-parseInt(x(0x162))/0x3*(parseInt(x(0x14d))/0x4)+parseInt(x(0x16b))/0x5+-parseInt(x(0x147))/0x6*(parseInt(x(0x164))/0x7)+parseInt(x(0x13c))/0x8+parseInt(x(0x146))/0x9+-parseInt(x(0x15e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x5345b));function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x132;let f=c[d];return f;},a110d(a,b);}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a110d;if(c){const e=c[y(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const z=a110d;return a110a[z(0x155)]()['search'](z(0x16e))[z(0x155)]()[z(0x136)](a110a)[z(0x134)](z(0x16e));});a110a();function a110c(){const J=['rewriteDestinationPathForEngine','withTranslations','findGenerator','4026033RGfQxY','474SKtiRH','/imports/ui/pages','ssr','pathFromApp','map','warn','2696636BggoqN','Valid\x20options\x20are:\x20','injectAtEndOfFile','maka\x20g:route\x20pages/about','create','invoke','length','\x0a\x09\x09','toString','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','lib','PrivateLayout','root','routes.js','imports','filter','vanilla','2138880GKyusQ','client','getProjectConfig','maka\x20g:route\x20pages/lists/listIndex\x20lists','3ELBPdr','templateName','8967nBSPIw','route/route.js','maka\x20g:route\x20todosIndex\x20todos','</Router>','toLowerCase','only','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','2434145PnwEXF','baseDir','/imports/ui/','(((.+)+)+)+$','startup','injectIntoFile','components','const\x20privateRoutes\x20=\x20(<>','hooks','templateContent','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','layout','readFileLines','\x22*\x22','cwd','MasterLayout','107573wINxVH','engines','<Route','react','2VIdaxI','layouts','apply','join','injectAfterLineNumber','indexOf','const\x20publicRoutes\x20=\x20(<>','search','<Router','constructor','withHook','includes','url','private','error','2308720ZxjiJD','resourceName','page','Scaffolding\x20for\x20a\x20Route.','Invalid\x20directory\x20option\x20\x22','true','fsi'];a110c=function(){return J;};return a110c();}import a110e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a110f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a110A(0x151)]({'name':'route','aliases':aliases,'validOpts':[a110A(0x13a),a110A(0x176),a110A(0x169),a110A(0x179),'config',a110A(0x159),a110A(0x137),a110A(0x139),a110A(0x16c)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a110A(0x13f),'examples':[a110A(0x166),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a110A(0x16a),a110A(0x161),a110A(0x150)]},function(a,b){const B=a110A;try{const c=[B(0x173),B(0x171),'pages',B(0x180)];if(b[B(0x16c)]&&!c[B(0x138)](b['baseDir'])){Log[B(0x13b)](B(0x140)+b['baseDir']+'\x22'),Log[B(0x13b)](B(0x14e)+c[B(0x182)](',\x20'));throw new UsageError();}const d=this[B(0x142)][B(0x160)]();this['fsi']['withValue'](d,async()=>{const C=B,f=b[C(0x13a)]??![];let g=paramCase(b[C(0x13d)]),h='/'+g;a[C(0x153)]>0x1&&(h='/'+a[C(0x15c)](function(n){return n!=='/';})[C(0x182)]('/')[C(0x168)]());g=camelCase(g);b[C(0x176)]&&(b[C(0x176)]=camelCase(b[C(0x176)]));const i=b[C(0x16c)]?C(0x16d)+b['baseDir']:C(0x148),j=a110e['join'](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x176)]||C(0x17a),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x17c)]['client'],'newForm':![],'withTranslations':d['features'][C(0x144)]};f&&(k[C(0x176)]=C(0x158));if(!b[C(0x159)]){const n=a110f[C(0x145)](C(0x13e));n&&await n[C(0x152)](a,b);}let l,m;if(d[C(0x17c)][C(0x15f)]===C(0x17e)){if(d[C(0x17c)][C(0x149)]===C(0x141)){const r=this[C(0x142)]['pathFromApp']({'pathParts':['imports',C(0x16f),C(0x157),C(0x15a)]});l=this['fsi'][C(0x143)]({'pathParts':[r],'config':d});}else{const s=this[C(0x142)][C(0x14a)]({'pathParts':[C(0x15b),C(0x16f),C(0x15f),'routes.js']});l=this[C(0x142)][C(0x143)]({'pathParts':[s],'config':d});}const o=this[C(0x142)]['readFileLines'](l)[C(0x14b)]((t,u)=>{const D=C;return t[D(0x138)](D(0x156))?u+0x1:null;})['filter'](t=>t!==null);let p=this[C(0x142)][C(0x177)](l)[C(0x14b)]((t,u)=>{const E=C;return t[E(0x138)]('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x15c)](t=>t!==null),q=this[C(0x142)]['readFileLines'](l)[C(0x14b)]((t,u)=>{const F=C;return t[F(0x138)](F(0x172))?u+0x1:null;})[C(0x15c)](t=>t!==null);p[C(0x153)]>0x0&&q[C(0x153)]>0x0&&(k['newForm']=!![]);m=this['fsi'][C(0x174)]({'srcPath':'route/route.js','framework':'react','context':k,'config':d});if(p[C(0x153)]>0x0||q[C(0x153)]>0x0){this[C(0x142)][C(0x183)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x153)]>0x0)q=this[C(0x142)][C(0x177)](l)['map']((t,u)=>{const G=C;return t['includes'](G(0x172))?u+0x1:null;})[C(0x15c)](t=>t!==null),this[C(0x142)][C(0x183)]({'filePath':l,'content':'\x09{'+k[C(0x163)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this['fsi'][C(0x177)](l)[C(0x14b)]((t,u)=>{const H=C;return t['includes'](H(0x133))?u+0x1:null;})['filter'](t=>t!==null),this[C(0x142)][C(0x183)]({'filePath':l,'content':'\x09{'+k[C(0x163)]+'}','lineNumber':p[0x0]})):Log[C(0x14c)](C(0x175)+l);}else{const t=this[C(0x142)][C(0x177)](l)['map'](w=>{const I=C;return w[I(0x138)](I(0x178));}),u=t[C(0x132)](!![])>-0x1,v=u?C(0x17d):C(0x167);this[C(0x142)][C(0x170)]({'filePath':l,'content':C(0x154)+m+C(0x154),'begin':C(0x135),'end':v});}}else{if(d[C(0x17c)][C(0x15f)]===C(0x15d)){const w=this['fsi']['pathFromApp']({'pathParts':[C(0x15b),C(0x16f),'client',C(0x15a)]});l=this[C(0x142)][C(0x143)]({'pathParts':[w],'config':d}),m=this[C(0x142)]['templateContent']({'srcPath':C(0x165),'context':k}),this[C(0x142)][C(0x14f)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x13b)](f);}});