@maka/maka-cli 4.5.40 → 4.5.41

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 a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x72;let f=c[d];return f;},a95d(a,b);}(function(a,b){const w=a95d,c=a();while(!![]){try{const d=parseInt(w(0xca))/0x1*(parseInt(w(0x78))/0x2)+-parseInt(w(0x83))/0x3*(parseInt(w(0xbd))/0x4)+-parseInt(w(0xa7))/0x5+-parseInt(w(0xc4))/0x6*(parseInt(w(0xc5))/0x7)+-parseInt(w(0xa8))/0x8*(parseInt(w(0xae))/0x9)+parseInt(w(0xcd))/0xa*(parseInt(w(0xb2))/0xb)+parseInt(w(0xc1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xd7711));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0xc7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0x73)]()[y(0x90)](y(0x82))[y(0x73)]()[y(0xa3)](a95a)[y(0x90)]('(((.+)+)+)+$');});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';function a95c(){const C=['const','Verifying\x20meteor\x20package\x20requirements\x20...','installMeteorPackage','search','api/register-api.js','test','startup','maka\x20g:api\x20Todos','GraphQL','register-','apollo','none','findGenerator','create','pathFromApp','tsx','push','typeList.push(','\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','Resolvers\x20}\x20from\x20\x27','exit','.app-tests.','constructor','engines','resourceName','API\x20boundaries\x20to\x20create','4732440kbDjci','5936712ioSLNF','getProjectConfig','template','rest','withMethods','api/methods.js','9sHcDHd','RPC\x20(Methods)','No\x20API\x20boundaries\x20selected','publications.','77wxpblf','ddp-rate-limiter','mdg:validated-method','injectIntoFile','api/publications.js','/graphql/typeDefs','graphql','REST\x20API','error','Resolvers);\x0a\x0a','withValue','64hTYDpe','imports','\x0aimport\x20{\x20resolvers\x20as\x20','dir','23151756xjrdwi','injectAtBeginningOfFile','resolvers.','642cuBvQe','63462YnYOhv','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','apply','invoke','length','1095327HclGDa','TypeDefs\x20}\x20from\x20\x27','-api.','870080PSCJUh','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','Fixtures','api/fixtures.js','api/api.js','api','Publications','-api\x27;','checkMeteorPackage','toString','rewriteDestinationPathForEngine','if\x20\x5c(typeList','resolverList.push(','rest-api.','2EmYtYm','fsi','maka\x20{generate,\x20g}:{api}\x20<resource-name>','server','rpc-methods.','index.','fixtures.','apiAnswers','maka:rest','\x27;\x0a','(((.+)+)+)+$','17364cdAYvY','import\x20{\x20typeDefs\x20as\x20','withGql','withPubs','/imports/api','includes','collection','withFixtures','notice','withRest'];a95c=function(){return C;};return a95c();}Generator[a95z(0x9a)]({'name':a95z(0xd2),'aliases':['a'],'usage':a95z(0x7a),'shortDesc':a95z(0xce),'validOpts':[a95z(0xc0)],'examples':[a95z(0x94)],'description':a95z(0x9f)},async function(a,b){const A=a95z;try{const c=this[A(0x79)][A(0xa9)](),d=[{'name':A(0xaf),'value':'withMethods'},{'name':A(0xcf),'value':A(0x8a)},{'name':A(0xd3),'value':'withPubs'}];c[A(0xa4)][A(0xd2)]==='rest'&&d[A(0x9d)]({'name':A(0xb9),'value':A(0x8c)});c[A(0xa4)]['graphql']==='apollo'&&d[A(0x9d)]({'name':A(0x95),'value':A(0x85)});const f={'type':'checkbox','name':A(0x7f),'message':A(0xa6),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[A(0xc9)]===0x0&&(Log[A(0xba)](A(0xb0)),process[A(0xa1)](0x1)),this['fsi'][A(0xbc)](c,async()=>{const B=A,h=this[B(0x79)][B(0x9b)]({}),i=b[B(0xa5)],j=paramCase(i),k=camelCase(i),l=b[B(0xc0)]?'/'+b[B(0xc0)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xa4)][B(0xd2)],'graphql':c[B(0xa4)][B(0xb8)],'test':c[B(0xa4)][B(0x92)],'noRename':!![],'withPubs':g[B(0x88)](B(0x86)),'withFixtures':g[B(0x88)](B(0x8a)),'withMethods':g[B(0x88)]('withMethods'),'withRest':g[B(0x88)](B(0x8c))};let n='js';c[B(0xa4)]['js']===B(0x9c)&&(n='ts');(!this[B(0x79)][B(0x72)](B(0x80))||!this[B(0x79)][B(0x72)]('maka:check')||!this[B(0x79)][B(0x72)](B(0xb3))||!this['fsi'][B(0x72)](B(0xb4))||!this[B(0x79)]['checkMeteorPackage']('mongo'))&&(Log[B(0x8b)](B(0x8e)),await this[B(0x79)][B(0x8f)](B(0xc6),{'cwd':h}));const o=a95e[B(0x99)](B(0x89));o&&await o[B(0xc8)]([j],{'config':c,'where':B(0x7b)});c[B(0xa4)]['api']===B(0xab)&&(m['withRest']&&this[B(0x79)]['template']({'srcPath':B(0xd1),'destPath':this[B(0x79)]['pathFromApp']({'pathParts':[B(0xbe),B(0xd2),b[B(0xc0)],j,B(0x77)+n]}),'context':m,'config':c}));m[B(0xac)]&&this[B(0x79)][B(0xaa)]({'srcPath':B(0xad),'destPath':this[B(0x79)][B(0x9b)]({'pathParts':['imports',B(0xd2),b[B(0xc0)],j,B(0x7c)+n]}),'context':m,'config':c});m[B(0x8a)]&&this[B(0x79)]['template']({'srcPath':B(0xd0),'destPath':this['fsi']['pathFromApp']({'pathParts':['imports','api',b[B(0xc0)],j,B(0x7e)+n]}),'context':m,'config':c});c['engines'][B(0x92)]!==B(0x98)&&this[B(0x79)][B(0xaa)]({'srcPath':'api/tests.js','destPath':this[B(0x79)]['pathFromApp']({'pathParts':[B(0xbe),B(0xd2),b[B(0xc0)],j,j+B(0xa2)+n]}),'context':m,'config':c});m[B(0x86)]&&this['fsi']['template']({'srcPath':B(0xb6),'destPath':this['fsi'][B(0x9b)]({'pathParts':['imports',B(0xd2),b[B(0xc0)],j,B(0xb1)+n]}),'context':m,'config':c});if(c[B(0xa4)]['graphql']===B(0x97)){if(g['includes'](B(0x85))){const q=this[B(0x79)][B(0x9b)]({'pathParts':[B(0xbe),B(0x93),B(0x7b),B(0x7d)+c[B(0xa4)]['js']]}),r=this[B(0x79)][B(0x74)]({'pathParts':[q],'config':c}),s=this[B(0x79)][B(0x9b)]({'pathParts':[B(0xbe),B(0xd2),b[B(0xc0)],j,B(0xb8),'typeDefs.'+n]}),t=B(0x87)+l+j+B(0xb7);this[B(0x79)][B(0xaa)]({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0x79)][B(0xc2)]({'filePath':r,'content':B(0x84)+k+B(0xcb)+t+B(0x81)}),this[B(0x79)][B(0xb5)]({'filePath':r,'content':B(0x9e)+k+'TypeDefs);\x0a','begin':B(0x8d),'end':B(0x75)});const u=this[B(0x79)][B(0x9b)]({'pathParts':[B(0xbe),'api',b[B(0xc0)],j,B(0xb8),B(0xc3)+n]}),v=B(0x87)+l+j+'/graphql/resolvers';this[B(0x79)][B(0xaa)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x79)][B(0xc2)]({'filePath':r,'content':B(0xbf)+k+B(0xa0)+v+'\x27;'}),this['fsi']['injectIntoFile']({'filePath':r,'content':B(0x76)+k+B(0xbb),'begin':B(0x8d),'end':B(0x75)});}}this['fsi'][B(0xaa)]({'srcPath':B(0x91),'destPath':this['fsi'][B(0x9b)]({'pathParts':[B(0xbe),'startup','server',B(0x96)+j+B(0xcc)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x9b)]({'pathParts':['imports',B(0x93),B(0x7b),B(0x7d)+c[B(0xa4)]['js']]});this[B(0x79)]['injectAtEndOfFile']({'filePath':p,'content':'import\x20\x27./register-'+j+B(0xd4)});});}catch(h){console['log'](h),process[A(0xa1)](0x0);}});
1
+ const a95z=a95d;function a95c(){const C=['checkbox','api/publications.js','TypeDefs\x20}\x20from\x20\x27','checkMeteorPackage','test','rewriteDestinationPathForEngine','pathFromApp','Resolvers\x20}\x20from\x20\x27','collection','imports','import\x20{\x20typeDefs\x20as\x20','Verifying\x20meteor\x20package\x20requirements\x20...','1292245TviOhA','1669058ClrKht','none','api/typeDefs.js','withValue','graphql','/graphql/typeDefs','api/register-api.js','apollo','Publications','toString','resolverList.push(','Resolvers);\x0a\x0a','-api.','mdg:validated-method','maka:rest','api/methods.js','log','typeDefs.','16xmEpFw','576981QREGSU','fsi','getProjectConfig','options','create','includes','resourceName','REST\x20API','6YTesKY','engines','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withPubs','injectIntoFile','3095330TajwGx','maka\x20{generate,\x20g}:{api}\x20<resource-name>','push','mongo','apply','injectAtEndOfFile','index.','TypeDefs);\x0a','66XjazHC','publications.','\x27;\x0a','api/api.js','const','GraphQL','withFixtures','api/resolvers.js','search','apiAnswers','api','if\x20\x5c(typeList','findGenerator','maka\x20g:api\x20Todos','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','4353940ImHVRh','injectAtBeginningOfFile','API\x20boundaries\x20to\x20create','dir','Fixtures','ddp-rate-limiter','rpc-methods.','3BJpaBL','template','1066306oUQFXH','invoke','server','/imports/api','withRest','\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','/graphql/resolvers','tsx','startup','exit','fixtures.','713734AUOvIs','withGql','notice','rest','maka:check','constructor','withMethods','typeList.push(','api/tests.js'];a95c=function(){return C;};return a95c();}(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0x106))/0x1+-parseInt(w(0xc6))/0x2*(parseInt(w(0x104))/0x3)+parseInt(w(0xfd))/0x4+-parseInt(w(0xc5))/0x5*(parseInt(w(0xe1))/0x6)+-parseInt(w(0x111))/0x7*(parseInt(w(0xd8))/0x8)+parseInt(w(0xd9))/0x9+-parseInt(w(0xe6))/0xa*(-parseInt(w(0xee))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x9ddb8));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0xcf)]()[y(0xf6)]('(((.+)+)+)+$')[y(0xcf)]()[y(0x116)](a95a)[y(0xf6)]('(((.+)+)+)+$');});a95a();import{Generator}from'../generator.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xba;let f=c[d];return f;},a95d(a,b);}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(0xdd)]({'name':a95z(0xf8),'aliases':['a'],'usage':a95z(0xe7),'shortDesc':a95z(0xe3),'validOpts':[a95z(0x100)],'examples':[a95z(0xfb)],'description':a95z(0x10b)},async function(a,b){const A=a95z;try{const c=this[A(0xda)][A(0xdb)](),d=[{'name':'RPC\x20(Methods)','value':A(0x117)},{'name':A(0x101),'value':A(0xf4)},{'name':A(0xce),'value':A(0xe4)}];c[A(0xe2)]['api']===A(0x114)&&d[A(0xe8)]({'name':A(0xe0),'value':A(0x10a)});c[A(0xe2)][A(0xca)]==='apollo'&&d[A(0xe8)]({'name':A(0xf3),'value':'withGql'});const f={'type':A(0x11a),'name':A(0xf7),'message':A(0xff),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xdc)](f);g['length']===0x0&&(Log['error']('No\x20API\x20boundaries\x20selected'),process[A(0x10f)](0x1)),this[A(0xda)][A(0xc9)](c,async()=>{const B=A,h=this[B(0xda)]['pathFromApp']({}),i=b[B(0xdf)],j=paramCase(i),k=camelCase(i),l=b[B(0x100)]?'/'+b[B(0x100)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xe2)][B(0xf8)],'graphql':c['engines']['graphql'],'test':c[B(0xe2)][B(0xbd)],'noRename':!![],'withPubs':g['includes']('withPubs'),'withFixtures':g[B(0xde)](B(0xf4)),'withMethods':g[B(0xde)](B(0x117)),'withRest':g['includes']('withRest')};let n='js';c['engines']['js']===B(0x10d)&&(n='ts');(!this[B(0xda)]['checkMeteorPackage'](B(0xd4))||!this['fsi'][B(0xbc)](B(0x115))||!this[B(0xda)]['checkMeteorPackage'](B(0x102))||!this[B(0xda)][B(0xbc)](B(0xd3))||!this[B(0xda)][B(0xbc)](B(0xe9)))&&(Log[B(0x113)](B(0xc4)),await this[B(0xda)]['installMeteorPackage'](B(0xfc),{'cwd':h}));const o=a95e[B(0xfa)](B(0xc1));o&&await o[B(0x107)]([j],{'config':c,'where':'server'});c[B(0xe2)][B(0xf8)]==='rest'&&(m['withRest']&&this['fsi'][B(0x105)]({'srcPath':B(0xf1),'destPath':this[B(0xda)][B(0xbf)]({'pathParts':[B(0xc2),'api',b[B(0x100)],j,'rest-api.'+n]}),'context':m,'config':c}));m[B(0x117)]&&this['fsi'][B(0x105)]({'srcPath':B(0xd5),'destPath':this[B(0xda)]['pathFromApp']({'pathParts':[B(0xc2),'api',b['dir'],j,B(0x103)+n]}),'context':m,'config':c});m[B(0xf4)]&&this[B(0xda)][B(0x105)]({'srcPath':'api/fixtures.js','destPath':this[B(0xda)][B(0xbf)]({'pathParts':[B(0xc2),'api',b[B(0x100)],j,B(0x110)+n]}),'context':m,'config':c});c[B(0xe2)][B(0xbd)]!==B(0xc7)&&this[B(0xda)][B(0x105)]({'srcPath':B(0x119),'destPath':this['fsi'][B(0xbf)]({'pathParts':['imports',B(0xf8),b[B(0x100)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m['withPubs']&&this[B(0xda)][B(0x105)]({'srcPath':B(0xba),'destPath':this['fsi'][B(0xbf)]({'pathParts':[B(0xc2),B(0xf8),b[B(0x100)],j,B(0xef)+n]}),'context':m,'config':c});if(c[B(0xe2)]['graphql']===B(0xcd)){if(g[B(0xde)](B(0x112))){const q=this['fsi'][B(0xbf)]({'pathParts':['imports',B(0x10e),B(0x108),B(0xec)+c[B(0xe2)]['js']]}),r=this[B(0xda)][B(0xbe)]({'pathParts':[q],'config':c}),s=this['fsi'][B(0xbf)]({'pathParts':['imports',B(0xf8),b[B(0x100)],j,B(0xca),B(0xd7)+n]}),t=B(0x109)+l+j+B(0xcb);this[B(0xda)][B(0x105)]({'srcPath':B(0xc8),'destPath':s,'context':m,'config':c}),this[B(0xda)][B(0xfe)]({'filePath':r,'content':B(0xc3)+k+B(0xbb)+t+B(0xf0)}),this[B(0xda)]['injectIntoFile']({'filePath':r,'content':B(0x118)+k+B(0xed),'begin':B(0xf2),'end':B(0xf9)});const u=this[B(0xda)][B(0xbf)]({'pathParts':[B(0xc2),B(0xf8),b[B(0x100)],j,B(0xca),'resolvers.'+n]}),v=B(0x109)+l+j+B(0x10c);this[B(0xda)][B(0x105)]({'srcPath':B(0xf5),'destPath':u,'context':m,'config':c}),this[B(0xda)][B(0xfe)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0xc0)+v+'\x27;'}),this[B(0xda)][B(0xe5)]({'filePath':r,'content':B(0xd0)+k+B(0xd1),'begin':B(0xf2),'end':B(0xf9)});}}this[B(0xda)][B(0x105)]({'srcPath':B(0xcc),'destPath':this['fsi'][B(0xbf)]({'pathParts':[B(0xc2),B(0x10e),B(0x108),'register-'+j+B(0xd2)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xda)]['pathFromApp']({'pathParts':['imports','startup',B(0x108),B(0xec)+c['engines']['js']]});this[B(0xda)][B(0xeb)]({'filePath':p,'content':'import\x20\x27./register-'+j+'-api\x27;'});});}catch(h){console[A(0xd6)](h),process[A(0x10f)](0x0);}});
@@ -1 +1 @@
1
- const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x1c4))/0x1*(-parseInt(k(0x1d8))/0x2)+parseInt(k(0x1ce))/0x3*(parseInt(k(0x1c0))/0x4)+-parseInt(k(0x1bb))/0x5*(parseInt(k(0x1de))/0x6)+-parseInt(k(0x1c2))/0x7*(-parseInt(k(0x1d2))/0x8)+-parseInt(k(0x1cb))/0x9*(-parseInt(k(0x1b6))/0xa)+-parseInt(k(0x1b5))/0xb*(parseInt(k(0x1bf))/0xc)+parseInt(k(0x1c3))/0xd*(-parseInt(k(0x1e0))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x581da));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a96d(a,b);}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x1da)]()[m(0x1e3)](m(0x1cf))['toString']()['constructor'](a96a)[m(0x1e3)](m(0x1cf));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a96c(){const q=['2101028vxtSPa','imports','1306347rAVqsO','762203BzUZOM','5tYwsbO','.app-tests.','withValue','collection/tests.js','col','startup','maka:check','9jYiIeI','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','maka\x20g:collection\x20todos','3DxlbMC','(((.+)+)+)+$','notice','dir','8sGSBLk','injectAtEndOfFile','template','collection/collection.js','checkMeteorPackage','installMeteorPackage','115714MFUdKV','engines','toString','\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','resourceName','3052806YjrJrD','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','14INEMMM','pathFromApp','fsi','search','mongo','import\x20\x27./collections','apply','collections','33nyLxYI','4640980OlCoTp','where','appPathPrefix','none','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','5FuQSQJ','getProjectConfig','tsx','index.','2147628eKjwXQ'];a96c=function(){return q;};return a96c();}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a96n(0x1dc),'aliases':[a96n(0x1c8)],'usage':a96n(0x1ba),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a96n(0x1d1),a96n(0x1b7)],'description':a96n(0x1db),'examples':[a96n(0x1cd)]},async function(a,b){const o=a96n;try{const c=this[o(0x1e2)][o(0x1e1)]({}),d=this['fsi'][o(0x1bc)]();this['fsi'][o(0x1c6)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0x1dd)]),'collectionName':pascalCase(b[p(0x1dd)]),'fileName':f,'where':b[p(0x1b7)],'test':d['engines']['test'],'noRename':!![]};let h='js';d[p(0x1d9)]['js']===p(0x1bd)&&(h='ts');!this[p(0x1e2)]['checkMeteorPackage'](p(0x1b1))&&(Log['notice'](p(0x1cc)),await this[p(0x1e2)][p(0x1d7)](p(0x1b1),{'cwd':c}));!this[p(0x1e2)][p(0x1d6)](p(0x1ca))&&(Log[p(0x1d0)](p(0x1df)),await this[p(0x1e2)][p(0x1d7)](p(0x1ca),{'cwd':c}));this[p(0x1e2)]['template']({'srcPath':p(0x1d5),'destPath':this[p(0x1e2)]['pathFromApp']({'pathParts':[p(0x1c1),p(0x1c9),b[p(0x1b8)],p(0x1b4),b[p(0x1d1)],f+'.'+h]}),'context':g,'config':d});d['engines']['test']!==p(0x1b9)&&this[p(0x1e2)][p(0x1d4)]({'srcPath':p(0x1c7),'destPath':this[p(0x1e2)][p(0x1e1)]({'pathParts':['imports','startup',b[p(0x1b8)],p(0x1b4),b[p(0x1d1)],f+p(0x1c5)+h]}),'context':g,'config':d});const i=b[p(0x1d1)]?'/'+b[p(0x1d1)]+'/':'/',j=this[p(0x1e2)][p(0x1e1)]({'pathParts':[p(0x1c1),p(0x1c9),b[p(0x1b8)],p(0x1be)+d[p(0x1d9)]['js']]});this[p(0x1e2)][p(0x1d3)]({'filePath':j,'content':p(0x1b2)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
1
+ const a96n=a96d;function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x10a;let f=c[d];return f;},a96d(a,b);}(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x135))/0x1+-parseInt(k(0x12b))/0x2*(parseInt(k(0x131))/0x3)+-parseInt(k(0x114))/0x4+parseInt(k(0x120))/0x5*(parseInt(k(0x128))/0x6)+parseInt(k(0x138))/0x7+parseInt(k(0x130))/0x8*(parseInt(k(0x10a))/0x9)+-parseInt(k(0x10f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x4ab56));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x11d)]()[m(0x12e)](m(0x115))['toString']()[m(0x125)](a96a)['search'](m(0x115));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a96c(){const q=['243799bxkVmm','fsi','.app-tests.','3559087oxMGIE','4901697cFsbPv','startup','where','engines','collection','4086400OVlzyd','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','appPathPrefix','mongo','collections','1070516DEqXis','(((.+)+)+)+$','injectAtEndOfFile','withValue','collection/tests.js','index.','pathFromApp','notice','getProjectConfig','toString','resourceName','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','1678470wzExWL','template','imports','dir','tsx','constructor','checkMeteorPackage','maka:check','6KHsjAD','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','installMeteorPackage','46484wzpavD','create','import\x20\x27./collections','search','error','8jmThRJ','21IJcMvq','test','apply','col'];a96c=function(){return q;};return a96c();}Generator[a96n(0x12c)]({'name':a96n(0x10e),'aliases':[a96n(0x134)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a96n(0x110),'validOpts':[a96n(0x123),a96n(0x10c)],'description':'\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a96n;try{const c=this[o(0x136)][o(0x11a)]({}),d=this[o(0x136)][o(0x11c)]();this[o(0x136)][o(0x117)](d,async()=>{const p=o,f=paramCase(b[p(0x11e)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x10c)],'test':d[p(0x10d)][p(0x132)],'noRename':!![]};let h='js';d[p(0x10d)]['js']===p(0x124)&&(h='ts');!this[p(0x136)][p(0x126)](p(0x112))&&(Log[p(0x11b)](p(0x11f)),await this['fsi'][p(0x12a)](p(0x112),{'cwd':c}));!this['fsi']['checkMeteorPackage']('maka:check')&&(Log[p(0x11b)](p(0x129)),await this[p(0x136)]['installMeteorPackage'](p(0x127),{'cwd':c}));this[p(0x136)][p(0x121)]({'srcPath':'collection/collection.js','destPath':this[p(0x136)][p(0x11a)]({'pathParts':[p(0x122),p(0x10b),b[p(0x111)],p(0x113),b[p(0x123)],f+'.'+h]}),'context':g,'config':d});d[p(0x10d)][p(0x132)]!=='none'&&this['fsi'][p(0x121)]({'srcPath':p(0x118),'destPath':this['fsi'][p(0x11a)]({'pathParts':[p(0x122),p(0x10b),b['appPathPrefix'],'collections',b['dir'],f+p(0x137)+h]}),'context':g,'config':d});const i=b[p(0x123)]?'/'+b[p(0x123)]+'/':'/',j=this[p(0x136)][p(0x11a)]({'pathParts':[p(0x122),'startup',b[p(0x111)],p(0x119)+d['engines']['js']]});this[p(0x136)][p(0x116)]({'filePath':j,'content':p(0x12d)+i+f+'\x27;'});});}catch(f){Log[o(0x12f)](f);}});
@@ -1 +1 @@
1
- const a97q=a97d;function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a97d(a,b);}(function(a,b){const n=a97d,c=a();while(!![]){try{const d=-parseInt(n(0x215))/0x1*(-parseInt(n(0x1f4))/0x2)+parseInt(n(0x203))/0x3*(parseInt(n(0x209))/0x4)+parseInt(n(0x1f5))/0x5*(-parseInt(n(0x22f))/0x6)+-parseInt(n(0x20b))/0x7*(-parseInt(n(0x229))/0x8)+parseInt(n(0x22d))/0x9+-parseInt(n(0x1ff))/0xa*(-parseInt(n(0x1f9))/0xb)+-parseInt(n(0x20f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x4834f));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a97d;if(c){const e=c[o(0x21e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const p=a97d;return a97a[p(0x22a)]()['search']('(((.+)+)+)+$')[p(0x22a)]()['constructor'](a97a)[p(0x228)](p(0x1f8));});a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97c(){const t=['310sLCWVq','.css','checkNpmPackage','theme','89823iLmfxO','client','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','maka\x20g:comp\x20todos/todos-item','pathFromApp','.tests.js','72CNJZAS','rewriteDestinationPathForEngine','606494WnuUpx','className','reflux','ssr','15779784mYbnEj','features','create','engines','installNpmPackage','/imports/ui/','15YRDEFL','\x20};\x0a','getProjectConfig','assign','hooks','template/template.css','ramda','import\x20\x27./','findAppDirectory','apply','string','withValue','resourceName','test','setTemplate','injectAtEndOfFile','relative','cssCaseName','lib','search','8ezqBRh','toString','none','fsi','1592883EdDUcF','template','18CgVOXM','root','layouts','error','baseDir','\x20}\x20from\x20\x27','fileName','export\x20{\x20','warn','react','component','pathFromProject','css','\x27;\x0a','injectAtBeginningOfFile','tsx','templates.js','true','test/test.js','import\x20{\x20','startup','55920DYaAkr','173285sDBNZY','component/component.js','graphql','(((.+)+)+)+$','174845xmRgll','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','imports','withTranslations','dir','/imports/ui/components'];a97c=function(){return t;};return a97c();}import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a97q(0x211)]({'name':a97q(0x1e9),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a97q(0x1e3),'values':[a97q(0x219),'components','pages',a97q(0x231)]}],'examples':[a97q(0x206)]},async function(a,b){const r=a97q;try{const c=this['fsi'][r(0x21d)](),d=b[r(0x1e3)]?r(0x214)+b[r(0x1e3)]:r(0x1fe),f=this[r(0x22c)][r(0x207)]({'pathParts':[d,b['dir'],paramCase(b['resourceName']),paramCase(b[r(0x221)])]}),g=await this['fsi'][r(0x217)]();this[r(0x22c)][r(0x220)](g,async()=>{const s=r;typeof g[s(0x22e)]['test']===s(0x21f)&&(g[s(0x22e)][s(0x222)]=g[s(0x22e)][s(0x222)]===s(0x1f0)?!![]:![],this[s(0x22c)][s(0x223)](s(0x222),g['template'][s(0x222)]));typeof g[s(0x22e)][s(0x1eb)]===s(0x21f)&&(g[s(0x22e)]['css']=g[s(0x22e)][s(0x1eb)]===s(0x1f0)?!![]:![],this[s(0x22c)]['setTemplate'](s(0x1eb),g[s(0x22e)][s(0x1eb)]));typeof g['template']['js']===s(0x21f)&&(g[s(0x22e)]['js']=g[s(0x22e)]['js']==='true'?!![]:![],this[s(0x22c)][s(0x223)]('js',g[s(0x22e)]['js']));!g['features']&&(g['features']={});!b[s(0x230)]&&!this[s(0x22c)]['checkNpmPackage']('ramda')&&(Log[s(0x1e7)](s(0x1fa)),await this['fsi'][s(0x213)](s(0x21b),{'cwd':c}));if(!b[s(0x230)]&&!this[s(0x22c)][s(0x201)]('react')){Log['error'](s(0x205));return;}const h={'name':pascalCase(b[s(0x221)]),'myPath':a97e[s(0x225)](this[s(0x22c)][s(0x1ea)]({}),f),'cssCaseName':paramCase(b[s(0x221)]),'className':pascalCase(b[s(0x221)]),'camelCaseName':camelCase(b[s(0x221)]),'fileName':paramCase(b[s(0x221)]),'graphql':g[s(0x212)][s(0x1f7)],'features':g['features'],'client':g['engines'][s(0x204)],'api':g[s(0x212)]['api'],'ssr':g[s(0x212)][s(0x20e)],'test':g['engines']['test'],'theme':g[s(0x212)][s(0x202)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x210)][s(0x1fc)]};this[s(0x22c)][s(0x22e)]({'srcPath':s(0x1f6),'destPath':f+'.js','context':h,'framework':'react','config':g});g['engines'][s(0x222)]!==s(0x22b)&&this[s(0x22c)]['template']({'srcPath':s(0x1f1),'destPath':f+s(0x208),'context':h,'framework':s(0x1e8),'config':g});g[s(0x22e)][s(0x1eb)]&&(this['fsi'][s(0x22e)]({'srcPath':s(0x21a),'destPath':f+s(0x200),'context':Object[s(0x218)]({},h,{'className':paramCase(b[s(0x221)])}),'config':g}),this[s(0x22c)][s(0x1ed)]({'filePath':f+'.'+g[s(0x212)]['js'],'content':s(0x21c)+h[s(0x226)]+'.'+g[s(0x212)][s(0x1eb)]+'\x27;'}));const i=b[s(0x1fd)]?'/'+b[s(0x1fd)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[s(0x1e5)];let k;if(g[s(0x212)][s(0x20e)]===s(0x1f0)){const l=this[s(0x22c)][s(0x207)]({'pathParts':[s(0x1fb),'startup',s(0x227),s(0x1ef)]});k=this[s(0x22c)][s(0x20a)]({'pathParts':[l],'config':g});}else{const m=this[s(0x22c)][s(0x207)]({'pathParts':[s(0x1fb),s(0x1f3),s(0x204),s(0x1ef)]});k=this['fsi'][s(0x20a)]({'pathParts':[m],'config':g});}g[s(0x212)][s(0x204)]==='react'||g['engines'][s(0x204)]===s(0x20d)?(g[s(0x212)]['js']===s(0x1ee)?this[s(0x22c)][s(0x1ed)]({'filePath':k,'content':s(0x1f2)+h[s(0x20c)]+'\x20}\x20from\x20\x27'+j+s(0x1ec)}):this[s(0x22c)][s(0x1ed)]({'filePath':k,'content':s(0x1f2)+h['className']+s(0x1e4)+j+'.'+g[s(0x212)]['js']+s(0x1ec)}),this[s(0x22c)][s(0x224)]({'filePath':k,'content':s(0x1e6)+h[s(0x20c)]+s(0x216)})):this[s(0x22c)]['injectAtEndOfFile']({'filePath':k,'content':'import\x20\x27'+j+'.'+g[s(0x212)]['js']+s(0x1ec)});});}catch(h){Log[r(0x1e2)](h);}});
1
+ const a97q=a97d;(function(a,b){const n=a97d,c=a();while(!![]){try{const d=-parseInt(n(0x15a))/0x1+-parseInt(n(0x13e))/0x2+parseInt(n(0x15e))/0x3+parseInt(n(0x142))/0x4+parseInt(n(0x132))/0x5*(parseInt(n(0x119))/0x6)+-parseInt(n(0x144))/0x7+parseInt(n(0x128))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xdff4a));function a97c(){const t=['hooks','pathFromApp','.js','584528ShlKYG','template','11212320TMFftc','ramda','export\x20{\x20','layouts','setTemplate','startup','css','import\x20{\x20','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','fsi','graphql','component','(((.+)+)+)+$','.tests.js','rewriteDestinationPathForEngine','maka\x20g:comp\x20todos/todos-item','client','lib','checkNpmPackage','string','api','toString','649472azLfrR','injectAtEndOfFile','fileName','engines','990408iNSXrP','react','relative','features','installNpmPackage','getProjectConfig','pathFromProject','12qBgoju','/imports/ui/','warn','withTranslations','\x20};\x0a','className','none','templates.js','imports','baseDir','assign','error','.css','component/component.js','apply','32247152kAYFCi','\x27;\x0a','ssr','dir','true','test/test.js','test','import\x20\x27','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','theme','1031685iLfogU','components','injectAtBeginningOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','/imports/ui/components','import\x20\x27./','resourceName','cssCaseName','pages','constructor','root','search','3502564yudQtn'];a97c=function(){return t;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x114;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(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const p=a97d;return a97a[p(0x159)]()['search'](p(0x150))[p(0x159)]()[p(0x13b)](a97a)[p(0x13d)](p(0x150));});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=['comp'];Generator['create']({'name':a97q(0x14f),'aliases':aliases,'usage':a97q(0x14c),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a97q(0x122),'values':[a97q(0x13f),a97q(0x133),a97q(0x13a),a97q(0x147)]}],'examples':[a97q(0x153)]},async function(a,b){const r=a97q;try{const c=this[r(0x14d)]['findAppDirectory'](),d=b[r(0x122)]?r(0x11a)+b[r(0x122)]:r(0x136),f=this[r(0x14d)][r(0x140)]({'pathParts':[d,b['dir'],paramCase(b['resourceName']),paramCase(b[r(0x138)])]}),g=await this[r(0x14d)][r(0x117)]();this[r(0x14d)]['withValue'](g,async()=>{const s=r;typeof g[s(0x143)][s(0x12e)]===s(0x157)&&(g[s(0x143)][s(0x12e)]=g[s(0x143)][s(0x12e)]===s(0x12c)?!![]:![],this[s(0x14d)][s(0x148)](s(0x12e),g[s(0x143)]['test']));typeof g[s(0x143)]['css']==='string'&&(g['template'][s(0x14a)]=g[s(0x143)][s(0x14a)]==='true'?!![]:![],this['fsi'][s(0x148)]('css',g[s(0x143)]['css']));typeof g[s(0x143)]['js']===s(0x157)&&(g['template']['js']=g[s(0x143)]['js']===s(0x12c)?!![]:![],this[s(0x14d)][s(0x148)]('js',g[s(0x143)]['js']));!g[s(0x115)]&&(g['features']={});!b['root']&&!this[s(0x14d)][s(0x156)]('ramda')&&(Log[s(0x11b)](s(0x135)),await this[s(0x14d)][s(0x116)](s(0x145),{'cwd':c}));if(!b[s(0x13c)]&&!this[s(0x14d)]['checkNpmPackage'](s(0x15f))){Log['error'](s(0x130));return;}const h={'name':pascalCase(b[s(0x138)]),'myPath':a97e[s(0x114)](this[s(0x14d)][s(0x118)]({}),f),'cssCaseName':paramCase(b[s(0x138)]),'className':pascalCase(b[s(0x138)]),'camelCaseName':camelCase(b[s(0x138)]),'fileName':paramCase(b[s(0x138)]),'graphql':g[s(0x15d)][s(0x14e)],'features':g['features'],'client':g[s(0x15d)][s(0x154)],'api':g[s(0x15d)][s(0x158)],'ssr':g[s(0x15d)][s(0x12a)],'test':g[s(0x15d)]['test'],'theme':g[s(0x15d)][s(0x131)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][s(0x11c)]};this[s(0x14d)][s(0x143)]({'srcPath':s(0x126),'destPath':f+s(0x141),'context':h,'framework':s(0x15f),'config':g});g[s(0x15d)][s(0x12e)]!==s(0x11f)&&this[s(0x14d)][s(0x143)]({'srcPath':s(0x12d),'destPath':f+s(0x151),'context':h,'framework':s(0x15f),'config':g});g[s(0x143)][s(0x14a)]&&(this[s(0x14d)][s(0x143)]({'srcPath':'template/template.css','destPath':f+s(0x125),'context':Object[s(0x123)]({},h,{'className':paramCase(b[s(0x138)])}),'config':g}),this[s(0x14d)][s(0x134)]({'filePath':f+'.'+g[s(0x15d)]['js'],'content':s(0x137)+h[s(0x139)]+'.'+g[s(0x15d)][s(0x14a)]+'\x27;'}));const i=b[s(0x12b)]?'/'+b[s(0x12b)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[s(0x15c)];let k;if(g[s(0x15d)][s(0x12a)]===s(0x12c)){const l=this[s(0x14d)][s(0x140)]({'pathParts':[s(0x121),s(0x149),s(0x155),s(0x120)]});k=this[s(0x14d)][s(0x152)]({'pathParts':[l],'config':g});}else{const m=this[s(0x14d)][s(0x140)]({'pathParts':[s(0x121),s(0x149),s(0x154),s(0x120)]});k=this['fsi'][s(0x152)]({'pathParts':[m],'config':g});}g[s(0x15d)][s(0x154)]==='react'||g['engines'][s(0x154)]==='reflux'?(g[s(0x15d)]['js']==='tsx'?this[s(0x14d)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x14b)+h[s(0x11e)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this['fsi'][s(0x134)]({'filePath':k,'content':'import\x20{\x20'+h[s(0x11e)]+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x15d)]['js']+s(0x129)}),this[s(0x14d)][s(0x15b)]({'filePath':k,'content':s(0x146)+h[s(0x11e)]+s(0x11d)})):this[s(0x14d)][s(0x15b)]({'filePath':k,'content':s(0x12f)+j+'.'+g[s(0x15d)]['js']+s(0x129)});});}catch(h){Log[r(0x124)](h);}});
@@ -1 +1 @@
1
- const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x19b))/0x1*(-parseInt(h(0x18c))/0x2)+-parseInt(h(0x186))/0x3*(parseInt(h(0x189))/0x4)+-parseInt(h(0x193))/0x5+-parseInt(h(0x197))/0x6*(-parseInt(h(0x192))/0x7)+-parseInt(h(0x184))/0x8+-parseInt(h(0x18b))/0x9*(parseInt(h(0x17b))/0xa)+parseInt(h(0x18d))/0xb*(parseInt(h(0x183))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x39ea7));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0x188)]()[j(0x185)](j(0x179))[j(0x188)]()[j(0x195)](a98a)[j(0x185)]('(((.+)+)+)+$');});function a98c(){const n=['isDocker','settings.json','apply','create','development','config/settings.json','6099468CcYlnS','1101744wYwRDy','search','669dPFpxm','prod','toString','3636QfKPrE','ubuntu','2481624QFrrsN','731374XvhLzJ','22kGHdAk','fsi','getProjectConfig','pathFromProject','resourceName','5831YaFllf','1182490hiNlHa','appName','constructor','dev','3162XdqtQV','withValue','config','template','1emjgFe','(((.+)+)+)+$','maka\x20g:config\x20production','10gtIItP','Generate\x20configuration\x20settings.'];a98c=function(){return n;};return a98c();}a98a();function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x179;let f=c[d];return f;},a98d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98k(0x180)]({'name':a98k(0x199),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a98k(0x17c),'validOpts':['isDocker'],'examples':[a98k(0x17a)]},function(a,b){const l=a98k,c=this[l(0x18e)][l(0x18f)]();this[l(0x18e)][l(0x198)](c,async()=>{const m=l,d={'app':c[m(0x194)],'appFileCase':paramCase(c[m(0x194)]),'name':pascalCase(b[m(0x191)]),'fileName':paramCase(b[m(0x191)]),'camelCase':camelCase(b[m(0x191)]),'userName':m(0x18a),'isDocker':b[m(0x17d)]};let e=b[m(0x191)];if(e===m(0x196))e=m(0x181);else e===m(0x187)&&(e='production');const f=this[m(0x18e)]['pathFromProject']({'pathParts':['config',e,m(0x17e)]});this[m(0x18e)][m(0x19a)]({'srcPath':m(0x182),'destPath':f,'context':d,'config':c});if(!b[m(0x17d)]){const g=this['fsi'][m(0x190)]({'pathParts':[m(0x199),e,'process.env']});this[m(0x18e)][m(0x19a)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
1
+ function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x19f;let f=c[d];return f;},a98d(a,b);}function a98c(){const n=['2675088PpUTxP','settings.json','config','isDocker','fsi','toString','config/process.env','maka\x20g:config\x20production','3647665IXtVhx','getProjectConfig','ubuntu','resourceName','2nQCAyJ','template','98610oPtESy','appName','development','1651856guiwgP','apply','782502uTYdjV','search','5LSnDOd','pathFromProject','dev','constructor','maka\x20{generate,\x20g}:{config}\x20<name>','process.env','withValue','7839162DHBsRg','1589562xdtRfq','(((.+)+)+)+$'];a98c=function(){return n;};return a98c();}const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x1aa))/0x1+parseInt(h(0x1a8))/0x2*(-parseInt(h(0x1b9))/0x3)+parseInt(h(0x1ad))/0x4*(-parseInt(h(0x1b1))/0x5)+parseInt(h(0x1af))/0x6+parseInt(h(0x1a4))/0x7+-parseInt(h(0x1bb))/0x8+parseInt(h(0x1b8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x53f80));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0x1a1)]()[j(0x1b0)](j(0x1ba))['toString']()[j(0x1b4)](a98a)[j(0x1b0)](j(0x1ba));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'config','usage':a98k(0x1b5),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a98k(0x19f)],'examples':[a98k(0x1a3)]},function(a,b){const l=a98k,c=this['fsi'][l(0x1a5)]();this[l(0x1a0)][l(0x1b7)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x1ab)]),'name':pascalCase(b[m(0x1a7)]),'fileName':paramCase(b[m(0x1a7)]),'camelCase':camelCase(b[m(0x1a7)]),'userName':m(0x1a6),'isDocker':b[m(0x19f)]};let e=b[m(0x1a7)];if(e===m(0x1b3))e=m(0x1ac);else e==='prod'&&(e='production');const f=this['fsi'][m(0x1b2)]({'pathParts':[m(0x1bd),e,m(0x1bc)]});this[m(0x1a0)][m(0x1a9)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1a0)][m(0x1b2)]({'pathParts':['config',e,m(0x1b6)]});this['fsi'][m(0x1a9)]({'srcPath':m(0x1a2),'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(0x14b))/0x1*(parseInt(j(0x125))/0x2)+parseInt(j(0x14a))/0x3+-parseInt(j(0x14c))/0x4*(-parseInt(j(0x135))/0x5)+parseInt(j(0x143))/0x6+-parseInt(j(0x12c))/0x7+parseInt(j(0x120))/0x8*(parseInt(j(0x11e))/0x9)+-parseInt(j(0x133))/0xa*(parseInt(j(0x13f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xf3b4b));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x11e;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a99d;if(c){const e=c[k(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a[l(0x12a)]()['search']('(((.+)+)+)+$')['toString']()[l(0x127)](a99a)[l(0x130)]('(((.+)+)+)+$');});a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a99m(0x134)]({'name':a99m(0x11f),'usage':a99m(0x146),'shortDesc':a99m(0x137),'validOpts':[a99m(0x147),a99m(0x14d)],'requiredOpts':[{'name':a99m(0x147),'values':[a99m(0x129),'mssql','sqlite']}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a99m(0x122),a99m(0x148)]},async function(a,b){const n=a99m;try{const c=await this[n(0x13d)][n(0x12b)](),d=this[n(0x13d)][n(0x12e)]({}),f=paramCase(b[n(0x139)]),g={'name':pascalCase(b[n(0x139)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[n(0x131)]['js'],'noRename':!![]};this[n(0x13d)][n(0x144)](c,async()=>{const o=n;let h='js';c[o(0x131)]['js']==='tsx'&&(h='ts');b[o(0x147)]==='pgsql'&&!this[o(0x13d)][o(0x14f)]('pg')&&(Log[o(0x124)](o(0x150)),await this['fsi'][o(0x123)]('pg',{'cwd':d}));b[o(0x147)]===o(0x136)&&!this[o(0x13d)][o(0x14f)](o(0x136))&&(Log[o(0x124)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x13d)][o(0x123)](o(0x136),{'cwd':d}));b[o(0x147)]===o(0x141)&&!this[o(0x13d)][o(0x14f)](o(0x149))&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this['fsi'][o(0x123)](o(0x149),{'cwd':d}));await this[o(0x13d)][o(0x12d)]({'srcPath':'dbc/config.js','destPath':this['fsi'][o(0x12e)]({'pathParts':[o(0x13c),o(0x13e),o(0x121),o(0x11f),b[o(0x14d)],f,o(0x140)+h]}),'context':g,'config':c}),await this['fsi']['template']({'srcPath':o(0x138),'destPath':this[o(0x13d)][o(0x12e)]({'pathParts':['imports',o(0x13e),'server',o(0x11f),b['dir'],f,o(0x12f)+h]}),'context':g,'config':c}),await this[o(0x13d)][o(0x12d)]({'srcPath':'dbc/register-dbc.js','destPath':this[o(0x13d)][o(0x12e)]({'pathParts':[o(0x13c),o(0x13e),o(0x121),o(0x13b)+f+o(0x132)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x12e)]({'pathParts':['imports','startup','server',o(0x128)+c[o(0x131)]['js']]});this[o(0x13d)][o(0x142)]({'filePath':i,'content':o(0x126)+f+o(0x14e)});});}catch(h){Log[n(0x145)](h);}});function a99c(){const p=['5979631tmoKnW','template','pathFromApp','conn.','search','engines','-dbc.','3561940tsFJFt','create','10kONxri','mssql','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','dbc/conn.js','resourceName','apply','register-','imports','fsi','startup','66ttImuf','config.','sqlite','injectAtEndOfFile','4690236nPNFCP','withValue','error','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','type','maka\x20g:dbc\x20todos\x20--type=sqlite','better-sqlite3','1734174EbVPoh','4SRYdea','1285836lyBMLp','dir','-dbc\x27;','checkNpmPackage','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','2382714VqmZHr','dbc','24zZHNhS','server','maka\x20g:dbc\x20azure\x20--type=mssql','installNpmPackage','warn','596348CDLxPa','import\x20\x27./register-','constructor','index.','pgsql','toString','getProjectConfig'];a99c=function(){return p;};return a99c();}
1
+ const a99m=a99d;function a99c(){const p=['20gCUOLw','968770IRisFq','engines','type','better-sqlite3','startup','1148337HDoqCc','server','maka\x20g:dbc\x20geoserver\x20--type=pgsql','tsx','dbc/conn.js','dbc','imports','injectAtEndOfFile','warn','checkNpmPackage','dbc/register-dbc.js','mssql','pathFromApp','withValue','index.','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','apply','dir','653721tHwpcy','register-','installNpmPackage','3122196mDdsxK','(((.+)+)+)+$','import\x20\x27./register-','2097315HOcQvf','pgsql','create','-dbc.','resourceName','config.','2108001QVaGPA','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','toString','sqlite','error','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','template','maka\x20g:dbc\x20todos\x20--type=sqlite','1214584BPyglD','16DXWSeQ','search','maka\x20g:dbc\x20azure\x20--type=mssql','fsi','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','8mkYLRr'];a99c=function(){return p;};return a99c();}(function(a,b){const j=a99d,c=a();while(!![]){try{const d=parseInt(j(0xab))/0x1+-parseInt(j(0xc7))/0x2+parseInt(j(0xb7))/0x3+-parseInt(j(0xc5))/0x4*(parseInt(j(0xb1))/0x5)+parseInt(j(0xae))/0x6+parseInt(j(0xbf))/0x7*(-parseInt(j(0xc0))/0x8)+parseInt(j(0x99))/0x9*(parseInt(j(0xc6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x70b25));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a99d;if(c){const e=c[k(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a[l(0xb9)]()[l(0xc1)](l(0xaf))[l(0xb9)]()['constructor'](a99a)[l(0xc1)]('(((.+)+)+)+$');});a99a();import{camelCase,paramCase,pascalCase}from'change-case';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x95;let f=c[d];return f;},a99d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a99m(0xb3)]({'name':a99m(0x9e),'usage':a99m(0xc4),'shortDesc':a99m(0xbc),'validOpts':[a99m(0x96),a99m(0xaa)],'requiredOpts':[{'name':'type','values':[a99m(0xb2),a99m(0xa4),a99m(0xba)]}],'examples':[a99m(0x9b),a99m(0xc2),a99m(0xbe)]},async function(a,b){const n=a99m;try{const c=await this[n(0xc3)]['getProjectConfig'](),d=this[n(0xc3)][n(0xa5)]({}),f=paramCase(b[n(0xb5)]),g={'name':pascalCase(b[n(0xb5)]),'fileName':paramCase(b[n(0xb5)]),'camelCase':camelCase(b['resourceName']),'type':b[n(0x96)],'engine':c[n(0x95)]['js'],'noRename':!![]};this['fsi'][n(0xa6)](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0x9c)&&(h='ts');b[o(0x96)]==='pgsql'&&!this[o(0xc3)][o(0xa2)]('pg')&&(Log[o(0xa1)](o(0xa8)),await this[o(0xc3)]['installNpmPackage']('pg',{'cwd':d}));b[o(0x96)]===o(0xa4)&&!this[o(0xc3)][o(0xa2)](o(0xa4))&&(Log[o(0xa1)](o(0xb8)),await this[o(0xc3)][o(0xad)](o(0xa4),{'cwd':d}));b[o(0x96)]==='sqlite'&&!this[o(0xc3)][o(0xa2)]('better-sqlite3')&&(Log[o(0xa1)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0xc3)][o(0xad)](o(0x97),{'cwd':d}));await this['fsi'][o(0xbd)]({'srcPath':'dbc/config.js','destPath':this[o(0xc3)][o(0xa5)]({'pathParts':['imports',o(0x98),o(0x9a),o(0x9e),b[o(0xaa)],f,o(0xb6)+h]}),'context':g,'config':c}),await this[o(0xc3)]['template']({'srcPath':o(0x9d),'destPath':this[o(0xc3)][o(0xa5)]({'pathParts':[o(0x9f),o(0x98),o(0x9a),o(0x9e),b[o(0xaa)],f,'conn.'+h]}),'context':g,'config':c}),await this[o(0xc3)][o(0xbd)]({'srcPath':o(0xa3),'destPath':this[o(0xc3)][o(0xa5)]({'pathParts':[o(0x9f),o(0x98),o(0x9a),o(0xac)+f+o(0xb4)+h]}),'context':g,'config':c});const i=this[o(0xc3)][o(0xa5)]({'pathParts':[o(0x9f),o(0x98),o(0x9a),o(0xa7)+c[o(0x95)]['js']]});this[o(0xc3)][o(0xa0)]({'filePath':i,'content':o(0xb0)+f+'-dbc\x27;'});});}catch(h){Log[n(0xbb)](h);}});
@@ -1 +1 @@
1
- const a100h=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0xbd))/0x1+parseInt(f(0xc6))/0x2+-parseInt(f(0xbf))/0x3+parseInt(f(0xd1))/0x4+-parseInt(f(0xd6))/0x5*(parseInt(f(0xbc))/0x6)+-parseInt(f(0xcc))/0x7*(parseInt(f(0xca))/0x8)+-parseInt(f(0xcf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x64184));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[g(0xc8)]()['search'](g(0xce))[g(0xc8)]()['constructor'](a100a)['search']('(((.+)+)+)+$');});a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';function a100c(){const k=['8qMMsfI','getGlobalConfig','1426901TajBiO','app.tar.gz','(((.+)+)+)+$','2487627BrmLdl','withValue','2405012yovlQW','fsi','getProjectConfig','maka\x20{generate,\x20g}:dockerfile','template','5585OkBXSP','dockerfile','Generate\x20an\x20updated\x20dockerfile','534PFJhVM','615304yXvaqD','join','708354McQEXm','appName','findProjectDirectory','service','docker/Dockerfile','error','app','18416Qjwizk','maka\x20g:dockerfile','toString','isFile'];a100c=function(){return k;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xbc;let f=c[d];return f;},a100d(a,b);}Generator['create']({'name':a100h(0xd7),'usage':a100h(0xd4),'shortDesc':a100h(0xd8),'validOpts':[],'noResource':!![],'examples':[a100h(0xc7)]},async function(){const i=a100h;try{const a=await this[i(0xd2)][i(0xd3)](),b=await this['fsi'][i(0xcb)](),c=this[i(0xd2)][i(0xc1)]();this['fsi'][i(0xd0)](a,async()=>{const j=i,d={'app':b[j(0xc0)],'config':a,'appPath':a100e[j(0xbe)](c,j(0xc5)),'bundlePath':a100e['join'](c,'build',j(0xcd)),'useCert':this[j(0xd2)][j(0xc9)](b['cert'])};this['fsi'][j(0xd5)]({'srcPath':j(0xc3),'destPath':a100e[j(0xbe)](c,'Dockerfile'),'framework':j(0xc2),'context':d,'config':a});});}catch(d){Log[i(0xc4)](d);}});
1
+ const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x1f4))/0x1*(parseInt(f(0x1e7))/0x2)+parseInt(f(0x1f5))/0x3*(-parseInt(f(0x1f2))/0x4)+parseInt(f(0x1e2))/0x5*(parseInt(f(0x1e0))/0x6)+parseInt(f(0x1fc))/0x7*(parseInt(f(0x1e4))/0x8)+parseInt(f(0x1fa))/0x9+-parseInt(f(0x1e6))/0xa+-parseInt(f(0x1fb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x3099c));function a100c(){const l=['join','getGlobalConfig','fsi','findProjectDirectory','dockerfile','apply','create','constructor','toString','10624NlMSVp','getProjectConfig','1MLeXLc','57BxItFE','build','maka\x20g:dockerfile','template','search','448803dJrdaf','781044uZwLYJ','415457xxjqJV','cert','(((.+)+)+)+$','withValue','781566zVRzkR','appName','15CjoZsk','app','8hsQhQC','service','3796340iCFdoQ','400338lrCrQR','isFile'];a100c=function(){return l;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a100d(a,b);}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x1f1)]()[h(0x1f9)](h(0x1de))[h(0x1f1)]()[h(0x1f0)](a100a)['search'](h(0x1de));});a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator[a100i(0x1ef)]({'name':a100i(0x1ed),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a100i(0x1f7)]},async function(){const j=a100i;try{const a=await this[j(0x1eb)][j(0x1f3)](),b=await this[j(0x1eb)][j(0x1ea)](),c=this[j(0x1eb)][j(0x1ec)]();this['fsi'][j(0x1df)](a,async()=>{const k=j,d={'app':b[k(0x1e1)],'config':a,'appPath':a100e[k(0x1e9)](c,k(0x1e3)),'bundlePath':a100e[k(0x1e9)](c,k(0x1f6),'app.tar.gz'),'useCert':this[k(0x1eb)][k(0x1e8)](b[k(0x1dd)])};this['fsi'][k(0x1f8)]({'srcPath':'docker/Dockerfile','destPath':a100e[k(0x1e9)](c,'Dockerfile'),'framework':k(0x1e5),'context':d,'config':a});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=parseInt(o(0xbb))/0x1+parseInt(o(0xe4))/0x2*(parseInt(o(0xa0))/0x3)+parseInt(o(0xc9))/0x4*(parseInt(o(0xa2))/0x5)+parseInt(o(0xdd))/0x6+parseInt(o(0xc4))/0x7*(parseInt(o(0xe3))/0x8)+-parseInt(o(0xb3))/0x9+-parseInt(o(0xb4))/0xa*(parseInt(o(0xdb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x40152));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a101d;if(c){const e=c[p(0xc6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a['toString']()[q(0xe0)]('(((.+)+)+)+$')[q(0xa3)]()[q(0xb5)](a101a)[q(0xe0)]('(((.+)+)+)+$');});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x9f;let f=c[d];return f;},a101d(a,b);}a101a();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=['fsi','import\x20\x27','search','rewriteDestinationPathForEngine','engines','8fbpZCb','2gHMUax','setTemplate','client','pathFromApp','installNpmPackage','error','dir','graphql','import\x20\x27./','.js','template/template.css','882399tOjfyb','checkNpmPackage','165eWWVaz','toString','\x20};\x0a','import\x20{\x20','pages','startup','cssCaseName','imports','baseDir','theme','hook','apollo','ssr','@apollo/client\x20isomorphic-fetch','@apollo/client','getProjectConfig','fileName','4275900EZsvlv','641870lilwdK','constructor','relative','withValue','css','resourceName','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','142856dYBUyZ','\x20hook...','test','.app-tests.js','layouts','react','className','none','test/test.js','2550065nVveWT','hooks','apply','injectAtBeginningOfFile','create','51232FfOpEk','assign','withTranslations','/imports/ui/hooks','template','Creating\x20','\x20}\x20from\x20\x27','true','templates.js','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','pathFromProject','hook/hook.js','\x27;\x0a','warn','\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','maka\x20g:hook\x20cool-hook','components','features','132vVaCkX','string','1703268ymBGot'];a101c=function(){return u;};return a101c();}Generator[a101r(0xc8)]({'name':a101r(0xac),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a101r(0xba),'validOpts':[{'name':a101r(0xaa),'values':[a101r(0xc5),a101r(0xd9),a101r(0xa6),a101r(0xbf)]}],'examples':[a101r(0xd8)],'description':a101r(0xd7)},async function(a,b){const s=a101r;Log['notice'](s(0xce)+b[s(0xb9)]+s(0xbc));try{const c=this[s(0xde)][s(0xa1)](s(0xc0));if(!c){Log[s(0xe9)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[s(0xde)][s(0xe7)](b),f=b[s(0xaa)]?'/imports/ui/'+b[s(0xaa)]:s(0xcc),g=this['fsi']['pathFromApp']({'pathParts':[f,b['dir'],paramCase(b[s(0xb9)]),paramCase(b[s(0xb9)])]}),h=await this['fsi'][s(0xb1)]();this['fsi'][s(0xb7)](h,async()=>{const t=s;typeof h[t(0xcd)]['css']===t(0xdc)&&(h[t(0xcd)][t(0xb8)]=h[t(0xcd)][t(0xb8)]===t(0xd0)?!![]:![],this[t(0xde)][t(0xe5)](t(0xb8),h[t(0xcd)][t(0xb8)]));h['engines'][t(0xeb)]===t(0xad)&&!this[t(0xde)][t(0xa1)](t(0xb0))&&(Log[t(0xd6)](t(0xd2)),await this['fsi'][t(0xe8)](t(0xaf),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[t(0xb9)]),'name':pascalCase(b[t(0xb9)]),'graphql':h[t(0xe2)][t(0xeb)],'theme':h[t(0xe2)][t(0xab)],'features':h[t(0xda)],'myPath':a101e[t(0xb6)](this[t(0xde)][t(0xd3)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h['features'][t(0xcb)]};this['fsi'][t(0xcd)]({'srcPath':t(0xd4),'destPath':g+t(0xed),'context':i,'config':h,'framework':t(0xc0)});h[t(0xcd)][t(0xb8)]&&(this[t(0xde)]['template']({'srcPath':t(0x9f),'destPath':g+'.css','context':Object[t(0xca)]({},i,{'className':i[t(0xa8)]}),'config':h}),this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0xe2)]['js'],'content':t(0xec)+i[t(0xb2)]+'.'+h['engines'][t(0xb8)]+'\x27;'}));h[t(0xe2)][t(0xbd)]!==t(0xc2)&&this['fsi'][t(0xcd)]({'srcPath':t(0xc3),'destPath':g+t(0xbe),'framework':'react','context':i,'config':h});const j=b[t(0xea)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0xb2)]+'/'+i[t(0xb2)];let l;if(h[t(0xe2)][t(0xae)]==='true'){const m=this['fsi'][t(0xe7)]({'pathParts':[t(0xa9),t(0xa7),'lib',t(0xd1)]});l=this[t(0xde)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0xde)][t(0xe7)]({'pathParts':[t(0xa9),'startup',t(0xe6),t(0xd1)]});l=this[t(0xde)][t(0xe1)]({'pathParts':[n],'config':h});}h['engines'][t(0xe6)]===t(0xc0)?(h['engines']['js']==='tsx'?this[t(0xde)][t(0xc7)]({'filePath':l,'content':t(0xa5)+i[t(0xc1)]+t(0xcf)+k+t(0xd5)}):this['fsi'][t(0xc7)]({'filePath':l,'content':t(0xa5)+i[t(0xc1)]+'\x20}\x20from\x20\x27'+k+'.'+h[t(0xe2)]['js']+t(0xd5)}),this[t(0xde)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0xa4)})):this[t(0xde)]['injectAtEndOfFile']({'filePath':l,'content':t(0xdf)+k+'.'+h[t(0xe2)]['js']+t(0xd5)});});}catch(i){Log[s(0xe9)](i);}});
1
+ const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=-parseInt(o(0x1d0))/0x1+-parseInt(o(0x1df))/0x2*(parseInt(o(0x1e7))/0x3)+parseInt(o(0x200))/0x4+parseInt(o(0x1ce))/0x5*(parseInt(o(0x1cb))/0x6)+parseInt(o(0x1f2))/0x7+parseInt(o(0x20c))/0x8*(-parseInt(o(0x1c5))/0x9)+-parseInt(o(0x1f7))/0xa*(-parseInt(o(0x1fe))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x6225f));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a101d;if(c){const e=c[p(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a['toString']()[q(0x1f4)](q(0x20b))['toString']()[q(0x1d4)](a101a)[q(0x1f4)](q(0x20b));});a101a();import a101e from'path';function a101c(){const u=['fileName','8265sepJCj','pages','engines','.app-tests.js','className','@apollo/client','lib','\x27;\x0a','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','relative','assign','3580353IEloEK','hooks','search','template/template.css','graphql','549110jaDODc','.css','\x20}\x20from\x20\x27','export\x20{\x20','import\x20{\x20','maka\x20g:hook\x20cool-hook','checkNpmPackage','33cFxUQX','apollo','861684kpIedM','baseDir','injectAtEndOfFile','getProjectConfig','templates.js','css','react','test','imports','features','import\x20\x27./','(((.+)+)+)+$','19224FaozEr','144lhqorn','/imports/ui/hooks','warn','\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','injectAtBeginningOfFile','string','3630vxwIec','dir','\x20};\x0a','4485RzTIIx','resourceName','693560DIeYnb','installNpmPackage','.js','notice','constructor','layouts','test/test.js','fsi','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','apply','create','cssCaseName','rewriteDestinationPathForEngine','pathFromApp','218UrkGDk','components','startup','withValue','template','true','error'];a101c=function(){return u;};return a101c();}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a101d(a,b);}import{UsageError}from'../error.js';Generator[a101r(0x1db)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a101r(0x1ef),'validOpts':[{'name':a101r(0x201),'values':[a101r(0x1f3),a101r(0x1e0),a101r(0x1e8),a101r(0x1d5)]}],'examples':[a101r(0x1fc)],'description':a101r(0x1c8)},async function(a,b){const s=a101r;Log[s(0x1d3)]('Creating\x20'+b[s(0x1cf)]+'\x20hook...');try{const c=this[s(0x1d7)][s(0x1fd)](s(0x206));if(!c){Log[s(0x1e5)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[s(0x1d7)]['pathFromApp'](b),f=b[s(0x201)]?'/imports/ui/'+b[s(0x201)]:s(0x1c6),g=this[s(0x1d7)][s(0x1de)]({'pathParts':[f,b['dir'],paramCase(b['resourceName']),paramCase(b[s(0x1cf)])]}),h=await this['fsi'][s(0x203)]();this[s(0x1d7)][s(0x1e2)](h,async()=>{const t=s;typeof h[t(0x1e3)][t(0x205)]===t(0x1ca)&&(h[t(0x1e3)]['css']=h['template'][t(0x205)]===t(0x1e4)?!![]:![],this[t(0x1d7)]['setTemplate'](t(0x205),h[t(0x1e3)][t(0x205)]));h[t(0x1e9)][t(0x1f6)]===t(0x1ff)&&!this['fsi'][t(0x1fd)](t(0x1ec))&&(Log[t(0x1c7)](t(0x1d9)),await this['fsi'][t(0x1d1)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1cf)]),'camelCaseName':camelCase(b[t(0x1cf)]),'className':pascalCase(b[t(0x1cf)]),'name':pascalCase(b['resourceName']),'graphql':h['engines']['graphql'],'theme':h[t(0x1e9)][t(0x1d8)],'features':h[t(0x209)],'myPath':a101e[t(0x1f0)](this[t(0x1d7)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x1cf)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x209)]['withTranslations']};this[t(0x1d7)]['template']({'srcPath':'hook/hook.js','destPath':g+t(0x1d2),'context':i,'config':h,'framework':t(0x206)});h[t(0x1e3)]['css']&&(this[t(0x1d7)][t(0x1e3)]({'srcPath':t(0x1f5),'destPath':g+t(0x1f8),'context':Object[t(0x1f1)]({},i,{'className':i[t(0x1dc)]}),'config':h}),this[t(0x1d7)][t(0x1c9)]({'filePath':g+'.'+h[t(0x1e9)]['js'],'content':t(0x20a)+i[t(0x1e6)]+'.'+h[t(0x1e9)][t(0x205)]+'\x27;'}));h[t(0x1e9)][t(0x207)]!=='none'&&this[t(0x1d7)][t(0x1e3)]({'srcPath':t(0x1d6),'destPath':g+t(0x1ea),'framework':t(0x206),'context':i,'config':h});const j=b[t(0x1cc)]?'/'+b[t(0x1cc)]+'/':'/',k=''+f+j+i[t(0x1e6)]+'/'+i[t(0x1e6)];let l;if(h[t(0x1e9)]['ssr']===t(0x1e4)){const m=this[t(0x1d7)][t(0x1de)]({'pathParts':[t(0x208),'startup',t(0x1ed),t(0x204)]});l=this[t(0x1d7)][t(0x1dd)]({'pathParts':[m],'config':h});}else{const n=this[t(0x1d7)][t(0x1de)]({'pathParts':['imports',t(0x1e1),'client',t(0x204)]});l=this[t(0x1d7)][t(0x1dd)]({'pathParts':[n],'config':h});}h[t(0x1e9)]['client']===t(0x206)?(h[t(0x1e9)]['js']==='tsx'?this[t(0x1d7)][t(0x1c9)]({'filePath':l,'content':t(0x1fb)+i[t(0x1eb)]+'\x20}\x20from\x20\x27'+k+t(0x1ee)}):this[t(0x1d7)][t(0x1c9)]({'filePath':l,'content':t(0x1fb)+i[t(0x1eb)]+t(0x1f9)+k+'.'+h['engines']['js']+t(0x1ee)}),this[t(0x1d7)][t(0x202)]({'filePath':l,'content':t(0x1fa)+i[t(0x1eb)]+t(0x1cd)})):this[t(0x1d7)][t(0x202)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h[t(0x1e9)]['js']+'\x27;\x0a'});});}catch(i){Log['error'](i);}});
@@ -1 +1 @@
1
- const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x122))/0x1*(parseInt(h(0x11d))/0x2)+-parseInt(h(0x130))/0x3*(parseInt(h(0x126))/0x4)+-parseInt(h(0x12e))/0x5+-parseInt(h(0x11f))/0x6*(parseInt(h(0x11b))/0x7)+parseInt(h(0x123))/0x8+-parseInt(h(0x121))/0x9+parseInt(h(0x132))/0xa*(parseInt(h(0x128))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xce1e0));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a['toString']()[j(0x12b)](j(0x125))[j(0x115)]()[j(0x118)](a102a)['search'](j(0x125));});function a102c(){const n=['18DLVJCc','kit','6MsOXhv','map','12893895ZhQwjx','23737fhPZiN','5065192EujSgZ','create','(((.+)+)+)+$','618632pDkJZW','maka\x20g:k\x20city-map\x20--type=leaflet-map','11ihLPGU','error','apply','search','type','login','1460200OKxFXL','NIE','30oSycPI',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','44981180HmKjPr','indexOf','fsi','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','toString','resourceName','withValue','constructor','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','engines','8605583NWmUTy','(blank)'];a102c=function(){return n;};return a102c();}a102a();import{Generator}from'../generator.js';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x114;let f=c[d];return f;},a102d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x124)]({'name':a102k(0x11e),'aliases':['k'],'usage':a102k(0x119),'shortDesc':a102k(0x114),'validOpts':[a102k(0x12c)],'examples':['maka\x20g:kit\x20--type=map',a102k(0x127)]},async function(a,b){const l=a102k;try{const c=this['fsi']['getProjectConfig']();this[l(0x134)][l(0x117)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x116)]),'type':b[m(0x12c)],'engine':c[m(0x11a)]['js'],'noRename':!![]},f=['leaflet-map',m(0x12d)];if(f[m(0x133)](d['type'])<0x0){const g=d[m(0x12c)]?d[m(0x12c)]:m(0x11c);Log[m(0x129)]('Invalid\x20type\x20'+g+m(0x131));return;}b['type']===m(0x120)&&Log['notice'](m(0x12f)),b[m(0x12c)]==='login'&&Log['notice'](m(0x12f));});}catch(d){Log[l(0x129)](d);}});
1
+ const a102j=a102d;function a102c(){const m=['1NkpgOu','(blank)','NIE','97164kcJZKW','2009515GDSRDM','error','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','kit','(((.+)+)+)+$','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','login','5820177odvsPQ','17645200aaLyVa','1051082eFFkwi','toString',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','notice','maka\x20g:k\x20city-map\x20--type=leaflet-map','create','map','75ssPWFz','6JrPRWf','63zlwloX','constructor','resourceName','type','10164805mroHNI','456648luXhMP','engines','withValue','maka\x20g:kit\x20--type=map','search','leaflet-map','fsi'];a102c=function(){return m;};return a102c();}(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x104))/0x1*(-parseInt(h(0xef))/0x2)+parseInt(h(0xf6))/0x3*(parseInt(h(0xe5))/0x4)+-parseInt(h(0xe6))/0x5+parseInt(h(0xf7))/0x6*(-parseInt(h(0xfc))/0x7)+parseInt(h(0xfd))/0x8*(parseInt(h(0xf8))/0x9)+parseInt(h(0xee))/0xa+parseInt(h(0xed))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xe0d4e));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['toString']()[i(0x101)](i(0xea))[i(0xf0)]()[i(0xf9)](a102a)[i(0x101)]('(((.+)+)+)+$');});function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0xe4;let f=c[d];return f;},a102d(a,b);}a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102j(0xf4)]({'name':a102j(0xe9),'aliases':['k'],'usage':a102j(0xe8),'shortDesc':a102j(0xeb),'validOpts':['type'],'examples':[a102j(0x100),a102j(0xf3)]},async function(a,b){const k=a102j;try{const c=this['fsi']['getProjectConfig']();this[k(0x103)][k(0xff)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0xfa)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[l(0xfa)]),'type':b[l(0xfb)],'engine':c[l(0xfe)]['js'],'noRename':!![]},f=[l(0x102),l(0xec)];if(f['indexOf'](d[l(0xfb)])<0x0){const g=d[l(0xfb)]?d[l(0xfb)]:l(0x105);Log[l(0xe7)]('Invalid\x20type\x20'+g+l(0xf1));return;}b[l(0xfb)]===l(0xf5)&&Log[l(0xf2)](l(0xe4)),b[l(0xfb)]===l(0xec)&&Log[l(0xf2)]('NIE');});}catch(d){Log[k(0xe7)](d);}});
@@ -1 +1 @@
1
- const a103r=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0xae))/0x1+parseInt(o(0xb0))/0x2*(-parseInt(o(0x8f))/0x3)+-parseInt(o(0x86))/0x4+-parseInt(o(0xa3))/0x5+parseInt(o(0xb4))/0x6*(-parseInt(o(0xb6))/0x7)+parseInt(o(0x97))/0x8+parseInt(o(0x80))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x232db));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a['toString']()[q(0x92)](q(0x93))[q(0x94)]()[q(0xb3)](a103a)[q(0x92)](q(0x93));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const u=['(((.+)+)+)+$','toString','ramda','setTemplate','759704XzCUjq','\x20}\x20from\x20\x27','rewriteDestinationPathForEngine','relative','withHook','pathFromProject','features','\x20};\x0a','split','react','import\x20{\x20','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','846315IeNLfA','\x27;\x0a','graphql','template/template.css','.css','component/component.js','startup','findAppDirectory','.app-tests.js','css','ssr','216864hQVoOa','withValue','2mWbMyD','template','className','constructor','760014RMsjcQ','withTranslations','7rNyujM','checkNpmPackage','imports','.js','create','installNpmPackage','maka\x20g:l\x20web/safari','pathFromApp','import\x20\x27','apply','api','test','injectAtEndOfFile','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','tsx','fsi','fileName','3990888KQnRgb','maka\x20g:layout\x20mobile/iPhone8','warn','assign','test/test.js','true','574716geZqAT','resourceName','engines','lib','import\x20\x27./','injectAtBeginningOfFile','none','layout','string','514671rartcs','client','dir','search'];a103c=function(){return u;};return a103c();}import{camelCase,paramCase,pascalCase}from'change-case';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x7b;let f=c[d];return f;},a103d(a,b);}const aliases=['l'];Generator[a103r(0xba)]({'name':a103r(0x8d),'aliases':aliases,'usage':a103r(0xa2),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a103r(0x81),a103r(0xbc)]},function(a,b){const s=a103r,c='/imports/ui/layouts',d=this[s(0x7e)][s(0xaa)](),e=this[s(0x7e)]['pathFromApp']({'pathParts':[c,b[s(0x91)],paramCase(b['resourceName']),paramCase(b[s(0x87)])]}),f=this[s(0x7e)]['getProjectConfig']();this['fsi'][s(0xaf)](f,()=>{const t=s;typeof f[t(0xb1)]['test']===t(0x8e)&&(f['template'][t(0xc1)]=f[t(0xb1)]['test']===t(0x85)?!![]:![],this[t(0x7e)][t(0x96)](t(0xc1),f[t(0xb1)]['test']));typeof f[t(0xb1)][t(0xac)]===t(0x8e)&&(f['template']['css']=f[t(0xb1)]['css']===t(0x85)?!![]:![],this['fsi'][t(0x96)](t(0xac),f[t(0xb1)][t(0xac)]));typeof f['template']['js']===t(0x8e)&&(f['template']['js']=f[t(0xb1)]['js']===t(0x85)?!![]:![],this['fsi'][t(0x96)]('js',f['template']['js']));!f[t(0x9d)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x9f)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0xb7)]('ramda')&&(Log[t(0x82)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x7e)][t(0xbb)](t(0x95),{'cwd':d}));if(h&&!this[t(0xb7)](t(0xa0))){Log[t(0x82)](t(0x7c));return;}const i={'name':pascalCase(b[t(0x87)]),'myPath':a103e[t(0x9a)](this['fsi'][t(0x9c)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x87)]),'camelCaseName':camelCase(b[t(0x87)]),'fileName':paramCase(b[t(0x87)]),'graphql':f['engines'][t(0xa5)],'features':f['features'],'client':f['engines'][t(0x90)],'api':f['engines'][t(0xc0)],'ssr':f['engines'][t(0xad)],'test':f[t(0x88)]['test'],'theme':f[t(0x88)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x9d)][t(0xb5)]};f['features']?.['withHooks']||b[t(0x9b)]?this[t(0x7e)][t(0xb1)]({'srcPath':'hook/hook.js','destPath':e+t(0xb9),'framework':t(0xa0),'context':i,'config':f}):this[t(0x7e)][t(0xb1)]({'srcPath':t(0xa8),'destPath':e+t(0xb9),'framework':t(0xa0),'context':i,'config':f});f['engines'][t(0xc1)]!==t(0x8c)&&this[t(0x7e)][t(0xb1)]({'srcPath':t(0x84),'destPath':e+t(0xab),'framework':'react','context':i,'config':f});f['template']['css']&&(this[t(0x7e)][t(0xb1)]({'srcPath':t(0xa6),'destPath':e+t(0xa7),'context':Object[t(0x83)]({},i,{'className':paramCase(b[t(0x87)])}),'config':f}),this[t(0x7e)][t(0x8b)]({'filePath':e+'.'+f[t(0x88)]['js'],'content':t(0x8a)+i[t(0x7f)]+'.'+f['engines']['css']+'\x27;'}));const j=b[t(0x91)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x7f)]+'/'+i[t(0x7f)];let l;if(f[t(0x88)][t(0xad)]===t(0x85)){const m=this[t(0x7e)][t(0xbd)]({'pathParts':[t(0xb8),t(0xa9),t(0x89),'templates.js']});l=this[t(0x7e)][t(0x99)]({'pathParts':[m],'config':f});}else{const n=this[t(0x7e)][t(0xbd)]({'pathParts':[t(0xb8),'startup',t(0x90),'templates.js']});l=this[t(0x7e)][t(0x99)]({'pathParts':[n],'config':f});}f['engines'][t(0x90)]===t(0xa0)?(f[t(0x88)]['js']===t(0x7d)?this[t(0x7e)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0xa1)+i['className']+t(0x98)+k+t(0xa4)}):this[t(0x7e)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0xb2)]+t(0x98)+k+'.'+f['engines']['js']+'\x27;\x0a'}),this[t(0x7e)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0xb2)]+t(0x9e)})):this['fsi'][t(0x7b)]({'filePath':l,'content':t(0xbe)+k+'.'+f['engines']['js']+t(0xa4)});});});
1
+ const a103r=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=-parseInt(o(0x1a6))/0x1+-parseInt(o(0x18f))/0x2+-parseInt(o(0x1a1))/0x3+parseInt(o(0x1a4))/0x4+-parseInt(o(0x177))/0x5*(parseInt(o(0x188))/0x6)+-parseInt(o(0x17e))/0x7+parseInt(o(0x191))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xd5fcb));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a[q(0x1af)]()[q(0x1a7)](q(0x193))[q(0x1af)]()[q(0x1ac)](a103a)[q(0x1a7)](q(0x193));});a103a();function a103c(){const u=['create','className','.app-tests.js','checkNpmPackage','react','injectAtEndOfFile','theme','Scaffolding\x20for\x20a\x20React\x20Layout.','fsi','client','1180engUun','test','lib','api','imports','resourceName','withHook','248752tqWbVa','withValue','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','component/component.js','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.js','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','css','import\x20\x27./','import\x20\x27','33024BMciSD','layout','dir','\x27;\x0a','includes','/imports/ui/layouts','features','1874456fLhxHz','.css','31249512NKrolf','templates.js','(((.+)+)+)+$','engines','findAppDirectory','\x20};\x0a','graphql','startup','true','warn','setTemplate','rewriteDestinationPathForEngine','hook/hook.js','getProjectConfig','template','import\x20{\x20','2403864jkTxnZ','ramda','withTranslations','4104896zHTHeS','apply','982926REySjc','search','none','maka\x20g:l\x20web/safari','withHooks','string','constructor','pathFromApp','test/test.js','toString','fileName','pathFromProject'];a103c=function(){return u;};return a103c();}import a103e from'path';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x172;let f=c[d];return f;},a103d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a103r(0x1b2)]({'name':a103r(0x189),'aliases':aliases,'usage':a103r(0x180),'shortDesc':a103r(0x174),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8',a103r(0x1a9)]},function(a,b){const s=a103r,c=s(0x18d),d=this[s(0x175)][s(0x195)](),e=this[s(0x175)][s(0x1ad)]({'pathParts':[c,b[s(0x18a)],paramCase(b[s(0x17c)]),paramCase(b[s(0x17c)])]}),f=this[s(0x175)][s(0x19e)]();this[s(0x175)][s(0x17f)](f,()=>{const t=s;typeof f['template'][t(0x178)]===t(0x1ab)&&(f[t(0x19f)][t(0x178)]=f[t(0x19f)][t(0x178)]===t(0x199)?!![]:![],this['fsi'][t(0x19b)](t(0x178),f[t(0x19f)][t(0x178)]));typeof f[t(0x19f)][t(0x185)]===t(0x1ab)&&(f['template'][t(0x185)]=f[t(0x19f)]['css']===t(0x199)?!![]:![],this['fsi'][t(0x19b)](t(0x185),f[t(0x19f)][t(0x185)]));typeof f[t(0x19f)]['js']===t(0x1ab)&&(f[t(0x19f)]['js']=f[t(0x19f)]['js']==='true'?!![]:![],this[t(0x175)][t(0x19b)]('js',f[t(0x19f)]['js']));!f[t(0x18e)]&&(f[t(0x18e)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x18c)](g);h&&!this[t(0x1b5)](t(0x1a2))&&(Log[t(0x19a)](t(0x182)),this[t(0x175)]['installNpmPackage'](t(0x1a2),{'cwd':d}));if(h&&!this[t(0x1b5)](t(0x1b6))){Log[t(0x19a)](t(0x184));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a103e['relative'](this[t(0x175)][t(0x1b1)]({}),e),'cssCaseName':paramCase(b[t(0x17c)]),'className':pascalCase(b[t(0x17c)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x194)][t(0x197)],'features':f[t(0x18e)],'client':f[t(0x194)][t(0x176)],'api':f[t(0x194)][t(0x17a)],'ssr':f[t(0x194)]['ssr'],'test':f[t(0x194)][t(0x178)],'theme':f[t(0x194)][t(0x173)],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][t(0x1a3)]};f['features']?.[t(0x1aa)]||b[t(0x17d)]?this[t(0x175)]['template']({'srcPath':t(0x19d),'destPath':e+t(0x183),'framework':t(0x1b6),'context':i,'config':f}):this[t(0x175)][t(0x19f)]({'srcPath':t(0x181),'destPath':e+t(0x183),'framework':t(0x1b6),'context':i,'config':f});f[t(0x194)]['test']!==t(0x1a8)&&this[t(0x175)][t(0x19f)]({'srcPath':t(0x1ae),'destPath':e+t(0x1b4),'framework':t(0x1b6),'context':i,'config':f});f['template']['css']&&(this[t(0x175)][t(0x19f)]({'srcPath':'template/template.css','destPath':e+t(0x190),'context':Object['assign']({},i,{'className':paramCase(b[t(0x17c)])}),'config':f}),this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x194)]['js'],'content':t(0x186)+i['fileName']+'.'+f[t(0x194)][t(0x185)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x18a)]+'/':'/',k=''+c+j+i[t(0x1b0)]+'/'+i['fileName'];let l;if(f[t(0x194)]['ssr']===t(0x199)){const m=this[t(0x175)][t(0x1ad)]({'pathParts':[t(0x17b),t(0x198),t(0x179),t(0x192)]});l=this[t(0x175)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0x175)][t(0x1ad)]({'pathParts':[t(0x17b),t(0x198),t(0x176),'templates.js']});l=this['fsi'][t(0x19c)]({'pathParts':[n],'config':f});}f[t(0x194)][t(0x176)]===t(0x1b6)?(f['engines']['js']==='tsx'?this['fsi']['injectAtBeginningOfFile']({'filePath':l,'content':t(0x1a0)+i['className']+'\x20}\x20from\x20\x27'+k+t(0x18b)}):this[t(0x175)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x1a0)+i[t(0x1b3)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x194)]['js']+t(0x18b)}),this[t(0x175)][t(0x172)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x1b3)]+t(0x196)})):this['fsi'][t(0x172)]({'filePath':l,'content':t(0x187)+k+'.'+f[t(0x194)]['js']+t(0x18b)});});});
@@ -1 +1 @@
1
- const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x7c))/0x1*(-parseInt(f(0x6d))/0x2)+-parseInt(f(0x79))/0x3+parseInt(f(0x6b))/0x4+-parseInt(f(0x73))/0x5*(parseInt(f(0x7b))/0x6)+-parseInt(f(0x78))/0x7*(parseInt(f(0x7f))/0x8)+parseInt(f(0x75))/0x9*(-parseInt(f(0x6e))/0xa)+-parseInt(f(0x6c))/0xb*(-parseInt(f(0x76))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x68b2d));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x70)]()[h(0x80)](h(0x74))['toString']()[h(0x7e)](a104a)['search'](h(0x74));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x6b;let f=c[d];return f;},a104d(a,b);}a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x7d),'shortDesc':a104i(0x7a),'validOpts':[],'description':a104i(0x72),'usage':a104i(0x71),'examples':['maka\x20generate:api\x20Trucks',a104i(0x6f)]},function(){return null;});function a104c(){const j=['885665FIKymV','685028OCOUrH','10JBjzKw','maka\x20g:hook\x20cool-hook','toString','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','\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','5AuMlMR','(((.+)+)+)+$','7076061GBFFfx','372xKxmLW','apply','3605hOobJn','1747038zAhNxm','Maka!','1575492fVYmdn','1OOJIpI','maka','constructor','12848OwCGDw','search','2934564QiVIDR'];a104c=function(){return j;};return a104c();}export default MakaGen;
1
+ function a104c(){const j=['286XQJzym','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','40sJTUDz','109510vnavAS','maka\x20g:hook\x20cool-hook','(((.+)+)+)+$','16gLTaHN','2264985jvwDSn','maka','search','283444uFLMWN','235322zVOmCx','constructor','apply','1271870NmUoHO','2WXeMso','\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','259449ofksDW','738438VpyAPL','Maka!','toString'];a104c=function(){return j;};return a104c();}const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x1f8))/0x1*(parseInt(f(0x1f4))/0x2)+-parseInt(f(0x1fa))/0x3*(-parseInt(f(0x1ef))/0x4)+parseInt(f(0x1f7))/0x5+parseInt(f(0x1fb))/0x6+-parseInt(f(0x1f3))/0x7*(parseInt(f(0x200))/0x8)+parseInt(f(0x1f0))/0x9+parseInt(f(0x201))/0xa*(-parseInt(f(0x1fe))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x3da78));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1fd)]()[h(0x1f2)](h(0x203))['toString']()[h(0x1f5)](a104a)[h(0x1f2)](h(0x203));});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x1f1),'shortDesc':a104i(0x1fc),'validOpts':[],'description':a104i(0x1f9),'usage':a104i(0x1ff),'examples':['maka\x20generate:api\x20Trucks',a104i(0x202)]},function(){return null;});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a104d(a,b);}export default MakaGen;
@@ -1 +1 @@
1
- const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x172))/0x1*(parseInt(k(0x176))/0x2)+-parseInt(k(0x165))/0x3*(parseInt(k(0x177))/0x4)+parseInt(k(0x15f))/0x5+-parseInt(k(0x15e))/0x6+-parseInt(k(0x173))/0x7*(parseInt(k(0x17d))/0x8)+parseInt(k(0x175))/0x9+parseInt(k(0x157))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xbf836));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a['toString']()['search'](m(0x17a))[m(0x16d)]()[m(0x16c)](a105a)['search'](m(0x17a));});a105a();function a105c(){const q=['fsi','withValue','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','method/method.js','appPathPrefix','constructor','toString','resourceName','create','engines','checkMeteorPackage','39yjsHCw','350742RdPaEO','injectAtEndOfFile','10087785jHXGnu','62506KcjkGQ','8RkuIJx','-rpc-method.','check','(((.+)+)+)+$','getProjectConfig','import\x20\x27./methods','104CQSWBR','tsx','20373780SxRQYj','dir','-rpc-method\x27;','apply','imports','warn','error','5604210maODAe','7760295sjlgYr','startup','check\x20ddp-rate-limiter\x20mdg:validated-method','pathFromApp','index.','method','1682376LWeUTm','methods'];a105c=function(){return q;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x156;let f=c[d];return f;},a105d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0x16f)]({'name':a105n(0x164),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a105n(0x158)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a105n;try{const c=this[o(0x167)][o(0x17b)]();this['fsi'][o(0x168)](c,async()=>{const p=o,d=paramCase(b[p(0x16e)]),f={'name':b[p(0x16e)],'fileName':d,'className':pascalCase(b[p(0x16e)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x170)]['js']===p(0x156)&&(g='ts');const h=this[p(0x167)][p(0x162)]({});(!this[p(0x167)][p(0x171)](p(0x179))||!this['fsi'][p(0x171)]('ddp-rate-limiter')||!this['fsi'][p(0x171)]('mdg:validated-method'))&&(Log[p(0x15c)](p(0x169)),this[p(0x167)]['installMeteorPackage'](p(0x161),{'cwd':h}));this[p(0x167)]['template']({'srcPath':p(0x16a),'destPath':this['fsi'][p(0x162)]({'pathParts':[p(0x15b),p(0x160),b['appPathPrefix'],p(0x166),b[p(0x158)],d+p(0x178)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b[p(0x158)]+'/':'/',j=this[p(0x167)][p(0x162)]({'pathParts':[p(0x15b),p(0x160),b[p(0x16b)],p(0x163)+c[p(0x170)]['js']]});this[p(0x167)][p(0x174)]({'filePath':j,'content':p(0x17c)+i+d+p(0x159)});});}catch(d){Log[o(0x15d)](d);}});
1
+ const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x116))/0x1+parseInt(k(0x120))/0x2*(parseInt(k(0x12b))/0x3)+-parseInt(k(0x12a))/0x4+parseInt(k(0x12f))/0x5*(-parseInt(k(0x118))/0x6)+parseInt(k(0x12d))/0x7*(-parseInt(k(0x11f))/0x8)+-parseInt(k(0x10e))/0x9*(-parseInt(k(0x109))/0xa)+parseInt(k(0x12c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x8052a));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x129)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x10f)]()[m(0x128)](m(0x12e))[m(0x10f)]()[m(0x126)](a105a)[m(0x128)](m(0x12e));});a105a();function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x108;let f=c[d];return f;},a105d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a105c(){const q=['installMeteorPackage','maka\x20g:method\x20todos','methods','injectAtEndOfFile','-rpc-method\x27;','862352DuaTTX','2cbbIgO','engines','pathFromApp','startup','warn','-rpc-method.','constructor','template','search','apply','3494940gRXVNN','1682826MBjEkq','25887609loppVs','42IdGoqy','(((.+)+)+)+$','4135985NvyENr','dir','checkMeteorPackage','mdg:validated-method','fsi','16320ZBGDOX','ddp-rate-limiter','resourceName','check\x20ddp-rate-limiter\x20mdg:validated-method','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','1395DcwxRf','toString','getProjectConfig','import\x20\x27./methods','withValue','tsx','check','error','294015NxIfhI','appPathPrefix','6RiPgJn','imports'];a105c=function(){return q;};return a105c();}Generator['create']({'name':'method','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a105n(0x10d),'validOpts':[a105n(0x130)],'examples':[a105n(0x11b)]},function(a,b){const o=a105n;try{const c=this[o(0x108)][o(0x110)]();this['fsi'][o(0x112)](c,async()=>{const p=o,d=paramCase(b[p(0x10b)]),f={'name':b[p(0x10b)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[p(0x10b)]),'noRename':!![]};let g='js';c[p(0x121)]['js']===p(0x113)&&(g='ts');const h=this[p(0x108)][p(0x122)]({});(!this['fsi']['checkMeteorPackage'](p(0x114))||!this[p(0x108)]['checkMeteorPackage'](p(0x10a))||!this[p(0x108)][p(0x131)](p(0x132)))&&(Log[p(0x124)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0x108)][p(0x11a)](p(0x10c),{'cwd':h}));this['fsi'][p(0x127)]({'srcPath':'method/method.js','destPath':this[p(0x108)][p(0x122)]({'pathParts':[p(0x119),p(0x123),b[p(0x117)],p(0x11c),b[p(0x130)],d+p(0x125)+g]}),'context':f,'config':c});const i=b[p(0x130)]?'/'+b[p(0x130)]+'/':'/',j=this['fsi'][p(0x122)]({'pathParts':['imports',p(0x123),b[p(0x117)],'index.'+c[p(0x121)]['js']]});this[p(0x108)][p(0x11d)]({'filePath':j,'content':p(0x111)+i+d+p(0x11e)});});}catch(d){Log[o(0x115)](d);}});
@@ -1 +1 @@
1
- const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0x1f5))/0x1*(-parseInt(l(0x213))/0x2)+parseInt(l(0x201))/0x3*(-parseInt(l(0x21f))/0x4)+-parseInt(l(0x209))/0x5*(parseInt(l(0x1f4))/0x6)+-parseInt(l(0x206))/0x7+-parseInt(l(0x1f7))/0x8*(parseInt(l(0x21e))/0x9)+-parseInt(l(0x21d))/0xa*(parseInt(l(0x1fe))/0xb)+parseInt(l(0x208))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xe1b4a));function a106c(){const s=['hasOwnProperty','getProjectConfig','228MbwTtw','apply','(((.+)+)+)+$','template','toString','9494485KcIvKc','search','106745964ctPBjM','5wKaOFy','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','engines','lib','package','resourceName','package/package.js','graphql','package.js','theme','2SdVHef','.js','constructor','dir','package/','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','tests/server','pathFromAppWithNoReWrite','client','maka\x20g:package\x20todos:package','374910bKwrgc','16495452zDEsmx','61668wKTxTJ','4292508fhlsLS','1057655mfCLWZ','create','8trtDRn','store','withValue','features','relative','tests/client','fsi','539cZmPqp'];a106c=function(){return s;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x202)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x205)]()[n(0x207)]('(((.+)+)+)+$')[n(0x205)]()[n(0x215)](a106a)['search'](n(0x203));});a106a();import a106e from'path';import{Generator}from'../generator.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106o(0x1f6)]({'name':a106o(0x20d),'aliases':['p'],'usage':a106o(0x218),'shortDesc':a106o(0x20a),'validOpts':[a106o(0x216)],'examples':[a106o(0x21c)]},async function(a,b){const p=a106o,c=paramCase(b[p(0x20e)]),d=this[p(0x1fd)]['pathFromApp']({'pathParts':['packages',b[p(0x216)],c]}),e=this[p(0x1fd)][p(0x21a)]({'pathParts':['packages',b['dir'],c,p(0x211)]}),f=this['fsi'][p(0x200)]();this[p(0x1fd)][p(0x1f9)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x20e)]),'myPath':a106e[q(0x1fb)](this[q(0x1fd)]['pathFromProject']({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x20e)]),'camelCaseName':camelCase(b[q(0x20e)]),'fileName':c,'client':f[q(0x20b)][q(0x21b)],'graphql':f[q(0x20b)][q(0x210)],'ssr':f['engines']['ssr'],'isComponent':b[q(0x1ff)]('component'),'isLayout':b[q(0x1ff)]('layout'),'isStore':b[q(0x1ff)](q(0x1f8)),'features':f[q(0x1fa)],'noRename':!![],'theme':f[q(0x20b)][q(0x212)]};this[q(0x1fd)][q(0x204)]({'srcPath':q(0x20f),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+'/client/'+c+q(0x214);this['fsi'][q(0x204)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0x20c),'server',q(0x1fc),q(0x219)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x214);this[r(0x1fd)]['template']({'srcPath':r(0x217)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
1
+ function a106c(){const s=['engines','constructor','theme','3bkTZac','pathFromApp','noRename','6470wXefxK','/package.js','1rFNWoY','dir','ssr','package/package.js','store','4588396AIHCLA','template/template.js','lib','pathFromAppWithNoReWrite','apply','graphql','.js','package.js','3262440EjPJZh','26116332mIvHlr','pathFromProject','/client/','toString','resourceName','10sNJeGv','1844726cFOEBm','component','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','getProjectConfig','layout','fsi','features','hasOwnProperty','5828543AynLkm','1194XaiymM','template','packages','673263AHkhxD','client','search','relative'];a106c=function(){return s;};return a106c();}function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xdc;let f=c[d];return f;},a106d(a,b);}const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0x105))/0x1*(parseInt(l(0xed))/0x2)+parseInt(l(0x100))/0x3*(parseInt(l(0xde))/0x4)+parseInt(l(0x103))/0x5*(-parseInt(l(0xf6))/0x6)+parseInt(l(0xf5))/0x7+parseInt(l(0xe6))/0x8+parseInt(l(0xf9))/0x9*(-parseInt(l(0xec))/0xa)+-parseInt(l(0xe7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x934ff));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0xea)]()[n(0xfb)]('(((.+)+)+)+$')[n(0xea)]()[n(0xfe)](a106a)['search']('(((.+)+)+)+$');});a106a();import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a106o(0xef),'validOpts':[a106o(0x106)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a106o,c=paramCase(b[p(0xeb)]),d=this['fsi'][p(0x101)]({'pathParts':[p(0xf8),b[p(0x106)],c]}),e=this[p(0xf2)][p(0xe1)]({'pathParts':['packages',b[p(0x106)],c,p(0xe5)]}),f=this[p(0xf2)][p(0xf0)]();this[p(0xf2)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0xeb)]),'myPath':a106e[q(0xfc)](this[q(0xf2)][q(0xe8)]({}),d),'cssCaseName':paramCase(b[q(0xeb)]),'className':pascalCase(b[q(0xeb)]),'camelCaseName':camelCase(b[q(0xeb)]),'fileName':c,'client':f[q(0xfd)][q(0xfa)],'graphql':f[q(0xfd)][q(0xe3)],'ssr':f[q(0xfd)][q(0x107)],'isComponent':b[q(0xf4)](q(0xee)),'isLayout':b[q(0xf4)](q(0xf1)),'isStore':b[q(0xf4)](q(0xdd)),'features':f[q(0xf3)],'noRename':!![],'theme':f['engines'][q(0xff)]};this[q(0xf2)][q(0xf7)]({'srcPath':q(0xdc),'destPath':e,'context':g,'config':f}),g[q(0x102)]=![];const h=d+q(0xe9)+c+'.js';this[q(0xf2)]['template']({'srcPath':q(0xdf),'destPath':h,'context':g,'config':f});const i=[q(0xe0),'server','tests/client','tests/server'];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xe4);this[r(0xf2)][r(0xf7)]({'srcPath':'package/'+j+r(0x104),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a107p=a107d;(function(a,b){const m=a107d,c=a();while(!![]){try{const d=-parseInt(m(0x1bd))/0x1*(-parseInt(m(0x198))/0x2)+parseInt(m(0x1a9))/0x3*(parseInt(m(0x1d8))/0x4)+-parseInt(m(0x1cb))/0x5*(-parseInt(m(0x183))/0x6)+-parseInt(m(0x1c2))/0x7+-parseInt(m(0x1ba))/0x8*(parseInt(m(0x1d1))/0x9)+parseInt(m(0x1ab))/0xa*(-parseInt(m(0x1cc))/0xb)+parseInt(m(0x1ae))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x377ad));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a107d;if(c){const e=c[n(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const o=a107d;return a107a['toString']()[o(0x187)](o(0x1cf))[o(0x1c5)]()[o(0x199)](a107a)[o(0x187)]('(((.+)+)+)+$');});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x183;let f=c[d];return f;},a107d(a,b);}a107a();import a107e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a107c(){const s=['resourceName','test/test.js','withTranslations','relative','5cELYBS','652399FNeJng','engines','pathFromApp','(((.+)+)+)+$','react','1073988cgszSa','injectAtEndOfFile','store','Generate\x20a\x20page.','create','true','.js','1748BfetfP','499740uxSOYt','features','export\x20{\x20','.html','search','hook/hook.js','/imports/ui/','/imports/ui/pages','client','pathFromProject','test','template/template.html','template/template.css','maka\x20g:page\x20todos/todos-item','imports','ramda','vanilla','hooks','baseDir','apply','component','68sXGunG','constructor','html','css','fileName','api','dir','graphql','lib','fsi','\x27;\x0a','tsx','warn','import\x20\x27./','installNpmPackage','withHook','rewriteDestinationPathForEngine','597CQjJDL','theme','70PbFceb','Updating\x20npm\x20packages\x20...','none','10157520MhAaby','layout','import\x20\x27','checkNpmPackage','pages','template','setTemplate','root','string','hasOwnProperty','page','ssr','24apMLRa','injectAtBeginningOfFile','templates.js','10828BRSGJU','className','import\x20{\x20','layouts','\x20}\x20from\x20\x27','2691227wmwrWN','assign','withValue','toString','.app-tests.js'];a107c=function(){return s;};return a107c();}const aliases=['p'];Generator[a107p(0x1d5)]({'name':a107p(0x1b8),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a107p(0x1d4),'validOpts':[{'name':a107p(0x195),'values':[a107p(0x194),'components',a107p(0x1b2),a107p(0x1c0)]},{'name':a107p(0x1a7),'boolFlag':!![]}],'examples':[a107p(0x190)]},function(a,b){const q=a107p,c=b['baseDir']?q(0x189)+b['baseDir']:q(0x18a),d=this[q(0x1a1)][q(0x1ce)](b),e=this['fsi'][q(0x1ce)]({'pathParts':[c,b[q(0x19e)],paramCase(b[q(0x1c7)]),paramCase(b[q(0x1c7)])]}),f=this[q(0x1a1)]['getProjectConfig']();this[q(0x1a1)][q(0x1c4)](f,()=>{const r=q;typeof f['template'][r(0x19a)]==='string'&&(f[r(0x1b3)][r(0x19a)]=f[r(0x1b3)][r(0x19a)]==='true'?!![]:![],this[r(0x1a1)][r(0x1b4)](r(0x19a),f[r(0x1b3)][r(0x19a)]));typeof f['template']['test']===r(0x1b6)&&(f['template'][r(0x18d)]=f[r(0x1b3)][r(0x18d)]===r(0x1d6)?!![]:![],this[r(0x1a1)][r(0x1b4)](r(0x18d),f[r(0x1b3)]['test']));typeof f[r(0x1b3)]['css']===r(0x1b6)&&(f['template'][r(0x19b)]=f['template'][r(0x19b)]==='true'?!![]:![],this['fsi'][r(0x1b4)](r(0x19b),f[r(0x1b3)][r(0x19b)]));typeof f[r(0x1b3)]['js']===r(0x1b6)&&(f[r(0x1b3)]['js']=f[r(0x1b3)]['js']===r(0x1d6)?!![]:![],this['fsi']['setTemplate']('js',f[r(0x1b3)]['js']));!f[r(0x184)]&&(f[r(0x184)]={});!b[r(0x1b5)]&&!this[r(0x1a1)][r(0x1b1)]('ramda')&&(Log[r(0x1a4)](r(0x1ac)),this[r(0x1a1)][r(0x1a6)](r(0x192),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a107e[r(0x1ca)](this[r(0x1a1)][r(0x18c)]({}),e),'cssCaseName':paramCase(b[r(0x1c7)]),'className':pascalCase(b[r(0x1c7)]),'camelCaseName':camelCase(b[r(0x1c7)]),'fileName':paramCase(b['resourceName']),'graphql':f[r(0x1cd)][r(0x19f)],'features':f[r(0x184)],'client':f[r(0x1cd)][r(0x18b)],'api':f[r(0x1cd)][r(0x19d)],'ssr':f[r(0x1cd)][r(0x1b9)],'isStore':b[r(0x1b7)](r(0x1d3)),'isComponent':b[r(0x1b7)](r(0x197)),'isLayout':b[r(0x1b7)](r(0x1af)),'withTranslations':f[r(0x184)][r(0x1c9)],'test':f[r(0x1cd)][r(0x18d)],'theme':f[r(0x1cd)][r(0x1aa)]};f[r(0x1b3)][r(0x19a)]&&this[r(0x1a1)]['template']({'srcPath':r(0x18e),'destPath':e+r(0x186),'context':g,'config':f});f[r(0x184)]?.['withHooks']||b['withHook']?this[r(0x1a1)][r(0x1b3)]({'srcPath':r(0x188),'destPath':e+'.js','framework':'react','context':g,'config':f}):this[r(0x1a1)][r(0x1b3)]({'srcPath':'component/component.js','destPath':e+r(0x1d7),'framework':'react','context':g,'config':f});f[r(0x1cd)][r(0x18d)]!==r(0x1ad)&&this[r(0x1a1)][r(0x1b3)]({'srcPath':r(0x1c8),'destPath':e+r(0x1c6),'framework':r(0x1d0),'context':g,'config':f});f['template'][r(0x19b)]&&this['fsi'][r(0x1b3)]({'srcPath':r(0x18f),'destPath':e+'.css','context':Object[r(0x1c3)]({},g,{'className':paramCase(b[r(0x1c7)])}),'config':f});f[r(0x1cd)][r(0x18b)]!==r(0x1d0)&&f[r(0x1cd)][r(0x18b)]!==r(0x193)?(f[r(0x1b3)]['css']&&this[r(0x1a1)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x1cd)]['js'],'content':r(0x1a5)+g[r(0x19c)]+'.'+f[r(0x1cd)][r(0x19a)]+r(0x1a2)+r(0x1a5)+g[r(0x19c)]+'.'+f[r(0x1cd)][r(0x19b)]+'\x27;'}),!f['template'][r(0x19b)]&&this[r(0x1a1)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x1cd)]['js'],'content':r(0x1a5)+g['fileName']+'.'+f['engines'][r(0x19a)]+'\x27;'})):f['template'][r(0x19b)]&&this['fsi'][r(0x1bb)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x1a5)+g['fileName']+'.'+f['engines'][r(0x19b)]+'\x27;'});const h=b['dir']?'/'+b[r(0x19e)]+'/':'/',i=''+c+h+g[r(0x19c)]+'/'+g[r(0x19c)];let j;if(f[r(0x1cd)]['ssr']===r(0x1d6)){const k=this[r(0x1a1)][r(0x1ce)]({'pathParts':[r(0x191),'startup',r(0x1a0),'templates.js']});j=this[r(0x1a1)][r(0x1a8)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][r(0x1ce)]({'pathParts':['imports','startup',r(0x18b),r(0x1bc)]});j=this[r(0x1a1)][r(0x1a8)]({'pathParts':[l],'config':f});}f['engines']['client']===r(0x1d0)?(f[r(0x1cd)]['js']===r(0x1a3)?this[r(0x1a1)][r(0x1bb)]({'filePath':j,'content':r(0x1bf)+g[r(0x1be)]+r(0x1c1)+i+'\x27;\x0a'}):this['fsi'][r(0x1bb)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x1be)]+r(0x1c1)+i+'.'+f['engines']['js']+r(0x1a2)}),this[r(0x1a1)]['injectAtEndOfFile']({'filePath':j,'content':r(0x185)+g[r(0x1be)]+'\x20};\x0a'})):this[r(0x1a1)][r(0x1d2)]({'filePath':j,'content':r(0x1b0)+i+'.'+f['engines']['js']+r(0x1a2)});});});
1
+ function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x17e;let f=c[d];return f;},a107d(a,b);}const a107p=a107d;(function(a,b){const m=a107d,c=a();while(!![]){try{const d=parseInt(m(0x1a3))/0x1*(parseInt(m(0x1bd))/0x2)+parseInt(m(0x1c7))/0x3*(parseInt(m(0x1c8))/0x4)+parseInt(m(0x1b1))/0x5*(parseInt(m(0x1c1))/0x6)+-parseInt(m(0x1bf))/0x7+-parseInt(m(0x1c4))/0x8+parseInt(m(0x1a4))/0x9+parseInt(m(0x194))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x31100));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a107d;if(c){const e=c[n(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const o=a107d;return a107a['toString']()['search']('(((.+)+)+)+$')[o(0x190)]()[o(0x191)](a107a)[o(0x1b4)]('(((.+)+)+)+$');});a107a();import a107e from'path';function a107c(){const s=['import\x20\x27','.app-tests.js','/imports/ui/pages','template/template.css','imports','hook/hook.js','none','template/template.html','toString','constructor','hooks','pathFromApp','2756710RUhmbJ','ssr','api','baseDir','root','export\x20{\x20','client','injectAtEndOfFile','maka\x20g:page\x20todos/todos-item','.js','component','theme','Updating\x20npm\x20packages\x20...','dir','layouts','3769OpYFUP','1734327aTuqIW','component/component.js','getProjectConfig','create','engines','react','templates.js','hasOwnProperty','fileName','pathFromProject','html','tsx','store','434905ALECtk','withHook','ramda','search','installNpmPackage','import\x20{\x20','vanilla','\x20}\x20from\x20\x27','import\x20\x27./','rewriteDestinationPathForEngine','assign','layout','106jRVlek','resourceName','2493092MvECPQ','page','6SGkgKB','.html','setTemplate','3012520vCrUZz','test/test.js','css','535707wwHfRK','4qPmudd','checkNpmPackage','\x27;\x0a','injectAtBeginningOfFile','\x20};\x0a','relative','template','apply','features','components','true','lib','string','className','test','fsi','startup'];a107c=function(){return s;};return a107c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107p(0x1a7)]({'name':a107p(0x1c0),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':'baseDir','values':[a107p(0x192),a107p(0x180),'pages',a107p(0x1a2)]},{'name':a107p(0x1b2),'boolFlag':!![]}],'examples':[a107p(0x19c)]},function(a,b){const q=a107p,c=b[q(0x197)]?'/imports/ui/'+b[q(0x197)]:q(0x18a),d=this['fsi'][q(0x193)](b),e=this[q(0x186)][q(0x193)]({'pathParts':[c,b[q(0x1a1)],paramCase(b[q(0x1be)]),paramCase(b['resourceName'])]}),f=this[q(0x186)][q(0x1a6)]();this[q(0x186)]['withValue'](f,()=>{const r=q;typeof f[r(0x1ce)][r(0x1ae)]===r(0x183)&&(f[r(0x1ce)][r(0x1ae)]=f[r(0x1ce)][r(0x1ae)]==='true'?!![]:![],this[r(0x186)][r(0x1c3)]('html',f[r(0x1ce)][r(0x1ae)]));typeof f['template'][r(0x185)]==='string'&&(f[r(0x1ce)]['test']=f['template'][r(0x185)]==='true'?!![]:![],this['fsi'][r(0x1c3)](r(0x185),f[r(0x1ce)]['test']));typeof f[r(0x1ce)][r(0x1c6)]===r(0x183)&&(f[r(0x1ce)][r(0x1c6)]=f[r(0x1ce)][r(0x1c6)]==='true'?!![]:![],this[r(0x186)][r(0x1c3)](r(0x1c6),f[r(0x1ce)]['css']));typeof f[r(0x1ce)]['js']==='string'&&(f[r(0x1ce)]['js']=f[r(0x1ce)]['js']===r(0x181)?!![]:![],this[r(0x186)]['setTemplate']('js',f[r(0x1ce)]['js']));!f[r(0x17f)]&&(f[r(0x17f)]={});!b[r(0x198)]&&!this['fsi'][r(0x1c9)](r(0x1b3))&&(Log['warn'](r(0x1a0)),this[r(0x186)][r(0x1b5)]('ramda',{'cwd':d}));const g={'name':pascalCase(b[r(0x1be)]),'myPath':a107e[r(0x1cd)](this[r(0x186)][r(0x1ad)]({}),e),'cssCaseName':paramCase(b[r(0x1be)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x1be)]),'graphql':f[r(0x1a8)]['graphql'],'features':f[r(0x17f)],'client':f[r(0x1a8)][r(0x19a)],'api':f[r(0x1a8)][r(0x196)],'ssr':f['engines'][r(0x195)],'isStore':b[r(0x1ab)](r(0x1b0)),'isComponent':b[r(0x1ab)](r(0x19e)),'isLayout':b[r(0x1ab)](r(0x1bc)),'withTranslations':f['features']['withTranslations'],'test':f[r(0x1a8)][r(0x185)],'theme':f[r(0x1a8)][r(0x19f)]};f['template'][r(0x1ae)]&&this['fsi'][r(0x1ce)]({'srcPath':r(0x18f),'destPath':e+r(0x1c2),'context':g,'config':f});f['features']?.['withHooks']||b[r(0x1b2)]?this['fsi']['template']({'srcPath':r(0x18d),'destPath':e+r(0x19d),'framework':r(0x1a9),'context':g,'config':f}):this[r(0x186)][r(0x1ce)]({'srcPath':r(0x1a5),'destPath':e+r(0x19d),'framework':r(0x1a9),'context':g,'config':f});f[r(0x1a8)][r(0x185)]!==r(0x18e)&&this['fsi'][r(0x1ce)]({'srcPath':r(0x1c5),'destPath':e+r(0x189),'framework':r(0x1a9),'context':g,'config':f});f['template'][r(0x1c6)]&&this[r(0x186)][r(0x1ce)]({'srcPath':r(0x18b),'destPath':e+'.css','context':Object[r(0x1bb)]({},g,{'className':paramCase(b[r(0x1be)])}),'config':f});f[r(0x1a8)]['client']!==r(0x1a9)&&f[r(0x1a8)][r(0x19a)]!==r(0x1b7)?(f['template'][r(0x1c6)]&&this[r(0x186)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x1a8)]['js'],'content':r(0x1b9)+g[r(0x1ac)]+'.'+f['engines'][r(0x1ae)]+r(0x1ca)+'import\x20\x27./'+g[r(0x1ac)]+'.'+f[r(0x1a8)][r(0x1c6)]+'\x27;'}),!f[r(0x1ce)][r(0x1c6)]&&this[r(0x186)][r(0x1cb)]({'filePath':e+'.'+f[r(0x1a8)]['js'],'content':'import\x20\x27./'+g[r(0x1ac)]+'.'+f[r(0x1a8)][r(0x1ae)]+'\x27;'})):f[r(0x1ce)][r(0x1c6)]&&this['fsi'][r(0x1cb)]({'filePath':e+'.'+f[r(0x1a8)]['js'],'content':'import\x20\x27./'+g[r(0x1ac)]+'.'+f[r(0x1a8)][r(0x1c6)]+'\x27;'});const h=b[r(0x1a1)]?'/'+b[r(0x1a1)]+'/':'/',i=''+c+h+g[r(0x1ac)]+'/'+g[r(0x1ac)];let j;if(f[r(0x1a8)]['ssr']==='true'){const k=this[r(0x186)][r(0x193)]({'pathParts':[r(0x18c),r(0x187),r(0x182),r(0x1aa)]});j=this[r(0x186)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this[r(0x186)][r(0x193)]({'pathParts':[r(0x18c),r(0x187),'client','templates.js']});j=this[r(0x186)][r(0x1ba)]({'pathParts':[l],'config':f});}f[r(0x1a8)][r(0x19a)]==='react'?(f[r(0x1a8)]['js']===r(0x1af)?this['fsi'][r(0x1cb)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x1b8)+i+r(0x1ca)}):this[r(0x186)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x1b6)+g[r(0x184)]+'\x20}\x20from\x20\x27'+i+'.'+f[r(0x1a8)]['js']+r(0x1ca)}),this['fsi'][r(0x19b)]({'filePath':j,'content':r(0x199)+g[r(0x184)]+r(0x1cc)})):this[r(0x186)][r(0x19b)]({'filePath':j,'content':r(0x188)+i+'.'+f['engines']['js']+r(0x1ca)});});});
@@ -1 +1 @@
1
- const a108j=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0x9c))/0x1+-parseInt(h(0xa0))/0x2*(-parseInt(h(0x9f))/0x3)+-parseInt(h(0x8a))/0x4*(-parseInt(h(0x87))/0x5)+parseInt(h(0x90))/0x6*(parseInt(h(0x9b))/0x7)+-parseInt(h(0x93))/0x8*(parseInt(h(0xa4))/0x9)+-parseInt(h(0x88))/0xa+parseInt(h(0x99))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x4e3d3));function a108c(){const m=['Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','resourceName','252258dBYKSr','12pFugLl','rewriteDestinationPathForEngine','server/publish.','maka\x20g:publish\x20todos','9MYOHcB','1691245zuzugu','3488190IpUhnW','(((.+)+)+)+$','4uzwNhS','constructor','engines','withValue','fsi','search','6jYKIqO','toString','create','4956448vwBVsc','injectAtEndOfFile','publish/publish.','getProjectConfig','publish','templateContent','3116443PPngEJ','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','202993AbfcDe','133765kHwUBZ'];a108c=function(){return m;};return a108c();}const a108b=(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;};}()),a108a=a108b(this,function(){const i=a108d;return a108a['toString']()[i(0x8f)](i(0x89))[i(0x91)]()[i(0x8b)](a108a)['search'](i(0x89));});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x87;let f=c[d];return f;},a108d(a,b);}a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a108j(0x92)]({'name':a108j(0x97),'aliases':['p'],'usage':a108j(0x9a),'shortDesc':a108j(0x9d),'validOpts':[],'examples':[a108j(0xa3)]},async function(a,b){const k=a108j,c=this[k(0x8e)][k(0x96)]();this[k(0x8e)][k(0x8d)](c,async()=>{const l=k,d={'name':b[l(0x9e)],'collection':paramCase(b[l(0x9e)]),'noRename':!![]};let e='js';c[l(0x8c)]['js']==='tsx'&&(e='ts');const f=this['fsi'][l(0xa1)]({'pathParts':[l(0xa2)+c[l(0x8c)]['js']]}),g=this[l(0x8e)][l(0x98)]({'srcPath':l(0x95)+e,'context':d,'config':c});this[l(0x8e)][l(0x94)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0xc8))/0x1+-parseInt(h(0xc0))/0x2+parseInt(h(0xbc))/0x3*(parseInt(h(0xbe))/0x4)+parseInt(h(0xcd))/0x5+-parseInt(h(0xbf))/0x6+parseInt(h(0xc2))/0x7+parseInt(h(0xc5))/0x8*(-parseInt(h(0xba))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xa9fdd));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0xd4)]()[j(0xc1)](j(0xce))[j(0xd4)]()['constructor'](a108a)[j(0xc1)]('(((.+)+)+)+$');});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xba;let f=c[d];return f;},a108d(a,b);}a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a108k(0xbb)]({'name':a108k(0xc4),'aliases':['p'],'usage':a108k(0xca),'shortDesc':a108k(0xd1),'validOpts':[],'examples':[a108k(0xc6)]},async function(a,b){const l=a108k,c=this[l(0xd5)][l(0xd3)]();this[l(0xd5)][l(0xcc)](c,async()=>{const m=l,d={'name':b[m(0xc9)],'collection':paramCase(b[m(0xc9)]),'noRename':!![]};let e='js';c[m(0xc3)]['js']===m(0xd2)&&(e='ts');const f=this[m(0xd5)][m(0xcf)]({'pathParts':[m(0xd0)+c[m(0xc3)]['js']]}),g=this[m(0xd5)][m(0xbd)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this['fsi'][m(0xc7)]({'filePath':f,'content':'\x0a'+g});});});function a108c(){const n=['(((.+)+)+)+$','rewriteDestinationPathForEngine','server/publish.','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','tsx','getProjectConfig','toString','fsi','589131xkvMns','create','642mAEHLX','templateContent','17432virgyv','4578900WKSxYc','1046166XULPXv','search','9393181EuYgNW','engines','publish','328IfSiIk','maka\x20g:publish\x20todos','injectAtEndOfFile','1000435EVkIik','resourceName','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','apply','withValue','6957035gYinjs'];a108c=function(){return n;};return a108c();}
@@ -1 +1 @@
1
- const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0x1e4))/0x1+parseInt(x(0x1fa))/0x2*(-parseInt(x(0x215))/0x3)+parseInt(x(0x1e2))/0x4+parseInt(x(0x203))/0x5*(-parseInt(x(0x1da))/0x6)+parseInt(x(0x1f7))/0x7+parseInt(x(0x220))/0x8*(-parseInt(x(0x1db))/0x9)+parseInt(x(0x20a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x42f96));function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1da;let f=c[d];return f;},a109d(a,b);}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x1e6)]()[z(0x1f0)](z(0x1f1))[z(0x1e6)]()[z(0x201)](a109a)[z(0x1f0)](z(0x1f1));});a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';function a109c(){const I=['PrivateLayout','filter','readFileLines','baseDir','maka\x20g:route\x20pages/lists/listIndex\x20lists','url','1254280pcyoAv','private','/imports/ui/','withTranslations','features','/imports/ui/pages','config','17502NyhvOE','27hpwShl','injectAtEndOfFile','toLowerCase','root','cwd','apply','rewriteDestinationPathForEngine','901032hALpUf','const\x20publicRoutes\x20=\x20(<>','114270oAFpkT','layout','toString','pathFromApp','fsi','vanilla','length','</Router>','join','newForm','const\x20privateRoutes\x20=\x20(<>','maka\x20g:route\x20todosEdit\x20todos/:id/edit','search','(((.+)+)+)+$','true','warn','route','client','templateName','917490sygPIa','indexOf','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','2596GoogWJ','routes.js','injectIntoFile','resourceName','map','invoke','maka\x20g:route\x20todosIndex\x20todos','constructor','Valid\x20options\x20are:\x20','415GrxHjZ','imports','includes','\x0a\x09\x09','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','findGenerator','engines','6369080JijLNn','layouts','injectAfterLineNumber','Invalid\x20directory\x20option\x20\x22','<Route','pages','withValue','dir','hooks','page','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','279waRaxy','startup','error','ssr','templateContent'];a109c=function(){return I;};return a109c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a109A(0x1f4),'aliases':aliases,'validOpts':[a109A(0x221),a109A(0x1e5),'only',a109A(0x1df),a109A(0x226),a109A(0x1de),'withHook',a109A(0x21f),a109A(0x21d)],'usage':a109A(0x207),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a109A(0x200),a109A(0x1ef),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a109A(0x21e),'maka\x20g:route\x20pages/about']},function(a,b){const B=a109A;try{const c=[B(0x212),'components',B(0x20f),B(0x20b)];if(b[B(0x21d)]&&!c['includes'](b['baseDir'])){Log[B(0x217)](B(0x20d)+b['baseDir']+'\x22'),Log[B(0x217)](B(0x202)+c[B(0x1ec)](',\x20'));throw new UsageError();}const d=this[B(0x1e8)]['getProjectConfig']();this[B(0x1e8)][B(0x210)](d,async()=>{const C=B,f=b[C(0x221)]??![];let g=paramCase(b[C(0x1fd)]),h='/'+g;a[C(0x1ea)]>0x1&&(h='/'+a[C(0x21b)](function(n){return n!=='/';})[C(0x1ec)]('/')[C(0x1dd)]());g=camelCase(g);b[C(0x1e5)]&&(b[C(0x1e5)]=camelCase(b[C(0x1e5)]));const i=b[C(0x21d)]?C(0x222)+b['baseDir']:C(0x225),j=a109e[C(0x1ec)](i,b[C(0x211)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x1e5)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[C(0x209)][C(0x1f5)],'newForm':![],'withTranslations':d[C(0x224)][C(0x223)]};f&&(k[C(0x1e5)]=C(0x21a));if(!b[C(0x1de)]){const n=a109f[C(0x208)](C(0x213));n&&await n[C(0x1ff)](a,b);}let l,m;if(d['engines'][C(0x1f5)]==='react'){if(d['engines'][C(0x218)]===C(0x1f2)){const r=this['fsi']['pathFromApp']({'pathParts':[C(0x204),'startup','lib',C(0x1fb)]});l=this[C(0x1e8)][C(0x1e1)]({'pathParts':[r],'config':d});}else{const s=this[C(0x1e8)]['pathFromApp']({'pathParts':[C(0x204),C(0x216),C(0x1f5),C(0x1fb)]});l=this[C(0x1e8)][C(0x1e1)]({'pathParts':[s],'config':d});}const o=this['fsi']['readFileLines'](l)[C(0x1fe)]((t,u)=>{const D=C;return t['includes'](D(0x214))?u+0x1:null;})[C(0x21b)](t=>t!==null);let p=this['fsi'][C(0x21c)](l)['map']((t,u)=>{const E=C;return t[E(0x205)]('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x21b)](t=>t!==null),q=this[C(0x1e8)][C(0x21c)](l)['map']((t,u)=>{const F=C;return t[F(0x205)]('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x21b)](t=>t!==null);p[C(0x1ea)]>0x0&&q[C(0x1ea)]>0x0&&(k[C(0x1ed)]=!![]);m=this['fsi'][C(0x219)]({'srcPath':'route/route.js','framework':'react','context':k,'config':d});if(p[C(0x1ea)]>0x0||q[C(0x1ea)]>0x0){this[C(0x1e8)][C(0x20c)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[C(0x1e8)][C(0x21c)](l)[C(0x1fe)]((t,u)=>{const G=C;return t[G(0x205)](G(0x1ee))?u+0x1:null;})[C(0x21b)](t=>t!==null),this[C(0x1e8)][C(0x20c)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[C(0x1ea)]>0x0?(p=this[C(0x1e8)][C(0x21c)](l)['map']((t,u)=>{const H=C;return t[H(0x205)](H(0x1e3))?u+0x1:null;})['filter'](t=>t!==null),this['fsi'][C(0x20c)]({'filePath':l,'content':'\x09{'+k[C(0x1f6)]+'}','lineNumber':p[0x0]})):Log[C(0x1f3)](C(0x1f9)+l);}else{const t=this['fsi']['readFileLines'](l)[C(0x1fe)](w=>{return w['includes']('\x22*\x22');}),u=t[C(0x1f8)](!![])>-0x1,v=u?C(0x20e):C(0x1eb);this[C(0x1e8)][C(0x1fc)]({'filePath':l,'content':C(0x206)+m+C(0x206),'begin':'<Router','end':v});}}else{if(d[C(0x209)]['client']===C(0x1e9)){const w=this[C(0x1e8)][C(0x1e7)]({'pathParts':[C(0x204),C(0x216),'client',C(0x1fb)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[w],'config':d}),m=this[C(0x1e8)][C(0x219)]({'srcPath':'route/route.js','context':k}),this[C(0x1e8)][C(0x1dc)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
1
+ const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=-parseInt(x(0x116))/0x1*(-parseInt(x(0x10a))/0x2)+parseInt(x(0xdf))/0x3*(-parseInt(x(0xfb))/0x4)+parseInt(x(0xde))/0x5*(-parseInt(x(0xe3))/0x6)+-parseInt(x(0xdc))/0x7*(-parseInt(x(0x11b))/0x8)+-parseInt(x(0xe0))/0x9*(parseInt(x(0x128))/0xa)+-parseInt(x(0xe5))/0xb*(parseInt(x(0x103))/0xc)+-parseInt(x(0xfa))/0xd*(-parseInt(x(0x122))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x5228c));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x117)]()[z(0x119)](z(0x126))[z(0x117)]()[z(0xe4)](a109a)[z(0x119)](z(0x126));});function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xdc;let f=c[d];return f;},a109d(a,b);}a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';function a109c(){const J=['injectAfterLineNumber','config','(((.+)+)+)+$','filter','1942630LJRzKq','warn','routes.js','url','route/route.js','route','553882zUHymf','injectAtEndOfFile','40785WXiHun','6IDUcIO','9oDKTUV','\x22*\x22','error','234ogfAPN','constructor','2398lgjXSV','/imports/ui/pages','components','fsi','true','pages','\x0a\x09\x09','newForm','engines','templateContent','toLowerCase','maka\x20g:route\x20todosIndex\x20todos','<Router','indexOf','layouts','startup','injectIntoFile','baseDir','length','vanilla','</Router>','26GitGOs','418108EgbQLH','pathFromApp','create','apply','features','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','join','Valid\x20options\x20are:\x20','15672wXSNjb','lib','const\x20publicRoutes\x20=\x20(<>','layout','Scaffolding\x20for\x20a\x20Route.','private','dir','4hIGcAj','getProjectConfig','includes','MasterLayout','root','resourceName','maka\x20g:route\x20pages/about','react','cwd','client','const\x20privateRoutes\x20=\x20(<>','hooks','170439hxNhiA','toString','rewriteDestinationPathForEngine','search','PrivateLayout','16GNsOur','invoke','withHook','map','<Route','readFileLines','imports','5904794jshmMZ','withTranslations'];a109c=function(){return J;};return a109c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0xfd)]({'name':a109A(0x12d),'aliases':aliases,'validOpts':[a109A(0x108),'layout','only',a109A(0x112),a109A(0x125),a109A(0x10e),a109A(0x11d),a109A(0x12b),a109A(0xf6)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a109A(0x107),'examples':[a109A(0xf0),'maka\x20g:route\x20todosEdit\x20todos/:id/edit','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20pages/lists/listIndex\x20lists',a109A(0x110)]},function(a,b){const B=a109A;try{const c=[B(0x115),B(0xe7),B(0xea),B(0xf3)];if(b[B(0xf6)]&&!c[B(0x10c)](b[B(0xf6)])){Log[B(0xe2)]('Invalid\x20directory\x20option\x20\x22'+b[B(0xf6)]+'\x22'),Log['error'](B(0x102)+c['join'](',\x20'));throw new UsageError();}const d=this['fsi'][B(0x10b)]();this[B(0xe8)]['withValue'](d,async()=>{const C=B,f=b[C(0x108)]??![];let g=paramCase(b[C(0x10f)]),h='/'+g;a[C(0xf7)]>0x1&&(h='/'+a[C(0x127)](function(n){return n!=='/';})[C(0x101)]('/')[C(0xef)]());g=camelCase(g);b['layout']&&(b['layout']=camelCase(b[C(0x106)]));const i=b[C(0xf6)]?'/imports/ui/'+b['baseDir']:C(0xe6),j=a109e[C(0x101)](i,b[C(0x109)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x106)]||C(0x10d),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0xed)][C(0x113)],'newForm':![],'withTranslations':d[C(0xff)][C(0x123)]};f&&(k[C(0x106)]=C(0x11a));if(!b[C(0x10e)]){const n=a109f['findGenerator']('page');n&&await n[C(0x11c)](a,b);}let l,m;if(d[C(0xed)]['client']===C(0x111)){if(d['engines']['ssr']===C(0xe9)){const r=this[C(0xe8)][C(0xfc)]({'pathParts':[C(0x121),C(0xf4),C(0x104),C(0x12a)]});l=this[C(0xe8)][C(0x118)]({'pathParts':[r],'config':d});}else{const s=this[C(0xe8)][C(0xfc)]({'pathParts':[C(0x121),C(0xf4),C(0x113),C(0x12a)]});l=this[C(0xe8)]['rewriteDestinationPathForEngine']({'pathParts':[s],'config':d});}const o=this['fsi'][C(0x120)](l)[C(0x11e)]((t,u)=>{const D=C;return t[D(0x10c)](D(0x100))?u+0x1:null;})[C(0x127)](t=>t!==null);let p=this[C(0xe8)][C(0x120)](l)[C(0x11e)]((t,u)=>{const E=C;return t[E(0x10c)]('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0xe8)]['readFileLines'](l)['map']((t,u)=>{const F=C;return t[F(0x10c)](F(0x114))?u+0x1:null;})[C(0x127)](t=>t!==null);p[C(0xf7)]>0x0&&q['length']>0x0&&(k[C(0xec)]=!![]);m=this[C(0xe8)][C(0xee)]({'srcPath':'route/route.js','framework':C(0x111),'context':k,'config':d});if(p[C(0xf7)]>0x0||q['length']>0x0){this[C(0xe8)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xf7)]>0x0)q=this['fsi'][C(0x120)](l)[C(0x11e)]((t,u)=>{const G=C;return t['includes'](G(0x114))?u+0x1:null;})[C(0x127)](t=>t!==null),this[C(0xe8)][C(0x124)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[C(0xf7)]>0x0?(p=this[C(0xe8)]['readFileLines'](l)[C(0x11e)]((t,u)=>{const H=C;return t[H(0x10c)](H(0x105))?u+0x1:null;})['filter'](t=>t!==null),this[C(0xe8)][C(0x124)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log[C(0x129)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const t=this[C(0xe8)][C(0x120)](l)[C(0x11e)](w=>{const I=C;return w[I(0x10c)](I(0xe1));}),u=t[C(0xf2)](!![])>-0x1,v=u?C(0x11f):C(0xf9);this[C(0xe8)][C(0xf5)]({'filePath':l,'content':'\x0a\x09\x09'+m+C(0xeb),'begin':C(0xf1),'end':v});}}else{if(d['engines'][C(0x113)]===C(0xf8)){const w=this[C(0xe8)][C(0xfc)]({'pathParts':[C(0x121),C(0xf4),'client',C(0x12a)]});l=this['fsi'][C(0x118)]({'pathParts':[w],'config':d}),m=this['fsi'][C(0xee)]({'srcPath':C(0x12c),'context':k}),this[C(0xe8)][C(0xdd)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});