@maka/maka-cli 4.5.50 → 4.5.51

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 (134) 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/options/options.class.js +1 -1
  129. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  130. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  131. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  132. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  134. package/package.json +1 -1
@@ -1 +1 @@
1
- const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0x1a9))/0x1+parseInt(w(0x1dc))/0x2*(parseInt(w(0x1e1))/0x3)+parseInt(w(0x198))/0x4+-parseInt(w(0x1b6))/0x5+-parseInt(w(0x1c3))/0x6*(parseInt(w(0x1e2))/0x7)+-parseInt(w(0x1a7))/0x8+-parseInt(w(0x1ad))/0x9*(-parseInt(w(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xccfed));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a['toString']()[y(0x1e3)]('(((.+)+)+)+$')[y(0x1b7)]()[y(0x1cc)](a95a)[y(0x1e3)]('(((.+)+)+)+$');});a95a();import{Generator}from'../generator.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x195;let f=c[d];return f;},a95d(a,b);}import{Log}from'../tools/log/log.class.js';function a95c(){const C=['withPubs','Verifying\x20meteor\x20package\x20requirements\x20...','rewriteDestinationPathForEngine','fsi','TypeDefs\x20}\x20from\x20\x27','injectAtBeginningOfFile','length','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','Resolvers);\x0a\x0a','register-','rpc-methods.','api/api.js','findGenerator','2065918JwnrhX','api/typeDefs.js','server','rest','/graphql/typeDefs','3QdPUoO','10038259TQQbcQ','search','error','typeList.push(','withGql','template','rest-api.','engines','/graphql/resolvers','index.','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','1798064ulwWLg','graphql','/imports/api','tsx','api/methods.js','Publications','maka\x20g:api\x20Todos','-api.','push','const','imports','api/publications.js','import\x20{\x20typeDefs\x20as\x20','apollo','notice','7001360wkhVis','invoke','968000spdEGU','api','mongo','injectAtEndOfFile','518202qysssg','mdg:validated-method','dir','if\x20\x5c(typeList','test','options','pathFromApp','GraphQL','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','358865sxMpTs','toString','collection','maka:rest','create','API\x20boundaries\x20to\x20create','installMeteorPackage','ddp-rate-limiter','REST\x20API','apply','api/resolvers.js','startup','\x27;\x0a','6BkpBtS','import\x20\x27./register-','withMethods','checkMeteorPackage','includes','470yhxbWm','withRest','\x0aimport\x20{\x20resolvers\x20as\x20','withFixtures','constructor','-api\x27;','TypeDefs);\x0a'];a95c=function(){return C;};return a95c();}import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0x1ba)]({'name':a95z(0x1aa),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a95z(0x1b5),'validOpts':[a95z(0x1af)],'examples':[a95z(0x19e)],'description':a95z(0x197)},async function(a,b){const A=a95z;try{const c=this[A(0x1d2)]['getProjectConfig'](),d=[{'name':'RPC\x20(Methods)','value':'withMethods'},{'name':'Fixtures','value':A(0x1cb)},{'name':A(0x19d),'value':A(0x1cf)}];c[A(0x1e9)][A(0x1aa)]===A(0x1df)&&d[A(0x1a0)]({'name':A(0x1be),'value':A(0x1c9)});c[A(0x1e9)][A(0x199)]===A(0x1a5)&&d[A(0x1a0)]({'name':A(0x1b4),'value':'withGql'});const f={'type':'checkbox','name':'apiAnswers','message':A(0x1bb),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1b2)](f);g[A(0x1d5)]===0x0&&(Log[A(0x1e4)]('No\x20API\x20boundaries\x20selected'),process['exit'](0x1)),this['fsi']['withValue'](c,async()=>{const B=A,h=this[B(0x1d2)][B(0x1b3)]({}),i=b['resourceName'],j=paramCase(i),k=camelCase(i),l=b[B(0x1af)]?'/'+b[B(0x1af)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1e9)][B(0x1aa)],'graphql':c[B(0x1e9)]['graphql'],'test':c[B(0x1e9)][B(0x1b1)],'noRename':!![],'withPubs':g[B(0x1c7)](B(0x1cf)),'withFixtures':g[B(0x1c7)]('withFixtures'),'withMethods':g[B(0x1c7)]('withMethods'),'withRest':g[B(0x1c7)]('withRest')};let n='js';c[B(0x1e9)]['js']===B(0x19b)&&(n='ts');(!this[B(0x1d2)][B(0x1c6)](B(0x1b9))||!this['fsi']['checkMeteorPackage']('maka:check')||!this[B(0x1d2)]['checkMeteorPackage'](B(0x1bd))||!this[B(0x1d2)]['checkMeteorPackage'](B(0x1ae))||!this['fsi'][B(0x1c6)](B(0x1ab)))&&(Log[B(0x1a6)](B(0x1d0)),await this[B(0x1d2)][B(0x1bc)](B(0x1d6),{'cwd':h}));const o=a95e[B(0x1db)](B(0x1b8));o&&await o[B(0x1a8)]([j],{'config':c,'where':B(0x1de)});c[B(0x1e9)][B(0x1aa)]===B(0x1df)&&(m['withRest']&&this[B(0x1d2)][B(0x1e7)]({'srcPath':B(0x1da),'destPath':this[B(0x1d2)][B(0x1b3)]({'pathParts':[B(0x1a2),B(0x1aa),b[B(0x1af)],j,B(0x1e8)+n]}),'context':m,'config':c}));m[B(0x1c5)]&&this[B(0x1d2)]['template']({'srcPath':B(0x19c),'destPath':this['fsi'][B(0x1b3)]({'pathParts':['imports','api',b[B(0x1af)],j,B(0x1d9)+n]}),'context':m,'config':c});m[B(0x1cb)]&&this[B(0x1d2)][B(0x1e7)]({'srcPath':'api/fixtures.js','destPath':this['fsi'][B(0x1b3)]({'pathParts':[B(0x1a2),B(0x1aa),b[B(0x1af)],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x1e9)][B(0x1b1)]!=='none'&&this[B(0x1d2)][B(0x1e7)]({'srcPath':'api/tests.js','destPath':this[B(0x1d2)][B(0x1b3)]({'pathParts':[B(0x1a2),B(0x1aa),b['dir'],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[B(0x1cf)]&&this['fsi'][B(0x1e7)]({'srcPath':B(0x1a3),'destPath':this['fsi'][B(0x1b3)]({'pathParts':[B(0x1a2),'api',b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c[B(0x1e9)][B(0x199)]===B(0x1a5)){if(g[B(0x1c7)](B(0x1e6))){const q=this[B(0x1d2)][B(0x1b3)]({'pathParts':[B(0x1a2),B(0x1c1),'server',B(0x196)+c['engines']['js']]}),r=this[B(0x1d2)][B(0x1d1)]({'pathParts':[q],'config':c}),s=this[B(0x1d2)]['pathFromApp']({'pathParts':[B(0x1a2),'api',b[B(0x1af)],j,B(0x199),'typeDefs.'+n]}),t=B(0x19a)+l+j+B(0x1e0);this['fsi']['template']({'srcPath':B(0x1dd),'destPath':s,'context':m,'config':c}),this[B(0x1d2)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0x1a4)+k+B(0x1d3)+t+B(0x1c2)}),this['fsi']['injectIntoFile']({'filePath':r,'content':B(0x1e5)+k+B(0x1ce),'begin':B(0x1a1),'end':B(0x1b0)});const u=this[B(0x1d2)][B(0x1b3)]({'pathParts':[B(0x1a2),B(0x1aa),b[B(0x1af)],j,B(0x199),'resolvers.'+n]}),v=B(0x19a)+l+j+B(0x195);this[B(0x1d2)][B(0x1e7)]({'srcPath':B(0x1c0),'destPath':u,'context':m,'config':c}),this[B(0x1d2)][B(0x1d4)]({'filePath':r,'content':B(0x1ca)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this['fsi']['injectIntoFile']({'filePath':r,'content':'resolverList.push('+k+B(0x1d7),'begin':'const','end':B(0x1b0)});}}this[B(0x1d2)]['template']({'srcPath':'api/register-api.js','destPath':this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1c1),'server',B(0x1d8)+j+B(0x19f)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1d2)][B(0x1b3)]({'pathParts':[B(0x1a2),'startup',B(0x1de),B(0x196)+c[B(0x1e9)]['js']]});this[B(0x1d2)][B(0x1ac)]({'filePath':p,'content':B(0x1c4)+j+B(0x1cd)});});}catch(h){console[A(0x1e4)](h),process['exit'](0x0);}});
1
+ const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=parseInt(w(0x151))/0x1+-parseInt(w(0x169))/0x2+-parseInt(w(0x194))/0x3*(-parseInt(w(0x16a))/0x4)+parseInt(w(0x172))/0x5*(parseInt(w(0x168))/0x6)+parseInt(w(0x17f))/0x7+-parseInt(w(0x182))/0x8+-parseInt(w(0x164))/0x9*(-parseInt(w(0x174))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xa2eee));function a95c(){const C=['12258STwbCP','typeDefs.','GraphQL','none','6iomeVU','2406622QzZYoY','73528dkafDi','api','.app-tests.','fixtures.','includes','injectAtEndOfFile','engines','withGql','1841340HYjXmz','\x0aimport\x20{\x20resolvers\x20as\x20','1550AiCtFS','apiAnswers','withValue','graphql','startup','template','length','import\x20\x27./register-','apply','api/publications.js','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','5971602ZImZHS','checkbox','-api.','1960784yXwUhw','if\x20\x5c(typeList','push','index.','register-','\x27;\x0a','search','rest','injectAtBeginningOfFile','api/api.js','constructor','installMeteorPackage','TypeDefs);\x0a','withMethods','RPC\x20(Methods)','mdg:validated-method','getProjectConfig','No\x20API\x20boundaries\x20selected','99Aayplx','exit','mongo','pathFromApp','error','api/fixtures.js','Resolvers);\x0a\x0a','Publications','api/resolvers.js','toString','/graphql/typeDefs','Resolvers\x20}\x20from\x20\x27','maka:rest','TypeDefs\x20}\x20from\x20\x27','resolverList.push(','checkMeteorPackage','rewriteDestinationPathForEngine','-api\x27;','REST\x20API','dir','API\x20boundaries\x20to\x20create','maka:check','create','import\x20{\x20typeDefs\x20as\x20','const','withPubs','(((.+)+)+)+$','ddp-rate-limiter','findGenerator','imports','injectIntoFile','collection','maka\x20g:api\x20Todos','76713QjYYJK','fsi','resolvers.','/graphql/resolvers','Fixtures','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','api/register-api.js','tsx','withFixtures','api/tests.js','Verifying\x20meteor\x20package\x20requirements\x20...','apollo','typeList.push(','server','/imports/api','api/typeDefs.js','options','invoke','publications.'];a95c=function(){return C;};return a95c();}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0x139)]()[y(0x188)](y(0x14a))[y(0x139)]()[y(0x18c)](a95a)[y(0x188)]('(((.+)+)+)+$');});function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x139;let f=c[d];return f;},a95d(a,b);}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(0x146)]({'name':a95z(0x16b),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a95z(0x17e),'validOpts':[a95z(0x143)],'examples':[a95z(0x150)],'description':a95z(0x156)},async function(a,b){const A=a95z;try{const c=this[A(0x152)][A(0x192)](),d=[{'name':A(0x190),'value':A(0x18f)},{'name':A(0x155),'value':A(0x159)},{'name':A(0x19b),'value':'withPubs'}];c[A(0x170)][A(0x16b)]==='rest'&&d[A(0x184)]({'name':A(0x142),'value':'withRest'});c[A(0x170)][A(0x177)]==='apollo'&&d[A(0x184)]({'name':A(0x166),'value':'withGql'});const f={'type':A(0x180),'name':A(0x175),'message':A(0x144),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x161)](f);g[A(0x17a)]===0x0&&(Log[A(0x198)](A(0x193)),process[A(0x195)](0x1)),this[A(0x152)][A(0x176)](c,async()=>{const B=A,h=this['fsi']['pathFromApp']({}),i=b['resourceName'],j=paramCase(i),k=camelCase(i),l=b[B(0x143)]?'/'+b[B(0x143)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x16b)],'graphql':c[B(0x170)][B(0x177)],'test':c[B(0x170)]['test'],'noRename':!![],'withPubs':g['includes'](B(0x149)),'withFixtures':g[B(0x16e)](B(0x159)),'withMethods':g[B(0x16e)](B(0x18f)),'withRest':g['includes']('withRest')};let n='js';c[B(0x170)]['js']===B(0x158)&&(n='ts');(!this[B(0x152)][B(0x13f)](B(0x13c))||!this[B(0x152)][B(0x13f)](B(0x145))||!this[B(0x152)][B(0x13f)](B(0x14b))||!this[B(0x152)][B(0x13f)](B(0x191))||!this['fsi']['checkMeteorPackage'](B(0x196)))&&(Log['notice'](B(0x15b)),await this[B(0x152)][B(0x18d)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a95e[B(0x14c)](B(0x14f));o&&await o[B(0x162)]([j],{'config':c,'where':B(0x15e)});c[B(0x170)][B(0x16b)]===B(0x189)&&(m['withRest']&&this[B(0x152)][B(0x179)]({'srcPath':B(0x18b),'destPath':this[B(0x152)][B(0x197)]({'pathParts':[B(0x14d),B(0x16b),b[B(0x143)],j,'rest-api.'+n]}),'context':m,'config':c}));m[B(0x18f)]&&this['fsi']['template']({'srcPath':'api/methods.js','destPath':this[B(0x152)]['pathFromApp']({'pathParts':[B(0x14d),B(0x16b),b[B(0x143)],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x159)]&&this[B(0x152)][B(0x179)]({'srcPath':B(0x199),'destPath':this[B(0x152)]['pathFromApp']({'pathParts':['imports',B(0x16b),b['dir'],j,B(0x16d)+n]}),'context':m,'config':c});c[B(0x170)]['test']!==B(0x167)&&this[B(0x152)]['template']({'srcPath':B(0x15a),'destPath':this[B(0x152)][B(0x197)]({'pathParts':['imports',B(0x16b),b['dir'],j,j+B(0x16c)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x152)][B(0x179)]({'srcPath':B(0x17d),'destPath':this[B(0x152)][B(0x197)]({'pathParts':[B(0x14d),'api',b[B(0x143)],j,B(0x163)+n]}),'context':m,'config':c});if(c[B(0x170)][B(0x177)]===B(0x15c)){if(g[B(0x16e)](B(0x171))){const q=this[B(0x152)]['pathFromApp']({'pathParts':[B(0x14d),B(0x178),'server',B(0x185)+c[B(0x170)]['js']]}),r=this['fsi'][B(0x140)]({'pathParts':[q],'config':c}),s=this[B(0x152)][B(0x197)]({'pathParts':['imports',B(0x16b),b[B(0x143)],j,B(0x177),B(0x165)+n]}),t=B(0x15f)+l+j+B(0x13a);this['fsi'][B(0x179)]({'srcPath':B(0x160),'destPath':s,'context':m,'config':c}),this[B(0x152)][B(0x18a)]({'filePath':r,'content':B(0x147)+k+B(0x13d)+t+B(0x187)}),this['fsi']['injectIntoFile']({'filePath':r,'content':B(0x15d)+k+B(0x18e),'begin':'const','end':B(0x183)});const u=this[B(0x152)]['pathFromApp']({'pathParts':[B(0x14d),'api',b[B(0x143)],j,B(0x177),B(0x153)+n]}),v=B(0x15f)+l+j+B(0x154);this['fsi'][B(0x179)]({'srcPath':B(0x19c),'destPath':u,'context':m,'config':c}),this[B(0x152)][B(0x18a)]({'filePath':r,'content':B(0x173)+k+B(0x13b)+v+'\x27;'}),this['fsi'][B(0x14e)]({'filePath':r,'content':B(0x13e)+k+B(0x19a),'begin':B(0x148),'end':'if\x20\x5c(typeList'});}}this[B(0x152)][B(0x179)]({'srcPath':B(0x157),'destPath':this['fsi'][B(0x197)]({'pathParts':['imports',B(0x178),B(0x15e),B(0x186)+j+B(0x181)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x152)][B(0x197)]({'pathParts':['imports','startup','server',B(0x185)+c['engines']['js']]});this[B(0x152)][B(0x16f)]({'filePath':p,'content':B(0x17b)+j+B(0x141)});});}catch(h){console[A(0x198)](h),process[A(0x195)](0x0);}});
@@ -1 +1 @@
1
- function a96c(){const p=['constructor','50vohOJh','col','engines','pathFromApp','.app-tests.','resourceName','toString','maka\x20g:collection\x20todos','withValue','error','mongo','3542zCEUTU','checkMeteorPackage','5rqNugM','87231NMGEZt','2hZGahp','7240326wsjMst','getProjectConfig','startup','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','collection/tests.js','none','collection','test','import\x20\x27./collections','imports','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','collections','template','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','dir','injectAtEndOfFile','collection/collection.js','247238bhlGTO','fsi','appPathPrefix','188HJqDzf','where','(((.+)+)+)+$','installMeteorPackage','2121219RTKHdn','notice','46240454aGbjqS','\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','5137buSdpF','21828wvuYzr','create','10728qSsOCT','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection'];a96c=function(){return p;};return a96c();}const a96m=a96d;function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x70;let f=c[d];return f;},a96d(a,b);}(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(0x81))/0x1*(-parseInt(k(0x93))/0x2)+-parseInt(k(0x80))/0x3*(-parseInt(k(0x96))/0x4)+parseInt(k(0x7f))/0x5*(-parseInt(k(0x82))/0x6)+-parseInt(k(0x7d))/0x7*(parseInt(k(0xa1))/0x8)+parseInt(k(0x9a))/0x9*(-parseInt(k(0x72))/0xa)+-parseInt(k(0x9e))/0xb*(parseInt(k(0x9f))/0xc)+parseInt(k(0x9c))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xba508));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']()['search'](l(0x98))[l(0x78)]()[l(0x71)](a96a)['search'](l(0x98));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a96m(0xa0)]({'name':a96m(0x88),'aliases':[a96m(0x73)],'usage':a96m(0x85),'checkWhere':!![],'shortDesc':a96m(0x70),'validOpts':[a96m(0x90),a96m(0x97)],'description':a96m(0x9d),'examples':[a96m(0x79)]},async function(a,b){const n=a96m;try{const c=this[n(0x94)]['pathFromApp']({}),d=this[n(0x94)][n(0x83)]();this[n(0x94)][n(0x7a)](d,async()=>{const o=n,f=paramCase(b[o(0x77)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0x77)]),'fileName':f,'where':b[o(0x97)],'test':d['engines']['test'],'noRename':!![]};let h='js';d[o(0x74)]['js']==='tsx'&&(h='ts');!this[o(0x94)][o(0x7e)](o(0x7c))&&(Log['notice'](o(0x8f)),await this[o(0x94)][o(0x99)](o(0x7c),{'cwd':c}));!this['fsi']['checkMeteorPackage']('maka:check')&&(Log[o(0x9b)](o(0x8c)),await this['fsi'][o(0x99)]('maka:check',{'cwd':c}));this[o(0x94)][o(0x8e)]({'srcPath':o(0x92),'destPath':this[o(0x94)][o(0x75)]({'pathParts':['imports',o(0x84),b['appPathPrefix'],o(0x8d),b[o(0x90)],f+'.'+h]}),'context':g,'config':d});d['engines'][o(0x89)]!==o(0x87)&&this[o(0x94)]['template']({'srcPath':o(0x86),'destPath':this[o(0x94)]['pathFromApp']({'pathParts':[o(0x8b),o(0x84),b[o(0x95)],'collections',b[o(0x90)],f+o(0x76)+h]}),'context':g,'config':d});const i=b[o(0x90)]?'/'+b[o(0x90)]+'/':'/',j=this[o(0x94)][o(0x75)]({'pathParts':['imports',o(0x84),b[o(0x95)],'index.'+d[o(0x74)]['js']]});this[o(0x94)][o(0x91)]({'filePath':j,'content':o(0x8a)+i+f+'\x27;'});});}catch(f){Log[n(0x7b)](f);}});
1
+ const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0xa2))/0x1*(parseInt(k(0xcf))/0x2)+-parseInt(k(0xc8))/0x3*(-parseInt(k(0xc6))/0x4)+-parseInt(k(0xa4))/0x5+-parseInt(k(0xbf))/0x6*(parseInt(k(0xc0))/0x7)+parseInt(k(0xbb))/0x8*(-parseInt(k(0xb3))/0x9)+-parseInt(k(0xb5))/0xa*(parseInt(k(0xb2))/0xb)+-parseInt(k(0xc5))/0xc*(-parseInt(k(0xae))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xb692f));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0xcb)]()[m(0xd0)](m(0xce))[m(0xcb)]()['constructor'](a96a)[m(0xd0)](m(0xce));});function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xa0;let f=c[d];return f;},a96d(a,b);}a96a();function a96c(){const q=['1078cdZmjJ','493047QqAZNc','injectAtEndOfFile','111170aTvEou','maka:check','error','apply','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','create','40boieHZ','engines','checkMeteorPackage','collection/collection.js','330EUguWF','125818YZOTVZ','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','collection/tests.js','startup','test','264TvnYFw','8qsTqiC','appPathPrefix','1327719NJMPhN','installMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','toString','tsx','template','(((.+)+)+)+$','14pBePBK','search','index.','.app-tests.','161807qfZmiv','collections','3111685qjwcnv','mongo','none','col','notice','maka\x20g:collection\x20todos','fsi','where','pathFromApp','collection','2345681xWsagc','dir','resourceName','imports'];a96c=function(){return q;};return a96c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a96n(0xba)]({'name':a96n(0xad),'aliases':[a96n(0xa7)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a96n(0xb9),'validOpts':[a96n(0xaf),a96n(0xab)],'description':a96n(0xc1),'examples':[a96n(0xa9)]},async function(a,b){const o=a96n;try{const c=this[o(0xaa)][o(0xac)]({}),d=this['fsi']['getProjectConfig']();this[o(0xaa)]['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0xb0)]),g={'name':pascalCase(b[p(0xb0)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0xab)],'test':d[p(0xbc)][p(0xc4)],'noRename':!![]};let h='js';d[p(0xbc)]['js']===p(0xcc)&&(h='ts');!this[p(0xaa)][p(0xbd)]('mongo')&&(Log[p(0xa8)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this['fsi']['installMeteorPackage'](p(0xa5),{'cwd':c}));!this[p(0xaa)][p(0xbd)](p(0xb6))&&(Log[p(0xa8)](p(0xca)),await this['fsi'][p(0xc9)]('maka:check',{'cwd':c}));this['fsi'][p(0xcd)]({'srcPath':p(0xbe),'destPath':this[p(0xaa)]['pathFromApp']({'pathParts':['imports',p(0xc3),b[p(0xc7)],p(0xa3),b[p(0xaf)],f+'.'+h]}),'context':g,'config':d});d[p(0xbc)][p(0xc4)]!==p(0xa6)&&this['fsi'][p(0xcd)]({'srcPath':p(0xc2),'destPath':this['fsi']['pathFromApp']({'pathParts':[p(0xb1),'startup',b[p(0xc7)],p(0xa3),b[p(0xaf)],f+p(0xa1)+h]}),'context':g,'config':d});const i=b[p(0xaf)]?'/'+b[p(0xaf)]+'/':'/',j=this[p(0xaa)]['pathFromApp']({'pathParts':[p(0xb1),p(0xc3),b[p(0xc7)],p(0xa0)+d[p(0xbc)]['js']]});this[p(0xaa)][p(0xb4)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0xb7)](f);}});
@@ -1 +1 @@
1
- const a97q=a97d;function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xb3;let f=c[d];return f;},a97d(a,b);}(function(a,b){const n=a97d,c=a();while(!![]){try{const d=parseInt(n(0xe2))/0x1*(parseInt(n(0xdd))/0x2)+parseInt(n(0xf1))/0x3+-parseInt(n(0xed))/0x4*(parseInt(n(0xc7))/0x5)+-parseInt(n(0xc4))/0x6+-parseInt(n(0xec))/0x7+parseInt(n(0xcd))/0x8*(-parseInt(n(0xd4))/0x9)+-parseInt(n(0xf7))/0xa*(-parseInt(n(0xf2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x4292a));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a97d;if(c){const e=c[o(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const p=a97d;return a97a[p(0xb3)]()['search'](p(0xd0))[p(0xb3)]()[p(0xfb)](a97a)['search'](p(0xd0));});a97a();import a97e from'path';function a97c(){const t=['9uJrxnQ','.css','ssr','withValue','\x20}\x20from\x20\x27','apply','theme','assign','root','429322mihxaG','ramda','injectAtBeginningOfFile','.js','findAppDirectory','1trLTIy','features','api','reflux','pages','import\x20{\x20','rewriteDestinationPathForEngine','client','component/component.js','pathFromProject','301896Rhtjpe','68Ekhcjx','withTranslations','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','className','432579nbxGHE','11dzotRn','warn','true','/imports/ui/','/imports/ui/components','3212420PXMuCD','test/test.js','maka\x20g:comp\x20todos/todos-item','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','constructor','toString','\x20};\x0a','fileName','import\x20\x27','startup','checkNpmPackage','pathFromApp','test','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','react','tsx','resourceName','string','cssCaseName','\x27;\x0a','css','hooks','783498etJZfB','engines','templates.js','23445RbIiJt','template','error','template/template.css','imports','setTemplate','1231920XkqULK','components','dir','(((.+)+)+)+$','baseDir','fsi','none'];a97c=function(){return t;};return a97c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator['create']({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a97q(0xfa),'validOpts':[{'name':'baseDir','values':[a97q(0xc3),a97q(0xce),a97q(0xe6),'layouts']}],'examples':[a97q(0xf9)]},async function(a,b){const r=a97q;try{const c=this['fsi'][r(0xe1)](),d=b[r(0xd1)]?r(0xf5)+b['baseDir']:r(0xf6),f=this['fsi'][r(0xb9)]({'pathParts':[d,b['dir'],paramCase(b['resourceName']),paramCase(b[r(0xbe)])]}),g=await this[r(0xd2)]['getProjectConfig']();this[r(0xd2)][r(0xd7)](g,async()=>{const s=r;typeof g[s(0xc8)][s(0xba)]===s(0xbf)&&(g[s(0xc8)]['test']=g[s(0xc8)][s(0xba)]===s(0xf4)?!![]:![],this[s(0xd2)][s(0xcc)]('test',g['template'][s(0xba)]));typeof g[s(0xc8)][s(0xc2)]===s(0xbf)&&(g[s(0xc8)][s(0xc2)]=g['template'][s(0xc2)]===s(0xf4)?!![]:![],this[s(0xd2)]['setTemplate'](s(0xc2),g[s(0xc8)][s(0xc2)]));typeof g[s(0xc8)]['js']===s(0xbf)&&(g[s(0xc8)]['js']=g[s(0xc8)]['js']===s(0xf4)?!![]:![],this['fsi'][s(0xcc)]('js',g[s(0xc8)]['js']));!g[s(0xe3)]&&(g[s(0xe3)]={});!b['root']&&!this[s(0xd2)]['checkNpmPackage']('ramda')&&(Log[s(0xf3)](s(0xef)),await this[s(0xd2)]['installNpmPackage'](s(0xde),{'cwd':c}));if(!b[s(0xdc)]&&!this[s(0xd2)][s(0xb8)](s(0xbc))){Log[s(0xc9)](s(0xbb));return;}const h={'name':pascalCase(b[s(0xbe)]),'myPath':a97e['relative'](this[s(0xd2)][s(0xeb)]({}),f),'cssCaseName':paramCase(b[s(0xbe)]),'className':pascalCase(b[s(0xbe)]),'camelCaseName':camelCase(b[s(0xbe)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0xc5)]['graphql'],'features':g[s(0xe3)],'client':g['engines'][s(0xe9)],'api':g[s(0xc5)][s(0xe4)],'ssr':g[s(0xc5)][s(0xd6)],'test':g[s(0xc5)][s(0xba)],'theme':g['engines'][s(0xda)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xe3)][s(0xee)]};this[s(0xd2)][s(0xc8)]({'srcPath':s(0xea),'destPath':f+s(0xe0),'context':h,'framework':s(0xbc),'config':g});g['engines'][s(0xba)]!==s(0xd3)&&this[s(0xd2)][s(0xc8)]({'srcPath':s(0xf8),'destPath':f+'.tests.js','context':h,'framework':'react','config':g});g[s(0xc8)][s(0xc2)]&&(this[s(0xd2)][s(0xc8)]({'srcPath':s(0xca),'destPath':f+s(0xd5),'context':Object[s(0xdb)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0xd2)][s(0xdf)]({'filePath':f+'.'+g[s(0xc5)]['js'],'content':'import\x20\x27./'+h[s(0xc0)]+'.'+g[s(0xc5)][s(0xc2)]+'\x27;'}));const i=b[s(0xcf)]?'/'+b[s(0xcf)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[s(0xb5)];let k;if(g[s(0xc5)]['ssr']===s(0xf4)){const l=this[s(0xd2)]['pathFromApp']({'pathParts':[s(0xcb),s(0xb7),'lib',s(0xc6)]});k=this[s(0xd2)][s(0xe8)]({'pathParts':[l],'config':g});}else{const m=this[s(0xd2)][s(0xb9)]({'pathParts':[s(0xcb),s(0xb7),s(0xe9),s(0xc6)]});k=this[s(0xd2)][s(0xe8)]({'pathParts':[m],'config':g});}g[s(0xc5)]['client']==='react'||g['engines'][s(0xe9)]===s(0xe5)?(g[s(0xc5)]['js']===s(0xbd)?this[s(0xd2)][s(0xdf)]({'filePath':k,'content':s(0xe7)+h[s(0xf0)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[s(0xd2)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0xe7)+h[s(0xf0)]+s(0xd8)+j+'.'+g['engines']['js']+s(0xc1)}),this[s(0xd2)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h['className']+s(0xb4)})):this[s(0xd2)]['injectAtEndOfFile']({'filePath':k,'content':s(0xb6)+j+'.'+g[s(0xc5)]['js']+s(0xc1)});});}catch(h){Log[r(0xc9)](h);}});
1
+ function a97c(){const t=['reflux','hooks','toString','dir','resourceName','\x27;\x0a','injectAtBeginningOfFile','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','graphql','177930YtxMhq','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','cssCaseName','api','8939eIaTFP','test/test.js','ssr','9Eimxdz','(((.+)+)+)+$','true','1148KZlmBl','layouts','36670yHytjE','withTranslations','255gdmAlt','60709CeFpkS','findAppDirectory','withValue','react','117vJEupL','relative','rewriteDestinationPathForEngine','component/component.js','comp','tsx','pathFromApp','import\x20\x27./','checkNpmPackage','templates.js','/imports/ui/','css','startup','.js','template','pages','engines','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fileName','components','features','warn','25762jtQpcV','930cyYLKi','import\x20\x27','maka\x20g:comp\x20todos/todos-item','export\x20{\x20','className','fsi','create','assign','baseDir','lib','372UTGmWh','apply','component','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','error','\x20};\x0a','ramda','client','/imports/ui/components','string','import\x20{\x20','template/template.css','root','none','setTemplate','search','test','injectAtEndOfFile','1349024ZvUvRG','imports'];a97c=function(){return t;};return a97c();}const a97q=a97d;(function(a,b){const n=a97d,c=a();while(!![]){try{const d=parseInt(n(0x1fc))/0x1*(-parseInt(n(0x1cd))/0x2)+parseInt(n(0x1f5))/0x3+-parseInt(n(0x1ff))/0x4*(-parseInt(n(0x203))/0x5)+-parseInt(n(0x1ce))/0x6*(-parseInt(n(0x1f9))/0x7)+parseInt(n(0x1ea))/0x8+-parseInt(n(0x208))/0x9*(parseInt(n(0x201))/0xa)+parseInt(n(0x204))/0xb*(-parseInt(n(0x1d8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x19d5d));function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a97d(a,b);}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a97d;if(c){const e=c[o(0x1d9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const p=a97d;return a97a[p(0x1ee)]()[p(0x1e7)](p(0x1fd))[p(0x1ee)]()['constructor'](a97a)[p(0x1e7)](p(0x1fd));});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';const aliases=[a97q(0x20c)];Generator[a97q(0x1d4)]({'name':a97q(0x1da),'aliases':aliases,'usage':a97q(0x1f3),'shortDesc':a97q(0x1db),'validOpts':[{'name':a97q(0x1d6),'values':[a97q(0x1ed),a97q(0x1ca),a97q(0x217),a97q(0x200)]}],'examples':[a97q(0x1d0)]},async function(a,b){const r=a97q;try{const c=this['fsi'][r(0x205)](),d=b['baseDir']?r(0x212)+b[r(0x1d6)]:r(0x1e0),f=this[r(0x1d3)]['pathFromApp']({'pathParts':[d,b[r(0x1ef)],paramCase(b[r(0x1f0)]),paramCase(b['resourceName'])]}),g=await this[r(0x1d3)]['getProjectConfig']();this[r(0x1d3)][r(0x206)](g,async()=>{const s=r;typeof g['template'][s(0x1e8)]===s(0x1e1)&&(g[s(0x216)]['test']=g[s(0x216)][s(0x1e8)]===s(0x1fe)?!![]:![],this[s(0x1d3)][s(0x1e6)]('test',g[s(0x216)]['test']));typeof g[s(0x216)]['css']===s(0x1e1)&&(g[s(0x216)][s(0x213)]=g[s(0x216)][s(0x213)]===s(0x1fe)?!![]:![],this[s(0x1d3)][s(0x1e6)](s(0x213),g[s(0x216)][s(0x213)]));typeof g[s(0x216)]['js']===s(0x1e1)&&(g[s(0x216)]['js']=g[s(0x216)]['js']==='true'?!![]:![],this[s(0x1d3)][s(0x1e6)]('js',g['template']['js']));!g['features']&&(g[s(0x1cb)]={});!b[s(0x1e4)]&&!this[s(0x1d3)][s(0x210)]('ramda')&&(Log[s(0x1cc)](s(0x219)),await this[s(0x1d3)]['installNpmPackage'](s(0x1de),{'cwd':c}));if(!b[s(0x1e4)]&&!this[s(0x1d3)][s(0x210)]('react')){Log[s(0x1dc)](s(0x1f6));return;}const h={'name':pascalCase(b[s(0x1f0)]),'myPath':a97e[s(0x209)](this[s(0x1d3)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x1f0)]),'className':pascalCase(b[s(0x1f0)]),'camelCaseName':camelCase(b[s(0x1f0)]),'fileName':paramCase(b[s(0x1f0)]),'graphql':g[s(0x218)][s(0x1f4)],'features':g[s(0x1cb)],'client':g[s(0x218)][s(0x1df)],'api':g[s(0x218)][s(0x1f8)],'ssr':g[s(0x218)][s(0x1fb)],'test':g[s(0x218)][s(0x1e8)],'theme':g[s(0x218)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1cb)][s(0x202)]};this['fsi'][s(0x216)]({'srcPath':s(0x20b),'destPath':f+s(0x215),'context':h,'framework':s(0x207),'config':g});g[s(0x218)][s(0x1e8)]!==s(0x1e5)&&this['fsi'][s(0x216)]({'srcPath':s(0x1fa),'destPath':f+'.tests.js','context':h,'framework':s(0x207),'config':g});g['template'][s(0x213)]&&(this[s(0x1d3)][s(0x216)]({'srcPath':s(0x1e3),'destPath':f+'.css','context':Object[s(0x1d5)]({},h,{'className':paramCase(b[s(0x1f0)])}),'config':g}),this[s(0x1d3)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x218)]['js'],'content':s(0x20f)+h[s(0x1f7)]+'.'+g['engines'][s(0x213)]+'\x27;'}));const i=b[s(0x1ef)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x21a)]+'/'+h[s(0x21a)];let k;if(g[s(0x218)][s(0x1fb)]===s(0x1fe)){const l=this[s(0x1d3)][s(0x20e)]({'pathParts':[s(0x1eb),s(0x214),s(0x1d7),s(0x211)]});k=this['fsi'][s(0x20a)]({'pathParts':[l],'config':g});}else{const m=this[s(0x1d3)][s(0x20e)]({'pathParts':['imports','startup',s(0x1df),'templates.js']});k=this['fsi'][s(0x20a)]({'pathParts':[m],'config':g});}g['engines'][s(0x1df)]===s(0x207)||g[s(0x218)]['client']===s(0x1ec)?(g['engines']['js']===s(0x20d)?this[s(0x1d3)][s(0x1f2)]({'filePath':k,'content':s(0x1e2)+h[s(0x1d2)]+'\x20}\x20from\x20\x27'+j+s(0x1f1)}):this[s(0x1d3)][s(0x1f2)]({'filePath':k,'content':'import\x20{\x20'+h['className']+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x218)]['js']+'\x27;\x0a'}),this[s(0x1d3)]['injectAtEndOfFile']({'filePath':k,'content':s(0x1d1)+h[s(0x1d2)]+s(0x1dd)})):this[s(0x1d3)][s(0x1e9)]({'filePath':k,'content':s(0x1cf)+j+'.'+g[s(0x218)]['js']+s(0x1f1)});});}catch(h){Log[r(0x1dc)](h);}});
@@ -1 +1 @@
1
- const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x177))/0x1+parseInt(h(0x161))/0x2+-parseInt(h(0x16a))/0x3+parseInt(h(0x166))/0x4+parseInt(h(0x164))/0x5+-parseInt(h(0x176))/0x6+-parseInt(h(0x165))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x7bf13));function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x15e;let f=c[d];return f;},a98d(a,b);}const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0x16c)]()['search']('(((.+)+)+)+$')[j(0x16c)]()[j(0x162)](a98a)[j(0x171)](j(0x16f));});a98a();import{Generator}from'../generator.js';function a98c(){const n=['resourceName','1296951dYsSzt','withValue','toString','config','pathFromProject','(((.+)+)+)+$','Generate\x20configuration\x20settings.','search','template','apply','appName','maka\x20{generate,\x20g}:{config}\x20<name>','1601322myyTyb','670609PeNmoJ','maka\x20g:config\x20production','settings.json','dev','production','isDocker','206040VtNwCq','constructor','config/process.env','1699305uwqhWi','5649154DVseVu','3601612pYIjkE','fsi','config/settings.json'];a98c=function(){return n;};return a98c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a98k(0x16d),'usage':a98k(0x175),'shortDesc':a98k(0x170),'validOpts':[a98k(0x160)],'examples':[a98k(0x178)]},function(a,b){const l=a98k,c=this[l(0x167)]['getProjectConfig']();this['fsi'][l(0x16b)](c,async()=>{const m=l,d={'app':c[m(0x174)],'appFileCase':paramCase(c[m(0x174)]),'name':pascalCase(b[m(0x169)]),'fileName':paramCase(b[m(0x169)]),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b[m(0x160)]};let e=b['resourceName'];if(e===m(0x15e))e='development';else e==='prod'&&(e=m(0x15f));const f=this[m(0x167)]['pathFromProject']({'pathParts':[m(0x16d),e,m(0x179)]});this[m(0x167)][m(0x172)]({'srcPath':m(0x168),'destPath':f,'context':d,'config':c});if(!b[m(0x160)]){const g=this['fsi'][m(0x16e)]({'pathParts':[m(0x16d),e,'process.env']});this[m(0x167)][m(0x172)]({'srcPath':m(0x163),'destPath':g,'context':d,'config':c});}});});
1
+ const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0xca))/0x1+parseInt(h(0xb0))/0x2+-parseInt(h(0xbe))/0x3*(parseInt(h(0xc1))/0x4)+parseInt(h(0xc5))/0x5*(parseInt(h(0xbb))/0x6)+-parseInt(h(0xc4))/0x7*(-parseInt(h(0xac))/0x8)+-parseInt(h(0xb3))/0x9+parseInt(h(0xbd))/0xa*(-parseInt(h(0xc2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xf245a));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0xaf)]()['search'](j(0xb7))[j(0xaf)]()[j(0xb9)](a98a)[j(0xcb)](j(0xb7));});function a98c(){const n=['25LIAUpZ','appName','config/process.env','production','maka\x20g:config\x20production','654547NRyRRQ','search','isDocker','maka\x20{generate,\x20g}:{config}\x20<name>','ubuntu','56HGKpLo','Generate\x20configuration\x20settings.','getProjectConfig','toString','822422RTGrlv','fsi','withValue','12466845qbYZmM','development','pathFromProject','apply','(((.+)+)+)+$','process.env','constructor','resourceName','1387182MxZxQa','prod','125150GTwjJH','6vxBkBE','create','config','573488MlrxzQ','55wjqCYJ','template','505127ITXZru'];a98c=function(){return n;};return a98c();}function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xac;let f=c[d];return f;},a98d(a,b);}a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98k(0xbf)]({'name':a98k(0xc0),'usage':a98k(0xcd),'shortDesc':a98k(0xad),'validOpts':[a98k(0xcc)],'examples':[a98k(0xc9)]},function(a,b){const l=a98k,c=this[l(0xb1)][l(0xae)]();this['fsi'][l(0xb2)](c,async()=>{const m=l,d={'app':c[m(0xc6)],'appFileCase':paramCase(c[m(0xc6)]),'name':pascalCase(b[m(0xba)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0xba)]),'userName':m(0xce),'isDocker':b['isDocker']};let e=b[m(0xba)];if(e==='dev')e=m(0xb4);else e===m(0xbc)&&(e=m(0xc8));const f=this[m(0xb1)]['pathFromProject']({'pathParts':['config',e,'settings.json']});this[m(0xb1)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0xcc)]){const g=this[m(0xb1)][m(0xb5)]({'pathParts':['config',e,m(0xb8)]});this[m(0xb1)][m(0xc3)]({'srcPath':m(0xc7),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a99m=a99d;(function(a,b){const j=a99d,c=a();while(!![]){try{const d=parseInt(j(0xa3))/0x1*(parseInt(j(0xa6))/0x2)+parseInt(j(0xbe))/0x3+-parseInt(j(0x91))/0x4*(parseInt(j(0xa9))/0x5)+-parseInt(j(0x94))/0x6*(-parseInt(j(0xb2))/0x7)+parseInt(j(0x9d))/0x8+parseInt(j(0xb3))/0x9*(parseInt(j(0x9e))/0xa)+-parseInt(j(0x9b))/0xb*(parseInt(j(0x9c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x2236b));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a99d;if(c){const e=c[k(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a['toString']()['search'](l(0xae))[l(0x92)]()['constructor'](a99a)[l(0xa1)](l(0xae));});a99a();import{camelCase,paramCase,pascalCase}from'change-case';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x91;let f=c[d];return f;},a99d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99c(){const p=['12twGwMK','1896528vCUqSK','5850MXezHR','resourceName','pathFromApp','search','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','749sBpfYh','config.','dbc/conn.js','98AYDCMl','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','checkNpmPackage','897580lFteSA','apply','type','import\x20\x27./register-','mssql','(((.+)+)+)+$','engines','withValue','index.','28UVpitw','2853DUWQoA','register-','dbc/register-dbc.js','injectAtEndOfFile','startup','dir','template','dbc','warn','server','tsx','45087yxWzfH','4gjPxrm','toString','better-sqlite3','81912RLRAqE','fsi','imports','pgsql','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','sqlite','-dbc.','2301134RdWsys'];a99c=function(){return p;};return a99c();}Generator['create']({'name':a99m(0xba),'usage':a99m(0xa7),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a99m(0xb8)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a99m(0xab),'values':[a99m(0x97),a99m(0xad),a99m(0x99)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20g:dbc\x20azure\x20--type=mssql','maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const n=a99m;try{const c=await this['fsi']['getProjectConfig'](),d=this['fsi'][n(0xa0)]({}),f=paramCase(b[n(0x9f)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[n(0x9f)]),'type':b['type'],'engine':c[n(0xaf)]['js'],'noRename':!![]};this[n(0x95)][n(0xb0)](c,async()=>{const o=n;let h='js';c[o(0xaf)]['js']===o(0xbd)&&(h='ts');b[o(0xab)]===o(0x97)&&!this[o(0x95)][o(0xa8)]('pg')&&(Log[o(0xbb)](o(0x98)),await this[o(0x95)]['installNpmPackage']('pg',{'cwd':d}));b[o(0xab)]===o(0xad)&&!this[o(0x95)]['checkNpmPackage'](o(0xad))&&(Log['warn'](o(0xa2)),await this[o(0x95)]['installNpmPackage'](o(0xad),{'cwd':d}));b['type']===o(0x99)&&!this[o(0x95)][o(0xa8)](o(0x93))&&(Log[o(0xbb)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0x95)]['installNpmPackage']('better-sqlite3',{'cwd':d}));this[o(0x95)][o(0xb9)]({'srcPath':'dbc/config.js','destPath':this[o(0x95)][o(0xa0)]({'pathParts':[o(0x96),'startup',o(0xbc),o(0xba),b[o(0xb8)],f,o(0xa4)+h]}),'context':g,'config':c}),this[o(0x95)][o(0xb9)]({'srcPath':o(0xa5),'destPath':this[o(0x95)][o(0xa0)]({'pathParts':[o(0x96),'startup',o(0xbc),o(0xba),b[o(0xb8)],f,'conn.'+h]}),'context':g,'config':c}),this[o(0x95)][o(0xb9)]({'srcPath':o(0xb5),'destPath':this[o(0x95)]['pathFromApp']({'pathParts':[o(0x96),o(0xb7),o(0xbc),o(0xb4)+f+o(0x9a)+h]}),'context':g,'config':c});const i=this['fsi']['pathFromApp']({'pathParts':[o(0x96),'startup',o(0xbc),o(0xb1)+c[o(0xaf)]['js']]});this[o(0x95)][o(0xb6)]({'filePath':i,'content':o(0xac)+f+'-dbc\x27;'});});}catch(h){Log['error'](h);}});
1
+ const a99l=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xb8;let f=c[d];return f;},a99d(a,b);}(function(a,b){const j=a99d,c=a();while(!![]){try{const d=parseInt(j(0xc4))/0x1*(-parseInt(j(0xc7))/0x2)+-parseInt(j(0xda))/0x3+parseInt(j(0xd4))/0x4+parseInt(j(0xc0))/0x5*(-parseInt(j(0xe4))/0x6)+-parseInt(j(0xdc))/0x7*(-parseInt(j(0xcb))/0x8)+-parseInt(j(0xd2))/0x9+-parseInt(j(0xbb))/0xa*(-parseInt(j(0xd6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x5c6ab));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const k=a99d;return a99a[k(0xbc)]()[k(0xdb)]('(((.+)+)+)+$')['toString']()[k(0xc9)](a99a)[k(0xdb)]('(((.+)+)+)+$');});a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99c(){const o=['2831324BlVelE','checkNpmPackage','168278SQjeTd','fsi','tsx','dir','314196GkPtJM','search','7UKeKdI','engines','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','withValue','-dbc.','getProjectConfig','installNpmPackage','sqlite','6vMfRvv','maka\x20g:dbc\x20azure\x20--type=mssql','server','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','type','warn','conn.','770XvqYYv','toString','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','pgsql','pathFromApp','2941690MtBiUc','maka\x20g:dbc\x20geoserver\x20--type=pgsql','resourceName','better-sqlite3','8219yWrKLM','register-','mssql','178hQvFPC','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','constructor','dbc/register-dbc.js','2194888jaCFzV','startup','error','template','-dbc\x27;','dbc','imports','3213342MHSinR','import\x20\x27./register-'];a99c=function(){return o;};return a99c();}Generator['create']({'name':'dbc','usage':a99l(0xbd),'shortDesc':a99l(0xc8),'validOpts':[a99l(0xd9)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a99l(0xb8),'values':[a99l(0xbe),a99l(0xc6),'sqlite']}],'examples':[a99l(0xc1),a99l(0xe5),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const m=a99l;try{const c=await this[m(0xd7)][m(0xe1)](),d=this[m(0xd7)]['pathFromApp']({}),f=paramCase(b[m(0xc2)]),g={'name':pascalCase(b[m(0xc2)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0xc2)]),'type':b[m(0xb8)],'engine':c['engines']['js'],'noRename':!![]};this[m(0xd7)][m(0xdf)](c,async()=>{const n=m;let h='js';c[n(0xdd)]['js']===n(0xd8)&&(h='ts');b[n(0xb8)]===n(0xbe)&&!this[n(0xd7)][n(0xd5)]('pg')&&(Log[n(0xb9)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[n(0xd7)][n(0xe2)]('pg',{'cwd':d}));b[n(0xb8)]===n(0xc6)&&!this['fsi']['checkNpmPackage'](n(0xc6))&&(Log[n(0xb9)](n(0xe7)),await this['fsi']['installNpmPackage'](n(0xc6),{'cwd':d}));b[n(0xb8)]===n(0xe3)&&!this[n(0xd7)][n(0xd5)]('better-sqlite3')&&(Log['warn'](n(0xde)),await this[n(0xd7)]['installNpmPackage'](n(0xc3),{'cwd':d}));this[n(0xd7)][n(0xce)]({'srcPath':'dbc/config.js','destPath':this[n(0xd7)][n(0xbf)]({'pathParts':[n(0xd1),n(0xcc),n(0xe6),n(0xd0),b[n(0xd9)],f,'config.'+h]}),'context':g,'config':c}),this[n(0xd7)]['template']({'srcPath':'dbc/conn.js','destPath':this[n(0xd7)][n(0xbf)]({'pathParts':[n(0xd1),'startup',n(0xe6),n(0xd0),b[n(0xd9)],f,n(0xba)+h]}),'context':g,'config':c}),this[n(0xd7)]['template']({'srcPath':n(0xca),'destPath':this[n(0xd7)][n(0xbf)]({'pathParts':['imports','startup',n(0xe6),n(0xc5)+f+n(0xe0)+h]}),'context':g,'config':c});const i=this[n(0xd7)][n(0xbf)]({'pathParts':[n(0xd1),n(0xcc),'server','index.'+c['engines']['js']]});this[n(0xd7)]['injectAtEndOfFile']({'filePath':i,'content':n(0xd3)+f+n(0xcf)});});}catch(h){Log[m(0xcd)](h);}});
@@ -1 +1 @@
1
- const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x134))/0x1*(-parseInt(f(0x12c))/0x2)+parseInt(f(0x122))/0x3*(-parseInt(f(0x135))/0x4)+parseInt(f(0x136))/0x5*(parseInt(f(0x13d))/0x6)+parseInt(f(0x13b))/0x7*(parseInt(f(0x133))/0x8)+-parseInt(f(0x128))/0x9*(parseInt(f(0x12e))/0xa)+-parseInt(f(0x139))/0xb+-parseInt(f(0x123))/0xc*(-parseInt(f(0x126))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x56c38));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x130)]()[h(0x127)](h(0x140))[h(0x130)]()[h(0x138)](a100a)[h(0x127)](h(0x140));});function a100c(){const l=['search','9fZvWfx','isFile','maka\x20{generate,\x20g}:dockerfile','error','2702NwScyy','appName','2224660ZSKchS','dockerfile','toString','fsi','join','8NtlAuS','293rqUpnm','232BhwMqk','50fAFDme','maka\x20g:dockerfile','constructor','2454177pyYaqj','template','1381373rICYSm','withValue','183462blzjUy','apply','Generate\x20an\x20updated\x20dockerfile','(((.+)+)+)+$','build','Dockerfile','15258AlQjoG','3084GTGQXf','app','getProjectConfig','50011pJPhCn'];a100c=function(){return l;};return a100c();}a100a();import{Generator}from'../generator.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x122;let f=c[d];return f;},a100d(a,b);}import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator['create']({'name':a100i(0x12f),'usage':a100i(0x12a),'shortDesc':a100i(0x13f),'validOpts':[],'noResource':!![],'examples':[a100i(0x137)]},async function(){const j=a100i;try{const a=await this['fsi'][j(0x125)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0x131)]['findProjectDirectory']();this[j(0x131)][j(0x13c)](a,async()=>{const k=j,d={'app':b[k(0x12d)],'config':a,'appPath':a100e['join'](c,k(0x124)),'bundlePath':a100e[k(0x132)](c,k(0x141),'app.tar.gz'),'useCert':this[k(0x131)][k(0x129)](b['cert'])};this[k(0x131)][k(0x13a)]({'srcPath':'docker/Dockerfile','destPath':a100e[k(0x132)](c,k(0x142)),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x12b)](d);}});
1
+ const a100h=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=-parseInt(f(0x124))/0x1*(parseInt(f(0x12d))/0x2)+-parseInt(f(0x12b))/0x3*(parseInt(f(0x117))/0x4)+parseInt(f(0x125))/0x5+parseInt(f(0x11a))/0x6*(parseInt(f(0x11f))/0x7)+parseInt(f(0x114))/0x8*(parseInt(f(0x11b))/0x9)+-parseInt(f(0x128))/0xa*(-parseInt(f(0x119))/0xb)+parseInt(f(0x12c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x39d39));const a100b=(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;};}()),a100a=a100b(this,function(){const g=a100d;return a100a['toString']()[g(0x118)](g(0x11d))[g(0x111)]()[g(0x126)](a100a)[g(0x118)](g(0x11d));});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[a100h(0x11c)]({'name':a100h(0x129),'usage':a100h(0x110),'shortDesc':a100h(0x115),'validOpts':[],'noResource':!![],'examples':[a100h(0x11e)]},async function(){const i=a100h;try{const a=await this['fsi'][i(0x12a)](),b=await this['fsi']['getGlobalConfig'](),c=this[i(0x112)][i(0x10f)]();this[i(0x112)][i(0x116)](a,async()=>{const j=i,d={'app':b[j(0x113)],'config':a,'appPath':a100e['join'](c,j(0x127)),'bundlePath':a100e[j(0x10e)](c,'build','app.tar.gz'),'useCert':this[j(0x112)]['isFile'](b['cert'])};this[j(0x112)][j(0x123)]({'srcPath':j(0x122),'destPath':a100e['join'](c,j(0x120)),'framework':'service','context':d,'config':a});});}catch(d){Log[i(0x121)](d);}});function a100c(){const k=['305113yLJRSa','153575Uirwri','constructor','app','170KbGitT','dockerfile','getProjectConfig','651vBJFvt','630384WhoYzk','2oNhKpv','join','findProjectDirectory','maka\x20{generate,\x20g}:dockerfile','toString','fsi','appName','712PEWtif','Generate\x20an\x20updated\x20dockerfile','withValue','5524mDheaa','search','29590yMKRop','19788WNmOHj','27378cdIkKW','create','(((.+)+)+)+$','maka\x20g:dockerfile','938iTyyHQ','Dockerfile','error','docker/Dockerfile','template'];a100c=function(){return k;};return a100c();}
@@ -1 +1 @@
1
- const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=parseInt(o(0x1de))/0x1*(-parseInt(o(0x1ce))/0x2)+parseInt(o(0x1c8))/0x3+-parseInt(o(0x1f7))/0x4*(parseInt(o(0x1d7))/0x5)+parseInt(o(0x1bc))/0x6*(parseInt(o(0x1d0))/0x7)+-parseInt(o(0x1e3))/0x8*(-parseInt(o(0x1da))/0x9)+parseInt(o(0x1e5))/0xa+parseInt(o(0x1d6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xaf671));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a101d;if(c){const e=c[p(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a[q(0x1bb)]()['search'](q(0x1dc))[q(0x1bb)]()[q(0x1f0)](a101a)[q(0x1e4)](q(0x1dc));});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a101d(a,b);}a101a();function a101c(){const u=['lib','baseDir','hooks','create','\x20};\x0a','pathFromProject','@apollo/client\x20isomorphic-fetch','client','fsi','ssr','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','error','toString','1121964BvDBvK','pathFromApp','imports','installNpmPackage','react','string','template/template.css','hook','\x27;\x0a','resourceName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','engines','2480874WOqLmA','.css','export\x20{\x20','css','checkNpmPackage','test/test.js','4DWGLbt','cssCaseName','28UDxQRb','injectAtEndOfFile','relative','true','template','layouts','8022960rIqMFv','305gnWitC','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','templates.js','9ocdnuW','.app-tests.js','(((.+)+)+)+$','apollo','551632lSioys','rewriteDestinationPathForEngine','\x20hook...','import\x20\x27','injectAtBeginningOfFile','1898168gMVDFq','search','3414260sFjGiZ','theme','startup','withValue','className','\x20}\x20from\x20\x27','@apollo/client','assign','graphql','getProjectConfig','import\x20\x27./','constructor','/imports/ui/','/imports/ui/hooks','setTemplate','import\x20{\x20','fileName','test','69592BGmohu','tsx','apply','dir','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20'];a101c=function(){return u;};return a101c();}import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a101r(0x1ff)]({'name':a101r(0x1c3),'aliases':['h'],'checkWhere':![],'usage':a101r(0x1d8),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':'baseDir','values':[a101r(0x1fe),'components','pages',a101r(0x1d5)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a101r(0x1fb)},async function(a,b){const s=a101r;Log['notice']('Creating\x20'+b[s(0x1c5)]+s(0x1e0));try{const c=this['fsi'][s(0x1cc)](s(0x1c0));if(!c){Log[s(0x1ba)](s(0x1c6));throw new UsageError();}const d=this[s(0x1b7)][s(0x1bd)](b),f=b[s(0x1fd)]?s(0x1f1)+b[s(0x1fd)]:s(0x1f2),g=this['fsi'][s(0x1bd)]({'pathParts':[f,b['dir'],paramCase(b[s(0x1c5)]),paramCase(b[s(0x1c5)])]}),h=await this['fsi'][s(0x1ee)]();this[s(0x1b7)][s(0x1e8)](h,async()=>{const t=s;typeof h[t(0x1d4)][t(0x1cb)]===t(0x1c1)&&(h[t(0x1d4)][t(0x1cb)]=h[t(0x1d4)][t(0x1cb)]===t(0x1d3)?!![]:![],this[t(0x1b7)][t(0x1f3)]('css',h[t(0x1d4)][t(0x1cb)]));h[t(0x1c7)][t(0x1ed)]===t(0x1dd)&&!this[t(0x1b7)]['checkNpmPackage'](t(0x1eb))&&(Log['warn'](t(0x1b9)),await this[t(0x1b7)][t(0x1bf)](t(0x1b5),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1c5)]),'camelCaseName':camelCase(b[t(0x1c5)]),'className':pascalCase(b[t(0x1c5)]),'name':pascalCase(b[t(0x1c5)]),'graphql':h[t(0x1c7)][t(0x1ed)],'theme':h[t(0x1c7)][t(0x1e6)],'features':h['features'],'myPath':a101e[t(0x1d2)](this[t(0x1b7)][t(0x1b4)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h['features']['withTranslations']};this['fsi'][t(0x1d4)]({'srcPath':'hook/hook.js','destPath':g+'.js','context':i,'config':h,'framework':t(0x1c0)});h[t(0x1d4)][t(0x1cb)]&&(this[t(0x1b7)][t(0x1d4)]({'srcPath':t(0x1c2),'destPath':g+t(0x1c9),'context':Object[t(0x1ec)]({},i,{'className':i[t(0x1cf)]}),'config':h}),this[t(0x1b7)][t(0x1e2)]({'filePath':g+'.'+h[t(0x1c7)]['js'],'content':t(0x1ef)+i[t(0x1f5)]+'.'+h[t(0x1c7)][t(0x1cb)]+'\x27;'}));h[t(0x1c7)][t(0x1f6)]!=='none'&&this[t(0x1b7)][t(0x1d4)]({'srcPath':t(0x1cd),'destPath':g+t(0x1db),'framework':t(0x1c0),'context':i,'config':h});const j=b[t(0x1fa)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x1f5)]+'/'+i['fileName'];let l;if(h[t(0x1c7)][t(0x1b8)]===t(0x1d3)){const m=this['fsi'][t(0x1bd)]({'pathParts':[t(0x1be),t(0x1e7),t(0x1fc),t(0x1d9)]});l=this['fsi'][t(0x1df)]({'pathParts':[m],'config':h});}else{const n=this[t(0x1b7)][t(0x1bd)]({'pathParts':['imports',t(0x1e7),t(0x1b6),t(0x1d9)]});l=this['fsi'][t(0x1df)]({'pathParts':[n],'config':h});}h['engines'][t(0x1b6)]===t(0x1c0)?(h[t(0x1c7)]['js']===t(0x1f8)?this[t(0x1b7)][t(0x1e2)]({'filePath':l,'content':t(0x1f4)+i[t(0x1e9)]+t(0x1ea)+k+t(0x1c4)}):this[t(0x1b7)][t(0x1e2)]({'filePath':l,'content':t(0x1f4)+i[t(0x1e9)]+'\x20}\x20from\x20\x27'+k+'.'+h[t(0x1c7)]['js']+t(0x1c4)}),this[t(0x1b7)][t(0x1d1)]({'filePath':l,'content':t(0x1ca)+i[t(0x1e9)]+t(0x1b3)})):this[t(0x1b7)][t(0x1d1)]({'filePath':l,'content':t(0x1e1)+k+'.'+h[t(0x1c7)]['js']+t(0x1c4)});});}catch(i){Log[s(0x1ba)](i);}});
1
+ const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=parseInt(o(0x138))/0x1+parseInt(o(0x116))/0x2*(-parseInt(o(0x139))/0x3)+parseInt(o(0x130))/0x4*(-parseInt(o(0x14a))/0x5)+parseInt(o(0x129))/0x6*(-parseInt(o(0x115))/0x7)+-parseInt(o(0x12b))/0x8+-parseInt(o(0x11a))/0x9+parseInt(o(0x121))/0xa*(parseInt(o(0x141))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x4e589));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a101d;if(c){const e=c[p(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a[q(0x131)]()['search']('(((.+)+)+)+$')['toString']()[q(0x10f)](a101a)['search'](q(0x132));});a101a();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x107;let f=c[d];return f;},a101d(a,b);}import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a101c(){const u=['className','\x20};\x0a','components','.js','25rJMXWy','checkNpmPackage','css','resourceName','.css','warn','hook','fsi','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','create','imports','lib','fileName','export\x20{\x20','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','import\x20{\x20','import\x20\x27','baseDir','constructor','maka\x20g:hook\x20cool-hook','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','injectAtEndOfFile','string','injectAtBeginningOfFile','391272PpQTIO','108OehIfn','layouts','import\x20\x27./','apply','1266885OFkJRM','true','withValue','getProjectConfig','/imports/ui/hooks','client','none','4151530ASykSj','relative','test','pathFromProject','graphql','theme','engines','notice','12mLgRWW','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','8912rZfTgx','template','\x20}\x20from\x20\x27','dir','templates.js','271212MRssfS','toString','(((.+)+)+)+$','features','Creating\x20','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','apollo','pathFromApp','544716nVfbQs','2571ZZjLAc','installNpmPackage','assign','ssr','cssCaseName','\x27;\x0a','startup','react','11iRtcoH','error','hooks','rewriteDestinationPathForEngine','setTemplate'];a101c=function(){return u;};return a101c();}Generator[a101r(0x153)]({'name':a101r(0x150),'aliases':['h'],'checkWhere':![],'usage':a101r(0x152),'shortDesc':a101r(0x10b),'validOpts':[{'name':'baseDir','values':[a101r(0x143),a101r(0x148),'pages',a101r(0x117)]}],'examples':[a101r(0x110)],'description':a101r(0x12a)},async function(a,b){const s=a101r;Log[s(0x128)](s(0x134)+b[s(0x14d)]+'\x20hook...');try{const c=this[s(0x151)][s(0x14b)](s(0x140));if(!c){Log['error'](s(0x135));throw new UsageError();}const d=this[s(0x151)][s(0x137)](b),f=b[s(0x10e)]?'/imports/ui/'+b[s(0x10e)]:s(0x11e),g=this['fsi']['pathFromApp']({'pathParts':[f,b[s(0x12e)],paramCase(b[s(0x14d)]),paramCase(b[s(0x14d)])]}),h=await this['fsi'][s(0x11d)]();this[s(0x151)][s(0x11c)](h,async()=>{const t=s;typeof h[t(0x12c)][t(0x14c)]===t(0x113)&&(h['template'][t(0x14c)]=h[t(0x12c)][t(0x14c)]===t(0x11b)?!![]:![],this[t(0x151)][t(0x145)]('css',h[t(0x12c)][t(0x14c)]));h[t(0x127)]['graphql']===t(0x136)&&!this[t(0x151)][t(0x14b)]('@apollo/client')&&(Log[t(0x14f)](t(0x111)),await this[t(0x151)][t(0x13a)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x14d)]),'camelCaseName':camelCase(b[t(0x14d)]),'className':pascalCase(b[t(0x14d)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0x127)][t(0x125)],'theme':h['engines'][t(0x126)],'features':h[t(0x133)],'myPath':a101e[t(0x122)](this[t(0x151)][t(0x124)]({}),g),'fileName':paramCase(b[t(0x14d)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x133)]['withTranslations']};this[t(0x151)][t(0x12c)]({'srcPath':'hook/hook.js','destPath':g+t(0x149),'context':i,'config':h,'framework':t(0x140)});h[t(0x12c)][t(0x14c)]&&(this['fsi'][t(0x12c)]({'srcPath':'template/template.css','destPath':g+t(0x14e),'context':Object[t(0x13b)]({},i,{'className':i[t(0x13d)]}),'config':h}),this[t(0x151)][t(0x114)]({'filePath':g+'.'+h[t(0x127)]['js'],'content':t(0x118)+i[t(0x109)]+'.'+h[t(0x127)]['css']+'\x27;'}));h['engines'][t(0x123)]!==t(0x120)&&this[t(0x151)][t(0x12c)]({'srcPath':'test/test.js','destPath':g+'.app-tests.js','framework':t(0x140),'context':i,'config':h});const j=b[t(0x12e)]?'/'+b[t(0x12e)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x109)];let l;if(h['engines'][t(0x13c)]==='true'){const m=this[t(0x151)][t(0x137)]({'pathParts':[t(0x107),t(0x13f),t(0x108),t(0x12f)]});l=this[t(0x151)][t(0x144)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x137)]({'pathParts':[t(0x107),t(0x13f),t(0x11f),t(0x12f)]});l=this[t(0x151)][t(0x144)]({'pathParts':[n],'config':h});}h[t(0x127)]['client']===t(0x140)?(h[t(0x127)]['js']==='tsx'?this['fsi'][t(0x114)]({'filePath':l,'content':t(0x10c)+i[t(0x146)]+t(0x12d)+k+'\x27;\x0a'}):this['fsi'][t(0x114)]({'filePath':l,'content':t(0x10c)+i[t(0x146)]+t(0x12d)+k+'.'+h[t(0x127)]['js']+'\x27;\x0a'}),this[t(0x151)][t(0x112)]({'filePath':l,'content':t(0x10a)+i[t(0x146)]+t(0x147)})):this[t(0x151)][t(0x112)]({'filePath':l,'content':t(0x10d)+k+'.'+h['engines']['js']+t(0x13e)});});}catch(i){Log[s(0x142)](i);}});
@@ -1 +1 @@
1
- const a102j=a102d;function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0xcd;let f=c[d];return f;},a102d(a,b);}(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0xd0))/0x1*(-parseInt(h(0xdb))/0x2)+-parseInt(h(0xe4))/0x3+parseInt(h(0xeb))/0x4+parseInt(h(0xd9))/0x5*(parseInt(h(0xd3))/0x6)+-parseInt(h(0xd7))/0x7*(parseInt(h(0xcf))/0x8)+-parseInt(h(0xda))/0x9+parseInt(h(0xd5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xbabf9));function a102c(){const m=['maka\x20{generate,\x20g}:{kit}\x20<kit-name>','(((.+)+)+)+$','toString','2969910dmWWWu','create','resourceName','search','getProjectConfig','engines','type','4351384FxxsKS','leaflet-map','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:kit\x20--type=map','4696KAYPqz','31DxbAoi','fsi','(blank)','2196jHZzOt','maka\x20g:k\x20city-map\x20--type=leaflet-map','13483760MBPwui','error','9051OBPXGE','login','17885QTaOny','3517497ghTGdQ','54238tVReXU','NIE',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','constructor','notice','map'];a102c=function(){return m;};return a102c();}const a102b=(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;};}()),a102a=a102b(this,function(){const i=a102d;return a102a[i(0xe3)]()[i(0xe7)](i(0xe2))[i(0xe3)]()[i(0xde)](a102a)[i(0xe7)](i(0xe2));});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102j(0xe5)]({'name':'kit','aliases':['k'],'usage':a102j(0xe1),'shortDesc':a102j(0xcd),'validOpts':[a102j(0xea)],'examples':[a102j(0xce),a102j(0xd4)]},async function(a,b){const k=a102j;try{const c=this[k(0xd1)][k(0xe8)]();this[k(0xd1)]['withValue'](c,async()=>{const l=k,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[l(0xe6)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[l(0xe9)]['js'],'noRename':!![]},f=[l(0xec),l(0xd8)];if(f['indexOf'](d[l(0xea)])<0x0){const g=d[l(0xea)]?d[l(0xea)]:l(0xd2);Log[l(0xd6)]('Invalid\x20type\x20'+g+l(0xdd));return;}b[l(0xea)]===l(0xe0)&&Log['notice'](l(0xdc)),b[l(0xea)]===l(0xd8)&&Log[l(0xdf)]('NIE');});}catch(d){Log['error'](d);}});
1
+ const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x1e8))/0x1+-parseInt(h(0x1f6))/0x2+parseInt(h(0x1ef))/0x3+parseInt(h(0x1e7))/0x4*(-parseInt(h(0x1f9))/0x5)+parseInt(h(0x1f8))/0x6*(parseInt(h(0x1ff))/0x7)+parseInt(h(0x201))/0x8*(parseInt(h(0x1fe))/0x9)+-parseInt(h(0x1f7))/0xa*(-parseInt(h(0x1fb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x98f80));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x202)]()[j(0x1f2)](j(0x1ec))['toString']()['constructor'](a102a)['search']('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';function a102c(){const n=['leaflet-map','resourceName','(blank)','(((.+)+)+)+$',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','maka\x20g:k\x20city-map\x20--type=leaflet-map','1796166UneKXK','create','indexOf','search','error','type','apply','414178PjiWnD','20DUsuOf','156aEIdVv','5263055rvArMy','NIE','4077414tJpKZs','kit','login','1726533pGFYlY','196217nMcwIu','maka\x20g:kit\x20--type=map','32VkHfgm','toString','getProjectConfig','map','notice','fsi','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','Invalid\x20type\x20','4VExCwD','949964LUrNoT'];a102c=function(){return n;};return a102c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1e4;let f=c[d];return f;},a102d(a,b);}Generator[a102k(0x1f0)]({'name':a102k(0x1fc),'aliases':['k'],'usage':a102k(0x1e5),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a102k(0x1f4)],'examples':[a102k(0x200),a102k(0x1ee)]},async function(a,b){const l=a102k;try{const c=this[l(0x1e4)][l(0x203)]();this[l(0x1e4)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x1ea)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x1ea)]),'type':b[m(0x1f4)],'engine':c['engines']['js'],'noRename':!![]},f=[m(0x1e9),'login'];if(f[m(0x1f1)](d[m(0x1f4)])<0x0){const g=d[m(0x1f4)]?d[m(0x1f4)]:m(0x1eb);Log[m(0x1f3)](m(0x1e6)+g+m(0x1ed));return;}b[m(0x1f4)]===m(0x204)&&Log[m(0x205)](m(0x1fa)),b['type']===m(0x1fd)&&Log[m(0x205)](m(0x1fa));});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a103q=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x1c3))/0x1*(-parseInt(o(0x1df))/0x2)+-parseInt(o(0x1d8))/0x3*(parseInt(o(0x1dd))/0x4)+parseInt(o(0x1a9))/0x5*(parseInt(o(0x1ce))/0x6)+parseInt(o(0x1d9))/0x7+parseInt(o(0x1a7))/0x8*(-parseInt(o(0x1b5))/0x9)+-parseInt(o(0x1ca))/0xa+parseInt(o(0x1b3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x7f340));const a103b=(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;};}()),a103a=a103b(this,function(){const p=a103d;return a103a['toString']()['search'](p(0x19d))['toString']()[p(0x1c5)](a103a)[p(0x1ae)](p(0x19d));});a103a();function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x19d;let f=c[d];return f;},a103d(a,b);}import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const t=['20HrfYKr','.app-tests.js','64Nnzzra','.css','(((.+)+)+)+$','withHook','string','installNpmPackage','test','client','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','layout','split','24KVpKng','\x20}\x20from\x20\x27','5wCmuPa','template','withHooks','tsx','fileName','search','imports','Scaffolding\x20for\x20a\x20React\x20Layout.','/imports/ui/layouts','templates.js','23182709tYZVHT','injectAtBeginningOfFile','1463877ztDAvU','.js','rewriteDestinationPathForEngine','warn','theme','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','template/template.css','true','lib','pathFromApp','ssr','dir','assign','injectAtEndOfFile','7824LnJhiN','startup','constructor','setTemplate','maka\x20g:l\x20web/safari','engines','pathFromProject','9847250gMWpEy','relative','api','react','1969866TIxraW','graphql','css','className','none','\x27;\x0a','import\x20\x27./','fsi','resourceName','features','422754AHNPhF','3589852HoFNqz','import\x20\x27','withTranslations','import\x20{\x20'];a103c=function(){return t;};return a103c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a103q(0x1a5),'aliases':aliases,'usage':a103q(0x1a4),'shortDesc':a103q(0x1b0),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8',a103q(0x1c7)]},function(a,b){const r=a103q,c=r(0x1b1),d=this[r(0x1d5)]['findAppDirectory'](),e=this['fsi'][r(0x1be)]({'pathParts':[c,b[r(0x1c0)],paramCase(b[r(0x1d6)]),paramCase(b[r(0x1d6)])]}),f=this['fsi']['getProjectConfig']();this[r(0x1d5)]['withValue'](f,()=>{const s=r;typeof f[s(0x1aa)][s(0x1a1)]===s(0x19f)&&(f['template']['test']=f[s(0x1aa)]['test']===s(0x1bc)?!![]:![],this[s(0x1d5)][s(0x1c6)](s(0x1a1),f['template'][s(0x1a1)]));typeof f[s(0x1aa)][s(0x1d0)]==='string'&&(f[s(0x1aa)][s(0x1d0)]=f[s(0x1aa)][s(0x1d0)]===s(0x1bc)?!![]:![],this['fsi'][s(0x1c6)]('css',f[s(0x1aa)][s(0x1d0)]));typeof f[s(0x1aa)]['js']===s(0x19f)&&(f[s(0x1aa)]['js']=f[s(0x1aa)]['js']===s(0x1bc)?!![]:![],this[s(0x1d5)][s(0x1c6)]('js',f[s(0x1aa)]['js']));!f[s(0x1d7)]&&(f[s(0x1d7)]={});const g=b['_']?b['_'][0x0][s(0x1a6)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage']('ramda')&&(Log[s(0x1b8)](s(0x1a3)),this[s(0x1d5)][s(0x1a0)]('ramda',{'cwd':d}));if(h&&!this['checkNpmPackage'](s(0x1cd))){Log[s(0x1b8)](s(0x1ba));return;}const i={'name':pascalCase(b[s(0x1d6)]),'myPath':a103e[s(0x1cb)](this[s(0x1d5)][s(0x1c9)]({}),e),'cssCaseName':paramCase(b[s(0x1d6)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x1d6)]),'fileName':paramCase(b[s(0x1d6)]),'graphql':f[s(0x1c8)][s(0x1cf)],'features':f['features'],'client':f[s(0x1c8)][s(0x1a2)],'api':f[s(0x1c8)][s(0x1cc)],'ssr':f['engines'][s(0x1bf)],'test':f[s(0x1c8)]['test'],'theme':f['engines'][s(0x1b9)],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][s(0x1db)]};f['features']?.[s(0x1ab)]||b[s(0x19e)]?this[s(0x1d5)]['template']({'srcPath':'hook/hook.js','destPath':e+s(0x1b6),'framework':s(0x1cd),'context':i,'config':f}):this['fsi'][s(0x1aa)]({'srcPath':'component/component.js','destPath':e+'.js','framework':s(0x1cd),'context':i,'config':f});f[s(0x1c8)][s(0x1a1)]!==s(0x1d2)&&this[s(0x1d5)][s(0x1aa)]({'srcPath':'test/test.js','destPath':e+s(0x1de),'framework':'react','context':i,'config':f});f[s(0x1aa)]['css']&&(this[s(0x1d5)]['template']({'srcPath':s(0x1bb),'destPath':e+s(0x1e0),'context':Object[s(0x1c1)]({},i,{'className':paramCase(b[s(0x1d6)])}),'config':f}),this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':s(0x1d4)+i[s(0x1ad)]+'.'+f[s(0x1c8)][s(0x1d0)]+'\x27;'}));const j=b[s(0x1c0)]?'/'+b['dir']+'/':'/',k=''+c+j+i[s(0x1ad)]+'/'+i[s(0x1ad)];let l;if(f[s(0x1c8)]['ssr']===s(0x1bc)){const m=this[s(0x1d5)][s(0x1be)]({'pathParts':[s(0x1af),'startup',s(0x1bd),s(0x1b2)]});l=this[s(0x1d5)][s(0x1b7)]({'pathParts':[m],'config':f});}else{const n=this[s(0x1d5)]['pathFromApp']({'pathParts':[s(0x1af),s(0x1c4),s(0x1a2),'templates.js']});l=this[s(0x1d5)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[s(0x1c8)][s(0x1a2)]==='react'?(f['engines']['js']===s(0x1ac)?this[s(0x1d5)][s(0x1b4)]({'filePath':l,'content':s(0x1dc)+i[s(0x1d1)]+s(0x1a8)+k+s(0x1d3)}):this['fsi'][s(0x1b4)]({'filePath':l,'content':s(0x1dc)+i[s(0x1d1)]+s(0x1a8)+k+'.'+f[s(0x1c8)]['js']+s(0x1d3)}),this[s(0x1d5)][s(0x1c2)]({'filePath':l,'content':'export\x20{\x20'+i[s(0x1d1)]+'\x20};\x0a'})):this['fsi'][s(0x1c2)]({'filePath':l,'content':s(0x1da)+k+'.'+f[s(0x1c8)]['js']+'\x27;\x0a'});});});
1
+ const a103r=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x153))/0x1+parseInt(o(0x16e))/0x2*(parseInt(o(0x18a))/0x3)+parseInt(o(0x179))/0x4+-parseInt(o(0x14f))/0x5+parseInt(o(0x17f))/0x6+-parseInt(o(0x176))/0x7*(-parseInt(o(0x146))/0x8)+parseInt(o(0x164))/0x9*(-parseInt(o(0x160))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x793e5));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a['toString']()[q(0x166)](q(0x17e))[q(0x14e)]()[q(0x16a)](a103a)[q(0x166)](q(0x17e));});a103a();import a103e from'path';import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x140;let f=c[d];return f;},a103d(a,b);}function a103c(){const u=['import\x20\x27./','import\x20{\x20','76867cQiOpa','pathFromApp','.css','2911916ZTDKqh','injectAtEndOfFile','\x20};\x0a','assign','rewriteDestinationPathForEngine','(((.+)+)+)+$','3937152SxyYXb','create','.app-tests.js','export\x20{\x20','true','includes','graphql','split','resourceName','templates.js','template','24FYtDch','installNpmPackage','ramda','css','api','features','engines','pathFromProject','96NEDigH','injectAtBeginningOfFile','checkNpmPackage','maka\x20g:l\x20web/safari','warn','template/template.css','dir','getProjectConfig','toString','2237590AHChDb','none','withTranslations','startup','59193zkfodN','\x27;\x0a','imports','fileName','findAppDirectory','withHooks','Scaffolding\x20for\x20a\x20React\x20Layout.','fsi','component/component.js','test','maka\x20g:layout\x20mobile/iPhone8','import\x20\x27','className','90FfOndB','layout','client','apply','697797baYbUQ','string','search','ssr','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','withHook','constructor','tsx','lib','test/test.js','16698yPKWVW','setTemplate','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','.js','react','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'];a103c=function(){return u;};return a103c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a103r(0x180)]({'name':a103r(0x161),'aliases':aliases,'usage':a103r(0x170),'shortDesc':a103r(0x159),'validOpts':[],'examples':[a103r(0x15d),a103r(0x149)]},function(a,b){const s=a103r,c='/imports/ui/layouts',d=this[s(0x15a)][s(0x157)](),e=this[s(0x15a)][s(0x177)]({'pathParts':[c,b[s(0x14c)],paramCase(b[s(0x187)]),paramCase(b[s(0x187)])]}),f=this[s(0x15a)][s(0x14d)]();this['fsi']['withValue'](f,()=>{const t=s;typeof f[t(0x189)][t(0x15c)]===t(0x165)&&(f[t(0x189)][t(0x15c)]=f['template'][t(0x15c)]===t(0x183)?!![]:![],this['fsi']['setTemplate'](t(0x15c),f[t(0x189)]['test']));typeof f[t(0x189)][t(0x141)]==='string'&&(f[t(0x189)]['css']=f[t(0x189)][t(0x141)]===t(0x183)?!![]:![],this['fsi'][t(0x16f)](t(0x141),f[t(0x189)]['css']));typeof f[t(0x189)]['js']===t(0x165)&&(f['template']['js']=f['template']['js']===t(0x183)?!![]:![],this[t(0x15a)][t(0x16f)]('js',f['template']['js']));!f['features']&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x186)](':')[0x1]:![],h=b['_']&&aliases[t(0x184)](g);h&&!this['checkNpmPackage'](t(0x140))&&(Log[t(0x14a)](t(0x173)),this[t(0x15a)][t(0x18b)](t(0x140),{'cwd':d}));if(h&&!this[t(0x148)](t(0x172))){Log['warn'](t(0x168));return;}const i={'name':pascalCase(b[t(0x187)]),'myPath':a103e['relative'](this[t(0x15a)][t(0x145)]({}),e),'cssCaseName':paramCase(b[t(0x187)]),'className':pascalCase(b[t(0x187)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x187)]),'graphql':f[t(0x144)][t(0x185)],'features':f[t(0x143)],'client':f[t(0x144)][t(0x162)],'api':f[t(0x144)][t(0x142)],'ssr':f[t(0x144)][t(0x167)],'test':f[t(0x144)][t(0x15c)],'theme':f[t(0x144)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x143)][t(0x151)]};f[t(0x143)]?.[t(0x158)]||b[t(0x169)]?this[t(0x15a)][t(0x189)]({'srcPath':'hook/hook.js','destPath':e+t(0x171),'framework':t(0x172),'context':i,'config':f}):this['fsi'][t(0x189)]({'srcPath':t(0x15b),'destPath':e+t(0x171),'framework':t(0x172),'context':i,'config':f});f[t(0x144)][t(0x15c)]!==t(0x150)&&this[t(0x15a)][t(0x189)]({'srcPath':t(0x16d),'destPath':e+t(0x181),'framework':'react','context':i,'config':f});f[t(0x189)][t(0x141)]&&(this[t(0x15a)][t(0x189)]({'srcPath':t(0x14b),'destPath':e+t(0x178),'context':Object[t(0x17c)]({},i,{'className':paramCase(b[t(0x187)])}),'config':f}),this['fsi'][t(0x147)]({'filePath':e+'.'+f[t(0x144)]['js'],'content':t(0x174)+i[t(0x156)]+'.'+f['engines']['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0x14c)]+'/':'/',k=''+c+j+i[t(0x156)]+'/'+i['fileName'];let l;if(f['engines'][t(0x167)]==='true'){const m=this[t(0x15a)]['pathFromApp']({'pathParts':[t(0x155),t(0x152),t(0x16c),'templates.js']});l=this[t(0x15a)][t(0x17d)]({'pathParts':[m],'config':f});}else{const n=this[t(0x15a)][t(0x177)]({'pathParts':[t(0x155),t(0x152),t(0x162),t(0x188)]});l=this[t(0x15a)][t(0x17d)]({'pathParts':[n],'config':f});}f[t(0x144)]['client']===t(0x172)?(f['engines']['js']===t(0x16b)?this[t(0x15a)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+t(0x154)}):this['fsi'][t(0x147)]({'filePath':l,'content':t(0x175)+i[t(0x15f)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x144)]['js']+t(0x154)}),this[t(0x15a)][t(0x17a)]({'filePath':l,'content':t(0x182)+i['className']+t(0x17b)})):this[t(0x15a)][t(0x17a)]({'filePath':l,'content':t(0x15e)+k+'.'+f[t(0x144)]['js']+'\x27;\x0a'});});});
@@ -1 +1 @@
1
- function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a104d(a,b);}const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x1c2))/0x1*(parseInt(f(0x1cf))/0x2)+-parseInt(f(0x1cd))/0x3*(parseInt(f(0x1c3))/0x4)+-parseInt(f(0x1d2))/0x5+-parseInt(f(0x1c5))/0x6+-parseInt(f(0x1c4))/0x7*(-parseInt(f(0x1c6))/0x8)+parseInt(f(0x1d0))/0x9+-parseInt(f(0x1c0))/0xa*(parseInt(f(0x1cb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x4fcb1));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1ca)]()[h(0x1c1)](h(0x1ce))[h(0x1ca)]()[h(0x1bf)](a104a)[h(0x1c1)](h(0x1ce));});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a104i(0x1cc),'validOpts':[],'description':a104i(0x1c7),'usage':a104i(0x1c9),'examples':[a104i(0x1d3),a104i(0x1d1)]},function(){return null;});function a104c(){const j=['419826xWGXQd','5023521kWicym','maka\x20g:hook\x20cool-hook','216220PirVsj','maka\x20generate:api\x20Trucks','constructor','10FxHmaq','search','3PZwlNJ','64MlCstZ','256571rwOHTs','1018434PDDkjG','88KOQgPn','\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','apply','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','toString','4399769NKhfSJ','Maka!','122118xJPstP','(((.+)+)+)+$'];a104c=function(){return j;};return a104c();}export default MakaGen;
1
+ const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x90))/0x1+parseInt(f(0x91))/0x2*(-parseInt(f(0x92))/0x3)+-parseInt(f(0x96))/0x4*(-parseInt(f(0x97))/0x5)+-parseInt(f(0x8e))/0x6*(-parseInt(f(0x8a))/0x7)+-parseInt(f(0x99))/0x8+-parseInt(f(0x8d))/0x9*(parseInt(f(0x98))/0xa)+parseInt(f(0x9c))/0xb*(parseInt(f(0x9b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x9b15e));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x9d)]()['search'](h(0x8f))[h(0x9d)]()[h(0x8c)](a104a)['search'](h(0x8f));});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x93),'shortDesc':a104i(0x89),'validOpts':[],'description':a104i(0x88),'usage':a104i(0x94),'examples':[a104i(0x9a),a104i(0x95)]},function(){return null;});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x88;let f=c[d];return f;},a104d(a,b);}function a104c(){const j=['\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','Maka!','161KKczcx','apply','constructor','2494719zXcnJv','236454FBGlCO','(((.+)+)+)+$','73882afZFlc','1032712WObMKe','3vHtcjH','maka','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka\x20g:hook\x20cool-hook','656xFqgTb','27175NieBEO','20tFcMqe','4098320RZshih','maka\x20generate:api\x20Trucks','6108FNUJVb','7491QLZbmF','toString'];a104c=function(){return j;};return a104c();}export default MakaGen;
@@ -1 +1 @@
1
- const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x166))/0x1+parseInt(k(0x161))/0x2*(parseInt(k(0x170))/0x3)+parseInt(k(0x16f))/0x4*(-parseInt(k(0x173))/0x5)+-parseInt(k(0x15d))/0x6*(parseInt(k(0x168))/0x7)+-parseInt(k(0x156))/0x8*(parseInt(k(0x14e))/0x9)+parseInt(k(0x15f))/0xa*(-parseInt(k(0x15e))/0xb)+-parseInt(k(0x157))/0xc*(-parseInt(k(0x160))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x8a80d));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a['toString']()['search'](m(0x167))[m(0x16d)]()[m(0x162)](a105a)['search'](m(0x167));});a105a();import{Generator}from'../generator.js';function a105c(){const q=['check','1719ysKhIe','maka\x20g:method\x20todos','resourceName','maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkMeteorPackage','withValue','engines','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','104XApBDf','29809524dQlLWd','imports','-rpc-method.','startup','import\x20\x27./methods','warn','118926VjmBQe','55bdHiBz','1826680YDTApO','13qYINuf','52VmyDwP','constructor','mdg:validated-method','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','apply','594868WmOoYi','(((.+)+)+)+$','168AwdmeA','methods','-rpc-method\x27;','pathFromApp','template','toString','method/method.js','1556980BBKxEQ','52941nTvGPu','installMeteorPackage','check\x20ddp-rate-limiter\x20mdg:validated-method','5bTRAZS','ddp-rate-limiter','fsi','injectAtEndOfFile','dir','appPathPrefix','tsx','getProjectConfig'];a105c=function(){return q;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x148;let f=c[d];return f;},a105d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'method','aliases':['m'],'usage':a105n(0x151),'checkWhere':!![],'shortDesc':a105n(0x155),'validOpts':[a105n(0x149)],'examples':[a105n(0x14f)]},function(a,b){const o=a105n;try{const c=this['fsi'][o(0x14c)]();this[o(0x175)][o(0x153)](c,async()=>{const p=o,d=paramCase(b[p(0x150)]),f={'name':b[p(0x150)],'fileName':d,'className':pascalCase(b[p(0x150)]),'camelCase':camelCase(b[p(0x150)]),'noRename':!![]};let g='js';c[p(0x154)]['js']===p(0x14b)&&(g='ts');const h=this['fsi'][p(0x16b)]({});(!this[p(0x175)][p(0x152)](p(0x14d))||!this[p(0x175)][p(0x152)](p(0x174))||!this['fsi'][p(0x152)](p(0x163)))&&(Log[p(0x15c)](p(0x164)),this[p(0x175)][p(0x171)](p(0x172),{'cwd':h}));this[p(0x175)][p(0x16c)]({'srcPath':p(0x16e),'destPath':this[p(0x175)][p(0x16b)]({'pathParts':[p(0x158),'startup',b['appPathPrefix'],p(0x169),b[p(0x149)],d+p(0x159)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b[p(0x149)]+'/':'/',j=this[p(0x175)]['pathFromApp']({'pathParts':[p(0x158),p(0x15a),b[p(0x14a)],'index.'+c[p(0x154)]['js']]});this[p(0x175)][p(0x148)]({'filePath':j,'content':p(0x15b)+i+d+p(0x16a)});});}catch(d){Log['error'](d);}});
1
+ const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x133))/0x1+parseInt(k(0x149))/0x2+parseInt(k(0x137))/0x3*(-parseInt(k(0x14c))/0x4)+-parseInt(k(0x13b))/0x5*(-parseInt(k(0x12f))/0x6)+parseInt(k(0x12b))/0x7+parseInt(k(0x13c))/0x8*(-parseInt(k(0x143))/0x9)+parseInt(k(0x14e))/0xa*(parseInt(k(0x14d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x4d5e7));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a['toString']()['search']('(((.+)+)+)+$')[m(0x12c)]()[m(0x12a)](a105a)['search']('(((.+)+)+)+$');});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x129;let f=c[d];return f;},a105d(a,b);}function a105c(){const q=['Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','47554eNKLJS','resourceName','injectAtEndOfFile','methods','411231vfQCyU','-rpc-method.','dir','create','20usVvZi','819440lyqpLn','imports','pathFromApp','error','apply','engines','checkMeteorPackage','45sQwkwE','withValue','check\x20ddp-rate-limiter\x20mdg:validated-method','method/method.js','check','installMeteorPackage','1234670mNZByf','startup','appPathPrefix','12GBkOxX','5346407pXfrOd','10YssrVz','index.','method','constructor','1078mGRbWg','toString','import\x20\x27./methods','getProjectConfig','276468jXELWk','fsi','maka\x20{generate,\x20g}:{method,\x20m}\x20name'];a105c=function(){return q;};return a105c();}a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0x13a)]({'name':a105n(0x129),'aliases':['m'],'usage':a105n(0x131),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a105n(0x139)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a105n;try{const c=this[o(0x130)][o(0x12e)]();this[o(0x130)][o(0x144)](c,async()=>{const p=o,d=paramCase(b[p(0x134)]),f={'name':b[p(0x134)],'fileName':d,'className':pascalCase(b[p(0x134)]),'camelCase':camelCase(b[p(0x134)]),'noRename':!![]};let g='js';c[p(0x141)]['js']==='tsx'&&(g='ts');const h=this[p(0x130)][p(0x13e)]({});(!this[p(0x130)][p(0x142)](p(0x147))||!this['fsi']['checkMeteorPackage']('ddp-rate-limiter')||!this[p(0x130)][p(0x142)]('mdg:validated-method'))&&(Log['warn'](p(0x132)),this[p(0x130)][p(0x148)](p(0x145),{'cwd':h}));this['fsi']['template']({'srcPath':p(0x146),'destPath':this[p(0x130)]['pathFromApp']({'pathParts':[p(0x13d),p(0x14a),b['appPathPrefix'],p(0x136),b[p(0x139)],d+p(0x138)+g]}),'context':f,'config':c});const i=b[p(0x139)]?'/'+b[p(0x139)]+'/':'/',j=this[p(0x130)][p(0x13e)]({'pathParts':[p(0x13d),p(0x14a),b[p(0x14b)],p(0x14f)+c[p(0x141)]['js']]});this['fsi'][p(0x135)]({'filePath':j,'content':p(0x12d)+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x13f)](d);}});
@@ -1 +1 @@
1
- const a106n=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0xaf))/0x1*(-parseInt(l(0xd1))/0x2)+-parseInt(l(0xc6))/0x3*(-parseInt(l(0xcc))/0x4)+-parseInt(l(0xb3))/0x5*(parseInt(l(0xc3))/0x6)+-parseInt(l(0xb0))/0x7*(parseInt(l(0xac))/0x8)+-parseInt(l(0xae))/0x9*(-parseInt(l(0xc0))/0xa)+parseInt(l(0xbc))/0xb+parseInt(l(0xba))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x9241d));const a106b=(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;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0xa7)]()[m(0xce)]('(((.+)+)+)+$')[m(0xa7)]()['constructor'](a106a)[m(0xce)]('(((.+)+)+)+$');});a106a();function a106c(){const r=['create','tests/server','9922716OAfvLC','layout','7518478EWKuZv','graphql','relative','package.js','63170ZsBYvw','withValue','maka\x20g:package\x20todos:package','238428xyqAmv','noRename','/package.js','2513703KlhQWm','features','.js','resourceName','template/template.js','packages','4qoCfkT','pathFromAppWithNoReWrite','search','store','hasOwnProperty','1126JMlJoo','client','forEach','toString','tests/client','server','dir','getProjectConfig','3942496abwsaC','fsi','297WHaLVD','1402xGtYAo','7qsschr','package/package.js','package','85fRKCeq','pathFromApp','engines','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','template'];a106c=function(){return r;};return a106c();}function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xa5;let f=c[d];return f;},a106d(a,b);}import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0xb8)]({'name':a106n(0xb2),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a106n(0xb6),'validOpts':['dir'],'examples':[a106n(0xc2)]},async function(a,b){const o=a106n,c=paramCase(b[o(0xc9)]),d=this[o(0xad)][o(0xb4)]({'pathParts':[o(0xcb),b[o(0xaa)],c]}),e=this[o(0xad)][o(0xcd)]({'pathParts':[o(0xcb),b[o(0xaa)],c,o(0xbf)]}),f=this[o(0xad)][o(0xab)]();this['fsi'][o(0xc1)](f,async()=>{const p=o,g={'name':paramCase(b[p(0xc9)]),'myPath':a106e[p(0xbe)](this[p(0xad)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[p(0xc9)]),'className':pascalCase(b[p(0xc9)]),'camelCaseName':camelCase(b[p(0xc9)]),'fileName':c,'client':f[p(0xb5)][p(0xa5)],'graphql':f['engines'][p(0xbd)],'ssr':f[p(0xb5)]['ssr'],'isComponent':b['hasOwnProperty']('component'),'isLayout':b[p(0xd0)](p(0xbb)),'isStore':b[p(0xd0)](p(0xcf)),'features':f[p(0xc7)],'noRename':!![],'theme':f[p(0xb5)]['theme']};this['fsi'][p(0xb7)]({'srcPath':p(0xb1),'destPath':e,'context':g,'config':f}),g[p(0xc4)]=![];const h=d+'/client/'+c+p(0xc8);this[p(0xad)][p(0xb7)]({'srcPath':p(0xca),'destPath':h,'context':g,'config':f});const i=['lib',p(0xa9),p(0xa8),p(0xb9)];i[p(0xa6)](j=>{const q=p,k=d+'/'+j+'/'+c+'.js';this['fsi'][q(0xb7)]({'srcPath':'package/'+j+q(0xc5),'destPath':k,'context':g,'config':f});});});});
1
+ const a106n=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0x135))/0x1*(parseInt(l(0x12b))/0x2)+parseInt(l(0x132))/0x3*(parseInt(l(0x10f))/0x4)+-parseInt(l(0x11d))/0x5+parseInt(l(0x115))/0x6+-parseInt(l(0x113))/0x7+-parseInt(l(0x128))/0x8+parseInt(l(0x126))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xa22f9));const a106b=(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;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x11c)]()[m(0x120)](m(0x136))[m(0x11c)]()[m(0x12e)](a106a)[m(0x120)]('(((.+)+)+)+$');});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x10b;let f=c[d];return f;},a106d(a,b);}import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0x12c)]({'name':a106n(0x125),'aliases':['p'],'usage':a106n(0x10b),'shortDesc':a106n(0x11f),'validOpts':[a106n(0x114)],'examples':[a106n(0x130)]},async function(a,b){const o=a106n,c=paramCase(b[o(0x116)]),d=this[o(0x11b)][o(0x137)]({'pathParts':[o(0x134),b[o(0x114)],c]}),e=this[o(0x11b)][o(0x117)]({'pathParts':[o(0x134),b[o(0x114)],c,o(0x121)]}),f=this['fsi'][o(0x131)]();this[o(0x11b)]['withValue'](f,async()=>{const p=o,g={'name':paramCase(b[p(0x116)]),'myPath':a106e[p(0x127)](this[p(0x11b)][p(0x10c)]({}),d),'cssCaseName':paramCase(b[p(0x116)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0x116)]),'fileName':c,'client':f[p(0x123)][p(0x111)],'graphql':f['engines'][p(0x119)],'ssr':f[p(0x123)][p(0x110)],'isComponent':b[p(0x133)]('component'),'isLayout':b['hasOwnProperty'](p(0x12f)),'isStore':b[p(0x133)]('store'),'features':f[p(0x11e)],'noRename':!![],'theme':f[p(0x123)][p(0x12d)]};this[p(0x11b)][p(0x138)]({'srcPath':p(0x122),'destPath':e,'context':g,'config':f}),g[p(0x10e)]=![];const h=d+'/client/'+c+'.js';this[p(0x11b)][p(0x138)]({'srcPath':p(0x129),'destPath':h,'context':g,'config':f});const i=[p(0x12a),p(0x10d),p(0x112),p(0x11a)];i[p(0x118)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x139);this[q(0x11b)][q(0x138)]({'srcPath':'package/'+j+q(0x124),'destPath':k,'context':g,'config':f});});});});function a106c(){const r=['lib','627338AhKWxp','create','theme','constructor','layout','maka\x20g:package\x20todos:package','getProjectConfig','90cTGGbO','hasOwnProperty','packages','3DQZPrz','(((.+)+)+)+$','pathFromApp','template','.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','pathFromProject','server','noRename','8100ufiSLB','ssr','client','tests/client','8459710SAReWa','dir','3274434TmRzwL','resourceName','pathFromAppWithNoReWrite','forEach','graphql','tests/server','fsi','toString','1159890mAzaAe','features','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','search','package.js','package/package.js','engines','/package.js','package','15423930OOAnki','relative','9251560xDKbbj','template/template.js'];a106c=function(){return r;};return a106c();}
@@ -1 +1 @@
1
- const a107p=a107d;(function(a,b){const m=a107d,c=a();while(!![]){try{const d=parseInt(m(0x113))/0x1+-parseInt(m(0xe9))/0x2*(-parseInt(m(0xf6))/0x3)+-parseInt(m(0xf9))/0x4+parseInt(m(0xe1))/0x5+-parseInt(m(0xf5))/0x6+parseInt(m(0x108))/0x7+-parseInt(m(0xcb))/0x8*(-parseInt(m(0x109))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x3493f));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a107d;if(c){const e=c[n(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const o=a107d;return a107a[o(0xf0)]()[o(0xfd)](o(0xca))[o(0xf0)]()[o(0xfa)](a107a)[o(0xfd)](o(0xca));});a107a();import a107e from'path';import{Generator}from'../generator.js';function a107c(){const s=['import\x20{\x20','true','.js','.app-tests.js','warn','installNpmPackage','test/test.js','string','css','withHooks','/imports/ui/pages','injectAtBeginningOfFile','vanilla','\x20}\x20from\x20\x27','className','tsx','.html','getProjectConfig','template/template.css','ramda','setTemplate','900905mYvlbV','templates.js','assign','/imports/ui/','lib','template','.css','resourceName','1854gOLptx','components','pathFromApp','checkNpmPackage','theme','graphql','Updating\x20npm\x20packages\x20...','toString','startup','engines','features','fsi','1767906VCDmPg','684UrUTYy','react','none','1394732AojmJn','constructor','test','client','search','layout','maka\x20g:page\x20todos/todos-item','imports','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','pages','baseDir','hook/hook.js','apply','root','\x27;\x0a','289233pzHVBE','17676LryDVC','api','dir','injectAtEndOfFile','rewriteDestinationPathForEngine','component','Generate\x20a\x20page.','html','component/component.js','ssr','372809PQBJsV','hasOwnProperty','store','import\x20\x27./','pathFromProject','import\x20\x27','relative','fileName','template/template.html','page','(((.+)+)+)+$','216urZtnf'];a107c=function(){return s;};return a107c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xc3;let f=c[d];return f;},a107d(a,b);}Generator['create']({'name':a107p(0xc9),'aliases':aliases,'usage':a107p(0x101),'shortDesc':a107p(0x10f),'validOpts':[{'name':a107p(0x103),'values':['hooks',a107p(0xea),a107p(0x102),'layouts']},{'name':'withHook','boolFlag':!![]}],'examples':[a107p(0xff)]},function(a,b){const q=a107p,c=b['baseDir']?q(0xe4)+b[q(0x103)]:q(0xd6),d=this[q(0xf4)][q(0xeb)](b),e=this['fsi'][q(0xeb)]({'pathParts':[c,b[q(0x10b)],paramCase(b[q(0xe8)]),paramCase(b[q(0xe8)])]}),f=this[q(0xf4)][q(0xdd)]();this[q(0xf4)]['withValue'](f,()=>{const r=q;typeof f[r(0xe6)]['html']===r(0xd3)&&(f[r(0xe6)][r(0x110)]=f['template'][r(0x110)]==='true'?!![]:![],this[r(0xf4)][r(0xe0)](r(0x110),f['template'][r(0x110)]));typeof f[r(0xe6)]['test']===r(0xd3)&&(f[r(0xe6)][r(0xfb)]=f['template'][r(0xfb)]===r(0xcd)?!![]:![],this['fsi'][r(0xe0)]('test',f[r(0xe6)]['test']));typeof f[r(0xe6)][r(0xd4)]===r(0xd3)&&(f['template']['css']=f['template']['css']===r(0xcd)?!![]:![],this[r(0xf4)][r(0xe0)](r(0xd4),f[r(0xe6)][r(0xd4)]));typeof f[r(0xe6)]['js']===r(0xd3)&&(f[r(0xe6)]['js']=f[r(0xe6)]['js']===r(0xcd)?!![]:![],this[r(0xf4)][r(0xe0)]('js',f[r(0xe6)]['js']));!f[r(0xf3)]&&(f[r(0xf3)]={});!b[r(0x106)]&&!this[r(0xf4)][r(0xec)](r(0xdf))&&(Log[r(0xd0)](r(0xef)),this[r(0xf4)][r(0xd1)](r(0xdf),{'cwd':d}));const g={'name':pascalCase(b[r(0xe8)]),'myPath':a107e[r(0xc6)](this[r(0xf4)][r(0xc4)]({}),e),'cssCaseName':paramCase(b[r(0xe8)]),'className':pascalCase(b[r(0xe8)]),'camelCaseName':camelCase(b[r(0xe8)]),'fileName':paramCase(b[r(0xe8)]),'graphql':f['engines'][r(0xee)],'features':f[r(0xf3)],'client':f['engines']['client'],'api':f[r(0xf2)][r(0x10a)],'ssr':f[r(0xf2)][r(0x112)],'isStore':b['hasOwnProperty'](r(0x115)),'isComponent':b['hasOwnProperty'](r(0x10e)),'isLayout':b[r(0x114)](r(0xfe)),'withTranslations':f[r(0xf3)]['withTranslations'],'test':f[r(0xf2)][r(0xfb)],'theme':f['engines'][r(0xed)]};f['template'][r(0x110)]&&this[r(0xf4)]['template']({'srcPath':r(0xc8),'destPath':e+r(0xdc),'context':g,'config':f});f[r(0xf3)]?.[r(0xd5)]||b['withHook']?this[r(0xf4)][r(0xe6)]({'srcPath':r(0x104),'destPath':e+r(0xce),'framework':r(0xf7),'context':g,'config':f}):this['fsi'][r(0xe6)]({'srcPath':r(0x111),'destPath':e+'.js','framework':r(0xf7),'context':g,'config':f});f[r(0xf2)][r(0xfb)]!==r(0xf8)&&this[r(0xf4)][r(0xe6)]({'srcPath':r(0xd2),'destPath':e+r(0xcf),'framework':r(0xf7),'context':g,'config':f});f[r(0xe6)][r(0xd4)]&&this[r(0xf4)]['template']({'srcPath':r(0xde),'destPath':e+r(0xe7),'context':Object[r(0xe3)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0xf2)][r(0xfc)]!=='react'&&f['engines'][r(0xfc)]!==r(0xd8)?(f[r(0xe6)][r(0xd4)]&&this[r(0xf4)][r(0xd7)]({'filePath':e+'.'+f[r(0xf2)]['js'],'content':r(0xc3)+g[r(0xc7)]+'.'+f[r(0xf2)][r(0x110)]+'\x27;\x0a'+r(0xc3)+g[r(0xc7)]+'.'+f[r(0xf2)][r(0xd4)]+'\x27;'}),!f[r(0xe6)][r(0xd4)]&&this['fsi'][r(0xd7)]({'filePath':e+'.'+f[r(0xf2)]['js'],'content':r(0xc3)+g[r(0xc7)]+'.'+f['engines'][r(0x110)]+'\x27;'})):f[r(0xe6)][r(0xd4)]&&this[r(0xf4)][r(0xd7)]({'filePath':e+'.'+f['engines']['js'],'content':r(0xc3)+g[r(0xc7)]+'.'+f[r(0xf2)][r(0xd4)]+'\x27;'});const h=b[r(0x10b)]?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0xc7)]+'/'+g['fileName'];let j;if(f[r(0xf2)]['ssr']===r(0xcd)){const k=this[r(0xf4)]['pathFromApp']({'pathParts':['imports',r(0xf1),r(0xe5),r(0xe2)]});j=this[r(0xf4)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this[r(0xf4)][r(0xeb)]({'pathParts':[r(0x100),r(0xf1),r(0xfc),r(0xe2)]});j=this[r(0xf4)][r(0x10d)]({'pathParts':[l],'config':f});}f[r(0xf2)][r(0xfc)]==='react'?(f['engines']['js']===r(0xdb)?this['fsi'][r(0xd7)]({'filePath':j,'content':r(0xcc)+g['className']+'\x20}\x20from\x20\x27'+i+r(0x107)}):this[r(0xf4)][r(0xd7)]({'filePath':j,'content':'import\x20{\x20'+g[r(0xda)]+r(0xd9)+i+'.'+f[r(0xf2)]['js']+r(0x107)}),this[r(0xf4)][r(0x10c)]({'filePath':j,'content':'export\x20{\x20'+g[r(0xda)]+'\x20};\x0a'})):this[r(0xf4)][r(0x10c)]({'filePath':j,'content':r(0xc5)+i+'.'+f[r(0xf2)]['js']+r(0x107)});});});
1
+ const a107p=a107d;(function(a,b){const m=a107d,c=a();while(!![]){try{const d=-parseInt(m(0xda))/0x1+parseInt(m(0xb8))/0x2*(parseInt(m(0xc2))/0x3)+parseInt(m(0xcd))/0x4+-parseInt(m(0xe4))/0x5+-parseInt(m(0xf4))/0x6+parseInt(m(0xd4))/0x7*(parseInt(m(0xed))/0x8)+parseInt(m(0xe7))/0x9*(parseInt(m(0xd7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x331e6));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a107d;if(c){const e=c[n(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const o=a107d;return a107a[o(0xcf)]()[o(0xb6)](o(0xd8))[o(0xcf)]()[o(0xb7)](a107a)['search'](o(0xd8));});a107a();function a107c(){const s=['2586BvwggB','theme','assign','fileName','checkNpmPackage','startup','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','withTranslations','imports','\x20}\x20from\x20\x27','309xvbpnR','tsx','Updating\x20npm\x20packages\x20...','test','html','Generate\x20a\x20page.','export\x20{\x20','\x27;\x0a','component','ssr','engines','70684fjtDvb','hook/hook.js','toString','setTemplate','react','warn','className','1295aTPoXx','lib','pathFromApp','100osTIej','(((.+)+)+)+$','test/test.js','82825ApdIRJ','baseDir','injectAtEndOfFile','.js','template/template.css','store','graphql','import\x20{\x20','rewriteDestinationPathForEngine','installNpmPackage','1462585ZoguNj','true','templates.js','272439BWwbCI','template','import\x20\x27','dir','client','import\x20\x27./','15672grOsKL','withHook','fsi','/imports/ui/pages','features','getProjectConfig','component/component.js','1387506nmJJmM','components','ramda','maka\x20g:page\x20todos/todos-item','root','relative','create','css','\x20};\x0a','hasOwnProperty','injectAtBeginningOfFile','api','apply','pathFromProject','.css','/imports/ui/','.html','string','resourceName','hooks','search','constructor'];a107c=function(){return s;};return a107c();}import a107e from'path';import{Generator}from'../generator.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xb3;let f=c[d];return f;},a107d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107p(0xfa)]({'name':'page','aliases':aliases,'usage':a107p(0xbe),'shortDesc':a107p(0xc7),'validOpts':[{'name':a107p(0xdb),'values':[a107p(0xb5),a107p(0xf5),'pages','layouts']},{'name':a107p(0xee),'boolFlag':!![]}],'examples':[a107p(0xf7)]},function(a,b){const q=a107p,c=b[q(0xdb)]?q(0x103)+b[q(0xdb)]:q(0xf0),d=this['fsi']['pathFromApp'](b),e=this['fsi'][q(0xd6)]({'pathParts':[c,b[q(0xea)],paramCase(b['resourceName']),paramCase(b[q(0xb4)])]}),f=this[q(0xef)][q(0xf2)]();this['fsi']['withValue'](f,()=>{const r=q;typeof f['template'][r(0xc6)]===r(0xb3)&&(f[r(0xe8)][r(0xc6)]=f[r(0xe8)][r(0xc6)]===r(0xe5)?!![]:![],this[r(0xef)][r(0xd0)](r(0xc6),f[r(0xe8)][r(0xc6)]));typeof f[r(0xe8)][r(0xc5)]===r(0xb3)&&(f[r(0xe8)][r(0xc5)]=f[r(0xe8)][r(0xc5)]===r(0xe5)?!![]:![],this[r(0xef)][r(0xd0)](r(0xc5),f[r(0xe8)]['test']));typeof f[r(0xe8)]['css']===r(0xb3)&&(f[r(0xe8)][r(0xfb)]=f[r(0xe8)]['css']==='true'?!![]:![],this['fsi'][r(0xd0)](r(0xfb),f[r(0xe8)]['css']));typeof f['template']['js']===r(0xb3)&&(f[r(0xe8)]['js']=f[r(0xe8)]['js']==='true'?!![]:![],this[r(0xef)][r(0xd0)]('js',f[r(0xe8)]['js']));!f[r(0xf1)]&&(f[r(0xf1)]={});!b[r(0xf8)]&&!this['fsi'][r(0xbc)](r(0xf6))&&(Log[r(0xd2)](r(0xc4)),this['fsi'][r(0xe3)](r(0xf6),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a107e[r(0xf9)](this[r(0xef)][r(0x101)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0xb4)]),'fileName':paramCase(b['resourceName']),'graphql':f['engines'][r(0xe0)],'features':f[r(0xf1)],'client':f['engines'][r(0xeb)],'api':f['engines'][r(0xff)],'ssr':f[r(0xcc)][r(0xcb)],'isStore':b[r(0xfd)](r(0xdf)),'isComponent':b[r(0xfd)](r(0xca)),'isLayout':b[r(0xfd)]('layout'),'withTranslations':f[r(0xf1)][r(0xbf)],'test':f[r(0xcc)][r(0xc5)],'theme':f[r(0xcc)][r(0xb9)]};f[r(0xe8)][r(0xc6)]&&this[r(0xef)][r(0xe8)]({'srcPath':'template/template.html','destPath':e+r(0x104),'context':g,'config':f});f[r(0xf1)]?.['withHooks']||b[r(0xee)]?this[r(0xef)][r(0xe8)]({'srcPath':r(0xce),'destPath':e+r(0xdd),'framework':r(0xd1),'context':g,'config':f}):this[r(0xef)][r(0xe8)]({'srcPath':r(0xf3),'destPath':e+'.js','framework':r(0xd1),'context':g,'config':f});f['engines']['test']!=='none'&&this['fsi'][r(0xe8)]({'srcPath':r(0xd9),'destPath':e+'.app-tests.js','framework':r(0xd1),'context':g,'config':f});f[r(0xe8)][r(0xfb)]&&this[r(0xef)][r(0xe8)]({'srcPath':r(0xde),'destPath':e+r(0x102),'context':Object[r(0xba)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0xcc)][r(0xeb)]!==r(0xd1)&&f[r(0xcc)][r(0xeb)]!=='vanilla'?(f[r(0xe8)][r(0xfb)]&&this[r(0xef)][r(0xfe)]({'filePath':e+'.'+f[r(0xcc)]['js'],'content':r(0xec)+g[r(0xbb)]+'.'+f[r(0xcc)][r(0xc6)]+r(0xc9)+'import\x20\x27./'+g['fileName']+'.'+f[r(0xcc)][r(0xfb)]+'\x27;'}),!f[r(0xe8)]['css']&&this[r(0xef)][r(0xfe)]({'filePath':e+'.'+f['engines']['js'],'content':r(0xec)+g[r(0xbb)]+'.'+f[r(0xcc)]['html']+'\x27;'})):f[r(0xe8)][r(0xfb)]&&this[r(0xef)][r(0xfe)]({'filePath':e+'.'+f[r(0xcc)]['js'],'content':r(0xec)+g[r(0xbb)]+'.'+f[r(0xcc)][r(0xfb)]+'\x27;'});const h=b[r(0xea)]?'/'+b[r(0xea)]+'/':'/',i=''+c+h+g[r(0xbb)]+'/'+g[r(0xbb)];let j;if(f[r(0xcc)][r(0xcb)]===r(0xe5)){const k=this[r(0xef)][r(0xd6)]({'pathParts':[r(0xc0),r(0xbd),r(0xd5),'templates.js']});j=this[r(0xef)][r(0xe2)]({'pathParts':[k],'config':f});}else{const l=this[r(0xef)][r(0xd6)]({'pathParts':[r(0xc0),r(0xbd),r(0xeb),r(0xe6)]});j=this[r(0xef)][r(0xe2)]({'pathParts':[l],'config':f});}f[r(0xcc)][r(0xeb)]===r(0xd1)?(f[r(0xcc)]['js']===r(0xc3)?this[r(0xef)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0xe1)+g[r(0xd3)]+r(0xc1)+i+r(0xc9)}):this[r(0xef)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0xe1)+g[r(0xd3)]+r(0xc1)+i+'.'+f[r(0xcc)]['js']+r(0xc9)}),this[r(0xef)][r(0xdc)]({'filePath':j,'content':r(0xc8)+g[r(0xd3)]+r(0xfc)})):this[r(0xef)]['injectAtEndOfFile']({'filePath':j,'content':r(0xe9)+i+'.'+f[r(0xcc)]['js']+r(0xc9)});});});
@@ -1 +1 @@
1
- function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x86;let f=c[d];return f;},a108d(a,b);}const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=-parseInt(h(0x96))/0x1+parseInt(h(0x95))/0x2+-parseInt(h(0x8e))/0x3+parseInt(h(0x97))/0x4*(parseInt(h(0x90))/0x5)+-parseInt(h(0x8d))/0x6+parseInt(h(0x88))/0x7*(-parseInt(h(0x8f))/0x8)+parseInt(h(0x87))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x48f0d));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x89)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0x8b)]()[j(0x93)]('(((.+)+)+)+$')[j(0x8b)]()[j(0x9c)](a108a)['search']('(((.+)+)+)+$');});a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a108k(0x9b)]({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a108k(0x9a)]},async function(a,b){const l=a108k,c=this[l(0x91)]['getProjectConfig']();this[l(0x91)][l(0x98)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x92)]),'noRename':!![]};let e='js';c[m(0x8a)]['js']===m(0x99)&&(e='ts');const f=this[m(0x91)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c[m(0x8a)]['js']]}),g=this[m(0x91)][m(0x94)]({'srcPath':m(0x86)+e,'context':d,'config':c});this['fsi'][m(0x8c)]({'filePath':f,'content':'\x0a'+g});});});function a108c(){const n=['create','constructor','publish/publish.','7551981Eofxdh','503027JNfvbT','apply','engines','toString','injectAtEndOfFile','1146192ZDhBhl','1579965PcgNop','24DEYwuT','86335iYNTga','fsi','resourceName','search','templateContent','1042908gNqQgp','456601fyIDFM','76ipQqde','withValue','tsx','maka\x20g:publish\x20todos'];a108c=function(){return n;};return a108c();}
1
+ const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0xb2))/0x1+parseInt(h(0xc7))/0x2*(-parseInt(h(0xc6))/0x3)+-parseInt(h(0xc2))/0x4+-parseInt(h(0xbe))/0x5+-parseInt(h(0xc9))/0x6+parseInt(h(0xbb))/0x7+-parseInt(h(0xb0))/0x8*(-parseInt(h(0xb7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x40519));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0xbd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0xae)]()[j(0xc8)](j(0xba))[j(0xae)]()[j(0xb8)](a108a)[j(0xc8)](j(0xba));});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xae;let f=c[d];return f;},a108d(a,b);}a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a108c(){const n=['rewriteDestinationPathForEngine','105993MxIxzi','constructor','maka\x20g:publish\x20todos','(((.+)+)+)+$','1574811fuUkUE','publish/publish.','apply','1749605MnWYdc','engines','getProjectConfig','withValue','448784IzyMDq','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','server/publish.','resourceName','354fyJPpw','8696Edatlc','search','2546736kljTwh','toString','injectAtEndOfFile','968yBdLGZ','create','13096YOtgZR','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','fsi','templateContent'];a108c=function(){return n;};return a108c();}Generator[a108k(0xb1)]({'name':'publish','aliases':['p'],'usage':a108k(0xb3),'shortDesc':a108k(0xc3),'validOpts':[],'examples':[a108k(0xb9)]},async function(a,b){const l=a108k,c=this[l(0xb4)][l(0xc0)]();this[l(0xb4)][l(0xc1)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0xc5)]),'noRename':!![]};let e='js';c[m(0xbf)]['js']==='tsx'&&(e='ts');const f=this[m(0xb4)][m(0xb6)]({'pathParts':[m(0xc4)+c[m(0xbf)]['js']]}),g=this['fsi'][m(0xb5)]({'srcPath':m(0xbc)+e,'context':d,'config':c});this['fsi'][m(0xaf)]({'filePath':f,'content':'\x0a'+g});});});