@maka/maka-cli 4.5.32 → 4.5.34

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 (133) hide show
  1. package/bundle/obf/package.json +1 -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/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/tool.js +1 -1
  117. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/https/https.class.js +1 -1
  125. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  126. package/bundle/obf/src/tools/log/log.class.js +1 -1
  127. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  129. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  131. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  133. package/package.json +1 -1
@@ -1 +1 @@
1
- function a95c(){const C=['withMethods','1713806SWANQV','withFixtures','none','injectIntoFile','Publications','register-','template','constructor','toString','API\x20boundaries\x20to\x20create','api/resolvers.js','15961131WGEcJP','index.','REST\x20API','withRest','-api\x27;','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','15IYrAXv','rpc-methods.','-api.','tsx','findGenerator','installMeteorPackage','checkMeteorPackage','apollo','options','fixtures.','withValue','api','push','api/typeDefs.js','404476WXBboG','Fixtures','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','pathFromApp','Resolvers);\x0a\x0a','withPubs','1411413knXWaR','rest','graphql','error','server','typeList.push(','engines','1675338aVOoNl','30VtbFpW','mongo','checkbox','.app-tests.','maka\x20{generate,\x20g}:{api}\x20<resource-name>','api/publications.js','startup','notice','rest-api.','maka:rest','api/api.js','TypeDefs);\x0a','publications.','9703834jtAjea','ddp-rate-limiter','/graphql/resolvers','\x27;\x0a','fsi','injectAtEndOfFile','imports','dir','\x0aimport\x20{\x20resolvers\x20as\x20','search','/imports/api','No\x20API\x20boundaries\x20selected','Resolvers\x20}\x20from\x20\x27','test','withGql','apiAnswers','includes','3UJJTUQ','import\x20\x27./register-','RPC\x20(Methods)','Verifying\x20meteor\x20package\x20requirements\x20...','maka:check','resolverList.push(','mdg:validated-method','rewriteDestinationPathForEngine','length','create','GraphQL','api/methods.js','(((.+)+)+)+$','if\x20\x5c(typeList','const','exit','5904744eOmujS','getProjectConfig','import\x20{\x20typeDefs\x20as\x20','api/register-api.js','apply'];a95c=function(){return C;};return a95c();}const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0xbd))/0x1+-parseInt(w(0xf9))/0x2*(parseInt(w(0xe3))/0x3)+parseInt(w(0xb7))/0x4*(parseInt(w(0xa9))/0x5)+-parseInt(w(0xc4))/0x6+-parseInt(w(0xd2))/0x7+-parseInt(w(0xf3))/0x8+-parseInt(w(0xa3))/0x9*(-parseInt(w(0xc5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xe8620));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0xa0)]()[y(0xdb)](y(0xef))['toString']()[y(0x9f)](a95a)[y(0xdb)](y(0xef));});a95a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x9e;let f=c[d];return f;},a95d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0xec)]({'name':a95z(0xb4),'aliases':['a'],'usage':a95z(0xc9),'shortDesc':a95z(0xb9),'validOpts':[a95z(0xd9)],'examples':['maka\x20g:api\x20todos']},async function(a,b){const A=a95z;try{const c=this[A(0xd6)][A(0xf4)](),d=[{'name':A(0xe5),'value':A(0xf8)},{'name':A(0xb8),'value':A(0xfa)},{'name':A(0xfd),'value':A(0xbc)}];c[A(0xc3)]['api']===A(0xbe)&&d['push']({'name':A(0xa5),'value':A(0xa6)});c[A(0xc3)][A(0xbf)]===A(0xb0)&&d[A(0xb5)]({'name':A(0xed),'value':A(0xe0)});const f={'type':A(0xc7),'name':A(0xe1),'message':A(0xa1),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xb1)](f);g[A(0xeb)]===0x0&&(Log[A(0xc0)](A(0xdd)),process['exit'](0x1)),this[A(0xd6)][A(0xb3)](c,async()=>{const B=A,h=this[B(0xd6)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0xd9)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xc3)][B(0xb4)],'graphql':c[B(0xc3)][B(0xbf)],'test':c[B(0xc3)]['test'],'noRename':!![],'withPubs':g[B(0xe2)](B(0xbc)),'withFixtures':g[B(0xe2)](B(0xfa)),'withMethods':g[B(0xe2)](B(0xf8)),'withRest':g[B(0xe2)](B(0xa6))};let n='js';c[B(0xc3)]['js']===B(0xac)&&(n='ts');(!this[B(0xd6)][B(0xaf)](B(0xce))||!this[B(0xd6)][B(0xaf)](B(0xe7))||!this[B(0xd6)]['checkMeteorPackage'](B(0xd3))||!this[B(0xd6)]['checkMeteorPackage'](B(0xe9))||!this[B(0xd6)][B(0xaf)](B(0xc6)))&&(Log[B(0xcc)](B(0xe6)),await this[B(0xd6)][B(0xae)](B(0xa8),{'cwd':h}));const o=a95e[B(0xad)]('collection');o&&await o['invoke']([j],{'config':c,'where':B(0xc1)});c[B(0xc3)]['api']===B(0xbe)&&(m['withRest']&&this[B(0xd6)][B(0x9e)]({'srcPath':B(0xcf),'destPath':this['fsi'][B(0xba)]({'pathParts':[B(0xd8),B(0xb4),b[B(0xd9)],j,B(0xcd)+n]}),'context':m,'config':c}));m[B(0xf8)]&&this[B(0xd6)][B(0x9e)]({'srcPath':B(0xee),'destPath':this[B(0xd6)]['pathFromApp']({'pathParts':[B(0xd8),B(0xb4),b[B(0xd9)],j,B(0xaa)+n]}),'context':m,'config':c});m['withFixtures']&&this[B(0xd6)][B(0x9e)]({'srcPath':'api/fixtures.js','destPath':this[B(0xd6)][B(0xba)]({'pathParts':['imports',B(0xb4),b[B(0xd9)],j,B(0xb2)+n]}),'context':m,'config':c});c['engines'][B(0xdf)]!==B(0xfb)&&this[B(0xd6)][B(0x9e)]({'srcPath':'api/tests.js','destPath':this['fsi'][B(0xba)]({'pathParts':[B(0xd8),B(0xb4),b[B(0xd9)],j,j+B(0xc8)+n]}),'context':m,'config':c});m[B(0xbc)]&&this[B(0xd6)][B(0x9e)]({'srcPath':B(0xca),'destPath':this[B(0xd6)][B(0xba)]({'pathParts':[B(0xd8),B(0xb4),b[B(0xd9)],j,B(0xd1)+n]}),'context':m,'config':c});if(c[B(0xc3)][B(0xbf)]===B(0xb0)){if(g[B(0xe2)](B(0xe0))){const q=this[B(0xd6)][B(0xba)]({'pathParts':[B(0xd8),B(0xcb),B(0xc1),B(0xa4)+c[B(0xc3)]['js']]}),r=this[B(0xd6)][B(0xea)]({'pathParts':[q],'config':c}),s=this[B(0xd6)][B(0xba)]({'pathParts':[B(0xd8),B(0xb4),b[B(0xd9)],j,B(0xbf),'typeDefs.'+n]}),t=B(0xdc)+l+j+'/graphql/typeDefs';this[B(0xd6)][B(0x9e)]({'srcPath':B(0xb6),'destPath':s,'context':m,'config':c}),this['fsi']['injectAtBeginningOfFile']({'filePath':r,'content':B(0xf5)+k+'TypeDefs\x20}\x20from\x20\x27'+t+B(0xd5)}),this[B(0xd6)]['injectIntoFile']({'filePath':r,'content':B(0xc2)+k+B(0xd0),'begin':'const','end':B(0xf0)});const u=this['fsi'][B(0xba)]({'pathParts':[B(0xd8),B(0xb4),b['dir'],j,B(0xbf),'resolvers.'+n]}),v=B(0xdc)+l+j+B(0xd4);this[B(0xd6)][B(0x9e)]({'srcPath':B(0xa2),'destPath':u,'context':m,'config':c}),this[B(0xd6)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0xda)+k+B(0xde)+v+'\x27;'}),this[B(0xd6)][B(0xfc)]({'filePath':r,'content':B(0xe8)+k+B(0xbb),'begin':B(0xf1),'end':'if\x20\x5c(typeList'});}}this['fsi']['template']({'srcPath':B(0xf6),'destPath':this[B(0xd6)][B(0xba)]({'pathParts':[B(0xd8),B(0xcb),B(0xc1),B(0xfe)+j+B(0xab)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xd6)][B(0xba)]({'pathParts':[B(0xd8),B(0xcb),'server','index.'+c[B(0xc3)]['js']]});this['fsi'][B(0xd7)]({'filePath':p,'content':B(0xe4)+j+B(0xa7)});});}catch(h){console['log'](h),process[A(0xf2)](0x0);}});
1
+ function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a95d(a,b);}function a95c(){const C=['exit','api/publications.js','9BhbmRl','withRest','tsx','withPubs','collection','maka\x20g:api\x20todos','typeDefs.','rest','mongo','GraphQL','4ctJVwi','withFixtures','Verifying\x20meteor\x20package\x20requirements\x20...','const','pathFromApp','graphql','REST\x20API','create','server','ddp-rate-limiter','toString','register-','7968202MTKjgk','length','apply','8088JAfKwu','\x27;\x0a','installMeteorPackage','1866630bdSVfR','getProjectConfig','RPC\x20(Methods)','checkMeteorPackage','.app-tests.','withMethods','findGenerator','\x0aimport\x20{\x20resolvers\x20as\x20','Publications','resolverList.push(','apiAnswers','engines','-api\x27;','push','import\x20{\x20typeDefs\x20as\x20','log','api/tests.js','37015zgNdDN','api/methods.js','fsi','notice','rpc-methods.','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','114HvbhyR','api','template','constructor','includes','No\x20API\x20boundaries\x20selected','Resolvers\x20}\x20from\x20\x27','imports','index.','rewriteDestinationPathForEngine','827979XpAcHy','api/fixtures.js','withGql','search','320QOLaxN','api/api.js','startup','injectAtBeginningOfFile','invoke','maka\x20{generate,\x20g}:{api}\x20<resource-name>','794592Dthcnt','api/typeDefs.js','maka:rest','options','apollo','injectIntoFile','withValue','25893vXyygM','/imports/api','Resolvers);\x0a\x0a','(((.+)+)+)+$','injectAtEndOfFile','test','dir','/graphql/typeDefs','fixtures.','typeList.push(','import\x20\x27./register-','none','12YufrDv','/graphql/resolvers','api/resolvers.js'];a95c=function(){return C;};return a95c();}const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=parseInt(w(0x1da))/0x1+-parseInt(w(0x1a7))/0x2*(parseInt(w(0x1e4))/0x3)+-parseInt(w(0x1de))/0x4*(-parseInt(w(0x1ca))/0x5)+parseInt(w(0x1d0))/0x6*(parseInt(w(0x1eb))/0x7)+-parseInt(w(0x1b6))/0x8*(-parseInt(w(0x1fc))/0x9)+parseInt(w(0x1b9))/0xa+parseInt(w(0x1b3))/0xb*(-parseInt(w(0x1f7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x67880));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0x1b5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0x1b1)]()[y(0x1dd)]('(((.+)+)+)+$')[y(0x1b1)]()[y(0x1d3)](a95a)[y(0x1dd)](y(0x1ee));});a95a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0x1ae)]({'name':a95z(0x1d1),'aliases':['a'],'usage':a95z(0x1e3),'shortDesc':a95z(0x1cf),'validOpts':[a95z(0x1f1)],'examples':[a95z(0x1a2)]},async function(a,b){const A=a95z;try{const c=this[A(0x1cc)][A(0x1ba)](),d=[{'name':A(0x1bb),'value':A(0x1be)},{'name':'Fixtures','value':A(0x1a8)},{'name':A(0x1c1),'value':A(0x1ff)}];c[A(0x1c4)][A(0x1d1)]==='rest'&&d[A(0x1c6)]({'name':A(0x1ad),'value':A(0x1fd)});c[A(0x1c4)]['graphql']===A(0x1e8)&&d[A(0x1c6)]({'name':A(0x1a6),'value':A(0x1dc)});const f={'type':'checkbox','name':A(0x1c3),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1e7)](f);g[A(0x1b4)]===0x0&&(Log['error'](A(0x1d5)),process[A(0x1fa)](0x1)),this[A(0x1cc)][A(0x1ea)](c,async()=>{const B=A,h=this['fsi'][B(0x1ab)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x1f1)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1c4)][B(0x1d1)],'graphql':c[B(0x1c4)]['graphql'],'test':c[B(0x1c4)][B(0x1f0)],'noRename':!![],'withPubs':g[B(0x1d4)](B(0x1ff)),'withFixtures':g[B(0x1d4)](B(0x1a8)),'withMethods':g['includes'](B(0x1be)),'withRest':g[B(0x1d4)](B(0x1fd))};let n='js';c[B(0x1c4)]['js']===B(0x1fe)&&(n='ts');(!this[B(0x1cc)]['checkMeteorPackage'](B(0x1e6))||!this[B(0x1cc)][B(0x1bc)]('maka:check')||!this[B(0x1cc)]['checkMeteorPackage'](B(0x1b0))||!this[B(0x1cc)][B(0x1bc)]('mdg:validated-method')||!this[B(0x1cc)][B(0x1bc)](B(0x1a5)))&&(Log[B(0x1cd)](B(0x1a9)),await this['fsi'][B(0x1b8)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a95e[B(0x1bf)](B(0x200));o&&await o[B(0x1e2)]([j],{'config':c,'where':B(0x1af)});c[B(0x1c4)][B(0x1d1)]===B(0x1a4)&&(m[B(0x1fd)]&&this[B(0x1cc)][B(0x1d2)]({'srcPath':B(0x1df),'destPath':this[B(0x1cc)][B(0x1ab)]({'pathParts':['imports','api',b[B(0x1f1)],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0x1cc)][B(0x1d2)]({'srcPath':B(0x1cb),'destPath':this[B(0x1cc)][B(0x1ab)]({'pathParts':[B(0x1d7),B(0x1d1),b['dir'],j,B(0x1ce)+n]}),'context':m,'config':c});m[B(0x1a8)]&&this[B(0x1cc)][B(0x1d2)]({'srcPath':B(0x1db),'destPath':this['fsi'][B(0x1ab)]({'pathParts':[B(0x1d7),B(0x1d1),b[B(0x1f1)],j,B(0x1f3)+n]}),'context':m,'config':c});c[B(0x1c4)][B(0x1f0)]!==B(0x1f6)&&this[B(0x1cc)][B(0x1d2)]({'srcPath':B(0x1c9),'destPath':this[B(0x1cc)][B(0x1ab)]({'pathParts':[B(0x1d7),B(0x1d1),b[B(0x1f1)],j,j+B(0x1bd)+n]}),'context':m,'config':c});m[B(0x1ff)]&&this[B(0x1cc)][B(0x1d2)]({'srcPath':B(0x1fb),'destPath':this[B(0x1cc)][B(0x1ab)]({'pathParts':['imports',B(0x1d1),b[B(0x1f1)],j,'publications.'+n]}),'context':m,'config':c});if(c[B(0x1c4)][B(0x1ac)]===B(0x1e8)){if(g['includes'](B(0x1dc))){const q=this[B(0x1cc)][B(0x1ab)]({'pathParts':[B(0x1d7),B(0x1e0),B(0x1af),B(0x1d8)+c[B(0x1c4)]['js']]}),r=this[B(0x1cc)][B(0x1d9)]({'pathParts':[q],'config':c}),s=this[B(0x1cc)][B(0x1ab)]({'pathParts':[B(0x1d7),B(0x1d1),b[B(0x1f1)],j,B(0x1ac),B(0x1a3)+n]}),t=B(0x1ec)+l+j+B(0x1f2);this['fsi']['template']({'srcPath':B(0x1e5),'destPath':s,'context':m,'config':c}),this[B(0x1cc)][B(0x1e1)]({'filePath':r,'content':B(0x1c7)+k+'TypeDefs\x20}\x20from\x20\x27'+t+B(0x1b7)}),this[B(0x1cc)][B(0x1e9)]({'filePath':r,'content':B(0x1f4)+k+'TypeDefs);\x0a','begin':B(0x1aa),'end':'if\x20\x5c(typeList'});const u=this[B(0x1cc)][B(0x1ab)]({'pathParts':['imports','api',b[B(0x1f1)],j,B(0x1ac),'resolvers.'+n]}),v='/imports/api'+l+j+B(0x1f8);this[B(0x1cc)][B(0x1d2)]({'srcPath':B(0x1f9),'destPath':u,'context':m,'config':c}),this['fsi']['injectAtBeginningOfFile']({'filePath':r,'content':B(0x1c0)+k+B(0x1d6)+v+'\x27;'}),this[B(0x1cc)][B(0x1e9)]({'filePath':r,'content':B(0x1c2)+k+B(0x1ed),'begin':B(0x1aa),'end':'if\x20\x5c(typeList'});}}this['fsi']['template']({'srcPath':'api/register-api.js','destPath':this[B(0x1cc)][B(0x1ab)]({'pathParts':[B(0x1d7),B(0x1e0),'server',B(0x1b2)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x1ab)]({'pathParts':[B(0x1d7),B(0x1e0),'server',B(0x1d8)+c[B(0x1c4)]['js']]});this[B(0x1cc)][B(0x1ef)]({'filePath':p,'content':B(0x1f5)+j+B(0x1c5)});});}catch(h){console[A(0x1c8)](h),process[A(0x1fa)](0x0);}});
@@ -1 +1 @@
1
- const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x1c1))/0x1+-parseInt(k(0x1b8))/0x2*(-parseInt(k(0x1b0))/0x3)+parseInt(k(0x1c6))/0x4+parseInt(k(0x1cb))/0x5+-parseInt(k(0x1bf))/0x6*(-parseInt(k(0x1b9))/0x7)+parseInt(k(0x1cc))/0x8+-parseInt(k(0x1ad))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xc6115));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a96d(a,b);}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x1aa)]()[m(0x1cd)](m(0x1cf))[m(0x1aa)]()[m(0x1c9)](a96a)[m(0x1cd)](m(0x1cf));});function a96c(){const q=['error','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','getProjectConfig','tsx','3855580DXNdfw','engines','\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','constructor','collection','2158090AlHymG','532232vaSJLK','search','apply','(((.+)+)+)+$','notice','template','fsi','where','col','toString','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','collection/tests.js','11652840WtYvRU','appPathPrefix','dir','40593JAgwsV','startup','resourceName','test','withValue','collections','.app-tests.','pathFromApp','112uplXgC','1743jFWzrt','import\x20\x27./collections','imports','maka:check','maka\x20g:collection\x20todos','checkMeteorPackage','27906eMlfBU','mongo','1271832AEkLli'];a96c=function(){return q;};return a96c();}a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a96n(0x1ca),'aliases':[a96n(0x1a9)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a96n(0x1ab),'validOpts':['dir','where'],'description':a96n(0x1c8),'examples':[a96n(0x1bd)]},async function(a,b){const o=a96n;try{const c=this['fsi'][o(0x1b7)]({}),d=this[o(0x1d2)][o(0x1c4)]();this[o(0x1d2)][o(0x1b4)](d,async()=>{const p=o,f=paramCase(b[p(0x1b2)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x1b2)]),'fileName':f,'where':b[p(0x1a8)],'test':d[p(0x1c7)][p(0x1b3)],'noRename':!![]};let h='js';d[p(0x1c7)]['js']===p(0x1c5)&&(h='ts');!this[p(0x1d2)][p(0x1be)](p(0x1c0))&&(Log[p(0x1d0)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0x1d2)]['installMeteorPackage']('mongo',{'cwd':c}));!this[p(0x1d2)][p(0x1be)](p(0x1bc))&&(Log[p(0x1d0)](p(0x1c3)),await this[p(0x1d2)]['installMeteorPackage'](p(0x1bc),{'cwd':c}));this[p(0x1d2)][p(0x1d1)]({'srcPath':'collection/collection.js','destPath':this['fsi'][p(0x1b7)]({'pathParts':['imports',p(0x1b1),b[p(0x1ae)],p(0x1b5),b[p(0x1af)],f+'.'+h]}),'context':g,'config':d});d[p(0x1c7)][p(0x1b3)]!=='none'&&this[p(0x1d2)][p(0x1d1)]({'srcPath':p(0x1ac),'destPath':this[p(0x1d2)][p(0x1b7)]({'pathParts':[p(0x1bb),p(0x1b1),b['appPathPrefix'],'collections',b[p(0x1af)],f+p(0x1b6)+h]}),'context':g,'config':d});const i=b[p(0x1af)]?'/'+b[p(0x1af)]+'/':'/',j=this[p(0x1d2)]['pathFromApp']({'pathParts':['imports',p(0x1b1),b[p(0x1ae)],'index.'+d[p(0x1c7)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':j,'content':p(0x1ba)+i+f+'\x27;'});});}catch(f){Log[o(0x1c2)](f);}});
1
+ const a96m=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x15e))/0x1+-parseInt(k(0x169))/0x2*(-parseInt(k(0x15b))/0x3)+-parseInt(k(0x16b))/0x4*(-parseInt(k(0x157))/0x5)+-parseInt(k(0x167))/0x6*(parseInt(k(0x15f))/0x7)+-parseInt(k(0x181))/0x8+-parseInt(k(0x16f))/0x9*(parseInt(k(0x160))/0xa)+parseInt(k(0x15a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xbc429));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 l=a96d;return a96a['toString']()[l(0x16d)](l(0x165))['toString']()[l(0x17b)](a96a)[l(0x16d)](l(0x165));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a96m(0x163)]({'name':a96m(0x164),'aliases':['col'],'usage':a96m(0x178),'checkWhere':!![],'shortDesc':a96m(0x17e),'validOpts':[a96m(0x156),a96m(0x16c)],'description':'\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','examples':[a96m(0x179)]},async function(a,b){const n=a96m;try{const c=this[n(0x175)][n(0x171)]({}),d=this[n(0x175)]['getProjectConfig']();this[n(0x175)][n(0x17c)](d,async()=>{const o=n,f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x173)]),'collectionName':pascalCase(b[o(0x173)]),'fileName':f,'where':b[o(0x16c)],'test':d[o(0x15d)]['test'],'noRename':!![]};let h='js';d[o(0x15d)]['js']===o(0x17f)&&(h='ts');!this[o(0x175)]['checkMeteorPackage'](o(0x158))&&(Log[o(0x180)](o(0x15c)),await this[o(0x175)][o(0x16a)](o(0x158),{'cwd':c}));!this['fsi']['checkMeteorPackage'](o(0x174))&&(Log[o(0x180)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[o(0x175)][o(0x16a)](o(0x174),{'cwd':c}));this[o(0x175)][o(0x17a)]({'srcPath':'collection/collection.js','destPath':this['fsi'][o(0x171)]({'pathParts':[o(0x172),'startup',b[o(0x17d)],o(0x166),b['dir'],f+'.'+h]}),'context':g,'config':d});d[o(0x15d)][o(0x16e)]!==o(0x162)&&this[o(0x175)]['template']({'srcPath':o(0x177),'destPath':this[o(0x175)][o(0x171)]({'pathParts':[o(0x172),o(0x161),b[o(0x17d)],o(0x166),b[o(0x156)],f+o(0x176)+h]}),'context':g,'config':d});const i=b[o(0x156)]?'/'+b[o(0x156)]+'/':'/',j=this['fsi'][o(0x171)]({'pathParts':[o(0x172),o(0x161),b[o(0x17d)],o(0x168)+d[o(0x15d)]['js']]});this[o(0x175)]['injectAtEndOfFile']({'filePath':j,'content':o(0x170)+i+f+'\x27;'});});}catch(f){Log[n(0x159)](f);}});function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x156;let f=c[d];return f;},a96d(a,b);}function a96c(){const p=['maka:check','fsi','.app-tests.','collection/tests.js','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','maka\x20g:collection\x20todos','template','constructor','withValue','appPathPrefix','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','tsx','notice','4236536fGMjoe','dir','30KuemIg','mongo','error','17895130pvRwNG','24LRyTGL','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','engines','264183GgiQRp','5980338XKUoym','10xNUpnl','startup','none','create','collection','(((.+)+)+)+$','collections','6HQnggp','index.','94462BgDEUX','installMeteorPackage','925856nOxtpY','where','search','test','8768385gTFQLD','import\x20\x27./collections','pathFromApp','imports','resourceName'];a96c=function(){return p;};return a96c();}
@@ -1 +1 @@
1
- function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x137;let f=c[d];return f;},a97d(a,b);}const a97r=a97d;(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(0x137))/0x1*(parseInt(o(0x13c))/0x2)+parseInt(o(0x15e))/0x3*(-parseInt(o(0x16d))/0x4)+-parseInt(o(0x165))/0x5*(parseInt(o(0x162))/0x6)+-parseInt(o(0x13e))/0x7*(parseInt(o(0x150))/0x8)+-parseInt(o(0x169))/0x9*(parseInt(o(0x158))/0xa)+parseInt(o(0x166))/0xb+parseInt(o(0x174))/0xc*(parseInt(o(0x17f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xada80));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a97d;if(c){const e=c[p(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const q=a97d;return a97a['toString']()[q(0x157)]('(((.+)+)+)+$')['toString']()[q(0x141)](a97a)[q(0x157)](q(0x184));});a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=['comp'];Generator[a97r(0x153)]({'name':a97r(0x14d),'aliases':aliases,'usage':a97r(0x181),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':['baseDir'],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const s=a97r;try{const c=[s(0x160),s(0x159),s(0x16e),'layouts'];if(b[s(0x140)]&&!c[s(0x14e)](b[s(0x140)])){Log[s(0x14f)](s(0x13a)+b[s(0x140)]+'\x22'),Log[s(0x14f)](s(0x17a)+c[s(0x13f)](',\x20'));throw new UsageError();}const d=this[s(0x16c)][s(0x16f)](),f=b[s(0x140)]?s(0x163)+b[s(0x140)]:s(0x151),g=this[s(0x16c)]['pathFromApp']({'pathParts':[f,b['dir'],b[s(0x156)],paramCase(b[s(0x156)])]}),h=await this['fsi'][s(0x173)]();this[s(0x16c)][s(0x175)](h,async()=>{const t=s;typeof h[t(0x168)]['test']===t(0x182)&&(h[t(0x168)][t(0x17d)]=h['template'][t(0x17d)]===t(0x13d)?!![]:![],this['fsi'][t(0x180)](t(0x17d),h['template'][t(0x17d)]));typeof h[t(0x168)][t(0x15d)]==='string'&&(h[t(0x168)][t(0x15d)]=h['template'][t(0x15d)]===t(0x13d)?!![]:![],this[t(0x16c)][t(0x180)](t(0x15d),h[t(0x168)][t(0x15d)]));typeof h[t(0x168)]['js']==='string'&&(h[t(0x168)]['js']=h[t(0x168)]['js']===t(0x13d)?!![]:![],this[t(0x16c)][t(0x180)]('js',h['template']['js']));!h[t(0x164)]&&(h[t(0x164)]={});!b['root']&&!this[t(0x16c)][t(0x178)]('ramda')&&(Log[t(0x167)](t(0x149)),await this['fsi']['installNpmPackage'](t(0x17e),{'cwd':d}));if(!b['root']&&!this[t(0x16c)]['checkNpmPackage'](t(0x144))){Log[t(0x14f)](t(0x14a));return;}const i={'name':pascalCase(b[t(0x156)]),'myPath':a97e[t(0x15b)](this['fsi']['pathFromProject']({}),g),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x156)]),'camelCaseName':camelCase(b[t(0x156)]),'fileName':paramCase(b[t(0x156)]),'graphql':h['engines'][t(0x16a)],'features':h[t(0x164)],'client':h[t(0x170)][t(0x152)],'api':h[t(0x170)][t(0x179)],'ssr':h[t(0x170)]['ssr'],'test':h['engines'][t(0x17d)],'theme':h[t(0x170)][t(0x171)],'isLayout':![],'isComponent':!![],'withTranslations':h['features']['withTranslations']};this[t(0x16c)][t(0x168)]({'srcPath':'component/component.js','destPath':g+'.js','context':i,'framework':'react','config':h});h[t(0x170)][t(0x17d)]!==t(0x148)&&this[t(0x16c)][t(0x168)]({'srcPath':t(0x161),'destPath':g+'.tests.js','context':i,'framework':'react','config':h});h['template']['css']&&(this[t(0x16c)][t(0x168)]({'srcPath':t(0x17c),'destPath':g+t(0x14b),'context':Object[t(0x15a)]({},i,{'className':paramCase(b[t(0x156)])}),'config':h}),this[t(0x16c)][t(0x155)]({'filePath':g+'.'+h[t(0x170)]['js'],'content':t(0x15f)+i[t(0x138)]+'.'+h['engines'][t(0x15d)]+'\x27;'}));const j=b[t(0x147)]?'/'+b['dir']+'/':'/',k=''+f+j+i['fileName']+'/'+i['fileName'];let l;if(h[t(0x170)]['ssr']===t(0x13d)){const m=this[t(0x16c)]['pathFromApp']({'pathParts':[t(0x139),t(0x14c),t(0x17b),t(0x145)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x16c)][t(0x143)]({'pathParts':[t(0x139),'startup',t(0x152),t(0x145)]});l=this['fsi'][t(0x176)]({'pathParts':[n],'config':h});}h[t(0x170)]['client']===t(0x144)||h[t(0x170)][t(0x152)]===t(0x13b)?(h[t(0x170)]['js']==='tsx'?this[t(0x16c)][t(0x155)]({'filePath':l,'content':t(0x16b)+i[t(0x177)]+t(0x146)+k+'\x27;\x0a'}):this[t(0x16c)][t(0x155)]({'filePath':l,'content':t(0x16b)+i[t(0x177)]+t(0x146)+k+'.'+h[t(0x170)]['js']+t(0x15c)}),this[t(0x16c)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0x177)]+t(0x183)})):this['fsi'][t(0x142)]({'filePath':l,'content':t(0x154)+k+'.'+h[t(0x170)]['js']+t(0x15c)});});}catch(i){Log[s(0x14f)](i);}});function a97c(){const u=['2eDTAaU','cssCaseName','imports','Invalid\x20directory\x20option\x20\x22','reflux','1073092WoouFm','true','3903802BywetJ','join','baseDir','constructor','injectAtEndOfFile','pathFromApp','react','templates.js','\x20}\x20from\x20\x27','dir','none','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.css','startup','component','includes','error','16IPliYy','/imports/ui/components','client','create','import\x20\x27','injectAtBeginningOfFile','resourceName','search','1109180AmNLGp','components','assign','relative','\x27;\x0a','css','3QmNSAh','import\x20\x27./','hooks','test/test.js','234ZvJDFa','/imports/ui/','features','45705RqWfri','14296887QHXMVe','warn','template','63JHQmKY','graphql','import\x20{\x20','fsi','2685364ItFdie','pages','findAppDirectory','engines','theme','apply','getProjectConfig','40851708TlDaJg','withValue','rewriteDestinationPathForEngine','className','checkNpmPackage','api','Valid\x20options\x20are:\x20','lib','template/template.css','test','ramda','13xYVQdH','setTemplate','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','string','\x20};\x0a','(((.+)+)+)+$'];a97c=function(){return u;};return a97c();}
1
+ const a97r=a97d;(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(0xa9))/0x1*(parseInt(o(0xc4))/0x2)+parseInt(o(0xac))/0x3*(parseInt(o(0xca))/0x4)+parseInt(o(0xb5))/0x5*(parseInt(o(0xcb))/0x6)+-parseInt(o(0xf4))/0x7*(-parseInt(o(0xb1))/0x8)+-parseInt(o(0xde))/0x9*(-parseInt(o(0xd5))/0xa)+-parseInt(o(0xab))/0xb*(parseInt(o(0xdf))/0xc)+parseInt(o(0xbf))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x5e81a));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a97d;if(c){const e=c[p(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const q=a97d;return a97a[q(0xdd)]()[q(0xad)](q(0xba))[q(0xdd)]()[q(0xdb)](a97a)[q(0xad)](q(0xba));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xa8;let f=c[d];return f;},a97d(a,b);}a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a97c(){const u=['checkNpmPackage','join','5590uWOYkL','error','relative','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','test/test.js','css','constructor','fsi','toString','1053PJArao','280044QMqKTx','apply','Valid\x20options\x20are:\x20','/imports/ui/','root','ramda','setTemplate','installNpmPackage','template','component','injectAtBeginningOfFile','template/template.css','ssr','react','theme','import\x20{\x20','\x27;\x0a','\x20}\x20from\x20\x27','create','hooks','pathFromApp','7oArgzM','dir','string','Invalid\x20directory\x20option\x20\x22','6vjuWaJ','imports','209nidyFF','178488UwgckU','search','resourceName','fileName','\x20};\x0a','1263464slYXtA','lib','includes','withValue','50fyVwvc','withTranslations','import\x20\x27','.tests.js','baseDir','(((.+)+)+)+$','test','tsx','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','client','2330549AlvSuW','startup','reflux','none','assign','87042PSurXe','/imports/ui/components','export\x20{\x20','injectAtEndOfFile','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','import\x20\x27./','12KQPbCA','306318QDzXYK','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','rewriteDestinationPathForEngine','maka\x20g:comp\x20todos/todos-item','className','features','engines','graphql'];a97c=function(){return u;};return a97c();}import{UsageError}from'../error.js';const aliases=['comp'];Generator[a97r(0xf1)]({'name':a97r(0xe8),'aliases':aliases,'usage':a97r(0xcc),'shortDesc':a97r(0xbd),'validOpts':[a97r(0xb9)],'examples':[a97r(0xce)]},async function(a,b){const s=a97r;try{const c=[s(0xf2),'components','pages','layouts'];if(b[s(0xb9)]&&!c[s(0xb3)](b[s(0xb9)])){Log[s(0xd6)](s(0xa8)+b[s(0xb9)]+'\x22'),Log[s(0xd6)](s(0xe1)+c[s(0xd4)](',\x20'));throw new UsageError();}const d=this[s(0xdc)]['findAppDirectory'](),f=b[s(0xb9)]?s(0xe2)+b[s(0xb9)]:s(0xc5),g=this[s(0xdc)]['pathFromApp']({'pathParts':[f,b['dir'],paramCase(b[s(0xae)]),paramCase(b[s(0xae)])]}),h=await this[s(0xdc)]['getProjectConfig']();this['fsi'][s(0xb4)](h,async()=>{const t=s;typeof h[t(0xe7)][t(0xbb)]===t(0xf6)&&(h[t(0xe7)]['test']=h['template'][t(0xbb)]==='true'?!![]:![],this[t(0xdc)][t(0xe5)](t(0xbb),h[t(0xe7)][t(0xbb)]));typeof h[t(0xe7)][t(0xda)]==='string'&&(h['template'][t(0xda)]=h[t(0xe7)][t(0xda)]==='true'?!![]:![],this[t(0xdc)]['setTemplate'](t(0xda),h[t(0xe7)][t(0xda)]));typeof h['template']['js']===t(0xf6)&&(h[t(0xe7)]['js']=h[t(0xe7)]['js']==='true'?!![]:![],this[t(0xdc)]['setTemplate']('js',h[t(0xe7)]['js']));!h['features']&&(h[t(0xd0)]={});!b[t(0xe3)]&&!this[t(0xdc)][t(0xd3)](t(0xe4))&&(Log['warn'](t(0xd8)),await this[t(0xdc)][t(0xe6)]('ramda',{'cwd':d}));if(!b[t(0xe3)]&&!this['fsi'][t(0xd3)](t(0xec))){Log['error'](t(0xc8));return;}const i={'name':pascalCase(b[t(0xae)]),'myPath':a97e[t(0xd7)](this[t(0xdc)]['pathFromProject']({}),g),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0xae)]),'camelCaseName':camelCase(b[t(0xae)]),'fileName':paramCase(b['resourceName']),'graphql':h[t(0xd1)][t(0xd2)],'features':h[t(0xd0)],'client':h[t(0xd1)][t(0xbe)],'api':h[t(0xd1)]['api'],'ssr':h['engines'][t(0xeb)],'test':h['engines']['test'],'theme':h[t(0xd1)][t(0xed)],'isLayout':![],'isComponent':!![],'withTranslations':h['features'][t(0xb6)]};this[t(0xdc)][t(0xe7)]({'srcPath':'component/component.js','destPath':g+'.js','context':i,'framework':t(0xec),'config':h});h[t(0xd1)][t(0xbb)]!==t(0xc2)&&this[t(0xdc)][t(0xe7)]({'srcPath':t(0xd9),'destPath':g+t(0xb8),'context':i,'framework':t(0xec),'config':h});h[t(0xe7)][t(0xda)]&&(this[t(0xdc)]['template']({'srcPath':t(0xea),'destPath':g+'.css','context':Object[t(0xc3)]({},i,{'className':paramCase(b[t(0xae)])}),'config':h}),this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0xd1)]['js'],'content':t(0xc9)+i['cssCaseName']+'.'+h[t(0xd1)][t(0xda)]+'\x27;'}));const j=b[t(0xf5)]?'/'+b[t(0xf5)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0xaf)];let l;if(h[t(0xd1)][t(0xeb)]==='true'){const m=this['fsi'][t(0xf3)]({'pathParts':[t(0xaa),t(0xc0),t(0xb2),'templates.js']});l=this['fsi'][t(0xcd)]({'pathParts':[m],'config':h});}else{const n=this[t(0xdc)][t(0xf3)]({'pathParts':[t(0xaa),t(0xc0),t(0xbe),'templates.js']});l=this[t(0xdc)][t(0xcd)]({'pathParts':[n],'config':h});}h[t(0xd1)][t(0xbe)]===t(0xec)||h[t(0xd1)][t(0xbe)]===t(0xc1)?(h['engines']['js']===t(0xbc)?this['fsi'][t(0xe9)]({'filePath':l,'content':t(0xee)+i['className']+t(0xf0)+k+'\x27;\x0a'}):this[t(0xdc)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0xee)+i[t(0xcf)]+t(0xf0)+k+'.'+h[t(0xd1)]['js']+t(0xef)}),this[t(0xdc)][t(0xc7)]({'filePath':l,'content':t(0xc6)+i['className']+t(0xb0)})):this[t(0xdc)][t(0xc7)]({'filePath':l,'content':t(0xb7)+k+'.'+h['engines']['js']+t(0xef)});});}catch(i){Log['error'](i);}});
@@ -1 +1 @@
1
- const a98k=a98d;function a98c(){const n=['713529laqUPH','6jsLcvI','5sPBBjp','toString','maka\x20{generate,\x20g}:{config}\x20<name>','config/settings.json','3726522eUbilF','resourceName','config','fsi','7RSpSox','308423YCsRzt','(((.+)+)+)+$','production','maka\x20g:config\x20production','isDocker','search','pathFromProject','config/process.env','withValue','ubuntu','684712PoEYqy','9831646UAApyH','45kXznwt','1754950WYBkfc','getProjectConfig','3238964uzMVjj','create','appName','dev','apply','constructor','template','Generate\x20configuration\x20settings.'];a98c=function(){return n;};return a98c();}(function(a,b){const h=a98d,c=a();while(!![]){try{const d=-parseInt(h(0x15b))/0x1+parseInt(h(0x151))/0x2*(parseInt(h(0x150))/0x3)+parseInt(h(0x148))/0x4+-parseInt(h(0x152))/0x5*(parseInt(h(0x156))/0x6)+parseInt(h(0x15a))/0x7*(-parseInt(h(0x143))/0x8)+-parseInt(h(0x145))/0x9*(-parseInt(h(0x146))/0xa)+-parseInt(h(0x144))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x78154));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0x153)]()[j(0x160)](j(0x15c))[j(0x153)]()[j(0x14d)](a98a)[j(0x160)](j(0x15c));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x13f;let f=c[d];return f;},a98d(a,b);}Generator[a98k(0x149)]({'name':a98k(0x158),'usage':a98k(0x154),'shortDesc':a98k(0x14f),'validOpts':['isDocker'],'examples':[a98k(0x15e)]},function(a,b){const l=a98k,c=this[l(0x159)][l(0x147)]();this[l(0x159)][l(0x141)](c,async()=>{const m=l,d={'app':c[m(0x14a)],'appFileCase':paramCase(c[m(0x14a)]),'name':pascalCase(b[m(0x157)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':m(0x142),'isDocker':b[m(0x15f)]};let e=a[0x0];if(e===m(0x14b))e='development';else e==='prod'&&(e=m(0x15d));const f=this[m(0x159)][m(0x13f)]({'pathParts':[m(0x158),e,'settings.json']});this[m(0x159)][m(0x14e)]({'srcPath':m(0x155),'destPath':f,'context':d,'config':c});if(!b[m(0x15f)]){const g=this[m(0x159)][m(0x13f)]({'pathParts':[m(0x158),e,'process.env']});this[m(0x159)][m(0x14e)]({'srcPath':m(0x140),'destPath':g,'context':d,'config':c});}});});
1
+ const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x180))/0x1*(-parseInt(h(0x186))/0x2)+-parseInt(h(0x17a))/0x3*(parseInt(h(0x18b))/0x4)+parseInt(h(0x16f))/0x5+-parseInt(h(0x179))/0x6*(-parseInt(h(0x16d))/0x7)+-parseInt(h(0x188))/0x8+parseInt(h(0x183))/0x9*(-parseInt(h(0x17b))/0xa)+-parseInt(h(0x18e))/0xb*(-parseInt(h(0x170))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x43509));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0x17f)]()[j(0x182)](j(0x17d))[j(0x17f)]()['constructor'](a98a)['search'](j(0x17d));});function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x16d;let f=c[d];return f;},a98d(a,b);}a98a();import{Generator}from'../generator.js';function a98c(){const n=['settings.json','dev','resourceName','pathFromProject','create','6yEcIst','12378XNayJP','398190SrEbNP','appName','(((.+)+)+)+$','production','toString','1uoJvbt','Generate\x20configuration\x20settings.','search','36gbGdjL','process.env','maka\x20g:config\x20production','6676AVzRzK','config','1505288qPAKlf','config/process.env','fsi','4EnPZYO','isDocker','development','44704nmGOwK','template','apply','1757763EoIhUq','withValue','1430205cZgGmA','276tsaWaB','maka\x20{generate,\x20g}:{config}\x20<name>','getProjectConfig','ubuntu'];a98c=function(){return n;};return a98c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98k(0x178)]({'name':a98k(0x187),'usage':a98k(0x171),'shortDesc':a98k(0x181),'validOpts':['isDocker'],'examples':[a98k(0x185)]},function(a,b){const l=a98k,c=this[l(0x18a)][l(0x172)]();this[l(0x18a)][l(0x16e)](c,async()=>{const m=l,d={'app':c[m(0x17c)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x176)]),'fileName':paramCase(b[m(0x176)]),'camelCase':camelCase(b[m(0x176)]),'userName':m(0x173),'isDocker':b[m(0x18c)]};let e=a[0x0];if(e===m(0x175))e=m(0x18d);else e==='prod'&&(e=m(0x17e));const f=this[m(0x18a)][m(0x177)]({'pathParts':[m(0x187),e,m(0x174)]});this[m(0x18a)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x18a)][m(0x177)]({'pathParts':[m(0x187),e,m(0x184)]});this[m(0x18a)][m(0x18f)]({'srcPath':m(0x189),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a99q=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x76;let f=c[d];return f;},a99d(a,b);}(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0x7d))/0x1+-parseInt(n(0x85))/0x2*(parseInt(n(0x94))/0x3)+-parseInt(n(0x8d))/0x4+parseInt(n(0xaf))/0x5+parseInt(n(0x8f))/0x6+parseInt(n(0x82))/0x7*(-parseInt(n(0x8b))/0x8)+-parseInt(n(0x7f))/0x9*(-parseInt(n(0xaa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xa184b));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x84)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0xa9)]()[p(0x83)](p(0x91))[p(0xa9)]()[p(0x95)](a99a)[p(0x83)](p(0x91));});a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a99c(){const t=['engines','config.','list','register-','warn','17464OSFjpL','fsi','4519268fRqyJW','dir','2946912wsQZvD','startup','(((.+)+)+)+$','imports','pgsql','435204FlPsqB','constructor','mssql','type','conn.','MS\x20SQL','injectAtEndOfFile','dbc/conn.js',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','maka\x20g:dbc\x20geoserver\x20--type=pgsql','-dbc.','better-sqlite3','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','options','dbc/register-dbc.js','error','create','tsx','maka\x20g:dbc\x20todos\x20--type=sqlite','Invalid\x20type\x20','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','toString','20faDNfl','index.','checkNpmPackage','sqlite','server','2369530GzIwUJ','dbc/config.js','dbc','resourceName','DB\x20Driver','pathFromApp','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','template','294935IwKdsM','PostgreSQL','6280506QGMyCC','import\x20\x27./register-','installNpmPackage','1841HVqrVJ','search','apply','4sHXnFl'];a99c=function(){return t;};return a99c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a99q(0xa4)]({'name':a99q(0x77),'usage':a99q(0x7b),'shortDesc':a99q(0xa8),'validOpts':[a99q(0x97),'dir'],'examples':[a99q(0x9d),'maka\x20g:dbc\x20azure\x20--type=mssql',a99q(0xa6)]},async function(a,b){const r=a99q;try{const c=await this[r(0x8c)]['getProjectConfig'](),d=this[r(0x8c)][r(0x7a)]({}),f=paramCase(b[r(0x78)]);if(!b[r(0x97)]){const h={'type':r(0x88),'name':'dbAnswer','message':r(0x79),'choices':[{'name':r(0x7e),'value':r(0x93)},{'name':r(0x99),'value':r(0x96)}]},{dbAnswer:i}=await Actions[r(0xa1)](h);i&&(b[r(0x97)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0x78)]),'type':b[r(0x97)],'engine':c[r(0x86)]['js'],'noRename':!![]};this[r(0x8c)]['withValue'](c,async()=>{const s=r;let j='js';c[s(0x86)]['js']===s(0xa5)&&(j='ts');const k=[s(0x96),s(0x93)];if(k['indexOf'](g[s(0x97)])<0x0){const m=g[s(0x97)]?g[s(0x97)]:'(blank)';Log[s(0xa3)](s(0xa7)+m+s(0x9c));return;}b[s(0x97)]==='pgsql'&&!this[s(0x8c)][s(0xac)]('pg')&&(Log[s(0x8a)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x81)]('pg',{'cwd':d}));b[s(0x97)]===s(0x96)&&!this[s(0x8c)][s(0xac)](s(0x96))&&(Log[s(0x8a)](s(0xa0)),await this['fsi'][s(0x81)](s(0x96),{'cwd':d}));b[s(0x97)]===s(0xad)&&!this['fsi']['checkNpmPackage'](s(0x9f))&&(Log[s(0x8a)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x8c)][s(0x81)](s(0x9f),{'cwd':d}));this[s(0x8c)][s(0x7c)]({'srcPath':s(0x76),'destPath':this[s(0x8c)][s(0x7a)]({'pathParts':[s(0x92),s(0x90),'server',s(0x77),b[s(0x8e)],f,s(0x87)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0x9b),'destPath':this[s(0x8c)]['pathFromApp']({'pathParts':[s(0x92),s(0x90),s(0xae),s(0x77),b[s(0x8e)],f,s(0x98)+j]}),'context':g,'config':c}),this[s(0x8c)]['template']({'srcPath':s(0xa2),'destPath':this[s(0x8c)]['pathFromApp']({'pathParts':[s(0x92),s(0x90),'server',s(0x89)+f+s(0x9e)+j]}),'context':g,'config':c});const l=this[s(0x8c)][s(0x7a)]({'pathParts':[s(0x92),'startup','server',s(0xab)+c[s(0x86)]['js']]});this[s(0x8c)][s(0x9a)]({'filePath':l,'content':s(0x80)+f+'-dbc\x27;'});});}catch(j){Log[r(0xa3)](j);}});
1
+ const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0xfe))/0x1+-parseInt(n(0x112))/0x2+parseInt(n(0xf6))/0x3+parseInt(n(0x130))/0x4+-parseInt(n(0x111))/0x5*(-parseInt(n(0x119))/0x6)+parseInt(n(0x12e))/0x7*(-parseInt(n(0xfa))/0x8)+parseInt(n(0xf9))/0x9*(-parseInt(n(0x103))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xca997));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x108)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x11b)]()['search'](p(0x127))[p(0x11b)]()[p(0x107)](a99a)[p(0x11a)](p(0x127));});a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a99q(0x10f)]({'name':a99q(0x11f),'usage':a99q(0x12f),'shortDesc':a99q(0x12b),'validOpts':[a99q(0x131),'dir'],'examples':[a99q(0x115),'maka\x20g:dbc\x20azure\x20--type=mssql',a99q(0x101)]},async function(a,b){const r=a99q;try{const c=await this[r(0x12c)][r(0x126)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b['resourceName']);if(!b[r(0x131)]){const h={'type':r(0x128),'name':r(0x123),'message':r(0x124),'choices':[{'name':r(0x10e),'value':'pgsql'},{'name':r(0xf5),'value':r(0x117)}]},{dbAnswer:i}=await Actions[r(0x100)](h);i&&(b[r(0x131)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0x11e)]),'camelCase':camelCase(b['resourceName']),'type':b[r(0x131)],'engine':c[r(0x11c)]['js'],'noRename':!![]};this[r(0x12c)][r(0x121)](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0x10d)&&(j='ts');const k=[s(0x117),s(0x110)];if(k[s(0x132)](g[s(0x131)])<0x0){const m=g['type']?g[s(0x131)]:s(0xfb);Log[s(0x129)](s(0x104)+m+s(0x116));return;}b[s(0x131)]===s(0x110)&&!this[s(0x12c)]['checkNpmPackage']('pg')&&(Log[s(0xff)](s(0x106)),await this[s(0x12c)][s(0x12a)]('pg',{'cwd':d}));b['type']===s(0x117)&&!this[s(0x12c)]['checkNpmPackage']('mssql')&&(Log[s(0xff)](s(0x113)),await this[s(0x12c)][s(0x12a)](s(0x117),{'cwd':d}));b[s(0x131)]===s(0x125)&&!this[s(0x12c)][s(0x10c)](s(0xf4))&&(Log[s(0xff)](s(0xfc)),await this[s(0x12c)][s(0x12a)](s(0xf4),{'cwd':d}));this[s(0x12c)][s(0x109)]({'srcPath':'dbc/config.js','destPath':this['fsi'][s(0x133)]({'pathParts':[s(0xf7),s(0x114),s(0x118),s(0x11f),b['dir'],f,s(0x120)+j]}),'context':g,'config':c}),this[s(0x12c)][s(0x109)]({'srcPath':s(0xfd),'destPath':this[s(0x12c)]['pathFromApp']({'pathParts':['imports',s(0x114),s(0x118),s(0x11f),b[s(0x105)],f,s(0x12d)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0x10b),'destPath':this[s(0x12c)][s(0x133)]({'pathParts':['imports',s(0x114),'server',s(0xf8)+f+s(0x122)+j]}),'context':g,'config':c});const l=this[s(0x12c)][s(0x133)]({'pathParts':[s(0xf7),s(0x114),s(0x118),'index.'+c[s(0x11c)]['js']]});this['fsi'][s(0x102)]({'filePath':l,'content':s(0x10a)+f+s(0x11d)});});}catch(j){Log[r(0x129)](j);}});function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xf4;let f=c[d];return f;},a99d(a,b);}function a99c(){const t=['template','import\x20\x27./register-','dbc/register-dbc.js','checkNpmPackage','tsx','PostgreSQL','create','pgsql','5WICviq','1312590BzbDbH','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','startup','maka\x20g:dbc\x20geoserver\x20--type=pgsql',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','mssql','server','4266798HZfXfl','search','toString','engines','-dbc\x27;','resourceName','dbc','config.','withValue','-dbc.','dbAnswer','DB\x20Driver','sqlite','getProjectConfig','(((.+)+)+)+$','list','error','installNpmPackage','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','fsi','conn.','5085605hVQjSG','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','2465120NPrAaZ','type','indexOf','pathFromApp','better-sqlite3','MS\x20SQL','4300380ZDVcQl','imports','register-','9396666dxRrCX','16jvIpop','(blank)','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','dbc/conn.js','1222373rcVHJA','warn','options','maka\x20g:dbc\x20todos\x20--type=sqlite','injectAtEndOfFile','10goHKMZ','Invalid\x20type\x20','dir','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','constructor','apply'];a99c=function(){return t;};return a99c();}
@@ -1 +1 @@
1
- const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x137))/0x1+-parseInt(f(0x124))/0x2*(-parseInt(f(0x122))/0x3)+parseInt(f(0x131))/0x4+parseInt(f(0x11e))/0x5+-parseInt(f(0x11c))/0x6+-parseInt(f(0x126))/0x7*(-parseInt(f(0x136))/0x8)+-parseInt(f(0x11f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xaf142));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x138)]()[h(0x139)](h(0x12c))[h(0x138)]()[h(0x12a)](a100a)[h(0x139)](h(0x12c));});function a100c(){const l=['8pWHWHB','1106844JMoOUZ','toString','search','cert','5167212acWZdJ','Dockerfile','3442050plPOve','25434009GyAHOV','fsi','build','12LymPjt','join','338298DLTJfN','getProjectConfig','3982636DEWbLA','maka\x20g:dockerfile','docker/Dockerfile','getGlobalConfig','constructor','appName','(((.+)+)+)+$','apply','Generate\x20an\x20updated\x20dockerfile','service','template','5454108RMpwfe','withValue','isFile','findProjectDirectory','dockerfile'];a100c=function(){return l;};return a100c();}a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x11b;let f=c[d];return f;},a100d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator['create']({'name':a100i(0x135),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a100i(0x12e),'validOpts':[],'noResource':!![],'examples':[a100i(0x127)]},async function(){const j=a100i;try{const a=await this['fsi'][j(0x125)](),b=await this['fsi'][j(0x129)](),c=this[j(0x120)][j(0x134)]();this[j(0x120)][j(0x132)](a,async()=>{const k=j,d={'app':b[k(0x12b)],'config':a,'appPath':a100e[k(0x123)](c,'app'),'bundlePath':a100e[k(0x123)](c,k(0x121),'app.tar.gz'),'useCert':this[k(0x120)][k(0x133)](b[k(0x11b)])};this[k(0x120)][k(0x130)]({'srcPath':k(0x128),'destPath':a100e[k(0x123)](c,k(0x11d)),'framework':k(0x12f),'context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=-parseInt(f(0x112))/0x1*(parseInt(f(0x111))/0x2)+parseInt(f(0x127))/0x3+-parseInt(f(0x11d))/0x4*(-parseInt(f(0x11b))/0x5)+-parseInt(f(0x117))/0x6*(parseInt(f(0x113))/0x7)+parseInt(f(0x110))/0x8+parseInt(f(0x121))/0x9+parseInt(f(0x12a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xc3119));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a['toString']()[h(0x118)](h(0x10e))['toString']()[h(0x122)](a100a)[h(0x118)](h(0x10e));});function a100c(){const l=['build','155IlVmWs','docker/Dockerfile','47836ArIRPp','service','error','isFile','9825084ntvTrG','constructor','maka\x20g:dockerfile','cert','getProjectConfig','findProjectDirectory','1054149XwzdWn','apply','Dockerfile','3418570tEDBTH','(((.+)+)+)+$','dockerfile','2707872pZgyXX','3076vXpxJK','886rSCwJA','116361JztIbR','withValue','fsi','join','120bYcBCB','search','appName'];a100c=function(){return l;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x10e;let f=c[d];return f;},a100d(a,b);}a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator['create']({'name':a100i(0x10f),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a100i(0x123)]},async function(){const j=a100i;try{const a=await this[j(0x115)][j(0x125)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0x115)][j(0x126)]();this[j(0x115)][j(0x114)](a,async()=>{const k=j,d={'app':b[k(0x119)],'config':a,'appPath':a100e[k(0x116)](c,'app'),'bundlePath':a100e['join'](c,k(0x11a),'app.tar.gz'),'useCert':this[k(0x115)][k(0x120)](b[k(0x124)])};this[k(0x115)]['template']({'srcPath':k(0x11c),'destPath':a100e[k(0x116)](c,k(0x129)),'framework':k(0x11e),'context':d,'config':a});});}catch(d){Log[j(0x11f)](d);}});
@@ -1 +1 @@
1
- const a101s=a101d;(function(a,b){const p=a101d,c=a();while(!![]){try{const d=parseInt(p(0x198))/0x1*(-parseInt(p(0x17b))/0x2)+-parseInt(p(0x181))/0x3*(parseInt(p(0x178))/0x4)+-parseInt(p(0x182))/0x5*(-parseInt(p(0x193))/0x6)+parseInt(p(0x19e))/0x7+-parseInt(p(0x18c))/0x8+parseInt(p(0x190))/0x9*(parseInt(p(0x16f))/0xa)+-parseInt(p(0x1aa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xf1796));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a101d;if(c){const e=c[q(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const r=a101d;return a101a[r(0x1a6)]()['search'](r(0x16d))[r(0x1a6)]()[r(0x165)](a101a)[r(0x169)](r(0x16d));});a101a();import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x162;let f=c[d];return f;},a101d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a101s(0x1ad)],'examples':['maka\x20g:hook\x20cool-hook']},async function(a,b){const t=a101s;Log[t(0x16e)](t(0x17e)+a[0x0]+t(0x18f));try{const c=[t(0x189),t(0x1ab),t(0x18e),t(0x167)];if(b[t(0x1ad)]&&!c[t(0x173)](b['baseDir'])){Log['error'](t(0x177)+b[t(0x1ad)]+'\x22'),Log[t(0x17f)](t(0x179)+c[t(0x186)](',\x20'));throw new UsageError();}const d=this[t(0x16a)]['checkNpmPackage'](t(0x166));if(!d){Log[t(0x17f)](t(0x1a5));throw new UsageError();}const f=this[t(0x16a)]['pathFromApp'](b),g=b[t(0x1ad)]?t(0x163)+b[t(0x1ad)]:t(0x16b),h=this[t(0x16a)][t(0x174)]({'pathParts':[g,b[t(0x1a3)],b['resourceName'],paramCase(b['resourceName'])]}),i=await this['fsi'][t(0x1a4)]();this['fsi']['withValue'](i,async()=>{const u=t;typeof i[u(0x164)][u(0x1a0)]===u(0x19d)&&(i['template']['css']=i['template'][u(0x1a0)]==='true'?!![]:![],this[u(0x16a)][u(0x176)](u(0x1a0),i[u(0x164)][u(0x1a0)]));i[u(0x168)][u(0x1a9)]===u(0x183)&&!this['fsi']['checkNpmPackage'](u(0x170))&&(Log[u(0x192)](u(0x17a)),await this['fsi'][u(0x19c)](u(0x195),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0x197)]),'camelCaseName':camelCase(b[u(0x197)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[u(0x197)]),'graphql':i[u(0x168)][u(0x1a9)],'theme':i[u(0x168)][u(0x1a8)],'features':i['features'],'myPath':a101e[u(0x191)](this[u(0x16a)][u(0x16c)]({}),h),'fileName':paramCase(b[u(0x197)]),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x19b)][u(0x1ac)]};this['fsi'][u(0x164)]({'srcPath':'hook/hook.js','destPath':h+u(0x1a1),'context':j,'config':i,'framework':u(0x166)});i[u(0x164)][u(0x1a0)]&&(this[u(0x16a)]['template']({'srcPath':'template/template.css','destPath':h+'.css','context':Object[u(0x18d)]({},j,{'className':j[u(0x1a2)]}),'config':i}),this[u(0x16a)]['injectAtBeginningOfFile']({'filePath':h+'.'+i[u(0x168)]['js'],'content':u(0x19a)+j['fileName']+'.'+i[u(0x168)]['css']+'\x27;'}));i[u(0x168)]['test']!==u(0x18b)&&this[u(0x16a)][u(0x164)]({'srcPath':u(0x162),'destPath':h+u(0x188),'framework':u(0x166),'context':j,'config':i});const k=b[u(0x1a3)]?'/'+b[u(0x1a3)]+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x171)];let m;if(i[u(0x168)][u(0x194)]==='true'){const n=this['fsi'][u(0x174)]({'pathParts':[u(0x172),u(0x199),u(0x185),u(0x180)]});m=this[u(0x16a)][u(0x18a)]({'pathParts':[n],'config':i});}else{const o=this[u(0x16a)][u(0x174)]({'pathParts':[u(0x172),u(0x199),'client',u(0x180)]});m=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[o],'config':i});}i['engines']['client']==='react'?(i[u(0x168)]['js']==='tsx'?this[u(0x16a)]['injectAtBeginningOfFile']({'filePath':m,'content':'import\x20{\x20'+j['className']+u(0x17c)+l+u(0x19f)}):this[u(0x16a)][u(0x187)]({'filePath':m,'content':u(0x196)+j[u(0x184)]+u(0x17c)+l+'.'+i[u(0x168)]['js']+u(0x19f)}),this['fsi'][u(0x1a7)]({'filePath':m,'content':'export\x20{\x20'+j['className']+'\x20};\x0a'})):this['fsi'][u(0x1a7)]({'filePath':m,'content':u(0x175)+l+'.'+i[u(0x168)]['js']+u(0x19f)});});}catch(j){Log[t(0x17f)](j);}});function a101c(){const v=['/imports/ui/hooks','pathFromProject','(((.+)+)+)+$','notice','14470xxvboY','@apollo/client','fileName','imports','includes','pathFromApp','import\x20\x27','setTemplate','Invalid\x20directory\x20option\x20\x22','48036xCXtJz','Valid\x20options\x20are:\x20','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','598SJHwsV','\x20}\x20from\x20\x27','apply','Creating\x20','error','templates.js','24plrPeP','5WEIFtQ','apollo','className','lib','join','injectAtBeginningOfFile','.app-tests.js','hooks','rewriteDestinationPathForEngine','none','26896rYiKNQ','assign','pages','\x20hook...','6066CieCeg','relative','warn','8745162AwoZkk','ssr','@apollo/client\x20isomorphic-fetch','import\x20{\x20','resourceName','3023svQAgq','startup','import\x20\x27./','features','installNpmPackage','string','3186274PusAVo','\x27;\x0a','css','.js','cssCaseName','dir','getProjectConfig','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','toString','injectAtEndOfFile','theme','graphql','9851578EsvATO','components','withTranslations','baseDir','test/test.js','/imports/ui/','template','constructor','react','layouts','engines','search','fsi'];a101c=function(){return v;};return a101c();}
1
+ const a101s=a101d;(function(a,b){const p=a101d,c=a();while(!![]){try{const d=-parseInt(p(0x81))/0x1+parseInt(p(0xa5))/0x2*(parseInt(p(0x8f))/0x3)+-parseInt(p(0x82))/0x4*(parseInt(p(0xa3))/0x5)+-parseInt(p(0x8e))/0x6*(-parseInt(p(0x7f))/0x7)+-parseInt(p(0x7e))/0x8*(parseInt(p(0x7a))/0x9)+-parseInt(p(0x78))/0xa+parseInt(p(0xba))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xb883e));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a101d;if(c){const e=c[q(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const r=a101d;return a101a[r(0x94)]()['search'](r(0x9e))[r(0x94)]()['constructor'](a101a)['search'](r(0x9e));});a101a();import a101e from'path';function a101c(){const v=['assign','className','baseDir','(((.+)+)+)+$','client','\x20hook...','withTranslations','hook/hook.js','20qNcRSI','.css','2KWPhAR','create','true','includes','rewriteDestinationPathForEngine','react','Valid\x20options\x20are:\x20','import\x20\x27','hook','css','import\x20{\x20','export\x20{\x20','error','pages','theme','/imports/ui/','apollo','pathFromProject','\x27;\x0a','imports','\x20}\x20from\x20\x27','23714878efFdRP','layouts','tsx','@apollo/client\x20isomorphic-fetch','template','import\x20\x27./','join','resourceName','none','880050kckFQt','fsi','153qTdonY','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','withValue','621912cmwQqD','176442dItNJP','setTemplate','241147bBywtf','1307348dClTrC','/imports/ui/hooks','engines','cssCaseName','pathFromApp','warn','injectAtBeginningOfFile','relative','\x20};\x0a','.js','fileName','injectAtEndOfFile','324nRGphb','590445eVDByP','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','apply','.app-tests.js','@apollo/client','toString','notice','features','template/template.css','Creating\x20','dir','graphql'];a101c=function(){return v;};return a101c();}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x75;let f=c[d];return f;},a101d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a101s(0xa6)]({'name':a101s(0xad),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a101s(0x9d)],'examples':['maka\x20g:hook\x20cool-hook']},async function(a,b){const t=a101s;Log[t(0x95)](t(0x98)+a[0x0]+t(0xa0));try{const c=['hooks','components',t(0xb2),t(0xbb)];if(b[t(0x9d)]&&!c[t(0xa8)](b[t(0x9d)])){Log[t(0xb1)]('Invalid\x20directory\x20option\x20\x22'+b[t(0x9d)]+'\x22'),Log['error'](t(0xab)+c[t(0x75)](',\x20'));throw new UsageError();}const d=this[t(0x79)]['checkNpmPackage'](t(0xaa));if(!d){Log[t(0xb1)](t(0x7b));throw new UsageError();}const f=this[t(0x79)][t(0x86)](b),g=b[t(0x9d)]?t(0xb4)+b[t(0x9d)]:t(0x83),h=this[t(0x79)][t(0x86)]({'pathParts':[g,b[t(0x99)],paramCase(b['resourceName']),paramCase(b[t(0x76)])]}),i=await this[t(0x79)]['getProjectConfig']();this[t(0x79)][t(0x7d)](i,async()=>{const u=t;typeof i[u(0xbe)][u(0xae)]==='string'&&(i['template'][u(0xae)]=i[u(0xbe)][u(0xae)]===u(0xa7)?!![]:![],this[u(0x79)][u(0x80)](u(0xae),i[u(0xbe)][u(0xae)]));i[u(0x84)]['graphql']===u(0xb5)&&!this[u(0x79)]['checkNpmPackage'](u(0x93))&&(Log[u(0x87)](u(0x90)),await this[u(0x79)]['installNpmPackage'](u(0xbd),{'cwd':f}));const j={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b['resourceName']),'name':pascalCase(b[u(0x76)]),'graphql':i[u(0x84)][u(0x9a)],'theme':i[u(0x84)][u(0xb3)],'features':i[u(0x96)],'myPath':a101e[u(0x89)](this[u(0x79)][u(0xb6)]({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x96)][u(0xa1)]};this[u(0x79)][u(0xbe)]({'srcPath':u(0xa2),'destPath':h+u(0x8b),'context':j,'config':i,'framework':u(0xaa)});i[u(0xbe)][u(0xae)]&&(this[u(0x79)]['template']({'srcPath':u(0x97),'destPath':h+u(0xa4),'context':Object[u(0x9b)]({},j,{'className':j[u(0x85)]}),'config':i}),this[u(0x79)][u(0x88)]({'filePath':h+'.'+i[u(0x84)]['js'],'content':u(0xbf)+j[u(0x8c)]+'.'+i[u(0x84)][u(0xae)]+'\x27;'}));i[u(0x84)]['test']!==u(0x77)&&this[u(0x79)]['template']({'srcPath':'test/test.js','destPath':h+u(0x92),'framework':'react','context':j,'config':i});const k=b[u(0x99)]?'/'+b[u(0x99)]+'/':'/',l=''+g+k+j[u(0x8c)]+'/'+j[u(0x8c)];let m;if(i['engines']['ssr']===u(0xa7)){const n=this[u(0x79)][u(0x86)]({'pathParts':[u(0xb8),'startup','lib','templates.js']});m=this[u(0x79)][u(0xa9)]({'pathParts':[n],'config':i});}else{const o=this[u(0x79)]['pathFromApp']({'pathParts':[u(0xb8),'startup','client',u(0x7c)]});m=this['fsi'][u(0xa9)]({'pathParts':[o],'config':i});}i[u(0x84)][u(0x9f)]===u(0xaa)?(i[u(0x84)]['js']===u(0xbc)?this[u(0x79)][u(0x88)]({'filePath':m,'content':u(0xaf)+j['className']+u(0xb9)+l+u(0xb7)}):this[u(0x79)]['injectAtBeginningOfFile']({'filePath':m,'content':u(0xaf)+j['className']+'\x20}\x20from\x20\x27'+l+'.'+i[u(0x84)]['js']+u(0xb7)}),this[u(0x79)][u(0x8d)]({'filePath':m,'content':u(0xb0)+j[u(0x9c)]+u(0x8a)})):this[u(0x79)]['injectAtEndOfFile']({'filePath':m,'content':u(0xac)+l+'.'+i[u(0x84)]['js']+u(0xb7)});});}catch(j){Log[t(0xb1)](j);}});
@@ -1 +1 @@
1
- const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x98))/0x1*(-parseInt(h(0x91))/0x2)+-parseInt(h(0x7a))/0x3*(parseInt(h(0x8a))/0x4)+-parseInt(h(0x8d))/0x5+parseInt(h(0x82))/0x6+-parseInt(h(0x89))/0x7+parseInt(h(0x8c))/0x8+parseInt(h(0x8e))/0x9*(-parseInt(h(0x90))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x3e3c9));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x78;let f=c[d];return f;},a102d(a,b);}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a['toString']()['search']('(((.+)+)+)+$')['toString']()[j(0x78)](a102a)[j(0x86)](j(0x84));});function a102c(){const n=['(blank)','kit','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','467681zLgtly','constructor',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','1356ZieUUT','getProjectConfig','maka\x20g:k\x20city-map\x20--type=leaflet-map','indexOf','fsi','apply','withValue','resourceName','1681884UjwNKy','maka\x20g:kit\x20--type=map','(((.+)+)+)+$','leaflet-map','search','error','notice','3551233UMXvzF','1724FwNcoY','type','3467880EccNNp','79455iyebLZ','63LkRCpS','map','297910QTrNoW','2RYVTBt','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','NIE','login'];a102c=function(){return n;};return a102c();}a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a102k(0x96),'aliases':['k'],'usage':a102k(0x92),'shortDesc':a102k(0x97),'validOpts':[a102k(0x8b)],'examples':[a102k(0x83),a102k(0x7c)]},async function(a,b){const l=a102k;try{const c=this[l(0x7e)][l(0x7b)]();this['fsi'][l(0x80)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x81)]),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]},f=[m(0x85),m(0x94)];if(f[m(0x7d)](d[m(0x8b)])<0x0){const g=d[m(0x8b)]?d['type']:m(0x95);Log['error']('Invalid\x20type\x20'+g+m(0x79));return;}b[m(0x8b)]===m(0x8f)&&Log[m(0x88)](m(0x93)),b['type']===m(0x94)&&Log['notice']('NIE');});}catch(d){Log[l(0x87)](d);}});
1
+ const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x113))/0x1+parseInt(h(0x118))/0x2*(-parseInt(h(0x10e))/0x3)+parseInt(h(0x111))/0x4+parseInt(h(0x120))/0x5+-parseInt(h(0x11f))/0x6+-parseInt(h(0x10f))/0x7*(parseInt(h(0x107))/0x8)+parseInt(h(0x117))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x5e2ad));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x11d)]()[j(0x116)](j(0x101))[j(0x11d)]()['constructor'](a102a)['search']('(((.+)+)+)+$');});a102a();function a102c(){const n=['map','resourceName','maka\x20g:kit\x20--type=map','18WgdfYx','826qGqjLM','maka\x20g:k\x20city-map\x20--type=leaflet-map','35684tVJuTH','Invalid\x20type\x20','132327JyAOdP','fsi','apply','search','12596814GwfLlY','249554mTneOG','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','type','(blank)','indexOf','toString','withValue','2400804AWyHyp','3215905NBofKJ','leaflet-map','(((.+)+)+)+$','NIE','kit','engines','error','login','26096JFgIWk','create','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','notice'];a102c=function(){return n;};return a102c();}import{Generator}from'../generator.js';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x100;let f=c[d];return f;},a102d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x108)]({'name':a102k(0x103),'aliases':['k'],'usage':a102k(0x119),'shortDesc':a102k(0x109),'validOpts':[a102k(0x11a)],'examples':[a102k(0x10d),a102k(0x110)]},async function(a,b){const l=a102k;try{const c=this[l(0x114)]['getProjectConfig']();this[l(0x114)][l(0x11e)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x10c)]),'fileName':paramCase(b[m(0x10c)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[m(0x104)]['js'],'noRename':!![]},f=[m(0x100),'login'];if(f[m(0x11c)](d[m(0x11a)])<0x0){const g=d[m(0x11a)]?d[m(0x11a)]:m(0x11b);Log[m(0x105)](m(0x112)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0x11a)]===m(0x10b)&&Log[m(0x10a)](m(0x102)),b[m(0x11a)]===m(0x106)&&Log[m(0x10a)](m(0x102));});}catch(d){Log[l(0x105)](d);}});
@@ -1 +1 @@
1
- const a103r=a103d;function a103c(){const u=['true','withTranslations','import\x20\x27','hook/hook.js','9mEUoru','tsx','setTemplate','pathFromProject','6120814AfRDPa','\x20}\x20from\x20\x27','Scaffolding\x20for\x20a\x20React\x20Layout.','5653420ZwXVxB','imports','injectAtBeginningOfFile','84AclemK','rewriteDestinationPathForEngine','css','.app-tests.js','react','assign','startup','getProjectConfig','test/test.js','template/template.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','className','pathFromApp','import\x20{\x20','apply','2090334zmzNyG','fsi','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','api','warn','test','checkNpmPackage','template','ramda','graphql','component/component.js','621956NPbTQc','dir','14651752swlwVL','fileName','resourceName','constructor','findAppDirectory','import\x20\x27./','withValue','\x20};\x0a','.js','export\x20{\x20','toString','engines','client','5436895czbjVR','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','create','ssr','\x27;\x0a','string','features','withHooks','search','relative','includes','templates.js','(((.+)+)+)+$','32872IHuCIu'];a103c=function(){return u;};return a103c();}(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x1d3))/0x1+parseInt(o(0x1ef))/0x2*(-parseInt(o(0x1b9))/0x3)+-parseInt(o(0x1b6))/0x4+-parseInt(o(0x1e2))/0x5+parseInt(o(0x1c8))/0x6+parseInt(o(0x1b3))/0x7+parseInt(o(0x1d5))/0x8*(parseInt(o(0x1f4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xaea0a));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a[q(0x1df)]()[q(0x1ea)](q(0x1ee))[q(0x1df)]()[q(0x1d8)](a103a)[q(0x1ea)]('(((.+)+)+)+$');});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a103d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a103r(0x1e4)]({'name':'layout','aliases':aliases,'usage':a103r(0x1ca),'shortDesc':a103r(0x1b5),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8','maka\x20g:l\x20web/safari']},function(a,b){const s=a103r,c='/imports/ui/layouts',d=this[s(0x1c9)][s(0x1d9)](),e=this['fsi'][s(0x1c5)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[s(0x1d7)])]}),f=this[s(0x1c9)][s(0x1c0)]();this[s(0x1c9)][s(0x1db)](f,()=>{const t=s;typeof f['template'][t(0x1cd)]==='string'&&(f[t(0x1cf)][t(0x1cd)]=f[t(0x1cf)]['test']==='true'?!![]:![],this[t(0x1c9)][t(0x1b1)](t(0x1cd),f[t(0x1cf)][t(0x1cd)]));typeof f[t(0x1cf)][t(0x1bb)]===t(0x1e7)&&(f[t(0x1cf)]['css']=f[t(0x1cf)][t(0x1bb)]===t(0x1f0)?!![]:![],this[t(0x1c9)][t(0x1b1)](t(0x1bb),f['template'][t(0x1bb)]));typeof f['template']['js']===t(0x1e7)&&(f[t(0x1cf)]['js']=f[t(0x1cf)]['js']===t(0x1f0)?!![]:![],this[t(0x1c9)]['setTemplate']('js',f[t(0x1cf)]['js']));!f['features']&&(f[t(0x1e8)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x1ec)](g);h&&!this['checkNpmPackage'](t(0x1d0))&&(Log[t(0x1cc)](t(0x1e3)),this['fsi']['installNpmPackage'](t(0x1d0),{'cwd':d}));if(h&&!this[t(0x1ce)](t(0x1bd))){Log[t(0x1cc)](t(0x1c3));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a103e[t(0x1eb)](this[t(0x1c9)][t(0x1b2)]({}),e),'cssCaseName':paramCase(b[t(0x1d7)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x1d7)]),'graphql':f[t(0x1e0)][t(0x1d1)],'features':f[t(0x1e8)],'client':f[t(0x1e0)][t(0x1e1)],'api':f[t(0x1e0)][t(0x1cb)],'ssr':f[t(0x1e0)][t(0x1e5)],'test':f[t(0x1e0)][t(0x1cd)],'theme':f[t(0x1e0)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e8)][t(0x1f1)]};f[t(0x1e8)]?.[t(0x1e9)]||b['withHook']?this['fsi'][t(0x1cf)]({'srcPath':t(0x1f3),'destPath':e+t(0x1dd),'framework':'react','context':i,'config':f}):this[t(0x1c9)][t(0x1cf)]({'srcPath':t(0x1d2),'destPath':e+t(0x1dd),'framework':'react','context':i,'config':f});f[t(0x1e0)]['test']!=='none'&&this[t(0x1c9)][t(0x1cf)]({'srcPath':t(0x1c1),'destPath':e+t(0x1bc),'framework':'react','context':i,'config':f});f[t(0x1cf)][t(0x1bb)]&&(this[t(0x1c9)][t(0x1cf)]({'srcPath':t(0x1c2),'destPath':e+'.css','context':Object[t(0x1be)]({},i,{'className':paramCase(b[t(0x1d7)])}),'config':f}),this[t(0x1c9)][t(0x1b8)]({'filePath':e+'.'+f[t(0x1e0)]['js'],'content':t(0x1da)+i[t(0x1d6)]+'.'+f[t(0x1e0)]['css']+'\x27;'}));const j=b[t(0x1d4)]?'/'+b[t(0x1d4)]+'/':'/',k=''+c+j+i[t(0x1d6)]+'/'+i[t(0x1d6)];let l;if(f[t(0x1e0)]['ssr']==='true'){const m=this[t(0x1c9)][t(0x1c5)]({'pathParts':[t(0x1b7),t(0x1bf),'lib',t(0x1ed)]});l=this[t(0x1c9)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0x1c9)][t(0x1c5)]({'pathParts':[t(0x1b7),'startup','client','templates.js']});l=this[t(0x1c9)][t(0x1ba)]({'pathParts':[n],'config':f});}f[t(0x1e0)]['client']==='react'?(f[t(0x1e0)]['js']===t(0x1f5)?this[t(0x1c9)][t(0x1b8)]({'filePath':l,'content':t(0x1c6)+i[t(0x1c4)]+t(0x1b4)+k+t(0x1e6)}):this[t(0x1c9)][t(0x1b8)]({'filePath':l,'content':t(0x1c6)+i[t(0x1c4)]+t(0x1b4)+k+'.'+f[t(0x1e0)]['js']+t(0x1e6)}),this[t(0x1c9)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1de)+i['className']+t(0x1dc)})):this[t(0x1c9)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1f2)+k+'.'+f[t(0x1e0)]['js']+t(0x1e6)});});});
1
+ function a103c(){const u=['fsi','ssr','rewriteDestinationPathForEngine','client','dir','theme','pathFromProject','\x20};\x0a','constructor','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','checkNpmPackage','split','520088ITPadE','\x20}\x20from\x20\x27','findAppDirectory','460035txQNpA','className','template','assign','apply','28913130BoVxTq','true','tsx','1303355RLdEWp','graphql','setTemplate','maka\x20g:layout\x20mobile/iPhone8','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','withHook','imports','1082410Mmjokb','injectAtBeginningOfFile','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','installNpmPackage','import\x20{\x20','layout','export\x20{\x20','.app-tests.js','3768597etMRPr','withTranslations','/imports/ui/layouts','3841620wfMYOO','\x27;\x0a','2GNSznv','test/test.js','hook/hook.js','getProjectConfig','Scaffolding\x20for\x20a\x20React\x20Layout.','12BSkEut','import\x20\x27./','startup','string','fileName','relative','.css','engines','features','pathFromApp','warn','153ctSDhA','api','injectAtEndOfFile','css','resourceName','test','ramda','withValue','templates.js','none','(((.+)+)+)+$','react'];a103c=function(){return u;};return a103c();}const a103r=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=-parseInt(o(0x126))/0x1*(parseInt(o(0x13b))/0x2)+-parseInt(o(0x136))/0x3+parseInt(o(0x140))/0x4*(-parseInt(o(0x11e))/0x5)+-parseInt(o(0x139))/0x6+parseInt(o(0x12d))/0x7+parseInt(o(0x11b))/0x8*(parseInt(o(0x103))/0x9)+parseInt(o(0x123))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xa4dd5));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xfa;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a['toString']()[q(0x130)](q(0x10d))['toString']()[q(0x117)](a103a)[q(0x130)](q(0x10d));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a103r(0x133),'aliases':aliases,'usage':a103r(0x118),'shortDesc':a103r(0x13f),'validOpts':[],'examples':[a103r(0x129),'maka\x20g:l\x20web/safari']},function(a,b){const s=a103r,c=s(0x138),d=this[s(0x10f)][s(0x11d)](),e=this[s(0x10f)][s(0x101)]({'pathParts':[c,b[s(0x113)],paramCase(b[s(0x107)]),paramCase(b[s(0x107)])]}),f=this[s(0x10f)][s(0x13e)]();this[s(0x10f)][s(0x10a)](f,()=>{const t=s;typeof f[t(0x120)]['test']==='string'&&(f[t(0x120)][t(0x108)]=f[t(0x120)]['test']===t(0x124)?!![]:![],this[t(0x10f)][t(0x128)]('test',f[t(0x120)][t(0x108)]));typeof f[t(0x120)][t(0x106)]===t(0xfb)&&(f[t(0x120)][t(0x106)]=f[t(0x120)][t(0x106)]===t(0x124)?!![]:![],this['fsi'][t(0x128)](t(0x106),f[t(0x120)]['css']));typeof f[t(0x120)]['js']==='string'&&(f[t(0x120)]['js']=f[t(0x120)]['js']==='true'?!![]:![],this[t(0x10f)][t(0x128)]('js',f[t(0x120)]['js']));!f[t(0x100)]&&(f[t(0x100)]={});const g=b['_']?b['_'][0x0][t(0x11a)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x119)]('ramda')&&(Log[t(0x102)](t(0x12a)),this[t(0x10f)][t(0x131)](t(0x109),{'cwd':d}));if(h&&!this[t(0x119)]('react')){Log[t(0x102)](t(0x12f));return;}const i={'name':pascalCase(b[t(0x107)]),'myPath':a103e[t(0xfd)](this['fsi'][t(0x115)]({}),e),'cssCaseName':paramCase(b[t(0x107)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x107)]),'fileName':paramCase(b[t(0x107)]),'graphql':f[t(0xff)][t(0x127)],'features':f[t(0x100)],'client':f['engines'][t(0x112)],'api':f[t(0xff)][t(0x104)],'ssr':f['engines']['ssr'],'test':f[t(0xff)][t(0x108)],'theme':f[t(0xff)][t(0x114)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x100)][t(0x137)]};f[t(0x100)]?.['withHooks']||b[t(0x12b)]?this['fsi'][t(0x120)]({'srcPath':t(0x13d),'destPath':e+'.js','framework':t(0x10e),'context':i,'config':f}):this[t(0x10f)]['template']({'srcPath':'component/component.js','destPath':e+'.js','framework':t(0x10e),'context':i,'config':f});f['engines'][t(0x108)]!==t(0x10c)&&this[t(0x10f)][t(0x120)]({'srcPath':t(0x13c),'destPath':e+t(0x135),'framework':t(0x10e),'context':i,'config':f});f['template'][t(0x106)]&&(this['fsi']['template']({'srcPath':'template/template.css','destPath':e+t(0xfe),'context':Object[t(0x121)]({},i,{'className':paramCase(b[t(0x107)])}),'config':f}),this[t(0x10f)][t(0x12e)]({'filePath':e+'.'+f[t(0xff)]['js'],'content':t(0x141)+i['fileName']+'.'+f[t(0xff)]['css']+'\x27;'}));const j=b[t(0x113)]?'/'+b[t(0x113)]+'/':'/',k=''+c+j+i[t(0xfc)]+'/'+i[t(0xfc)];let l;if(f[t(0xff)][t(0x110)]===t(0x124)){const m=this['fsi'][t(0x101)]({'pathParts':[t(0x12c),'startup','lib',t(0x10b)]});l=this[t(0x10f)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0x10f)][t(0x101)]({'pathParts':[t(0x12c),t(0xfa),t(0x112),t(0x10b)]});l=this[t(0x10f)][t(0x111)]({'pathParts':[n],'config':f});}f['engines'][t(0x112)]===t(0x10e)?(f['engines']['js']===t(0x125)?this[t(0x10f)][t(0x12e)]({'filePath':l,'content':t(0x132)+i[t(0x11f)]+t(0x11c)+k+t(0x13a)}):this[t(0x10f)][t(0x12e)]({'filePath':l,'content':'import\x20{\x20'+i['className']+t(0x11c)+k+'.'+f[t(0xff)]['js']+t(0x13a)}),this[t(0x10f)][t(0x105)]({'filePath':l,'content':t(0x134)+i[t(0x11f)]+t(0x116)})):this[t(0x10f)]['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27'+k+'.'+f['engines']['js']+t(0x13a)});});});
@@ -1 +1 @@
1
- const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x8b))/0x1*(-parseInt(f(0x84))/0x2)+-parseInt(f(0x7e))/0x3*(parseInt(f(0x7d))/0x4)+-parseInt(f(0x7f))/0x5*(-parseInt(f(0x8c))/0x6)+-parseInt(f(0x82))/0x7+-parseInt(f(0x79))/0x8*(-parseInt(f(0x80))/0x9)+-parseInt(f(0x81))/0xa*(parseInt(f(0x86))/0xb)+parseInt(f(0x8a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xb1ca1));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x89)]()['search'](h(0x7c))['toString']()['constructor'](a104a)[h(0x87)](h(0x7c));});a104a();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x79;let f=c[d];return f;},a104d(a,b);}function a104c(){const j=['6WAmSjh','8LvIgUa','maka\x20generate:api\x20Trucks','maka','(((.+)+)+)+$','4dahsnF','4279863oIxckl','3015315JIGrqT','4227867sXkYAL','1941650IGqMwE','2459779VmxKBH','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','5386ZZtNmG','Maka!','55rSuJrk','search','apply','toString','44588796QiTufN','487NLhVAY'];a104c=function(){return j;};return a104c();}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x7b),'shortDesc':a104i(0x85),'validOpts':[],'description':'\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','usage':a104i(0x83),'examples':[a104i(0x7a),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
1
+ const a104h=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x6e))/0x1+-parseInt(f(0x69))/0x2+parseInt(f(0x6f))/0x3+-parseInt(f(0x73))/0x4*(parseInt(f(0x6d))/0x5)+parseInt(f(0x68))/0x6+-parseInt(f(0x71))/0x7+parseInt(f(0x6c))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x75785));const a104b=(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;};}()),a104a=a104b(this,function(){const g=a104d;return a104a[g(0x75)]()[g(0x72)](g(0x6a))[g(0x75)]()[g(0x74)](a104a)[g(0x72)](g(0x6a));});a104a();function a104c(){const i=['2652960Mlsfbh','constructor','toString','Maka!','maka\x20g:hook\x20cool-hook','1017084DIJxCF','1581334XjvhlJ','(((.+)+)+)+$','\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','5575080OeopMP','5KlfFVI','838184SeHcEN','1128897EnyWiG','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','1020726XoyLqF','search'];a104c=function(){return i;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x68;let f=c[d];return f;},a104d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a104h(0x76),'validOpts':[],'description':a104h(0x6b),'usage':a104h(0x70),'examples':['maka\x20generate:api\x20Trucks',a104h(0x77)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x153;let f=c[d];return f;},a105d(a,b);}const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x178))/0x1*(-parseInt(k(0x16c))/0x2)+parseInt(k(0x159))/0x3+-parseInt(k(0x153))/0x4*(-parseInt(k(0x165))/0x5)+-parseInt(k(0x166))/0x6+-parseInt(k(0x16e))/0x7*(parseInt(k(0x17a))/0x8)+-parseInt(k(0x179))/0x9*(-parseInt(k(0x161))/0xa)+-parseInt(k(0x154))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x7b618));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x167)]()[m(0x15e)](m(0x163))[m(0x167)]()['constructor'](a105a)[m(0x15e)](m(0x163));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0x172)]({'name':a105n(0x164),'aliases':['m'],'usage':a105n(0x158),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a105n(0x15c)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a105n;try{const c=this['fsi'][o(0x157)]();this[o(0x17b)][o(0x17c)](c,async()=>{const p=o,d=paramCase(b[p(0x175)]),f={'name':b[p(0x175)],'fileName':d,'className':pascalCase(b[p(0x175)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x15f)]['js']===p(0x170)&&(g='ts');const h=this[p(0x17b)][p(0x15b)]({});(!this[p(0x17b)]['checkMeteorPackage'](p(0x171))||!this[p(0x17b)][p(0x17d)](p(0x176))||!this[p(0x17b)][p(0x17d)](p(0x15a)))&&(Log[p(0x160)](p(0x16a)),this[p(0x17b)][p(0x177)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[p(0x17b)][p(0x16d)]({'srcPath':p(0x162),'destPath':this[p(0x17b)][p(0x15b)]({'pathParts':[p(0x16f),'startup',b[p(0x173)],p(0x169),b[p(0x15c)],d+p(0x174)+g]}),'context':f,'config':c});const i=b[p(0x15c)]?'/'+b[p(0x15c)]+'/':'/',j=this[p(0x17b)][p(0x15b)]({'pathParts':[p(0x16f),'startup',b['appPathPrefix'],p(0x156)+c[p(0x15f)]['js']]});this['fsi'][p(0x15d)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0x168)});});}catch(d){Log[o(0x16b)](d);}});function a105c(){const q=['(((.+)+)+)+$','method','10xkniOW','911436mgxwgQ','toString','-rpc-method\x27;','methods','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','error','224JCMhyC','template','7OSRBQg','imports','tsx','check','create','appPathPrefix','-rpc-method.','resourceName','ddp-rate-limiter','installMeteorPackage','8594chavCM','2192301PvkvkB','1983640HaocVw','fsi','withValue','checkMeteorPackage','337588BvlLiY','15066887ZAuJlj','apply','index.','getProjectConfig','maka\x20{generate,\x20g}:{method,\x20m}\x20name','2700105rBukri','mdg:validated-method','pathFromApp','dir','injectAtEndOfFile','search','engines','warn','10CiFGPx','method/method.js'];a105c=function(){return q;};return a105c();}
1
+ const a105m=a105d;function a105c(){const p=['Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','imports','387sIzunX','100jURzOt','dir','resourceName','warn','ddp-rate-limiter','-rpc-method\x27;','check','121570QWMLqJ','installMeteorPackage','constructor','index.','appPathPrefix','injectAtEndOfFile','toString','withValue','385tOEfaB','61226XwFNoh','18LLEpOg','maka\x20g:method\x20todos','260392eaVfNF','checkMeteorPackage','8490BlrlPu','error','engines','mdg:validated-method','1123437UMrRmb','fsi','startup','-rpc-method.','tsx','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','method/method.js','272432dglCzp','6924uyTmPY','pathFromApp','template'];a105c=function(){return p;};return a105c();}(function(a,b){const k=a105d,c=a();while(!![]){try{const d=parseInt(k(0xf0))/0x1+parseInt(k(0xf3))/0x2+parseInt(k(0x107))/0x3*(parseInt(k(0x102))/0x4)+parseInt(k(0x108))/0x5*(parseInt(k(0xf5))/0x6)+parseInt(k(0xf9))/0x7+-parseInt(k(0x101))/0x8*(-parseInt(k(0xf1))/0x9)+-parseInt(k(0x10f))/0xa*(parseInt(k(0xef))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x3c16d));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 l=a105d;return a105a[l(0x115)]()['search'](l(0xfe))[l(0x115)]()[l(0x111)](a105a)['search'](l(0xfe));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xef;let f=c[d];return f;},a105d(a,b);}Generator['create']({'name':'method','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a105m(0xff),'validOpts':[a105m(0x109)],'examples':[a105m(0xf2)]},function(a,b){const n=a105m;try{const c=this['fsi']['getProjectConfig']();this[n(0xfa)][n(0x116)](c,async()=>{const o=n,d=paramCase(b[o(0x10a)]),f={'name':b[o(0x10a)],'fileName':d,'className':pascalCase(b[o(0x10a)]),'camelCase':camelCase(b[o(0x10a)]),'noRename':!![]};let g='js';c['engines']['js']===o(0xfd)&&(g='ts');const h=this[o(0xfa)][o(0x103)]({});(!this[o(0xfa)]['checkMeteorPackage'](o(0x10e))||!this[o(0xfa)]['checkMeteorPackage'](o(0x10c))||!this[o(0xfa)][o(0xf4)](o(0xf8)))&&(Log[o(0x10b)](o(0x105)),this['fsi'][o(0x110)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[o(0xfa)][o(0x104)]({'srcPath':o(0x100),'destPath':this[o(0xfa)][o(0x103)]({'pathParts':[o(0x106),o(0xfb),b[o(0x113)],'methods',b[o(0x109)],d+o(0xfc)+g]}),'context':f,'config':c});const i=b[o(0x109)]?'/'+b[o(0x109)]+'/':'/',j=this[o(0xfa)][o(0x103)]({'pathParts':[o(0x106),o(0xfb),b[o(0x113)],o(0x112)+c[o(0xf7)]['js']]});this[o(0xfa)][o(0x114)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+o(0x10d)});});}catch(d){Log[n(0xf6)](d);}});
@@ -1 +1 @@
1
- function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xbd;let f=c[d];return f;},a106d(a,b);}const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0xbe))/0x1*(parseInt(l(0xbf))/0x2)+-parseInt(l(0xc5))/0x3*(-parseInt(l(0xc6))/0x4)+parseInt(l(0xe6))/0x5+parseInt(l(0xd6))/0x6+-parseInt(l(0xe3))/0x7*(-parseInt(l(0xe8))/0x8)+-parseInt(l(0xcf))/0x9+parseInt(l(0xe1))/0xa*(-parseInt(l(0xc9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xbcaf8));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0xe2)]()[n(0xca)](n(0xdd))[n(0xe2)]()[n(0xd7)](a106a)[n(0xca)](n(0xdd));});a106a();import a106e from'path';function a106c(){const s=['template/template.js','package/package.js','5404640hMcmKo','pathFromApp','152Rfllhm','.js','engines','packages','tests/server','features','/client/','store','6044yGdVRR','36MjGRRe','hasOwnProperty','ssr','dir','pathFromProject','maka\x20g:package\x20todos:package','45AvSZEa','189452ESnJCw','withValue','relative','22TPCsyC','search','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','/package.js','fsi','package.js','13220550ZGYhrn','layout','forEach','getProjectConfig','resourceName','apply','component','7587600kVWwGm','constructor','pathFromAppWithNoReWrite','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','graphql','client','noRename','(((.+)+)+)+$','template','package','package/','5465140CNVoGN','toString','62657cHsOxC'];a106c=function(){return s;};return a106c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a106o(0xdf),'aliases':['p'],'usage':a106o(0xd9),'shortDesc':a106o(0xcb),'validOpts':[a106o(0xc2)],'examples':[a106o(0xc4)]},async function(a,b){const p=a106o,c=paramCase(b[p(0xd3)]),d=this[p(0xcd)][p(0xe7)]({'pathParts':[p(0xeb),b[p(0xc2)],c]}),e=this[p(0xcd)][p(0xd8)]({'pathParts':[p(0xeb),b[p(0xc2)],c,p(0xce)]}),f=this[p(0xcd)][p(0xd2)]();this['fsi'][p(0xc7)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xd3)]),'myPath':a106e[q(0xc8)](this[q(0xcd)][q(0xc3)]({}),d),'cssCaseName':paramCase(b[q(0xd3)]),'className':pascalCase(b[q(0xd3)]),'camelCaseName':camelCase(b[q(0xd3)]),'fileName':c,'client':f[q(0xea)][q(0xdb)],'graphql':f[q(0xea)][q(0xda)],'ssr':f[q(0xea)][q(0xc1)],'isComponent':b['hasOwnProperty'](q(0xd5)),'isLayout':b['hasOwnProperty'](q(0xd0)),'isStore':b[q(0xc0)](q(0xbd)),'features':f[q(0xed)],'noRename':!![],'theme':f[q(0xea)]['theme']};this['fsi'][q(0xde)]({'srcPath':q(0xe5),'destPath':e,'context':g,'config':f}),g[q(0xdc)]=![];const h=d+q(0xee)+c+q(0xe9);this['fsi'][q(0xde)]({'srcPath':q(0xe4),'destPath':h,'context':g,'config':f});const i=['lib','server','tests/client',q(0xec)];i[q(0xd1)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xe9);this[r(0xcd)][r(0xde)]({'srcPath':r(0xe0)+j+r(0xcc),'destPath':k,'context':g,'config':f});});});});
1
+ const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0x102))/0x1*(-parseInt(l(0x110))/0x2)+-parseInt(l(0xf0))/0x3*(-parseInt(l(0x104))/0x4)+-parseInt(l(0xef))/0x5*(parseInt(l(0xf5))/0x6)+parseInt(l(0x101))/0x7+parseInt(l(0xe9))/0x8*(parseInt(l(0x108))/0x9)+-parseInt(l(0xf3))/0xa*(-parseInt(l(0xe3))/0xb)+-parseInt(l(0x10f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x70f77));function a106c(){const s=['apply','package','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','pathFromAppWithNoReWrite','60855qwsPuC','24pcrFfD','pathFromProject','withValue','4530970NcgHUI','forEach','204GHiSgJ','noRename','template/template.js','lib','store','hasOwnProperty','getProjectConfig','packages','ssr','/package.js','tests/client','relative','3813271BAYdHM','2wbtNAK','constructor','321796HbKKJN','toString','engines','resourceName','27nYDZnP','maka\x20g:package\x20todos:package','component','package/package.js','graphql','server','tests/server','2319192UZqLbd','831058hXdZvL','features','pathFromApp','client','package/','11cBEUMR','(((.+)+)+)+$','fsi','create','search','.js','691752eDQEHO','dir'];a106c=function(){return s;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x105)]()[n(0xe7)]('(((.+)+)+)+$')['toString']()[n(0x103)](a106a)[n(0xe7)](n(0xe4));});function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xe0;let f=c[d];return f;},a106d(a,b);}a106a();import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106o(0xe6)]({'name':a106o(0xec),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a106o(0xed),'validOpts':[a106o(0xea)],'examples':[a106o(0x109)]},async function(a,b){const p=a106o,c=paramCase(b[p(0x107)]),d=this[p(0xe5)][p(0xe0)]({'pathParts':[p(0xfc),b[p(0xea)],c]}),e=this[p(0xe5)][p(0xee)]({'pathParts':[p(0xfc),b['dir'],c,'package.js']}),f=this[p(0xe5)][p(0xfb)]();this[p(0xe5)][p(0xf2)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x107)]),'myPath':a106e[q(0x100)](this[q(0xe5)][q(0xf1)]({}),d),'cssCaseName':paramCase(b[q(0x107)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x107)]),'fileName':c,'client':f[q(0x106)][q(0xe1)],'graphql':f['engines'][q(0x10c)],'ssr':f[q(0x106)][q(0xfd)],'isComponent':b[q(0xfa)](q(0x10a)),'isLayout':b[q(0xfa)]('layout'),'isStore':b[q(0xfa)](q(0xf9)),'features':f[q(0x111)],'noRename':!![],'theme':f[q(0x106)]['theme']};this[q(0xe5)]['template']({'srcPath':q(0x10b),'destPath':e,'context':g,'config':f}),g[q(0xf6)]=![];const h=d+'/client/'+c+q(0xe8);this[q(0xe5)]['template']({'srcPath':q(0xf7),'destPath':h,'context':g,'config':f});const i=[q(0xf8),q(0x10d),q(0xff),q(0x10e)];i[q(0xf4)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xe8);this[r(0xe5)]['template']({'srcPath':r(0xe2)+j+r(0xfe),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a107q=a107d;function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x134;let f=c[d];return f;},a107d(a,b);}(function(a,b){const n=a107d,c=a();while(!![]){try{const d=-parseInt(n(0x13b))/0x1*(-parseInt(n(0x181))/0x2)+-parseInt(n(0x141))/0x3+-parseInt(n(0x17b))/0x4+parseInt(n(0x15c))/0x5+-parseInt(n(0x16d))/0x6+parseInt(n(0x138))/0x7*(-parseInt(n(0x137))/0x8)+parseInt(n(0x139))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xecf41));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a107d;if(c){const e=c[o(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const p=a107d;return a107a['toString']()['search'](p(0x17e))[p(0x145)]()[p(0x160)](a107a)['search']('(((.+)+)+)+$');});function a107c(){const t=['react','html','import\x20\x27','vanilla','true','withValue','12637416RDHMty','7PzoHYA','19848267YmzOcs','layout','3BDrUnp','component/component.js','template/template.html','fileName','template','assign','1069356GcGjGi','getProjectConfig','startup','tsx','toString','import\x20\x27./','layouts','hook/hook.js','fsi','hasOwnProperty','withHook','includes','error','apply','Valid\x20options\x20are:\x20','setTemplate','join','injectAtEndOfFile','test/test.js','store','templates.js','pathFromProject','imports','.app-tests.js','import\x20{\x20','pages','ssr','4520310PRcQFB','components','/imports/ui/pages','features','constructor','dir','checkNpmPackage','hooks','string','rewriteDestinationPathForEngine','withHooks','pathFromApp','\x27;\x0a','injectAtBeginningOfFile','lib','none','warn','366768bWAfCY','api','resourceName','test','\x20};\x0a','client','page','component','baseDir','\x20}\x20from\x20\x27','className','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','Updating\x20npm\x20packages\x20...','theme','1340752XWklwh','engines','css','(((.+)+)+)+$','ramda','/imports/ui/','129054mnDjSP','Generate\x20a\x20page.','.js','create','installNpmPackage'];a107c=function(){return t;};return a107c();}a107a();import a107e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107q(0x184)]({'name':a107q(0x173),'aliases':aliases,'usage':a107q(0x178),'shortDesc':a107q(0x182),'validOpts':[a107q(0x175),a107q(0x14b)],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const r=a107q,c=[r(0x163),r(0x15d),r(0x15a),r(0x147)];if(b[r(0x175)]&&!c[r(0x14c)](b[r(0x175)])){Log[r(0x14d)]('Invalid\x20directory\x20option\x20\x22'+b['baseDir']+'\x22'),Log[r(0x14d)](r(0x14f)+c[r(0x151)](',\x20'));throw new UsageError();}const d=b[r(0x175)]?r(0x180)+b[r(0x175)]:r(0x15e),e=this[r(0x149)]['pathFromApp'](b),f=this[r(0x149)][r(0x167)]({'pathParts':[d,b[r(0x161)],b[r(0x16f)],paramCase(b[r(0x16f)])]}),g=this[r(0x149)][r(0x142)]();this[r(0x149)][r(0x136)](g,()=>{const s=r;typeof g['template'][s(0x187)]==='string'&&(g[s(0x13f)][s(0x187)]=g[s(0x13f)][s(0x187)]==='true'?!![]:![],this[s(0x149)][s(0x150)](s(0x187),g['template']['html']));typeof g[s(0x13f)][s(0x170)]===s(0x164)&&(g[s(0x13f)][s(0x170)]=g[s(0x13f)][s(0x170)]==='true'?!![]:![],this[s(0x149)][s(0x150)](s(0x170),g[s(0x13f)][s(0x170)]));typeof g[s(0x13f)][s(0x17d)]===s(0x164)&&(g['template'][s(0x17d)]=g[s(0x13f)][s(0x17d)]===s(0x135)?!![]:![],this['fsi'][s(0x150)](s(0x17d),g[s(0x13f)][s(0x17d)]));typeof g['template']['js']==='string'&&(g[s(0x13f)]['js']=g[s(0x13f)]['js']===s(0x135)?!![]:![],this['fsi']['setTemplate']('js',g['template']['js']));!g['features']&&(g[s(0x15f)]={});!b['root']&&!this[s(0x149)][s(0x162)]('ramda')&&(Log[s(0x16c)](s(0x179)),this[s(0x149)][s(0x185)](s(0x17f),{'cwd':e}));const h={'name':pascalCase(b[s(0x16f)]),'myPath':a107e['relative'](this[s(0x149)][s(0x156)]({}),f),'cssCaseName':paramCase(b[s(0x16f)]),'className':pascalCase(b[s(0x16f)]),'camelCaseName':camelCase(b[s(0x16f)]),'fileName':paramCase(b[s(0x16f)]),'graphql':g['engines']['graphql'],'features':g['features'],'client':g[s(0x17c)][s(0x172)],'api':g['engines'][s(0x16e)],'ssr':g[s(0x17c)][s(0x15b)],'isStore':b[s(0x14a)](s(0x154)),'isComponent':b['hasOwnProperty'](s(0x174)),'isLayout':b[s(0x14a)](s(0x13a)),'withTranslations':g[s(0x15f)]['withTranslations'],'test':g[s(0x17c)][s(0x170)],'theme':g[s(0x17c)][s(0x17a)]};g['template'][s(0x187)]&&this[s(0x149)]['template']({'srcPath':s(0x13d),'destPath':f+'.html','context':h,'config':g});g[s(0x15f)]?.[s(0x166)]||b[s(0x14b)]?this[s(0x149)][s(0x13f)]({'srcPath':s(0x148),'destPath':f+s(0x183),'framework':'react','context':h,'config':g}):this[s(0x149)][s(0x13f)]({'srcPath':s(0x13c),'destPath':f+s(0x183),'framework':s(0x186),'context':h,'config':g});g['engines'][s(0x170)]!==s(0x16b)&&this['fsi'][s(0x13f)]({'srcPath':s(0x153),'destPath':f+s(0x158),'framework':s(0x186),'context':h,'config':g});g[s(0x13f)][s(0x17d)]&&this['fsi'][s(0x13f)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0x140)]({},h,{'className':paramCase(b[s(0x16f)])}),'config':g});g[s(0x17c)][s(0x172)]!==s(0x186)&&g[s(0x17c)][s(0x172)]!==s(0x134)?(g[s(0x13f)][s(0x17d)]&&this[s(0x149)][s(0x169)]({'filePath':f+'.'+g[s(0x17c)]['js'],'content':s(0x146)+h['fileName']+'.'+g[s(0x17c)]['html']+s(0x168)+s(0x146)+h[s(0x13e)]+'.'+g[s(0x17c)][s(0x17d)]+'\x27;'}),!g[s(0x13f)][s(0x17d)]&&this[s(0x149)][s(0x169)]({'filePath':f+'.'+g['engines']['js'],'content':s(0x146)+h[s(0x13e)]+'.'+g[s(0x17c)][s(0x187)]+'\x27;'})):g[s(0x13f)][s(0x17d)]&&this[s(0x149)][s(0x169)]({'filePath':f+'.'+g[s(0x17c)]['js'],'content':s(0x146)+h[s(0x13e)]+'.'+g[s(0x17c)]['css']+'\x27;'});const i=b[s(0x161)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x13e)]+'/'+h[s(0x13e)];let k;if(g[s(0x17c)][s(0x15b)]===s(0x135)){const l=this[s(0x149)][s(0x167)]({'pathParts':[s(0x157),s(0x143),s(0x16a),'templates.js']});k=this[s(0x149)][s(0x165)]({'pathParts':[l],'config':g});}else{const m=this['fsi'][s(0x167)]({'pathParts':[s(0x157),'startup',s(0x172),s(0x155)]});k=this[s(0x149)][s(0x165)]({'pathParts':[m],'config':g});}g[s(0x17c)][s(0x172)]==='react'?(g[s(0x17c)]['js']===s(0x144)?this['fsi'][s(0x169)]({'filePath':k,'content':s(0x159)+h[s(0x177)]+s(0x176)+j+s(0x168)}):this[s(0x149)][s(0x169)]({'filePath':k,'content':s(0x159)+h[s(0x177)]+s(0x176)+j+'.'+g['engines']['js']+s(0x168)}),this[s(0x149)][s(0x152)]({'filePath':k,'content':'export\x20{\x20'+h[s(0x177)]+s(0x171)})):this['fsi']['injectAtEndOfFile']({'filePath':k,'content':s(0x188)+j+'.'+g['engines']['js']+s(0x168)});});});
1
+ const a107q=a107d;(function(a,b){const n=a107d,c=a();while(!![]){try{const d=-parseInt(n(0x159))/0x1+-parseInt(n(0x12b))/0x2*(parseInt(n(0x154))/0x3)+-parseInt(n(0x121))/0x4*(parseInt(n(0x129))/0x5)+parseInt(n(0x145))/0x6+parseInt(n(0x14c))/0x7*(parseInt(n(0x13b))/0x8)+parseInt(n(0x149))/0x9+parseInt(n(0x148))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xe76d5));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a107d;if(c){const e=c[o(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const p=a107d;return a107a[p(0x133)]()[p(0x125)](p(0x12e))['toString']()[p(0x13f)](a107a)['search'](p(0x12e));});a107a();import a107e from'path';import{Generator}from'../generator.js';function a107c(){const t=['setTemplate','hook/hook.js','16461450AxjhrM','16875279JtrIoT','assign','template/template.css','115339CObouO','import\x20\x27','injectAtEndOfFile','Valid\x20options\x20are:\x20','dir','fileName','components','installNpmPackage','75801iJJBOO','startup','import\x20\x27./','templates.js','features','580881WvOjiy','checkNpmPackage','.css','error','lib','client','imports','withTranslations','maka\x20g:page\x20todos/todos-item','\x20}\x20from\x20\x27','layout','template/template.html','layouts','Invalid\x20directory\x20option\x20\x22','withHook','pathFromApp','react','className','store','create','.js','withHooks','html','apply','component/component.js','381560UAyflx','.app-tests.js','\x27;\x0a','css','search','export\x20{\x20','string','engines','95Aitghw','import\x20{\x20','122bDQXra','ssr','hasOwnProperty','(((.+)+)+)+$','template','fsi','ramda','rewriteDestinationPathForEngine','toString','tsx','page','resourceName','injectAtBeginningOfFile','test','none','true','360OsapgC','component','Generate\x20a\x20page.','withValue','constructor','/imports/ui/pages','hooks','theme','baseDir','pathFromProject','3719172imFxDw'];a107c=function(){return t;};return a107c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x10b;let f=c[d];return f;},a107d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107q(0x11b)]({'name':a107q(0x135),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a107q(0x13d),'validOpts':[a107q(0x143),a107q(0x116)],'examples':[a107q(0x110)]},function(a,b){const r=a107q,c=[r(0x141),r(0x152),'pages',r(0x114)];if(b[r(0x143)]&&!c['includes'](b[r(0x143)])){Log['error'](r(0x115)+b['baseDir']+'\x22'),Log[r(0x10b)](r(0x14f)+c['join'](',\x20'));throw new UsageError();}const d=b[r(0x143)]?'/imports/ui/'+b['baseDir']:r(0x140),e=this['fsi']['pathFromApp'](b),f=this['fsi'][r(0x117)]({'pathParts':[d,b[r(0x150)],paramCase(b[r(0x136)]),paramCase(b['resourceName'])]}),g=this[r(0x130)]['getProjectConfig']();this[r(0x130)][r(0x13e)](g,()=>{const s=r;typeof g[s(0x12f)][s(0x11e)]===s(0x127)&&(g[s(0x12f)]['html']=g['template'][s(0x11e)]===s(0x13a)?!![]:![],this[s(0x130)][s(0x146)](s(0x11e),g[s(0x12f)][s(0x11e)]));typeof g[s(0x12f)]['test']==='string'&&(g['template'][s(0x138)]=g['template'][s(0x138)]===s(0x13a)?!![]:![],this[s(0x130)][s(0x146)](s(0x138),g['template']['test']));typeof g[s(0x12f)][s(0x124)]===s(0x127)&&(g[s(0x12f)][s(0x124)]=g[s(0x12f)][s(0x124)]===s(0x13a)?!![]:![],this[s(0x130)][s(0x146)](s(0x124),g[s(0x12f)]['css']));typeof g[s(0x12f)]['js']===s(0x127)&&(g[s(0x12f)]['js']=g[s(0x12f)]['js']===s(0x13a)?!![]:![],this['fsi'][s(0x146)]('js',g[s(0x12f)]['js']));!g[s(0x158)]&&(g[s(0x158)]={});!b['root']&&!this[s(0x130)][s(0x15a)](s(0x131))&&(Log['warn']('Updating\x20npm\x20packages\x20...'),this[s(0x130)][s(0x153)](s(0x131),{'cwd':e}));const h={'name':pascalCase(b[s(0x136)]),'myPath':a107e['relative'](this[s(0x130)][s(0x144)]({}),f),'cssCaseName':paramCase(b[s(0x136)]),'className':pascalCase(b[s(0x136)]),'camelCaseName':camelCase(b[s(0x136)]),'fileName':paramCase(b[s(0x136)]),'graphql':g[s(0x128)]['graphql'],'features':g[s(0x158)],'client':g['engines'][s(0x10d)],'api':g['engines']['api'],'ssr':g[s(0x128)][s(0x12c)],'isStore':b[s(0x12d)](s(0x11a)),'isComponent':b[s(0x12d)](s(0x13c)),'isLayout':b['hasOwnProperty'](s(0x112)),'withTranslations':g[s(0x158)][s(0x10f)],'test':g[s(0x128)][s(0x138)],'theme':g[s(0x128)][s(0x142)]};g[s(0x12f)][s(0x11e)]&&this['fsi'][s(0x12f)]({'srcPath':s(0x113),'destPath':f+'.html','context':h,'config':g});g[s(0x158)]?.[s(0x11d)]||b[s(0x116)]?this['fsi'][s(0x12f)]({'srcPath':s(0x147),'destPath':f+'.js','framework':s(0x118),'context':h,'config':g}):this[s(0x130)]['template']({'srcPath':s(0x120),'destPath':f+s(0x11c),'framework':'react','context':h,'config':g});g['engines'][s(0x138)]!==s(0x139)&&this[s(0x130)]['template']({'srcPath':'test/test.js','destPath':f+s(0x122),'framework':s(0x118),'context':h,'config':g});g[s(0x12f)][s(0x124)]&&this[s(0x130)][s(0x12f)]({'srcPath':s(0x14b),'destPath':f+s(0x15b),'context':Object[s(0x14a)]({},h,{'className':paramCase(b['resourceName'])}),'config':g});g[s(0x128)][s(0x10d)]!=='react'&&g['engines'][s(0x10d)]!=='vanilla'?(g[s(0x12f)][s(0x124)]&&this[s(0x130)][s(0x137)]({'filePath':f+'.'+g[s(0x128)]['js'],'content':s(0x156)+h[s(0x151)]+'.'+g[s(0x128)][s(0x11e)]+s(0x123)+s(0x156)+h[s(0x151)]+'.'+g[s(0x128)][s(0x124)]+'\x27;'}),!g[s(0x12f)][s(0x124)]&&this[s(0x130)][s(0x137)]({'filePath':f+'.'+g[s(0x128)]['js'],'content':s(0x156)+h[s(0x151)]+'.'+g[s(0x128)][s(0x11e)]+'\x27;'})):g[s(0x12f)][s(0x124)]&&this[s(0x130)][s(0x137)]({'filePath':f+'.'+g[s(0x128)]['js'],'content':s(0x156)+h['fileName']+'.'+g['engines'][s(0x124)]+'\x27;'});const i=b[s(0x150)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x151)]+'/'+h[s(0x151)];let k;if(g['engines']['ssr']===s(0x13a)){const l=this[s(0x130)][s(0x117)]({'pathParts':[s(0x10e),s(0x155),s(0x10c),s(0x157)]});k=this[s(0x130)][s(0x132)]({'pathParts':[l],'config':g});}else{const m=this[s(0x130)]['pathFromApp']({'pathParts':[s(0x10e),s(0x155),'client',s(0x157)]});k=this[s(0x130)][s(0x132)]({'pathParts':[m],'config':g});}g[s(0x128)][s(0x10d)]==='react'?(g[s(0x128)]['js']===s(0x134)?this[s(0x130)][s(0x137)]({'filePath':k,'content':s(0x12a)+h[s(0x119)]+s(0x111)+j+s(0x123)}):this[s(0x130)][s(0x137)]({'filePath':k,'content':s(0x12a)+h[s(0x119)]+s(0x111)+j+'.'+g[s(0x128)]['js']+s(0x123)}),this[s(0x130)][s(0x14e)]({'filePath':k,'content':s(0x126)+h[s(0x119)]+'\x20};\x0a'})):this[s(0x130)]['injectAtEndOfFile']({'filePath':k,'content':s(0x14d)+j+'.'+g[s(0x128)]['js']+s(0x123)});});});
@@ -1 +1 @@
1
- const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0xd7))/0x1+parseInt(h(0xe0))/0x2*(parseInt(h(0xd9))/0x3)+parseInt(h(0xd1))/0x4+parseInt(h(0xe5))/0x5+parseInt(h(0xea))/0x6+-parseInt(h(0xd5))/0x7+-parseInt(h(0xde))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x3a28f));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0xd4)]()['search']('(((.+)+)+)+$')[j(0xd4)]()[j(0xe7)](a108a)['search'](j(0xd2));});a108a();import{paramCase}from'change-case';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{Generator}from'../generator.js';Generator[a108k(0xe2)]({'name':a108k(0xd3),'aliases':['p'],'usage':a108k(0xdc),'shortDesc':a108k(0xda),'validOpts':[],'examples':[a108k(0xe9)]},async function(a,b){const l=a108k,c=this[l(0xe4)]['getProjectConfig']();this[l(0xe4)][l(0xdf)](c,async()=>{const m=l,d={'name':b[m(0xe3)],'collection':paramCase(b[m(0xe3)]),'noRename':!![]};let e='js';c[m(0xe8)]['js']===m(0xdd)&&(e='ts');const f=this[m(0xe4)][m(0xeb)]({'pathParts':[m(0xe1)+c[m(0xe8)]['js']]}),g=this['fsi'][m(0xd6)]({'srcPath':m(0xd8)+e,'context':d,'config':c});this['fsi'][m(0xdb)]({'filePath':f,'content':'\x0a'+g});});});function a108c(){const n=['86pnegmT','server/publish.','create','resourceName','fsi','335595DWaUIf','apply','constructor','engines','maka\x20g:publish\x20todos','2736426yqRUsn','rewriteDestinationPathForEngine','1109828qVbNZl','(((.+)+)+)+$','publish','toString','2392943FyzuHX','templateContent','371770iCPHJs','publish/publish.','32283MNLHoZ','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','tsx','8440544PXecEO','withValue'];a108c=function(){return n;};return a108c();}
1
+ const a108k=a108d;function a108c(){const n=['10xwIuKz','apply','(((.+)+)+)+$','3462630wRFVgD','resourceName','server/publish.','1168605pBwsjL','toString','withValue','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','search','5966642TpwZBw','80lwRswn','5ELoBek','82256NwAsUK','publish','templateContent','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','engines','publish/publish.','create','rewriteDestinationPathForEngine','7482636RvDeiG','injectAtEndOfFile','10StllXE','758610hfULBz','fsi','1620832KVeCjQ'];a108c=function(){return n;};return a108c();}function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x134;let f=c[d];return f;},a108d(a,b);}(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0x13d))/0x1*(parseInt(h(0x13e))/0x2)+parseInt(h(0x136))/0x3+-parseInt(h(0x14b))/0x4*(parseInt(h(0x148))/0x5)+parseInt(h(0x14f))/0x6+-parseInt(h(0x146))/0x7+-parseInt(h(0x13c))/0x8*(-parseInt(h(0x149))/0x9)+parseInt(h(0x14c))/0xa*(parseInt(h(0x13b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xa595e));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a['toString']()[j(0x13a)](j(0x14e))[j(0x137)]()['constructor'](a108a)[j(0x13a)]('(((.+)+)+)+$');});a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a108k(0x144)]({'name':a108k(0x13f),'aliases':['p'],'usage':a108k(0x139),'shortDesc':a108k(0x141),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a108k,c=this['fsi']['getProjectConfig']();this['fsi'][l(0x138)](c,async()=>{const m=l,d={'name':b[m(0x134)],'collection':paramCase(b[m(0x134)]),'noRename':!![]};let e='js';c['engines']['js']==='tsx'&&(e='ts');const f=this['fsi'][m(0x145)]({'pathParts':[m(0x135)+c[m(0x142)]['js']]}),g=this[m(0x14a)][m(0x140)]({'srcPath':m(0x143)+e,'context':d,'config':c});this[m(0x14a)][m(0x147)]({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +1 @@
1
- const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=-parseInt(x(0x10a))/0x1+parseInt(x(0x132))/0x2*(-parseInt(x(0x116))/0x3)+-parseInt(x(0xf4))/0x4*(parseInt(x(0xf0))/0x5)+parseInt(x(0xe8))/0x6*(parseInt(x(0x115))/0x7)+parseInt(x(0xed))/0x8+parseInt(x(0x120))/0x9*(-parseInt(x(0xe9))/0xa)+-parseInt(x(0xfc))/0xb*(-parseInt(x(0x112))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xf013f));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x106)]()['search'](z(0x110))[z(0x106)]()[z(0x119)](a109a)[z(0x122)]('(((.+)+)+)+$');});a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xe3;let f=c[d];return f;},a109d(a,b);}import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a109c(){const J=['vanilla','7UbKktC','9VdGeEd','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','PrivateLayout','constructor','readFileLines','maka\x20g:route\x20pages/lists/listIndex\x20lists','MasterLayout','newForm','private','error','279LtDsWr','create','search','includes','rewriteDestinationPathForEngine','Valid\x20options\x20are:\x20','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','injectAfterLineNumber','filter','page','client','only','maka\x20g:route\x20todosIndex\x20todos','engines','maka\x20g:route\x20todosEdit\x20todos/:id/edit','layout','apply','findGenerator','304146cjhwMX','config','startup','root','pages','maka\x20g:route\x20pages/about','join','toLowerCase','3196410qbZnaJ','544210jsttWd','/imports/ui/','indexOf','dir','5801616DKJvQj','cwd','injectAtEndOfFile','10jGHtYc','<Router','pathFromApp','true','1153696paAzWj','baseDir','routes.js','Scaffolding\x20for\x20a\x20Route.','withHook','fsi','length','imports','13897026hRzsRF','route','layouts','/imports/ui/pages','const\x20privateRoutes\x20=\x20(<>','const\x20publicRoutes\x20=\x20(<>','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','map','react','invoke','toString','hooks','ssr','</Router>','81192gClClZ','templateContent','warn','features','getProjectConfig','templateName','(((.+)+)+)+$','withValue','24cnOKam','route/route.js'];a109c=function(){return J;};return a109c();}import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0x121)]({'name':a109A(0xfd),'aliases':aliases,'validOpts':[a109A(0x11e),a109A(0x12f),a109A(0x12b),a109A(0xee),a109A(0x133),'root',a109A(0xf8),'url','baseDir'],'usage':a109A(0x102),'shortDesc':a109A(0xf7),'examples':[a109A(0x12c),a109A(0x12e),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a109A(0x11b),a109A(0xe5)]},function(a,b){const B=a109A;try{const c=[B(0x107),'components',B(0xe4),B(0xfe)];if(b['baseDir']&&!c['includes'](b['baseDir'])){Log[B(0x11f)]('Invalid\x20directory\x20option\x20\x22'+b[B(0xf5)]+'\x22'),Log[B(0x11f)](B(0x125)+c[B(0xe6)](',\x20'));throw new UsageError();}const d=this[B(0xf9)][B(0x10e)]();this[B(0xf9)][B(0x111)](d,async()=>{const C=B,f=b[C(0x11e)]??![];let g=paramCase(a[0x0]),h='/'+g;a[C(0xfa)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[C(0xe6)]('/')[C(0xe7)]());g=camelCase(g);b[C(0x12f)]&&(b[C(0x12f)]=camelCase(b[C(0x12f)]));const i=b['baseDir']?C(0xea)+b['baseDir']:C(0xff),j=a109e[C(0xe6)](i,b[C(0xec)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x12f)]||C(0x11c),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x12d)][C(0x12a)],'newForm':![],'withTranslations':d[C(0x10d)]['withTranslations']};f&&(k['layout']=C(0x118));if(!b[C(0xe3)]){const n=a109f[C(0x131)](C(0x129));n&&await n[C(0x105)](a,b);}let l,m;if(d['engines'][C(0x12a)]===C(0x104)){if(d[C(0x12d)][C(0x108)]===C(0xf3)){const r=this[C(0xf9)]['pathFromApp']({'pathParts':['imports',C(0x134),'lib',C(0xf6)]});l=this[C(0xf9)][C(0x124)]({'pathParts':[r],'config':d});}else{const s=this[C(0xf9)]['pathFromApp']({'pathParts':[C(0xfb),C(0x134),C(0x12a),C(0xf6)]});l=this[C(0xf9)][C(0x124)]({'pathParts':[s],'config':d});}const o=this['fsi'][C(0x11a)](l)['map']((t,u)=>{const D=C;return t[D(0x123)](D(0x117))?u+0x1:null;})[C(0x128)](t=>t!==null);let p=this[C(0xf9)]['readFileLines'](l)['map']((t,u)=>{const E=C;return t[E(0x123)](E(0x101))?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0xf9)][C(0x11a)](l)['map']((t,u)=>{const F=C;return t[F(0x123)]('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x128)](t=>t!==null);p[C(0xfa)]>0x0&&q[C(0xfa)]>0x0&&(k[C(0x11d)]=!![]);m=this[C(0xf9)][C(0x10b)]({'srcPath':'route/route.js','framework':C(0x104),'context':k,'config':d});if(p['length']>0x0||q['length']>0x0){this[C(0xf9)][C(0x127)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xfa)]>0x0)q=this['fsi']['readFileLines'](l)[C(0x103)]((t,u)=>{const G=C;return t[G(0x123)](G(0x100))?u+0x1:null;})[C(0x128)](t=>t!==null),this[C(0xf9)][C(0x127)]({'filePath':l,'content':'\x09{'+k[C(0x10f)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[C(0xf9)]['readFileLines'](l)['map']((t,u)=>{const H=C;return t[H(0x123)](H(0x101))?u+0x1:null;})['filter'](t=>t!==null),this['fsi'][C(0x127)]({'filePath':l,'content':'\x09{'+k[C(0x10f)]+'}','lineNumber':p[0x0]})):Log[C(0x10c)](C(0x126)+l);}else{const t=this[C(0xf9)]['readFileLines'](l)[C(0x103)](w=>{const I=C;return w[I(0x123)]('\x22*\x22');}),u=t[C(0xeb)](!![])>-0x1,v=u?'<Route':C(0x109);this[C(0xf9)]['injectIntoFile']({'filePath':l,'content':'\x0a\x09\x09'+m+'\x0a\x09\x09','begin':C(0xf1),'end':v});}}else{if(d[C(0x12d)][C(0x12a)]===C(0x114)){const w=this['fsi'][C(0xf2)]({'pathParts':['imports','startup',C(0x12a),C(0xf6)]});l=this[C(0xf9)][C(0x124)]({'pathParts':[w],'config':d}),m=this['fsi']['templateContent']({'srcPath':C(0x113),'context':k}),this[C(0xf9)][C(0xef)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x11f)](f);}});
1
+ const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=-parseInt(x(0xf0))/0x1*(-parseInt(x(0x121))/0x2)+parseInt(x(0x116))/0x3*(-parseInt(x(0x11f))/0x4)+-parseInt(x(0x111))/0x5*(-parseInt(x(0x124))/0x6)+-parseInt(x(0x10e))/0x7*(-parseInt(x(0x126))/0x8)+parseInt(x(0xef))/0x9+-parseInt(x(0xe9))/0xa+-parseInt(x(0xe7))/0xb*(parseInt(x(0x112))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x6b8f8));function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xe5;let f=c[d];return f;},a109d(a,b);}function a109c(){const I=['route','findGenerator','(((.+)+)+)+$','491821KEIAxd','<Router','6344560hKpznY','templateContent','includes','pathFromApp','templateName','withTranslations','4366512GosoyD','1OmzRBB','warn','layouts','join','layout','features','PrivateLayout','\x0a\x09\x09','toLowerCase','config','length','const\x20publicRoutes\x20=\x20(<>','engines','imports','search','route/route.js','injectAfterLineNumber','readFileLines','rewriteDestinationPathForEngine','\x22*\x22','Invalid\x20directory\x20option\x20\x22','/imports/ui/pages','routes.js','client','cwd','fsi','root','constructor','const\x20privateRoutes\x20=\x20(<>','invoke','711277RRoRYW','pages','vanilla','3854325eoCFmC','192djoxAH','getProjectConfig','baseDir','components','118815BlVyMo','create','newForm','map','Scaffolding\x20for\x20a\x20Route.','dir','withValue','hooks','injectIntoFile','28EIYZoV','filter','1013538PmdOkA','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','react','6gTACWp','apply','24pWxPEJ','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','error','private','startup'];a109c=function(){return I;};return a109c();}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a['toString']()[z(0xfe)]('(((.+)+)+)+$')['toString']()[z(0x10b)](a109a)[z(0xfe)](z(0xe6));});a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0x117)]({'name':a109A(0x12b),'aliases':aliases,'validOpts':[a109A(0x129),a109A(0xf4),'only',a109A(0x108),a109A(0xf9),a109A(0x10a),'withHook','url',a109A(0x114)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a109A(0x11a),'examples':['maka\x20g:route\x20todosIndex\x20todos','maka\x20g:route\x20todosEdit\x20todos/:id/edit',a109A(0x122),'maka\x20g:route\x20pages/lists/listIndex\x20lists','maka\x20g:route\x20pages/about']},function(a,b){const B=a109A;try{const c=[B(0x11d),B(0x115),B(0x10f),B(0xf2)];if(b['baseDir']&&!c[B(0xeb)](b[B(0x114)])){Log[B(0x128)](B(0x104)+b[B(0x114)]+'\x22'),Log['error']('Valid\x20options\x20are:\x20'+c['join'](',\x20'));throw new UsageError();}const d=this[B(0x109)][B(0x113)]();this[B(0x109)][B(0x11c)](d,async()=>{const C=B,f=b[C(0x129)]??![];let g=paramCase(a[0x0]),h='/'+g;a[C(0xfa)]>0x1&&(h='/'+a[C(0x120)](function(n){return n!=='/';})[C(0xf3)]('/')[C(0xf8)]());g=camelCase(g);b[C(0xf4)]&&(b['layout']=camelCase(b[C(0xf4)]));const i=b[C(0x114)]?'/imports/ui/'+b[C(0x114)]:C(0x105),j=a109e[C(0xf3)](i,b[C(0x11b)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xf4)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[C(0xfc)]['client'],'newForm':![],'withTranslations':d[C(0xf5)][C(0xee)]};f&&(k['layout']=C(0xf6));if(!b[C(0x10a)]){const n=a109f[C(0xe5)]('page');n&&await n[C(0x10d)](a,b);}let l,m;if(d[C(0xfc)][C(0x107)]===C(0x123)){if(d[C(0xfc)]['ssr']==='true'){const r=this[C(0x109)][C(0xec)]({'pathParts':[C(0xfd),C(0x12a),'lib',C(0x106)]});l=this['fsi'][C(0x102)]({'pathParts':[r],'config':d});}else{const s=this[C(0x109)][C(0xec)]({'pathParts':['imports',C(0x12a),C(0x107),C(0x106)]});l=this[C(0x109)][C(0x102)]({'pathParts':[s],'config':d});}const o=this[C(0x109)][C(0x101)](l)[C(0x119)]((t,u)=>{const D=C;return t['includes'](D(0x127))?u+0x1:null;})[C(0x120)](t=>t!==null);let p=this[C(0x109)]['readFileLines'](l)[C(0x119)]((t,u)=>{const E=C;return t[E(0xeb)](E(0xfb))?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0x109)][C(0x101)](l)[C(0x119)]((t,u)=>{const F=C;return t[F(0xeb)](F(0x10c))?u+0x1:null;})[C(0x120)](t=>t!==null);p[C(0xfa)]>0x0&&q[C(0xfa)]>0x0&&(k[C(0x118)]=!![]);m=this[C(0x109)][C(0xea)]({'srcPath':'route/route.js','framework':C(0x123),'context':k,'config':d});if(p['length']>0x0||q[C(0xfa)]>0x0){this[C(0x109)][C(0x100)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xfa)]>0x0)q=this[C(0x109)][C(0x101)](l)[C(0x119)]((t,u)=>{const G=C;return t['includes'](G(0x10c))?u+0x1:null;})['filter'](t=>t!==null),this[C(0x109)][C(0x100)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[C(0xfa)]>0x0?(p=this[C(0x109)][C(0x101)](l)['map']((t,u)=>{return t['includes']('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x120)](t=>t!==null),this[C(0x109)][C(0x100)]({'filePath':l,'content':'\x09{'+k[C(0xed)]+'}','lineNumber':p[0x0]})):Log[C(0xf1)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const t=this[C(0x109)][C(0x101)](l)[C(0x119)](w=>{const H=C;return w[H(0xeb)](H(0x103));}),u=t['indexOf'](!![])>-0x1,v=u?'<Route':'</Router>';this[C(0x109)][C(0x11e)]({'filePath':l,'content':'\x0a\x09\x09'+m+C(0xf7),'begin':C(0xe8),'end':v});}}else{if(d['engines'][C(0x107)]===C(0x110)){const w=this['fsi'][C(0xec)]({'pathParts':['imports',C(0x12a),C(0x107),'routes.js']});l=this[C(0x109)]['rewriteDestinationPathForEngine']({'pathParts':[w],'config':d}),m=this['fsi']['templateContent']({'srcPath':C(0xff),'context':k}),this[C(0x109)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x128)](f);}});