@maka/maka-cli 4.9.12 → 4.9.14

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 (159) 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/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/patreon.js +1 -1
  84. package/bundle/obf/src/commands/proxy.js +1 -1
  85. package/bundle/obf/src/commands/reconfig.js +1 -1
  86. package/bundle/obf/src/commands/register.js +1 -1
  87. package/bundle/obf/src/commands/run/_index.js +1 -1
  88. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  89. package/bundle/obf/src/commands/run/run.command.js +1 -1
  90. package/bundle/obf/src/commands/set/_index.js +1 -1
  91. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/set/set.command.js +1 -1
  94. package/bundle/obf/src/commands/ssh.js +1 -1
  95. package/bundle/obf/src/commands/ssl.js +1 -1
  96. package/bundle/obf/src/commands/test.js +1 -1
  97. package/bundle/obf/src/commands/undo.js +1 -1
  98. package/bundle/obf/src/commands/version.js +1 -1
  99. package/bundle/obf/src/error.js +1 -1
  100. package/bundle/obf/src/exec.js +1 -1
  101. package/bundle/obf/src/generator.js +1 -1
  102. package/bundle/obf/src/generators/_index.js +1 -1
  103. package/bundle/obf/src/generators/api.js +1 -1
  104. package/bundle/obf/src/generators/collection.js +1 -1
  105. package/bundle/obf/src/generators/component.js +1 -1
  106. package/bundle/obf/src/generators/config.js +1 -1
  107. package/bundle/obf/src/generators/dbc.js +1 -1
  108. package/bundle/obf/src/generators/dockerfile.js +1 -1
  109. package/bundle/obf/src/generators/hook.js +1 -1
  110. package/bundle/obf/src/generators/kits/_index.js +1 -1
  111. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  112. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  113. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/kit.js +1 -1
  115. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  117. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  118. package/bundle/obf/src/generators/layout.js +1 -1
  119. package/bundle/obf/src/generators/maka.gen.js +1 -1
  120. package/bundle/obf/src/generators/methods.js +1 -1
  121. package/bundle/obf/src/generators/package.js +1 -1
  122. package/bundle/obf/src/generators/page.js +1 -1
  123. package/bundle/obf/src/generators/publish.js +1 -1
  124. package/bundle/obf/src/generators/route.js +1 -1
  125. package/bundle/obf/src/generators/service.js +1 -1
  126. package/bundle/obf/src/generators/services/_index.js +1 -1
  127. package/bundle/obf/src/generators/services/openssl.js +1 -1
  128. package/bundle/obf/src/generators/services/translation.js +1 -1
  129. package/bundle/obf/src/maka.js +1 -1
  130. package/bundle/obf/src/templates/meteor/api/api.js +4 -4
  131. package/bundle/obf/src/templates/meteor/api/api.js.ts +4 -3
  132. package/bundle/obf/src/templates/meteor/api/methods.js +8 -104
  133. package/bundle/obf/src/templates/meteor/api/methods.js.ts +6 -103
  134. package/bundle/obf/src/templates/meteor/api/register-api.js +2 -15
  135. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +2 -15
  136. package/bundle/obf/src/tool.js +1 -1
  137. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  138. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  139. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  141. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  142. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  143. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/https/https.class.js +1 -1
  145. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  146. package/bundle/obf/src/tools/log/log.class.js +1 -1
  147. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/options/options.class.js +1 -1
  149. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  150. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  151. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  153. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  154. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  155. package/package.json +1 -1
  156. package/bundle/obf/src/templates/meteor/api/fixtures.js +0 -23
  157. package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +0 -23
  158. package/bundle/obf/src/templates/meteor/api/publications.js +0 -31
  159. package/bundle/obf/src/templates/meteor/api/publications.js.ts +0 -31
@@ -1 +1 @@
1
- const a115z=a115d;(function(a,b){const x=a115d,c=a();while(!![]){try{const d=-parseInt(x(0xa4))/0x1*(parseInt(x(0xaa))/0x2)+-parseInt(x(0xa8))/0x3+-parseInt(x(0x9e))/0x4*(-parseInt(x(0xde))/0x5)+-parseInt(x(0xc7))/0x6*(parseInt(x(0xac))/0x7)+-parseInt(x(0xc8))/0x8*(-parseInt(x(0xdc))/0x9)+parseInt(x(0xcb))/0xa+parseInt(x(0xa5))/0xb*(parseInt(x(0xab))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xd1f5d));const a115b=(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;};}()),a115a=a115b(this,function(){const y=a115d;return a115a[y(0xd6)]()['search'](y(0xca))[y(0xd6)]()['constructor'](a115a)[y(0xbf)](y(0xca));});a115a();import{Generator}from'../../../generator.js';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x9b;let f=c[d];return f;},a115d(a,b);}import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a115c(){const D=['getMakaProjectConfig','error','tsx','maka\x20g:k:m:f','dir','search','/imports/startup/lib/templates','/imports/ui/hooks','pathFromApp','kit/mui/frame/drawers/','appName','true','ssr','6143010Qqhtki','8QbUqXI','getFiles','(((.+)+)+)+$','7586360bfJpyS','{\x20props.children\x20}','kit/mui/frame/app-bars/','engines','checkMeteorPackage','log','{props.children}','tests','injectTemplateModule','join','Cleaning\x20up...','toString','baseDir','{this.props.children}','layouts','create','injectImport','4967955uHTJbO','basic-drawer','8117610wNxVxi','template','injectIntoFile','REACT','options','react','4rGZiuh','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','app-tests','getDirectories','<div\x20id=\x22','.js','3835qKfheH','379907cUCGvv','jsx','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','3772959CFfGaM','\x20/>\x0a','90qJowDc','132OrbWat','7rCuYzU','-hook\x22>','findAppDirectory','basic-app-bar','withValue','/imports/ui/','{\x20this.props.children\x20}','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','replaceAll','length','fsi','/imports/startup/client/templates','MATERIAL','imports'];a115c=function(){return D;};return a115c();}import a115e from'path';import a115f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a115z(0xda)]({'name':'frame','aliases':['f'],'usage':a115z(0xb3),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','validOpts':[a115z(0xd9)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a115z(0xb8)],'client':ClientEngines[a115z(0x9b)]},'examples':['maka\x20generate:kit:mui:frame',a115z(0xbd)],'description':a115z(0x9f)},async function(a,b){const A=a115z;try{const c=A(0xaf),d=A(0xdd),f=this[A(0xb6)][A(0xba)](),g=f[A(0xce)][A(0xc6)]===A(0xc5);await this[A(0xb6)][A(0xcf)]('session',{'shouldInstall':!![]});const h=this[A(0xb6)][A(0xae)](),i=a115e[A(0xd4)](h,A(0xb9),'ui','layouts'),j=this['fsi'][A(0xa1)](i),k=await Actions[A(0x9c)]({'type':'checkbox','name':'layouts','message':A(0xa7),'choices':j});if(k[A(0xd9)][A(0xb5)]===0x0){Log[A(0xbb)]('No\x20layouts\x20selected');return;}const l=b[A(0xd7)]?A(0xb1)+b['baseDir']:A(0xc1),m=this[A(0xb6)]['pathFromApp']({'pathParts':[l,b[A(0xbe)],paramCase(c),paramCase(c)]}),n=this[A(0xb6)][A(0xc2)]({'pathParts':[l,b[A(0xbe)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[A(0xc4)])[A(0xb4)]('-','\x20')};await this[A(0xb6)][A(0xb0)](f,async()=>{const B=A;await this[B(0xb6)][B(0xdf)]({'srcPath':B(0xcd)+c+B(0xa3),'destPath':m+B(0xa3),'framework':'react','context':o,'config':f,'force':![],'ignore':![]}),await this[B(0xb6)][B(0xdf)]({'srcPath':B(0xc3)+d+B(0xa3),'destPath':n+'.js','framework':B(0x9d),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[A(0xbe)]+'/'+c+'/'+c;await this[A(0xb6)][A(0xd3)](c,f,p);const q=''+l+b[A(0xbe)]+'/'+d+'/'+d;await this[A(0xb6)][A(0xd3)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this['fsi'][A(0xc9)](a115e[A(0xd4)](i,s),{'extensions':[A(0xa6),A(0xbc)],'omit':[A(0xa0),A(0xd2),'test']});for(const u of t){const v=a115e['join'](i,s,u);await this['fsi'][A(0xdb)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':A(0xb7),'isNamedExport':!![]}),await this[A(0xb6)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(c)+A(0xa9),'begin':[A(0xa2)+s+'\x22>',A(0xa2)+s+A(0xad)],'end':[A(0xd8),A(0xb2),A(0xd1),A(0xcc)]}),await this['fsi'][A(0xdb)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?A(0xc0):'/imports/startup/client/templates','isNamedExport':!![]}),await this[A(0xb6)][A(0xe0)]({'filePath':v,'content':'<'+pascalCase(d)+A(0xa9),'begin':['<div\x20id=\x22'+s+'\x22>','<div\x20id=\x22'+s+A(0xad)],'end':[A(0xd8),A(0xb2),'{props.children}',A(0xcc)]});}}return!![];}catch(w){Log['error'](w);}},async function(){const C=a115z;console[C(0xd0)](C(0xd5));},a115f);
1
+ const a115A=a115d;function a115c(){const E=['search','imports','{\x20this.props.children\x20}','63096WepDdw','kit/mui/frame/drawers/','110793XmVjvn','tsx','kit/mui/frame/app-bars/','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','/imports/ui/','-hook\x22>','12bfEPck','appName','checkMeteorPackage','maka\x20generate:kit:mui:frame','tests','engines','app-tests','REACT','findAppDirectory','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','frame','fsi','baseDir','replaceAll','dir','/imports/ui/hooks','11432CaqQpF','log','.js','4350qSVYHg','3371630XGHLTi','injectTemplateModule','checkbox','/imports/startup/client/templates','Cleaning\x20up...','getDirectories','toString','true','error','options','getFiles','ssr','No\x20layouts\x20selected','create','112056OeTSvg','join','\x20/>\x0a','injectImport','1025fqbykU','apply','<div\x20id=\x22','pathFromApp','935dqhTRi','873yuvzSh','maka\x20g:k:m:f','(((.+)+)+)+$','jsx','template','injectIntoFile','2836EgeNRj','withValue','/imports/startup/lib/templates','106dxIuYn','{this.props.children}','{\x20props.children\x20}','layouts','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','basic-app-bar'];a115c=function(){return E;};return a115c();}(function(a,b){const x=a115d,c=a();while(!![]){try{const d=-parseInt(x(0x126))/0x1+-parseInt(x(0x11b))/0x2*(parseInt(x(0x13f))/0x3)+parseInt(x(0x118))/0x4*(parseInt(x(0x10d))/0x5)+parseInt(x(0x12c))/0x6*(-parseInt(x(0x109))/0x7)+-parseInt(x(0x13c))/0x8*(-parseInt(x(0x112))/0x9)+-parseInt(x(0x140))/0xa+-parseInt(x(0x111))/0xb*(-parseInt(x(0x124))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x2a7f2));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a115d;if(c){const e=c[y(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const z=a115d;return a115a[z(0x146)]()[z(0x121)](z(0x114))[z(0x146)]()['constructor'](a115a)[z(0x121)](z(0x114));});a115a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a115e from'path';import a115f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x108;let f=c[d];return f;},a115d(a,b);}import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a115A(0x108)]({'name':a115A(0x136),'aliases':['f'],'usage':a115A(0x135),'shortDesc':a115A(0x11f),'validOpts':['layouts'],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a115A(0x133)]},'examples':[a115A(0x12f),a115A(0x113)],'description':'\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20'},async function(a,b){const B=a115A;try{const c=B(0x120),d='basic-drawer',f=this['fsi']['getMakaProjectConfig'](),g=f[B(0x131)][B(0x14b)]===B(0x147);await this['fsi'][B(0x12e)]('session',{'shouldInstall':!![]});const h=this[B(0x137)][B(0x134)](),i=a115e[B(0x10a)](h,B(0x122),'ui','layouts'),j=this[B(0x137)][B(0x145)](i),k=await Actions[B(0x149)]({'type':B(0x142),'name':B(0x11e),'message':B(0x129),'choices':j});if(k[B(0x11e)]['length']===0x0){Log['error'](B(0x14c));return;}const l=b[B(0x138)]?B(0x12a)+b[B(0x138)]:B(0x13b),m=this['fsi']['pathFromApp']({'pathParts':[l,b[B(0x13a)],paramCase(c),paramCase(c)]}),n=this[B(0x137)][B(0x110)]({'pathParts':[l,b['dir'],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0x12d)])[B(0x139)]('-','\x20')};await this[B(0x137)][B(0x119)](f,async()=>{const C=B;await this['fsi'][C(0x116)]({'srcPath':C(0x128)+c+C(0x13e),'destPath':m+C(0x13e),'framework':'react','context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x137)][C(0x116)]({'srcPath':C(0x125)+d+C(0x13e),'destPath':n+C(0x13e),'framework':'react','context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0x13a)]+'/'+c+'/'+c;await this[B(0x137)][B(0x141)](c,f,p);const q=''+l+b[B(0x13a)]+'/'+d+'/'+d;await this['fsi'][B(0x141)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0x137)][B(0x14a)](a115e[B(0x10a)](i,s),{'extensions':[B(0x115),B(0x127)],'omit':[B(0x132),B(0x130),'test']});for(const u of t){const v=a115e['join'](i,s,u);await this[B(0x137)][B(0x10c)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?B(0x11a):B(0x143),'isNamedExport':!![]}),await this[B(0x137)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(c)+B(0x10b),'begin':[B(0x10f)+s+'\x22>',B(0x10f)+s+B(0x12b)],'end':[B(0x11c),B(0x123),'{props.children}',B(0x11d)]}),await this['fsi'][B(0x10c)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?'/imports/startup/lib/templates':'/imports/startup/client/templates','isNamedExport':!![]}),await this[B(0x137)][B(0x117)]({'filePath':v,'content':'<'+pascalCase(d)+B(0x10b),'begin':['<div\x20id=\x22'+s+'\x22>',B(0x10f)+s+B(0x12b)],'end':[B(0x11c),'{\x20this.props.children\x20}','{props.children}','{\x20props.children\x20}']});}}return!![];}catch(w){Log[B(0x148)](w);}},async function(){const D=a115A;console[D(0x13d)](D(0x144));},a115f);
@@ -1 +1 @@
1
- function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a116d(a,b);}const a116h=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d=-parseInt(f(0x1af))/0x1*(parseInt(f(0x1a7))/0x2)+parseInt(f(0x1ae))/0x3+-parseInt(f(0x1ab))/0x4+parseInt(f(0x1ac))/0x5+-parseInt(f(0x1b0))/0x6+parseInt(f(0x1b4))/0x7+-parseInt(f(0x1aa))/0x8*(-parseInt(f(0x1a6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xcc2ba));const a116b=(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;};}()),a116a=a116b(this,function(){const g=a116d;return a116a[g(0x1a8)]()['search'](g(0x1a4))[g(0x1a8)]()[g(0x1b1)](a116a)['search']('(((.+)+)+)+$');});function a116c(){const j=['maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','43965Uhyuxt','4OVXjWe','toString','maka\x20g:kit:m','216cBtHsK','5235060KYUoQM','4717145Djsfls','NIE','4784700snQZgh','438222LqAOSB','321522zZVlmu','constructor','mui','create','2833978kMqmWn','Material-UI\x20Kit','(((.+)+)+)+$'];a116c=function(){return j;};return a116c();}a116a();import{Generator}from'../../../generator.js';import a116e from'../kit.js';const MuiGen=Generator[a116h(0x1b3)]({'name':a116h(0x1b2),'aliases':['m'],'usage':a116h(0x1a5),'noNeedResource':!![],'shortDesc':a116h(0x1a3),'validOpts':[''],'isPro':![],'examples':[a116h(0x1a9)]},async function(){const i=a116h;throw i(0x1ad);},async function(){},a116e);export default MuiGen;
1
+ const a116h=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d=parseInt(f(0x159))/0x1+-parseInt(f(0x154))/0x2*(parseInt(f(0x15a))/0x3)+-parseInt(f(0x149))/0x4+parseInt(f(0x155))/0x5*(parseInt(f(0x14c))/0x6)+-parseInt(f(0x15c))/0x7*(parseInt(f(0x14e))/0x8)+-parseInt(f(0x14a))/0x9*(parseInt(f(0x14f))/0xa)+-parseInt(f(0x150))/0xb*(-parseInt(f(0x15b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x958d0));const a116b=(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;};}()),a116a=a116b(this,function(){const g=a116d;return a116a['toString']()[g(0x148)](g(0x157))[g(0x156)]()['constructor'](a116a)[g(0x148)](g(0x157));});a116a();import{Generator}from'../../../generator.js';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x148;let f=c[d];return f;},a116d(a,b);}import a116e from'../kit.js';function a116c(){const j=['80olfoLE','15MYAymH','toString','(((.+)+)+)+$','NIE','752731zJRivu','71085ewPTFN','17782524bjYZMN','7inxykv','search','1216736sdeDKn','1485QBCApE','create','1666788fbeaMn','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','8034424uNemcv','12070wLBTOd','11FEZKqB','Material-UI\x20Kit','mui','maka\x20g:kit:m'];a116c=function(){return j;};return a116c();}const MuiGen=Generator[a116h(0x14b)]({'name':a116h(0x152),'aliases':['m'],'usage':a116h(0x14d),'noNeedResource':!![],'shortDesc':a116h(0x151),'validOpts':[''],'isPro':![],'examples':[a116h(0x153)]},async function(){const i=a116h;throw i(0x158);},async function(){},a116e);export default MuiGen;
@@ -1 +1 @@
1
- const a117n=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=parseInt(l(0x92))/0x1+parseInt(l(0x90))/0x2+parseInt(l(0x93))/0x3*(-parseInt(l(0x7f))/0x4)+parseInt(l(0x99))/0x5*(parseInt(l(0x88))/0x6)+-parseInt(l(0x82))/0x7+parseInt(l(0x89))/0x8*(-parseInt(l(0x9b))/0x9)+parseInt(l(0x7c))/0xa*(-parseInt(l(0x9a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x75424));const a117b=(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;};}()),a117a=a117b(this,function(){const m=a117d;return a117a['toString']()['search'](m(0xae))[m(0xb2)]()['constructor'](a117a)[m(0x96)]('(((.+)+)+)+$');});a117a();function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x78;let f=c[d];return f;},a117d(a,b);}import a117e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a117c(){const q=['installNpmPackage','.js','engines','710kdirWb','hook/hook.js','setTemplate','1453912gHARoD','withTranslations','resourceName','5858006LzDadT','true','warn','maka\x20g:l\x20web/safari','create','dir','6690EcnEJA','72tBhqEv','checkNpmPackage','react','features','withValue','graphql','split','1777728rhWgEX','test','730311SdcJvZ','3JxwqBu','findAppDirectory','fileName','search','maka\x20g:layout\x20mobile/iPhone8','css','2795xgztKB','52987QiDLnn','219825ASxjEL','theme','ramda','test/test.js','Scaffolding\x20for\x20a\x20React\x20Layout.','.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','className','template/template.css','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','withHooks','import\x20\x27./','fsi','withHook','pathFromApp','string','relative','pathFromProject','component/component.js','(((.+)+)+)+$','api','.app-tests.js','getMakaProjectConfig','toString','template'];a117c=function(){return q;};return a117c();}Generator[a117n(0x86)]({'name':'layout','aliases':aliases,'usage':a117n(0xa4),'shortDesc':a117n(0x9f),'validOpts':[],'examples':[a117n(0x97),a117n(0x85)]},async function(a,b){const o=a117n,c='/imports/ui/layouts',d=this[o(0xa7)][o(0x94)](),e=this[o(0xa7)][o(0xa9)]({'pathParts':[c,b['dir'],paramCase(b[o(0x81)]),paramCase(b[o(0x81)])]}),f=this[o(0xa7)][o(0xb1)]();await this[o(0xa7)][o(0x8d)](f,async()=>{const p=o;typeof f[p(0x78)][p(0x91)]===p(0xaa)&&(f[p(0x78)][p(0x91)]=f[p(0x78)][p(0x91)]==='true'?!![]:![],this[p(0xa7)][p(0x7e)](p(0x91),f['template']['test']));typeof f[p(0x78)]['css']==='string'&&(f[p(0x78)]['css']=f[p(0x78)]['css']===p(0x83)?!![]:![],this[p(0xa7)][p(0x7e)](p(0x98),f[p(0x78)]['css']));typeof f[p(0x78)]['js']==='string'&&(f[p(0x78)]['js']=f[p(0x78)]['js']===p(0x83)?!![]:![],this['fsi']['setTemplate']('js',f[p(0x78)]['js']));!f[p(0x8c)]&&(f[p(0x8c)]={});const g=b['_']?b['_'][0x0][p(0x8f)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[p(0x8a)](p(0x9d))&&(Log[p(0x84)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this['fsi'][p(0x79)](p(0x9d),{'cwd':d}));if(h&&!this[p(0x8a)]('react')){Log[p(0x84)](p(0xa1));return;}const i={'name':pascalCase(b[p(0x81)]),'myPath':a117e[p(0xab)](this[p(0xa7)][p(0xac)]({}),e),'cssCaseName':paramCase(b[p(0x81)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0x81)]),'fileName':paramCase(b[p(0x81)]),'graphql':f[p(0x7b)][p(0x8e)],'features':f[p(0x8c)],'client':f[p(0x7b)]['client'],'api':f[p(0x7b)][p(0xaf)],'ssr':f[p(0x7b)]['ssr'],'test':f['engines'][p(0x91)],'theme':f[p(0x7b)][p(0x9c)],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][p(0x80)]};f[p(0x8c)]?.[p(0xa5)]||b[p(0xa8)]?await this[p(0xa7)][p(0x78)]({'srcPath':p(0x7d),'destPath':e+'.js','framework':p(0x8b),'context':i,'config':f}):await this[p(0xa7)][p(0x78)]({'srcPath':p(0xad),'destPath':e+p(0x7a),'framework':p(0x8b),'context':i,'config':f});f[p(0x7b)][p(0x91)]!=='none'&&await this[p(0xa7)][p(0x78)]({'srcPath':p(0x9e),'destPath':e+p(0xb0),'framework':'react','context':i,'config':f});f[p(0x78)][p(0x98)]&&(await this[p(0xa7)][p(0x78)]({'srcPath':p(0xa3),'destPath':e+p(0xa0),'context':Object['assign']({},i,{'className':paramCase(b[p(0x81)])}),'config':f}),await this[p(0xa7)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[p(0x7b)]['js'],'content':p(0xa6)+i['fileName']+'.'+f[p(0x7b)][p(0x98)]+'\x27;'}));const j=b[p(0x87)]?'/'+b['dir']+'/':'/',k=''+c+j+i[p(0x95)]+'/'+i['fileName'];await this[p(0xa7)]['injectTemplateModule'](i[p(0xa2)],f,k);});});
1
+ const a117o=a117d;function a117c(){const r=['test/test.js','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','css','fileName','api','create','getMakaProjectConfig','Scaffolding\x20for\x20a\x20React\x20Layout.','withHook','template/template.css','fsi','component/component.js','template','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','graphql','.css','warn','ramda','903nQwwJo','test','engines','injectAtBeginningOfFile','dir','ssr','setTemplate','withHooks','installNpmPackage','resourceName','constructor','features','withTranslations','pathFromApp','assign','/imports/ui/layouts','react','19245030XUmndE','3878LlpeDX','(((.+)+)+)+$','includes','search','4150713CxJwut','apply','checkNpmPackage','620940KfGCOT','maka\x20g:l\x20web/safari','6qiXdbU','246344xkHmSU','true','4126610ZFFJvq','withValue','injectTemplateModule','5238963HjjAnL','maka\x20g:layout\x20mobile/iPhone8','toString','.js','hook/hook.js','split','className','8tHAPhw','theme','pathFromProject'];a117c=function(){return r;};return a117c();}(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0x148))/0x1+parseInt(l(0x13e))/0x2*(-parseInt(l(0x12c))/0x3)+parseInt(l(0x145))/0x4+-parseInt(l(0x14a))/0x5+parseInt(l(0x147))/0x6*(-parseInt(l(0x142))/0x7)+parseInt(l(0x116))/0x8*(parseInt(l(0x14d))/0x9)+parseInt(l(0x13d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x64f8d));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a[n(0x14f)]()[n(0x141)]('(((.+)+)+)+$')['toString']()[n(0x136)](a117a)[n(0x141)](n(0x13f));});function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x114;let f=c[d];return f;},a117d(a,b);}a117a();import a117e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a117o(0x11e)]({'name':'layout','aliases':aliases,'usage':a117o(0x11a),'shortDesc':a117o(0x120),'validOpts':[],'examples':[a117o(0x14e),a117o(0x146)]},async function(a,b){const p=a117o,c=p(0x13b),d=this['fsi']['findAppDirectory'](),e=this[p(0x123)][p(0x139)]({'pathParts':[c,b[p(0x130)],paramCase(b[p(0x135)]),paramCase(b[p(0x135)])]}),f=this['fsi'][p(0x11f)]();await this[p(0x123)][p(0x14b)](f,async()=>{const q=p;typeof f[q(0x125)][q(0x12d)]===q(0x126)&&(f[q(0x125)]['test']=f[q(0x125)]['test']===q(0x149)?!![]:![],this[q(0x123)]['setTemplate'](q(0x12d),f['template'][q(0x12d)]));typeof f[q(0x125)][q(0x11b)]==='string'&&(f[q(0x125)][q(0x11b)]=f[q(0x125)]['css']==='true'?!![]:![],this[q(0x123)]['setTemplate'](q(0x11b),f[q(0x125)]['css']));typeof f['template']['js']===q(0x126)&&(f[q(0x125)]['js']=f['template']['js']===q(0x149)?!![]:![],this[q(0x123)][q(0x132)]('js',f[q(0x125)]['js']));!f['features']&&(f['features']={});const g=b['_']?b['_'][0x0][q(0x114)](':')[0x1]:![],h=b['_']&&aliases[q(0x140)](g);h&&!this[q(0x144)](q(0x12b))&&(Log[q(0x12a)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[q(0x123)][q(0x134)]('ramda',{'cwd':d}));if(h&&!this[q(0x144)]('react')){Log[q(0x12a)](q(0x127));return;}const i={'name':pascalCase(b[q(0x135)]),'myPath':a117e['relative'](this[q(0x123)][q(0x118)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x135)]),'camelCaseName':camelCase(b[q(0x135)]),'fileName':paramCase(b[q(0x135)]),'graphql':f['engines'][q(0x128)],'features':f['features'],'client':f[q(0x12e)]['client'],'api':f[q(0x12e)][q(0x11d)],'ssr':f[q(0x12e)][q(0x131)],'test':f[q(0x12e)]['test'],'theme':f['engines'][q(0x117)],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][q(0x138)]};f[q(0x137)]?.[q(0x133)]||b[q(0x121)]?await this[q(0x123)]['template']({'srcPath':q(0x151),'destPath':e+q(0x150),'framework':q(0x13c),'context':i,'config':f}):await this[q(0x123)]['template']({'srcPath':q(0x124),'destPath':e+q(0x150),'framework':'react','context':i,'config':f});f[q(0x12e)][q(0x12d)]!=='none'&&await this[q(0x123)]['template']({'srcPath':q(0x119),'destPath':e+'.app-tests.js','framework':q(0x13c),'context':i,'config':f});f[q(0x125)][q(0x11b)]&&(await this[q(0x123)]['template']({'srcPath':q(0x122),'destPath':e+q(0x129),'context':Object[q(0x13a)]({},i,{'className':paramCase(b[q(0x135)])}),'config':f}),await this['fsi'][q(0x12f)]({'filePath':e+'.'+f[q(0x12e)]['js'],'content':'import\x20\x27./'+i[q(0x11c)]+'.'+f[q(0x12e)][q(0x11b)]+'\x27;'}));const j=b[q(0x130)]?'/'+b[q(0x130)]+'/':'/',k=''+c+j+i[q(0x11c)]+'/'+i[q(0x11c)];await this[q(0x123)][q(0x14c)](i[q(0x115)],f,k);});});
@@ -1 +1 @@
1
- const a118i=a118d;(function(a,b){const f=a118d,c=a();while(!![]){try{const d=-parseInt(f(0x1bc))/0x1+parseInt(f(0x1b6))/0x2+-parseInt(f(0x1ba))/0x3+-parseInt(f(0x1b5))/0x4+parseInt(f(0x1c1))/0x5+parseInt(f(0x1bf))/0x6+parseInt(f(0x1b2))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x3cc21));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a118d;if(c){const e=c[g(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const h=a118d;return a118a[h(0x1b3)]()[h(0x1b8)]('(((.+)+)+)+$')[h(0x1b3)]()[h(0x1b4)](a118a)[h(0x1b8)](h(0x1bd));});a118a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a118i(0x1c5),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a118i(0x1c4),'examples':[a118i(0x1b7),a118i(0x1b9),a118i(0x1be),'maka\x20g:package\x20package:name',a118i(0x1bb),a118i(0x1c3),a118i(0x1c2)]},function(){});function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a118d(a,b);}function a118c(){const j=['toString','constructor','1698728yPNfka','382298tuKxOn','maka\x20generate:scaffold\x20todos','search','maka\x20g:scaffold\x20todos','42927qlrlwD','maka\x20g:route\x20todos/edit','194462HBPDPs','(((.+)+)+)+$','maka\x20g:template\x20todos/todo_item','399984rLhPxf','apply','780230PwHDrk','maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20g:api\x20trucks','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20{generate,\x20g}:<generator>\x20<name>','3279213hxheKu'];a118c=function(){return j;};return a118c();}export default MakaGen;
1
+ const a118i=a118d;function a118c(){const j=['1437295BjQgvO','maka\x20g:dbc\x20geoserver\x20--type=pgsql','Scaffold\x20various\x20parts\x20of\x20your\x20application','769265Urungc','maka\x20{generate,\x20g}:<generator>\x20<name>','maka\x20g:scaffold\x20todos','maka\x20g:route\x20todos/edit','6WWkHTm','constructor','apply','1340188wDfGYV','(((.+)+)+)+$','toString','111DddpJR','1185344dzqMZJ','maka\x20g:api\x20trucks','1559151JttQrR','maka\x20g:package\x20package:name','maka\x20g:template\x20todos/todo_item','463228EPHiNX','maka\x20generate:scaffold\x20todos','17596TncWuA','search'];a118c=function(){return j;};return a118c();}(function(a,b){const f=a118d,c=a();while(!![]){try{const d=parseInt(f(0x198))/0x1+-parseInt(f(0x1a6))/0x2+-parseInt(f(0x1a9))/0x3*(-parseInt(f(0x19a))/0x4)+parseInt(f(0x19c))/0x5*(parseInt(f(0x1a3))/0x6)+parseInt(f(0x19f))/0x7+-parseInt(f(0x1aa))/0x8+parseInt(f(0x1ac))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x5c5d2));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a118d;if(c){const e=c[g(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const h=a118d;return a118a[h(0x1a8)]()[h(0x19b)](h(0x1a7))[h(0x1a8)]()[h(0x1a4)](a118a)['search']('(((.+)+)+)+$');});a118a();function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x196;let f=c[d];return f;},a118d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a118i(0x1a0),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a118i(0x19e),'examples':[a118i(0x199),a118i(0x1a1),a118i(0x197),a118i(0x196),a118i(0x1a2),a118i(0x1ab),a118i(0x19d)]},function(){});export default MakaGen;
@@ -1 +1 @@
1
- const a119m=a119d;(function(a,b){const j=a119d,c=a();while(!![]){try{const d=parseInt(j(0x197))/0x1+parseInt(j(0x19c))/0x2+-parseInt(j(0x184))/0x3*(-parseInt(j(0x191))/0x4)+parseInt(j(0x1a3))/0x5*(-parseInt(j(0x189))/0x6)+-parseInt(j(0x199))/0x7+-parseInt(j(0x196))/0x8*(-parseInt(j(0x192))/0x9)+parseInt(j(0x18c))/0xa*(-parseInt(j(0x18f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x63dd1));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a119d;if(c){const e=c[k(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const l=a119d;return a119a[l(0x187)]()[l(0x19f)](l(0x198))[l(0x187)]()['constructor'](a119a)[l(0x19f)](l(0x198));});function a119c(){const p=['-rpc-method\x27;','appPathPrefix','withValue','error','56604DSxsPj','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','-rpc-method.','toString','imports','1150458emBdRe','method/method.js','tsx','7020770hvYUoG','engines','maka\x20{generate,\x20g}:{method,\x20m}\x20name','11MvtmeY','create','152OElvmK','27kmHghe','fsi','method','methods','721584ePabDP','756202HMIZzV','(((.+)+)+)+$','5090183PTDQit','startup','apply','572500GwYpMp','index.','import\x20\x27./methods','search','injectAtEndOfFile','resourceName','checkMeteorPackage','5atDMsv','pathFromApp'];a119c=function(){return p;};return a119c();}a119a();function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x17f;let f=c[d];return f;},a119d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a119m(0x190)]({'name':a119m(0x194),'aliases':['m'],'usage':a119m(0x18e),'checkWhere':!![],'shortDesc':a119m(0x185),'validOpts':['dir'],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a119m;try{const c=this['fsi']['getMakaProjectConfig']();await this[n(0x193)][n(0x182)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0x1a1)],'fileName':d,'className':pascalCase(b[o(0x1a1)]),'camelCase':camelCase(b[o(0x1a1)]),'noRename':!![]};let g='js';c[o(0x18d)]['js']===o(0x18b)&&(g='ts');await this[o(0x193)][o(0x1a2)](['maka:check','ddp-rate-limiter','mdg:validated-method'],{'shouldInstall':!![]}),await this[o(0x193)]['template']({'srcPath':o(0x18a),'destPath':this[o(0x193)][o(0x17f)]({'pathParts':['imports',o(0x19a),b['appPathPrefix'],o(0x195),b['dir'],d+o(0x186)+g]}),'context':f,'config':c});const h=b['dir']?'/'+b['dir']+'/':'/',i=this[o(0x193)]['pathFromApp']({'pathParts':[o(0x188),'startup',b[o(0x181)],o(0x19d)+c['engines']['js']]});await this[o(0x193)][o(0x1a0)]({'filePath':i,'content':o(0x19e)+h+d+o(0x180)});});}catch(d){Log[n(0x183)](d);}});
1
+ const a119m=a119d;(function(a,b){const j=a119d,c=a();while(!![]){try{const d=-parseInt(j(0x7f))/0x1*(-parseInt(j(0x85))/0x2)+parseInt(j(0x86))/0x3*(parseInt(j(0x79))/0x4)+parseInt(j(0x73))/0x5+-parseInt(j(0x78))/0x6+parseInt(j(0x94))/0x7+-parseInt(j(0x8f))/0x8+parseInt(j(0x7c))/0x9*(parseInt(j(0x89))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x41983));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a119d;if(c){const e=c[k(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const l=a119d;return a119a[l(0x8c)]()[l(0x84)](l(0x8a))['toString']()[l(0x81)](a119a)[l(0x84)](l(0x8a));});a119a();import{Generator}from'../generator.js';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x6e;let f=c[d];return f;},a119d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a119c(){const p=['checkMeteorPackage','toString','import\x20\x27./methods','tsx','3381152HCysFD','pathFromApp','resourceName','methods','error','251937zvLbKe','apply','method/method.js','mdg:validated-method','injectAtEndOfFile','fsi','maka:check','2444480fpRqep','dir','-rpc-method.','startup','create','992886JkgRlz','30824BEIwSX','appPathPrefix','index.','22149azToxy','imports','engines','3647nBZnLP','maka\x20{generate,\x20g}:{method,\x20m}\x20name','constructor','getMakaProjectConfig','template','search','20uKNiLA','24wJasjj','-rpc-method\x27;','withValue','950ZEjior','(((.+)+)+)+$'];a119c=function(){return p;};return a119c();}Generator[a119m(0x77)]({'name':'method','aliases':['m'],'usage':a119m(0x80),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a119m(0x74)],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a119m;try{const c=this['fsi'][n(0x82)]();await this['fsi'][n(0x88)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0x91)],'fileName':d,'className':pascalCase(b[o(0x91)]),'camelCase':camelCase(b[o(0x91)]),'noRename':!![]};let g='js';c[o(0x7e)]['js']===o(0x8e)&&(g='ts');await this[o(0x71)][o(0x8b)]([o(0x72),'ddp-rate-limiter',o(0x6f)],{'shouldInstall':!![]}),await this[o(0x71)][o(0x83)]({'srcPath':o(0x6e),'destPath':this[o(0x71)][o(0x90)]({'pathParts':[o(0x7d),o(0x76),b[o(0x7a)],o(0x92),b[o(0x74)],d+o(0x75)+g]}),'context':f,'config':c});const h=b[o(0x74)]?'/'+b[o(0x74)]+'/':'/',i=this['fsi']['pathFromApp']({'pathParts':[o(0x7d),o(0x76),b[o(0x7a)],o(0x7b)+c[o(0x7e)]['js']]});await this['fsi'][o(0x70)]({'filePath':i,'content':o(0x8d)+h+d+o(0x87)});});}catch(d){Log[n(0x93)](d);}});
@@ -1 +1 @@
1
- const a120o=a120d;(function(a,b){const l=a120d,c=a();while(!![]){try{const d=parseInt(l(0x120))/0x1*(-parseInt(l(0x121))/0x2)+parseInt(l(0xfc))/0x3+-parseInt(l(0x115))/0x4+-parseInt(l(0x123))/0x5+-parseInt(l(0x116))/0x6*(-parseInt(l(0x10d))/0x7)+parseInt(l(0x100))/0x8*(parseInt(l(0x126))/0x9)+parseInt(l(0x11a))/0xa*(-parseInt(l(0x11e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0xa87fb));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a120d;if(c){const e=c[m(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const n=a120d;return a120a[n(0x106)]()['search'](n(0x101))['toString']()['constructor'](a120a)[n(0x111)](n(0x101));});a120a();import a120e from'path';import{Generator}from'../generator.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0xfb;let f=c[d];return f;},a120d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a120c(){const r=['template','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','hasOwnProperty','8661176ZNUbLG','(((.+)+)+)+$','.js','lib','fsi','component','toString','pathFromApp','maka\x20g:package\x20todos:package','pathFromProject','package','features','graphql','42882raxYpj','ssr','noRename','apply','search','layout','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','resourceName','1146856lTXLSi','1308wxNXha','package/package.js','server','packages','5546910ZqdeTX','pathFromAppWithNoReWrite','/package.js','template/template.js','11RUpmgX','package.js','936634LGJzft','2QQzfCQ','store','4541260kuSoTE','tests/server','getMakaProjectConfig','9UoNAib','engines','dir','2875041dLozHP'];a120c=function(){return r;};return a120c();}Generator['create']({'name':a120o(0x10a),'aliases':['p'],'usage':a120o(0xfe),'shortDesc':a120o(0x113),'validOpts':[a120o(0xfb)],'examples':[a120o(0x108)]},async function(a,b){const p=a120o,c=paramCase(b['resourceName']),d=this[p(0x104)][p(0x107)]({'pathParts':[p(0x119),b[p(0xfb)],c]}),e=this[p(0x104)][p(0x11b)]({'pathParts':[p(0x119),b['dir'],c,p(0x11f)]}),f=this[p(0x104)][p(0x125)]();await this[p(0x104)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x114)]),'myPath':a120e['relative'](this[q(0x104)][q(0x109)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x114)]),'camelCaseName':camelCase(b[q(0x114)]),'fileName':c,'client':f['engines']['client'],'graphql':f[q(0x127)][q(0x10c)],'ssr':f['engines'][q(0x10e)],'isComponent':b[q(0xff)](q(0x105)),'isLayout':b[q(0xff)](q(0x112)),'isStore':b[q(0xff)](q(0x122)),'features':f[q(0x10b)],'noRename':!![],'theme':f['engines']['theme']};await this[q(0x104)][q(0xfd)]({'srcPath':q(0x117),'destPath':e,'context':g,'config':f}),g[q(0x10f)]=![];const h=d+'/client/'+c+'.js';await this[q(0x104)][q(0xfd)]({'srcPath':q(0x11d),'destPath':h,'context':g,'config':f});const i=[q(0x103),q(0x118),'tests/client',q(0x124)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x102);await this[q(0x104)][q(0xfd)]({'srcPath':'package/'+j+q(0x11c),'destPath':k,'context':g,'config':f});}});});
1
+ function a120c(){const r=['maka\x20g:package\x20todos:package','package.js','tests/client','package','resourceName','noRename','theme','getMakaProjectConfig','pathFromApp','.js','withValue','/client/','57026EnEmnh','/package.js','605412zmZUiJ','apply','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','55RLEjTo','6346515RQUtTl','11VqizSi','packages','2345241jMPHmI','server','client','fsi','3957140fGVuVf','hasOwnProperty','package/','layout','(((.+)+)+)+$','create','ssr','template','dir','component','11HlBmnx','store','3317226JjYPuX','template/template.js','search','pathFromAppWithNoReWrite','constructor','1476nXRwtX','engines','39416YOMzYm','relative','toString'];a120c=function(){return r;};return a120c();}const a120o=a120d;(function(a,b){const l=a120d,c=a();while(!![]){try{const d=-parseInt(l(0x160))/0x1*(-parseInt(l(0x149))/0x2)+parseInt(l(0x152))/0x3+-parseInt(l(0x14b))/0x4*(-parseInt(l(0x14e))/0x5)+-parseInt(l(0x162))/0x6+-parseInt(l(0x14f))/0x7+-parseInt(l(0x169))/0x8*(parseInt(l(0x167))/0x9)+-parseInt(l(0x156))/0xa*(-parseInt(l(0x150))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0xd8e7b));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a120d;if(c){const e=c[m(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const n=a120d;return a120a[n(0x16b)]()[n(0x164)](n(0x15a))[n(0x16b)]()[n(0x166)](a120a)[n(0x164)](n(0x15a));});function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x143;let f=c[d];return f;},a120d(a,b);}a120a();import a120e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a120o(0x15b)]({'name':a120o(0x16f),'aliases':['p'],'usage':a120o(0x14d),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a120o(0x15e)],'examples':[a120o(0x16c)]},async function(a,b){const p=a120o,c=paramCase(b['resourceName']),d=this['fsi'][p(0x145)]({'pathParts':['packages',b['dir'],c]}),e=this[p(0x155)][p(0x165)]({'pathParts':[p(0x151),b['dir'],c,p(0x16d)]}),f=this[p(0x155)][p(0x144)]();await this[p(0x155)][p(0x147)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a120e[q(0x16a)](this[q(0x155)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x170)]),'className':pascalCase(b[q(0x170)]),'camelCaseName':camelCase(b[q(0x170)]),'fileName':c,'client':f[q(0x168)][q(0x154)],'graphql':f[q(0x168)]['graphql'],'ssr':f[q(0x168)][q(0x15c)],'isComponent':b[q(0x157)](q(0x15f)),'isLayout':b['hasOwnProperty'](q(0x159)),'isStore':b['hasOwnProperty'](q(0x161)),'features':f['features'],'noRename':!![],'theme':f[q(0x168)][q(0x143)]};await this[q(0x155)][q(0x15d)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x171)]=![];const h=d+q(0x148)+c+q(0x146);await this[q(0x155)][q(0x15d)]({'srcPath':q(0x163),'destPath':h,'context':g,'config':f});const i=['lib',q(0x153),q(0x16e),'tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+q(0x146);await this['fsi'][q(0x15d)]({'srcPath':q(0x158)+j+q(0x14a),'destPath':k,'context':g,'config':f});}});});
@@ -1 +1 @@
1
- const a121l=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=-parseInt(j(0x225))/0x1+parseInt(j(0x20c))/0x2*(-parseInt(j(0x200))/0x3)+parseInt(j(0x223))/0x4+parseInt(j(0x1fa))/0x5*(-parseInt(j(0x218))/0x6)+-parseInt(j(0x221))/0x7*(parseInt(j(0x228))/0x8)+parseInt(j(0x1fd))/0x9+parseInt(j(0x222))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xbcc2b));const a121b=(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;};}()),a121a=a121b(this,function(){const k=a121d;return a121a[k(0x226)]()[k(0x1f4)](k(0x205))['toString']()[k(0x204)](a121a)[k(0x1f4)](k(0x205));});function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a121d(a,b);}function a121c(){const o=['7730GzpaXM','/imports/ui/pages','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','1765638OEJzwL','dir','resourceName','3FNkhYv','html','api','component/component.js','constructor','(((.+)+)+)+$','setTemplate','layouts','.app-tests.js','.html','.js','graphql','1860556Cotvjy','\x27;\x0a','maka\x20g:page\x20todos/todos-item','hasOwnProperty','fsi','react','store','string','Generate\x20a\x20page.','withValue','root','warn','1878WbkgYn','vanilla','template/template.html','template','client','relative','injectTemplateModule','layout','components','7yHLHtT','27697430UupRlS','3793124QCKOxF','theme','779220IlPYyR','toString','withHooks','7581176fvQNrL','processAndRunGenerator','template/template.css','test','import\x20\x27./','features','create','getMakaProjectConfig','css','pathFromApp','component','engines','ssr','Updating\x20npm\x20packages\x20...','className','.css','ramda','search','baseDir','injectAtBeginningOfFile','true','pages','fileName'];a121c=function(){return o;};return a121c();}a121a();import a121e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a121f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a121l(0x22e)]({'name':'page','aliases':aliases,'usage':a121l(0x1fc),'shortDesc':a121l(0x214),'validOpts':[{'name':a121l(0x1f5),'values':['hooks',a121l(0x220),a121l(0x1f8),a121l(0x207)]},{'name':'withHook','boolFlag':!![]}],'examples':[a121l(0x20e)]},async function(a,b){const m=a121l,c=b[m(0x1f5)]?'/imports/ui/'+b[m(0x1f5)]:m(0x1fb),d=this['fsi'][m(0x231)](b),e=this[m(0x210)][m(0x231)]({'pathParts':[c,b[m(0x1fe)],paramCase(b['resourceName']),paramCase(b[m(0x1ff)])]}),f=this[m(0x210)][m(0x22f)]();let g='';return await this[m(0x210)][m(0x215)](f,async()=>{const n=m;typeof f[n(0x21b)][n(0x201)]===n(0x213)&&(f['template'][n(0x201)]=f[n(0x21b)][n(0x201)]===n(0x1f7)?!![]:![],this[n(0x210)][n(0x206)]('html',f[n(0x21b)][n(0x201)]));typeof f[n(0x21b)]['test']==='string'&&(f[n(0x21b)][n(0x22b)]=f[n(0x21b)][n(0x22b)]===n(0x1f7)?!![]:![],this['fsi'][n(0x206)](n(0x22b),f[n(0x21b)][n(0x22b)]));typeof f['template'][n(0x230)]==='string'&&(f[n(0x21b)]['css']=f['template']['css']===n(0x1f7)?!![]:![],this['fsi'][n(0x206)](n(0x230),f['template']['css']));typeof f['template']['js']===n(0x213)&&(f[n(0x21b)]['js']=f[n(0x21b)]['js']===n(0x1f7)?!![]:![],this[n(0x210)][n(0x206)]('js',f['template']['js']));!f[n(0x22d)]&&(f[n(0x22d)]={});!b[n(0x216)]&&!this[n(0x210)]['checkNpmPackage'](n(0x1f3))&&(Log[n(0x217)](n(0x1f0)),this[n(0x210)]['installNpmPackage'](n(0x1f3),{'cwd':d}));const h={'name':pascalCase(b[n(0x1ff)]),'myPath':a121e[n(0x21d)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[n(0x1ff)]),'camelCaseName':camelCase(b[n(0x1ff)]),'fileName':paramCase(b[n(0x1ff)]),'graphql':f[n(0x233)][n(0x20b)],'features':f['features'],'client':f[n(0x233)][n(0x21c)],'api':f[n(0x233)][n(0x202)],'ssr':f['engines'][n(0x234)],'isStore':b[n(0x20f)](n(0x212)),'isComponent':b[n(0x20f)](n(0x232)),'isLayout':b[n(0x20f)](n(0x21f)),'withTranslations':f[n(0x22d)]['withTranslations'],'test':f['engines'][n(0x22b)],'theme':f[n(0x233)][n(0x224)]};f['template'][n(0x201)]&&await this[n(0x210)][n(0x21b)]({'srcPath':n(0x21a),'destPath':e+n(0x209),'context':h,'config':f});f[n(0x22d)]?.[n(0x227)]||b['withHook']?await this['fsi'][n(0x21b)]({'srcPath':'hook/hook.js','destPath':e+n(0x20a),'framework':n(0x211),'context':h,'config':f}):await this['fsi'][n(0x21b)]({'srcPath':n(0x203),'destPath':e+'.js','framework':'react','context':h,'config':f});f['engines'][n(0x22b)]!=='none'&&await this[n(0x210)][n(0x21b)]({'srcPath':'test/test.js','destPath':e+n(0x208),'framework':'react','context':h,'config':f});f[n(0x21b)]['css']&&await this[n(0x210)][n(0x21b)]({'srcPath':n(0x22a),'destPath':e+n(0x1f2),'context':Object['assign']({},h,{'className':paramCase(b[n(0x1ff)])}),'config':f});f['engines'][n(0x21c)]!==n(0x211)&&f[n(0x233)][n(0x21c)]!==n(0x219)?(f[n(0x21b)]['css']&&await this[n(0x210)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[n(0x233)]['js'],'content':n(0x22c)+h[n(0x1f9)]+'.'+f[n(0x233)]['html']+n(0x20d)+n(0x22c)+h['fileName']+'.'+f['engines'][n(0x230)]+'\x27;'}),!f[n(0x21b)]['css']&&await this[n(0x210)][n(0x1f6)]({'filePath':e+'.'+f['engines']['js'],'content':n(0x22c)+h['fileName']+'.'+f[n(0x233)][n(0x201)]+'\x27;'})):f[n(0x21b)][n(0x230)]&&await this[n(0x210)][n(0x1f6)]({'filePath':e+'.'+f[n(0x233)]['js'],'content':n(0x22c)+h[n(0x1f9)]+'.'+f['engines']['css']+'\x27;'});const i=b['dir']?'/'+b['dir']+'/':'/';g=''+c+i+h['fileName']+'/'+h[n(0x1f9)],await this[n(0x210)][n(0x21e)](h[n(0x1f1)],f,g),!b[n(0x216)]&&await a121f[n(0x229)]('route',[i+b['resourceName']],b);}),g+'.'+f[m(0x233)]['js'];});
1
+ const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0x81))/0x1*(parseInt(j(0x6d))/0x2)+parseInt(j(0x9e))/0x3*(parseInt(j(0x89))/0x4)+-parseInt(j(0x94))/0x5+parseInt(j(0x6f))/0x6+-parseInt(j(0x88))/0x7+-parseInt(j(0x96))/0x8+-parseInt(j(0x95))/0x9*(-parseInt(j(0x79))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x1a781));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a[l(0x90)]()['search'](l(0xa7))[l(0x90)]()[l(0x8b)](a121a)[l(0xa9)](l(0xa7));});a121a();function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x66;let f=c[d];return f;},a121d(a,b);}import a121e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a121f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a121m(0x74)]({'name':a121m(0x86),'aliases':aliases,'usage':a121m(0x8a),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a121m(0xa8),'values':['hooks',a121m(0x7b),a121m(0x6e),a121m(0x70)]},{'name':'withHook','boolFlag':!![]}],'examples':[a121m(0x67)]},async function(a,b){const n=a121m,c=b['baseDir']?n(0x69)+b[n(0xa8)]:n(0x8d),d=this[n(0xa6)][n(0x75)](b),e=this['fsi'][n(0x75)]({'pathParts':[c,b[n(0x7a)],paramCase(b[n(0x9c)]),paramCase(b[n(0x9c)])]}),f=this[n(0xa6)]['getMakaProjectConfig']();let g='';return await this[n(0xa6)][n(0x97)](f,async()=>{const o=n;typeof f[o(0x7c)][o(0xa5)]===o(0x9d)&&(f[o(0x7c)][o(0xa5)]=f[o(0x7c)][o(0xa5)]===o(0x6a)?!![]:![],this[o(0xa6)]['setTemplate'](o(0xa5),f['template'][o(0xa5)]));typeof f[o(0x7c)][o(0xa3)]===o(0x9d)&&(f[o(0x7c)][o(0xa3)]=f[o(0x7c)][o(0xa3)]===o(0x6a)?!![]:![],this['fsi']['setTemplate'](o(0xa3),f['template'][o(0xa3)]));typeof f['template']['css']===o(0x9d)&&(f['template'][o(0xa2)]=f[o(0x7c)][o(0xa2)]===o(0x6a)?!![]:![],this[o(0xa6)][o(0x7e)](o(0xa2),f[o(0x7c)][o(0xa2)]));typeof f[o(0x7c)]['js']==='string'&&(f['template']['js']=f['template']['js']===o(0x6a)?!![]:![],this[o(0xa6)][o(0x7e)]('js',f[o(0x7c)]['js']));!f[o(0x8f)]&&(f[o(0x8f)]={});!b[o(0x9a)]&&!this[o(0xa6)][o(0xac)](o(0x87))&&(Log['warn']('Updating\x20npm\x20packages\x20...'),this[o(0xa6)][o(0x85)](o(0x87),{'cwd':d}));const h={'name':pascalCase(b[o(0x9c)]),'myPath':a121e[o(0x7d)](this['fsi'][o(0xaa)]({}),e),'cssCaseName':paramCase(b[o(0x9c)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[o(0x9c)]),'fileName':paramCase(b['resourceName']),'graphql':f[o(0x78)]['graphql'],'features':f[o(0x8f)],'client':f[o(0x78)][o(0xab)],'api':f[o(0x78)]['api'],'ssr':f[o(0x78)]['ssr'],'isStore':b[o(0x92)](o(0x8e)),'isComponent':b[o(0x92)](o(0x9f)),'isLayout':b[o(0x92)]('layout'),'withTranslations':f[o(0x8f)][o(0x99)],'test':f[o(0x78)][o(0xa3)],'theme':f['engines'][o(0x82)]};f[o(0x7c)][o(0xa5)]&&await this[o(0xa6)][o(0x7c)]({'srcPath':o(0xa4),'destPath':e+o(0x6c),'context':h,'config':f});f[o(0x8f)]?.['withHooks']||b[o(0x98)]?await this[o(0xa6)][o(0x7c)]({'srcPath':o(0x8c),'destPath':e+o(0x66),'framework':o(0x7f),'context':h,'config':f}):await this[o(0xa6)][o(0x7c)]({'srcPath':'component/component.js','destPath':e+o(0x66),'framework':'react','context':h,'config':f});f[o(0x78)][o(0xa3)]!=='none'&&await this[o(0xa6)][o(0x7c)]({'srcPath':o(0x9b),'destPath':e+o(0x84),'framework':o(0x7f),'context':h,'config':f});f['template'][o(0xa2)]&&await this[o(0xa6)][o(0x7c)]({'srcPath':o(0x6b),'destPath':e+o(0x80),'context':Object[o(0xa0)]({},h,{'className':paramCase(b[o(0x9c)])}),'config':f});f['engines']['client']!==o(0x7f)&&f['engines'][o(0xab)]!==o(0x71)?(f[o(0x7c)]['css']&&await this[o(0xa6)][o(0x77)]({'filePath':e+'.'+f[o(0x78)]['js'],'content':'import\x20\x27./'+h[o(0x73)]+'.'+f[o(0x78)]['html']+o(0x91)+'import\x20\x27./'+h['fileName']+'.'+f['engines'][o(0xa2)]+'\x27;'}),!f[o(0x7c)][o(0xa2)]&&await this['fsi'][o(0x77)]({'filePath':e+'.'+f[o(0x78)]['js'],'content':o(0xa1)+h[o(0x73)]+'.'+f['engines']['html']+'\x27;'})):f['template'][o(0xa2)]&&await this[o(0xa6)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x78)]['js'],'content':o(0xa1)+h[o(0x73)]+'.'+f[o(0x78)][o(0xa2)]+'\x27;'});const i=b[o(0x7a)]?'/'+b[o(0x7a)]+'/':'/';g=''+c+i+h[o(0x73)]+'/'+h[o(0x73)],await this[o(0xa6)][o(0x68)](h[o(0x93)],f,g),!b[o(0x9a)]&&await a121f[o(0x76)](o(0x72),[i+b['resourceName']],b);}),g+'.'+f[n(0x78)]['js'];});function a121c(){const p=['theme','apply','.app-tests.js','installNpmPackage','page','ramda','1310673AtBWVi','4lEwKKc','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','constructor','hook/hook.js','/imports/ui/pages','store','features','toString','\x27;\x0a','hasOwnProperty','className','838835lRNzca','18GHnuOK','1016760zXKNwv','withValue','withHook','withTranslations','root','test/test.js','resourceName','string','10083NdEIlj','component','assign','import\x20\x27./','css','test','template/template.html','html','fsi','(((.+)+)+)+$','baseDir','search','pathFromProject','client','checkNpmPackage','.js','maka\x20g:page\x20todos/todos-item','injectTemplateModule','/imports/ui/','true','template/template.css','.html','2JKBedz','pages','1260672wBkzOM','layouts','vanilla','route','fileName','create','pathFromApp','processAndRunGenerator','injectAtBeginningOfFile','engines','1675130otoYvV','dir','components','template','relative','setTemplate','react','.css','42019xWXzRG'];a121c=function(){return p;};return a121c();}
@@ -1 +1 @@
1
- function a122c(){const n=['toString','constructor','673077KVKoSN','fsi','464742koBsgz','maka\x20g:publish\x20todos','engines','5uWBiBK','6SItEDe','818572yXTvXc','publish','apply','server/publish.','withValue','70LdytmL','search','4PCNuUb','resourceName','11YhcWon','templateContent','rewriteDestinationPathForEngine','12431196KSOoLm','tsx','getMakaProjectConfig','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','publish/publish.','injectAtEndOfFile','create','1692502GSQUyN','287631GJOqcD','1930264yKNcsh'];a122c=function(){return n;};return a122c();}const a122k=a122d;(function(a,b){const h=a122d,c=a();while(!![]){try{const d=parseInt(h(0xa8))/0x1+-parseInt(h(0x9b))/0x2*(-parseInt(h(0xac))/0x3)+-parseInt(h(0xb3))/0x4*(-parseInt(h(0xb1))/0x5)+parseInt(h(0xb2))/0x6*(-parseInt(h(0xa7))/0x7)+parseInt(h(0xa9))/0x8+-parseInt(h(0xae))/0x9*(-parseInt(h(0x99))/0xa)+parseInt(h(0x9d))/0xb*(-parseInt(h(0xa0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x40f26));const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a122d;if(c){const e=c[i(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const j=a122d;return a122a[j(0xaa)]()[j(0x9a)]('(((.+)+)+)+$')[j(0xaa)]()[j(0xab)](a122a)['search']('(((.+)+)+)+$');});function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x96;let f=c[d];return f;},a122d(a,b);}a122a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a122k(0xa6)]({'name':a122k(0xb4),'aliases':['p'],'usage':a122k(0xa3),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a122k(0xaf)]},async function(a,b){const l=a122k,c=this[l(0xad)][l(0xa2)]();await this['fsi'][l(0x98)](c,async()=>{const m=l,d={'name':b[m(0x9c)],'collection':paramCase(b[m(0x9c)]),'noRename':!![]};let e='js';c[m(0xb0)]['js']===m(0xa1)&&(e='ts');const f=this[m(0xad)][m(0x9f)]({'pathParts':[m(0x97)+c[m(0xb0)]['js']]}),g=this['fsi'][m(0x9e)]({'srcPath':m(0xa4)+e,'context':d,'config':c});await this[m(0xad)][m(0xa5)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a122k=a122d;(function(a,b){const h=a122d,c=a();while(!![]){try{const d=parseInt(h(0x8c))/0x1*(-parseInt(h(0x92))/0x2)+parseInt(h(0x93))/0x3*(parseInt(h(0x7b))/0x4)+parseInt(h(0x86))/0x5*(-parseInt(h(0x91))/0x6)+parseInt(h(0x85))/0x7*(parseInt(h(0x84))/0x8)+-parseInt(h(0x8d))/0x9*(-parseInt(h(0x94))/0xa)+-parseInt(h(0x90))/0xb+parseInt(h(0x83))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x59d31));function a122c(){const n=['templateContent','publish/publish.','6804666YJodrE','3408138CAEMGl','484730ZmBJIC','45gDJFDE','10920RVIhWB','resourceName','search','147916PSJFZG','toString','getMakaProjectConfig','withValue','fsi','constructor','server/publish.','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','6386844TgaFVq','56312FrRQPF','301YxuSsS','5TOXCrX','(((.+)+)+)+$','apply','rewriteDestinationPathForEngine','tsx','engines','1lLUVzS','3357GfFrrH'];a122c=function(){return n;};return a122c();}const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a122d;if(c){const e=c[i(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const j=a122d;return a122a[j(0x7c)]()[j(0x7a)](j(0x87))[j(0x7c)]()[j(0x80)](a122a)['search'](j(0x87));});a122a();import{paramCase}from'change-case';function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x79;let f=c[d];return f;},a122d(a,b);}import{Generator}from'../generator.js';Generator['create']({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a122k(0x82),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a122k,c=this[l(0x7f)][l(0x7d)]();await this[l(0x7f)][l(0x7e)](c,async()=>{const m=l,d={'name':b[m(0x79)],'collection':paramCase(b[m(0x79)]),'noRename':!![]};let e='js';c[m(0x8b)]['js']===m(0x8a)&&(e='ts');const f=this['fsi'][m(0x89)]({'pathParts':[m(0x81)+c[m(0x8b)]['js']]}),g=this[m(0x7f)][m(0x8e)]({'srcPath':m(0x8f)+e,'context':d,'config':c});await this[m(0x7f)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +1 @@
1
- const a123B=a123d;(function(a,b){const y=a123d,c=a();while(!![]){try{const d=parseInt(y(0xc6))/0x1*(parseInt(y(0xf4))/0x2)+-parseInt(y(0xe3))/0x3*(-parseInt(y(0xac))/0x4)+parseInt(y(0xb3))/0x5*(-parseInt(y(0xec))/0x6)+-parseInt(y(0xf1))/0x7+-parseInt(y(0xd7))/0x8*(parseInt(y(0xa6))/0x9)+-parseInt(y(0xe0))/0xa*(parseInt(y(0xfb))/0xb)+-parseInt(y(0xb8))/0xc*(-parseInt(y(0xa7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xdea42));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a123d;if(c){const e=c[z(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const A=a123d;return a123a[A(0xe5)]()[A(0xe7)](A(0xf3))[A(0xe5)]()[A(0xc8)](a123a)[A(0xe7)](A(0xf3));});a123a();import a123e from'path';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0xa6;let f=c[d];return f;},a123d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a123c(){const J=['features','resourceName','routes.js','32wxYkiU','baseDir','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','\x22*\x22','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','true','templateContent','<Router','client','3242030yenVsP','map','readFileLines','693vIeuBB','ssr','toString','pathFromProject','search','\x20to\x20','</Router>','imports','maka\x20g:route\x20todosIndex\x20todos','6gpGLvM','hooks','/imports/ui/','indexOf','getMakaProjectConfig','9148328dlMNxx','PrivateLayout','(((.+)+)+)+$','3068KSXVUb','info','rewriteDestinationPathForEngine','Invalid\x20directory\x20option\x20\x22','withTranslations','const\x20publicRoutes\x20=\x20(<>','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','11fllBOu','fileContainsString','1926027uXFOhU','3211DVjFyA','MasterLayout','replace','layouts','length','25592gbSqPe','only','\x20already\x20exists.\x20\x20Skipping.','lib','dir','join','withHook','1894010iosurh','fsi','/imports/ui/pages','create','Route\x20','47868yhlDQV','private','config','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','Valid\x20options\x20are:\x20','includes','toLowerCase','apply','startup','withValue','filter','vanilla','templateName','maka\x20g:route\x20pages/about','857aQOAtx','react','constructor','root','error','layout','maka\x20g:route\x20todosEdit\x20todos/:id/edit','pathFromApp','pop','const\x20privateRoutes\x20=\x20(<>','engines','\x0a\x09\x09','split','warn'];a123c=function(){return J;};return a123c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a123B(0xb6)]({'name':'route','aliases':aliases,'validOpts':['private',a123B(0xcb),a123B(0xad),'cwd',a123B(0xba),a123B(0xc9),a123B(0xb2),'url','baseDir'],'usage':a123B(0xdb),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a123B(0xeb),a123B(0xcc),a123B(0xd9),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a123B(0xc5)]},async function(a,b){const C=a123B;try{const c=[C(0xed),'components','pages',C(0xaa)];if(b[C(0xd8)]&&!c[C(0xbd)](b[C(0xd8)])){Log[C(0xca)](C(0xf7)+b[C(0xd8)]+'\x22'),Log['error'](C(0xbc)+c[C(0xb1)](',\x20'));throw new UsageError();}const d=this[C(0xb4)][C(0xf0)]();await this[C(0xb4)][C(0xc1)](d,async()=>{const D=C,f=b[D(0xb9)]??![];let g=b['resourceName'][D(0xd2)]('/')[D(0xce)]();if(!g){Log[D(0xca)](D(0xfa));throw new UsageError();}g=pascalCase(g);let h='/'+b[D(0xd5)];a[D(0xab)]>0x1&&(h='/'+a[D(0xc2)](function(n){return n!=='/';})[D(0xb1)]('/')[D(0xbe)]());h=h[D(0xa9)](/\/\//g,'/');b[D(0xcb)]&&(b['layout']=camelCase(b[D(0xcb)]));const i=b['baseDir']?D(0xee)+b['baseDir']:D(0xb5),j=a123e[D(0xb1)](i,b[D(0xb0)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||D(0xa8),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0xd0)][D(0xdf)],'newForm':![],'withTranslations':d[D(0xd4)][D(0xf8)]};f&&(k[D(0xcb)]=D(0xf2));let l,m;if(d[D(0xd0)]['client']===D(0xc7)){if(d[D(0xd0)][D(0xe4)]===D(0xdc)){const r=this['fsi']['pathFromApp']({'pathParts':[D(0xea),D(0xc0),D(0xaf),D(0xd6)]});l=this[D(0xb4)][D(0xf6)]({'pathParts':[r],'config':d});}else{const s=this['fsi'][D(0xcd)]({'pathParts':[D(0xea),'startup',D(0xdf),D(0xd6)]});l=this[D(0xb4)][D(0xf6)]({'pathParts':[s],'config':d});}const n=await this['fsi'][D(0xfc)](l,g);if(n){Log[D(0xd3)](D(0xb7)+g+D(0xae));return;}else{const t=this[D(0xb4)][D(0xe6)](l);Log[D(0xf5)]('Adding\x20route\x20'+g+D(0xe8)+l[D(0xa9)](t,''));}const o=this['fsi'][D(0xe2)](l)[D(0xe1)]((u,v)=>{const E=D;return u[E(0xbd)](E(0xbb))?v+0x1:null;})['filter'](u=>u!==null);let p=this['fsi'][D(0xe2)](l)['map']((u,v)=>{const F=D;return u[F(0xbd)](F(0xf9))?v+0x1:null;})['filter'](u=>u!==null),q=this['fsi'][D(0xe2)](l)[D(0xe1)]((u,v)=>{const G=D;return u[G(0xbd)](G(0xcf))?v+0x1:null;})[D(0xc2)](u=>u!==null);p[D(0xab)]>0x0&&q[D(0xab)]>0x0&&(k['newForm']=!![]);m=this[D(0xb4)][D(0xdd)]({'srcPath':'route/route.js','framework':D(0xc7),'context':k,'config':d});if(p[D(0xab)]>0x0||q['length']>0x0){this[D(0xb4)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0xab)]>0x0)q=this[D(0xb4)]['readFileLines'](l)['map']((u,v)=>{const H=D;return u[H(0xbd)](H(0xcf))?v+0x1:null;})[D(0xc2)](u=>u!==null),this[D(0xb4)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0xc4)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[D(0xb4)][D(0xe2)](l)[D(0xe1)]((u,v)=>{return u['includes']('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})['filter'](u=>u!==null),this[D(0xb4)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0xc4)]+'}','lineNumber':p[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const u=this[D(0xb4)][D(0xe2)](l)['map'](x=>{const I=D;return x[I(0xbd)](I(0xda));}),v=u[D(0xef)](!![])>-0x1,w=v?'<Route':D(0xe9);await this['fsi']['injectIntoFile']({'filePath':l,'content':D(0xd1)+m+'\x0a\x09\x09','begin':D(0xde),'end':w});}}else{if(d[D(0xd0)][D(0xdf)]===D(0xc3)){const x=this[D(0xb4)][D(0xcd)]({'pathParts':['imports',D(0xc0),D(0xdf),D(0xd6)]});l=this[D(0xb4)]['rewriteDestinationPathForEngine']({'pathParts':[x],'config':d}),m=this[D(0xb4)][D(0xdd)]({'srcPath':'route/route.js','context':k}),await this[D(0xb4)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
1
+ const a123B=a123d;(function(a,b){const y=a123d,c=a();while(!![]){try{const d=parseInt(y(0x145))/0x1*(parseInt(y(0x13c))/0x2)+-parseInt(y(0x153))/0x3+-parseInt(y(0x183))/0x4*(parseInt(y(0x17e))/0x5)+parseInt(y(0x18f))/0x6*(parseInt(y(0x13d))/0x7)+parseInt(y(0x188))/0x8+parseInt(y(0x180))/0x9+-parseInt(y(0x173))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xc5048));function a123c(){const K=['Valid\x20options\x20are:\x20','598229uoeEhp','rewriteDestinationPathForEngine','info','error','toLowerCase','Route\x20','client','replace','injectIntoFile','root','apply','const\x20publicRoutes\x20=\x20(<>','startup','injectAtEndOfFile','297108gzSVER','split','PrivateLayout','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','\x20already\x20exists.\x20\x20Skipping.','injectAfterLineNumber','hooks','engines','withValue','readFileLines','map','maka\x20g:route\x20todosIndex\x20todos','pages','templateContent','create','maka\x20g:route\x20todosEdit\x20todos/:id/edit','join','/imports/ui/','<Router','baseDir','toString','const\x20privateRoutes\x20=\x20(<>','indexOf','length','\x20to\x20','cwd','vanilla','Adding\x20route\x20','<Route','Scaffolding\x20for\x20a\x20Route.','fsi','warn','13024030bUSsME','constructor','maka\x20g:route\x20pages/about','lib','url','fileContainsString','pathFromProject','\x0a\x09\x09','newForm','react','search','3868305Difuqw','layouts','11119617pgPErk','pathFromApp','(((.+)+)+)+$','4FaawfO','templateName','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','includes','only','7839408DzENFb','dir','resourceName','imports','getMakaProjectConfig','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','private','26592RVugfe','route/route.js','routes.js','withTranslations','</Router>','2MrsXaN','266DqShty','filter','components','layout','route','/imports/ui/pages','ssr'];a123c=function(){return K;};return a123c();}const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a123d;if(c){const e=c[z(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const A=a123d;return a123a[A(0x167)]()[A(0x17d)](A(0x182))[A(0x167)]()[A(0x174)](a123a)[A(0x17d)](A(0x182));});a123a();import a123e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x13a;let f=c[d];return f;},a123d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a123B(0x161)]({'name':a123B(0x141),'aliases':aliases,'validOpts':[a123B(0x18e),'layout',a123B(0x187),a123B(0x16c),'config',a123B(0x14e),'withHook',a123B(0x177),a123B(0x166)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a123B(0x170),'examples':[a123B(0x15e),a123B(0x162),a123B(0x18d),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a123B(0x175)]},async function(a,b){const C=a123B;try{const c=[C(0x159),C(0x13f),C(0x15f),C(0x17f)];if(b['baseDir']&&!c[C(0x186)](b[C(0x166)])){Log[C(0x148)]('Invalid\x20directory\x20option\x20\x22'+b[C(0x166)]+'\x22'),Log[C(0x148)](C(0x144)+c[C(0x163)](',\x20'));throw new UsageError();}const d=this[C(0x171)][C(0x18c)]();await this[C(0x171)][C(0x15b)](d,async()=>{const D=C,f=b[D(0x18e)]??![];let g=b[D(0x18a)][D(0x154)]('/')['pop']();if(!g){Log[D(0x148)](D(0x185));throw new UsageError();}g=pascalCase(g);let h='/'+b[D(0x18a)];a[D(0x16a)]>0x1&&(h='/'+a[D(0x13e)](function(n){return n!=='/';})[D(0x163)]('/')[D(0x149)]());h=h[D(0x14c)](/\/\//g,'/');b[D(0x140)]&&(b[D(0x140)]=camelCase(b[D(0x140)]));const i=b[D(0x166)]?D(0x164)+b[D(0x166)]:D(0x142),j=a123e['join'](i,b[D(0x189)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x140)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d['engines'][D(0x14b)],'newForm':![],'withTranslations':d['features'][D(0x13a)]};f&&(k[D(0x140)]=D(0x155));let l,m;if(d[D(0x15a)][D(0x14b)]==='react'){if(d[D(0x15a)][D(0x143)]==='true'){const r=this[D(0x171)][D(0x181)]({'pathParts':[D(0x18b),D(0x151),D(0x176),D(0x191)]});l=this[D(0x171)][D(0x146)]({'pathParts':[r],'config':d});}else{const s=this[D(0x171)][D(0x181)]({'pathParts':[D(0x18b),D(0x151),D(0x14b),D(0x191)]});l=this[D(0x171)][D(0x146)]({'pathParts':[s],'config':d});}const n=await this[D(0x171)][D(0x178)](l,g);if(n){Log['warn'](D(0x14a)+g+D(0x157));return;}else{const t=this[D(0x171)][D(0x179)](l);Log[D(0x147)](D(0x16e)+g+D(0x16b)+l[D(0x14c)](t,''));}const o=this['fsi'][D(0x15c)](l)[D(0x15d)]((u,v)=>{const E=D;return u[E(0x186)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})[D(0x13e)](u=>u!==null);let p=this[D(0x171)][D(0x15c)](l)[D(0x15d)]((u,v)=>{const F=D;return u[F(0x186)](F(0x150))?v+0x1:null;})[D(0x13e)](u=>u!==null),q=this[D(0x171)][D(0x15c)](l)[D(0x15d)]((u,v)=>{const G=D;return u['includes'](G(0x168))?v+0x1:null;})[D(0x13e)](u=>u!==null);p['length']>0x0&&q[D(0x16a)]>0x0&&(k[D(0x17b)]=!![]);m=this[D(0x171)][D(0x160)]({'srcPath':D(0x190),'framework':D(0x17c),'context':k,'config':d});if(p[D(0x16a)]>0x0||q[D(0x16a)]>0x0){this[D(0x171)][D(0x158)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x16a)]>0x0)q=this[D(0x171)][D(0x15c)](l)[D(0x15d)]((u,v)=>{const H=D;return u[H(0x186)](H(0x168))?v+0x1:null;})[D(0x13e)](u=>u!==null),this['fsi'][D(0x158)]({'filePath':l,'content':'\x09{'+k[D(0x184)]+'}','lineNumber':q[0x0]});else p[D(0x16a)]>0x0?(p=this[D(0x171)][D(0x15c)](l)[D(0x15d)]((u,v)=>{const I=D;return u[I(0x186)](I(0x150))?v+0x1:null;})[D(0x13e)](u=>u!==null),this[D(0x171)][D(0x158)]({'filePath':l,'content':'\x09{'+k[D(0x184)]+'}','lineNumber':p[0x0]})):Log[D(0x172)](D(0x156)+l);}else{const u=this[D(0x171)]['readFileLines'](l)[D(0x15d)](x=>{const J=D;return x[J(0x186)]('\x22*\x22');}),v=u[D(0x169)](!![])>-0x1,w=v?D(0x16f):D(0x13b);await this[D(0x171)][D(0x14d)]({'filePath':l,'content':D(0x17a)+m+D(0x17a),'begin':D(0x165),'end':w});}}else{if(d[D(0x15a)]['client']===D(0x16d)){const x=this['fsi'][D(0x181)]({'pathParts':['imports',D(0x151),D(0x14b),D(0x191)]});l=this[D(0x171)][D(0x146)]({'pathParts':[x],'config':d}),m=this[D(0x171)]['templateContent']({'srcPath':'route/route.js','context':k}),await this[D(0x171)][D(0x152)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x148)](f);}});
@@ -1 +1 @@
1
- function a124c(){const o=['imports','(((.+)+)+)+$','create','fsi','checkNpmPackage','195062bmgBtQ','maka\x20{generate,\x20g}:{service}\x20<resource-name>','lib','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','engines','1701440qzFafO','pathFromApp','tsx','287982jCJmsp','service/logger/logger.js','template','toString','installNpmPackage','36itHRbh','logger','852768QaOxYd','496IesYmx','387042bLEdGH','maka\x20g:svc\x20service-logger\x20--type=logger','svc','winston','type','4XDHEYo','resourceName','search','764412myyulV'];a124c=function(){return o;};return a124c();}const a124l=a124d;(function(a,b){const j=a124d,c=a();while(!![]){try{const d=-parseInt(j(0x115))/0x1*(-parseInt(j(0x10c))/0x2)+parseInt(j(0x107))/0x3+parseInt(j(0x10f))/0x4+-parseInt(j(0x11a))/0x5+-parseInt(j(0x11d))/0x6+-parseInt(j(0x105))/0x7+parseInt(j(0x106))/0x8*(parseInt(j(0x122))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x30ebc));const a124b=(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;};}()),a124a=a124b(this,function(){const k=a124d;return a124a[k(0x120)]()[k(0x10e)](k(0x111))[k(0x120)]()['constructor'](a124a)[k(0x10e)](k(0x111));});a124a();function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x105;let f=c[d];return f;},a124d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a124l(0x112)]({'name':'service','aliases':[a124l(0x109)],'usage':a124l(0x116),'shortDesc':a124l(0x118),'requiredOpts':[{'name':a124l(0x10b),'values':[a124l(0x123)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a124l(0x108)]},async function(a,b){const m=a124l;try{const c=this[m(0x113)]['getMakaProjectConfig']();await this[m(0x113)]['withValue'](c,async()=>{const n=m,d=this['fsi'][n(0x11b)]({}),f=paramCase(b[n(0x10d)]),g={'name':pascalCase(b[n(0x10d)]),'fileName':f,'camelCase':camelCase(b[n(0x10d)]),'type':b[n(0x10b)],'engine':c[n(0x119)]['js'],'noRename':!![]};let h='js';c[n(0x119)]['js']===n(0x11c)&&(h='ts');if(b['type']===n(0x123)){!this[n(0x113)][n(0x114)](n(0x10a))&&await this[n(0x113)][n(0x121)]('winston\x20setimmediate',{'cwd':d,'msg':'Installing\x20winston'});const i=this[n(0x113)][n(0x11b)]({'pathParts':[n(0x110),'startup',n(0x117),'services',f+'.'+h]});await this[n(0x113)][n(0x11f)]({'srcPath':n(0x11e),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
1
+ const a124l=a124d;(function(a,b){const j=a124d,c=a();while(!![]){try{const d=parseInt(j(0x201))/0x1+-parseInt(j(0x207))/0x2*(-parseInt(j(0x204))/0x3)+-parseInt(j(0x206))/0x4*(-parseInt(j(0x1f9))/0x5)+parseInt(j(0x20d))/0x6+parseInt(j(0x1fb))/0x7+-parseInt(j(0x1f7))/0x8+parseInt(j(0x1ff))/0x9*(-parseInt(j(0x1f5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x44d7a));const a124b=(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;};}()),a124a=a124b(this,function(){const k=a124d;return a124a[k(0x210)]()[k(0x1fc)](k(0x202))[k(0x210)]()['constructor'](a124a)['search']('(((.+)+)+)+$');});function a124c(){const o=['fsi','2031ZcoAmz','imports','4JZbAWb','182eDDmOa','installNpmPackage','logger','withValue','winston','service/logger/logger.js','2963430GKQDEB','service','startup','toString','error','type','Installing\x20winston','engines','getMakaProjectConfig','maka\x20g:svc\x20service-logger\x20--type=logger','8706260UVQjqV','pathFromApp','1400280oTjVbV','services','2065970ASemyL','resourceName','1176833uGvnIZ','search','template','lib','9BHaLUZ','maka\x20{generate,\x20g}:{service}\x20<resource-name>','190814XAYVEy','(((.+)+)+)+$'];a124c=function(){return o;};return a124c();}a124a();function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a124d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a124l(0x20e),'aliases':['svc'],'usage':a124l(0x200),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a124l(0x1f0),'values':[a124l(0x209)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a124l(0x1f4)]},async function(a,b){const m=a124l;try{const c=this[m(0x203)][m(0x1f3)]();await this[m(0x203)][m(0x20a)](c,async()=>{const n=m,d=this[n(0x203)][n(0x1f6)]({}),f=paramCase(b[n(0x1fa)]),g={'name':pascalCase(b[n(0x1fa)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[n(0x1f2)]['js']==='tsx'&&(h='ts');if(b['type']===n(0x209)){!this[n(0x203)]['checkNpmPackage'](n(0x20b))&&await this[n(0x203)][n(0x208)]('winston\x20setimmediate',{'cwd':d,'msg':n(0x1f1)});const i=this['fsi'][n(0x1f6)]({'pathParts':[n(0x205),n(0x20f),n(0x1fe),n(0x1f8),f+'.'+h]});await this[n(0x203)][n(0x1fd)]({'srcPath':n(0x20c),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x211)](d);}});
@@ -1 +1 @@
1
- function a125d(a,b){var c=a125c();return a125d=function(d,e){d=d-0x164;var f=c[d];return f;},a125d(a,b);}(function(a,b){var f=a125d,c=a();while(!![]){try{var d=parseInt(f(0x170))/0x1*(-parseInt(f(0x165))/0x2)+-parseInt(f(0x16f))/0x3+parseInt(f(0x166))/0x4+parseInt(f(0x16d))/0x5*(parseInt(f(0x16a))/0x6)+-parseInt(f(0x164))/0x7*(-parseInt(f(0x167))/0x8)+-parseInt(f(0x16e))/0x9+parseInt(f(0x168))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x8f705));function a125c(){var i=['6087717TSMzeo','42531fsXCkw','1072871bodhNN','search','49FoGinV','2AyxEfl','2501472SmBjaY','836296hazBLZ','929470MbEPQC','apply','4932FDaMYs','(((.+)+)+)+$','toString','5480LGeWCw'];a125c=function(){return i;};return a125c();}var a125b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a125d;if(c){var e=c[g(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){var h=a125d;return a125a[h(0x16c)]()[h(0x171)](h(0x16b))[h(0x16c)]()['constructor'](a125a)[h(0x171)](h(0x16b));});a125a();import'./translation.js';import'./openssl.js';
1
+ function a125d(a,b){var c=a125c();return a125d=function(d,e){d=d-0x8f;var f=c[d];return f;},a125d(a,b);}(function(a,b){var f=a125d,c=a();while(!![]){try{var d=parseInt(f(0x95))/0x1*(parseInt(f(0x93))/0x2)+parseInt(f(0x8f))/0x3*(parseInt(f(0x92))/0x4)+parseInt(f(0x9d))/0x5*(-parseInt(f(0x98))/0x6)+parseInt(f(0x99))/0x7*(-parseInt(f(0x9e))/0x8)+-parseInt(f(0x90))/0x9*(-parseInt(f(0x97))/0xa)+-parseInt(f(0x96))/0xb+-parseInt(f(0x9b))/0xc*(parseInt(f(0x91))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xe7d92));var a125b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a125d;if(c){var e=c[g(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){var h=a125d;return a125a[h(0x9a)]()['search'](h(0x94))['toString']()['constructor'](a125a)['search'](h(0x94));});a125a();import'./translation.js';import'./openssl.js';function a125c(){var i=['10riZDkF','(((.+)+)+)+$','225067ieZOXi','1293721clavxU','152590mDjZNu','1193958qnisAY','9332379vUqHOP','toString','1402956BtKXhI','apply','5HTcGjk','8byYFVw','1398xRkBhc','423AweGcC','39pljSNF','9508DgDAHw'];a125c=function(){return i;};return a125c();}
@@ -1 +1 @@
1
- const a126k=a126d;(function(a,b){const i=a126d,c=a();while(!![]){try{const d=parseInt(i(0x140))/0x1*(parseInt(i(0x148))/0x2)+-parseInt(i(0x13a))/0x3+parseInt(i(0x13c))/0x4*(-parseInt(i(0x150))/0x5)+parseInt(i(0x142))/0x6+-parseInt(i(0x14b))/0x7*(parseInt(i(0x151))/0x8)+-parseInt(i(0x14c))/0x9+parseInt(i(0x14a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x88594));const a126b=(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;};}()),a126a=a126b(this,function(){const j=a126d;return a126a[j(0x14f)]()['search']('(((.+)+)+)+$')[j(0x14f)]()['constructor'](a126a)[j(0x139)]('(((.+)+)+)+$');});a126a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a126c(){const n=['sslconfig','join','fsi','env','create','1676594gcvTda','service','15259010JulFyU','31962QJNUEy','8881443yTisfY','template','openssl/openssl.conf','toString','17985WRHIgc','1720ywIWzI','search','10965wGbdFd','Generate\x20a\x20new\x20openssl\x20config\x20file','484wWHluz','openssl.conf','withValue','error','1cBadId','maka\x20{generate,\x20g}:sslconfig','3610170qQQbXv'];a126c=function(){return n;};return a126c();}function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x139;let f=c[d];return f;},a126d(a,b);}import a126e from'path';Generator[a126k(0x147)]({'name':a126k(0x143),'usage':a126k(0x141),'shortDesc':a126k(0x13b),'noNeedResource':!![],'requiredOpts':[a126k(0x146)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const l=a126k;try{const c=await this[l(0x145)]['getMakaProjectConfig'](),d=await this[l(0x145)]['getGlobalConfig'](),f=this['fsi']['getAppConfigPath'](b[l(0x146)]),g=a126e[l(0x144)](f,'_keys',l(0x13d));await this[l(0x145)][l(0x13e)](c,async()=>{const m=l,h={'app':d['appName'],'noRename':!![]};await this[m(0x145)][m(0x14d)]({'srcPath':m(0x14e),'destPath':g,'framework':m(0x149),'context':h,'config':c});});}catch(h){Log[l(0x13f)](h);}});
1
+ const a126l=a126d;(function(a,b){const i=a126d,c=a();while(!![]){try{const d=parseInt(i(0x11c))/0x1*(parseInt(i(0x121))/0x2)+parseInt(i(0x131))/0x3*(-parseInt(i(0x135))/0x4)+parseInt(i(0x129))/0x5+-parseInt(i(0x123))/0x6+parseInt(i(0x11f))/0x7+-parseInt(i(0x12b))/0x8+-parseInt(i(0x136))/0x9*(parseInt(i(0x138))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x64574));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a126d;if(c){const e=c[j(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const k=a126d;return a126a[k(0x11b)]()[k(0x127)](k(0x12a))[k(0x11b)]()[k(0x124)](a126a)['search'](k(0x12a));});function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x11b;let f=c[d];return f;},a126d(a,b);}a126a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a126e from'path';Generator['create']({'name':a126l(0x128),'usage':a126l(0x11e),'shortDesc':a126l(0x122),'noNeedResource':!![],'requiredOpts':[a126l(0x12e)],'examples':[a126l(0x12d)],'validOpts':[]},async function(a,b){const m=a126l;try{const c=await this[m(0x134)][m(0x132)](),d=await this['fsi'][m(0x126)](),f=this[m(0x134)]['getAppConfigPath'](b[m(0x12e)]),g=a126e[m(0x12f)](f,m(0x12c),m(0x125));await this[m(0x134)]['withValue'](c,async()=>{const n=m,h={'app':d[n(0x11d)],'noRename':!![]};await this['fsi'][n(0x130)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x120),'context':h,'config':c});});}catch(h){Log[m(0x133)](h);}});function a126c(){const o=['service','20AiNmaA','Generate\x20a\x20new\x20openssl\x20config\x20file','500280rpYFFC','constructor','openssl.conf','getGlobalConfig','search','sslconfig','3524205XkphZj','(((.+)+)+)+$','4850560NVtuSD','_keys','maka\x20g:sslconfig\x20--env\x20dev','env','join','template','24zDVQbK','getMakaProjectConfig','error','fsi','305588ZVUrEc','1809vZzGBx','apply','20620ieTfEI','toString','69053lOOqBv','appName','maka\x20{generate,\x20g}:sslconfig','5116741NiUttN'];a126c=function(){return o;};return a126c();}
@@ -1 +1 @@
1
- const a127z=a127d;function a127c(){const C=['toString','translations','getMakaProjectConfig','i18next','i18next\x20i18next-browser-languagedetector\x20react-i18next','pathFromApp','\x20}\x20from\x20\x27./','import\x20\x27../lib/services/translations/i18n\x27;','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','Locale\x20already\x20defined:\x20','true','maka\x20g:translation\x20--lang=en\x20(default)','1520796CRQuTW','267teZbqQ','grep','server','import\x20\x27../lib/services/translations/i18n\x27;\x0a','index.','client','3990dpxIpR','service','i18n/i18n.js','checkNpmPackage','maka\x20{generate,\x20g}:translation','isFile','template','services','features.withTranslations','getGlobalConfig','translation','3686711rHvqmI','error','injectAtEndOfFile','3634tFLmLi','injectAtBeginningOfFile','installNpmPackage','setProjectConfig','lang','Locale\x20already\x20exported:\x20','3IsESve','fsi','i18n.js','6dPctgr','i18n/locales.js','13mBJqaZ','appName','maka\x20g:translation\x20--lang=de','15541872NpUGJY','rewriteDestinationPathForEngine','export\x20{\x20default\x20as\x20','startup','constructor','5764sucPSx','1769864CIhIdf','15650Mxvvnm','engines','readFileSync','lib','search','maka\x20g:translation\x20--lang=fr','27xMIoMV','create','ssr','exit','imports','findAppDirectory','withValue'];a127c=function(){return C;};return a127c();}(function(a,b){const x=a127d,c=a();while(!![]){try{const d=-parseInt(x(0x184))/0x1*(-parseInt(x(0x198))/0x2)+-parseInt(x(0x19e))/0x3*(parseInt(x(0x183))/0x4)+-parseInt(x(0x18a))/0x5+-parseInt(x(0x15d))/0x6*(-parseInt(x(0x195))/0x7)+-parseInt(x(0x168))/0x8*(parseInt(x(0x16f))/0x9)+parseInt(x(0x169))/0xa*(-parseInt(x(0x167))/0xb)+-parseInt(x(0x162))/0xc*(-parseInt(x(0x15f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x6bf64));const a127b=(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;};}()),a127a=a127b(this,function(){const y=a127d;return a127a[y(0x176)]()[y(0x16d)]('(((.+)+)+)+$')[y(0x176)]()[y(0x166)](a127a)['search']('(((.+)+)+)+$');});a127a();function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x15b;let f=c[d];return f;},a127d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a127e from'fs';Generator[a127z(0x170)]({'name':a127z(0x194),'usage':a127z(0x18e),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a127z(0x19c),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a127z(0x17f),'examples':[a127z(0x182),a127z(0x16e),a127z(0x161)],'validOpts':[]},async function(a,b){const A=a127z;try{const c=this['fsi'][A(0x178)](),d=this[A(0x15b)][A(0x193)](),f=this[A(0x15b)][A(0x174)]();await this[A(0x15b)][A(0x175)](c,async()=>{const B=A;try{!b['lang']&&(b[B(0x19c)]='en');!b['root']&&!this[B(0x15b)][B(0x18d)](B(0x179))&&(Log['warn'](B(0x17e)),this['fsi'][B(0x19a)](B(0x17a),{'cwd':f}),this[B(0x15b)][B(0x19b)](B(0x192),!![]));const g=this[B(0x15b)]['pathFromApp']({'pathParts':[B(0x173),B(0x165),B(0x189),'index.js']}),h=this[B(0x15b)][B(0x163)]({'pathParts':[g],'config':c}),i=this['fsi'][B(0x185)](a127e[B(0x16b)](h)[B(0x176)](),B(0x17d))[0x0]&&!![];if(c[B(0x16a)][B(0x171)]===B(0x181)){!i&&this[B(0x15b)][B(0x199)]({'filePath':h,'content':B(0x187)});const t=this['fsi'][B(0x17b)]({'pathParts':[B(0x173),B(0x165),B(0x186),'index.js']}),u=this[B(0x15b)][B(0x163)]({'pathParts':[t],'config':c}),v=this[B(0x15b)][B(0x185)](a127e[B(0x16b)](u)[B(0x176)](),B(0x17d))[0x0]&&!![];!v&&this[B(0x15b)][B(0x199)]({'filePath':u,'content':B(0x187)});}else!i&&this[B(0x15b)]['injectAtBeginningOfFile']({'filePath':h,'content':B(0x187)});const j={'app':d[B(0x160)],'config':c},k=this['fsi'][B(0x17b)]({'pathParts':[B(0x173),B(0x165),B(0x16c),B(0x191),B(0x177),B(0x15c)]}),l=this[B(0x15b)]['isFile'](this[B(0x15b)][B(0x163)]({'pathParts':[k],'config':c}));!l&&await this['fsi'][B(0x190)]({'srcPath':B(0x18c),'destPath':k,'framework':B(0x18b),'context':j,'config':c});const m=this[B(0x15b)][B(0x17b)]({'pathParts':['imports',B(0x165),B(0x16c),B(0x191),'translations','locales',b['lang']+'.js']}),n=this[B(0x15b)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[B(0x15b)][B(0x18f)](n);!o?await this[B(0x15b)][B(0x190)]({'srcPath':B(0x15e),'destPath':m,'framework':'service','context':j,'config':c}):Log['warn'](B(0x180)+n);const p=this[B(0x15b)][B(0x17b)]({'pathParts':[B(0x173),'startup',B(0x16c),B(0x191),B(0x177),'locales',B(0x188)+c[B(0x16a)]['js']]}),q=this[B(0x15b)][B(0x163)]({'pathParts':[p],'config':c}),r=this[B(0x15b)][B(0x18f)](q);!r&&await this[B(0x15b)][B(0x190)]({'srcPath':'i18n/index.js','destPath':p,'framework':B(0x18b),'context':j,'config':c});const s=this[B(0x15b)][B(0x185)](a127e['readFileSync'](p)[B(0x176)](),'default\x20as\x20'+b[B(0x19c)])[0x0]&&!![];!s?await this[B(0x15b)][B(0x197)]({'filePath':p,'content':B(0x164)+b['lang']+B(0x17c)+b['lang']+'\x27;'}):Log['warn'](B(0x19d)+p);}catch(w){Log[B(0x196)](w),process[B(0x172)](0x1);}});}catch(g){Log[A(0x196)](g),process[A(0x172)](0x1);}});
1
+ const a127A=a127d;function a127c(){const D=['engines','isFile','1755542lqExwe','Locale\x20already\x20defined:\x20','pathFromApp','index.js','locales','1884964noDnNR','3489025tDazSG','import\x20\x27../lib/services/translations/i18n\x27;\x0a','fsi','rewriteDestinationPathForEngine','ssr','setProjectConfig','import\x20\x27../lib/services/translations/i18n\x27;','root','exit','server','757127CmPfoK','export\x20{\x20default\x20as\x20','maka\x20{generate,\x20g}:translation','i18n/index.js','withValue','9SCqrVz','44258751TWXuET','lib','6vmBsRR','error','.js','injectAtEndOfFile','readFileSync','checkNpmPackage','getGlobalConfig','maka\x20g:translation\x20--lang=de','i18next\x20i18next-browser-languagedetector\x20react-i18next','122692nSSVfr','appName','getMakaProjectConfig','client','imports','constructor','true','startup','injectAtBeginningOfFile','10722072guupsl','service','maka\x20g:translation\x20--lang=fr','Generate\x20a\x20new\x20locale\x20translation','warn','toString','translations','search','features.withTranslations','apply','findAppDirectory','create','grep','maka\x20g:translation\x20--lang=en\x20(default)','default\x20as\x20','template','lang','services','\x20}\x20from\x20\x27./','Locale\x20already\x20exported:\x20'];a127c=function(){return D;};return a127c();}function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xbe;let f=c[d];return f;},a127d(a,b);}(function(a,b){const x=a127d,c=a();while(!![]){try{const d=-parseInt(x(0xc2))/0x1+-parseInt(x(0xe3))/0x2+-parseInt(x(0xd7))/0x3*(parseInt(x(0xc7))/0x4)+-parseInt(x(0xc8))/0x5*(-parseInt(x(0xda))/0x6)+-parseInt(x(0xd2))/0x7+-parseInt(x(0xec))/0x8+parseInt(x(0xd8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0xe49dd));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a127d;if(c){const e=c[y(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const z=a127d;return a127a[z(0xf1)]()['search']('(((.+)+)+)+$')[z(0xf1)]()[z(0xe8)](a127a)[z(0xf3)]('(((.+)+)+)+$');});a127a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a127e from'fs';Generator[a127A(0xf7)]({'name':'translation','usage':a127A(0xd4),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a127A(0xfc),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a127A(0xef),'description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':[a127A(0xf9),a127A(0xee),a127A(0xe1)],'validOpts':[]},async function(a,b){const B=a127A;try{const c=this['fsi'][B(0xe5)](),d=this[B(0xca)][B(0xe0)](),f=this[B(0xca)][B(0xf6)]();await this[B(0xca)][B(0xd6)](c,async()=>{const C=B;try{!b[C(0xfc)]&&(b['lang']='en');!b[C(0xcf)]&&!this[C(0xca)][C(0xdf)]('i18next')&&(Log[C(0xf0)]('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this[C(0xca)]['installNpmPackage'](C(0xe2),{'cwd':f}),this[C(0xca)][C(0xcd)](C(0xf4),!![]));const g=this[C(0xca)][C(0xc4)]({'pathParts':[C(0xe7),C(0xea),C(0xe6),C(0xc5)]}),h=this['fsi'][C(0xcb)]({'pathParts':[g],'config':c}),i=this['fsi'][C(0xf8)](a127e[C(0xde)](h)['toString'](),C(0xce))[0x0]&&!![];if(c[C(0xc0)][C(0xcc)]===C(0xe9)){!i&&this['fsi'][C(0xeb)]({'filePath':h,'content':C(0xc9)});const t=this[C(0xca)][C(0xc4)]({'pathParts':[C(0xe7),C(0xea),C(0xd1),'index.js']}),u=this[C(0xca)][C(0xcb)]({'pathParts':[t],'config':c}),v=this['fsi']['grep'](a127e[C(0xde)](u)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0xca)][C(0xeb)]({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0xca)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0xc9)});const j={'app':d[C(0xe4)],'config':c},k=this[C(0xca)][C(0xc4)]({'pathParts':['imports','startup',C(0xd9),C(0xfd),C(0xf2),'i18n.js']}),l=this['fsi'][C(0xc1)](this[C(0xca)][C(0xcb)]({'pathParts':[k],'config':c}));!l&&await this[C(0xca)]['template']({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0xed),'context':j,'config':c});const m=this[C(0xca)][C(0xc4)]({'pathParts':[C(0xe7),C(0xea),C(0xd9),C(0xfd),C(0xf2),C(0xc6),b['lang']+C(0xdc)]}),n=this[C(0xca)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0xca)]['isFile'](n);!o?await this['fsi'][C(0xfb)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0xed),'context':j,'config':c}):Log['warn'](C(0xc3)+n);const p=this['fsi'][C(0xc4)]({'pathParts':[C(0xe7),'startup',C(0xd9),C(0xfd),C(0xf2),C(0xc6),'index.'+c[C(0xc0)]['js']]}),q=this[C(0xca)][C(0xcb)]({'pathParts':[p],'config':c}),r=this[C(0xca)][C(0xc1)](q);!r&&await this[C(0xca)]['template']({'srcPath':C(0xd5),'destPath':p,'framework':C(0xed),'context':j,'config':c});const s=this[C(0xca)][C(0xf8)](a127e['readFileSync'](p)[C(0xf1)](),C(0xfa)+b[C(0xfc)])[0x0]&&!![];!s?await this[C(0xca)][C(0xdd)]({'filePath':p,'content':C(0xd3)+b[C(0xfc)]+C(0xbe)+b[C(0xfc)]+'\x27;'}):Log['warn'](C(0xbf)+p);}catch(w){Log[C(0xdb)](w),process[C(0xd0)](0x1);}});}catch(g){Log[B(0xdb)](g),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=-parseInt(j(0x148))/0x1+-parseInt(j(0x146))/0x2+-parseInt(j(0x14d))/0x3+parseInt(j(0x149))/0x4*(-parseInt(j(0x14c))/0x5)+-parseInt(j(0x14a))/0x6+parseInt(j(0x13e))/0x7*(parseInt(j(0x145))/0x8)+parseInt(j(0x140))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xba2fb));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0x153)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0x144)]()['search'](l(0x141))[l(0x144)]()['constructor'](a128a)['search'](l(0x141));});a128a();import a128e from'minimist';import a128f from'os';import a128g from'path';import a128h from'humps';import a128i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a128m(0x14f)]),__dirname=a128g[a128m(0x14b)](__filename);function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x13e;let f=c[d];return f;},a128d(a,b);}global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a128f[a128m(0x152)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a128m(0x14e)](total_mem_in_mb),process['env']['TOOL_NODE_FLAGS']='--max-old-space-size='+total_mem_in_mb,process[a128m(0x151)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process['env'][a128m(0x13f)]='1';const argv=a128e(process[a128m(0x147)][a128m(0x150)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a128m(0x143)](argv));delete deepCopyArgv['_'];const opts=a128h['camelizeKeys'](deepCopyArgv);a128i[a128m(0x142)](args,opts);function a128c(){const n=['NODE_NO_WARNINGS','30273921pScrmp','(((.+)+)+)+$','run','stringify','toString','561944PDuMuK','2670098cexuPI','argv','731458OwNONY','16QgBwaa','2060070HXEoOb','dirname','1557680lEofoh','839313srWJdJ','floor','url','slice','env','totalmem','apply','133jLpBJM'];a128c=function(){return n;};return a128c();}
1
+ const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=-parseInt(j(0x88))/0x1+parseInt(j(0x89))/0x2+parseInt(j(0x94))/0x3+parseInt(j(0x8c))/0x4*(-parseInt(j(0x9b))/0x5)+parseInt(j(0x99))/0x6*(parseInt(j(0x8f))/0x7)+-parseInt(j(0x9a))/0x8+-parseInt(j(0x96))/0x9*(parseInt(j(0x9c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x595b7));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0x90)]()[l(0x8a)]('(((.+)+)+)+$')[l(0x90)]()[l(0x91)](a128a)[l(0x8a)](l(0x98));});a128a();import a128e from'minimist';import a128f from'os';import a128g from'path';import a128h from'humps';import a128i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a128g[a128m(0x9d)](__filename);global['MAKA_COMMAND_PATH']=__dirname;function a128c(){const n=['constructor','apply','parse','2184852vgEPNM','NODE_NO_WARNINGS','27yjrpwL','env','(((.+)+)+)+$','2240274pBslsq','3376848HXtydT','1555grFole','608070EROkOp','dirname','argv','TOOL_NODE_FLAGS','226297ICahzM','1354098zhttYt','search','totalmem','7484iFYJNt','floor','camelizeKeys','7tLMvwb','toString'];a128c=function(){return n;};return a128c();}const total_memory=a128f[a128m(0x8b)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a128m(0x8d)](total_mem_in_mb),process['env'][a128m(0x9f)]='--max-old-space-size='+total_mem_in_mb,process[a128m(0x97)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process[a128m(0x97)][a128m(0x95)]='1';const argv=a128e(process[a128m(0x9e)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a128m(0x93)](JSON['stringify'](argv));function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x88;let f=c[d];return f;},a128d(a,b);}delete deepCopyArgv['_'];const opts=a128h[a128m(0x8e)](deepCopyArgv);a128i['run'](args,opts);
@@ -1,14 +1,14 @@
1
1
  import { Meteor } from 'meteor/meteor';
2
2
  import MakaRest, { Codes } from 'meteor/maka:rest';
3
3
 
4
- const <%= name %>ApiV1 = new MakaRest({
5
- version: 'v1',
4
+ const <%= name %>Api = new MakaRest({
6
5
  apiPath: '<%= fileName %>',
6
+ version: '<%= apiVersion %>',
7
7
  prettyJson: Meteor.isDevelopment
8
8
  });
9
9
 
10
-
11
- <%= name %>ApiV1.addRoute('status', {
10
+ // maps to /api/<%= apiVersion %>/<%= fileName %>/status
11
+ <%= name %>Api.addRoute('status', {
12
12
  get() {
13
13
  return Codes.success200({ message: 'OK' });
14
14
  }
@@ -1,13 +1,14 @@
1
1
  import { Meteor } from 'meteor/meteor';
2
2
  import MakaRest, { Codes } from 'meteor/maka:rest';
3
3
 
4
- const <%= name %>ApiV1 = new MakaRest({
5
- version: 'v1',
4
+ const <%= name %>Api = new MakaRest({
6
5
  apiPath: '<%= fileName %>',
6
+ version: '<%= apiVersion %>',
7
7
  prettyJson: Meteor.isDevelopment
8
8
  });
9
9
 
10
- <%= name %>ApiV1.addRoute('status', {
10
+ // maps to /api/<%= apiVersion %>/<%= fileName %>/status
11
+ <%= name %>Api.addRoute('status', {
11
12
  get() {
12
13
  return Codes.success200({ message: 'OK' });
13
14
  }