@maka/maka-cli 4.6.21 → 4.6.22

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 (147) 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/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kits/_index.js +1 -1
  108. package/bundle/obf/src/generators/kits/kit.js +1 -1
  109. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  110. package/bundle/obf/src/generators/kits/mui/layout.mui.gen.js +1 -1
  111. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  112. package/bundle/obf/src/generators/layout.js +1 -1
  113. package/bundle/obf/src/generators/maka.gen.js +1 -1
  114. package/bundle/obf/src/generators/methods.js +1 -1
  115. package/bundle/obf/src/generators/package.js +1 -1
  116. package/bundle/obf/src/generators/page.js +1 -1
  117. package/bundle/obf/src/generators/publish.js +1 -1
  118. package/bundle/obf/src/generators/route.js +1 -1
  119. package/bundle/obf/src/generators/service.js +1 -1
  120. package/bundle/obf/src/generators/services/_index.js +1 -1
  121. package/bundle/obf/src/generators/services/openssl.js +1 -1
  122. package/bundle/obf/src/generators/services/translation.js +1 -1
  123. package/bundle/obf/src/maka.js +1 -1
  124. package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js +32 -0
  125. package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.jsx +32 -0
  126. package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.ts +0 -0
  127. package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.tsx +0 -0
  128. package/bundle/obf/src/tool.js +1 -1
  129. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  130. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  131. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  133. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  134. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  135. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/https/https.class.js +1 -1
  137. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  138. package/bundle/obf/src/tools/log/log.class.js +1 -1
  139. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/options/options.class.js +1 -1
  141. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  142. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  143. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  145. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  146. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  147. package/package.json +1 -1
@@ -1 +1 @@
1
- const a99y=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xbb;let f=c[d];return f;},a99d(a,b);}(function(a,b){const v=a99d,c=a();while(!![]){try{const d=-parseInt(v(0xcf))/0x1+-parseInt(v(0xde))/0x2*(-parseInt(v(0xf3))/0x3)+parseInt(v(0x10e))/0x4+parseInt(v(0xda))/0x5*(-parseInt(v(0xe6))/0x6)+parseInt(v(0x10d))/0x7*(parseInt(v(0xec))/0x8)+parseInt(v(0x102))/0x9+-parseInt(v(0xee))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x6459f));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a99d;if(c){const e=c[w(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const x=a99d;return a99a['toString']()['search']('(((.+)+)+)+$')[x(0xdb)]()[x(0xf8)](a99a)[x(0xcd)]('(((.+)+)+)+$');});a99a();function a99c(){const B=['processAndRunGenerator','-api\x27;','resolvers.','pathFromApp','Resolvers\x20}\x20from\x20\x27','/graphql/resolvers','maka:check','fsi','Fixtures','injectAtEndOfFile','search','installMeteorPackage','153589yuddMT','maka:rest','withPubs','api/fixtures.js','apiAnswers','withFixtures','injectIntoFile','maka\x20{generate,\x20g}:{api}\x20<resource-name>','if\x20\x5c(typeList','apply','push','40OdHmiH','toString','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','exit','22wDYyDb','apollo','Verifying\x20meteor\x20package\x20requirements\x20...','api/tests.js','withMethods','GraphQL','none','rest-api.','489414NIMGcG','const','getProjectConfig','test','maka\x20g:api\x20Todos','checkMeteorPackage','8jBFYlD','import\x20{\x20typeDefs\x20as\x20','6470710YxVIdy','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','/graphql/typeDefs','graphql','startup','195480lhozwo','dir','rpc-methods.','resourceName','notice','constructor','withGql','\x27;\x0a','withRest','template','API\x20boundaries\x20to\x20create','ddp-rate-limiter','import\x20\x27./register-','injectAtBeginningOfFile','server','4307391RoIdtm','register-','api','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','typeList.push(','/imports/api','engines','error','-api.','resolverList.push(','\x0aimport\x20{\x20resolvers\x20as\x20','1947449kKxPdD','1562740svGlKb','typeDefs.','checkbox','fixtures.','api/api.js','api/register-api.js','length','index.','rest','tsx','includes','imports'];a99c=function(){return B;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a99y(0x104),'aliases':['a'],'usage':a99y(0xd6),'shortDesc':a99y(0x105),'validOpts':[a99y(0xf4)],'examples':[a99y(0xea)],'description':a99y(0xdc)},async function(a,b){const z=a99y;try{const c=this['fsi'][z(0xe8)](),d=[{'name':'RPC\x20(Methods)','value':z(0xe2)},{'name':z(0xcb),'value':z(0xd4)},{'name':'Publications','value':z(0xd1)}];c[z(0x108)][z(0x104)]===z(0xbf)&&d['push']({'name':'REST\x20API','value':'withRest'});c[z(0x108)][z(0xf1)]===z(0xdf)&&d[z(0xd9)]({'name':z(0xe3),'value':z(0xf9)});const f={'type':z(0x110),'name':z(0xd3),'message':z(0xfd),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[z(0xbd)]===0x0&&(Log[z(0x109)]('No\x20API\x20boundaries\x20selected'),process[z(0xdd)](0x1)),this[z(0xca)]['withValue'](c,async()=>{const A=z,h=this[A(0xca)][A(0xc6)]({}),i=b[A(0xf6)],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x108)][A(0x104)],'graphql':c[A(0x108)][A(0xf1)],'test':c['engines'][A(0xe9)],'noRename':!![],'withPubs':g[A(0xc1)]('withPubs'),'withFixtures':g[A(0xc1)](A(0xd4)),'withMethods':g['includes']('withMethods'),'withRest':g[A(0xc1)](A(0xfb))};let n='js';c[A(0x108)]['js']===A(0xc0)&&(n='ts');(!this[A(0xca)][A(0xeb)](A(0xd0))||!this['fsi'][A(0xeb)](A(0xc9))||!this[A(0xca)][A(0xeb)](A(0xfe))||!this['fsi']['checkMeteorPackage']('mdg:validated-method')||!this['fsi']['checkMeteorPackage']('mongo'))&&(Log[A(0xf7)](A(0xe0)),await this[A(0xca)][A(0xce)](A(0xef),{'cwd':h}));await a99e[A(0xc3)]('collection',[j],{'config':c,'where':A(0x101)});c[A(0x108)][A(0x104)]==='rest'&&(m[A(0xfb)]&&this[A(0xca)]['template']({'srcPath':A(0xbb),'destPath':this[A(0xca)]['pathFromApp']({'pathParts':[A(0xc2),'api',b['dir'],j,A(0xe5)+n]}),'context':m,'config':c}));m['withMethods']&&this[A(0xca)][A(0xfc)]({'srcPath':'api/methods.js','destPath':this['fsi'][A(0xc6)]({'pathParts':['imports',A(0x104),b['dir'],j,A(0xf5)+n]}),'context':m,'config':c});m[A(0xd4)]&&this[A(0xca)][A(0xfc)]({'srcPath':A(0xd2),'destPath':this[A(0xca)][A(0xc6)]({'pathParts':['imports',A(0x104),b[A(0xf4)],j,A(0x111)+n]}),'context':m,'config':c});c[A(0x108)][A(0xe9)]!==A(0xe4)&&this['fsi']['template']({'srcPath':A(0xe1),'destPath':this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m['withPubs']&&this['fsi'][A(0xfc)]({'srcPath':'api/publications.js','destPath':this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][A(0xf1)]===A(0xdf)){if(g['includes']('withGql')){const p=this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),A(0x101),'index.'+c['engines']['js']]}),q=this[A(0xca)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b['dir'],j,A(0xf1),A(0x10f)+n]}),s=A(0x107)+l+j+A(0xf0);this['fsi'][A(0xfc)]({'srcPath':'api/typeDefs.js','destPath':r,'context':m,'config':c}),this[A(0xca)][A(0x100)]({'filePath':q,'content':A(0xed)+k+'TypeDefs\x20}\x20from\x20\x27'+s+A(0xfa)}),this[A(0xca)][A(0xd5)]({'filePath':q,'content':A(0x106)+k+'TypeDefs);\x0a','begin':A(0xe7),'end':A(0xd7)});const t=this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,A(0xf1),A(0xc5)+n]}),u=A(0x107)+l+j+A(0xc8);this[A(0xca)][A(0xfc)]({'srcPath':'api/resolvers.js','destPath':t,'context':m,'config':c}),this[A(0xca)][A(0x100)]({'filePath':q,'content':A(0x10c)+k+A(0xc7)+u+'\x27;'}),this['fsi'][A(0xd5)]({'filePath':q,'content':A(0x10b)+k+'Resolvers);\x0a\x0a','begin':A(0xe7),'end':'if\x20\x5c(typeList'});}}this['fsi'][A(0xfc)]({'srcPath':A(0xbc),'destPath':this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),'server',A(0x103)+j+A(0x10a)+n]}),'context':m,'config':c,'force':!![]});const o=this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),A(0x101),A(0xbe)+c['engines']['js']]});this[A(0xca)][A(0xcc)]({'filePath':o,'content':A(0xff)+j+A(0xc4)});});}catch(h){console[z(0x109)](h),process[z(0xdd)](0x0);}});
1
+ const a99y=a99d;function a99c(){const B=['apollo','constructor','injectAtBeginningOfFile','tsx','fixtures.','apiAnswers','injectIntoFile','maka:rest','172042LLpkbg','search','3KjBeyv','maka\x20{generate,\x20g}:{api}\x20<resource-name>','/graphql/typeDefs','fsi','api/register-api.js','injectAtEndOfFile','Resolvers);\x0a\x0a','imports','withPubs','api/methods.js','resolverList.push(','error','template','rest','checkMeteorPackage','api/api.js','withMethods','apply','getProjectConfig','2724240gLAmiH','api/typeDefs.js','toString','typeList.push(','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','Verifying\x20meteor\x20package\x20requirements\x20...','.app-tests.','publications.','resolvers.','push','index.','graphql','3392587SQvExo','processAndRunGenerator','register-','2246670udmfXU','engines','includes','TypeDefs);\x0a','collection','api/publications.js','if\x20\x5c(typeList','166298tlkUoY','maka:check','4359861yQzipO','notice','const','withFixtures','api','GraphQL','/imports/api','startup','server','installMeteorPackage','none','(((.+)+)+)+$','dir','No\x20API\x20boundaries\x20selected','/graphql/resolvers','Publications','mdg:validated-method','308VUPKfi','30rQmnfY','api/tests.js','rewriteDestinationPathForEngine','\x27;\x0a','maka\x20g:api\x20Todos','checkbox','resourceName','create','import\x20\x27./register-','API\x20boundaries\x20to\x20create','withGql','mongo','Resolvers\x20}\x20from\x20\x27','exit','rest-api.','pathFromApp','5bMiieW','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','87432YMTpzz','ddp-rate-limiter','test','withRest'];a99c=function(){return B;};return a99c();}(function(a,b){const v=a99d,c=a();while(!![]){try{const d=-parseInt(v(0x1b4))/0x1+parseInt(v(0x189))/0x2*(-parseInt(v(0x18b))/0x3)+-parseInt(v(0x19e))/0x4+-parseInt(v(0x17b))/0x5*(-parseInt(v(0x1ad))/0x6)+parseInt(v(0x1c7))/0x7*(parseInt(v(0x17d))/0x8)+-parseInt(v(0x1b6))/0x9+-parseInt(v(0x1c8))/0xa*(-parseInt(v(0x1aa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x5890c));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a99d;if(c){const e=c[w(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const x=a99d;return a99a[x(0x1a0)]()[x(0x18a)](x(0x1c1))[x(0x1a0)]()[x(0x182)](a99a)[x(0x18a)](x(0x1c1));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x17a;let f=c[d];return f;},a99d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99y(0x1cf)]({'name':a99y(0x1ba),'aliases':['a'],'usage':a99y(0x18c),'shortDesc':a99y(0x1a2),'validOpts':['dir'],'examples':[a99y(0x1cc)],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const z=a99y;try{const c=this[z(0x18e)][z(0x19d)](),d=[{'name':'RPC\x20(Methods)','value':z(0x19b)},{'name':'Fixtures','value':z(0x1b9)},{'name':z(0x1c5),'value':z(0x193)}];c[z(0x1ae)]['api']===z(0x198)&&d['push']({'name':'REST\x20API','value':'withRest'});c[z(0x1ae)][z(0x1a9)]===z(0x181)&&d[z(0x1a7)]({'name':z(0x1bb),'value':'withGql'});const f={'type':z(0x1cd),'name':z(0x186),'message':z(0x1d1),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[z(0x196)](z(0x1c3)),process[z(0x1d5)](0x1)),this[z(0x18e)]['withValue'](c,async()=>{const A=z,h=this[A(0x18e)][A(0x17a)]({}),i=b[A(0x1ce)],j=paramCase(i),k=camelCase(i),l=b[A(0x1c2)]?'/'+b[A(0x1c2)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x1ae)][A(0x1ba)],'graphql':c[A(0x1ae)][A(0x1a9)],'test':c['engines'][A(0x17f)],'noRename':!![],'withPubs':g[A(0x1af)](A(0x193)),'withFixtures':g['includes'](A(0x1b9)),'withMethods':g[A(0x1af)](A(0x19b)),'withRest':g['includes'](A(0x180))};let n='js';c[A(0x1ae)]['js']===A(0x184)&&(n='ts');(!this['fsi'][A(0x199)](A(0x188))||!this['fsi'][A(0x199)](A(0x1b5))||!this[A(0x18e)][A(0x199)](A(0x17e))||!this['fsi'][A(0x199)](A(0x1c6))||!this[A(0x18e)][A(0x199)](A(0x1d3)))&&(Log[A(0x1b7)](A(0x1a3)),await this[A(0x18e)][A(0x1bf)](A(0x17c),{'cwd':h}));await a99e[A(0x1ab)](A(0x1b1),[j],{'config':c,'where':A(0x1be)});c['engines'][A(0x1ba)]===A(0x198)&&(m['withRest']&&this[A(0x18e)][A(0x197)]({'srcPath':A(0x19a),'destPath':this[A(0x18e)]['pathFromApp']({'pathParts':[A(0x192),'api',b[A(0x1c2)],j,A(0x1d6)+n]}),'context':m,'config':c}));m[A(0x19b)]&&this[A(0x18e)]['template']({'srcPath':A(0x194),'destPath':this['fsi']['pathFromApp']({'pathParts':[A(0x192),A(0x1ba),b[A(0x1c2)],j,'rpc-methods.'+n]}),'context':m,'config':c});m['withFixtures']&&this[A(0x18e)][A(0x197)]({'srcPath':'api/fixtures.js','destPath':this[A(0x18e)][A(0x17a)]({'pathParts':[A(0x192),A(0x1ba),b['dir'],j,A(0x185)+n]}),'context':m,'config':c});c['engines'][A(0x17f)]!==A(0x1c0)&&this[A(0x18e)][A(0x197)]({'srcPath':A(0x1c9),'destPath':this[A(0x18e)][A(0x17a)]({'pathParts':['imports',A(0x1ba),b[A(0x1c2)],j,j+A(0x1a4)+n]}),'context':m,'config':c});m[A(0x193)]&&this[A(0x18e)][A(0x197)]({'srcPath':A(0x1b2),'destPath':this[A(0x18e)][A(0x17a)]({'pathParts':[A(0x192),A(0x1ba),b[A(0x1c2)],j,A(0x1a5)+n]}),'context':m,'config':c});if(c[A(0x1ae)][A(0x1a9)]==='apollo'){if(g[A(0x1af)](A(0x1d2))){const p=this[A(0x18e)][A(0x17a)]({'pathParts':[A(0x192),A(0x1bd),A(0x1be),A(0x1a8)+c[A(0x1ae)]['js']]}),q=this[A(0x18e)][A(0x1ca)]({'pathParts':[p],'config':c}),r=this[A(0x18e)][A(0x17a)]({'pathParts':[A(0x192),A(0x1ba),b[A(0x1c2)],j,'graphql','typeDefs.'+n]}),s=A(0x1bc)+l+j+A(0x18d);this[A(0x18e)][A(0x197)]({'srcPath':A(0x19f),'destPath':r,'context':m,'config':c}),this['fsi'][A(0x183)]({'filePath':q,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+s+A(0x1cb)}),this[A(0x18e)]['injectIntoFile']({'filePath':q,'content':A(0x1a1)+k+A(0x1b0),'begin':'const','end':A(0x1b3)});const t=this[A(0x18e)][A(0x17a)]({'pathParts':[A(0x192),A(0x1ba),b['dir'],j,A(0x1a9),A(0x1a6)+n]}),u=A(0x1bc)+l+j+A(0x1c4);this[A(0x18e)]['template']({'srcPath':'api/resolvers.js','destPath':t,'context':m,'config':c}),this[A(0x18e)][A(0x183)]({'filePath':q,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0x1d4)+u+'\x27;'}),this[A(0x18e)][A(0x187)]({'filePath':q,'content':A(0x195)+k+A(0x191),'begin':A(0x1b8),'end':'if\x20\x5c(typeList'});}}this[A(0x18e)][A(0x197)]({'srcPath':A(0x18f),'destPath':this[A(0x18e)]['pathFromApp']({'pathParts':[A(0x192),A(0x1bd),A(0x1be),A(0x1ac)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const o=this['fsi'][A(0x17a)]({'pathParts':[A(0x192),A(0x1bd),'server',A(0x1a8)+c[A(0x1ae)]['js']]});this[A(0x18e)][A(0x190)]({'filePath':o,'content':A(0x1d0)+j+'-api\x27;'});});}catch(h){console[z(0x196)](h),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a100n=a100d;function a100c(){const q=['engines','fsi','collection/tests.js','create','maka\x20g:collection\x20todos','6020830iGsFQr','notice','11RxMGzW','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','installMeteorPackage','tsx','apply','2903643ZQBYAC','test','where','391162JVGLVh','getProjectConfig','col','import\x20\x27./collections','injectAtEndOfFile','2051913VDJpXr','error','none','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','mongo','template','11602752kaDhyd','5aArwPP','263102nwnRtM','startup','230164WTOySw','resourceName','search','60LxpNYw','withValue','checkMeteorPackage','(((.+)+)+)+$','toString','imports','maka:check','.app-tests.','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','2UdbeDf','16tAsEAD','pathFromApp','dir','constructor','appPathPrefix'];a100c=function(){return q;};return a100c();}(function(a,b){const k=a100d,c=a();while(!![]){try{const d=parseInt(k(0x1e5))/0x1*(parseInt(k(0x1d0))/0x2)+parseInt(k(0x1ba))/0x3+parseInt(k(0x1c4))/0x4*(-parseInt(k(0x1c1))/0x5)+-parseInt(k(0x1c7))/0x6*(parseInt(k(0x1c2))/0x7)+-parseInt(k(0x1d1))/0x8*(parseInt(k(0x1e2))/0x9)+-parseInt(k(0x1db))/0xa*(parseInt(k(0x1dd))/0xb)+parseInt(k(0x1c0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x5834b));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a100d;if(c){const e=c[l(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const m=a100d;return a100a[m(0x1cb)]()[m(0x1c6)](m(0x1ca))[m(0x1cb)]()[m(0x1d4)](a100a)['search']('(((.+)+)+)+$');});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a100d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a100n(0x1d9)]({'name':'collection','aliases':[a100n(0x1e7)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a100n(0x1de),'validOpts':['dir',a100n(0x1e4)],'description':a100n(0x1cf),'examples':[a100n(0x1da)]},async function(a,b){const o=a100n;try{const c=this[o(0x1d7)][o(0x1d2)]({}),d=this['fsi'][o(0x1e6)]();this[o(0x1d7)][o(0x1c8)](d,async()=>{const p=o,f=paramCase(b[p(0x1c5)]),g={'name':pascalCase(b[p(0x1c5)]),'collectionName':pascalCase(b[p(0x1c5)]),'fileName':f,'where':b[p(0x1e4)],'test':d['engines']['test'],'noRename':!![]};let h='js';d[p(0x1d6)]['js']===p(0x1e0)&&(h='ts');!this[p(0x1d7)][p(0x1c9)](p(0x1be))&&(Log[p(0x1dc)](p(0x1bd)),await this[p(0x1d7)][p(0x1df)](p(0x1be),{'cwd':c}));!this[p(0x1d7)][p(0x1c9)](p(0x1cd))&&(Log[p(0x1dc)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x1d7)][p(0x1df)](p(0x1cd),{'cwd':c}));this[p(0x1d7)]['template']({'srcPath':'collection/collection.js','destPath':this['fsi']['pathFromApp']({'pathParts':[p(0x1cc),'startup',b[p(0x1d5)],'collections',b[p(0x1d3)],f+'.'+h]}),'context':g,'config':d});d[p(0x1d6)][p(0x1e3)]!==p(0x1bc)&&this[p(0x1d7)][p(0x1bf)]({'srcPath':p(0x1d8),'destPath':this[p(0x1d7)][p(0x1d2)]({'pathParts':[p(0x1cc),'startup',b[p(0x1d5)],'collections',b['dir'],f+p(0x1ce)+h]}),'context':g,'config':d});const i=b[p(0x1d3)]?'/'+b[p(0x1d3)]+'/':'/',j=this[p(0x1d7)][p(0x1d2)]({'pathParts':[p(0x1cc),p(0x1c3),b['appPathPrefix'],'index.'+d[p(0x1d6)]['js']]});this[p(0x1d7)][p(0x1e9)]({'filePath':j,'content':p(0x1e8)+i+f+'\x27;'});});}catch(f){Log[o(0x1bb)](f);}});
1
+ const a100n=a100d;(function(a,b){const k=a100d,c=a();while(!![]){try{const d=parseInt(k(0xd6))/0x1+parseInt(k(0xd3))/0x2*(parseInt(k(0xb8))/0x3)+parseInt(k(0xb7))/0x4+parseInt(k(0xdc))/0x5+-parseInt(k(0xc9))/0x6*(parseInt(k(0xc8))/0x7)+parseInt(k(0xc1))/0x8*(parseInt(k(0xbf))/0x9)+-parseInt(k(0xbb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xd091a));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a100d;if(c){const e=c[l(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const m=a100d;return a100a[m(0xdb)]()[m(0xdf)](m(0xb6))[m(0xdb)]()[m(0xb9)](a100a)[m(0xdf)]('(((.+)+)+)+$');});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xb5;let f=c[d];return f;},a100d(a,b);}function a100c(){const q=['tsx','installMeteorPackage','maka\x20g:collection\x20todos','engines','fsi','checkMeteorPackage','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','test','452JDwEtt','startup','index.','1157766HASWEF','none','mongo','col','collection','toString','2998455SEztJL','pathFromApp','apply','search','appPathPrefix','.app-tests.','collection/tests.js','(((.+)+)+)+$','1103604JUlSkQ','4449ruXZBF','constructor','imports','23816970xLsxSL','error','collection/collection.js','dir','99WLfchV','template','844504WGSwQH','maka:check','resourceName','collections','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','notice','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','1027999ZlLuTr','12LGkisj','injectAtEndOfFile'];a100c=function(){return q;};return a100c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a100n(0xda),'aliases':[a100n(0xd9)],'usage':a100n(0xd1),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a100n(0xbe),'where'],'description':a100n(0xc5),'examples':[a100n(0xcd)]},async function(a,b){const o=a100n;try{const c=this[o(0xcf)][o(0xdd)]({}),d=this[o(0xcf)]['getProjectConfig']();this['fsi']['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0xc3)]),g={'name':pascalCase(b[p(0xc3)]),'collectionName':pascalCase(b[p(0xc3)]),'fileName':f,'where':b['where'],'test':d[p(0xce)][p(0xd2)],'noRename':!![]};let h='js';d[p(0xce)]['js']===p(0xcb)&&(h='ts');!this['fsi'][p(0xd0)](p(0xd8))&&(Log[p(0xc6)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0xcf)]['installMeteorPackage'](p(0xd8),{'cwd':c}));!this['fsi']['checkMeteorPackage'](p(0xc2))&&(Log[p(0xc6)](p(0xc7)),await this['fsi'][p(0xcc)](p(0xc2),{'cwd':c}));this[p(0xcf)]['template']({'srcPath':p(0xbd),'destPath':this['fsi'][p(0xdd)]({'pathParts':[p(0xba),p(0xd4),b[p(0xe0)],p(0xc4),b[p(0xbe)],f+'.'+h]}),'context':g,'config':d});d[p(0xce)][p(0xd2)]!==p(0xd7)&&this['fsi'][p(0xc0)]({'srcPath':p(0xb5),'destPath':this['fsi'][p(0xdd)]({'pathParts':[p(0xba),p(0xd4),b[p(0xe0)],p(0xc4),b[p(0xbe)],f+p(0xe1)+h]}),'context':g,'config':d});const i=b[p(0xbe)]?'/'+b['dir']+'/':'/',j=this[p(0xcf)][p(0xdd)]({'pathParts':[p(0xba),p(0xd4),b[p(0xe0)],p(0xd5)+d[p(0xce)]['js']]});this['fsi'][p(0xca)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0xbc)](f);}});
@@ -1 +1 @@
1
- const a101p=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x1b6))/0x1+parseInt(n(0x1e4))/0x2*(parseInt(n(0x1cc))/0x3)+-parseInt(n(0x1b7))/0x4*(-parseInt(n(0x1d2))/0x5)+-parseInt(n(0x1df))/0x6*(parseInt(n(0x1b8))/0x7)+-parseInt(n(0x1bb))/0x8+-parseInt(n(0x1bf))/0x9*(parseInt(n(0x1bc))/0xa)+parseInt(n(0x1ea))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xb7746));const a101b=(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;};}()),a101a=a101b(this,function(){const o=a101d;return a101a[o(0x1c4)]()[o(0x1d4)]('(((.+)+)+)+$')[o(0x1c4)]()[o(0x1da)](a101a)[o(0x1d4)](o(0x1b0));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a101c(){const s=['dir','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','toString','assign','test','findAppDirectory','className','imports','fsi','true','3045rTrdfc','withTranslations','installNpmPackage','error','export\x20{\x20','.css','317875TLHEfM','.tests.js','search','template/template.css','engines','\x27;\x0a','.js','layouts','constructor','pathFromProject','features','baseDir','setTemplate','8558790fuyBmP','injectAtEndOfFile','css','string','injectAtBeginningOfFile','696iOmwGk','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','fileName','getProjectConfig','create','/imports/ui/components','33984423WElKhM','client','ramda','relative','pathFromApp','api','template','/imports/ui/','theme','cssCaseName','(((.+)+)+)+$','resourceName','pages','root','maka\x20g:comp\x20todos/todos-item','checkNpmPackage','328400LyGJyk','12vvUzWZ','7HhKSJn','rewriteDestinationPathForEngine','test/test.js','2280160FqdsMn','8421230EaHZbA','react','components','9RZfNLr','hooks'];a101c=function(){return s;};return a101c();}import{Log}from'../tools/log/log.class.js';const aliases=['comp'];function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a101d(a,b);}Generator[a101p(0x1e8)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a101p(0x1e5),'validOpts':[{'name':a101p(0x1dd),'values':[a101p(0x1c0),a101p(0x1be),a101p(0x1b2),a101p(0x1d9)]}],'examples':[a101p(0x1b4)]},async function(a,b){const q=a101p;try{const c=this[q(0x1ca)][q(0x1c7)](),d=b['baseDir']?q(0x1ad)+b[q(0x1dd)]:q(0x1e9),f=this[q(0x1ca)][q(0x1aa)]({'pathParts':[d,b['dir'],paramCase(b[q(0x1b1)]),paramCase(b[q(0x1b1)])]}),g=await this[q(0x1ca)][q(0x1e7)]();this['fsi']['withValue'](g,async()=>{const r=q;typeof g['template'][r(0x1c6)]==='string'&&(g[r(0x1ac)][r(0x1c6)]=g['template'][r(0x1c6)]===r(0x1cb)?!![]:![],this[r(0x1ca)]['setTemplate']('test',g[r(0x1ac)][r(0x1c6)]));typeof g[r(0x1ac)]['css']===r(0x1e2)&&(g[r(0x1ac)][r(0x1e1)]=g[r(0x1ac)][r(0x1e1)]===r(0x1cb)?!![]:![],this[r(0x1ca)][r(0x1de)](r(0x1e1),g[r(0x1ac)]['css']));typeof g[r(0x1ac)]['js']===r(0x1e2)&&(g['template']['js']=g[r(0x1ac)]['js']===r(0x1cb)?!![]:![],this[r(0x1ca)][r(0x1de)]('js',g[r(0x1ac)]['js']));!g[r(0x1dc)]&&(g['features']={});!b[r(0x1b3)]&&!this[r(0x1ca)][r(0x1b5)](r(0x1ec))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[r(0x1ca)][r(0x1ce)](r(0x1ec),{'cwd':c}));if(!b[r(0x1b3)]&&!this[r(0x1ca)][r(0x1b5)](r(0x1bd))){Log[r(0x1cf)](r(0x1c2));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[r(0x1ed)](this[r(0x1ca)][r(0x1db)]({}),f),'cssCaseName':paramCase(b[r(0x1b1)]),'className':pascalCase(b[r(0x1b1)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x1b1)]),'graphql':g['engines']['graphql'],'features':g[r(0x1dc)],'client':g[r(0x1d6)][r(0x1eb)],'api':g['engines'][r(0x1ab)],'ssr':g[r(0x1d6)]['ssr'],'test':g[r(0x1d6)][r(0x1c6)],'theme':g['engines'][r(0x1ae)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][r(0x1cd)]};this[r(0x1ca)]['template']({'srcPath':'component/component.js','destPath':f+r(0x1d8),'context':h,'framework':r(0x1bd),'config':g});g[r(0x1d6)][r(0x1c6)]!=='none'&&this[r(0x1ca)][r(0x1ac)]({'srcPath':r(0x1ba),'destPath':f+r(0x1d3),'context':h,'framework':r(0x1bd),'config':g});g['template']['css']&&(this['fsi'][r(0x1ac)]({'srcPath':r(0x1d5),'destPath':f+r(0x1d1),'context':Object[r(0x1c5)]({},h,{'className':paramCase(b[r(0x1b1)])}),'config':g}),this[r(0x1ca)][r(0x1e3)]({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[r(0x1af)]+'.'+g[r(0x1d6)][r(0x1e1)]+'\x27;'}));const i=b[r(0x1c1)]?'/'+b['dir']+'/':'/',j=''+d+i+h[r(0x1e6)]+'/'+h[r(0x1e6)];let k;if(g[r(0x1d6)]['ssr']===r(0x1cb)){const l=this[r(0x1ca)][r(0x1aa)]({'pathParts':[r(0x1c9),'startup','lib',r(0x1c3)]});k=this['fsi'][r(0x1b9)]({'pathParts':[l],'config':g});}else{const m=this[r(0x1ca)][r(0x1aa)]({'pathParts':['imports','startup',r(0x1eb),r(0x1c3)]});k=this['fsi'][r(0x1b9)]({'pathParts':[m],'config':g});}g[r(0x1d6)]['client']===r(0x1bd)||g[r(0x1d6)]['client']==='reflux'?this['fsi'][r(0x1e0)]({'filePath':k,'content':r(0x1d0)+h[r(0x1c8)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[r(0x1ca)][r(0x1e0)]({'filePath':k,'content':'export\x20\x27'+j+'.'+g['engines']['js']+r(0x1d7)});});}catch(h){Log[q(0x1cf)](h);}});
1
+ const a101q=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=parseInt(n(0x19b))/0x1*(parseInt(n(0x1bf))/0x2)+parseInt(n(0x1d0))/0x3+-parseInt(n(0x1ac))/0x4*(-parseInt(n(0x1af))/0x5)+-parseInt(n(0x1d1))/0x6*(parseInt(n(0x1c5))/0x7)+-parseInt(n(0x1cd))/0x8+parseInt(n(0x1ce))/0x9+-parseInt(n(0x19f))/0xa*(-parseInt(n(0x1b3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xa15b0));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a101d;if(c){const e=c[o(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const p=a101d;return a101a[p(0x1da)]()[p(0x1b1)]('(((.+)+)+)+$')[p(0x1da)]()[p(0x1b5)](a101a)[p(0x1b1)]('(((.+)+)+)+$');});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x195;let f=c[d];return f;},a101d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101c(){const t=['imports','test','pathFromProject','features','root','fileName','1229124eTzdWS','react','template','5wPwSge','reflux','search','withTranslations','165HljXZc','true','constructor','/imports/ui/','assign','client','fsi','resourceName','pages','apply','pathFromApp','engines','2SPzufs','\x27;\x0a','lib','injectAtEndOfFile','components','installNpmPackage','3017VCDYKG','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','graphql','findAppDirectory','setTemplate','api','hooks','.js','9538896tPgUbO','553869vnyNAN','cssCaseName','833343HlmmLi','5250RwZJpb','ssr','comp','import\x20\x27./','withValue','component','.tests.js','dir','css','toString','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','injectAtBeginningOfFile','relative','.css','test/test.js','error','rewriteDestinationPathForEngine','layouts','templates.js','712311jvfNGV','/imports/ui/components','string','create','580990BfYAAe','startup','warn','template/template.css','getProjectConfig','checkNpmPackage','ramda'];a101c=function(){return t;};return a101c();}const aliases=[a101q(0x1d3)];Generator[a101q(0x19e)]({'name':a101q(0x1d6),'aliases':aliases,'usage':a101q(0x1c6),'shortDesc':a101q(0x1db),'validOpts':[{'name':'baseDir','values':[a101q(0x1cb),a101q(0x1c3),a101q(0x1bb),a101q(0x199)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a101q;try{const c=this[r(0x1b9)][r(0x1c8)](),d=b['baseDir']?r(0x1b6)+b['baseDir']:r(0x19c),f=this[r(0x1b9)]['pathFromApp']({'pathParts':[d,b[r(0x1d8)],paramCase(b[r(0x1ba)]),paramCase(b['resourceName'])]}),g=await this[r(0x1b9)][r(0x1a3)]();this[r(0x1b9)][r(0x1d5)](g,async()=>{const s=r;typeof g[s(0x1ae)][s(0x1a7)]===s(0x19d)&&(g[s(0x1ae)][s(0x1a7)]=g[s(0x1ae)][s(0x1a7)]===s(0x1b4)?!![]:![],this[s(0x1b9)][s(0x1c9)](s(0x1a7),g[s(0x1ae)][s(0x1a7)]));typeof g[s(0x1ae)][s(0x1d9)]===s(0x19d)&&(g[s(0x1ae)][s(0x1d9)]=g[s(0x1ae)][s(0x1d9)]===s(0x1b4)?!![]:![],this[s(0x1b9)]['setTemplate']('css',g[s(0x1ae)][s(0x1d9)]));typeof g[s(0x1ae)]['js']==='string'&&(g[s(0x1ae)]['js']=g[s(0x1ae)]['js']==='true'?!![]:![],this[s(0x1b9)][s(0x1c9)]('js',g[s(0x1ae)]['js']));!g[s(0x1a9)]&&(g[s(0x1a9)]={});!b[s(0x1aa)]&&!this['fsi'][s(0x1a4)](s(0x1a5))&&(Log[s(0x1a1)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0x1b9)][s(0x1c4)](s(0x1a5),{'cwd':c}));if(!b[s(0x1aa)]&&!this[s(0x1b9)][s(0x1a4)](s(0x1ad))){Log[s(0x197)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[s(0x1dd)](this['fsi'][s(0x1a8)]({}),f),'cssCaseName':paramCase(b[s(0x1ba)]),'className':pascalCase(b[s(0x1ba)]),'camelCaseName':camelCase(b[s(0x1ba)]),'fileName':paramCase(b[s(0x1ba)]),'graphql':g[s(0x1be)][s(0x1c7)],'features':g[s(0x1a9)],'client':g[s(0x1be)][s(0x1b8)],'api':g[s(0x1be)][s(0x1ca)],'ssr':g['engines'][s(0x1d2)],'test':g[s(0x1be)]['test'],'theme':g['engines']['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1a9)][s(0x1b2)]};this[s(0x1b9)]['template']({'srcPath':'component/component.js','destPath':f+s(0x1cc),'context':h,'framework':'react','config':g});g['engines'][s(0x1a7)]!=='none'&&this[s(0x1b9)][s(0x1ae)]({'srcPath':s(0x196),'destPath':f+s(0x1d7),'context':h,'framework':s(0x1ad),'config':g});g[s(0x1ae)][s(0x1d9)]&&(this[s(0x1b9)][s(0x1ae)]({'srcPath':s(0x1a2),'destPath':f+s(0x195),'context':Object[s(0x1b7)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0x1b9)][s(0x1dc)]({'filePath':f+'.'+g[s(0x1be)]['js'],'content':s(0x1d4)+h[s(0x1cf)]+'.'+g['engines'][s(0x1d9)]+'\x27;'}));const i=b[s(0x1d8)]?'/'+b[s(0x1d8)]+'/':'/',j=''+d+i+h[s(0x1ab)]+'/'+h[s(0x1ab)];let k;if(g[s(0x1be)][s(0x1d2)]==='true'){const l=this[s(0x1b9)][s(0x1bd)]({'pathParts':[s(0x1a6),s(0x1a0),s(0x1c1),s(0x19a)]});k=this[s(0x1b9)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this['fsi'][s(0x1bd)]({'pathParts':[s(0x1a6),s(0x1a0),s(0x1b8),s(0x19a)]});k=this[s(0x1b9)][s(0x198)]({'pathParts':[m],'config':g});}g[s(0x1be)][s(0x1b8)]===s(0x1ad)||g[s(0x1be)][s(0x1b8)]===s(0x1b0)?this['fsi'][s(0x1c2)]({'filePath':k,'content':'export\x20{\x20'+h['className']+'\x20}\x20from\x20\x27'+j+s(0x1c0)}):this[s(0x1b9)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20\x27'+j+'.'+g['engines']['js']+s(0x1c0)});});}catch(h){Log[r(0x197)](h);}});
@@ -1 +1 @@
1
- function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a102d(a,b);}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x1be))/0x1+parseInt(h(0x1b4))/0x2*(-parseInt(h(0x1b2))/0x3)+-parseInt(h(0x1c6))/0x4*(-parseInt(h(0x1c2))/0x5)+-parseInt(h(0x1ad))/0x6+parseInt(h(0x1ac))/0x7+parseInt(h(0x1b3))/0x8*(parseInt(h(0x1c8))/0x9)+-parseInt(h(0x1bd))/0xa*(parseInt(h(0x1b8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xbbf54));function a102c(){const n=['appName','toString','472228YBntzg','dev','4513041lZaMFd','withValue','create','6764289ZoyJyG','3596280cMfxGh','config/process.env','isDocker','apply','pathFromProject','265929tsnkuk','24VWgbHY','4LvVEEi','resourceName','Generate\x20configuration\x20settings.','prod','4796231KGZeoL','config','(((.+)+)+)+$','settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','20gxIyoT','996546RFqPfF','production','development','fsi','40GDdUYq','ubuntu'];a102c=function(){return n;};return a102c();}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a['toString']()['search'](j(0x1ba))[j(0x1c5)]()['constructor'](a102a)['search']('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x1ab)]({'name':'config','usage':a102k(0x1bc),'shortDesc':a102k(0x1b6),'validOpts':[a102k(0x1af)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a102k,c=this[l(0x1c1)]['getProjectConfig']();this[l(0x1c1)][l(0x1c9)](c,async()=>{const m=l,d={'app':c[m(0x1c4)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x1b5)]),'fileName':paramCase(b[m(0x1b5)]),'camelCase':camelCase(b[m(0x1b5)]),'userName':m(0x1c3),'isDocker':b['isDocker']};let e=b['resourceName'];if(e===m(0x1c7))e=m(0x1c0);else e===m(0x1b7)&&(e=m(0x1bf));const f=this[m(0x1c1)]['pathFromProject']({'pathParts':[m(0x1b9),e,m(0x1bb)]});this[m(0x1c1)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x1af)]){const g=this[m(0x1c1)][m(0x1b1)]({'pathParts':[m(0x1b9),e,'process.env']});this['fsi']['template']({'srcPath':m(0x1ae),'destPath':g,'context':d,'config':c});}});});
1
+ const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0xd3))/0x1+-parseInt(h(0xd4))/0x2+-parseInt(h(0xd9))/0x3*(parseInt(h(0xe0))/0x4)+-parseInt(h(0xde))/0x5+-parseInt(h(0xdd))/0x6*(parseInt(h(0xc4))/0x7)+parseInt(h(0xd5))/0x8+parseInt(h(0xdc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xea6a7));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0xc5)]()['search']('(((.+)+)+)+$')[j(0xc5)]()[j(0xd1)](a102a)[j(0xdb)](j(0xd2));});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0xc4;let f=c[d];return f;},a102d(a,b);}Generator['create']({'name':a102k(0xca),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a102k(0xd8)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a102k,c=this[l(0xcc)][l(0xce)]();this[l(0xcc)]['withValue'](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0xda)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0xcb)]),'camelCase':camelCase(b[m(0xcb)]),'userName':m(0xc9),'isDocker':b[m(0xd8)]};let e=b[m(0xcb)];if(e===m(0xd6))e=m(0xcd);else e===m(0xc7)&&(e='production');const f=this[m(0xcc)][m(0xd7)]({'pathParts':[m(0xca),e,m(0xc6)]});this[m(0xcc)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0xd8)]){const g=this['fsi'][m(0xd7)]({'pathParts':[m(0xca),e,m(0xd0)]});this[m(0xcc)][m(0xc8)]({'srcPath':m(0xcf),'destPath':g,'context':d,'config':c});}});});function a102c(){const n=['1427320dFwAqG','dev','pathFromProject','isDocker','18AspCgy','appName','search','46855845nkiWsY','54vDkRoz','2608355ixuqxm','apply','1018308JMaJUi','23926AnbbUT','toString','settings.json','prod','template','ubuntu','config','resourceName','fsi','development','getProjectConfig','config/process.env','process.env','constructor','(((.+)+)+)+$','763969AYUrJl','3161178yNeLaN'];a102c=function(){return n;};return a102c();}
@@ -1 +1 @@
1
- const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x15e))/0x1*(-parseInt(j(0x162))/0x2)+parseInt(j(0x157))/0x3+-parseInt(j(0x166))/0x4*(-parseInt(j(0x14c))/0x5)+parseInt(j(0x14a))/0x6+-parseInt(j(0x16e))/0x7+parseInt(j(0x15a))/0x8+-parseInt(j(0x158))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x30988));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x148;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x179)]()[l(0x15c)](l(0x151))[l(0x179)]()[l(0x148)](a103a)[l(0x15c)]('(((.+)+)+)+$');});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a103c(){const p=['startup','config.','dbc','fsi','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','checkNpmPackage','164227uCKnoy','warn','dbc/register-dbc.js','maka\x20g:dbc\x20todos\x20--type=sqlite','conn.','error','dbc/conn.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql','dbc/config.js','-dbc.','apply','toString','import\x20\x27./register-','constructor','server','1852620euGNRg','withValue','260BkOjti','create','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','template','pgsql','(((.+)+)+)+$','installNpmPackage','pathFromApp','better-sqlite3','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','injectAtEndOfFile','282366bSRwTB','6147936NmDuVK','maka\x20g:dbc\x20azure\x20--type=mssql','1990112dzGXwX','imports','search','getProjectConfig','32801xEyqzL','dir','resourceName','mssql','2BlMkvT','-dbc\x27;','sqlite','engines','17012Yvbmnf','type'];a103c=function(){return p;};return a103c();}import{Log}from'../tools/log/log.class.js';Generator[a103m(0x14d)]({'name':a103m(0x16a),'usage':a103m(0x16c),'shortDesc':a103m(0x155),'validOpts':[a103m(0x15f)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x167),'values':[a103m(0x150),'mssql',a103m(0x164)]}],'examples':[a103m(0x175),a103m(0x159),a103m(0x171)]},async function(a,b){const n=a103m;try{const c=await this[n(0x16b)][n(0x15d)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[n(0x160)]),g={'name':pascalCase(b[n(0x160)]),'fileName':paramCase(b[n(0x160)]),'camelCase':camelCase(b[n(0x160)]),'type':b[n(0x167)],'engine':c['engines']['js'],'noRename':!![]};this[n(0x16b)][n(0x14b)](c,async()=>{const o=n;let h='js';c[o(0x165)]['js']==='tsx'&&(h='ts');b[o(0x167)]===o(0x150)&&!this[o(0x16b)][o(0x16d)]('pg')&&(Log[o(0x16f)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[o(0x16b)][o(0x152)]('pg',{'cwd':d}));b[o(0x167)]==='mssql'&&!this['fsi'][o(0x16d)]('mssql')&&(Log[o(0x16f)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x16b)][o(0x152)](o(0x161),{'cwd':d}));b[o(0x167)]===o(0x164)&&!this[o(0x16b)][o(0x16d)](o(0x154))&&(Log[o(0x16f)](o(0x14e)),await this[o(0x16b)]['installNpmPackage'](o(0x154),{'cwd':d}));this[o(0x16b)][o(0x14f)]({'srcPath':o(0x176),'destPath':this['fsi'][o(0x153)]({'pathParts':[o(0x15b),o(0x168),o(0x149),o(0x16a),b[o(0x15f)],f,o(0x169)+h]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':o(0x174),'destPath':this[o(0x16b)][o(0x153)]({'pathParts':[o(0x15b),'startup',o(0x149),'dbc',b[o(0x15f)],f,o(0x172)+h]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':o(0x170),'destPath':this[o(0x16b)][o(0x153)]({'pathParts':[o(0x15b),'startup','server','register-'+f+o(0x177)+h]}),'context':g,'config':c});const i=this[o(0x16b)][o(0x153)]({'pathParts':['imports',o(0x168),'server','index.'+c[o(0x165)]['js']]});this['fsi'][o(0x156)]({'filePath':i,'content':o(0x17a)+f+o(0x163)});});}catch(h){Log[n(0x173)](h);}});
1
+ const a103l=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0x1b1))/0x1+parseInt(j(0x188))/0x2+-parseInt(j(0x1b6))/0x3*(parseInt(j(0x18a))/0x4)+-parseInt(j(0x1b5))/0x5+parseInt(j(0x1a0))/0x6*(parseInt(j(0x1a6))/0x7)+-parseInt(j(0x1b4))/0x8*(-parseInt(j(0x18f))/0x9)+-parseInt(j(0x1a2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x7fbaf));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const k=a103d;return a103a[k(0x1aa)]()[k(0x192)](k(0x1b3))[k(0x1aa)]()[k(0x1ab)](a103a)[k(0x192)]('(((.+)+)+)+$');});a103a();import{camelCase,paramCase,pascalCase}from'change-case';function a103c(){const o=['656BOVEGy','422750eZqNhp','21qeUtxN','import\x20\x27./register-','1959372RlqFPK','engines','163112LkgSpW','installNpmPackage','maka\x20g:dbc\x20azure\x20--type=mssql','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','startup','56376FoCfQA','pathFromApp','mssql','search','dbc/register-dbc.js','dbc/config.js','conn.','dbc/conn.js','dir','imports','dbc','fsi','tsx','error','template','warn','checkNpmPackage','4446132fKOFfB','index.','16262750cwzFvc','resourceName','type','pgsql','7QHwpzt','withValue','better-sqlite3','create','toString','constructor','config.','sqlite','register-','-dbc\x27;','injectAtEndOfFile','285098kzYOgo','server','(((.+)+)+)+$'];a103c=function(){return o;};return a103c();}import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x187;let f=c[d];return f;},a103d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a103l(0x1a9)]({'name':a103l(0x199),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a103l(0x18d),'validOpts':[a103l(0x197)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a103l(0x1a5),a103l(0x191),'sqlite']}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a103l(0x18c),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const m=a103l;try{const c=await this[m(0x19a)]['getProjectConfig'](),d=this[m(0x19a)][m(0x190)]({}),f=paramCase(b[m(0x1a3)]),g={'name':pascalCase(b[m(0x1a3)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b[m(0x1a4)],'engine':c[m(0x189)]['js'],'noRename':!![]};this['fsi'][m(0x1a7)](c,async()=>{const n=m;let h='js';c[n(0x189)]['js']===n(0x19b)&&(h='ts');b['type']===n(0x1a5)&&!this[n(0x19a)][n(0x19f)]('pg')&&(Log[n(0x19e)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][n(0x18b)]('pg',{'cwd':d}));b[n(0x1a4)]===n(0x191)&&!this[n(0x19a)][n(0x19f)](n(0x191))&&(Log[n(0x19e)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[n(0x19a)][n(0x18b)](n(0x191),{'cwd':d}));b[n(0x1a4)]===n(0x1ad)&&!this[n(0x19a)]['checkNpmPackage'](n(0x1a8))&&(Log[n(0x19e)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[n(0x19a)][n(0x18b)](n(0x1a8),{'cwd':d}));this[n(0x19a)][n(0x19d)]({'srcPath':n(0x194),'destPath':this[n(0x19a)][n(0x190)]({'pathParts':['imports',n(0x18e),'server',n(0x199),b[n(0x197)],f,n(0x1ac)+h]}),'context':g,'config':c}),this[n(0x19a)][n(0x19d)]({'srcPath':n(0x196),'destPath':this['fsi'][n(0x190)]({'pathParts':[n(0x198),'startup',n(0x1b2),'dbc',b['dir'],f,n(0x195)+h]}),'context':g,'config':c}),this[n(0x19a)]['template']({'srcPath':n(0x193),'destPath':this[n(0x19a)]['pathFromApp']({'pathParts':[n(0x198),'startup',n(0x1b2),n(0x1ae)+f+'-dbc.'+h]}),'context':g,'config':c});const i=this[n(0x19a)][n(0x190)]({'pathParts':[n(0x198),n(0x18e),n(0x1b2),n(0x1a1)+c[n(0x189)]['js']]});this['fsi'][n(0x1b0)]({'filePath':i,'content':n(0x187)+f+n(0x1af)});});}catch(h){Log[m(0x19c)](h);}});
@@ -1 +1 @@
1
- const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x1dc))/0x1*(-parseInt(f(0x1da))/0x2)+-parseInt(f(0x1e0))/0x3+-parseInt(f(0x1d1))/0x4+parseInt(f(0x1c9))/0x5*(parseInt(f(0x1d0))/0x6)+-parseInt(f(0x1e1))/0x7+parseInt(f(0x1d9))/0x8+-parseInt(f(0x1cd))/0x9*(-parseInt(f(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xb3d21));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1d7)]()[h(0x1c5)](h(0x1e3))[h(0x1d7)]()[h(0x1d4)](a104a)[h(0x1c5)](h(0x1e3));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a104d(a,b);}a104a();function a104c(){const l=['14002wNGKEq','findProjectDirectory','73tbmzRZ','fsi','maka\x20g:dockerfile','apply','57060XNxorC','2915941JxqgQF','app','(((.+)+)+)+$','search','docker/Dockerfile','isFile','20230670CLOCuS','354985JBjhaZ','join','getGlobalConfig','withValue','9bIhPgL','getProjectConfig','dockerfile','30LAAFzH','5732684lBpGIU','maka\x20{generate,\x20g}:dockerfile','build','constructor','template','Generate\x20an\x20updated\x20dockerfile','toString','create','5906560RCTODl'];a104c=function(){return l;};return a104c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0x1d8)]({'name':a104i(0x1cf),'usage':a104i(0x1d2),'shortDesc':a104i(0x1d6),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x1de)]},async function(){const j=a104i;try{const a=await this[j(0x1dd)][j(0x1ce)](),b=await this[j(0x1dd)][j(0x1cb)](),c=this[j(0x1dd)][j(0x1db)]();this[j(0x1dd)][j(0x1cc)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a104e[k(0x1ca)](c,k(0x1e2)),'bundlePath':a104e[k(0x1ca)](c,k(0x1d3),'app.tar.gz'),'useCert':this[k(0x1dd)][k(0x1c7)](b['cert'])};this['fsi'][k(0x1d5)]({'srcPath':k(0x1c6),'destPath':a104e[k(0x1ca)](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x148))/0x1+-parseInt(f(0x155))/0x2*(parseInt(f(0x159))/0x3)+parseInt(f(0x153))/0x4+parseInt(f(0x145))/0x5+-parseInt(f(0x149))/0x6*(parseInt(f(0x15a))/0x7)+-parseInt(f(0x144))/0x8+parseInt(f(0x152))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xa7a52));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x15e)]()[h(0x161)](h(0x14c))['toString']()[h(0x147)](a104a)[h(0x161)](h(0x14c));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x144;let f=c[d];return f;},a104d(a,b);}a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0x156)]({'name':a104i(0x151),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a104i(0x15b),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x14a)]},async function(){const j=a104i;try{const a=await this[j(0x15d)][j(0x162)](),b=await this[j(0x15d)]['getGlobalConfig'](),c=this[j(0x15d)][j(0x150)]();this[j(0x15d)][j(0x157)](a,async()=>{const k=j,d={'app':b[k(0x146)],'config':a,'appPath':a104e['join'](c,k(0x15c)),'bundlePath':a104e[k(0x14d)](c,k(0x15f),k(0x14f)),'useCert':this['fsi']['isFile'](b[k(0x14e)])};this[k(0x15d)][k(0x158)]({'srcPath':'docker/Dockerfile','destPath':a104e[k(0x14d)](c,'Dockerfile'),'framework':k(0x14b),'context':d,'config':a});});}catch(d){Log[j(0x154)](d);}});function a104c(){const l=['fsi','toString','build','apply','search','getProjectConfig','3520984EoqUun','4841940YPsvJH','appName','constructor','857000cUauxJ','7388952pIPtmg','maka\x20g:dockerfile','service','(((.+)+)+)+$','join','cert','app.tar.gz','findProjectDirectory','dockerfile','24359706ktQZlz','1447388hYrRLV','error','30rwoDSC','create','withValue','template','164316spQrCD','7asqvNJ','Generate\x20an\x20updated\x20dockerfile','app'];a104c=function(){return l;};return a104c();}
@@ -1 +1 @@
1
- function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x101;let f=c[d];return f;},a105d(a,b);}const a105r=a105d;function a105c(){const u=['test','lib','pages','1191330iDdqHU','features','warn','client','layouts','test/test.js','892505ihhRLC','getProjectConfig','1052673xmJGEE','apply','setTemplate','export\x20\x27','resourceName','import\x20\x27./','2NflmRU','startup','7CFVXXc','assign','template','pathFromApp','(((.+)+)+)+$','\x20hook...','.js','\x27;\x0a','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','constructor','fileName','hook','withValue','@apollo/client','installNpmPackage','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','cssCaseName','components','search','none','withTranslations','72aCIUMc','export\x20{\x20','55FKxzsR','rewriteDestinationPathForEngine','graphql','react','true','716388oXoAzk','120528TJFLYa','checkNpmPackage','8kVLTIM','notice','dir','Creating\x20','/imports/ui/','injectAtEndOfFile','/imports/ui/hooks','maka\x20g:hook\x20cool-hook','engines','error','.app-tests.js','imports','@apollo/client\x20isomorphic-fetch','string','templates.js','relative','fsi','2851784vOBxEs','toString','injectAtBeginningOfFile','css','hooks','393790GOlayA','baseDir','hook/hook.js','template/template.css'];a105c=function(){return u;};return a105c();}(function(a,b){const o=a105d,c=a();while(!![]){try{const d=parseInt(o(0x12b))/0x1+-parseInt(o(0x10b))/0x2*(parseInt(o(0x105))/0x3)+parseInt(o(0x12d))/0x4*(-parseInt(o(0x103))/0x5)+-parseInt(o(0x14a))/0x6+parseInt(o(0x10d))/0x7*(parseInt(o(0x13e))/0x8)+parseInt(o(0x123))/0x9*(parseInt(o(0x143))/0xa)+-parseInt(o(0x125))/0xb*(-parseInt(o(0x12a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x2cf10));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0x13f)]()[q(0x120)]('(((.+)+)+)+$')[q(0x13f)]()[q(0x117)](a105a)[q(0x120)](q(0x111));});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a105r(0x119),'aliases':['h'],'checkWhere':![],'usage':a105r(0x11d),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a105r(0x144),'values':[a105r(0x142),a105r(0x11f),a105r(0x149),a105r(0x101)]}],'examples':[a105r(0x134)],'description':a105r(0x115)},async function(a,b){const s=a105r;Log[s(0x12e)](s(0x130)+b[s(0x109)]+s(0x112));try{const c=this[s(0x13d)][s(0x12c)](s(0x128));if(!c){Log[s(0x136)](s(0x116));throw new UsageError();}const d=this[s(0x13d)][s(0x110)](b),f=b[s(0x144)]?s(0x131)+b[s(0x144)]:s(0x133),g=this[s(0x13d)][s(0x110)]({'pathParts':[f,b[s(0x12f)],paramCase(b[s(0x109)]),paramCase(b[s(0x109)])]}),h=await this[s(0x13d)][s(0x104)]();this[s(0x13d)][s(0x11a)](h,async()=>{const t=s;typeof h['template']['css']===t(0x13a)&&(h[t(0x10f)]['css']=h['template'][t(0x141)]===t(0x129)?!![]:![],this[t(0x13d)][t(0x107)]('css',h[t(0x10f)][t(0x141)]));h[t(0x135)][t(0x127)]==='apollo'&&!this['fsi']['checkNpmPackage'](t(0x11b))&&(Log[t(0x14c)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x13d)][t(0x11c)](t(0x139),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x109)]),'camelCaseName':camelCase(b[t(0x109)]),'className':pascalCase(b[t(0x109)]),'name':pascalCase(b[t(0x109)]),'graphql':h[t(0x135)][t(0x127)],'theme':h[t(0x135)]['theme'],'features':h['features'],'myPath':a105e[t(0x13c)](this[t(0x13d)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x109)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x14b)][t(0x122)]};this[t(0x13d)][t(0x10f)]({'srcPath':t(0x145),'destPath':g+t(0x113),'context':i,'config':h,'framework':'react'});h['template'][t(0x141)]&&(this['fsi'][t(0x10f)]({'srcPath':t(0x146),'destPath':g+'.css','context':Object[t(0x10e)]({},i,{'className':i[t(0x11e)]}),'config':h}),this[t(0x13d)][t(0x140)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x10a)+i[t(0x118)]+'.'+h[t(0x135)][t(0x141)]+'\x27;'}));h['engines'][t(0x147)]!==t(0x121)&&this['fsi']['template']({'srcPath':t(0x102),'destPath':g+t(0x137),'framework':t(0x128),'context':i,'config':h});const j=b[t(0x12f)]?'/'+b[t(0x12f)]+'/':'/',k=''+f+j+i[t(0x118)]+'/'+i[t(0x118)];let l;if(h[t(0x135)]['ssr']===t(0x129)){const m=this['fsi'][t(0x110)]({'pathParts':['imports',t(0x10c),t(0x148),t(0x13b)]});l=this[t(0x13d)][t(0x126)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x110)]({'pathParts':[t(0x138),t(0x10c),'client',t(0x13b)]});l=this[t(0x13d)][t(0x126)]({'pathParts':[n],'config':h});}h['engines'][t(0x14d)]==='react'?this[t(0x13d)][t(0x132)]({'filePath':l,'content':t(0x124)+i['className']+'\x20}\x20from\x20\x27'+k+'\x27;\x0a'}):this[t(0x13d)][t(0x132)]({'filePath':l,'content':t(0x108)+k+'.'+h[t(0x135)]['js']+t(0x114)});});}catch(i){Log[s(0x136)](i);}});
1
+ function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x65;let f=c[d];return f;},a105d(a,b);}function a105c(){const u=['template','assign','fileName','graphql','withTranslations','true','rewriteDestinationPathForEngine','10932471CHRrKJ','toString','css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','imports','hook','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','987109koCwdE','cssCaseName','12TmGARL','3155260CjAshn','dir','getProjectConfig','apply','export\x20{\x20','resourceName','fsi','export\x20\x27','search','.app-tests.js','756955RDltSi','injectAtEndOfFile','relative','(((.+)+)+)+$','create','@apollo/client','template/template.css','lib','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','templates.js','@apollo/client\x20isomorphic-fetch','66GSHITw','test/test.js','pathFromApp','.css','/imports/ui/hooks','\x20hook...','startup','error','components','string','Creating\x20','features','baseDir','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','847440nUMlAv','client','warn','notice','constructor','7832230zAtbhB','withValue','import\x20\x27./','react','force','engines','\x20}\x20from\x20\x27','theme','installNpmPackage','checkNpmPackage','98ZlNFbX','none','1525212XuqRtN'];a105c=function(){return u;};return a105c();}const a105r=a105d;(function(a,b){const o=a105d,c=a();while(!![]){try{const d=-parseInt(o(0xa3))/0x1+parseInt(o(0xa6))/0x2+parseInt(o(0x94))/0x3*(-parseInt(o(0xa5))/0x4)+parseInt(o(0x6a))/0x5*(-parseInt(o(0x75))/0x6)+parseInt(o(0x92))/0x7*(parseInt(o(0x83))/0x8)+parseInt(o(0x9c))/0x9+parseInt(o(0x88))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xd714a));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0x9d)]()[q(0x68)](q(0x6d))[q(0x9d)]()[q(0x87)](a105a)[q(0x68)](q(0x6d));});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105r(0x6e)]({'name':a105r(0xa1),'aliases':['h'],'checkWhere':![],'usage':a105r(0x82),'shortDesc':a105r(0x72),'validOpts':[{'name':'baseDir','values':['hooks',a105r(0x7d),'pages','layouts']},{'name':a105r(0x8c),'boolFlag':!![]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':'\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20'},async function(a,b){const s=a105r;Log[s(0x86)](s(0x7f)+b['resourceName']+s(0x7a));try{const c=this[s(0x66)][s(0x91)](s(0x8b));if(!c){Log[s(0x7c)](s(0x9f));throw new UsageError();}const d=this[s(0x66)][s(0x77)](b),f=b['baseDir']?'/imports/ui/'+b[s(0x81)]:s(0x79),g=this[s(0x66)][s(0x77)]({'pathParts':[f,b[s(0xa7)],paramCase(b[s(0x65)]),paramCase(b[s(0x65)])]}),h=await this['fsi'][s(0xa8)]();this['fsi'][s(0x89)](h,async()=>{const t=s;typeof h[t(0x95)][t(0x9e)]===t(0x7e)&&(h[t(0x95)][t(0x9e)]=h['template'][t(0x9e)]===t(0x9a)?!![]:![],this[t(0x66)]['setTemplate']('css',h[t(0x95)][t(0x9e)]));h[t(0x8d)][t(0x98)]==='apollo'&&!this['fsi'][t(0x91)](t(0x6f))&&(Log[t(0x85)](t(0xa2)),await this['fsi'][t(0x90)](t(0x74),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x65)]),'graphql':h['engines'][t(0x98)],'theme':h[t(0x8d)][t(0x8f)],'features':h[t(0x80)],'myPath':a105e[t(0x6c)](this[t(0x66)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x65)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x80)][t(0x99)]};this[t(0x66)][t(0x95)]({'srcPath':'hook/hook.js','destPath':g+'.js','context':i,'config':h,'framework':t(0x8b),'force':b[t(0x8c)]});h[t(0x95)]['css']&&(this[t(0x66)][t(0x95)]({'srcPath':t(0x70),'destPath':g+t(0x78),'context':Object[t(0x96)]({},i,{'className':i[t(0xa4)]}),'config':h,'force':b[t(0x8c)]}),this[t(0x66)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':t(0x8a)+i['fileName']+'.'+h['engines'][t(0x9e)]+'\x27;'}));h[t(0x8d)]['test']!==t(0x93)&&this[t(0x66)][t(0x95)]({'srcPath':t(0x76),'destPath':g+t(0x69),'framework':t(0x8b),'context':i,'config':h,'force':b[t(0x8c)]});const j=b[t(0xa7)]?'/'+b[t(0xa7)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x97)];let l;if(h['engines']['ssr']===t(0x9a)){const m=this['fsi']['pathFromApp']({'pathParts':['imports',t(0x7b),t(0x71),t(0x73)]});l=this[t(0x66)][t(0x9b)]({'pathParts':[m],'config':h});}else{const n=this[t(0x66)][t(0x77)]({'pathParts':[t(0xa0),'startup',t(0x84),'templates.js']});l=this[t(0x66)][t(0x9b)]({'pathParts':[n],'config':h});}h['engines'][t(0x84)]===t(0x8b)?this['fsi'][t(0x6b)]({'filePath':l,'content':t(0xaa)+i['className']+t(0x8e)+k+'\x27;\x0a'}):this[t(0x66)][t(0x6b)]({'filePath':l,'content':t(0x67)+k+'.'+h[t(0x8d)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x7c)](i);}});
@@ -1 +1 @@
1
- function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0xad;var f=c[d];return f;},a106d(a,b);}(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0xb0))/0x1*(-parseInt(f(0xb5))/0x2)+-parseInt(f(0xb8))/0x3+-parseInt(f(0xaf))/0x4+parseInt(f(0xad))/0x5+parseInt(f(0xb6))/0x6+-parseInt(f(0xb2))/0x7*(-parseInt(f(0xba))/0x8)+-parseInt(f(0xae))/0x9*(-parseInt(f(0xb4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x9cdad));function a106c(){var i=['7PIGUVM','apply','5396210LgKker','13772RYGNeq','5341734PrIxSp','(((.+)+)+)+$','3537972XCWqPh','search','1589752zmoPUi','1120435uBFYER','27LgRECT','4468172qijEgu','1EcIKXY','toString'];a106c=function(){return i;};return a106c();}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()['search'](h(0xb7))[h(0xb1)]()['constructor'](a106a)[h(0xb9)](h(0xb7));});a106a();import'./kit.js';import'./mui/_index.js';
1
+ (function(a,b){var f=a106d,c=a();while(!![]){try{var d=parseInt(f(0x193))/0x1+-parseInt(f(0x196))/0x2+-parseInt(f(0x18f))/0x3+parseInt(f(0x191))/0x4*(parseInt(f(0x18e))/0x5)+parseInt(f(0x198))/0x6+-parseInt(f(0x192))/0x7*(-parseInt(f(0x18b))/0x8)+parseInt(f(0x197))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x306ce));function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x18b;var f=c[d];return f;},a106d(a,b);}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()[h(0x190)](h(0x18d))[h(0x194)]()[h(0x195)](a106a)[h(0x190)]('(((.+)+)+)+$');});a106a();function a106c(){var i=['toString','constructor','726236nrghQm','2979018zRhHSa','40698PsooPC','1206136LMcUVW','apply','(((.+)+)+)+$','155QShPXR','508710qxaiWP','search','2404SvSKzp','7TJsMNG','223855ZxotwM'];a106c=function(){return i;};return a106c();}import'./kit.js';import'./mui/_index.js';
@@ -1 +1 @@
1
- const a107i=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(0x15a))/0x1+parseInt(f(0x155))/0x2+-parseInt(f(0x15d))/0x3+parseInt(f(0x156))/0x4*(-parseInt(f(0x150))/0x5)+-parseInt(f(0x151))/0x6*(parseInt(f(0x15b))/0x7)+-parseInt(f(0x159))/0x8+parseInt(f(0x14f))/0x9*(parseInt(f(0x14d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x53379));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a['toString']()['search'](h(0x153))[h(0x152)]()['constructor'](a107a)[h(0x15e)](h(0x153));});a107a();import{Generator}from'../../generator.js';function a107c(){const j=['941304sVrhrV','search','30XgIFuu','kit','2283741lUGEiv','15pGXDPT','17016HLDfYb','toString','(((.+)+)+)+$','apply','993484xodihs','104148iToeJc','maka\x20{generate,\x20g}:{kit}\x20<name>','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','1134048fQKKoJ','309761okSDYu','182QaTrzM','create'];a107c=function(){return j;};return a107c();}function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x14d;let f=c[d];return f;},a107d(a,b);}const KitGen=Generator[a107i(0x15c)]({'name':a107i(0x14e),'aliases':['k'],'usage':a107i(0x157),'shortDesc':a107i(0x158),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit','maka\x20g:k']},async function(){});export default KitGen;
1
+ const a107h=a107d;function a107c(){const i=['maka\x20g:kit','4913464TVrhrl','370qwotAF','8965368cnWTfo','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','(((.+)+)+)+$','toString','56665nVrDTx','1208QEDqyb','search','66iaclKq','1072580wRrgXb','maka\x20g:k','381IJeGno','kit','3524907XjIsSx','7101558LIBUiW','create','5pZKXhn','maka\x20{generate,\x20g}:{kit}\x20<name>'];a107c=function(){return i;};return a107c();}(function(a,b){const f=a107d,c=a();while(!![]){try{const d=parseInt(f(0x1e7))/0x1*(-parseInt(f(0x1f0))/0x2)+parseInt(f(0x1e9))/0x3+-parseInt(f(0x1ef))/0x4*(-parseInt(f(0x1ec))/0x5)+-parseInt(f(0x1ea))/0x6+parseInt(f(0x1f5))/0x7*(parseInt(f(0x1f6))/0x8)+-parseInt(f(0x1f1))/0x9+-parseInt(f(0x1f9))/0xa*(parseInt(f(0x1f8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xb2afe));const a107b=(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;};}()),a107a=a107b(this,function(){const g=a107d;return a107a[g(0x1f4)]()['search'](g(0x1f3))[g(0x1f4)]()['constructor'](a107a)[g(0x1f7)]('(((.+)+)+)+$');});a107a();import{Generator}from'../../generator.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a107d(a,b);}const KitGen=Generator[a107h(0x1eb)]({'name':a107h(0x1e8),'aliases':['k'],'usage':a107h(0x1ed),'shortDesc':a107h(0x1f2),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a107h(0x1ee),a107h(0x1fa)]},async function(){});export default KitGen;
@@ -1 +1 @@
1
- (function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x165))/0x1*(parseInt(f(0x15a))/0x2)+-parseInt(f(0x15d))/0x3+parseInt(f(0x163))/0x4+-parseInt(f(0x158))/0x5+parseInt(f(0x164))/0x6*(-parseInt(f(0x166))/0x7)+-parseInt(f(0x15b))/0x8*(parseInt(f(0x15f))/0x9)+-parseInt(f(0x15c))/0xa*(-parseInt(f(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xd4e47));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a['toString']()['search'](h(0x159))[h(0x162)]()[h(0x157)](a108a)[h(0x160)](h(0x159));});a108a();function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x157;var f=c[d];return f;},a108d(a,b);}import'./mui.generator.js';function a108c(){var i=['toString','3679984RxQbHW','4026OQLpWH','5911PsuBfb','16758FnlztW','constructor','7586725ZASVKN','(((.+)+)+)+$','76tjAwHp','688zPosdB','43620680grfTSx','2374524ItSKoD','11LHUREf','28278yIFrjv','search','apply'];a108c=function(){return i;};return a108c();}import'./layout.mui.gen.js';
1
+ (function(a,b){var f=a108d,c=a();while(!![]){try{var d=parseInt(f(0x11f))/0x1*(parseInt(f(0x11a))/0x2)+-parseInt(f(0x120))/0x3*(parseInt(f(0x11d))/0x4)+parseInt(f(0x11e))/0x5+-parseInt(f(0x124))/0x6*(-parseInt(f(0x129))/0x7)+-parseInt(f(0x11c))/0x8+-parseInt(f(0x128))/0x9*(-parseInt(f(0x11b))/0xa)+-parseInt(f(0x121))/0xb*(parseInt(f(0x123))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x55249));function a108c(){var i=['apply','388HzEgNF','281520OJtUhF','1127824ZSysfQ','158228SwMnVN','1418410SnDlmk','2694nybuMg','6NCNeOr','11xNTMxZ','toString','12489564YLQUgu','2792952GsqYjx','constructor','search','(((.+)+)+)+$','108BPSRoS','7UQRFoH'];a108c=function(){return i;};return a108c();}var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a[h(0x122)]()['search'](h(0x127))['toString']()[h(0x125)](a108a)[h(0x126)](h(0x127));});a108a();function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x11a;var f=c[d];return f;},a108d(a,b);}import'./mui.generator.js';import'./layout.mui.gen.js';
@@ -1 +1 @@
1
- var a109h=a109d;function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0xca;var f=c[d];return f;},a109d(a,b);}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=parseInt(f(0xcc))/0x1*(parseInt(f(0xd1))/0x2)+parseInt(f(0xd9))/0x3*(parseInt(f(0xd5))/0x4)+-parseInt(f(0xd2))/0x5+-parseInt(f(0xda))/0x6+-parseInt(f(0xde))/0x7*(-parseInt(f(0xd0))/0x8)+-parseInt(f(0xca))/0x9+-parseInt(f(0xd8))/0xa*(-parseInt(f(0xcf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xcdf9a));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var g=a109d;return a109a[g(0xd3)]()[g(0xd7)]('(((.+)+)+)+$')[g(0xd3)]()[g(0xdc)](a109a)['search'](g(0xcd));});a109a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a109e from'./mui.generator.js';function a109c(){var j=['8329590kIWHmG','notice','1oyjKcJ','(((.+)+)+)+$','create','11rMZZJc','1112408SGYlAs','1405022jyrTvI','6039870IeXMIG','toString','maka\x20{generate,\x20g}:{kit}:{layout,\x20l}\x20<kit-name>','16CJIccf','NIE','search','14830230mwONiQ','138714JbbWoj','5537334CtRPSL','layout','constructor','Generate\x20a\x20standard\x20MUI\x20layout','77jlZniz'];a109c=function(){return j;};return a109c();}Generator[a109h(0xce)]({'name':a109h(0xdb),'aliases':['l'],'usage':a109h(0xd4),'shortDesc':a109h(0xdd),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:l\x20master-layout']},async function(){var i=a109h;Log[i(0xcb)](i(0xd6));},a109e);
1
+ const a109x=a109d;(function(a,b){const u=a109d,c=a();while(!![]){try{const d=-parseInt(u(0xd4))/0x1+parseInt(u(0xd2))/0x2*(parseInt(u(0xe4))/0x3)+parseInt(u(0xc2))/0x4+parseInt(u(0xcf))/0x5*(-parseInt(u(0xb9))/0x6)+-parseInt(u(0xc9))/0x7*(parseInt(u(0xae))/0x8)+-parseInt(u(0xde))/0x9+parseInt(u(0xd1))/0xa*(parseInt(u(0xb6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xa83fb));function a109c(){const z=['true','Generate\x20a\x20standard\x20MUI\x20layout','{\x20props.children\x20}','32IXGqfA','constructor','getDirectories','fsi','/imports/ui/','No\x20layouts\x20selected','{this.props.children}','jsx','275zgVKqJ','baseDir','{\x20this.props.children\x20}','2056914KgxuqO','basic-app-bar','pathFromApp','engines','{props.children}','layouts','tsx','error','findAppDirectory','3405520vXricA','ssr','length','-hook\x22>','injectIntoFile','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20layout\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','injectImport','839272Ospdce','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','/imports/startup/lib/templates','create','.js','react','15eDeVMV','layout','958250vBMUSR','26498IPDedR','<div\x20id=\x22','1032550CqnzYF','/imports/startup/client/templates','search','\x20/>\x0a','MATERIAL','imports','replace','injectTemplateModule','apply','-component\x22>','11006334VMpNLQ','template','(((.+)+)+)+$','checkbox','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{layout,\x20l}','options','273aqvePv','getProjectConfig','maka\x20g:k:m:l'];a109c=function(){return z;};return a109c();}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a109d;if(c){const e=c[v(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const w=a109d;return a109a['toString']()['search']('(((.+)+)+)+$')['toString']()[w(0xaf)](a109a)[w(0xd6)](w(0xe0));});a109a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xa9;let f=c[d];return f;},a109d(a,b);}import a109e from'path';import a109f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a109x(0xcc)]({'name':a109x(0xd0),'aliases':['l'],'usage':a109x(0xe2),'shortDesc':a109x(0xac),'validOpts':[a109x(0xbe)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a109x(0xd8)]},'examples':[a109x(0xaa)],'description':a109x(0xc7)},async function(a,b){const y=a109x;try{const c=y(0xba),d=this[y(0xb1)][y(0xa9)](),f=d[y(0xbc)][y(0xc3)]===y(0xab),g=this[y(0xb1)][y(0xc1)](),h=a109e['join'](g,y(0xd9),'ui',y(0xbe)),i=this[y(0xb1)][y(0xb0)](h),j=await Actions[y(0xe3)]({'type':y(0xe1),'name':y(0xbe),'message':y(0xca),'choices':i});if(j[y(0xbe)][y(0xc4)]===0x0){Log[y(0xc0)](y(0xb3));return;}const k=b['baseDir']?y(0xb2)+b[y(0xb7)]:'/imports/ui/hooks',l=this['fsi'][y(0xbb)]({'pathParts':[k,b['dir'],paramCase(c),paramCase(c)]}),m={'name':headerCase(d['appName'])[y(0xda)]('-','\x20')};this[y(0xb1)][y(0xdf)]({'srcPath':'kit/mui/frame/'+c+y(0xcd),'destPath':l+y(0xcd),'framework':y(0xce),'context':m,'config':d,'force':![],'ignore':!![]});const n=''+k+b['dir']+'/'+c+'/'+c;await this[y(0xb1)][y(0xdb)](c,d,n);const {layouts:o}=j;for(const p of o){const q=this[y(0xb1)]['getFiles'](a109e['join'](h,p),{'extensions':[y(0xb5),y(0xbf)]});for(const r of q){const s=a109e['join'](h,p,r);await this[y(0xb1)][y(0xc8)]({'filePath':s,'importName':pascalCase(c),'modulePath':f?y(0xcb):y(0xd5),'isNamedExport':!![]}),await this[y(0xb1)][y(0xc6)]({'filePath':s,'content':'<'+pascalCase(c)+y(0xd7),'begin':[y(0xd3)+p+y(0xdd),'<div\x20id=\x22'+p+y(0xc5)],'end':[y(0xb4),y(0xb8),y(0xbd),y(0xad)]});}}}catch(t){t&&Log['error'](t);}},a109f);
@@ -1 +1 @@
1
- const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x17e))/0x1+-parseInt(f(0x172))/0x2+-parseInt(f(0x17c))/0x3+-parseInt(f(0x17f))/0x4*(-parseInt(f(0x173))/0x5)+-parseInt(f(0x17d))/0x6*(-parseInt(f(0x171))/0x7)+-parseInt(f(0x174))/0x8+-parseInt(f(0x178))/0x9*(-parseInt(f(0x170))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x88291));function a110c(){const k=['apply','2222553OSXxQa','300KFeBwl','654903TMpyUb','1215260DXqJZF','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','constructor','search','11910gQcloF','129675fRRpaU','1354666hGCNTs','5sovdCv','7726256TnMrXq','Material-UI\x20Kit','toString','create','17883PhmYTy','NIE','maka\x20g:kit:m'];a110c=function(){return k;};return a110c();}function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x16e;let f=c[d];return f;},a110d(a,b);}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x176)]()[h(0x16f)](h(0x180))[h(0x176)]()[h(0x16e)](a110a)[h(0x16f)](h(0x180));});a110a();import{Generator}from'../../../generator.js';import a110e from'../kit.js';const MuiGen=Generator[a110i(0x177)]({'name':'mui','aliases':['m'],'usage':a110i(0x181),'noNeedResource':!![],'shortDesc':a110i(0x175),'validOpts':[''],'isPro':!![],'examples':[a110i(0x17a)]},async function(){const j=a110i;throw j(0x179);},a110e);export default MuiGen;
1
+ const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x169))/0x1*(-parseInt(f(0x161))/0x2)+parseInt(f(0x165))/0x3+-parseInt(f(0x15d))/0x4+-parseInt(f(0x15a))/0x5*(-parseInt(f(0x15e))/0x6)+parseInt(f(0x16c))/0x7*(parseInt(f(0x15f))/0x8)+parseInt(f(0x162))/0x9*(-parseInt(f(0x168))/0xa)+-parseInt(f(0x15b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x925c2));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x159)]()[h(0x166)](h(0x164))[h(0x159)]()[h(0x16a)](a110a)[h(0x166)](h(0x164));});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x158;let f=c[d];return f;},a110d(a,b);}a110a();import{Generator}from'../../../generator.js';import a110e from'../kit.js';const MuiGen=Generator['create']({'name':a110i(0x160),'aliases':['m'],'usage':a110i(0x167),'noNeedResource':!![],'shortDesc':a110i(0x16b),'validOpts':[''],'isPro':!![],'examples':[a110i(0x15c)]},async function(){const j=a110i;throw j(0x158);},a110e);function a110c(){const k=['maka\x20g:kit:m','3141624avPfRy','3208404CVXKzl','22176hzqBhN','mui','9322UfsPUX','9NZlVwU','apply','(((.+)+)+)+$','2121180hzsmYl','search','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','3257710YiprPo','71mmDhZi','constructor','Material-UI\x20Kit','1421ElxrBN','NIE','toString','5ANzvDs','4672514iXuDQB'];a110c=function(){return k;};return a110c();}export default MuiGen;
@@ -1 +1 @@
1
- const a111r=a111d;(function(a,b){const o=a111d,c=a();while(!![]){try{const d=-parseInt(o(0x1e6))/0x1+-parseInt(o(0x205))/0x2+parseInt(o(0x1e7))/0x3+parseInt(o(0x207))/0x4+-parseInt(o(0x1f0))/0x5*(parseInt(o(0x1e8))/0x6)+-parseInt(o(0x1f7))/0x7+parseInt(o(0x1e0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x6d1d9));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a111d;if(c){const e=c[p(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const q=a111d;return a111a[q(0x20b)]()[q(0x1ee)](q(0x20e))[q(0x20b)]()[q(0x1df)](a111a)[q(0x1ee)]('(((.+)+)+)+$');});a111a();function a111c(){const u=['\x27;\x0a','layout','ssr','maka\x20g:layout\x20mobile/iPhone8','injectAtEndOfFile','.css','split','pathFromApp','17914IqSpCY','none','849912yoWmxR','lib','warn','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','toString','test','imports','(((.+)+)+)+$','rewriteDestinationPathForEngine','withValue','withHooks','pathFromProject','template','export\x20\x27','react','fileName','create','true','api','css','hook/hook.js','setTemplate','.js','constructor','3374080iIpXhM','string','features','client','className','dir','43746suFMwk','2382693zGAlZi','78vJnhIf','maka\x20g:l\x20web/safari','fsi','import\x20\x27./','templates.js','relative','search','export\x20{\x20','21570FZDcuz','/imports/ui/layouts','engines','injectAtBeginningOfFile','.app-tests.js','apply','ramda','6109229JkEViL','findAppDirectory','component/component.js','startup','checkNpmPackage','resourceName'];a111c=function(){return u;};return a111c();}import a111e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a111d(a,b);}Generator[a111r(0x1d8)]({'name':a111r(0x1fe),'aliases':aliases,'usage':a111r(0x20a),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a111r(0x200),a111r(0x1e9)]},function(a,b){const s=a111r,c=s(0x1f1),d=this[s(0x1ea)][s(0x1f8)](),e=this[s(0x1ea)][s(0x204)]({'pathParts':[c,b[s(0x1e5)],paramCase(b[s(0x1fc)]),paramCase(b[s(0x1fc)])]}),f=this[s(0x1ea)]['getProjectConfig']();this[s(0x1ea)][s(0x210)](f,()=>{const t=s;typeof f[t(0x213)][t(0x20c)]===t(0x1e1)&&(f[t(0x213)][t(0x20c)]=f[t(0x213)][t(0x20c)]===t(0x1d9)?!![]:![],this[t(0x1ea)][t(0x1dd)]('test',f[t(0x213)]['test']));typeof f[t(0x213)][t(0x1db)]==='string'&&(f['template'][t(0x1db)]=f[t(0x213)][t(0x1db)]===t(0x1d9)?!![]:![],this[t(0x1ea)][t(0x1dd)](t(0x1db),f[t(0x213)][t(0x1db)]));typeof f[t(0x213)]['js']===t(0x1e1)&&(f['template']['js']=f[t(0x213)]['js']==='true'?!![]:![],this[t(0x1ea)]['setTemplate']('js',f[t(0x213)]['js']));!f[t(0x1e2)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x203)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x1fb)]('ramda')&&(Log[t(0x209)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x1ea)]['installNpmPackage'](t(0x1f6),{'cwd':d}));if(h&&!this[t(0x1fb)](t(0x215))){Log[t(0x209)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x1fc)]),'myPath':a111e[t(0x1ed)](this[t(0x1ea)][t(0x212)]({}),e),'cssCaseName':paramCase(b[t(0x1fc)]),'className':pascalCase(b[t(0x1fc)]),'camelCaseName':camelCase(b[t(0x1fc)]),'fileName':paramCase(b[t(0x1fc)]),'graphql':f[t(0x1f2)]['graphql'],'features':f[t(0x1e2)],'client':f[t(0x1f2)][t(0x1e3)],'api':f[t(0x1f2)][t(0x1da)],'ssr':f[t(0x1f2)][t(0x1ff)],'test':f[t(0x1f2)][t(0x20c)],'theme':f[t(0x1f2)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e2)]['withTranslations']};f[t(0x1e2)]?.[t(0x211)]||b['withHook']?this[t(0x1ea)][t(0x213)]({'srcPath':t(0x1dc),'destPath':e+t(0x1de),'framework':t(0x215),'context':i,'config':f}):this[t(0x1ea)]['template']({'srcPath':t(0x1f9),'destPath':e+t(0x1de),'framework':'react','context':i,'config':f});f['engines'][t(0x20c)]!==t(0x206)&&this[t(0x1ea)][t(0x213)]({'srcPath':'test/test.js','destPath':e+t(0x1f4),'framework':t(0x215),'context':i,'config':f});f[t(0x213)][t(0x1db)]&&(this[t(0x1ea)][t(0x213)]({'srcPath':'template/template.css','destPath':e+t(0x202),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x1ea)][t(0x1f3)]({'filePath':e+'.'+f[t(0x1f2)]['js'],'content':t(0x1eb)+i[t(0x216)]+'.'+f[t(0x1f2)]['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0x1e5)]+'/':'/',k=''+c+j+i[t(0x216)]+'/'+i[t(0x216)];let l;if(f[t(0x1f2)][t(0x1ff)]===t(0x1d9)){const m=this[t(0x1ea)]['pathFromApp']({'pathParts':[t(0x20d),t(0x1fa),t(0x208),t(0x1ec)]});l=this[t(0x1ea)][t(0x20f)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1ea)][t(0x204)]({'pathParts':[t(0x20d),t(0x1fa),t(0x1e3),'templates.js']});l=this[t(0x1ea)][t(0x20f)]({'pathParts':[n],'config':f});}f['engines'][t(0x1e3)]===t(0x215)?this[t(0x1ea)][t(0x201)]({'filePath':l,'content':t(0x1ef)+i[t(0x1e4)]+'\x20}\x20from\x20\x27'+k+t(0x1fd)}):this[t(0x1ea)][t(0x201)]({'filePath':l,'content':t(0x214)+k+'.'+f[t(0x1f2)]['js']+t(0x1fd)});});});
1
+ const a111r=a111d;(function(a,b){const o=a111d,c=a();while(!![]){try{const d=-parseInt(o(0x163))/0x1+parseInt(o(0x144))/0x2*(parseInt(o(0x173))/0x3)+parseInt(o(0x149))/0x4+-parseInt(o(0x160))/0x5*(-parseInt(o(0x150))/0x6)+-parseInt(o(0x14f))/0x7+-parseInt(o(0x16f))/0x8*(parseInt(o(0x17a))/0x9)+parseInt(o(0x155))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x9d4d5));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a111d;if(c){const e=c[p(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const q=a111d;return a111a[q(0x143)]()[q(0x16b)](q(0x146))[q(0x143)]()['constructor'](a111a)['search']('(((.+)+)+)+$');});a111a();import a111e from'path';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x13c;let f=c[d];return f;},a111d(a,b);}function a111c(){const u=['template','injectAtBeginningOfFile','rewriteDestinationPathForEngine','ramda','warn','Scaffolding\x20for\x20a\x20React\x20Layout.','imports','toString','181530tAnRgB','injectAtEndOfFile','(((.+)+)+)+$','.js','css','3202788wBHdcU','\x27;\x0a','split','startup','checkNpmPackage','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','2977079EguXNu','21522izkLoC','ssr','string','client','withHook','5825090BHFkso','withTranslations','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','pathFromProject','engines','installNpmPackage','pathFromApp','getProjectConfig','export\x20\x27','dir','features','325vESdXR','.css','relative','617333WeSIjs','hook/hook.js','react','true','component/component.js','import\x20\x27./','assign','fsi','search','maka\x20g:l\x20web/safari','apply','/imports/ui/layouts','1056ireyem','\x20}\x20from\x20\x27','test','resourceName','18SfLjNQ','fileName','.app-tests.js','setTemplate','includes','withHooks','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','32319bcmGZu','layout','maka\x20g:layout\x20mobile/iPhone8'];a111c=function(){return u;};return a111c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a111r(0x17b),'aliases':aliases,'usage':a111r(0x14e),'shortDesc':a111r(0x141),'validOpts':[],'examples':[a111r(0x17c),a111r(0x16c)]},function(a,b){const s=a111r,c=s(0x16e),d=this[s(0x16a)]['findAppDirectory'](),e=this['fsi'][s(0x15b)]({'pathParts':[c,b['dir'],paramCase(b[s(0x172)]),paramCase(b[s(0x172)])]}),f=this['fsi'][s(0x15c)]();this['fsi']['withValue'](f,()=>{const t=s;typeof f[t(0x13c)]['test']===t(0x152)&&(f[t(0x13c)][t(0x171)]=f[t(0x13c)][t(0x171)]===t(0x166)?!![]:![],this[t(0x16a)][t(0x176)](t(0x171),f[t(0x13c)][t(0x171)]));typeof f[t(0x13c)][t(0x148)]===t(0x152)&&(f[t(0x13c)][t(0x148)]=f[t(0x13c)][t(0x148)]===t(0x166)?!![]:![],this['fsi'][t(0x176)](t(0x148),f[t(0x13c)][t(0x148)]));typeof f[t(0x13c)]['js']===t(0x152)&&(f[t(0x13c)]['js']=f['template']['js']===t(0x166)?!![]:![],this[t(0x16a)][t(0x176)]('js',f[t(0x13c)]['js']));!f[t(0x15f)]&&(f[t(0x15f)]={});const g=b['_']?b['_'][0x0][t(0x14b)](':')[0x1]:![],h=b['_']&&aliases[t(0x177)](g);h&&!this[t(0x14d)](t(0x13f))&&(Log[t(0x140)](t(0x157)),this[t(0x16a)][t(0x15a)]('ramda',{'cwd':d}));if(h&&!this[t(0x14d)](t(0x165))){Log['warn'](t(0x179));return;}const i={'name':pascalCase(b[t(0x172)]),'myPath':a111e[t(0x162)](this[t(0x16a)][t(0x158)]({}),e),'cssCaseName':paramCase(b[t(0x172)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x172)]),'fileName':paramCase(b[t(0x172)]),'graphql':f[t(0x159)]['graphql'],'features':f['features'],'client':f['engines'][t(0x153)],'api':f[t(0x159)]['api'],'ssr':f[t(0x159)][t(0x151)],'test':f['engines'][t(0x171)],'theme':f[t(0x159)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x15f)][t(0x156)]};f[t(0x15f)]?.[t(0x178)]||b[t(0x154)]?this[t(0x16a)]['template']({'srcPath':t(0x164),'destPath':e+t(0x147),'framework':t(0x165),'context':i,'config':f}):this[t(0x16a)]['template']({'srcPath':t(0x167),'destPath':e+t(0x147),'framework':t(0x165),'context':i,'config':f});f[t(0x159)][t(0x171)]!=='none'&&this[t(0x16a)][t(0x13c)]({'srcPath':'test/test.js','destPath':e+t(0x175),'framework':t(0x165),'context':i,'config':f});f[t(0x13c)]['css']&&(this[t(0x16a)][t(0x13c)]({'srcPath':'template/template.css','destPath':e+t(0x161),'context':Object[t(0x169)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x16a)][t(0x13d)]({'filePath':e+'.'+f[t(0x159)]['js'],'content':t(0x168)+i[t(0x174)]+'.'+f[t(0x159)][t(0x148)]+'\x27;'}));const j=b[t(0x15e)]?'/'+b['dir']+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x174)];let l;if(f['engines'][t(0x151)]===t(0x166)){const m=this[t(0x16a)]['pathFromApp']({'pathParts':[t(0x142),'startup','lib','templates.js']});l=this[t(0x16a)][t(0x13e)]({'pathParts':[m],'config':f});}else{const n=this[t(0x16a)]['pathFromApp']({'pathParts':[t(0x142),t(0x14c),'client','templates.js']});l=this[t(0x16a)][t(0x13e)]({'pathParts':[n],'config':f});}f['engines'][t(0x153)]===t(0x165)?this['fsi']['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x170)+k+t(0x14a)}):this['fsi'][t(0x145)]({'filePath':l,'content':t(0x15d)+k+'.'+f[t(0x159)]['js']+'\x27;\x0a'});});});
@@ -1 +1 @@
1
- const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(0x1c4))/0x1+-parseInt(f(0x1c7))/0x2+parseInt(f(0x1c5))/0x3*(-parseInt(f(0x1d7))/0x4)+parseInt(f(0x1d5))/0x5*(-parseInt(f(0x1d9))/0x6)+-parseInt(f(0x1ca))/0x7*(-parseInt(f(0x1cd))/0x8)+-parseInt(f(0x1c6))/0x9+parseInt(f(0x1d4))/0xa*(parseInt(f(0x1ce))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x313ab));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0x1d3)]()[h(0x1c8)]('(((.+)+)+)+$')[h(0x1d3)]()[h(0x1c9)](a112a)[h(0x1c8)](h(0x1d2));});a112a();import{Generator}from'../generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a112d(a,b);}function a112c(){const j=['85016HYgptf','maka\x20g:scaffold\x20todos','348BuxzHJ','maka\x20{generate,\x20g}:<generator>\x20<name>','351598XrBudP','30PxNZxw','688797ilUWEw','226430KFFbCg','search','constructor','7UlHXGX','maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20g:package\x20package:name','2801672QoZFkt','517MXzToA','apply','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:template\x20todos/todo_item','(((.+)+)+)+$','toString','141280DMcMVJ','5060SvLLZi','maka\x20g:api\x20trucks'];a112c=function(){return j;};return a112c();}const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a112i(0x1da),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a112i(0x1d0),'examples':['maka\x20generate:scaffold\x20todos',a112i(0x1d8),a112i(0x1d1),a112i(0x1cc),'maka\x20g:route\x20todos/edit',a112i(0x1d6),a112i(0x1cb)]},function(){});export default MakaGen;
1
+ function a112c(){const j=['221043uLIdgS','maka\x20g:api\x20trucks','maka\x20{generate,\x20g}:<generator>\x20<name>','search','6RnePih','maka\x20g:package\x20package:name','toString','470qUFxVs','maka\x20generate:scaffold\x20todos','121682gQGMZY','(((.+)+)+)+$','189VDMtvc','199361glfeMw','8637066qAEjlV','2226832etwMpw','maka\x20g:dbc\x20geoserver\x20--type=pgsql','1268900BQlNzc','52KrHzGs','apply','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:route\x20todos/edit','maka\x20g:template\x20todos/todo_item','maka\x20g:scaffold\x20todos','124856icbNOn'];a112c=function(){return j;};return a112c();}const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=parseInt(f(0x1cb))/0x1+parseInt(f(0x1cd))/0x2+parseInt(f(0x1d7))/0x3*(-parseInt(f(0x1d0))/0x4)+-parseInt(f(0x1cf))/0x5*(-parseInt(f(0x1db))/0x6)+-parseInt(f(0x1ca))/0x7*(-parseInt(f(0x1d6))/0x8)+-parseInt(f(0x1cc))/0x9+parseInt(f(0x1de))/0xa*(parseInt(f(0x1c8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x901fd));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0x1dd)]()[h(0x1da)](h(0x1c9))[h(0x1dd)]()['constructor'](a112a)[h(0x1da)](h(0x1c9));});a112a();import{Generator}from'../generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a112d(a,b);}const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a112i(0x1d9),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a112i(0x1d2),'examples':[a112i(0x1df),a112i(0x1d5),a112i(0x1d4),a112i(0x1dc),a112i(0x1d3),a112i(0x1d8),a112i(0x1ce)]},function(){});export default MakaGen;
@@ -1 +1 @@
1
- const a113m=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=parseInt(k(0x12f))/0x1*(parseInt(k(0x12a))/0x2)+-parseInt(k(0x137))/0x3+parseInt(k(0x133))/0x4+parseInt(k(0x142))/0x5*(parseInt(k(0x147))/0x6)+-parseInt(k(0x12e))/0x7+parseInt(k(0x132))/0x8+-parseInt(k(0x138))/0x9*(parseInt(k(0x140))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xa478b));function a113c(){const p=['mdg:validated-method','imports','checkMeteorPackage','7681093YdJebd','1237zNxPjR','import\x20\x27./methods','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','9595104JfUznu','4514492oqowTR','index.','search','error','3035949nKtlEw','27ijMCiR','startup','(((.+)+)+)+$','-rpc-method.','method/method.js','injectAtEndOfFile','toString','check','3159990AmVzHP','resourceName','262955peWwMq','methods','pathFromApp','create','fsi','60TPpoTx','ddp-rate-limiter','-rpc-method\x27;','appPathPrefix','check\x20ddp-rate-limiter\x20mdg:validated-method','dir','getProjectConfig','maka\x20g:method\x20todos','1418rLNqho'];a113c=function(){return p;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x123;let f=c[d];return f;},a113d(a,b);}const a113b=(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;};}()),a113a=a113b(this,function(){const l=a113d;return a113a['toString']()[l(0x135)](l(0x13a))[l(0x13e)]()['constructor'](a113a)['search'](l(0x13a));});a113a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a113m(0x145)]({'name':'method','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a113m(0x131),'validOpts':[a113m(0x127)],'examples':[a113m(0x129)]},function(a,b){const n=a113m;try{const c=this['fsi'][n(0x128)]();this[n(0x146)]['withValue'](c,async()=>{const o=n,d=paramCase(b[o(0x141)]),f={'name':b[o(0x141)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x141)]),'noRename':!![]};let g='js';c['engines']['js']==='tsx'&&(g='ts');const h=this[o(0x146)][o(0x144)]({});(!this['fsi'][o(0x12d)](o(0x13f))||!this[o(0x146)][o(0x12d)](o(0x123))||!this[o(0x146)][o(0x12d)](o(0x12b)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[o(0x146)]['installMeteorPackage'](o(0x126),{'cwd':h}));this['fsi']['template']({'srcPath':o(0x13c),'destPath':this[o(0x146)]['pathFromApp']({'pathParts':['imports',o(0x139),b['appPathPrefix'],o(0x143),b[o(0x127)],d+o(0x13b)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[o(0x146)]['pathFromApp']({'pathParts':[o(0x12c),o(0x139),b[o(0x125)],o(0x134)+c['engines']['js']]});this[o(0x146)][o(0x13d)]({'filePath':j,'content':o(0x130)+i+d+o(0x124)});});}catch(d){Log[n(0x136)](d);}});
1
+ const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=parseInt(k(0x12e))/0x1+parseInt(k(0x127))/0x2*(parseInt(k(0x136))/0x3)+parseInt(k(0x13a))/0x4+-parseInt(k(0x128))/0x5*(-parseInt(k(0x12a))/0x6)+parseInt(k(0x149))/0x7+-parseInt(k(0x137))/0x8+-parseInt(k(0x133))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x48077));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a113d;if(c){const e=c[l(0x12b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const m=a113d;return a113a[m(0x129)]()['search'](m(0x139))[m(0x129)]()['constructor'](a113a)[m(0x134)]('(((.+)+)+)+$');});a113a();import{Generator}from'../generator.js';function a113c(){const q=['withValue','checkMeteorPackage','injectAtEndOfFile','create','engines','resourceName','methods','fsi','method','3129560YOJtjp','appPathPrefix','startup','template','import\x20\x27./methods','454802dJnDSP','28415gGWCNf','toString','294mokOoT','apply','getProjectConfig','mdg:validated-method','170359kfykwd','method/method.js','-rpc-method\x27;','-rpc-method.','installMeteorPackage','4651686XpicOY','search','dir','3SQtdbA','4005648WzpUDB','pathFromApp','(((.+)+)+)+$','757136IrPcgJ','error','ddp-rate-limiter','warn','imports','maka\x20g:method\x20todos'];a113c=function(){return q;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x127;let f=c[d];return f;},a113d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a113n(0x143)]({'name':a113n(0x148),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a113n(0x135)],'examples':[a113n(0x13f)]},function(a,b){const o=a113n;try{const c=this[o(0x147)][o(0x12c)]();this[o(0x147)][o(0x140)](c,async()=>{const p=o,d=paramCase(b[p(0x145)]),f={'name':b[p(0x145)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x144)]['js']==='tsx'&&(g='ts');const h=this[p(0x147)][p(0x138)]({});(!this[p(0x147)][p(0x141)]('check')||!this[p(0x147)][p(0x141)](p(0x13c))||!this[p(0x147)][p(0x141)](p(0x12d)))&&(Log[p(0x13d)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this['fsi'][p(0x132)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[p(0x147)][p(0x14c)]({'srcPath':p(0x12f),'destPath':this[p(0x147)][p(0x138)]({'pathParts':[p(0x13e),p(0x14b),b[p(0x14a)],p(0x146),b[p(0x135)],d+p(0x131)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b[p(0x135)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[p(0x13e),'startup',b[p(0x14a)],'index.'+c[p(0x144)]['js']]});this[p(0x147)][p(0x142)]({'filePath':j,'content':p(0x14d)+i+d+p(0x130)});});}catch(d){Log[o(0x13b)](d);}});
@@ -1 +1 @@
1
- const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0xc6))/0x1+-parseInt(l(0xba))/0x2*(-parseInt(l(0xc3))/0x3)+parseInt(l(0xa1))/0x4+parseInt(l(0xbd))/0x5*(parseInt(l(0xb3))/0x6)+parseInt(l(0xbe))/0x7+-parseInt(l(0xbb))/0x8*(parseInt(l(0xa9))/0x9)+-parseInt(l(0xb0))/0xa*(parseInt(l(0xbc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x8c8d2));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a[n(0xcb)]()[n(0xb1)](n(0xb4))['toString']()['constructor'](a114a)[n(0xb1)](n(0xb4));});a114a();import a114e from'path';function a114c(){const s=['noRename','server','ssr','package.js','relative','packages','client','45DDVCXw','layout','apply','component','withValue','graphql','hasOwnProperty','10EbrMCi','search','theme','552kmBfha','(((.+)+)+)+$','forEach','package','getProjectConfig','pathFromProject','.js','34QtTWyr','1686584iYnZXc','13573549FVTpKs','53055IkRrzl','2185211xNWCJZ','tests/server','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','resourceName','dir','113907qfIgal','package/','pathFromApp','320959XeVsYa','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','template/template.js','store','/client/','toString','engines','create','fsi','/package.js','template','2435820OFEWAY'];a114c=function(){return s;};return a114c();}function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x9c;let f=c[d];return f;},a114d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a114o(0x9d)]({'name':a114o(0xb6),'aliases':['p'],'usage':a114o(0xc7),'shortDesc':a114o(0xc0),'validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a114o,c=paramCase(b[p(0xc1)]),d=this[p(0x9e)][p(0xc5)]({'pathParts':['packages',b[p(0xc2)],c]}),e=this[p(0x9e)]['pathFromAppWithNoReWrite']({'pathParts':[p(0xa7),b[p(0xc2)],c,p(0xa5)]}),f=this['fsi'][p(0xb7)]();this[p(0x9e)][p(0xad)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xc1)]),'myPath':a114e[q(0xa6)](this[q(0x9e)][q(0xb8)]({}),d),'cssCaseName':paramCase(b[q(0xc1)]),'className':pascalCase(b[q(0xc1)]),'camelCaseName':camelCase(b[q(0xc1)]),'fileName':c,'client':f[q(0x9c)][q(0xa8)],'graphql':f[q(0x9c)][q(0xae)],'ssr':f[q(0x9c)][q(0xa4)],'isComponent':b[q(0xaf)](q(0xac)),'isLayout':b[q(0xaf)](q(0xaa)),'isStore':b[q(0xaf)](q(0xc9)),'features':f['features'],'noRename':!![],'theme':f[q(0x9c)][q(0xb2)]};this[q(0x9e)][q(0xa0)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xa2)]=![];const h=d+q(0xca)+c+q(0xb9);this['fsi'][q(0xa0)]({'srcPath':q(0xc8),'destPath':h,'context':g,'config':f});const i=['lib',q(0xa3),'tests/client',q(0xbf)];i[q(0xb5)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi'][r(0xa0)]({'srcPath':r(0xc4)+j+r(0x9f),'destPath':k,'context':g,'config':f});});});});
1
+ const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=-parseInt(l(0x1f1))/0x1+-parseInt(l(0x1ed))/0x2*(-parseInt(l(0x1d9))/0x3)+parseInt(l(0x1e8))/0x4+-parseInt(l(0x1e7))/0x5+-parseInt(l(0x1e9))/0x6*(parseInt(l(0x1d8))/0x7)+parseInt(l(0x1e1))/0x8+-parseInt(l(0x1ea))/0x9*(parseInt(l(0x1e5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xac42c));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0x1d6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a['toString']()[n(0x1e3)](n(0x1e6))[n(0x1ec)]()['constructor'](a114a)[n(0x1e3)](n(0x1e6));});a114a();import a114e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a114o(0x1dc)]({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a114o(0x1f8)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a114o,c=paramCase(b['resourceName']),d=this[p(0x1eb)][p(0x1db)]({'pathParts':[p(0x1e4),b['dir'],c]}),e=this[p(0x1eb)]['pathFromAppWithNoReWrite']({'pathParts':[p(0x1e4),b['dir'],c,p(0x1d3)]}),f=this[p(0x1eb)]['getProjectConfig']();this[p(0x1eb)][p(0x1ef)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1f5)]),'myPath':a114e[q(0x1f6)](this[q(0x1eb)][q(0x1f0)]({}),d),'cssCaseName':paramCase(b[q(0x1f5)]),'className':pascalCase(b[q(0x1f5)]),'camelCaseName':camelCase(b[q(0x1f5)]),'fileName':c,'client':f[q(0x1fe)][q(0x1fc)],'graphql':f[q(0x1fe)][q(0x1f3)],'ssr':f['engines'][q(0x1de)],'isComponent':b[q(0x1fb)](q(0x1e2)),'isLayout':b['hasOwnProperty']('layout'),'isStore':b['hasOwnProperty'](q(0x1f2)),'features':f[q(0x1fa)],'noRename':!![],'theme':f[q(0x1fe)][q(0x1df)]};this[q(0x1eb)]['template']({'srcPath':q(0x1d7),'destPath':e,'context':g,'config':f}),g[q(0x1f7)]=![];const h=d+q(0x1d5)+c+'.js';this[q(0x1eb)][q(0x1fd)]({'srcPath':q(0x1e0),'destPath':h,'context':g,'config':f});const i=['lib',q(0x1f4),q(0x1f9),q(0x1da)];i[q(0x1dd)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi']['template']({'srcPath':r(0x1d4)+j+r(0x1ee),'destPath':k,'context':g,'config':f});});});});function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a114d(a,b);}function a114c(){const s=['template/template.js','10342400OQOVuR','component','search','packages','1625630nRmMpT','(((.+)+)+)+$','2437845lWQUVV','3619072lCHpen','6CZklJd','63ikGpUQ','fsi','toString','51734sVNzxu','/package.js','withValue','pathFromProject','378506PFgCRg','store','graphql','server','resourceName','relative','noRename','dir','tests/client','features','hasOwnProperty','client','template','engines','package.js','package/','/client/','apply','package/package.js','2391081WZlDQr','99xxeZaH','tests/server','pathFromApp','create','forEach','ssr','theme'];a114c=function(){return s;};return a114c();}
@@ -1 +1 @@
1
- function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x144;let f=c[d];return f;},a115d(a,b);}const a115p=a115d;(function(a,b){const m=a115d,c=a();while(!![]){try{const d=-parseInt(m(0x18c))/0x1+-parseInt(m(0x17a))/0x2*(parseInt(m(0x14c))/0x3)+-parseInt(m(0x160))/0x4*(parseInt(m(0x14f))/0x5)+parseInt(m(0x16b))/0x6+parseInt(m(0x144))/0x7+parseInt(m(0x17d))/0x8+-parseInt(m(0x149))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xde9cf));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a115d;if(c){const e=c[n(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const o=a115d;return a115a[o(0x178)]()['search']('(((.+)+)+)+$')[o(0x178)]()[o(0x175)](a115a)[o(0x152)](o(0x148));});a115a();import a115e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a115c(){const s=['.css','(((.+)+)+)+$','6709707mmFmNc','import\x20\x27./','component','9EHsLCl','warn','pathFromProject','190uwUKgs','engines','components','search','string','templates.js','assign','Generate\x20a\x20page.','lib','/imports/ui/','store','.html','checkNpmPackage','export\x20{\x20','ramda','dir','test/test.js','2812iGZrMZ','template','template/template.css','maka\x20g:page\x20todos/todos-item','layouts','withHook','pathFromApp','rewriteDestinationPathForEngine','withValue','setTemplate','\x27;\x0a','9454314CavjHH','.js','hasOwnProperty','react','installNpmPackage','none','page','template/template.html','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','test','constructor','hooks','css','toString','getProjectConfig','527194FVHxDI','apply','graphql','12315856UmTESw','layout','fileName','injectAtEndOfFile','injectAtBeginningOfFile','ssr','\x20}\x20from\x20\x27','baseDir','resourceName','true','fsi','imports','/imports/ui/pages','features','withHooks','816205zuqlYD','hook/hook.js','client','pages','Updating\x20npm\x20packages\x20...','1230985bweQXH','html','startup'];a115c=function(){return s;};return a115c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a115p(0x171),'aliases':aliases,'usage':a115p(0x173),'shortDesc':a115p(0x156),'validOpts':[{'name':'baseDir','values':[a115p(0x176),a115p(0x151),a115p(0x18f),a115p(0x164)]},{'name':a115p(0x165),'boolFlag':!![]}],'examples':[a115p(0x163)]},function(a,b){const q=a115p,c=b['baseDir']?q(0x158)+b[q(0x184)]:q(0x189),d=this[q(0x187)][q(0x166)](b),e=this[q(0x187)][q(0x166)]({'pathParts':[c,b[q(0x15e)],paramCase(b[q(0x185)]),paramCase(b['resourceName'])]}),f=this[q(0x187)][q(0x179)]();this[q(0x187)][q(0x168)](f,()=>{const r=q;typeof f[r(0x161)][r(0x145)]==='string'&&(f[r(0x161)][r(0x145)]=f[r(0x161)][r(0x145)]==='true'?!![]:![],this[r(0x187)][r(0x169)]('html',f[r(0x161)][r(0x145)]));typeof f[r(0x161)][r(0x174)]===r(0x153)&&(f[r(0x161)][r(0x174)]=f[r(0x161)][r(0x174)]===r(0x186)?!![]:![],this[r(0x187)]['setTemplate'](r(0x174),f[r(0x161)][r(0x174)]));typeof f[r(0x161)][r(0x177)]===r(0x153)&&(f[r(0x161)][r(0x177)]=f[r(0x161)][r(0x177)]===r(0x186)?!![]:![],this[r(0x187)][r(0x169)](r(0x177),f[r(0x161)][r(0x177)]));typeof f[r(0x161)]['js']===r(0x153)&&(f[r(0x161)]['js']=f[r(0x161)]['js']===r(0x186)?!![]:![],this[r(0x187)]['setTemplate']('js',f['template']['js']));!f[r(0x18a)]&&(f[r(0x18a)]={});!b['root']&&!this[r(0x187)][r(0x15b)](r(0x15d))&&(Log[r(0x14d)](r(0x190)),this[r(0x187)][r(0x16f)](r(0x15d),{'cwd':d}));const g={'name':pascalCase(b[r(0x185)]),'myPath':a115e['relative'](this['fsi'][r(0x14e)]({}),e),'cssCaseName':paramCase(b[r(0x185)]),'className':pascalCase(b[r(0x185)]),'camelCaseName':camelCase(b[r(0x185)]),'fileName':paramCase(b[r(0x185)]),'graphql':f['engines'][r(0x17c)],'features':f[r(0x18a)],'client':f['engines'][r(0x18e)],'api':f[r(0x150)]['api'],'ssr':f[r(0x150)][r(0x182)],'isStore':b[r(0x16d)](r(0x159)),'isComponent':b[r(0x16d)](r(0x14b)),'isLayout':b[r(0x16d)](r(0x17e)),'withTranslations':f[r(0x18a)]['withTranslations'],'test':f[r(0x150)][r(0x174)],'theme':f[r(0x150)]['theme']};f[r(0x161)]['html']&&this[r(0x187)][r(0x161)]({'srcPath':r(0x172),'destPath':e+r(0x15a),'context':g,'config':f});f[r(0x18a)]?.[r(0x18b)]||b[r(0x165)]?this[r(0x187)][r(0x161)]({'srcPath':r(0x18d),'destPath':e+r(0x16c),'framework':r(0x16e),'context':g,'config':f}):this[r(0x187)]['template']({'srcPath':'component/component.js','destPath':e+'.js','framework':r(0x16e),'context':g,'config':f});f[r(0x150)][r(0x174)]!==r(0x170)&&this[r(0x187)][r(0x161)]({'srcPath':r(0x15f),'destPath':e+'.app-tests.js','framework':r(0x16e),'context':g,'config':f});f[r(0x161)]['css']&&this[r(0x187)]['template']({'srcPath':r(0x162),'destPath':e+r(0x147),'context':Object[r(0x155)]({},g,{'className':paramCase(b[r(0x185)])}),'config':f});f[r(0x150)][r(0x18e)]!==r(0x16e)&&f['engines'][r(0x18e)]!=='vanilla'?(f[r(0x161)][r(0x177)]&&this['fsi'][r(0x181)]({'filePath':e+'.'+f[r(0x150)]['js'],'content':r(0x14a)+g['fileName']+'.'+f['engines'][r(0x145)]+r(0x16a)+r(0x14a)+g[r(0x17f)]+'.'+f['engines'][r(0x177)]+'\x27;'}),!f[r(0x161)][r(0x177)]&&this[r(0x187)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x150)]['js'],'content':r(0x14a)+g[r(0x17f)]+'.'+f[r(0x150)][r(0x145)]+'\x27;'})):f[r(0x161)]['css']&&this[r(0x187)][r(0x181)]({'filePath':e+'.'+f[r(0x150)]['js'],'content':r(0x14a)+g[r(0x17f)]+'.'+f['engines'][r(0x177)]+'\x27;'});const h=b[r(0x15e)]?'/'+b[r(0x15e)]+'/':'/',i=''+c+h+g[r(0x17f)]+'/'+g[r(0x17f)];let j;if(f['engines'][r(0x182)]===r(0x186)){const k=this[r(0x187)]['pathFromApp']({'pathParts':[r(0x188),r(0x146),r(0x157),r(0x154)]});j=this[r(0x187)][r(0x167)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][r(0x166)]({'pathParts':[r(0x188),r(0x146),r(0x18e),r(0x154)]});j=this[r(0x187)][r(0x167)]({'pathParts':[l],'config':f});}f[r(0x150)][r(0x18e)]===r(0x16e)?this[r(0x187)][r(0x180)]({'filePath':j,'content':r(0x15c)+g['className']+r(0x183)+i+'\x27;\x0a'}):this['fsi'][r(0x180)]({'filePath':j,'content':'export\x20\x27'+i+'.'+f[r(0x150)]['js']+r(0x16a)});});});
1
+ function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x119;let f=c[d];return f;},a115d(a,b);}const a115o=a115d;(function(a,b){const m=a115d,c=a();while(!![]){try{const d=-parseInt(m(0x131))/0x1+parseInt(m(0x14f))/0x2+-parseInt(m(0x15a))/0x3*(parseInt(m(0x11c))/0x4)+parseInt(m(0x126))/0x5*(-parseInt(m(0x157))/0x6)+-parseInt(m(0x123))/0x7+-parseInt(m(0x136))/0x8*(parseInt(m(0x13d))/0x9)+parseInt(m(0x14a))/0xa*(parseInt(m(0x11e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xbf2a4));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 n=a115d;return a115a[n(0x159)]()['search'](n(0x161))[n(0x159)]()[n(0x151)](a115a)['search'](n(0x161));});a115a();import a115e from'path';import{Generator}from'../generator.js';function a115c(){const r=['804292MVyNkq','ssr','layout','warn','ramda','226592XeGIzh','.js','startup','\x27;\x0a','hasOwnProperty','withHook','none','423ENknZI','rewriteDestinationPathForEngine','template/template.html','/imports/ui/','installNpmPackage','engines','hook/hook.js','true','test','template/template.css','store','template','.app-tests.js','230iLMDpt','resourceName','graphql','page','className','261180IOsOZi','export\x20\x27','constructor','root','pathFromApp','component/component.js','injectAtEndOfFile','fileName','8659866fXskIM','css','toString','15rlPrGM','test/test.js','pages','setTemplate','getProjectConfig','imports','theme','(((.+)+)+)+$','maka\x20g:page\x20todos/todos-item','\x20}\x20from\x20\x27','lib','export\x20{\x20','baseDir','client','relative','1138856YiGFih','component','2960705CowdSf','features','string','hooks','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','3750194kYdrcL','/imports/ui/pages','html','5DGveQi','templates.js','withValue','Generate\x20a\x20page.','api','injectAtBeginningOfFile','fsi','dir','withHooks','import\x20\x27./','react'];a115c=function(){return r;};return a115c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a115o(0x14d),'aliases':aliases,'usage':a115o(0x122),'shortDesc':a115o(0x129),'validOpts':[{'name':'baseDir','values':[a115o(0x121),'components',a115o(0x15c),'layouts']},{'name':a115o(0x13b),'boolFlag':!![]}],'examples':[a115o(0x162)]},function(a,b){const p=a115o,c=b[p(0x119)]?p(0x140)+b['baseDir']:p(0x124),d=this['fsi'][p(0x153)](b),e=this['fsi'][p(0x153)]({'pathParts':[c,b['dir'],paramCase(b[p(0x14b)]),paramCase(b[p(0x14b)])]}),f=this[p(0x12c)][p(0x15e)]();this['fsi'][p(0x128)](f,()=>{const q=p;typeof f[q(0x148)]['html']===q(0x120)&&(f[q(0x148)][q(0x125)]=f[q(0x148)][q(0x125)]===q(0x144)?!![]:![],this[q(0x12c)]['setTemplate']('html',f['template'][q(0x125)]));typeof f['template'][q(0x145)]===q(0x120)&&(f['template'][q(0x145)]=f['template'][q(0x145)]==='true'?!![]:![],this[q(0x12c)][q(0x15d)](q(0x145),f[q(0x148)]['test']));typeof f[q(0x148)][q(0x158)]===q(0x120)&&(f[q(0x148)][q(0x158)]=f[q(0x148)][q(0x158)]===q(0x144)?!![]:![],this[q(0x12c)][q(0x15d)]('css',f[q(0x148)][q(0x158)]));typeof f[q(0x148)]['js']===q(0x120)&&(f[q(0x148)]['js']=f[q(0x148)]['js']===q(0x144)?!![]:![],this[q(0x12c)][q(0x15d)]('js',f[q(0x148)]['js']));!f[q(0x11f)]&&(f[q(0x11f)]={});!b[q(0x152)]&&!this['fsi']['checkNpmPackage'](q(0x135))&&(Log[q(0x134)]('Updating\x20npm\x20packages\x20...'),this['fsi'][q(0x141)](q(0x135),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a115e[q(0x11b)](this[q(0x12c)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x14b)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x142)][q(0x14c)],'features':f['features'],'client':f['engines']['client'],'api':f[q(0x142)][q(0x12a)],'ssr':f[q(0x142)][q(0x132)],'isStore':b[q(0x13a)](q(0x147)),'isComponent':b[q(0x13a)](q(0x11d)),'isLayout':b[q(0x13a)](q(0x133)),'withTranslations':f[q(0x11f)]['withTranslations'],'test':f[q(0x142)]['test'],'theme':f['engines'][q(0x160)]};f[q(0x148)][q(0x125)]&&this[q(0x12c)]['template']({'srcPath':q(0x13f),'destPath':e+'.html','context':g,'config':f});f[q(0x11f)]?.[q(0x12e)]||b['withHook']?this[q(0x12c)][q(0x148)]({'srcPath':q(0x143),'destPath':e+q(0x137),'framework':'react','context':g,'config':f}):this[q(0x12c)][q(0x148)]({'srcPath':q(0x154),'destPath':e+q(0x137),'framework':q(0x130),'context':g,'config':f});f[q(0x142)][q(0x145)]!==q(0x13c)&&this[q(0x12c)]['template']({'srcPath':q(0x15b),'destPath':e+q(0x149),'framework':q(0x130),'context':g,'config':f});f[q(0x148)][q(0x158)]&&this['fsi'][q(0x148)]({'srcPath':q(0x146),'destPath':e+'.css','context':Object['assign']({},g,{'className':paramCase(b['resourceName'])}),'config':f});f['engines'][q(0x11a)]!==q(0x130)&&f['engines']['client']!=='vanilla'?(f['template'][q(0x158)]&&this[q(0x12c)][q(0x12b)]({'filePath':e+'.'+f[q(0x142)]['js'],'content':q(0x12f)+g[q(0x156)]+'.'+f[q(0x142)][q(0x125)]+q(0x139)+q(0x12f)+g[q(0x156)]+'.'+f[q(0x142)]['css']+'\x27;'}),!f['template']['css']&&this[q(0x12c)][q(0x12b)]({'filePath':e+'.'+f[q(0x142)]['js'],'content':q(0x12f)+g['fileName']+'.'+f['engines']['html']+'\x27;'})):f[q(0x148)][q(0x158)]&&this[q(0x12c)][q(0x12b)]({'filePath':e+'.'+f[q(0x142)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[q(0x142)][q(0x158)]+'\x27;'});const h=b['dir']?'/'+b[q(0x12d)]+'/':'/',i=''+c+h+g['fileName']+'/'+g[q(0x156)];let j;if(f['engines'][q(0x132)]===q(0x144)){const k=this[q(0x12c)][q(0x153)]({'pathParts':[q(0x15f),q(0x138),q(0x164),q(0x127)]});j=this[q(0x12c)][q(0x13e)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][q(0x153)]({'pathParts':[q(0x15f),q(0x138),q(0x11a),q(0x127)]});j=this[q(0x12c)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f['engines'][q(0x11a)]===q(0x130)?this[q(0x12c)][q(0x155)]({'filePath':j,'content':q(0x165)+g[q(0x14e)]+q(0x163)+i+q(0x139)}):this[q(0x12c)]['injectAtEndOfFile']({'filePath':j,'content':q(0x150)+i+'.'+f['engines']['js']+q(0x139)});});});
@@ -1 +1 @@
1
- function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0xb3;let f=c[d];return f;},a116d(a,b);}const a116k=a116d;(function(a,b){const h=a116d,c=a();while(!![]){try{const d=parseInt(h(0xc8))/0x1*(parseInt(h(0xc7))/0x2)+parseInt(h(0xc2))/0x3+parseInt(h(0xcf))/0x4*(parseInt(h(0xc3))/0x5)+parseInt(h(0xb7))/0x6+parseInt(h(0xc6))/0x7+parseInt(h(0xb4))/0x8*(-parseInt(h(0xd0))/0x9)+parseInt(h(0xcd))/0xa*(-parseInt(h(0xc4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x947e3));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a116d;if(c){const e=c[i(0xc9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const j=a116d;return a116a[j(0xbb)]()[j(0xbe)](j(0xc0))[j(0xbb)]()['constructor'](a116a)[j(0xbe)](j(0xc0));});a116a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a116k(0xb9)]({'name':'publish','aliases':['p'],'usage':a116k(0xbd),'shortDesc':a116k(0xba),'validOpts':[],'examples':[a116k(0xbc)]},async function(a,b){const l=a116k,c=this[l(0xca)][l(0xbf)]();this['fsi'][l(0xb5)](c,async()=>{const m=l,d={'name':b[m(0xb3)],'collection':paramCase(b[m(0xb3)]),'noRename':!![]};let e='js';c[m(0xce)]['js']===m(0xcb)&&(e='ts');const f=this['fsi'][m(0xb6)]({'pathParts':[m(0xc5)+c[m(0xce)]['js']]}),g=this[m(0xca)][m(0xb8)]({'srcPath':m(0xcc)+e,'context':d,'config':c});this[m(0xca)][m(0xc1)]({'filePath':f,'content':'\x0a'+g});});});function a116c(){const n=['11090FnFukf','engines','3500MEQVRC','9PSpIbf','resourceName','158192uJhYin','withValue','rewriteDestinationPathForEngine','665364deXwNv','templateContent','create','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','toString','maka\x20g:publish\x20todos','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','search','getProjectConfig','(((.+)+)+)+$','injectAtEndOfFile','3500901btilBZ','690UYSwuG','17699OVgTJC','server/publish.','5817910pzWGxI','2IkclRQ','182641wMeMGH','apply','fsi','tsx','publish/publish.'];a116c=function(){return n;};return a116c();}
1
+ const a116k=a116d;(function(a,b){const h=a116d,c=a();while(!![]){try{const d=parseInt(h(0x103))/0x1+parseInt(h(0x104))/0x2+parseInt(h(0x10b))/0x3*(parseInt(h(0x10c))/0x4)+-parseInt(h(0xff))/0x5*(-parseInt(h(0x107))/0x6)+parseInt(h(0x10e))/0x7+-parseInt(h(0x116))/0x8*(parseInt(h(0x105))/0x9)+-parseInt(h(0xfd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x5449f));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a116d;if(c){const e=c[i(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const j=a116d;return a116a[j(0x115)]()['search']('(((.+)+)+)+$')[j(0x115)]()[j(0x10f)](a116a)[j(0x112)](j(0x108));});a116a();import{paramCase}from'change-case';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0xfa;let f=c[d];return f;},a116d(a,b);}import{Generator}from'../generator.js';Generator[a116k(0xfc)]({'name':a116k(0x10d),'aliases':['p'],'usage':a116k(0x109),'shortDesc':a116k(0x101),'validOpts':[],'examples':[a116k(0x110)]},async function(a,b){const l=a116k,c=this['fsi'][l(0xfa)]();this[l(0x114)][l(0xfe)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x100)]),'noRename':!![]};let e='js';c['engines']['js']==='tsx'&&(e='ts');const f=this['fsi'][m(0x113)]({'pathParts':['server/publish.'+c[m(0xfb)]['js']]}),g=this[m(0x114)][m(0x10a)]({'srcPath':m(0x111)+e,'context':d,'config':c});this[m(0x114)][m(0x106)]({'filePath':f,'content':'\x0a'+g});});});function a116c(){const n=['maka\x20g:publish\x20todos','publish/publish.','search','rewriteDestinationPathForEngine','fsi','toString','1858936pnPirW','getProjectConfig','engines','create','11739950KAxNfW','withValue','1099655SrLxlt','resourceName','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','apply','650848mAhfUE','660826xsMoxy','9OCsxfC','injectAtEndOfFile','6nxKACv','(((.+)+)+)+$','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','templateContent','886953GpNjAc','4CEIfAj','publish','1783362YlTUfY','constructor'];a116c=function(){return n;};return a116c();}