@maka/maka-cli 4.9.13 → 4.9.15

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 (155) 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 +6 -1
  131. package/bundle/obf/src/templates/meteor/api/api.js.ts +6 -1
  132. package/bundle/obf/src/templates/meteor/api/methods.js +5 -6
  133. package/bundle/obf/src/templates/meteor/api/methods.js.ts +5 -5
  134. package/bundle/obf/src/templates/meteor/api/register-api.js +2 -2
  135. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +2 -2
  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
@@ -1 +1 @@
1
- const a115z=a115d;function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a115d(a,b);}(function(a,b){const x=a115d,c=a();while(!![]){try{const d=-parseInt(x(0x1f8))/0x1+-parseInt(x(0x1fa))/0x2*(-parseInt(x(0x1e1))/0x3)+-parseInt(x(0x1df))/0x4*(-parseInt(x(0x1f5))/0x5)+parseInt(x(0x1ee))/0x6+-parseInt(x(0x1ef))/0x7*(-parseInt(x(0x1db))/0x8)+-parseInt(x(0x1d8))/0x9+-parseInt(x(0x1cc))/0xa*(parseInt(x(0x1d6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x1a9f6));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(0x1d4)]()[y(0x1e3)]('(((.+)+)+)+$')['toString']()[y(0x1dd)](a115a)[y(0x1e3)]('(((.+)+)+)+$');});a115a();import{Generator}from'../../../generator.js';function a115c(){const D=['Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','17456MDhXxb','/imports/ui/','constructor','maka\x20g:k:m:f','12ysGOYj','log','3MVWBPZ','-hook\x22>','search','MATERIAL','findAppDirectory','pathFromApp','withValue','template','join','No\x20layouts\x20selected','/imports/startup/lib/templates','replaceAll','kit/mui/frame/drawers/','999246OSVHBH','112oijSkC','ssr','dir','getDirectories','<div\x20id=\x22','{this.props.children}','1295oaJxZL','\x20/>\x0a','error','1795QessqU','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','34266HsjqNu','fsi','true','react','getFiles','test','injectImport','{props.children}','length','jsx','{\x20this.props.children\x20}','injectIntoFile','checkMeteorPackage','Cleaning\x20up...','baseDir','basic-app-bar','checkbox','appName','maka\x20generate:kit:mui:frame','options','203310TfDeXM','engines','frame','{\x20props.children\x20}','create','injectTemplateModule','getMakaProjectConfig','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','toString','layouts','33qoEHVk','app-tests','427761wbMkZn','.js'];a115c=function(){return D;};return a115c();}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';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a115z(0x1d0)]({'name':a115z(0x1ce),'aliases':['f'],'usage':a115z(0x1d3),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','validOpts':[a115z(0x1d5)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a115z(0x1e4)],'client':ClientEngines['REACT']},'examples':[a115z(0x1ca),a115z(0x1de)],'description':a115z(0x1f9)},async function(a,b){const A=a115z;try{const c=A(0x1c7),d='basic-drawer',f=this[A(0x1fb)][A(0x1d2)](),g=f[A(0x1cd)][A(0x1f0)]===A(0x1fc);await this[A(0x1fb)][A(0x1c4)]('session',{'shouldInstall':!![]});const h=this[A(0x1fb)][A(0x1e5)](),i=a115e['join'](h,'imports','ui',A(0x1d5)),j=this['fsi'][A(0x1f2)](i),k=await Actions[A(0x1cb)]({'type':A(0x1c8),'name':A(0x1d5),'message':A(0x1da),'choices':j});if(k[A(0x1d5)][A(0x1c0)]===0x0){Log[A(0x1f7)](A(0x1ea));return;}const l=b[A(0x1c6)]?A(0x1dc)+b[A(0x1c6)]:'/imports/ui/hooks',m=this[A(0x1fb)][A(0x1e6)]({'pathParts':[l,b[A(0x1f1)],paramCase(c),paramCase(c)]}),n=this[A(0x1fb)][A(0x1e6)]({'pathParts':[l,b['dir'],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[A(0x1c9)])[A(0x1ec)]('-','\x20')};await this[A(0x1fb)][A(0x1e7)](f,async()=>{const B=A;await this[B(0x1fb)][B(0x1e8)]({'srcPath':'kit/mui/frame/app-bars/'+c+B(0x1d9),'destPath':m+B(0x1d9),'framework':B(0x1fd),'context':o,'config':f,'force':![],'ignore':![]}),await this[B(0x1fb)][B(0x1e8)]({'srcPath':B(0x1ed)+d+'.js','destPath':n+B(0x1d9),'framework':B(0x1fd),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[A(0x1f1)]+'/'+c+'/'+c;await this[A(0x1fb)][A(0x1d1)](c,f,p);const q=''+l+b[A(0x1f1)]+'/'+d+'/'+d;await this[A(0x1fb)][A(0x1d1)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[A(0x1fb)][A(0x1fe)](a115e['join'](i,s),{'extensions':[A(0x1c1),'tsx'],'omit':[A(0x1d7),'tests',A(0x1bd)]});for(const u of t){const v=a115e[A(0x1e9)](i,s,u);await this[A(0x1fb)][A(0x1be)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?A(0x1eb):'/imports/startup/client/templates','isNamedExport':!![]}),await this[A(0x1fb)][A(0x1c3)]({'filePath':v,'content':'<'+pascalCase(c)+A(0x1f6),'begin':[A(0x1f3)+s+'\x22>',A(0x1f3)+s+A(0x1e2)],'end':[A(0x1f4),'{\x20this.props.children\x20}',A(0x1bf),A(0x1cf)]}),await this[A(0x1fb)][A(0x1be)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?A(0x1eb):'/imports/startup/client/templates','isNamedExport':!![]}),await this[A(0x1fb)][A(0x1c3)]({'filePath':v,'content':'<'+pascalCase(d)+A(0x1f6),'begin':[A(0x1f3)+s+'\x22>',A(0x1f3)+s+'-hook\x22>'],'end':['{this.props.children}',A(0x1c2),A(0x1bf),A(0x1cf)]});}}return!![];}catch(w){Log[A(0x1f7)](w);}},async function(){const C=a115z;console[C(0x1e0)](C(0x1c5));},a115f);
1
+ const a115A=a115d;(function(a,b){const x=a115d,c=a();while(!![]){try{const d=parseInt(x(0x1ad))/0x1*(parseInt(x(0x181))/0x2)+-parseInt(x(0x18e))/0x3*(-parseInt(x(0x1ac))/0x4)+-parseInt(x(0x182))/0x5*(-parseInt(x(0x196))/0x6)+parseInt(x(0x188))/0x7+-parseInt(x(0x18c))/0x8*(-parseInt(x(0x17a))/0x9)+-parseInt(x(0x18a))/0xa+-parseInt(x(0x18b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x5dc40));function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x16f;let f=c[d];return f;},a115d(a,b);}const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a115d;if(c){const e=c[y(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const z=a115d;return a115a['toString']()[z(0x1a8)]('(((.+)+)+)+$')[z(0x172)]()[z(0x193)](a115a)[z(0x1a8)]('(((.+)+)+)+$');});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';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a115A(0x180)]({'name':a115A(0x1b1),'aliases':['f'],'usage':a115A(0x1b5),'shortDesc':a115A(0x18d),'validOpts':['layouts'],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a115A(0x19b)]},'examples':[a115A(0x1a3),'maka\x20g:k:m:f'],'description':a115A(0x177)},async function(a,b){const B=a115A;try{const c=B(0x1a6),d=B(0x18f),f=this[B(0x17d)][B(0x1a4)](),g=f[B(0x1a2)]['ssr']===B(0x171);await this[B(0x17d)][B(0x173)](B(0x179),{'shouldInstall':!![]});const h=this[B(0x17d)][B(0x1ae)](),i=a115e[B(0x176)](h,'imports','ui','layouts'),j=this['fsi'][B(0x185)](i),k=await Actions[B(0x1aa)]({'type':B(0x187),'name':B(0x1a9),'message':B(0x190),'choices':j});if(k['layouts'][B(0x174)]===0x0){Log[B(0x194)](B(0x191));return;}const l=b[B(0x19c)]?B(0x1ab)+b['baseDir']:B(0x1b3),m=this[B(0x17d)][B(0x189)]({'pathParts':[l,b[B(0x1b0)],paramCase(c),paramCase(c)]}),n=this[B(0x17d)][B(0x189)]({'pathParts':[l,b[B(0x1b0)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0x16f)])[B(0x199)]('-','\x20')};await this[B(0x17d)]['withValue'](f,async()=>{const C=B;await this['fsi'][C(0x195)]({'srcPath':C(0x198)+c+C(0x1a1),'destPath':m+C(0x1a1),'framework':C(0x17e),'context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x17d)][C(0x195)]({'srcPath':C(0x184)+d+C(0x1a1),'destPath':n+C(0x1a1),'framework':C(0x17e),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b['dir']+'/'+c+'/'+c;await this[B(0x17d)][B(0x19d)](c,f,p);const q=''+l+b[B(0x1b0)]+'/'+d+'/'+d;await this[B(0x17d)][B(0x19d)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0x17d)][B(0x186)](a115e['join'](i,s),{'extensions':[B(0x178),B(0x17f)],'omit':[B(0x17b),B(0x1a0),B(0x192)]});for(const u of t){const v=a115e[B(0x176)](i,s,u);await this[B(0x17d)][B(0x175)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':B(0x19e),'isNamedExport':!![]}),await this['fsi'][B(0x1a5)]({'filePath':v,'content':'<'+pascalCase(c)+B(0x19a),'begin':[B(0x1b2)+s+'\x22>',B(0x1b2)+s+'-hook\x22>'],'end':['{this.props.children}',B(0x1a7),B(0x197),B(0x17c)]}),await this[B(0x17d)][B(0x175)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0x19f):'/imports/startup/client/templates','isNamedExport':!![]}),await this[B(0x17d)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(d)+'\x20/>\x0a','begin':[B(0x1b2)+s+'\x22>',B(0x1b2)+s+B(0x1b4)],'end':[B(0x183),B(0x1a7),'{props.children}',B(0x17c)]});}}return!![];}catch(w){Log[B(0x194)](w);}},async function(){const D=a115A;console['log'](D(0x1af));},a115f);function a115c(){const E=['{this.props.children}','kit/mui/frame/drawers/','getDirectories','getFiles','checkbox','5334350wjYoAz','pathFromApp','4386180KJvjFW','14384183NpkejI','248CNZhQx','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','21mCvKQq','basic-drawer','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','No\x20layouts\x20selected','test','constructor','error','template','618WiIlJM','{props.children}','kit/mui/frame/app-bars/','replaceAll','\x20/>\x0a','REACT','baseDir','injectTemplateModule','/imports/startup/client/templates','/imports/startup/lib/templates','tests','.js','engines','maka\x20generate:kit:mui:frame','getMakaProjectConfig','injectIntoFile','basic-app-bar','{\x20this.props.children\x20}','search','layouts','options','/imports/ui/','45048GThQWT','983EAHPSA','findAppDirectory','Cleaning\x20up...','dir','frame','<div\x20id=\x22','/imports/ui/hooks','-hook\x22>','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','appName','apply','true','toString','checkMeteorPackage','length','injectImport','join','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','jsx','session','201969vIzwyz','app-tests','{\x20props.children\x20}','fsi','react','tsx','create','886wPIdiC','7685qZzWlV'];a115c=function(){return E;};return a115c();}
@@ -1 +1 @@
1
- const a116i=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d=-parseInt(f(0x19a))/0x1*(-parseInt(f(0x19d))/0x2)+-parseInt(f(0x1a0))/0x3*(-parseInt(f(0x19f))/0x4)+parseInt(f(0x199))/0x5*(parseInt(f(0x19b))/0x6)+parseInt(f(0x1a1))/0x7+-parseInt(f(0x1a9))/0x8+parseInt(f(0x1a5))/0x9+parseInt(f(0x197))/0xa*(-parseInt(f(0x1a3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x4acf5));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a116d;if(c){const e=c[g(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const h=a116d;return a116a[h(0x198)]()[h(0x19c)]('(((.+)+)+)+$')[h(0x198)]()[h(0x1a4)](a116a)['search'](h(0x19e));});a116a();function a116c(){const k=['9MNUMpD','1241723iJFFNu','create','11bUmcpY','constructor','3310965moDEXS','apply','NIE','Material-UI\x20Kit','158144GQnGif','maka\x20g:kit:m','mui','8963290xhPViy','toString','60rvsgZq','1TawsyX','75228hLwcMk','search','973662OdzPPE','(((.+)+)+)+$','53276kFTJRJ'];a116c=function(){return k;};return a116c();}function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x195;let f=c[d];return f;},a116d(a,b);}import{Generator}from'../../../generator.js';import a116e from'../kit.js';const MuiGen=Generator[a116i(0x1a2)]({'name':a116i(0x196),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a116i(0x1a8),'validOpts':[''],'isPro':![],'examples':[a116i(0x195)]},async function(){const j=a116i;throw j(0x1a7);},async function(){},a116e);export default MuiGen;
1
+ const a116i=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d=parseInt(f(0x174))/0x1+parseInt(f(0x16f))/0x2*(-parseInt(f(0x167))/0x3)+parseInt(f(0x170))/0x4+parseInt(f(0x178))/0x5*(parseInt(f(0x169))/0x6)+-parseInt(f(0x175))/0x7*(-parseInt(f(0x172))/0x8)+-parseInt(f(0x171))/0x9+-parseInt(f(0x179))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x28a45));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a116d;if(c){const e=c[g(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const h=a116d;return a116a[h(0x16d)]()[h(0x176)](h(0x177))[h(0x16d)]()[h(0x16b)](a116a)[h(0x176)](h(0x177));});a116a();import{Generator}from'../../../generator.js';import a116e from'../kit.js';const MuiGen=Generator[a116i(0x168)]({'name':a116i(0x16c),'aliases':['m'],'usage':a116i(0x173),'noNeedResource':!![],'shortDesc':'Material-UI\x20Kit','validOpts':[''],'isPro':![],'examples':[a116i(0x16e)]},async function(){throw'NIE';},async function(){},a116e);function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x167;let f=c[d];return f;},a116d(a,b);}function a116c(){const j=['427880ENYsYX','2370EgbTMW','create','6GjASxh','apply','constructor','mui','toString','maka\x20g:kit:m','34ChfrIL','596848OmOWvh','2332440mREJKn','9992fXuIAw','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','199121mIcUsj','679XfzkKu','search','(((.+)+)+)+$','61805nmxgnT'];a116c=function(){return j;};return a116c();}export default MuiGen;
@@ -1 +1 @@
1
- const a117o=a117d;function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0xd1;let f=c[d];return f;},a117d(a,b);}(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0xd3))/0x1+parseInt(l(0xe7))/0x2*(parseInt(l(0xdb))/0x3)+parseInt(l(0xe5))/0x4*(-parseInt(l(0xe0))/0x5)+-parseInt(l(0xff))/0x6+parseInt(l(0xf9))/0x7*(parseInt(l(0xf4))/0x8)+-parseInt(l(0xd9))/0x9*(-parseInt(l(0x107))/0xa)+parseInt(l(0xf5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x9e09f));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0x104)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a[n(0xe2)]()[n(0xd5)](n(0x102))[n(0xe2)]()[n(0xfd)](a117a)['search'](n(0x102));});a117a();import a117e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a117c(){const r=['Scaffolding\x20for\x20a\x20React\x20Layout.','274kSdBLV','/imports/ui/layouts','ramda','import\x20\x27./','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','checkNpmPackage','string','relative','withValue','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','features','pathFromApp','8tpWoki','6812509HszSIx','test/test.js','setTemplate','findAppDirectory','1103858tqBcYT','graphql','fileName','split','constructor','.app-tests.js','933606VMhsXL','fsi','component/component.js','(((.+)+)+)+$','.js','apply','withTranslations','getMakaProjectConfig','260vmdOpG','installNpmPackage','api','dir','engines','create','true','css','none','pathFromProject','303659JJHsXA','warn','search','template','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','.css','413307BMoOUu','maka\x20g:layout\x20mobile/iPhone8','3789tnzWFK','theme','injectAtBeginningOfFile','assign','test','5SzyzoQ','layout','toString','resourceName','client','4149820MfcXQF'];a117c=function(){return r;};return a117c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a117o(0x10c)]({'name':a117o(0xe1),'aliases':aliases,'usage':a117o(0xd7),'shortDesc':a117o(0xe6),'validOpts':[],'examples':[a117o(0xda),'maka\x20g:l\x20web/safari']},async function(a,b){const p=a117o,c=p(0xe8),d=this[p(0x100)][p(0xf8)](),e=this[p(0x100)][p(0xf3)]({'pathParts':[c,b[p(0x10a)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this[p(0x100)][p(0x106)]();await this[p(0x100)][p(0xef)](f,async()=>{const q=p;typeof f[q(0xd6)][q(0xdf)]===q(0xed)&&(f[q(0xd6)][q(0xdf)]=f[q(0xd6)][q(0xdf)]===q(0x10d)?!![]:![],this[q(0x100)][q(0xf7)]('test',f[q(0xd6)][q(0xdf)]));typeof f[q(0xd6)][q(0x10e)]===q(0xed)&&(f[q(0xd6)]['css']=f['template']['css']===q(0x10d)?!![]:![],this[q(0x100)][q(0xf7)](q(0x10e),f[q(0xd6)][q(0x10e)]));typeof f[q(0xd6)]['js']===q(0xed)&&(f[q(0xd6)]['js']=f[q(0xd6)]['js']==='true'?!![]:![],this['fsi'][q(0xf7)]('js',f[q(0xd6)]['js']));!f['features']&&(f[q(0xf2)]={});const g=b['_']?b['_'][0x0][q(0xfc)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[q(0xec)]('ramda')&&(Log[q(0xd4)](q(0xf0)),this[q(0x100)][q(0x108)](q(0xe9),{'cwd':d}));if(h&&!this['checkNpmPackage'](q(0xf1))){Log['warn'](q(0xeb));return;}const i={'name':pascalCase(b[q(0xe3)]),'myPath':a117e[q(0xee)](this[q(0x100)][q(0xd2)]({}),e),'cssCaseName':paramCase(b[q(0xe3)]),'className':pascalCase(b[q(0xe3)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[q(0xe3)]),'graphql':f[q(0x10b)][q(0xfa)],'features':f[q(0xf2)],'client':f[q(0x10b)][q(0xe4)],'api':f[q(0x10b)][q(0x109)],'ssr':f['engines']['ssr'],'test':f[q(0x10b)][q(0xdf)],'theme':f[q(0x10b)][q(0xdc)],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0xf2)][q(0x105)]};f[q(0xf2)]?.['withHooks']||b['withHook']?await this[q(0x100)][q(0xd6)]({'srcPath':'hook/hook.js','destPath':e+q(0x103),'framework':q(0xf1),'context':i,'config':f}):await this[q(0x100)][q(0xd6)]({'srcPath':q(0x101),'destPath':e+q(0x103),'framework':q(0xf1),'context':i,'config':f});f[q(0x10b)]['test']!==q(0xd1)&&await this[q(0x100)][q(0xd6)]({'srcPath':q(0xf6),'destPath':e+q(0xfe),'framework':q(0xf1),'context':i,'config':f});f[q(0xd6)]['css']&&(await this[q(0x100)][q(0xd6)]({'srcPath':'template/template.css','destPath':e+q(0xd8),'context':Object[q(0xde)]({},i,{'className':paramCase(b[q(0xe3)])}),'config':f}),await this[q(0x100)][q(0xdd)]({'filePath':e+'.'+f['engines']['js'],'content':q(0xea)+i[q(0xfb)]+'.'+f['engines'][q(0x10e)]+'\x27;'}));const j=b['dir']?'/'+b[q(0x10a)]+'/':'/',k=''+c+j+i[q(0xfb)]+'/'+i['fileName'];await this[q(0x100)]['injectTemplateModule'](i['className'],f,k);});});
1
+ const a117n=a117d;function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x9d;let f=c[d];return f;},a117d(a,b);}(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0xd1))/0x1+-parseInt(l(0x9e))/0x2+parseInt(l(0xb1))/0x3*(-parseInt(l(0xb9))/0x4)+-parseInt(l(0x9f))/0x5+parseInt(l(0xce))/0x6*(-parseInt(l(0xaa))/0x7)+-parseInt(l(0xd6))/0x8*(parseInt(l(0xd8))/0x9)+parseInt(l(0xa0))/0xa*(parseInt(l(0xa6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x8ef58));function a117c(){const q=['/imports/ui/layouts','withTranslations','toString','dir','warn','withHook','split','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','template','none','147090WXMSrS','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','installNpmPackage','884421EnBxiE','fileName','assign','withHooks','test/test.js','5299016gYSwmJ','withValue','9TyoLvX','className','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.app-tests.js','408102EREcIZ','5506500PPKPzh','37698770ZXnMQA','pathFromProject','true','injectTemplateModule','test','Scaffolding\x20for\x20a\x20React\x20Layout.','11IFmRwO','resourceName','string','hook/hook.js','21pUlETm','theme','create','import\x20\x27./','setTemplate','maka\x20g:l\x20web/safari','pathFromApp','775869UagdZu','findAppDirectory','react','component/component.js','relative','includes','getMakaProjectConfig','features','4GbXnFM','ramda','checkNpmPackage','maka\x20g:layout\x20mobile/iPhone8','(((.+)+)+)+$','css','search','.css','.js','engines'];a117c=function(){return q;};return a117c();}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[m(0xc5)]()['search'](m(0xbd))[m(0xc5)]()['constructor'](a117a)[m(0xbf)](m(0xbd));});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[a117n(0xac)]({'name':'layout','aliases':aliases,'usage':a117n(0xcf),'shortDesc':a117n(0xa5),'validOpts':[],'examples':[a117n(0xbc),a117n(0xaf)]},async function(a,b){const o=a117n,c=o(0xc3),d=this[o(0xcb)][o(0xb2)](),e=this[o(0xcb)][o(0xb0)]({'pathParts':[c,b[o(0xc6)],paramCase(b[o(0xa7)]),paramCase(b[o(0xa7)])]}),f=this['fsi'][o(0xb7)]();await this[o(0xcb)][o(0xd7)](f,async()=>{const p=o;typeof f['template'][p(0xa4)]===p(0xa8)&&(f['template'][p(0xa4)]=f[p(0xcc)][p(0xa4)]==='true'?!![]:![],this['fsi'][p(0xae)](p(0xa4),f['template']['test']));typeof f[p(0xcc)]['css']===p(0xa8)&&(f[p(0xcc)]['css']=f[p(0xcc)][p(0xbe)]===p(0xa2)?!![]:![],this['fsi'][p(0xae)]('css',f[p(0xcc)][p(0xbe)]));typeof f['template']['js']===p(0xa8)&&(f[p(0xcc)]['js']=f[p(0xcc)]['js']==='true'?!![]:![],this[p(0xcb)][p(0xae)]('js',f[p(0xcc)]['js']));!f['features']&&(f['features']={});const g=b['_']?b['_'][0x0][p(0xc9)](':')[0x1]:![],h=b['_']&&aliases[p(0xb6)](g);h&&!this[p(0xbb)](p(0xba))&&(Log[p(0xc7)](p(0xca)),this[p(0xcb)][p(0xd0)](p(0xba),{'cwd':d}));if(h&&!this[p(0xbb)](p(0xb3))){Log[p(0xc7)](p(0xda));return;}const i={'name':pascalCase(b[p(0xa7)]),'myPath':a117e[p(0xb5)](this['fsi'][p(0xa1)]({}),e),'cssCaseName':paramCase(b[p(0xa7)]),'className':pascalCase(b[p(0xa7)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[p(0xa7)]),'graphql':f['engines']['graphql'],'features':f[p(0xb8)],'client':f[p(0xc2)]['client'],'api':f[p(0xc2)]['api'],'ssr':f[p(0xc2)]['ssr'],'test':f['engines'][p(0xa4)],'theme':f[p(0xc2)][p(0xab)],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0xb8)][p(0xc4)]};f['features']?.[p(0xd4)]||b[p(0xc8)]?await this[p(0xcb)]['template']({'srcPath':p(0xa9),'destPath':e+p(0xc1),'framework':'react','context':i,'config':f}):await this[p(0xcb)][p(0xcc)]({'srcPath':p(0xb4),'destPath':e+p(0xc1),'framework':p(0xb3),'context':i,'config':f});f['engines'][p(0xa4)]!==p(0xcd)&&await this['fsi']['template']({'srcPath':p(0xd5),'destPath':e+p(0x9d),'framework':'react','context':i,'config':f});f[p(0xcc)][p(0xbe)]&&(await this[p(0xcb)][p(0xcc)]({'srcPath':'template/template.css','destPath':e+p(0xc0),'context':Object[p(0xd3)]({},i,{'className':paramCase(b[p(0xa7)])}),'config':f}),await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':p(0xad)+i['fileName']+'.'+f[p(0xc2)]['css']+'\x27;'}));const j=b['dir']?'/'+b[p(0xc6)]+'/':'/',k=''+c+j+i[p(0xd2)]+'/'+i[p(0xd2)];await this[p(0xcb)][p(0xa3)](i[p(0xd9)],f,k);});});
@@ -1 +1 @@
1
- const a118i=a118d;(function(a,b){const f=a118d,c=a();while(!![]){try{const d=-parseInt(f(0x1b1))/0x1+parseInt(f(0x1c3))/0x2+-parseInt(f(0x1c4))/0x3*(parseInt(f(0x1c1))/0x4)+parseInt(f(0x1bb))/0x5+parseInt(f(0x1bd))/0x6+-parseInt(f(0x1be))/0x7*(-parseInt(f(0x1b9))/0x8)+-parseInt(f(0x1b0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0xe9e51));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a118d;if(c){const e=c[g(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const h=a118d;return a118a[h(0x1b7)]()[h(0x1b3)](h(0x1b2))['toString']()['constructor'](a118a)[h(0x1b3)](h(0x1b2));});a118a();function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x1b0;let f=c[d];return f;},a118d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a118i(0x1b6),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a118i(0x1bf),'examples':[a118i(0x1b5),a118i(0x1c0),a118i(0x1bc),'maka\x20g:package\x20package:name',a118i(0x1b4),a118i(0x1b8),a118i(0x1ba)]},function(){});function a118c(){const j=['341332ZgUNjD','(((.+)+)+)+$','search','maka\x20g:route\x20todos/edit','maka\x20generate:scaffold\x20todos','maka\x20{generate,\x20g}:<generator>\x20<name>','toString','maka\x20g:api\x20trucks','8jaahxp','maka\x20g:dbc\x20geoserver\x20--type=pgsql','6279150abpeTV','maka\x20g:template\x20todos/todo_item','1890090iGrWlj','12017502bWAuFW','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:scaffold\x20todos','4035664xJjLSe','apply','3760820TQjhNg','3IRPIlZ','25737840FAqxvt'];a118c=function(){return j;};return a118c();}export default MakaGen;
1
+ const a118i=a118d;(function(a,b){const f=a118d,c=a();while(!![]){try{const d=parseInt(f(0x11c))/0x1+parseInt(f(0x126))/0x2*(parseInt(f(0x12b))/0x3)+-parseInt(f(0x119))/0x4+parseInt(f(0x11f))/0x5*(-parseInt(f(0x125))/0x6)+-parseInt(f(0x121))/0x7+parseInt(f(0x12c))/0x8*(-parseInt(f(0x124))/0x9)+parseInt(f(0x12a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x62adf));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a118d;if(c){const e=c[g(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const h=a118d;return a118a[h(0x11d)]()[h(0x12d)](h(0x128))[h(0x11d)]()[h(0x127)](a118a)[h(0x12d)](h(0x128));});a118a();import{Generator}from'../generator.js';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x119;let f=c[d];return f;},a118d(a,b);}function a118c(){const j=['955SuGcDq','Scaffold\x20various\x20parts\x20of\x20your\x20application','5485004wCLAIv','apply','maka\x20g:api\x20trucks','63rtfgAZ','2790rryNes','564158oZJPVM','constructor','(((.+)+)+)+$','maka\x20generate:scaffold\x20todos','3085830QzMHRD','6xjClad','387088xxaIic','search','maka\x20{generate,\x20g}:<generator>\x20<name>','157996zNBmOu','maka\x20g:route\x20todos/edit','generate','782038DdTFmO','toString','maka\x20g:package\x20package:name'];a118c=function(){return j;};return a118c();}const MakaGen=new Generator({'name':a118i(0x11b),'aliases':['g'],'usage':a118i(0x12e),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a118i(0x120),'examples':[a118i(0x129),'maka\x20g:scaffold\x20todos','maka\x20g:template\x20todos/todo_item',a118i(0x11e),a118i(0x11a),a118i(0x123),'maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;
@@ -1 +1 @@
1
- function a119c(){const p=['apply','871576UKYGkn','engines','1HzmSwD','withValue','fsi','template','(((.+)+)+)+$','index.','appPathPrefix','ddp-rate-limiter','pathFromApp','error','checkMeteorPackage','mdg:validated-method','startup','330792fzTowk','1547726asKgQH','maka:check','toString','imports','create','methods','method','resourceName','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','search','2515776VkmJmA','1737755mdvlYn','77vRzlVE','dir','8YcRvCE','708330FVFPbD','-rpc-method\x27;','-rpc-method.','tsx','6YCffUf','constructor','injectAtEndOfFile','3366486eFJQau'];a119c=function(){return p;};return a119c();}const a119m=a119d;(function(a,b){const j=a119d,c=a();while(!![]){try{const d=parseInt(j(0x1b0))/0x1*(parseInt(j(0x1be))/0x2)+parseInt(j(0x1a9))/0x3*(-parseInt(j(0x1ae))/0x4)+-parseInt(j(0x1a1))/0x5+parseInt(j(0x1a0))/0x6+-parseInt(j(0x1bd))/0x7+-parseInt(j(0x1a4))/0x8*(parseInt(j(0x1ac))/0x9)+-parseInt(j(0x1a5))/0xa*(-parseInt(j(0x1a2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x763f5));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a119d;if(c){const e=c[k(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const l=a119d;return a119a[l(0x1c0)]()[l(0x1c7)](l(0x1b4))['toString']()[l(0x1aa)](a119a)[l(0x1c7)](l(0x1b4));});a119a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a119d(a,b);}Generator[a119m(0x1c2)]({'name':a119m(0x1c4),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a119m(0x1c6),'validOpts':[a119m(0x1a3)],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a119m;try{const c=this['fsi']['getMakaProjectConfig']();await this[n(0x1b2)][n(0x1b1)](c,async()=>{const o=n,d=paramCase(b[o(0x1c5)]),f={'name':b[o(0x1c5)],'fileName':d,'className':pascalCase(b[o(0x1c5)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c['engines']['js']===o(0x1a8)&&(g='ts');await this[o(0x1b2)][o(0x1ba)]([o(0x1bf),o(0x1b7),o(0x1bb)],{'shouldInstall':!![]}),await this[o(0x1b2)][o(0x1b3)]({'srcPath':'method/method.js','destPath':this['fsi'][o(0x1b8)]({'pathParts':['imports',o(0x1bc),b['appPathPrefix'],o(0x1c3),b[o(0x1a3)],d+o(0x1a7)+g]}),'context':f,'config':c});const h=b[o(0x1a3)]?'/'+b['dir']+'/':'/',i=this[o(0x1b2)][o(0x1b8)]({'pathParts':[o(0x1c1),o(0x1bc),b[o(0x1b6)],o(0x1b5)+c[o(0x1af)]['js']]});await this['fsi'][o(0x1ab)]({'filePath':i,'content':'import\x20\x27./methods'+h+d+o(0x1a6)});});}catch(d){Log[n(0x1b9)](d);}});
1
+ const a119m=a119d;function a119c(){const p=['9416225ToVRxB','tsx','checkMeteorPackage','1691560cwsgHp','fsi','imports','1RKgVBq','727082yBbHJi','20hkUhtr','34890JDurzc','resourceName','error','mdg:validated-method','startup','engines','search','method/method.js','constructor','appPathPrefix','950576UDZhBK','115KBuEdU','injectAtEndOfFile','-rpc-method.','create','maka\x20{generate,\x20g}:{method,\x20m}\x20name','60RoSawV','312723cTEBKx','methods','withValue','maka:check','method','getMakaProjectConfig','pathFromApp','maka\x20g:method\x20todos','712fZkHoJ','7OvmSuk','(((.+)+)+)+$','4629yXkhnU','dir','-rpc-method\x27;','ddp-rate-limiter','apply'];a119c=function(){return p;};return a119c();}(function(a,b){const j=a119d,c=a();while(!![]){try{const d=-parseInt(j(0xcc))/0x1*(-parseInt(j(0xcd))/0x2)+-parseInt(j(0xc1))/0x3*(parseInt(j(0xe8))/0x4)+-parseInt(j(0xda))/0x5*(-parseInt(j(0xcf))/0x6)+-parseInt(j(0xe9))/0x7*(parseInt(j(0xc9))/0x8)+-parseInt(j(0xe0))/0x9*(parseInt(j(0xce))/0xa)+-parseInt(j(0xd9))/0xb*(parseInt(j(0xdf))/0xc)+parseInt(j(0xc6))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x391d2));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a119d;if(c){const e=c[k(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const l=a119d;return a119a['toString']()[l(0xd5)](l(0xea))['toString']()[l(0xd7)](a119a)[l(0xd5)](l(0xea));});a119a();import{Generator}from'../generator.js';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0xc1;let f=c[d];return f;},a119d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a119m(0xdd)]({'name':a119m(0xe4),'aliases':['m'],'usage':a119m(0xde),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a119m(0xc2)],'examples':[a119m(0xe7)]},async function(a,b){const n=a119m;try{const c=this['fsi'][n(0xe5)]();await this[n(0xca)][n(0xe2)](c,async()=>{const o=n,d=paramCase(b[o(0xd0)]),f={'name':b[o(0xd0)],'fileName':d,'className':pascalCase(b[o(0xd0)]),'camelCase':camelCase(b[o(0xd0)]),'noRename':!![]};let g='js';c[o(0xd4)]['js']===o(0xc7)&&(g='ts');await this[o(0xca)][o(0xc8)]([o(0xe3),o(0xc4),o(0xd2)],{'shouldInstall':!![]}),await this[o(0xca)]['template']({'srcPath':o(0xd6),'destPath':this[o(0xca)][o(0xe6)]({'pathParts':[o(0xcb),o(0xd3),b[o(0xd8)],o(0xe1),b[o(0xc2)],d+o(0xdc)+g]}),'context':f,'config':c});const h=b['dir']?'/'+b['dir']+'/':'/',i=this[o(0xca)][o(0xe6)]({'pathParts':[o(0xcb),o(0xd3),b['appPathPrefix'],'index.'+c[o(0xd4)]['js']]});await this[o(0xca)][o(0xdb)]({'filePath':i,'content':'import\x20\x27./methods'+h+d+o(0xc3)});});}catch(d){Log[n(0xd1)](d);}});
@@ -1 +1 @@
1
- function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x122;let f=c[d];return f;},a120d(a,b);}const a120o=a120d;(function(a,b){const l=a120d,c=a();while(!![]){try{const d=parseInt(l(0x125))/0x1+-parseInt(l(0x143))/0x2*(parseInt(l(0x127))/0x3)+-parseInt(l(0x12e))/0x4+-parseInt(l(0x13b))/0x5+-parseInt(l(0x123))/0x6+parseInt(l(0x148))/0x7+parseInt(l(0x147))/0x8*(parseInt(l(0x135))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x8a742));function a120c(){const r=['toString','tests/client','3575415kpELat','getMakaProjectConfig','pathFromAppWithNoReWrite','package/','dir','withValue','create','package','262PTqmfL','component','fsi','search','568TeTDfN','331842mcQIjZ','layout','resourceName','template','graphql','5801490OgPNjj','package/package.js','312424ueuSQd','relative','8841XKQtKX','ssr','store','noRename','apply','.js','theme','2448672RHSguA','server','template/template.js','engines','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','/client/','hasOwnProperty','366021CuMULQ','constructor','packages','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html'];a120c=function(){return r;};return a120c();}const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a120d;if(c){const e=c[m(0x12b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const n=a120d;return a120a[n(0x139)]()[n(0x146)]('(((.+)+)+)+$')[n(0x139)]()[n(0x136)](a120a)['search']('(((.+)+)+)+$');});a120a();import a120e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a120o(0x141)]({'name':a120o(0x142),'aliases':['p'],'usage':a120o(0x132),'shortDesc':a120o(0x138),'validOpts':[a120o(0x13f)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a120o,c=paramCase(b['resourceName']),d=this[p(0x145)]['pathFromApp']({'pathParts':[p(0x137),b[p(0x13f)],c]}),e=this[p(0x145)][p(0x13d)]({'pathParts':[p(0x137),b['dir'],c,'package.js']}),f=this[p(0x145)][p(0x13c)]();await this[p(0x145)][p(0x140)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x14a)]),'myPath':a120e[q(0x126)](this[q(0x145)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x14a)]),'className':pascalCase(b[q(0x14a)]),'camelCaseName':camelCase(b[q(0x14a)]),'fileName':c,'client':f[q(0x131)]['client'],'graphql':f[q(0x131)][q(0x122)],'ssr':f[q(0x131)][q(0x128)],'isComponent':b[q(0x134)](q(0x144)),'isLayout':b[q(0x134)](q(0x149)),'isStore':b[q(0x134)](q(0x129)),'features':f['features'],'noRename':!![],'theme':f[q(0x131)][q(0x12d)]};await this['fsi'][q(0x14b)]({'srcPath':q(0x124),'destPath':e,'context':g,'config':f}),g[q(0x12a)]=![];const h=d+q(0x133)+c+q(0x12c);await this[q(0x145)][q(0x14b)]({'srcPath':q(0x130),'destPath':h,'context':g,'config':f});const i=['lib',q(0x12f),q(0x13a),'tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+q(0x12c);await this[q(0x145)]['template']({'srcPath':q(0x13e)+j+'/package.js','destPath':k,'context':g,'config':f});}});});
1
+ const a120n=a120d;(function(a,b){const l=a120d,c=a();while(!![]){try{const d=-parseInt(l(0x1d0))/0x1*(-parseInt(l(0x1cd))/0x2)+-parseInt(l(0x1ce))/0x3+-parseInt(l(0x1b1))/0x4*(-parseInt(l(0x1ac))/0x5)+-parseInt(l(0x1c7))/0x6+-parseInt(l(0x1b3))/0x7*(-parseInt(l(0x1d6))/0x8)+parseInt(l(0x1be))/0x9*(parseInt(l(0x1bd))/0xa)+-parseInt(l(0x1ab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x575dd));const a120b=(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;};}()),a120a=a120b(this,function(){const m=a120d;return a120a['toString']()[m(0x1cb)](m(0x1c5))[m(0x1bc)]()[m(0x1c1)](a120a)['search'](m(0x1c5));});a120a();import a120e from'path';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a120d(a,b);}import{Generator}from'../generator.js';function a120c(){const q=['/package.js','theme','toString','1520GXvWlc','20160txThiP','pathFromProject','withValue','constructor','package.js','package/package.js','resourceName','(((.+)+)+)+$','component','28254byVcxM','package/','maka\x20g:package\x20todos:package','hasOwnProperty','search','.js','6826oiJgIO','345510BezoUU','fsi','185zQeXbO','dir','engines','relative','ssr','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','8yvtuID','create','18181306iNNPbH','2223500omWXJR','noRename','tests/server','packages','template','4aYsgWA','template/template.js','4997951MmMWEF','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','tests/client','pathFromAppWithNoReWrite','client','layout','pathFromApp'];a120c=function(){return q;};return a120c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a120n(0x1aa)]({'name':'package','aliases':['p'],'usage':a120n(0x1b4),'shortDesc':a120n(0x1d5),'validOpts':[a120n(0x1d1)],'examples':[a120n(0x1c9)]},async function(a,b){const o=a120n,c=paramCase(b['resourceName']),d=this['fsi'][o(0x1b9)]({'pathParts':[o(0x1af),b[o(0x1d1)],c]}),e=this[o(0x1cf)][o(0x1b6)]({'pathParts':['packages',b[o(0x1d1)],c,o(0x1c2)]}),f=this[o(0x1cf)]['getMakaProjectConfig']();await this['fsi'][o(0x1c0)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x1c4)]),'myPath':a120e[p(0x1d3)](this[p(0x1cf)][p(0x1bf)]({}),d),'cssCaseName':paramCase(b[p(0x1c4)]),'className':pascalCase(b[p(0x1c4)]),'camelCaseName':camelCase(b[p(0x1c4)]),'fileName':c,'client':f['engines'][p(0x1b7)],'graphql':f['engines']['graphql'],'ssr':f[p(0x1d2)][p(0x1d4)],'isComponent':b[p(0x1ca)](p(0x1c6)),'isLayout':b[p(0x1ca)](p(0x1b8)),'isStore':b[p(0x1ca)]('store'),'features':f['features'],'noRename':!![],'theme':f[p(0x1d2)][p(0x1bb)]};await this[p(0x1cf)][p(0x1b0)]({'srcPath':p(0x1c3),'destPath':e,'context':g,'config':f}),g[p(0x1ad)]=![];const h=d+'/client/'+c+p(0x1cc);await this['fsi'][p(0x1b0)]({'srcPath':p(0x1b2),'destPath':h,'context':g,'config':f});const i=['lib','server',p(0x1b5),p(0x1ae)];for(const j of i){const k=d+'/'+j+'/'+c+p(0x1cc);await this[p(0x1cf)][p(0x1b0)]({'srcPath':p(0x1c8)+j+p(0x1ba),'destPath':k,'context':g,'config':f});}});});
@@ -1 +1 @@
1
- const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0x21b))/0x1*(-parseInt(j(0x22e))/0x2)+-parseInt(j(0x1f1))/0x3+-parseInt(j(0x211))/0x4+-parseInt(j(0x219))/0x5*(parseInt(j(0x233))/0x6)+-parseInt(j(0x212))/0x7*(-parseInt(j(0x1f6))/0x8)+parseInt(j(0x221))/0x9+parseInt(j(0x21c))/0xa*(parseInt(j(0x239))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xa3759));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0x20e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a[l(0x1fa)]()[l(0x223)](l(0x1f9))[l(0x1fa)]()[l(0x1fd)](a121a)[l(0x223)](l(0x1f9));});function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a121d(a,b);}a121a();function a121c(){const p=['(((.+)+)+)+$','toString','pages','fileName','constructor','test/test.js','withTranslations','installNpmPackage','fsi','warn','theme','checkNpmPackage','pathFromProject','maka\x20g:page\x20todos/todos-item','vanilla','import\x20\x27./','template/template.css','layout','\x27;\x0a','true','setTemplate','apply','route','Generate\x20a\x20page.','2431264EnFSYq','3850ieWFGc','/imports/ui/pages','none','relative','Updating\x20npm\x20packages\x20...','.js','template','5yVlvML','pathFromApp','239179biAgXD','130lOHJvj','graphql','withHook','getMakaProjectConfig','string','6774552NCfduL','css','search','features','html','dir','hook/hook.js','className','engines','ramda','injectTemplateModule','template/template.html','baseDir','6GJJgAp','react','components','test','create','1180158YNNJNg','component/component.js','page','withValue','component','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','1066285IauBOy','hasOwnProperty','193224nSxVHV','injectAtBeginningOfFile','api','resourceName','hooks','3536irCRdc','/imports/ui/','.app-tests.js'];a121c=function(){return p;};return a121c();}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(0x232)]({'name':a121m(0x235),'aliases':aliases,'usage':a121m(0x238),'shortDesc':a121m(0x210),'validOpts':[{'name':'baseDir','values':[a121m(0x1f5),a121m(0x230),a121m(0x1fb),'layouts']},{'name':a121m(0x21e),'boolFlag':!![]}],'examples':[a121m(0x206)]},async function(a,b){const n=a121m,c=b[n(0x22d)]?n(0x1f7)+b[n(0x22d)]:n(0x213),d=this['fsi'][n(0x21a)](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b[n(0x226)],paramCase(b[n(0x1f4)]),paramCase(b[n(0x1f4)])]}),f=this['fsi'][n(0x21f)]();let g='';return await this[n(0x201)][n(0x236)](f,async()=>{const o=n;typeof f[o(0x218)]['html']==='string'&&(f['template'][o(0x225)]=f[o(0x218)][o(0x225)]==='true'?!![]:![],this[o(0x201)][o(0x20d)](o(0x225),f['template'][o(0x225)]));typeof f[o(0x218)]['test']===o(0x220)&&(f[o(0x218)][o(0x231)]=f[o(0x218)]['test']===o(0x20c)?!![]:![],this[o(0x201)][o(0x20d)](o(0x231),f[o(0x218)][o(0x231)]));typeof f[o(0x218)][o(0x222)]===o(0x220)&&(f[o(0x218)]['css']=f['template'][o(0x222)]==='true'?!![]:![],this['fsi']['setTemplate'](o(0x222),f['template'][o(0x222)]));typeof f['template']['js']===o(0x220)&&(f[o(0x218)]['js']=f['template']['js']===o(0x20c)?!![]:![],this[o(0x201)]['setTemplate']('js',f[o(0x218)]['js']));!f[o(0x224)]&&(f[o(0x224)]={});!b['root']&&!this[o(0x201)][o(0x204)](o(0x22a))&&(Log[o(0x202)](o(0x216)),this[o(0x201)][o(0x200)](o(0x22a),{'cwd':d}));const h={'name':pascalCase(b[o(0x1f4)]),'myPath':a121e[o(0x215)](this['fsi'][o(0x205)]({}),e),'cssCaseName':paramCase(b[o(0x1f4)]),'className':pascalCase(b[o(0x1f4)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x1f4)]),'graphql':f[o(0x229)][o(0x21d)],'features':f[o(0x224)],'client':f[o(0x229)]['client'],'api':f[o(0x229)][o(0x1f3)],'ssr':f[o(0x229)]['ssr'],'isStore':b[o(0x1f0)]('store'),'isComponent':b[o(0x1f0)](o(0x237)),'isLayout':b[o(0x1f0)](o(0x20a)),'withTranslations':f[o(0x224)][o(0x1ff)],'test':f['engines'][o(0x231)],'theme':f[o(0x229)][o(0x203)]};f[o(0x218)][o(0x225)]&&await this['fsi'][o(0x218)]({'srcPath':o(0x22c),'destPath':e+'.html','context':h,'config':f});f[o(0x224)]?.['withHooks']||b['withHook']?await this['fsi'][o(0x218)]({'srcPath':o(0x227),'destPath':e+'.js','framework':'react','context':h,'config':f}):await this[o(0x201)]['template']({'srcPath':o(0x234),'destPath':e+o(0x217),'framework':o(0x22f),'context':h,'config':f});f[o(0x229)][o(0x231)]!==o(0x214)&&await this[o(0x201)][o(0x218)]({'srcPath':o(0x1fe),'destPath':e+o(0x1f8),'framework':o(0x22f),'context':h,'config':f});f[o(0x218)][o(0x222)]&&await this[o(0x201)][o(0x218)]({'srcPath':o(0x209),'destPath':e+'.css','context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':f});f[o(0x229)]['client']!==o(0x22f)&&f['engines']['client']!==o(0x207)?(f[o(0x218)][o(0x222)]&&await this[o(0x201)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x229)]['js'],'content':o(0x208)+h[o(0x1fc)]+'.'+f[o(0x229)][o(0x225)]+o(0x20b)+'import\x20\x27./'+h['fileName']+'.'+f['engines'][o(0x222)]+'\x27;'}),!f[o(0x218)]['css']&&await this[o(0x201)][o(0x1f2)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x208)+h[o(0x1fc)]+'.'+f[o(0x229)][o(0x225)]+'\x27;'})):f[o(0x218)]['css']&&await this[o(0x201)][o(0x1f2)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x208)+h['fileName']+'.'+f[o(0x229)][o(0x222)]+'\x27;'});const i=b['dir']?'/'+b['dir']+'/':'/';g=''+c+i+h[o(0x1fc)]+'/'+h[o(0x1fc)],await this[o(0x201)][o(0x22b)](h[o(0x228)],f,g),!b['root']&&await a121f['processAndRunGenerator'](o(0x20f),[i+b[o(0x1f4)]],b);}),g+'.'+f[n(0x229)]['js'];});
1
+ const a121l=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0x17e))/0x1*(parseInt(j(0x159))/0x2)+-parseInt(j(0x14a))/0x3+-parseInt(j(0x16b))/0x4+-parseInt(j(0x150))/0x5*(parseInt(j(0x164))/0x6)+-parseInt(j(0x17a))/0x7+-parseInt(j(0x156))/0x8*(-parseInt(j(0x140))/0x9)+parseInt(j(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x9a530));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(0x16c)]()[k(0x16f)](k(0x13d))[k(0x16c)]()['constructor'](a121a)[k(0x16f)](k(0x13d));});a121a();function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x13b;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'];function a121c(){const o=['\x27;\x0a','baseDir','pages','checkNpmPackage','fsi','5930351TyRclp','client','css','installNpmPackage','1itykMt','dir','getMakaProjectConfig','page','(((.+)+)+)+$','component','hooks','9HDCBFm','store','withValue','/imports/ui/pages','features','template/template.html','pathFromApp','setTemplate','html','template/template.css','1295640NraDjF','Generate\x20a\x20page.','withHooks','create','.js','true','2205venhpT','react','engines','fileName','warn','api','1091336UpBRpd','/imports/ui/','ramda','116650qWiKgv','withHook','root','import\x20\x27./','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','graphql','.css','string','processAndRunGenerator','theme','injectTemplateModule','42rUvTfV','template','test','components','layouts','className','withTranslations','214312iYZVIy','toString','assign','hasOwnProperty','search','17731080qzeAFO','resourceName','layout','injectAtBeginningOfFile','ssr'];a121c=function(){return o;};return a121c();}Generator[a121l(0x14d)]({'name':a121l(0x13c),'aliases':aliases,'usage':a121l(0x15d),'shortDesc':a121l(0x14b),'validOpts':[{'name':a121l(0x176),'values':[a121l(0x13f),a121l(0x167),a121l(0x177),a121l(0x168)]},{'name':a121l(0x15a),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const m=a121l,c=b[m(0x176)]?m(0x157)+b[m(0x176)]:m(0x143),d=this[m(0x179)][m(0x146)](b),e=this[m(0x179)][m(0x146)]({'pathParts':[c,b[m(0x17f)],paramCase(b['resourceName']),paramCase(b[m(0x171)])]}),f=this[m(0x179)][m(0x13b)]();let g='';return await this[m(0x179)][m(0x142)](f,async()=>{const n=m;typeof f['template'][n(0x148)]==='string'&&(f[n(0x165)]['html']=f[n(0x165)][n(0x148)]==='true'?!![]:![],this[n(0x179)]['setTemplate'](n(0x148),f['template'][n(0x148)]));typeof f[n(0x165)][n(0x166)]===n(0x160)&&(f[n(0x165)][n(0x166)]=f[n(0x165)][n(0x166)]===n(0x14f)?!![]:![],this[n(0x179)]['setTemplate'](n(0x166),f['template'][n(0x166)]));typeof f['template'][n(0x17c)]===n(0x160)&&(f['template'][n(0x17c)]=f['template'][n(0x17c)]==='true'?!![]:![],this[n(0x179)]['setTemplate'](n(0x17c),f[n(0x165)][n(0x17c)]));typeof f[n(0x165)]['js']==='string'&&(f[n(0x165)]['js']=f[n(0x165)]['js']===n(0x14f)?!![]:![],this['fsi'][n(0x147)]('js',f[n(0x165)]['js']));!f[n(0x144)]&&(f[n(0x144)]={});!b[n(0x15b)]&&!this[n(0x179)][n(0x178)](n(0x158))&&(Log[n(0x154)]('Updating\x20npm\x20packages\x20...'),this[n(0x179)][n(0x17d)]('ramda',{'cwd':d}));const h={'name':pascalCase(b[n(0x171)]),'myPath':a121e['relative'](this[n(0x179)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[n(0x171)]),'className':pascalCase(b[n(0x171)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[n(0x171)]),'graphql':f[n(0x152)][n(0x15e)],'features':f[n(0x144)],'client':f[n(0x152)][n(0x17b)],'api':f['engines'][n(0x155)],'ssr':f['engines'][n(0x174)],'isStore':b[n(0x16e)](n(0x141)),'isComponent':b[n(0x16e)](n(0x13e)),'isLayout':b[n(0x16e)](n(0x172)),'withTranslations':f[n(0x144)][n(0x16a)],'test':f[n(0x152)][n(0x166)],'theme':f['engines'][n(0x162)]};f[n(0x165)][n(0x148)]&&await this['fsi'][n(0x165)]({'srcPath':n(0x145),'destPath':e+'.html','context':h,'config':f});f[n(0x144)]?.[n(0x14c)]||b[n(0x15a)]?await this[n(0x179)][n(0x165)]({'srcPath':'hook/hook.js','destPath':e+n(0x14e),'framework':'react','context':h,'config':f}):await this[n(0x179)][n(0x165)]({'srcPath':'component/component.js','destPath':e+n(0x14e),'framework':'react','context':h,'config':f});f[n(0x152)]['test']!=='none'&&await this[n(0x179)][n(0x165)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':n(0x151),'context':h,'config':f});f[n(0x165)][n(0x17c)]&&await this[n(0x179)]['template']({'srcPath':n(0x149),'destPath':e+n(0x15f),'context':Object[n(0x16d)]({},h,{'className':paramCase(b[n(0x171)])}),'config':f});f[n(0x152)][n(0x17b)]!==n(0x151)&&f[n(0x152)]['client']!=='vanilla'?(f[n(0x165)][n(0x17c)]&&await this[n(0x179)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[n(0x152)]['js'],'content':n(0x15c)+h[n(0x153)]+'.'+f[n(0x152)][n(0x148)]+n(0x175)+n(0x15c)+h[n(0x153)]+'.'+f[n(0x152)]['css']+'\x27;'}),!f[n(0x165)][n(0x17c)]&&await this[n(0x179)][n(0x173)]({'filePath':e+'.'+f[n(0x152)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+f[n(0x152)]['html']+'\x27;'})):f[n(0x165)][n(0x17c)]&&await this[n(0x179)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[n(0x152)]['js'],'content':n(0x15c)+h[n(0x153)]+'.'+f[n(0x152)]['css']+'\x27;'});const i=b[n(0x17f)]?'/'+b[n(0x17f)]+'/':'/';g=''+c+i+h['fileName']+'/'+h[n(0x153)],await this[n(0x179)][n(0x163)](h[n(0x169)],f,g),!b[n(0x15b)]&&await a121f[n(0x161)]('route',[i+b[n(0x171)]],b);}),g+'.'+f[m(0x152)]['js'];});
@@ -1 +1 @@
1
- const a122k=a122d;(function(a,b){const h=a122d,c=a();while(!![]){try{const d=parseInt(h(0xad))/0x1*(-parseInt(h(0xa6))/0x2)+parseInt(h(0xac))/0x3+-parseInt(h(0x9f))/0x4+-parseInt(h(0xa5))/0x5*(parseInt(h(0x99))/0x6)+parseInt(h(0x9a))/0x7*(-parseInt(h(0x9d))/0x8)+-parseInt(h(0xa9))/0x9+-parseInt(h(0xaa))/0xa*(-parseInt(h(0xb1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x223e4));const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a122d;if(c){const e=c[i(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const j=a122d;return a122a[j(0xa7)]()[j(0xa2)](j(0xaf))[j(0xa7)]()[j(0xb0)](a122a)[j(0xa2)](j(0xaf));});function a122c(){const n=['maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','44454yrofLd','25vsBeHv','engines','(((.+)+)+)+$','constructor','225313MOognK','getMakaProjectConfig','maka\x20g:publish\x20todos','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','36jwDgyo','14tqjmhv','apply','publish','402328CRQntg','fsi','1103760wKOgUS','server/publish.','tsx','search','templateContent','resourceName','44985BwBFAi','7894RbKqKj','toString','rewriteDestinationPathForEngine','376209oJvEwN','340axXvgW'];a122c=function(){return n;};return a122c();}a122a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x98;let f=c[d];return f;},a122d(a,b);}Generator['create']({'name':a122k(0x9c),'aliases':['p'],'usage':a122k(0xab),'shortDesc':a122k(0x98),'validOpts':[],'examples':[a122k(0xb3)]},async function(a,b){const l=a122k,c=this[l(0x9e)][l(0xb2)]();await this['fsi']['withValue'](c,async()=>{const m=l,d={'name':b[m(0xa4)],'collection':paramCase(b[m(0xa4)]),'noRename':!![]};let e='js';c['engines']['js']===m(0xa1)&&(e='ts');const f=this[m(0x9e)][m(0xa8)]({'pathParts':[m(0xa0)+c[m(0xae)]['js']]}),g=this[m(0x9e)][m(0xa3)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});await this[m(0x9e)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
1
+ function a122c(){const n=['maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','create','resourceName','fsi','614466AvFLQt','10SkOWRO','5938101CtYKBF','7701040qHfaBC','4uyieMB','injectAtEndOfFile','apply','1731905HLPpII','publish','tsx','templateContent','5303azoLCH','constructor','342uAcImG','(((.+)+)+)+$','server/publish.','4388xasEqw','972342oxQcMT','toString','publish/publish.','getMakaProjectConfig','maka\x20g:publish\x20todos','withValue','engines'];a122c=function(){return n;};return a122c();}const a122k=a122d;(function(a,b){const h=a122d,c=a();while(!![]){try{const d=-parseInt(h(0x143))/0x1*(-parseInt(h(0x13c))/0x2)+parseInt(h(0x129))/0x3*(parseInt(h(0x12c))/0x4)+parseInt(h(0x13f))/0x5+-parseInt(h(0x138))/0x6+-parseInt(h(0x12d))/0x7+parseInt(h(0x13b))/0x8+parseInt(h(0x13a))/0x9*(-parseInt(h(0x139))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x84b51));const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a122d;if(c){const e=c[i(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const j=a122d;return a122a[j(0x12e)]()['search'](j(0x12a))[j(0x12e)]()[j(0x128)](a122a)['search'](j(0x12a));});function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x128;let f=c[d];return f;},a122d(a,b);}a122a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a122k(0x135)]({'name':a122k(0x140),'aliases':['p'],'usage':a122k(0x134),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a122k(0x131)]},async function(a,b){const l=a122k,c=this[l(0x137)][l(0x130)]();await this[l(0x137)][l(0x132)](c,async()=>{const m=l,d={'name':b[m(0x136)],'collection':paramCase(b[m(0x136)]),'noRename':!![]};let e='js';c[m(0x133)]['js']===m(0x141)&&(e='ts');const f=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m(0x12b)+c[m(0x133)]['js']]}),g=this[m(0x137)][m(0x142)]({'srcPath':m(0x12f)+e,'context':d,'config':c});await this['fsi'][m(0x13d)]({'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(0x128))/0x1+parseInt(y(0x121))/0x2+parseInt(y(0x130))/0x3*(-parseInt(y(0x13e))/0x4)+-parseInt(y(0x14f))/0x5*(parseInt(y(0x149))/0x6)+parseInt(y(0x141))/0x7*(parseInt(y(0x117))/0x8)+-parseInt(y(0x123))/0x9*(-parseInt(y(0x150))/0xa)+parseInt(y(0x12d))/0xb*(-parseInt(y(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x6be5d));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a123d;if(c){const e=c[z(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const A=a123d;return a123a['toString']()[A(0x11b)](A(0x15a))[A(0x159)]()['constructor'](a123a)[A(0x11b)](A(0x15a));});a123a();function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x10d;let f=c[d];return f;},a123d(a,b);}import a123e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a123B(0x15b)]({'name':a123B(0x127),'aliases':aliases,'validOpts':['private',a123B(0x12b),'only','cwd','config',a123B(0x145),a123B(0x160),'url',a123B(0x13a)],'usage':a123B(0x122),'shortDesc':a123B(0x14b),'examples':[a123B(0x129),a123B(0x148),a123B(0x13f),a123B(0x153),'maka\x20g:route\x20pages/about']},async function(a,b){const C=a123B;try{const c=[C(0x118),C(0x113),C(0x137),'layouts'];if(b[C(0x13a)]&&!c['includes'](b[C(0x13a)])){Log[C(0x116)](C(0x11d)+b['baseDir']+'\x22'),Log[C(0x116)](C(0x14c)+c[C(0x12f)](',\x20'));throw new UsageError();}const d=this['fsi'][C(0x14a)]();await this['fsi']['withValue'](d,async()=>{const D=C,f=b[D(0x15d)]??![];let g=b[D(0x14e)][D(0x110)]('/')[D(0x120)]();if(!g){Log[D(0x116)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}g=pascalCase(g);let h='/'+b['resourceName'];a[D(0x11a)]>0x1&&(h='/'+a[D(0x12e)](function(n){return n!=='/';})['join']('/')[D(0x156)]());h=h['replace'](/\/\//g,'/');b[D(0x12b)]&&(b[D(0x12b)]=camelCase(b[D(0x12b)]));const i=b[D(0x13a)]?D(0x10f)+b[D(0x13a)]:'/imports/ui/pages',j=a123e['join'](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x12b)]||D(0x10e),'templatePath':j,'templateName':pascalCase(g),'client':d['engines']['client'],'newForm':![],'withTranslations':d['features'][D(0x15c)]};f&&(k[D(0x12b)]=D(0x14d));let l,m;if(d[D(0x12c)]['client']===D(0x13b)){if(d[D(0x12c)][D(0x136)]==='true'){const r=this['fsi']['pathFromApp']({'pathParts':[D(0x139),D(0x115),'lib','routes.js']});l=this[D(0x152)][D(0x132)]({'pathParts':[r],'config':d});}else{const s=this[D(0x152)][D(0x112)]({'pathParts':[D(0x139),D(0x115),D(0x135),D(0x144)]});l=this[D(0x152)][D(0x132)]({'pathParts':[s],'config':d});}const n=await this[D(0x152)][D(0x157)](l,g);if(n){Log[D(0x111)](D(0x155)+g+D(0x142));return;}else{const t=this[D(0x152)][D(0x151)](l);Log[D(0x147)]('Adding\x20route\x20'+g+D(0x134)+l[D(0x126)](t,''));}const o=this[D(0x152)]['readFileLines'](l)['map']((u,v)=>{const E=D;return u[E(0x11f)](E(0x13d))?v+0x1:null;})[D(0x12e)](u=>u!==null);let p=this[D(0x152)][D(0x15e)](l)[D(0x114)]((u,v)=>{const F=D;return u['includes'](F(0x131))?v+0x1:null;})[D(0x12e)](u=>u!==null),q=this['fsi']['readFileLines'](l)[D(0x114)]((u,v)=>{const G=D;return u[G(0x11f)](G(0x15f))?v+0x1:null;})[D(0x12e)](u=>u!==null);p[D(0x11a)]>0x0&&q[D(0x11a)]>0x0&&(k[D(0x138)]=!![]);m=this[D(0x152)]['templateContent']({'srcPath':D(0x12a),'framework':D(0x13b),'context':k,'config':d});if(p['length']>0x0||q['length']>0x0){this[D(0x152)][D(0x143)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x11a)]>0x0)q=this[D(0x152)][D(0x15e)](l)['map']((u,v)=>{const H=D;return u[H(0x11f)](H(0x15f))?v+0x1:null;})[D(0x12e)](u=>u!==null),this[D(0x152)][D(0x143)]({'filePath':l,'content':'\x09{'+k[D(0x11c)]+'}','lineNumber':q[0x0]});else p[D(0x11a)]>0x0?(p=this[D(0x152)][D(0x15e)](l)[D(0x114)]((u,v)=>{const I=D;return u[I(0x11f)](I(0x131))?v+0x1:null;})[D(0x12e)](u=>u!==null),this[D(0x152)][D(0x143)]({'filePath':l,'content':'\x09{'+k[D(0x11c)]+'}','lineNumber':p[0x0]})):Log[D(0x111)](D(0x119)+l);}else{const u=this['fsi'][D(0x15e)](l)[D(0x114)](x=>{const J=D;return x[J(0x11f)](J(0x154));}),v=u[D(0x133)](!![])>-0x1,w=v?D(0x158):'</Router>';await this['fsi'][D(0x10d)]({'filePath':l,'content':D(0x124)+m+D(0x124),'begin':D(0x11e),'end':w});}}else{if(d['engines'][D(0x135)]==='vanilla'){const x=this[D(0x152)][D(0x112)]({'pathParts':['imports',D(0x115),D(0x135),'routes.js']});l=this[D(0x152)][D(0x132)]({'pathParts':[x],'config':d}),m=this[D(0x152)][D(0x125)]({'srcPath':D(0x12a),'context':k}),await this[D(0x152)][D(0x140)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x116)](f);}});function a123c(){const K=['create','withTranslations','private','readFileLines','const\x20privateRoutes\x20=\x20(<>','withHook','injectIntoFile','MasterLayout','/imports/ui/','split','warn','pathFromApp','components','map','startup','error','2835400eGkUyg','hooks','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','length','search','templateName','Invalid\x20directory\x20option\x20\x22','<Router','includes','pop','1248626IvjXCO','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','153wBroeS','\x0a\x09\x09','templateContent','replace','route','335412AJTIZH','maka\x20g:route\x20todosIndex\x20todos','route/route.js','layout','engines','118261TOyELn','filter','join','18yKRicd','const\x20publicRoutes\x20=\x20(<>','rewriteDestinationPathForEngine','indexOf','\x20to\x20','client','ssr','pages','newForm','imports','baseDir','react','180qStCLB','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','174092TxGcNu','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','injectAtEndOfFile','7ACzQAO','\x20already\x20exists.\x20\x20Skipping.','injectAfterLineNumber','routes.js','root','apply','info','maka\x20g:route\x20todosEdit\x20todos/:id/edit','8628cigizn','getMakaProjectConfig','Scaffolding\x20for\x20a\x20Route.','Valid\x20options\x20are:\x20','PrivateLayout','resourceName','2335pUmnJt','130440YAWkgK','pathFromProject','fsi','maka\x20g:route\x20pages/lists/listIndex\x20lists','\x22*\x22','Route\x20','toLowerCase','fileContainsString','<Route','toString','(((.+)+)+)+$'];a123c=function(){return K;};return a123c();}
1
+ const a123B=a123d;(function(a,b){const y=a123d,c=a();while(!![]){try{const d=parseInt(y(0x17e))/0x1+parseInt(y(0x189))/0x2+-parseInt(y(0x1c3))/0x3*(-parseInt(y(0x1c0))/0x4)+parseInt(y(0x1cb))/0x5*(-parseInt(y(0x176))/0x6)+parseInt(y(0x1be))/0x7*(parseInt(y(0x187))/0x8)+-parseInt(y(0x1b8))/0x9+-parseInt(y(0x1b4))/0xa*(parseInt(y(0x1ac))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xe21e7));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a123d;if(c){const e=c[z(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const A=a123d;return a123a[A(0x1a6)]()[A(0x1a0)]('(((.+)+)+)+$')[A(0x1a6)]()[A(0x1cc)](a123a)['search'](A(0x17c));});function a123c(){const K=['maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','MasterLayout','newForm','toString','error','imports','\x22*\x22','baseDir','\x20already\x20exists.\x20\x20Skipping.','77506TVbMSr','toLowerCase','pathFromApp','templateContent','withHook','cwd','injectIntoFile','<Route','3910uzmZrw','filter','PrivateLayout','maka\x20g:route\x20todosEdit\x20todos/:id/edit','315225GriKlh','create','pages','pathFromProject','apply','features','6921173maZfle','split','14456vVWCbh','join','route','1422nIRcsf','<Router','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','const\x20privateRoutes\x20=\x20(<>','engines','withValue','fileContainsString','injectAfterLineNumber','10RrhUvg','constructor','ssr','4546728yNrcEi','rewriteDestinationPathForEngine','hooks','fsi','root','only','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Route.','1102443cmIlbI','components','resourceName','true','warn','Valid\x20options\x20are:\x20','route/route.js','config','\x20to\x20','8pJNuOo','info','2855104sWRVDO','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20pages/lists/listIndex\x20lists','length','pop','lib','const\x20publicRoutes\x20=\x20(<>','map','layout','react','url','/imports/ui/','\x0a\x09\x09','Invalid\x20directory\x20option\x20\x22','/imports/ui/pages','includes','routes.js','injectAtEndOfFile','client','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','startup','dir','layouts','search','vanilla','readFileLines'];a123c=function(){return K;};return a123c();}function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x175;let f=c[d];return f;},a123d(a,b);}a123a();import a123e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a123B(0x1b9)]({'name':a123B(0x1c2),'aliases':aliases,'validOpts':['private',a123B(0x191),a123B(0x17b),a123B(0x1b1),a123B(0x185),a123B(0x17a),a123B(0x1b0),a123B(0x193),'baseDir'],'usage':a123B(0x1a3),'shortDesc':a123B(0x17d),'examples':['maka\x20g:route\x20todosIndex\x20todos',a123B(0x1b7),a123B(0x18a),a123B(0x18b),'maka\x20g:route\x20pages/about']},async function(a,b){const C=a123B;try{const c=[C(0x178),C(0x17f),C(0x1ba),C(0x19f)];if(b['baseDir']&&!c[C(0x198)](b[C(0x1aa)])){Log['error'](C(0x196)+b['baseDir']+'\x22'),Log[C(0x1a7)](C(0x183)+c[C(0x1c1)](',\x20'));throw new UsageError();}const d=this[C(0x179)]['getMakaProjectConfig']();await this['fsi'][C(0x1c8)](d,async()=>{const D=C,f=b['private']??![];let g=b[D(0x180)][D(0x1bf)]('/')[D(0x18d)]();if(!g){Log[D(0x1a7)](D(0x1c5));throw new UsageError();}g=pascalCase(g);let h='/'+b[D(0x180)];a[D(0x18c)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[D(0x1c1)]('/')[D(0x1ad)]());h=h['replace'](/\/\//g,'/');b[D(0x191)]&&(b[D(0x191)]=camelCase(b['layout']));const i=b['baseDir']?D(0x194)+b[D(0x1aa)]:D(0x197),j=a123e['join'](i,b[D(0x19e)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x191)]||D(0x1a4),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x1c7)]['client'],'newForm':![],'withTranslations':d[D(0x1bd)]['withTranslations']};f&&(k[D(0x191)]=D(0x1b6));let l,m;if(d['engines'][D(0x19b)]==='react'){if(d['engines'][D(0x175)]===D(0x181)){const r=this[D(0x179)][D(0x1ae)]({'pathParts':['imports',D(0x19d),D(0x18e),'routes.js']});l=this[D(0x179)][D(0x177)]({'pathParts':[r],'config':d});}else{const s=this[D(0x179)]['pathFromApp']({'pathParts':[D(0x1a8),D(0x19d),D(0x19b),D(0x199)]});l=this[D(0x179)][D(0x177)]({'pathParts':[s],'config':d});}const n=await this[D(0x179)][D(0x1c9)](l,g);if(n){Log[D(0x182)]('Route\x20'+g+D(0x1ab));return;}else{const t=this[D(0x179)][D(0x1bb)](l);Log[D(0x188)]('Adding\x20route\x20'+g+D(0x186)+l['replace'](t,''));}const o=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const E=D;return u[E(0x198)](E(0x19c))?v+0x1:null;})[D(0x1b5)](u=>u!==null);let p=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const F=D;return u[F(0x198)](F(0x18f))?v+0x1:null;})[D(0x1b5)](u=>u!==null),q=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const G=D;return u[G(0x198)](G(0x1c6))?v+0x1:null;})[D(0x1b5)](u=>u!==null);p[D(0x18c)]>0x0&&q[D(0x18c)]>0x0&&(k[D(0x1a5)]=!![]);m=this[D(0x179)][D(0x1af)]({'srcPath':'route/route.js','framework':D(0x192),'context':k,'config':d});if(p['length']>0x0||q[D(0x18c)]>0x0){this[D(0x179)][D(0x1ca)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const H=D;return u[H(0x198)](H(0x1c6))?v+0x1:null;})[D(0x1b5)](u=>u!==null),this[D(0x179)][D(0x1ca)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[D(0x18c)]>0x0?(p=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const I=D;return u[I(0x198)](I(0x18f))?v+0x1:null;})[D(0x1b5)](u=>u!==null),this[D(0x179)][D(0x1ca)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const u=this['fsi']['readFileLines'](l)[D(0x190)](x=>{const J=D;return x[J(0x198)](J(0x1a9));}),v=u['indexOf'](!![])>-0x1,w=v?D(0x1b3):'</Router>';await this[D(0x179)][D(0x1b2)]({'filePath':l,'content':'\x0a\x09\x09'+m+D(0x195),'begin':D(0x1c4),'end':w});}}else{if(d[D(0x1c7)]['client']===D(0x1a1)){const x=this['fsi'][D(0x1ae)]({'pathParts':[D(0x1a8),D(0x19d),'client',D(0x199)]});l=this[D(0x179)][D(0x177)]({'pathParts':[x],'config':d}),m=this['fsi'][D(0x1af)]({'srcPath':D(0x184),'context':k}),await this[D(0x179)][D(0x19a)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x1a7)](f);}});
@@ -1 +1 @@
1
- function a124c(){const o=['maka\x20{generate,\x20g}:{service}\x20<resource-name>','100ZNiGph','160324aachNV','resourceName','logger','toString','checkNpmPackage','(((.+)+)+)+$','fsi','1oYyyFr','854715fMLzhm','816111PSGian','81tbNwVW','template','error','constructor','service/logger/logger.js','7AjRWGu','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','25974630fmBvAv','pathFromApp','installNpmPackage','maka\x20g:svc\x20service-logger\x20--type=logger','type','1146706zEohZA','7488072fqsQJc','winston\x20setimmediate','imports','6006102LUgMsM','withValue','svc','create','winston','tsx'];a124c=function(){return o;};return a124c();}const a124l=a124d;(function(a,b){const j=a124d,c=a();while(!![]){try{const d=-parseInt(j(0x1a6))/0x1*(-parseInt(j(0x193))/0x2)+parseInt(j(0x187))/0x3*(-parseInt(j(0x19f))/0x4)+-parseInt(j(0x185))/0x5+-parseInt(j(0x197))/0x6*(parseInt(j(0x18c))/0x7)+parseInt(j(0x194))/0x8+parseInt(j(0x186))/0x9*(-parseInt(j(0x19e))/0xa)+parseInt(j(0x18e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xad47b));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['toString']()['search'](k(0x1a4))[k(0x1a2)]()[k(0x18a)](a124a)['search'](k(0x1a4));});a124a();function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x185;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(0x19a)]({'name':'service','aliases':[a124l(0x199)],'usage':a124l(0x19d),'shortDesc':a124l(0x18d),'requiredOpts':[{'name':a124l(0x192),'values':[a124l(0x1a1)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a124l(0x191)]},async function(a,b){const m=a124l;try{const c=this[m(0x1a5)]['getMakaProjectConfig']();await this[m(0x1a5)][m(0x198)](c,async()=>{const n=m,d=this['fsi']['pathFromApp']({}),f=paramCase(b[n(0x1a0)]),g={'name':pascalCase(b[n(0x1a0)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']===n(0x19c)&&(h='ts');if(b['type']===n(0x1a1)){!this['fsi'][n(0x1a3)](n(0x19b))&&await this['fsi'][n(0x190)](n(0x195),{'cwd':d,'msg':'Installing\x20winston'});const i=this[n(0x1a5)][n(0x18f)]({'pathParts':[n(0x196),'startup','lib','services',f+'.'+h]});await this[n(0x1a5)][n(0x188)]({'srcPath':n(0x18b),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x189)](d);}});
1
+ const a124m=a124d;(function(a,b){const j=a124d,c=a();while(!![]){try{const d=parseInt(j(0x103))/0x1+-parseInt(j(0xe6))/0x2*(parseInt(j(0xeb))/0x3)+parseInt(j(0xe2))/0x4*(-parseInt(j(0xf6))/0x5)+-parseInt(j(0xf3))/0x6*(parseInt(j(0xf5))/0x7)+parseInt(j(0xdf))/0x8*(-parseInt(j(0xf7))/0x9)+-parseInt(j(0xff))/0xa+parseInt(j(0xe4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x27363));function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0xdf;let f=c[d];return f;},a124d(a,b);}function a124c(){const p=['apply','598220uSPKcm','(((.+)+)+)+$','withValue','getMakaProjectConfig','96928UJBAxs','432GGYQKk','installNpmPackage','fsi','4bCRHzA','toString','10477225idvHXR','type','1160XuxDhl','logger','maka\x20{generate,\x20g}:{service}\x20<resource-name>','create','imports','1389cnBPfC','winston\x20setimmediate','maka\x20g:svc\x20service-logger\x20--type=logger','lib','engines','constructor','startup','pathFromApp','6VChnkB','winston','393617kOGMOv','1090535QQLrfm','47682joIwEl','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','service','service/logger/logger.js','search','Installing\x20winston','resourceName'];a124c=function(){return p;};return a124c();}const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a124d;if(c){const e=c[k(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const l=a124d;return a124a['toString']()['search'](l(0x100))[l(0xe3)]()[l(0xf0)](a124a)[l(0xfb)]('(((.+)+)+)+$');});a124a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a124m(0xe9)]({'name':a124m(0xf9),'aliases':['svc'],'usage':a124m(0xe8),'shortDesc':a124m(0xf8),'requiredOpts':[{'name':a124m(0xe5),'values':[a124m(0xe7)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a124m(0xed)]},async function(a,b){const n=a124m;try{const c=this[n(0xe1)][n(0x102)]();await this[n(0xe1)][n(0x101)](c,async()=>{const o=n,d=this[o(0xe1)]['pathFromApp']({}),f=paramCase(b[o(0xfd)]),g={'name':pascalCase(b[o(0xfd)]),'fileName':f,'camelCase':camelCase(b[o(0xfd)]),'type':b[o(0xe5)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[o(0xef)]['js']==='tsx'&&(h='ts');if(b[o(0xe5)]===o(0xe7)){!this[o(0xe1)]['checkNpmPackage'](o(0xf4))&&await this['fsi'][o(0xe0)](o(0xec),{'cwd':d,'msg':o(0xfc)});const i=this[o(0xe1)][o(0xf2)]({'pathParts':[o(0xea),o(0xf1),o(0xee),'services',f+'.'+h]});await this[o(0xe1)]['template']({'srcPath':o(0xfa),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a125d,c=a();while(!![]){try{var d=-parseInt(f(0x72))/0x1*(parseInt(f(0x6b))/0x2)+parseInt(f(0x68))/0x3+-parseInt(f(0x73))/0x4+-parseInt(f(0x6d))/0x5+parseInt(f(0x6a))/0x6+-parseInt(f(0x70))/0x7+parseInt(f(0x6e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x2e390));var a125b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a125d;if(c){var e=c[g(0x71)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){var h=a125d;return a125a[h(0x6c)]()[h(0x6f)]('(((.+)+)+)+$')[h(0x6c)]()[h(0x69)](a125a)[h(0x6f)]('(((.+)+)+)+$');});function a125d(a,b){var c=a125c();return a125d=function(d,e){d=d-0x68;var f=c[d];return f;},a125d(a,b);}a125a();function a125c(){var i=['1364Quvwak','toString','1231685AiaLIu','3901000RGlwhi','search','263368qrdzhH','apply','173SVKqzV','988472ydfdiT','259389aGppIt','constructor','1585830EJFpHE'];a125c=function(){return i;};return a125c();}import'./translation.js';import'./openssl.js';
1
+ (function(a,b){var f=a125d,c=a();while(!![]){try{var d=-parseInt(f(0x1e0))/0x1*(-parseInt(f(0x1eb))/0x2)+-parseInt(f(0x1df))/0x3+parseInt(f(0x1ea))/0x4+-parseInt(f(0x1e5))/0x5*(-parseInt(f(0x1e8))/0x6)+-parseInt(f(0x1de))/0x7+parseInt(f(0x1e4))/0x8+-parseInt(f(0x1e6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x4f709));var a125b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a125d;if(c){var e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){var h=a125d;return a125a[h(0x1e2)]()[h(0x1e3)](h(0x1e1))['toString']()[h(0x1e7)](a125a)['search'](h(0x1e1));});a125a();function a125c(){var i=['apply','799688vVaSOD','8lHFYwJ','2694531FRDNky','1205580LmkPtd','158663dkdESL','(((.+)+)+)+$','toString','search','609728naJQKQ','66085YZMaQG','1637145kLwrks','constructor','174CPTvPX'];a125c=function(){return i;};return a125c();}function a125d(a,b){var c=a125c();return a125d=function(d,e){d=d-0x1de;var f=c[d];return f;},a125d(a,b);}import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a126k=a126d;(function(a,b){const i=a126d,c=a();while(!![]){try{const d=-parseInt(i(0x186))/0x1+-parseInt(i(0x17a))/0x2*(parseInt(i(0x179))/0x3)+-parseInt(i(0x16b))/0x4+-parseInt(i(0x16f))/0x5+parseInt(i(0x171))/0x6+-parseInt(i(0x17b))/0x7*(-parseInt(i(0x16a))/0x8)+parseInt(i(0x169))/0x9*(parseInt(i(0x184))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xbd730));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(0x185)]()['search'](j(0x17d))[j(0x185)]()[j(0x172)](a126a)[j(0x183)]('(((.+)+)+)+$');});function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x169;let f=c[d];return f;},a126d(a,b);}a126a();import{Generator}from'../../generator.js';function a126c(){const n=['942572LfsvaW','join','appName','env','6934010nSxhak','openssl.conf','3769548ZrsOCN','constructor','getMakaProjectConfig','fsi','withValue','maka\x20g:sslconfig\x20--env\x20dev','create','getGlobalConfig','3iciTAy','1053904TqmYQI','2068549PwhTPP','maka\x20{generate,\x20g}:sslconfig','(((.+)+)+)+$','Generate\x20a\x20new\x20openssl\x20config\x20file','service','openssl/openssl.conf','sslconfig','error','search','1297040fEqPsd','toString','1370688MiObnh','234nAlSuy','8MeFjLs'];a126c=function(){return n;};return a126c();}import{Log}from'../../tools/log/log.class.js';import a126e from'path';Generator[a126k(0x177)]({'name':a126k(0x181),'usage':a126k(0x17c),'shortDesc':a126k(0x17e),'noNeedResource':!![],'requiredOpts':[a126k(0x16e)],'examples':[a126k(0x176)],'validOpts':[]},async function(a,b){const l=a126k;try{const c=await this[l(0x174)][l(0x173)](),d=await this[l(0x174)][l(0x178)](),f=this['fsi']['getAppConfigPath'](b[l(0x16e)]),g=a126e[l(0x16c)](f,'_keys',l(0x170));await this[l(0x174)][l(0x175)](c,async()=>{const m=l,h={'app':d[m(0x16d)],'noRename':!![]};await this[m(0x174)]['template']({'srcPath':m(0x180),'destPath':g,'framework':m(0x17f),'context':h,'config':c});});}catch(h){Log[l(0x182)](h);}});
1
+ const a126l=a126d;(function(a,b){const i=a126d,c=a();while(!![]){try{const d=-parseInt(i(0x9a))/0x1+parseInt(i(0xa8))/0x2+-parseInt(i(0xaf))/0x3*(-parseInt(i(0xa3))/0x4)+-parseInt(i(0xb0))/0x5+-parseInt(i(0xa2))/0x6+-parseInt(i(0xa5))/0x7*(-parseInt(i(0xac))/0x8)+-parseInt(i(0xb1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xc86ee));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a126d;if(c){const e=c[j(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const k=a126d;return a126a[k(0xa9)]()[k(0x9f)](k(0xa0))[k(0xa9)]()[k(0xa1)](a126a)[k(0x9f)]('(((.+)+)+)+$');});function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x98;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[a126l(0xae)]({'name':a126l(0xaa),'usage':a126l(0x99),'shortDesc':a126l(0x9e),'noNeedResource':!![],'requiredOpts':[a126l(0xa6)],'examples':[a126l(0xab)],'validOpts':[]},async function(a,b){const m=a126l;try{const c=await this[m(0xb3)][m(0x9b)](),d=await this['fsi'][m(0xa4)](),f=this[m(0xb3)][m(0x9d)](b[m(0xa6)]),g=a126e[m(0x98)](f,'_keys',m(0x9c));await this[m(0xb3)]['withValue'](c,async()=>{const n=m,h={'app':d[n(0xa7)],'noRename':!![]};await this['fsi'][n(0xb2)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0xb5),'context':h,'config':c});});}catch(h){Log[m(0xad)](h);}});function a126c(){const o=['env','appName','3217178GOPwAV','toString','sslconfig','maka\x20g:sslconfig\x20--env\x20dev','24PaHBjm','error','create','155778YmDbAT','1879620WVHHrB','6185286NRwqyR','template','fsi','apply','service','join','maka\x20{generate,\x20g}:sslconfig','1557496TxovmT','getMakaProjectConfig','openssl.conf','getAppConfigPath','Generate\x20a\x20new\x20openssl\x20config\x20file','search','(((.+)+)+)+$','constructor','3996552wjtgbr','68sZLdwD','getGlobalConfig','3771621NtfLdo'];a126c=function(){return o;};return a126c();}
@@ -1 +1 @@
1
- const a127A=a127d;(function(a,b){const x=a127d,c=a();while(!![]){try{const d=-parseInt(x(0xd5))/0x1+parseInt(x(0xcf))/0x2*(parseInt(x(0xba))/0x3)+parseInt(x(0xd6))/0x4+parseInt(x(0xe1))/0x5*(-parseInt(x(0xbe))/0x6)+-parseInt(x(0xda))/0x7+-parseInt(x(0xb4))/0x8*(-parseInt(x(0xc9))/0x9)+parseInt(x(0xad))/0xa*(parseInt(x(0xaa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x2b49d));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a127d;if(c){const e=c[y(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const z=a127d;return a127a[z(0xa8)]()['search']('(((.+)+)+)+$')[z(0xa8)]()[z(0xc8)](a127a)[z(0xc1)](z(0xb5));});function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xa7;let f=c[d];return f;},a127d(a,b);}a127a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a127e from'fs';function a127c(){const D=['setProjectConfig','withValue','findAppDirectory','checkNpmPackage','\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','104064rYKvHq','270184vqlpSY','Generate\x20a\x20new\x20locale\x20translation','getGlobalConfig','lib','2005374hCDbhr','installNpmPackage','exit','startup','isFile','features.withTranslations','locales','5JzTLAz','translations','fsi','lang','template','i18n.js','injectAtBeginningOfFile','index.','appName','true','services','toString','import\x20\x27../lib/services/translations/i18n\x27;','11QiTwLJ','default\x20as\x20','export\x20{\x20default\x20as\x20','4280340hzZFkt','i18n/i18n.js','client','imports','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','error','maka\x20g:translation\x20--lang=de','24jNSiIk','(((.+)+)+)+$','apply','index.js','i18n/index.js','i18next','309AQmYTR','readFileSync','grep','pathFromApp','1121352Uqbtmr','server','injectAtEndOfFile','search','getMakaProjectConfig','create','maka\x20{generate,\x20g}:translation','import\x20\x27../lib/services/translations/i18n\x27;\x0a','\x20}\x20from\x20\x27./','warn','constructor','602298doXVrB','root','rewriteDestinationPathForEngine','service','engines','ssr','1134etaeBY'];a127c=function(){return D;};return a127c();}Generator[a127A(0xc3)]({'name':'translation','usage':a127A(0xc4),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a127A(0xd7),'description':a127A(0xd4),'examples':['maka\x20g:translation\x20--lang=en\x20(default)','maka\x20g:translation\x20--lang=fr',a127A(0xb3)],'validOpts':[]},async function(a,b){const B=a127A;try{const c=this['fsi'][B(0xc2)](),d=this[B(0xe3)][B(0xd8)](),f=this[B(0xe3)][B(0xd2)]();await this[B(0xe3)][B(0xd1)](c,async()=>{const C=B;try{!b[C(0xe4)]&&(b[C(0xe4)]='en');!b[C(0xca)]&&!this[C(0xe3)][C(0xd3)](C(0xb9))&&(Log['warn'](C(0xb1)),this['fsi'][C(0xdb)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0xe3)][C(0xd0)](C(0xdf),!![]));const g=this[C(0xe3)][C(0xbd)]({'pathParts':['imports',C(0xdd),C(0xaf),C(0xb7)]}),h=this[C(0xe3)][C(0xcb)]({'pathParts':[g],'config':c}),i=this[C(0xe3)][C(0xbc)](a127e['readFileSync'](h)[C(0xa8)](),C(0xa9))[0x0]&&!![];if(c[C(0xcd)][C(0xce)]===C(0xea)){!i&&this[C(0xe3)][C(0xe7)]({'filePath':h,'content':C(0xc5)});const t=this[C(0xe3)]['pathFromApp']({'pathParts':[C(0xb0),C(0xdd),C(0xbf),C(0xb7)]}),u=this['fsi'][C(0xcb)]({'pathParts':[t],'config':c}),v=this[C(0xe3)]['grep'](a127e[C(0xbb)](u)[C(0xa8)](),C(0xa9))[0x0]&&!![];!v&&this[C(0xe3)][C(0xe7)]({'filePath':u,'content':C(0xc5)});}else!i&&this['fsi'][C(0xe7)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0xe9)],'config':c},k=this[C(0xe3)]['pathFromApp']({'pathParts':[C(0xb0),'startup',C(0xd9),C(0xa7),C(0xe2),C(0xe6)]}),l=this[C(0xe3)][C(0xde)](this[C(0xe3)][C(0xcb)]({'pathParts':[k],'config':c}));!l&&await this[C(0xe3)][C(0xe5)]({'srcPath':C(0xae),'destPath':k,'framework':C(0xcc),'context':j,'config':c});const m=this[C(0xe3)][C(0xbd)]({'pathParts':['imports',C(0xdd),C(0xd9),'services','translations',C(0xe0),b[C(0xe4)]+'.js']}),n=this[C(0xe3)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0xe3)]['isFile'](n);!o?await this['fsi'][C(0xe5)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0xcc),'context':j,'config':c}):Log[C(0xc7)]('Locale\x20already\x20defined:\x20'+n);const p=this[C(0xe3)][C(0xbd)]({'pathParts':['imports',C(0xdd),'lib',C(0xa7),C(0xe2),C(0xe0),C(0xe8)+c[C(0xcd)]['js']]}),q=this[C(0xe3)][C(0xcb)]({'pathParts':[p],'config':c}),r=this[C(0xe3)][C(0xde)](q);!r&&await this[C(0xe3)][C(0xe5)]({'srcPath':C(0xb8),'destPath':p,'framework':C(0xcc),'context':j,'config':c});const s=this[C(0xe3)][C(0xbc)](a127e[C(0xbb)](p)[C(0xa8)](),C(0xab)+b[C(0xe4)])[0x0]&&!![];!s?await this[C(0xe3)][C(0xc0)]({'filePath':p,'content':C(0xac)+b[C(0xe4)]+C(0xc6)+b[C(0xe4)]+'\x27;'}):Log['warn']('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0xb2)](w),process[C(0xdc)](0x1);}});}catch(g){Log[B(0xb2)](g),process['exit'](0x1);}});
1
+ function a127c(){const D=['maka\x20g:translation\x20--lang=fr','index.js','(((.+)+)+)+$','lang','installNpmPackage','1043706ZJjrYo','locales','findAppDirectory','lib','true','import\x20\x27../lib/services/translations/i18n\x27;\x0a','i18next','maka\x20g:translation\x20--lang=en\x20(default)','toString','712912pHdqcG','i18n/locales.js','imports','fsi','maka\x20g:translation\x20--lang=de','injectAtBeginningOfFile','exit','withValue','root','1485048jPGhdf','468231dCLBGg','apply','default\x20as\x20','120uYdarI','1212392zbfLYh','i18n/index.js','pathFromApp','Locale\x20already\x20exported:\x20','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','readFileSync','services','translations','features.withTranslations','server','export\x20{\x20default\x20as\x20','1864935xBjYSV','error','isFile','service','683244xKUXJw','\x20}\x20from\x20\x27./','index.','28SPlEDF','client','import\x20\x27../lib/services/translations/i18n\x27;','rewriteDestinationPathForEngine','checkNpmPackage','template','grep','maka\x20{generate,\x20g}:translation','ssr','search','i18n.js','.js','Generate\x20a\x20new\x20locale\x20translation','create','warn','Locale\x20already\x20defined:\x20','startup','engines','i18next\x20i18next-browser-languagedetector\x20react-i18next','getMakaProjectConfig','setProjectConfig','getGlobalConfig'];a127c=function(){return D;};return a127c();}const a127A=a127d;function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x12a;let f=c[d];return f;},a127d(a,b);}(function(a,b){const x=a127d,c=a();while(!![]){try{const d=-parseInt(x(0x14e))/0x1+parseInt(x(0x157))/0x2+-parseInt(x(0x158))/0x3+-parseInt(x(0x15c))/0x4+parseInt(x(0x167))/0x5+-parseInt(x(0x145))/0x6*(parseInt(x(0x12a))/0x7)+-parseInt(x(0x15b))/0x8*(-parseInt(x(0x16b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x5e538));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a127d;if(c){const e=c[y(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const z=a127d;return a127a[z(0x14d)]()[z(0x133)](z(0x142))[z(0x14d)]()['constructor'](a127a)[z(0x133)](z(0x142));});a127a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a127e from'fs';Generator[a127A(0x137)]({'name':'translation','usage':a127A(0x131),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a127A(0x143),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a127A(0x136),'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(0x14c),a127A(0x140),a127A(0x152)],'validOpts':[]},async function(a,b){const B=a127A;try{const c=this[B(0x151)][B(0x13d)](),d=this['fsi'][B(0x13f)](),f=this['fsi'][B(0x147)]();await this['fsi'][B(0x155)](c,async()=>{const C=B;try{!b[C(0x143)]&&(b['lang']='en');!b[C(0x156)]&&!this['fsi'][C(0x12e)](C(0x14b))&&(Log[C(0x138)](C(0x160)),this[C(0x151)][C(0x144)](C(0x13c),{'cwd':f}),this[C(0x151)][C(0x13e)](C(0x164),!![]));const g=this[C(0x151)]['pathFromApp']({'pathParts':['imports','startup',C(0x12b),C(0x141)]}),h=this[C(0x151)][C(0x12d)]({'pathParts':[g],'config':c}),i=this[C(0x151)][C(0x130)](a127e[C(0x161)](h)[C(0x14d)](),C(0x12c))[0x0]&&!![];if(c[C(0x13b)][C(0x132)]===C(0x149)){!i&&this[C(0x151)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x14a)});const t=this[C(0x151)][C(0x15e)]({'pathParts':[C(0x150),'startup',C(0x165),C(0x141)]}),u=this[C(0x151)][C(0x12d)]({'pathParts':[t],'config':c}),v=this[C(0x151)]['grep'](a127e[C(0x161)](u)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi'][C(0x153)]({'filePath':u,'content':C(0x14a)});}else!i&&this['fsi'][C(0x153)]({'filePath':h,'content':C(0x14a)});const j={'app':d['appName'],'config':c},k=this[C(0x151)]['pathFromApp']({'pathParts':['imports',C(0x13a),C(0x148),'services',C(0x163),C(0x134)]}),l=this[C(0x151)]['isFile'](this[C(0x151)][C(0x12d)]({'pathParts':[k],'config':c}));!l&&await this['fsi'][C(0x12f)]({'srcPath':'i18n/i18n.js','destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0x151)]['pathFromApp']({'pathParts':[C(0x150),C(0x13a),C(0x148),'services','translations',C(0x146),b['lang']+C(0x135)]}),n=this[C(0x151)][C(0x12d)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x169)](n);!o?await this[C(0x151)]['template']({'srcPath':C(0x14f),'destPath':m,'framework':C(0x16a),'context':j,'config':c}):Log[C(0x138)](C(0x139)+n);const p=this['fsi'][C(0x15e)]({'pathParts':['imports',C(0x13a),C(0x148),C(0x162),C(0x163),C(0x146),C(0x16d)+c[C(0x13b)]['js']]}),q=this[C(0x151)][C(0x12d)]({'pathParts':[p],'config':c}),r=this[C(0x151)][C(0x169)](q);!r&&await this[C(0x151)][C(0x12f)]({'srcPath':C(0x15d),'destPath':p,'framework':C(0x16a),'context':j,'config':c});const s=this[C(0x151)][C(0x130)](a127e[C(0x161)](p)[C(0x14d)](),C(0x15a)+b[C(0x143)])[0x0]&&!![];!s?await this[C(0x151)]['injectAtEndOfFile']({'filePath':p,'content':C(0x166)+b[C(0x143)]+C(0x16c)+b[C(0x143)]+'\x27;'}):Log[C(0x138)](C(0x15f)+p);}catch(w){Log[C(0x168)](w),process[C(0x154)](0x1);}});}catch(g){Log[B(0x168)](g),process[B(0x154)](0x1);}});
@@ -1 +1 @@
1
- const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=-parseInt(j(0x9b))/0x1*(-parseInt(j(0xb4))/0x2)+-parseInt(j(0xac))/0x3*(parseInt(j(0xa1))/0x4)+-parseInt(j(0x9d))/0x5+-parseInt(j(0xab))/0x6+-parseInt(j(0xa5))/0x7+parseInt(j(0xa2))/0x8+-parseInt(j(0xa3))/0x9*(-parseInt(j(0x9c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xc8b4e));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0xa9)]()[l(0x9e)](l(0xb1))['toString']()[l(0xa4)](a128a)[l(0x9e)](l(0xb1));});a128a();import a128e from'minimist';import a128f from'os';import a128g from'path';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x9b;let f=c[d];return f;},a128d(a,b);}import a128h from'humps';import a128i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';function a128c(){const n=['NODE_NO_WARNINGS','camelizeKeys','(((.+)+)+)+$','apply','TOOL_NODE_FLAGS','6ZGdlfg','105074oLCmDU','2220390IDNFwm','2587240rssyPK','search','env','totalmem','868CtjwCe','13096280bKKfZE','9PvTXJg','constructor','5107984kzNguf','run','argv','stringify','toString','MAKA_COMMAND_PATH','27426JlekUy','1389PynUNJ','BROWSERSLIST_IGNORE_OLD_DATA','dirname'];a128c=function(){return n;};return a128c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a128g[a128m(0xae)](__filename);global[a128m(0xaa)]=__dirname;const total_memory=a128f[a128m(0xa0)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a128m(0x9f)][a128m(0xb3)]='--max-old-space-size='+total_mem_in_mb,process[a128m(0x9f)][a128m(0xad)]='1',process[a128m(0x9f)][a128m(0xaf)]='1';const argv=a128e(process[a128m(0xa7)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a128m(0xa8)](argv));delete deepCopyArgv['_'];const opts=a128h[a128m(0xb0)](deepCopyArgv);a128i[a128m(0xa6)](args,opts);
1
+ const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=parseInt(j(0x1fb))/0x1+parseInt(j(0x1ed))/0x2+-parseInt(j(0x1f0))/0x3*(-parseInt(j(0x1ea))/0x4)+parseInt(j(0x1e9))/0x5*(parseInt(j(0x1f6))/0x6)+-parseInt(j(0x201))/0x7+parseInt(j(0x1f5))/0x8*(-parseInt(j(0x202))/0x9)+parseInt(j(0x1ee))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x97bca));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0x1f4)]()[l(0x1ec)]('(((.+)+)+)+$')['toString']()[l(0x1fe)](a128a)[l(0x1ec)]('(((.+)+)+)+$');});a128a();import a128e from'minimist';function a128c(){const n=['floor','totalmem','apply','--max-old-space-size=','1012323HETHPR','url','parse','constructor','stringify','camelizeKeys','4845029DESoqg','45VkyJns','235EhHyeA','810116RErLOo','slice','search','505316YLNvmi','2550660nkhkLB','dirname','6DstBES','argv','BROWSERSLIST_IGNORE_OLD_DATA','env','toString','1077424HXTdDS','7908qOEShC'];a128c=function(){return n;};return a128c();}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(0x1fc)]),__dirname=a128g[a128m(0x1ef)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a128f[a128m(0x1f8)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a128m(0x1f7)](total_mem_in_mb),process[a128m(0x1f3)]['TOOL_NODE_FLAGS']=a128m(0x1fa)+total_mem_in_mb,process[a128m(0x1f3)][a128m(0x1f2)]='1',process[a128m(0x1f3)]['NODE_NO_WARNINGS']='1';const argv=a128e(process[a128m(0x1f1)][a128m(0x1eb)](0x2)),args=argv['_'],deepCopyArgv=JSON[a128m(0x1fd)](JSON[a128m(0x1ff)](argv));function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x1e9;let f=c[d];return f;},a128d(a,b);}delete deepCopyArgv['_'];const opts=a128h[a128m(0x200)](deepCopyArgv);a128i['run'](args,opts);
@@ -4,7 +4,12 @@ import MakaRest, { Codes } from 'meteor/maka:rest';
4
4
  const <%= name %>Api = new MakaRest({
5
5
  apiPath: '<%= fileName %>',
6
6
  version: '<%= apiVersion %>',
7
- prettyJson: Meteor.isDevelopment
7
+ prettyJson: Meteor.isDevelopment,
8
+ rateLimitOptions: {
9
+ useRedits: false,
10
+ points: 10,
11
+ duration: 1000,
12
+ }
8
13
  });
9
14
 
10
15
  // maps to /api/<%= apiVersion %>/<%= fileName %>/status
@@ -4,7 +4,12 @@ import MakaRest, { Codes } from 'meteor/maka:rest';
4
4
  const <%= name %>Api = new MakaRest({
5
5
  apiPath: '<%= fileName %>',
6
6
  version: '<%= apiVersion %>',
7
- prettyJson: Meteor.isDevelopment
7
+ prettyJson: Meteor.isDevelopment,
8
+ rateLimitOptions: {
9
+ useRedits: false,
10
+ points: 10,
11
+ duration: 1000,
12
+ }
8
13
  });
9
14
 
10
15
  // maps to /api/<%= apiVersion %>/<%= fileName %>/status
@@ -2,6 +2,7 @@ import { Meteor } from 'meteor/meteor';
2
2
  import { ValidatedMethod } from 'meteor/mdg:validated-method';
3
3
  import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
4
4
 
5
+
5
6
  /**
6
7
  * Using ValidatedMethod (maintained by MDG) is the best
7
8
  * practice by Meteor Development Group (MDG),
@@ -9,20 +10,18 @@ import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
9
10
  * calls from the client are properly handled.
10
11
  *
11
12
  */
12
- const <%= name %> = new ValidatedMethod({
13
- name: '<%= fileName %>',
13
+ const <%= name %>Status = new ValidatedMethod({
14
+ name: '<%= fileName %>-<%= apiVersion %>-status',
14
15
  validate() {
15
- // check(doc, Object, 'while checking insert doc');
16
16
  // check(this.userId, String, 'while validating user');
17
17
  },
18
18
  run() {
19
- //return null;
19
+ return { message: 'OK' };
20
20
  }
21
21
  });
22
22
 
23
-
24
23
  const RATE_LIMITED_METHODS = [
25
- <%= name %>
24
+ <%= name %>Status
26
25
  ].map(value => value['name']);
27
26
 
28
27
  if (Meteor.isServer) {
@@ -10,18 +10,18 @@ import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
10
10
  * calls from the client are properly handled.
11
11
  *
12
12
  */
13
-
14
- const <%= name %> = new ValidatedMethod({
15
- name: '<%= fileName %>',
13
+ const <%= name %>Status = new ValidatedMethod({
14
+ name: '<%= fileName %>-<%= apiVersion %>status',
16
15
  validate() {
16
+ // check(this.userId, String, 'while validating user');
17
17
  },
18
18
  run() {
19
- //return null;
19
+ return { message: 'OK' };
20
20
  }
21
21
  });
22
22
 
23
23
  const RATE_LIMITED_METHODS = [
24
- <%= name %>
24
+ <%= name %>Status
25
25
  ].map(value => value['name']);
26
26
 
27
27
  if (Meteor.isServer) {
@@ -1,2 +1,2 @@
1
- <% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/rpc-methods';<% } %>
2
- <% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/rest-api';<% } %>
1
+ <% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rpc-methods';<% } %>
2
+ <% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rest-api';<% } %>
@@ -1,2 +1,2 @@
1
- <% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/rpc-methods';<% } %>
2
- <% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/rest-api';<% } %>
1
+ <% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rpc-methods';<% } %>
2
+ <% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rest-api';<% } %>