@maka/maka-cli 4.5.36 → 4.5.38

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 (137) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/templates/meteor/app/server/main.js +1 -1
  117. package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +1 -1
  118. package/bundle/obf/src/templates/meteor/app/server/main.js.ts +1 -1
  119. package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +1 -1
  120. package/bundle/obf/src/tool.js +1 -1
  121. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  122. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  123. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  125. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  126. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  127. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/https/https.class.js +1 -1
  129. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  130. package/bundle/obf/src/tools/log/log.class.js +1 -1
  131. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  133. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  135. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  137. package/package.json +1 -1
@@ -1 +1 @@
1
- const a95z=a95d;function a95c(){const C=['installMeteorPackage','api/methods.js','const','api/typeDefs.js','(((.+)+)+)+$','api/resolvers.js','test','checkMeteorPackage','withMethods','typeDefs.','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','.app-tests.','apollo','-api.','TypeDefs\x20}\x20from\x20\x27','fixtures.','import\x20\x27./register-','publications.','injectAtBeginningOfFile','server','withFixtures','import\x20{\x20typeDefs\x20as\x20','API\x20boundaries\x20to\x20create','invoke','63SJlDpe','fsi','typeList.push(','rest','injectIntoFile','35oPuWNF','api','984767tmMyRU','mongo','316484KsFNwc','maka:check','dir','none','4229768ymIBUT','search','apply','40NqYesB','includes','rpc-methods.','240470lVnQHw','withValue','api/register-api.js','withRest','maka\x20{generate,\x20g}:{api}\x20<resource-name>','withGql','rewriteDestinationPathForEngine','imports','notice','REST\x20API','toString','Fixtures','template','Resolvers\x20}\x20from\x20\x27','push','register-','options','Verifying\x20meteor\x20package\x20requirements\x20...','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','resolvers.','api/tests.js','api/api.js','if\x20\x5c(typeList','/graphql/typeDefs','startup','/graphql/resolvers','417653oaektr','3139770ODBxvs','log','engines','tsx','rest-api.','GraphQL','-api\x27;','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','maka\x20g:api\x20Todos','withPubs','error','/imports/api','pathFromApp','api/publications.js','RPC\x20(Methods)','getProjectConfig','apiAnswers','constructor','resolverList.push(','ddp-rate-limiter','graphql','create','9426XdVlpW','maka:rest'];a95c=function(){return C;};return a95c();}(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0x20b))/0x1+parseInt(w(0x1ee))/0x2*(-parseInt(w(0x222))/0x3)+-parseInt(w(0x1e7))/0x4*(parseInt(w(0x1e3))/0x5)+parseInt(w(0x20c))/0x6+parseInt(w(0x1e5))/0x7+parseInt(w(0x1eb))/0x8+-parseInt(w(0x1de))/0x9*(-parseInt(w(0x1f1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x4fc1e));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0x1fb)]()[y(0x1ec)](y(0x228))['toString']()[y(0x21d)](a95a)['search'](y(0x228));});a95a();function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0x221)]({'name':a95z(0x1e4),'aliases':['a'],'usage':a95z(0x1f5),'shortDesc':a95z(0x1d0),'validOpts':[a95z(0x1e9)],'examples':[a95z(0x214)],'description':a95z(0x203)},async function(a,b){const A=a95z;try{const c=this[A(0x1df)][A(0x21b)](),d=[{'name':A(0x21a),'value':A(0x22c)},{'name':A(0x1fc),'value':A(0x1da)},{'name':'Publications','value':A(0x215)}];c[A(0x20e)][A(0x1e4)]===A(0x1e1)&&d[A(0x1ff)]({'name':A(0x1fa),'value':'withRest'});c['engines'][A(0x220)]===A(0x1d2)&&d['push']({'name':A(0x211),'value':A(0x1f6)});const f={'type':'checkbox','name':A(0x21c),'message':A(0x1dc),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x201)](f);g['length']===0x0&&(Log[A(0x216)]('No\x20API\x20boundaries\x20selected'),process['exit'](0x1)),this[A(0x1df)][A(0x1f2)](c,async()=>{const B=A,h=this[B(0x1df)][B(0x218)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x1e9)]?'/'+b[B(0x1e9)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x20e)][B(0x1e4)],'graphql':c[B(0x20e)][B(0x220)],'test':c['engines'][B(0x22a)],'noRename':!![],'withPubs':g[B(0x1ef)](B(0x215)),'withFixtures':g[B(0x1ef)](B(0x1da)),'withMethods':g[B(0x1ef)](B(0x22c)),'withRest':g['includes'](B(0x1f4))};let n='js';c[B(0x20e)]['js']===B(0x20f)&&(n='ts');(!this[B(0x1df)][B(0x22b)](B(0x223))||!this[B(0x1df)]['checkMeteorPackage'](B(0x1e8))||!this[B(0x1df)]['checkMeteorPackage'](B(0x21f))||!this[B(0x1df)][B(0x22b)]('mdg:validated-method')||!this[B(0x1df)][B(0x22b)](B(0x1e6)))&&(Log[B(0x1f9)](B(0x202)),await this[B(0x1df)][B(0x224)](B(0x213),{'cwd':h}));const o=a95e['findGenerator']('collection');o&&await o[B(0x1dd)]([j],{'config':c,'where':B(0x1d9)});c[B(0x20e)][B(0x1e4)]===B(0x1e1)&&(m[B(0x1f4)]&&this[B(0x1df)][B(0x1fd)]({'srcPath':B(0x206),'destPath':this['fsi'][B(0x218)]({'pathParts':[B(0x1f8),'api',b[B(0x1e9)],j,B(0x210)+n]}),'context':m,'config':c}));m[B(0x22c)]&&this[B(0x1df)][B(0x1fd)]({'srcPath':B(0x225),'destPath':this['fsi'][B(0x218)]({'pathParts':['imports',B(0x1e4),b[B(0x1e9)],j,B(0x1f0)+n]}),'context':m,'config':c});m[B(0x1da)]&&this[B(0x1df)]['template']({'srcPath':'api/fixtures.js','destPath':this[B(0x1df)][B(0x218)]({'pathParts':['imports',B(0x1e4),b[B(0x1e9)],j,B(0x1d5)+n]}),'context':m,'config':c});c['engines'][B(0x22a)]!==B(0x1ea)&&this[B(0x1df)][B(0x1fd)]({'srcPath':B(0x205),'destPath':this[B(0x1df)][B(0x218)]({'pathParts':[B(0x1f8),B(0x1e4),b[B(0x1e9)],j,j+B(0x1d1)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x1df)][B(0x1fd)]({'srcPath':B(0x219),'destPath':this[B(0x1df)]['pathFromApp']({'pathParts':[B(0x1f8),B(0x1e4),b['dir'],j,B(0x1d7)+n]}),'context':m,'config':c});if(c['engines'][B(0x220)]===B(0x1d2)){if(g[B(0x1ef)](B(0x1f6))){const q=this[B(0x1df)][B(0x218)]({'pathParts':[B(0x1f8),B(0x209),'server','index.'+c[B(0x20e)]['js']]}),r=this[B(0x1df)][B(0x1f7)]({'pathParts':[q],'config':c}),s=this[B(0x1df)][B(0x218)]({'pathParts':[B(0x1f8),B(0x1e4),b[B(0x1e9)],j,B(0x220),B(0x22d)+n]}),t='/imports/api'+l+j+B(0x208);this[B(0x1df)][B(0x1fd)]({'srcPath':B(0x227),'destPath':s,'context':m,'config':c}),this[B(0x1df)][B(0x1d8)]({'filePath':r,'content':B(0x1db)+k+B(0x1d4)+t+'\x27;\x0a'}),this[B(0x1df)][B(0x1e2)]({'filePath':r,'content':B(0x1e0)+k+'TypeDefs);\x0a','begin':'const','end':B(0x207)});const u=this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1e4),b[B(0x1e9)],j,B(0x220),B(0x204)+n]}),v=B(0x217)+l+j+B(0x20a);this[B(0x1df)]['template']({'srcPath':B(0x229),'destPath':u,'context':m,'config':c}),this[B(0x1df)]['injectAtBeginningOfFile']({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0x1fe)+v+'\x27;'}),this[B(0x1df)][B(0x1e2)]({'filePath':r,'content':B(0x21e)+k+'Resolvers);\x0a\x0a','begin':B(0x226),'end':B(0x207)});}}this[B(0x1df)][B(0x1fd)]({'srcPath':B(0x1f3),'destPath':this['fsi'][B(0x218)]({'pathParts':[B(0x1f8),'startup',B(0x1d9),B(0x200)+j+B(0x1d3)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1df)][B(0x218)]({'pathParts':[B(0x1f8),B(0x209),B(0x1d9),'index.'+c['engines']['js']]});this['fsi']['injectAtEndOfFile']({'filePath':p,'content':B(0x1d6)+j+B(0x212)});});}catch(h){console[A(0x20d)](h),process['exit'](0x0);}});
1
+ const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0x227))/0x1+parseInt(w(0x228))/0x2+-parseInt(w(0x1fe))/0x3*(-parseInt(w(0x1fc))/0x4)+-parseInt(w(0x209))/0x5*(-parseInt(w(0x1de))/0x6)+parseInt(w(0x21e))/0x7*(parseInt(w(0x1e1))/0x8)+-parseInt(w(0x1ea))/0x9+-parseInt(w(0x221))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x3c4df));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a[y(0x22a)]()[y(0x22d)](y(0x231))[y(0x22a)]()['constructor'](a95a)[y(0x22d)](y(0x231));});a95a();function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1db;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';function a95c(){const C=['toString','withRest','notice','search','api','create','tsx','(((.+)+)+)+$','No\x20API\x20boundaries\x20selected','checkMeteorPackage','fsi','import\x20\x27./register-','rewriteDestinationPathForEngine','if\x20\x5c(typeList','invoke','const','Verifying\x20meteor\x20package\x20requirements\x20...','typeList.push(','128706NIeDTH','server','ddp-rate-limiter','575528zINZhM','withValue','resolvers.','import\x20{\x20typeDefs\x20as\x20','checkbox','RPC\x20(Methods)','api/register-api.js','getProjectConfig','apply','1435608HRGITh','test','maka\x20{generate,\x20g}:{api}\x20<resource-name>','startup','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','api/resolvers.js','-api\x27;','\x0aimport\x20{\x20resolvers\x20as\x20','apollo','/graphql/resolvers','api/tests.js','withFixtures','push','/graphql/typeDefs','rest','publications.','fixtures.','withMethods','8keeXtf','withPubs','722193TqqUAd','.app-tests.','exit','\x27;\x0a','engines','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','maka\x20g:api\x20Todos','template','withGql','options','REST\x20API','45wDhZju','API\x20boundaries\x20to\x20create','dir','mongo','TypeDefs);\x0a','mdg:validated-method','-api.','api/fixtures.js','api/publications.js','injectIntoFile','pathFromApp','rpc-methods.','maka:rest','injectAtEndOfFile','imports','TypeDefs\x20}\x20from\x20\x27','Publications','graphql','index.','includes','installMeteorPackage','42WLTYUh','api/api.js','error','5031440RKmWsB','length','register-','injectAtBeginningOfFile','resolverList.push(','rest-api.','230845UYOJfD','68682ctnRrN','typeDefs.'];a95c=function(){return C;};return a95c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0x22f)]({'name':a95z(0x22e),'aliases':['a'],'usage':a95z(0x1ec),'shortDesc':a95z(0x1ee),'validOpts':[a95z(0x20b)],'examples':[a95z(0x204)],'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 A=a95z;try{const c=this[A(0x234)][A(0x1e8)](),d=[{'name':A(0x1e6),'value':A(0x1fb)},{'name':'Fixtures','value':A(0x1f5)},{'name':A(0x219),'value':A(0x1fd)}];c[A(0x202)][A(0x22e)]==='rest'&&d['push']({'name':A(0x208),'value':A(0x22b)});c[A(0x202)]['graphql']===A(0x1f2)&&d[A(0x1f6)]({'name':'GraphQL','value':A(0x206)});const f={'type':A(0x1e5),'name':'apiAnswers','message':A(0x20a),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x207)](f);g[A(0x222)]===0x0&&(Log[A(0x220)](A(0x232)),process[A(0x200)](0x1)),this['fsi'][A(0x1e2)](c,async()=>{const B=A,h=this[B(0x234)][B(0x213)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x20b)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x202)][B(0x22e)],'graphql':c['engines']['graphql'],'test':c[B(0x202)][B(0x1eb)],'noRename':!![],'withPubs':g[B(0x21c)](B(0x1fd)),'withFixtures':g['includes'](B(0x1f5)),'withMethods':g[B(0x21c)](B(0x1fb)),'withRest':g['includes'](B(0x22b))};let n='js';c['engines']['js']===B(0x230)&&(n='ts');(!this[B(0x234)][B(0x233)](B(0x215))||!this[B(0x234)]['checkMeteorPackage']('maka:check')||!this[B(0x234)][B(0x233)](B(0x1e0))||!this['fsi'][B(0x233)](B(0x20e))||!this[B(0x234)]['checkMeteorPackage'](B(0x20c)))&&(Log[B(0x22c)](B(0x1dc)),await this[B(0x234)][B(0x21d)](B(0x203),{'cwd':h}));const o=a95e['findGenerator']('collection');o&&await o[B(0x238)]([j],{'config':c,'where':B(0x1df)});c[B(0x202)][B(0x22e)]===B(0x1f8)&&(m[B(0x22b)]&&this[B(0x234)][B(0x205)]({'srcPath':B(0x21f),'destPath':this['fsi'][B(0x213)]({'pathParts':[B(0x217),'api',b[B(0x20b)],j,B(0x226)+n]}),'context':m,'config':c}));m[B(0x1fb)]&&this[B(0x234)][B(0x205)]({'srcPath':'api/methods.js','destPath':this[B(0x234)][B(0x213)]({'pathParts':['imports',B(0x22e),b[B(0x20b)],j,B(0x214)+n]}),'context':m,'config':c});m[B(0x1f5)]&&this['fsi']['template']({'srcPath':B(0x210),'destPath':this[B(0x234)]['pathFromApp']({'pathParts':[B(0x217),B(0x22e),b[B(0x20b)],j,B(0x1fa)+n]}),'context':m,'config':c});c['engines']['test']!=='none'&&this[B(0x234)]['template']({'srcPath':B(0x1f4),'destPath':this['fsi'][B(0x213)]({'pathParts':[B(0x217),B(0x22e),b[B(0x20b)],j,j+B(0x1ff)+n]}),'context':m,'config':c});m[B(0x1fd)]&&this[B(0x234)][B(0x205)]({'srcPath':B(0x211),'destPath':this[B(0x234)][B(0x213)]({'pathParts':[B(0x217),B(0x22e),b[B(0x20b)],j,B(0x1f9)+n]}),'context':m,'config':c});if(c['engines'][B(0x21a)]===B(0x1f2)){if(g['includes'](B(0x206))){const q=this[B(0x234)][B(0x213)]({'pathParts':[B(0x217),'startup',B(0x1df),B(0x21b)+c[B(0x202)]['js']]}),r=this[B(0x234)][B(0x236)]({'pathParts':[q],'config':c}),s=this[B(0x234)]['pathFromApp']({'pathParts':[B(0x217),B(0x22e),b['dir'],j,'graphql',B(0x229)+n]}),t='/imports/api'+l+j+B(0x1f7);this['fsi']['template']({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0x234)][B(0x224)]({'filePath':r,'content':B(0x1e4)+k+B(0x218)+t+B(0x201)}),this[B(0x234)][B(0x212)]({'filePath':r,'content':B(0x1dd)+k+B(0x20d),'begin':B(0x1db),'end':B(0x237)});const u=this['fsi']['pathFromApp']({'pathParts':[B(0x217),B(0x22e),b['dir'],j,B(0x21a),B(0x1e3)+n]}),v='/imports/api'+l+j+B(0x1f3);this['fsi'][B(0x205)]({'srcPath':B(0x1ef),'destPath':u,'context':m,'config':c}),this['fsi'][B(0x224)]({'filePath':r,'content':B(0x1f1)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0x234)]['injectIntoFile']({'filePath':r,'content':B(0x225)+k+'Resolvers);\x0a\x0a','begin':B(0x1db),'end':B(0x237)});}}this[B(0x234)]['template']({'srcPath':B(0x1e7),'destPath':this['fsi'][B(0x213)]({'pathParts':[B(0x217),B(0x1ed),'server',B(0x223)+j+B(0x20f)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x213)]({'pathParts':['imports','startup',B(0x1df),B(0x21b)+c['engines']['js']]});this[B(0x234)][B(0x216)]({'filePath':p,'content':B(0x235)+j+B(0x1f0)});});}catch(h){console['log'](h),process[A(0x200)](0x0);}});
@@ -1 +1 @@
1
- function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x193;let f=c[d];return f;},a96d(a,b);}const a96n=a96d;function a96c(){const q=['pathFromApp','1289502iPSlOo','installMeteorPackage','startup','appPathPrefix','2486247qjAGZR','2486908ATmZSc','1114435VZaTnG','870911dwpfiv','constructor','collections','1962CsCiDu','77144xmGLor','mongo','getProjectConfig','error','import\x20\x27./collections','resourceName','273720FTfojF','maka\x20g:collection\x20todos','notice','template','index.','apply','withValue','.app-tests.','search','imports','collection/collection.js','\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','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','col','injectAtEndOfFile','10sIJybw','tsx','none','toString','maka:check','fsi','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','dir','test','engines','collection','(((.+)+)+)+$'];a96c=function(){return q;};return a96c();}(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(0x1a9))/0x1+-parseInt(k(0x1b3))/0x2+-parseInt(k(0x1a6))/0x3+-parseInt(k(0x1a7))/0x4*(parseInt(k(0x195))/0x5)+-parseInt(k(0x1a2))/0x6+parseInt(k(0x1a8))/0x7+-parseInt(k(0x1ad))/0x8*(-parseInt(k(0x1ac))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xaced6));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x198)]()['search'](m(0x1a0))[m(0x198)]()[m(0x1aa)](a96a)[m(0x1bb)]('(((.+)+)+)+$');});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a96n(0x19f),'aliases':[a96n(0x193)],'usage':a96n(0x19b),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a96n(0x19c),'where'],'description':a96n(0x1be),'examples':[a96n(0x1b4)]},async function(a,b){const o=a96n;try{const c=this[o(0x19a)][o(0x1a1)]({}),d=this[o(0x19a)][o(0x1af)]();this[o(0x19a)][o(0x1b9)](d,async()=>{const p=o,f=paramCase(b[p(0x1b2)]),g={'name':pascalCase(b[p(0x1b2)]),'collectionName':pascalCase(b[p(0x1b2)]),'fileName':f,'where':b['where'],'test':d['engines'][p(0x19d)],'noRename':!![]};let h='js';d['engines']['js']===p(0x196)&&(h='ts');!this[p(0x19a)]['checkMeteorPackage'](p(0x1ae))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this['fsi'][p(0x1a3)](p(0x1ae),{'cwd':c}));!this[p(0x19a)]['checkMeteorPackage'](p(0x199))&&(Log[p(0x1b5)](p(0x1bf)),await this[p(0x19a)][p(0x1a3)]('maka:check',{'cwd':c}));this[p(0x19a)][p(0x1b6)]({'srcPath':p(0x1bd),'destPath':this['fsi'][p(0x1a1)]({'pathParts':[p(0x1bc),p(0x1a4),b[p(0x1a5)],p(0x1ab),b[p(0x19c)],f+'.'+h]}),'context':g,'config':d});d[p(0x19e)][p(0x19d)]!==p(0x197)&&this[p(0x19a)][p(0x1b6)]({'srcPath':'collection/tests.js','destPath':this['fsi'][p(0x1a1)]({'pathParts':[p(0x1bc),p(0x1a4),b[p(0x1a5)],'collections',b[p(0x19c)],f+p(0x1ba)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x19c)]+'/':'/',j=this[p(0x19a)][p(0x1a1)]({'pathParts':[p(0x1bc),'startup',b[p(0x1a5)],p(0x1b7)+d[p(0x19e)]['js']]});this[p(0x19a)][p(0x194)]({'filePath':j,'content':p(0x1b1)+i+f+'\x27;'});});}catch(f){Log[o(0x1b0)](f);}});
1
+ const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x16d))/0x1+-parseInt(k(0x15d))/0x2+-parseInt(k(0x163))/0x3*(parseInt(k(0x160))/0x4)+parseInt(k(0x166))/0x5+-parseInt(k(0x172))/0x6*(parseInt(k(0x176))/0x7)+-parseInt(k(0x18b))/0x8*(parseInt(k(0x182))/0x9)+parseInt(k(0x161))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x4b22f));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x188)]()[m(0x168)](m(0x171))['toString']()[m(0x17a)](a96a)[m(0x168)](m(0x171));});a96a();function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x15a;let f=c[d];return f;},a96d(a,b);}function a96c(){const q=['withValue','collection/tests.js','maka:check','toString','collection','test','203200VVreZV','apply','installMeteorPackage','import\x20\x27./collections','tsx','361806PNHASU','fsi','error','55588okHUyr','14915220unyGWE','mongo','99fwtAZM','resourceName','none','1152810foAIBE','pathFromApp','search','appPathPrefix','startup','getProjectConfig','.app-tests.','577014QmBBDh','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','collections','injectAtEndOfFile','(((.+)+)+)+$','882042jSqHKc','engines','col','dir','7KCdfpN','notice','imports','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','constructor','checkMeteorPackage','template','where','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','\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','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','maka\x20g:collection\x20todos','18BCOKbI','index.','create'];a96c=function(){return q;};return a96c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a96n(0x184)]({'name':a96n(0x189),'aliases':[a96n(0x174)],'usage':a96n(0x17e),'checkWhere':!![],'shortDesc':a96n(0x180),'validOpts':[a96n(0x175),a96n(0x17d)],'description':a96n(0x17f),'examples':[a96n(0x181)]},async function(a,b){const o=a96n;try{const c=this[o(0x15e)][o(0x167)]({}),d=this[o(0x15e)][o(0x16b)]();this[o(0x15e)][o(0x185)](d,async()=>{const p=o,f=paramCase(b[p(0x164)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x164)]),'fileName':f,'where':b[p(0x17d)],'test':d['engines'][p(0x18a)],'noRename':!![]};let h='js';d[p(0x173)]['js']===p(0x15c)&&(h='ts');!this[p(0x15e)][p(0x17b)](p(0x162))&&(Log[p(0x177)](p(0x16e)),await this[p(0x15e)]['installMeteorPackage']('mongo',{'cwd':c}));!this[p(0x15e)][p(0x17b)](p(0x187))&&(Log[p(0x177)](p(0x179)),await this[p(0x15e)][p(0x15a)](p(0x187),{'cwd':c}));this[p(0x15e)][p(0x17c)]({'srcPath':'collection/collection.js','destPath':this[p(0x15e)]['pathFromApp']({'pathParts':['imports',p(0x16a),b[p(0x169)],'collections',b[p(0x175)],f+'.'+h]}),'context':g,'config':d});d[p(0x173)]['test']!==p(0x165)&&this[p(0x15e)]['template']({'srcPath':p(0x186),'destPath':this[p(0x15e)][p(0x167)]({'pathParts':[p(0x178),p(0x16a),b[p(0x169)],p(0x16f),b[p(0x175)],f+p(0x16c)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[p(0x15e)][p(0x167)]({'pathParts':[p(0x178),p(0x16a),b[p(0x169)],p(0x183)+d[p(0x173)]['js']]});this['fsi'][p(0x170)]({'filePath':j,'content':p(0x15b)+i+f+'\x27;'});});}catch(f){Log[o(0x15f)](f);}});
@@ -1 +1 @@
1
- const a97q=a97d;(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(0x16e))/0x1+-parseInt(o(0x191))/0x2*(parseInt(o(0x16f))/0x3)+-parseInt(o(0x190))/0x4+parseInt(o(0x198))/0x5*(-parseInt(o(0x175))/0x6)+parseInt(o(0x18e))/0x7+-parseInt(o(0x196))/0x8*(-parseInt(o(0x182))/0x9)+parseInt(o(0x192))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xd49e7));function a97c(){const t=['api','engines','.js','features','2568jYwTUj','graphql','cssCaseName','reflux','test/test.js','resourceName','none','imports','setTemplate','checkNpmPackage','injectAtBeginningOfFile','ramda','string','8163vkVXtz','template/template.css','injectAtEndOfFile','comp','/imports/ui/components','className','components','import\x20\x27./','baseDir','includes','\x20};\x0a','getProjectConfig','2569105RZefSO','withTranslations','1567988GNCQQu','60986eploxE','15336900LdDpHD','lib','\x27;\x0a','templates.js','7736DjuljL','assign','7285JBRGsr','dir','pages','rewriteDestinationPathForEngine','import\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','findAppDirectory','error','react','startup','root','fileName','client','(((.+)+)+)+$','layouts','create','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','relative','fsi','template','css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','toString','hooks','Invalid\x20directory\x20option\x20\x22','theme','true','pathFromApp','test','.tests.js','586364CTWsAG','30kIKAhI','installNpmPackage'];a97c=function(){return t;};return a97c();}const a97b=(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;};}()),a97a=a97b(this,function(){const p=a97d;return a97a[p(0x166)]()[p(0x165)](p(0x1a5))[p(0x166)]()['constructor'](a97a)[p(0x165)]('(((.+)+)+)+$');});a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=[a97q(0x185)];function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x15f;let f=c[d];return f;},a97d(a,b);}Generator[a97q(0x1a7)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a97q(0x15f),'validOpts':[a97q(0x18a)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a97q;try{const c=[r(0x167),r(0x188),r(0x19a),r(0x1a6)];if(b[r(0x18a)]&&!c[r(0x18b)](b[r(0x18a)])){Log[r(0x19f)](r(0x168)+b[r(0x18a)]+'\x22'),Log[r(0x19f)]('Valid\x20options\x20are:\x20'+c['join'](',\x20'));throw new UsageError();}const d=this[r(0x161)][r(0x19e)](),f=b['baseDir']?'/imports/ui/'+b['baseDir']:r(0x186),g=this[r(0x161)]['pathFromApp']({'pathParts':[f,b['dir'],paramCase(b[r(0x17a)]),paramCase(b[r(0x17a)])]}),h=await this[r(0x161)][r(0x18d)]();this['fsi']['withValue'](h,async()=>{const s=r;typeof h[s(0x162)][s(0x16c)]==='string'&&(h[s(0x162)]['test']=h[s(0x162)][s(0x16c)]===s(0x16a)?!![]:![],this[s(0x161)][s(0x17d)](s(0x16c),h[s(0x162)][s(0x16c)]));typeof h[s(0x162)][s(0x163)]===s(0x181)&&(h[s(0x162)][s(0x163)]=h[s(0x162)]['css']===s(0x16a)?!![]:![],this[s(0x161)][s(0x17d)](s(0x163),h[s(0x162)]['css']));typeof h[s(0x162)]['js']==='string'&&(h[s(0x162)]['js']=h['template']['js']===s(0x16a)?!![]:![],this[s(0x161)][s(0x17d)]('js',h['template']['js']));!h['features']&&(h[s(0x174)]={});!b[s(0x1a2)]&&!this['fsi'][s(0x17e)](s(0x180))&&(Log['warn'](s(0x19d)),await this[s(0x161)][s(0x170)]('ramda',{'cwd':d}));if(!b[s(0x1a2)]&&!this['fsi'][s(0x17e)](s(0x1a0))){Log[s(0x19f)](s(0x164));return;}const i={'name':pascalCase(b[s(0x17a)]),'myPath':a97e[s(0x160)](this[s(0x161)]['pathFromProject']({}),g),'cssCaseName':paramCase(b[s(0x17a)]),'className':pascalCase(b[s(0x17a)]),'camelCaseName':camelCase(b[s(0x17a)]),'fileName':paramCase(b['resourceName']),'graphql':h[s(0x172)][s(0x176)],'features':h['features'],'client':h['engines'][s(0x1a4)],'api':h[s(0x172)][s(0x171)],'ssr':h['engines']['ssr'],'test':h[s(0x172)][s(0x16c)],'theme':h[s(0x172)][s(0x169)],'isLayout':![],'isComponent':!![],'withTranslations':h[s(0x174)][s(0x18f)]};this[s(0x161)]['template']({'srcPath':'component/component.js','destPath':g+s(0x173),'context':i,'framework':s(0x1a0),'config':h});h['engines'][s(0x16c)]!==s(0x17b)&&this[s(0x161)]['template']({'srcPath':s(0x179),'destPath':g+s(0x16d),'context':i,'framework':s(0x1a0),'config':h});h[s(0x162)][s(0x163)]&&(this[s(0x161)][s(0x162)]({'srcPath':s(0x183),'destPath':g+'.css','context':Object[s(0x197)]({},i,{'className':paramCase(b[s(0x17a)])}),'config':h}),this[s(0x161)][s(0x17f)]({'filePath':g+'.'+h[s(0x172)]['js'],'content':s(0x189)+i[s(0x177)]+'.'+h[s(0x172)]['css']+'\x27;'}));const j=b[s(0x199)]?'/'+b[s(0x199)]+'/':'/',k=''+f+j+i[s(0x1a3)]+'/'+i[s(0x1a3)];let l;if(h[s(0x172)]['ssr']===s(0x16a)){const m=this[s(0x161)]['pathFromApp']({'pathParts':['imports',s(0x1a1),s(0x193),'templates.js']});l=this[s(0x161)][s(0x19b)]({'pathParts':[m],'config':h});}else{const n=this[s(0x161)][s(0x16b)]({'pathParts':[s(0x17c),'startup','client',s(0x195)]});l=this[s(0x161)][s(0x19b)]({'pathParts':[n],'config':h});}h[s(0x172)]['client']===s(0x1a0)||h[s(0x172)][s(0x1a4)]===s(0x178)?(h[s(0x172)]['js']==='tsx'?this[s(0x161)][s(0x17f)]({'filePath':l,'content':'import\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+s(0x194)}):this[s(0x161)][s(0x17f)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x187)]+'\x20}\x20from\x20\x27'+k+'.'+h[s(0x172)]['js']+s(0x194)}),this[s(0x161)][s(0x184)]({'filePath':l,'content':'export\x20{\x20'+i['className']+s(0x18c)})):this[s(0x161)][s(0x184)]({'filePath':l,'content':s(0x19c)+k+'.'+h[s(0x172)]['js']+s(0x194)});});}catch(i){Log['error'](i);}});
1
+ function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x95;let f=c[d];return f;},a97d(a,b);}const a97r=a97d;(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(0xba))/0x1*(parseInt(o(0xc4))/0x2)+parseInt(o(0xae))/0x3+-parseInt(o(0xb8))/0x4+parseInt(o(0xde))/0x5+-parseInt(o(0xa8))/0x6*(-parseInt(o(0xa5))/0x7)+-parseInt(o(0x9c))/0x8+parseInt(o(0xcd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xb055c));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a97d;if(c){const e=c[p(0xc2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const q=a97d;return a97a['toString']()[q(0xbc)](q(0xb3))[q(0xe3)]()['constructor'](a97a)[q(0xbc)](q(0xb3));});a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a97c(){const u=['warn','187086SpLDQW','template/template.css','fsi','rewriteDestinationPathForEngine','findAppDirectory','dir','3329202tfRLJm','export\x20{\x20','fileName','theme','engines','(((.+)+)+)+$','pages','setTemplate','startup','graphql','1373700ayBYRj','template','8835gRrToc','\x20}\x20from\x20\x27','search','baseDir','/imports/ui/','true','relative','components','apply','import\x20\x27./','198GRmSmW','.tests.js','features','react','className','comp','join','layouts','\x27;\x0a','7814133RyEfXL','create','client','maka\x20g:comp\x20todos/todos-item','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Valid\x20options\x20are:\x20','lib','checkNpmPackage','string','ramda','pathFromProject','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','tsx','css','withValue','injectAtBeginningOfFile','cssCaseName','2744495XJjztE','includes','component','test/test.js','import\x20\x27','toString','injectAtEndOfFile','Invalid\x20directory\x20option\x20\x22','api','hooks','root','ssr','withTranslations','10429400fMrnZn','error','.js','none','imports','import\x20{\x20','resourceName','/imports/ui/components','pathFromApp','161kwiNFV','test'];a97c=function(){return u;};return a97c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=[a97r(0xc9)];Generator[a97r(0xce)]({'name':a97r(0xe0),'aliases':aliases,'usage':a97r(0xd8),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[a97r(0xbd)],'examples':[a97r(0xd0)]},async function(a,b){const s=a97r;try{const c=[s(0x98),s(0xc1),s(0xb4),s(0xcb)];if(b['baseDir']&&!c[s(0xdf)](b[s(0xbd)])){Log[s(0x9d)](s(0x96)+b[s(0xbd)]+'\x22'),Log[s(0x9d)](s(0xd2)+c[s(0xca)](',\x20'));throw new UsageError();}const d=this[s(0xaa)][s(0xac)](),f=b['baseDir']?s(0xbe)+b[s(0xbd)]:s(0xa3),g=this[s(0xaa)][s(0xa4)]({'pathParts':[f,b[s(0xad)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),h=await this[s(0xaa)]['getProjectConfig']();this[s(0xaa)][s(0xdb)](h,async()=>{const t=s;typeof h[t(0xb9)][t(0xa6)]===t(0xd5)&&(h[t(0xb9)]['test']=h[t(0xb9)][t(0xa6)]===t(0xbf)?!![]:![],this[t(0xaa)][t(0xb5)](t(0xa6),h[t(0xb9)][t(0xa6)]));typeof h['template'][t(0xda)]===t(0xd5)&&(h['template'][t(0xda)]=h[t(0xb9)][t(0xda)]===t(0xbf)?!![]:![],this[t(0xaa)][t(0xb5)](t(0xda),h['template'][t(0xda)]));typeof h[t(0xb9)]['js']===t(0xd5)&&(h[t(0xb9)]['js']=h['template']['js']===t(0xbf)?!![]:![],this[t(0xaa)]['setTemplate']('js',h[t(0xb9)]['js']));!h['features']&&(h[t(0xc6)]={});!b['root']&&!this['fsi'][t(0xd4)](t(0xd6))&&(Log[t(0xa7)](t(0xd1)),await this['fsi']['installNpmPackage'](t(0xd6),{'cwd':d}));if(!b[t(0x99)]&&!this[t(0xaa)][t(0xd4)](t(0xc7))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0xa2)]),'myPath':a97e[t(0xc0)](this[t(0xaa)][t(0xd7)]({}),g),'cssCaseName':paramCase(b[t(0xa2)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0xa2)]),'fileName':paramCase(b[t(0xa2)]),'graphql':h[t(0xb2)][t(0xb7)],'features':h['features'],'client':h[t(0xb2)][t(0xcf)],'api':h[t(0xb2)][t(0x97)],'ssr':h[t(0xb2)]['ssr'],'test':h[t(0xb2)][t(0xa6)],'theme':h['engines'][t(0xb1)],'isLayout':![],'isComponent':!![],'withTranslations':h['features'][t(0x9b)]};this['fsi'][t(0xb9)]({'srcPath':'component/component.js','destPath':g+t(0x9e),'context':i,'framework':t(0xc7),'config':h});h[t(0xb2)]['test']!==t(0x9f)&&this['fsi'][t(0xb9)]({'srcPath':t(0xe1),'destPath':g+t(0xc5),'context':i,'framework':t(0xc7),'config':h});h[t(0xb9)]['css']&&(this[t(0xaa)][t(0xb9)]({'srcPath':t(0xa9),'destPath':g+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0xa2)])}),'config':h}),this[t(0xaa)][t(0xdc)]({'filePath':g+'.'+h[t(0xb2)]['js'],'content':t(0xc3)+i[t(0xdd)]+'.'+h[t(0xb2)]['css']+'\x27;'}));const j=b[t(0xad)]?'/'+b[t(0xad)]+'/':'/',k=''+f+j+i[t(0xb0)]+'/'+i[t(0xb0)];let l;if(h[t(0xb2)][t(0x9a)]===t(0xbf)){const m=this[t(0xaa)][t(0xa4)]({'pathParts':[t(0xa0),t(0xb6),t(0xd3),'templates.js']});l=this[t(0xaa)][t(0xab)]({'pathParts':[m],'config':h});}else{const n=this[t(0xaa)]['pathFromApp']({'pathParts':['imports',t(0xb6),t(0xcf),'templates.js']});l=this[t(0xaa)][t(0xab)]({'pathParts':[n],'config':h});}h[t(0xb2)][t(0xcf)]===t(0xc7)||h[t(0xb2)][t(0xcf)]==='reflux'?(h['engines']['js']===t(0xd9)?this[t(0xaa)][t(0xdc)]({'filePath':l,'content':t(0xa1)+i['className']+t(0xbb)+k+t(0xcc)}):this[t(0xaa)][t(0xdc)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xc8)]+t(0xbb)+k+'.'+h[t(0xb2)]['js']+t(0xcc)}),this['fsi'][t(0x95)]({'filePath':l,'content':t(0xaf)+i[t(0xc8)]+'\x20};\x0a'})):this[t(0xaa)][t(0x95)]({'filePath':l,'content':t(0xe2)+k+'.'+h[t(0xb2)]['js']+t(0xcc)});});}catch(i){Log[s(0x9d)](i);}});
@@ -1 +1 @@
1
- const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x183))/0x1+-parseInt(h(0x185))/0x2*(parseInt(h(0x199))/0x3)+-parseInt(h(0x19e))/0x4+parseInt(h(0x17e))/0x5*(-parseInt(h(0x187))/0x6)+-parseInt(h(0x189))/0x7*(parseInt(h(0x197))/0x8)+parseInt(h(0x181))/0x9+parseInt(h(0x19a))/0xa*(parseInt(h(0x18e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xc84e5));function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x17e;let f=c[d];return f;},a98d(a,b);}function a98c(){const n=['config','appName','template','8KJQzro','config/settings.json','9HHcusH','4765700ZvVNEg','fsi','config/process.env','apply','2712728eKOmzt','5uuSoYt','settings.json','ubuntu','3150972AznqGs','isDocker','214068oMAGlp','maka\x20g:config\x20production','1085268nbMrgO','withValue','5373780qQhHbB','getProjectConfig','2481983XhWRaY','Generate\x20configuration\x20settings.','resourceName','toString','development','88rgJFcf','search','(((.+)+)+)+$','create','constructor','maka\x20{generate,\x20g}:{config}\x20<name>'];a98c=function(){return n;};return a98c();}const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0x18c)]()[j(0x18f)]('(((.+)+)+)+$')[j(0x18c)]()[j(0x192)](a98a)[j(0x18f)](j(0x190));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98k(0x191)]({'name':a98k(0x194),'usage':a98k(0x193),'shortDesc':a98k(0x18a),'validOpts':[a98k(0x182)],'examples':[a98k(0x184)]},function(a,b){const l=a98k,c=this[l(0x19b)][l(0x188)]();this['fsi'][l(0x186)](c,async()=>{const m=l,d={'app':c[m(0x195)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x18b)]),'fileName':paramCase(b[m(0x18b)]),'camelCase':camelCase(b[m(0x18b)]),'userName':m(0x180),'isDocker':b[m(0x182)]};let e=a[0x0];if(e==='dev')e=m(0x18d);else e==='prod'&&(e='production');const f=this[m(0x19b)]['pathFromProject']({'pathParts':[m(0x194),e,m(0x17f)]});this['fsi']['template']({'srcPath':m(0x198),'destPath':f,'context':d,'config':c});if(!b[m(0x182)]){const g=this[m(0x19b)]['pathFromProject']({'pathParts':[m(0x194),e,'process.env']});this[m(0x19b)][m(0x196)]({'srcPath':m(0x19c),'destPath':g,'context':d,'config':c});}});});
1
+ const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=-parseInt(h(0x15f))/0x1*(-parseInt(h(0x176))/0x2)+parseInt(h(0x164))/0x3+parseInt(h(0x178))/0x4+parseInt(h(0x16a))/0x5*(-parseInt(h(0x16c))/0x6)+-parseInt(h(0x167))/0x7*(-parseInt(h(0x157))/0x8)+parseInt(h(0x15b))/0x9*(-parseInt(h(0x163))/0xa)+-parseInt(h(0x16d))/0xb*(parseInt(h(0x177))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x93332));function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x157;let f=c[d];return f;},a98d(a,b);}function a98c(){const n=['(((.+)+)+)+$','maka\x20{generate,\x20g}:{config}\x20<name>','71911miXhqI','dev','isDocker','160Dyefyw','search','131748vIYvhm','550jwdity','getProjectConfig','config/process.env','create','withValue','maka\x20g:config\x20production','resourceName','apply','config','337264TgDHYm','166020NqIhId','1290292QxbFRu','constructor','904ECrgHy','appName','template','prod','135Znrgyk','toString','development','Generate\x20configuration\x20settings.','3ulOhOp','ubuntu','pathFromProject','fsi','240960XVYheQ','1108374LvHCHl'];a98c=function(){return n;};return a98c();}const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a['toString']()[j(0x16b)]('(((.+)+)+)+$')[j(0x15c)]()[j(0x179)](a98a)['search'](j(0x165));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98k(0x170)]({'name':a98k(0x175),'usage':a98k(0x166),'shortDesc':a98k(0x15e),'validOpts':[a98k(0x169)],'examples':[a98k(0x172)]},function(a,b){const l=a98k,c=this[l(0x162)][l(0x16e)]();this[l(0x162)][l(0x171)](c,async()=>{const m=l,d={'app':c[m(0x158)],'appFileCase':paramCase(c[m(0x158)]),'name':pascalCase(b[m(0x173)]),'fileName':paramCase(b[m(0x173)]),'camelCase':camelCase(b['resourceName']),'userName':m(0x160),'isDocker':b[m(0x169)]};let e=a[0x0];if(e===m(0x168))e=m(0x15d);else e===m(0x15a)&&(e='production');const f=this[m(0x162)][m(0x161)]({'pathParts':[m(0x175),e,'settings.json']});this[m(0x162)][m(0x159)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x169)]){const g=this[m(0x162)][m(0x161)]({'pathParts':[m(0x175),e,'process.env']});this['fsi']['template']({'srcPath':m(0x16f),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(0x8c))/0x1+parseInt(n(0x8e))/0x2*(parseInt(n(0x97))/0x3)+parseInt(n(0x83))/0x4+-parseInt(n(0x87))/0x5+parseInt(n(0x6c))/0x6*(parseInt(n(0x92))/0x7)+parseInt(n(0x6b))/0x8+parseInt(n(0x6e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xa0a73));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x9b)]()['search'](p(0x7e))['toString']()[p(0x84)](a99a)[p(0x6d)]('(((.+)+)+)+$');});a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a99c(){const t=['-dbc.','DB\x20Driver','5316448dIqyKh','26760JQXNaW','search','12484737yHAeax','injectAtEndOfFile','pgsql','template','getProjectConfig','dbc/config.js',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','options','-dbc\x27;','dbc','create','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','imports','apply','sqlite','(((.+)+)+)+$','MS\x20SQL','fsi','warn','installNpmPackage','558372mLhiyf','constructor','error','Invalid\x20type\x20','6511910CnprTE','withValue','mssql','maka\x20g:dbc\x20todos\x20--type=sqlite','resourceName','775470WYObcl','dbAnswer','160730aVrXlN','maka\x20g:dbc\x20geoserver\x20--type=pgsql','pathFromApp','startup','224KIcRMo','checkNpmPackage','type','server','dir','15OiirCO','PostgreSQL','tsx','engines','toString','dbc/conn.js','(blank)','config.','better-sqlite3'];a99c=function(){return t;};return a99c();}import{Log}from'../tools/log/log.class.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x66;let f=c[d];return f;},a99d(a,b);}import{Actions}from'../tools/actions/actions.class.js';Generator[a99q(0x79)]({'name':a99q(0x78),'usage':a99q(0x75),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a99q(0x94),a99q(0x96)],'examples':[a99q(0x8f),'maka\x20g:dbc\x20azure\x20--type=mssql',a99q(0x8a)]},async function(a,b){const r=a99q;try{const c=await this[r(0x80)][r(0x72)](),d=this[r(0x80)][r(0x90)]({}),f=paramCase(b[r(0x8b)]);if(!b[r(0x94)]){const h={'type':'list','name':r(0x8d),'message':r(0x6a),'choices':[{'name':r(0x98),'value':r(0x70)},{'name':r(0x7f),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x76)](h);i&&(b[r(0x94)]=i);}const g={'name':pascalCase(b[r(0x8b)]),'fileName':paramCase(b[r(0x8b)]),'camelCase':camelCase(b[r(0x8b)]),'type':b[r(0x94)],'engine':c[r(0x9a)]['js'],'noRename':!![]};this['fsi'][r(0x88)](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0x99)&&(j='ts');const k=[s(0x89),'pgsql'];if(k['indexOf'](g[s(0x94)])<0x0){const m=g['type']?g[s(0x94)]:s(0x66);Log[s(0x85)](s(0x86)+m+s(0x74));return;}b['type']===s(0x70)&&!this['fsi']['checkNpmPackage']('pg')&&(Log[s(0x81)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[s(0x80)]['installNpmPackage']('pg',{'cwd':d}));b[s(0x94)]===s(0x89)&&!this['fsi'][s(0x93)](s(0x89))&&(Log[s(0x81)](s(0x7a)),await this[s(0x80)]['installNpmPackage'](s(0x89),{'cwd':d}));b['type']===s(0x7d)&&!this[s(0x80)]['checkNpmPackage'](s(0x68))&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x80)][s(0x82)](s(0x68),{'cwd':d}));this['fsi'][s(0x71)]({'srcPath':s(0x73),'destPath':this[s(0x80)]['pathFromApp']({'pathParts':[s(0x7b),s(0x91),s(0x95),s(0x78),b[s(0x96)],f,s(0x67)+j]}),'context':g,'config':c}),this[s(0x80)][s(0x71)]({'srcPath':s(0x9c),'destPath':this[s(0x80)]['pathFromApp']({'pathParts':[s(0x7b),s(0x91),s(0x95),'dbc',b[s(0x96)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x80)][s(0x71)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x80)]['pathFromApp']({'pathParts':[s(0x7b),s(0x91),s(0x95),'register-'+f+s(0x69)+j]}),'context':g,'config':c});const l=this[s(0x80)][s(0x90)]({'pathParts':[s(0x7b),'startup','server','index.'+c[s(0x9a)]['js']]});this[s(0x80)][s(0x6f)]({'filePath':l,'content':'import\x20\x27./register-'+f+s(0x77)});});}catch(j){Log[r(0x85)](j);}});
1
+ const a99p=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0x1bd))/0x1*(-parseInt(n(0x19f))/0x2)+parseInt(n(0x191))/0x3*(parseInt(n(0x196))/0x4)+parseInt(n(0x1ca))/0x5+-parseInt(n(0x190))/0x6*(-parseInt(n(0x1c6))/0x7)+-parseInt(n(0x1a0))/0x8+parseInt(n(0x1cd))/0x9*(parseInt(n(0x1bb))/0xa)+parseInt(n(0x1b0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x2b451));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x190;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const o=a99d;return a99a[o(0x1c8)]()[o(0x1a9)](o(0x1cc))[o(0x1c8)]()[o(0x1a3)](a99a)[o(0x1a9)]('(((.+)+)+)+$');});a99a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a99p(0x1b1)]({'name':a99p(0x1cb),'usage':a99p(0x1c3),'shortDesc':a99p(0x1b5),'validOpts':[a99p(0x1a1),a99p(0x197)],'examples':[a99p(0x1b3),a99p(0x19c),a99p(0x1c0)]},async function(a,b){const q=a99p;try{const c=await this['fsi']['getProjectConfig'](),d=this[q(0x1a2)][q(0x194)]({}),f=paramCase(b[q(0x1ba)]);if(!b['type']){const h={'type':'list','name':q(0x1ae),'message':q(0x1be),'choices':[{'name':q(0x1a8),'value':q(0x19d)},{'name':q(0x1ce),'value':q(0x1a5)}]},{dbAnswer:i}=await Actions[q(0x19b)](h);i&&(b[q(0x1a1)]=i);}const g={'name':pascalCase(b[q(0x1ba)]),'fileName':paramCase(b[q(0x1ba)]),'camelCase':camelCase(b[q(0x1ba)]),'type':b[q(0x1a1)],'engine':c[q(0x1af)]['js'],'noRename':!![]};this[q(0x1a2)][q(0x193)](c,async()=>{const r=q;let j='js';c[r(0x1af)]['js']===r(0x1c7)&&(j='ts');const k=['mssql',r(0x19d)];if(k[r(0x19e)](g[r(0x1a1)])<0x0){const m=g[r(0x1a1)]?g['type']:r(0x1c4);Log[r(0x1c9)](r(0x1ad)+m+r(0x198));return;}b[r(0x1a1)]===r(0x19d)&&!this['fsi'][r(0x192)]('pg')&&(Log[r(0x1b4)](r(0x199)),await this[r(0x1a2)]['installNpmPackage']('pg',{'cwd':d}));b['type']===r(0x1a5)&&!this['fsi']['checkNpmPackage']('mssql')&&(Log[r(0x1b4)](r(0x1b8)),await this['fsi'][r(0x1a7)](r(0x1a5),{'cwd':d}));b[r(0x1a1)]===r(0x1c5)&&!this['fsi'][r(0x192)](r(0x1aa))&&(Log['warn'](r(0x1b2)),await this[r(0x1a2)][r(0x1a7)](r(0x1aa),{'cwd':d}));this['fsi']['template']({'srcPath':r(0x1bf),'destPath':this[r(0x1a2)][r(0x194)]({'pathParts':[r(0x1b9),r(0x1ac),'server',r(0x1cb),b[r(0x197)],f,r(0x1a4)+j]}),'context':g,'config':c}),this['fsi'][r(0x1a6)]({'srcPath':r(0x1c2),'destPath':this[r(0x1a2)]['pathFromApp']({'pathParts':[r(0x1b9),r(0x1ac),r(0x1b7),'dbc',b[r(0x197)],f,r(0x19a)+j]}),'context':g,'config':c}),this[r(0x1a2)]['template']({'srcPath':r(0x1bc),'destPath':this[r(0x1a2)][r(0x194)]({'pathParts':[r(0x1b9),r(0x1ac),r(0x1b7),'register-'+f+'-dbc.'+j]}),'context':g,'config':c});const l=this['fsi'][r(0x194)]({'pathParts':[r(0x1b9),r(0x1ac),r(0x1b7),r(0x1c1)+c[r(0x1af)]['js']]});this[r(0x1a2)][r(0x1ab)]({'filePath':l,'content':r(0x195)+f+r(0x1b6)});});}catch(j){Log[q(0x1c9)](j);}});function a99c(){const s=['fsi','constructor','config.','mssql','template','installNpmPackage','PostgreSQL','search','better-sqlite3','injectAtEndOfFile','startup','Invalid\x20type\x20','dbAnswer','engines','454718FMhBlM','create','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20geoserver\x20--type=pgsql','warn','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','-dbc\x27;','server','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','imports','resourceName','3383430SfAlOW','dbc/register-dbc.js','46mFCgVN','DB\x20Driver','dbc/config.js','maka\x20g:dbc\x20todos\x20--type=sqlite','index.','dbc/conn.js','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','(blank)','sqlite','20699FedSgV','tsx','toString','error','208260vkUIwj','dbc','(((.+)+)+)+$','9syanjr','MS\x20SQL','438XCuoaX','108315uisQDT','checkNpmPackage','withValue','pathFromApp','import\x20\x27./register-','4VlqVZf','dir',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','conn.','options','maka\x20g:dbc\x20azure\x20--type=mssql','pgsql','indexOf','10768zdtCKZ','1987216XDqmco','type'];a99c=function(){return s;};return a99c();}
@@ -1 +1 @@
1
- function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x158;let f=c[d];return f;},a100d(a,b);}const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x167))/0x1*(-parseInt(f(0x173))/0x2)+-parseInt(f(0x16b))/0x3*(parseInt(f(0x168))/0x4)+parseInt(f(0x178))/0x5+-parseInt(f(0x176))/0x6+parseInt(f(0x164))/0x7+-parseInt(f(0x16c))/0x8+parseInt(f(0x15a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xd0e4c));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x15d)]()[h(0x16e)](h(0x15b))['toString']()[h(0x158)](a100a)[h(0x16e)](h(0x15b));});function a100c(){const l=['app.tar.gz','cert','error','1058698keunCp','app','Dockerfile','5222064UKDiBN','Generate\x20an\x20updated\x20dockerfile','2948555jBCxoi','constructor','findProjectDirectory','8144442FODNqa','(((.+)+)+)+$','maka\x20{generate,\x20g}:dockerfile','toString','service','template','maka\x20g:dockerfile','isFile','withValue','fsi','10521784uwJyJh','docker/Dockerfile','build','1HvzIRK','439020woZRrB','appName','apply','3XzhhHR','5061480zFBPYb','getGlobalConfig','search','join'];a100c=function(){return l;};return a100c();}a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator['create']({'name':'dockerfile','usage':a100i(0x15c),'shortDesc':a100i(0x177),'validOpts':[],'noResource':!![],'examples':[a100i(0x160)]},async function(){const j=a100i;try{const a=await this[j(0x163)]['getProjectConfig'](),b=await this['fsi'][j(0x16d)](),c=this[j(0x163)][j(0x159)]();this[j(0x163)][j(0x162)](a,async()=>{const k=j,d={'app':b[k(0x169)],'config':a,'appPath':a100e[k(0x16f)](c,k(0x174)),'bundlePath':a100e[k(0x16f)](c,k(0x166),k(0x170)),'useCert':this[k(0x163)][k(0x161)](b[k(0x171)])};this[k(0x163)][k(0x15f)]({'srcPath':k(0x165),'destPath':a100e[k(0x16f)](c,k(0x175)),'framework':k(0x15e),'context':d,'config':a});});}catch(d){Log[j(0x172)](d);}});
1
+ const a100i=a100d;function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a100d(a,b);}(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x1c3))/0x1*(-parseInt(f(0x1c8))/0x2)+-parseInt(f(0x1b4))/0x3*(-parseInt(f(0x1ca))/0x4)+-parseInt(f(0x1b8))/0x5*(parseInt(f(0x1bb))/0x6)+parseInt(f(0x1c4))/0x7*(parseInt(f(0x1d4))/0x8)+-parseInt(f(0x1cc))/0x9*(parseInt(f(0x1c2))/0xa)+-parseInt(f(0x1d3))/0xb+parseInt(f(0x1c1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x2850d));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x1c7)]()[h(0x1bf)](h(0x1c9))[h(0x1c7)]()[h(0x1c6)](a100a)[h(0x1bf)]('(((.+)+)+)+$');});a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator[a100i(0x1ce)]({'name':a100i(0x1b6),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a100i(0x1cf),'validOpts':[],'noResource':!![],'examples':[a100i(0x1c5)]},async function(){const j=a100i;try{const a=await this['fsi'][j(0x1d1)](),b=await this['fsi'][j(0x1bc)](),c=this[j(0x1d5)][j(0x1ba)]();this[j(0x1d5)][j(0x1c0)](a,async()=>{const k=j,d={'app':b[k(0x1d0)],'config':a,'appPath':a100e[k(0x1cb)](c,'app'),'bundlePath':a100e[k(0x1cb)](c,k(0x1b5),k(0x1bd)),'useCert':this[k(0x1d5)]['isFile'](b[k(0x1cd)])};this[k(0x1d5)][k(0x1b3)]({'srcPath':k(0x1b9),'destPath':a100e[k(0x1cb)](c,k(0x1be)),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x1b7)](d);}});function a100c(){const l=['getProjectConfig','apply','2349743jCdXJh','1784XpuSMS','fsi','template','638778FVfbal','build','dockerfile','error','31305XHlTGd','docker/Dockerfile','findProjectDirectory','162jueryr','getGlobalConfig','app.tar.gz','Dockerfile','search','withValue','5182620Bssyix','70nNgSFE','1zpRRpo','8946TQlXth','maka\x20g:dockerfile','constructor','toString','364002egqlHt','(((.+)+)+)+$','4lVlElH','join','257157XnPdLC','cert','create','Generate\x20an\x20updated\x20dockerfile','appName'];a100c=function(){return l;};return a100c();}
@@ -1 +1 @@
1
- const a101s=a101d;function a101c(){const v=['Creating\x20','components','780DmQngC','imports','Invalid\x20directory\x20option\x20\x22','css','198ETkccs','export\x20{\x20','toString','283758QNrgTv','includes','2265040Oiobst','\x20};\x0a','hook/hook.js','className','2732154yeSGVo','pathFromApp','installNpmPackage','apollo','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','262324uqcMQj','assign','test','template','relative','\x27;\x0a','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','templates.js','withValue','graphql','48765skKxAC','client','true','/imports/ui/hooks','hook','string','test/test.js','react','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','warn','injectAtEndOfFile','/imports/ui/','8rPpdhn','features','\x20hook...','resourceName','9984345euOHBe','.css','fileName','Valid\x20options\x20are:\x20','import\x20{\x20','rewriteDestinationPathForEngine','startup','import\x20\x27','notice','fsi','search','error','none','@apollo/client\x20isomorphic-fetch','ssr','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','dir','constructor','setTemplate','checkNpmPackage','.js','@apollo/client','cssCaseName','8145QoKNrI','(((.+)+)+)+$','\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','.app-tests.js','engines','template/template.css','apply','baseDir','\x20}\x20from\x20\x27','injectAtBeginningOfFile','theme','layouts','tsx'];a101c=function(){return v;};return a101c();}(function(a,b){const p=a101d,c=a();while(!![]){try{const d=parseInt(p(0x224))/0x1+-parseInt(p(0x219))/0x2+-parseInt(p(0x21f))/0x3+parseInt(p(0x21b))/0x4+-parseInt(p(0x1dc))/0x5*(parseInt(p(0x216))/0x6)+parseInt(p(0x1ec))/0x7*(parseInt(p(0x1e8))/0x8)+parseInt(p(0x203))/0x9*(-parseInt(p(0x212))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xc5b9b));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a101d;if(c){const e=c[q(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const r=a101d;return a101a[r(0x218)]()[r(0x1f6)](r(0x204))[r(0x218)]()[r(0x1fd)](a101a)['search']('(((.+)+)+)+$');});a101a();import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a101d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a101s(0x1e0),'aliases':['h'],'checkWhere':![],'usage':a101s(0x1d8),'shortDesc':a101s(0x223),'validOpts':['baseDir'],'examples':['maka\x20g:hook\x20cool-hook'],'description':a101s(0x205)},async function(a,b){const t=a101s;Log[t(0x1f4)](t(0x210)+a[0x0]+t(0x1ea));try{const c=['hooks',t(0x211),'pages',t(0x20e)];if(b[t(0x20a)]&&!c[t(0x21a)](b[t(0x20a)])){Log['error'](t(0x214)+b[t(0x20a)]+'\x22'),Log[t(0x1f7)](t(0x1ef)+c['join'](',\x20'));throw new UsageError();}const d=this[t(0x1f5)][t(0x1ff)](t(0x1e3));if(!d){Log[t(0x1f7)](t(0x1e4));throw new UsageError();}const f=this[t(0x1f5)][t(0x220)](b),g=b[t(0x20a)]?t(0x1e7)+b[t(0x20a)]:t(0x1df),h=this[t(0x1f5)][t(0x220)]({'pathParts':[g,b[t(0x1fc)],paramCase(b[t(0x1eb)]),paramCase(b[t(0x1eb)])]}),i=await this[t(0x1f5)]['getProjectConfig']();this['fsi'][t(0x1da)](i,async()=>{const u=t;typeof i[u(0x227)][u(0x215)]===u(0x1e1)&&(i[u(0x227)]['css']=i['template'][u(0x215)]==='true'?!![]:![],this[u(0x1f5)][u(0x1fe)](u(0x215),i[u(0x227)][u(0x215)]));i[u(0x207)][u(0x1db)]===u(0x222)&&!this['fsi'][u(0x1ff)](u(0x201))&&(Log[u(0x1e5)](u(0x1fb)),await this[u(0x1f5)][u(0x221)](u(0x1f9),{'cwd':f}));const j={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b[u(0x1eb)]),'className':pascalCase(b[u(0x1eb)]),'name':pascalCase(b[u(0x1eb)]),'graphql':i[u(0x207)][u(0x1db)],'theme':i[u(0x207)][u(0x20d)],'features':i[u(0x1e9)],'myPath':a101e[u(0x228)](this[u(0x1f5)]['pathFromProject']({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x1e9)]['withTranslations']};this['fsi'][u(0x227)]({'srcPath':u(0x21d),'destPath':h+u(0x200),'context':j,'config':i,'framework':u(0x1e3)});i['template']['css']&&(this[u(0x1f5)][u(0x227)]({'srcPath':u(0x208),'destPath':h+u(0x1ed),'context':Object[u(0x225)]({},j,{'className':j[u(0x202)]}),'config':i}),this[u(0x1f5)][u(0x20c)]({'filePath':h+'.'+i[u(0x207)]['js'],'content':'import\x20\x27./'+j[u(0x1ee)]+'.'+i[u(0x207)][u(0x215)]+'\x27;'}));i['engines'][u(0x226)]!==u(0x1f8)&&this[u(0x1f5)][u(0x227)]({'srcPath':u(0x1e2),'destPath':h+u(0x206),'framework':u(0x1e3),'context':j,'config':i});const k=b[u(0x1fc)]?'/'+b['dir']+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x1ee)];let m;if(i['engines'][u(0x1fa)]===u(0x1de)){const n=this[u(0x1f5)][u(0x220)]({'pathParts':[u(0x213),'startup','lib',u(0x1d9)]});m=this[u(0x1f5)][u(0x1f1)]({'pathParts':[n],'config':i});}else{const o=this[u(0x1f5)][u(0x220)]({'pathParts':[u(0x213),u(0x1f2),u(0x1dd),u(0x1d9)]});m=this[u(0x1f5)]['rewriteDestinationPathForEngine']({'pathParts':[o],'config':i});}i[u(0x207)][u(0x1dd)]==='react'?(i[u(0x207)]['js']===u(0x20f)?this['fsi'][u(0x20c)]({'filePath':m,'content':u(0x1f0)+j[u(0x21e)]+u(0x20b)+l+u(0x1d7)}):this[u(0x1f5)][u(0x20c)]({'filePath':m,'content':u(0x1f0)+j[u(0x21e)]+u(0x20b)+l+'.'+i[u(0x207)]['js']+u(0x1d7)}),this[u(0x1f5)]['injectAtEndOfFile']({'filePath':m,'content':u(0x217)+j[u(0x21e)]+u(0x21c)})):this[u(0x1f5)][u(0x1e6)]({'filePath':m,'content':u(0x1f3)+l+'.'+i[u(0x207)]['js']+u(0x1d7)});});}catch(j){Log[t(0x1f7)](j);}});
1
+ const a101r=a101d;(function(a,b){const p=a101d,c=a();while(!![]){try{const d=parseInt(p(0x187))/0x1+parseInt(p(0x186))/0x2*(-parseInt(p(0x17e))/0x3)+parseInt(p(0x18f))/0x4+-parseInt(p(0x1a8))/0x5*(parseInt(p(0x1c1))/0x6)+parseInt(p(0x19b))/0x7+parseInt(p(0x1a0))/0x8*(-parseInt(p(0x17d))/0x9)+-parseInt(p(0x185))/0xa*(-parseInt(p(0x1ad))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xe33a0));function a101c(){const u=['injectAtBeginningOfFile','rewriteDestinationPathForEngine','hooks','apollo','@apollo/client\x20isomorphic-fetch','cssCaseName','pathFromApp','maka\x20g:hook\x20cool-hook','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','true','notice','\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','\x20}\x20from\x20\x27','react','className','(((.+)+)+)+$','6WpHTSn','template/template.css','.css','toString','features','/imports/ui/','warn','installNpmPackage','setTemplate','dir','search','1092969NEUZHM','6xtIomQ','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','theme','withTranslations','relative','client','checkNpmPackage','74180MrGyNj','1400548xSIAti','1781675GMDddk','join','.js','resourceName','pathFromProject','string','templates.js','\x20};\x0a','208952RUdjZx','graphql','template','@apollo/client','ssr','tsx','injectAtEndOfFile','error','.app-tests.js','import\x20\x27./','import\x20{\x20','hook','3640126hiFTan','getProjectConfig','import\x20\x27','test','components','8fwtkxT','layouts','engines','Valid\x20options\x20are:\x20','baseDir','imports','fileName','fsi','6590300aqjzOu','Invalid\x20directory\x20option\x20\x22','pages','test/test.js','css','2101jSjkcy','lib','\x27;\x0a','create'];a101c=function(){return u;};return a101c();}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 q=a101d;return a101a[q(0x1c4)]()[q(0x17c)](q(0x1c0))['toString']()['constructor'](a101a)[q(0x17c)](q(0x1c0));});a101a();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x178;let f=c[d];return f;},a101d(a,b);}import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a101r(0x1b0)]({'name':a101r(0x19a),'aliases':['h'],'checkWhere':![],'usage':a101r(0x1b9),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a101r(0x1a4)],'examples':[a101r(0x1b8)],'description':a101r(0x1bc)},async function(a,b){const s=a101r;Log[s(0x1bb)]('Creating\x20'+a[0x0]+'\x20hook...');try{const c=[s(0x1b3),s(0x19f),s(0x1aa),s(0x1a1)];if(b[s(0x1a4)]&&!c['includes'](b[s(0x1a4)])){Log[s(0x196)](s(0x1a9)+b[s(0x1a4)]+'\x22'),Log['error'](s(0x1a3)+c[s(0x188)](',\x20'));throw new UsageError();}const d=this[s(0x1a7)][s(0x184)](s(0x1be));if(!d){Log[s(0x196)](s(0x17f));throw new UsageError();}const f=this[s(0x1a7)]['pathFromApp'](b),g=b[s(0x1a4)]?s(0x1c6)+b['baseDir']:'/imports/ui/hooks',h=this[s(0x1a7)][s(0x1b7)]({'pathParts':[g,b['dir'],paramCase(b[s(0x18a)]),paramCase(b[s(0x18a)])]}),i=await this['fsi'][s(0x19c)]();this[s(0x1a7)]['withValue'](i,async()=>{const t=s;typeof i[t(0x191)][t(0x1ac)]===t(0x18c)&&(i[t(0x191)][t(0x1ac)]=i[t(0x191)][t(0x1ac)]==='true'?!![]:![],this[t(0x1a7)][t(0x17a)](t(0x1ac),i[t(0x191)][t(0x1ac)]));i[t(0x1a2)]['graphql']===t(0x1b4)&&!this[t(0x1a7)][t(0x184)](t(0x192))&&(Log[t(0x178)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x1a7)][t(0x179)](t(0x1b5),{'cwd':f}));const j={'cssCaseName':paramCase(b[t(0x18a)]),'camelCaseName':camelCase(b[t(0x18a)]),'className':pascalCase(b[t(0x18a)]),'name':pascalCase(b[t(0x18a)]),'graphql':i[t(0x1a2)][t(0x190)],'theme':i['engines'][t(0x180)],'features':i[t(0x1c5)],'myPath':a101e[t(0x182)](this['fsi'][t(0x18b)]({}),h),'fileName':paramCase(b[t(0x18a)]),'isComponent':![],'isLayout':![],'withTranslations':i[t(0x1c5)][t(0x181)]};this[t(0x1a7)][t(0x191)]({'srcPath':'hook/hook.js','destPath':h+t(0x189),'context':j,'config':i,'framework':t(0x1be)});i[t(0x191)][t(0x1ac)]&&(this[t(0x1a7)][t(0x191)]({'srcPath':t(0x1c2),'destPath':h+t(0x1c3),'context':Object['assign']({},j,{'className':j[t(0x1b6)]}),'config':i}),this[t(0x1a7)][t(0x1b1)]({'filePath':h+'.'+i['engines']['js'],'content':t(0x198)+j['fileName']+'.'+i['engines'][t(0x1ac)]+'\x27;'}));i[t(0x1a2)][t(0x19e)]!=='none'&&this[t(0x1a7)][t(0x191)]({'srcPath':t(0x1ab),'destPath':h+t(0x197),'framework':t(0x1be),'context':j,'config':i});const k=b[t(0x17b)]?'/'+b['dir']+'/':'/',l=''+g+k+j['fileName']+'/'+j[t(0x1a6)];let m;if(i[t(0x1a2)][t(0x193)]===t(0x1ba)){const n=this[t(0x1a7)][t(0x1b7)]({'pathParts':[t(0x1a5),'startup',t(0x1ae),'templates.js']});m=this[t(0x1a7)][t(0x1b2)]({'pathParts':[n],'config':i});}else{const o=this[t(0x1a7)][t(0x1b7)]({'pathParts':['imports','startup',t(0x183),t(0x18d)]});m=this[t(0x1a7)]['rewriteDestinationPathForEngine']({'pathParts':[o],'config':i});}i[t(0x1a2)][t(0x183)]===t(0x1be)?(i[t(0x1a2)]['js']===t(0x194)?this[t(0x1a7)]['injectAtBeginningOfFile']({'filePath':m,'content':t(0x199)+j[t(0x1bf)]+t(0x1bd)+l+'\x27;\x0a'}):this['fsi'][t(0x1b1)]({'filePath':m,'content':t(0x199)+j[t(0x1bf)]+'\x20}\x20from\x20\x27'+l+'.'+i[t(0x1a2)]['js']+t(0x1af)}),this[t(0x1a7)][t(0x195)]({'filePath':m,'content':'export\x20{\x20'+j['className']+t(0x18e)})):this[t(0x1a7)][t(0x195)]({'filePath':m,'content':t(0x19d)+l+'.'+i[t(0x1a2)]['js']+t(0x1af)});});}catch(j){Log['error'](j);}});
@@ -1 +1 @@
1
- function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0xde;let f=c[d];return f;},a102d(a,b);}function a102c(){const n=['search','error','9398976eVvYQq','kit','engines','(blank)','17519YiWTZx','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','notice','43684PEIZgE','create','540LOqkkB','toString','fsi','maka\x20g:kit\x20--type=map','26223939mWWUcn','maka\x20g:k\x20city-map\x20--type=leaflet-map','(((.+)+)+)+$','getProjectConfig','constructor','84keeGeN','indexOf','2829534ZurZUW','4735056fkywVJ','NIE','apply','resourceName','8913471zXfMfA','type','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','leaflet-map','login'];a102c=function(){return n;};return a102c();}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0xe4))/0x1*(parseInt(h(0xf2))/0x2)+-parseInt(h(0xf4))/0x3+-parseInt(h(0xe7))/0x4*(parseInt(h(0xe9))/0x5)+parseInt(h(0xf5))/0x6+-parseInt(h(0xf9))/0x7+parseInt(h(0xe0))/0x8+parseInt(h(0xed))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb6226));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0xea)]()['search'](j(0xef))[j(0xea)]()[j(0xf1)](a102a)[j(0xde)](j(0xef));});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0xe8)]({'name':a102k(0xe1),'aliases':['k'],'usage':a102k(0xe5),'shortDesc':a102k(0xfb),'validOpts':['type'],'examples':[a102k(0xec),a102k(0xee)]},async function(a,b){const l=a102k;try{const c=this[l(0xeb)][l(0xf0)]();this[l(0xeb)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xf8)]),'fileName':paramCase(b[m(0xf8)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0xfa)],'engine':c[m(0xe2)]['js'],'noRename':!![]},f=[m(0xfc),'login'];if(f[m(0xf3)](d[m(0xfa)])<0x0){const g=d[m(0xfa)]?d[m(0xfa)]:m(0xe3);Log[m(0xdf)]('Invalid\x20type\x20'+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xfa)]==='map'&&Log[m(0xe6)](m(0xf6)),b['type']===m(0xfd)&&Log[m(0xe6)](m(0xf6));});}catch(d){Log[l(0xdf)](d);}});
1
+ const a102j=a102d;function a102c(){const m=['8025997dukpiY','maka\x20g:kit\x20--type=map','type','notice','3959379QhLfqh','10benUdi','fsi','toString','(((.+)+)+)+$','(blank)','8239535zvVrYA','login','create','115354dYoZnj','kit','maka\x20{generate,\x20g}:{kit}\x20<kit-name>',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','NIE','16spfflu','error','Invalid\x20type\x20','search','leaflet-map','maka\x20g:k\x20city-map\x20--type=leaflet-map','4236800ULvtUW','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','resourceName','289557lWkEzn','withValue','getProjectConfig','3410580CZCCaJ','engines'];a102c=function(){return m;};return a102c();}(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x9a))/0x1*(-parseInt(h(0x92))/0x2)+parseInt(h(0x91))/0x3+-parseInt(h(0x85))/0x4+-parseInt(h(0x97))/0x5+parseInt(h(0x8b))/0x6+parseInt(h(0x8d))/0x7+parseInt(h(0x9f))/0x8*(-parseInt(h(0x88))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xcd1af));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const i=a102d;return a102a[i(0x94)]()[i(0xa2)]('(((.+)+)+)+$')[i(0x94)]()['constructor'](a102a)['search'](i(0x95));});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x84;let f=c[d];return f;},a102d(a,b);}Generator[a102j(0x99)]({'name':a102j(0x9b),'aliases':['k'],'usage':a102j(0x9c),'shortDesc':a102j(0x86),'validOpts':[a102j(0x8f)],'examples':[a102j(0x8e),a102j(0x84)]},async function(a,b){const k=a102j;try{const c=this[k(0x93)][k(0x8a)]();this[k(0x93)][k(0x89)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x87)]),'fileName':paramCase(b[l(0x87)]),'camelCase':camelCase(b['resourceName']),'type':b[l(0x8f)],'engine':c[l(0x8c)]['js'],'noRename':!![]},f=[l(0xa3),l(0x98)];if(f['indexOf'](d[l(0x8f)])<0x0){const g=d['type']?d[l(0x8f)]:l(0x96);Log['error'](l(0xa1)+g+l(0x9d));return;}b[l(0x8f)]==='map'&&Log[l(0x90)](l(0x9e)),b[l(0x8f)]==='login'&&Log['notice'](l(0x9e));});}catch(d){Log[k(0xa0)](d);}});
@@ -1 +1 @@
1
- function a103c(){const u=['imports','className','withHooks','10719540wWWeWY','hook/hook.js','injectAtBeginningOfFile','assign','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','split','import\x20{\x20','Scaffolding\x20for\x20a\x20React\x20Layout.','2263972nWUxPU','checkNpmPackage','withHook','.css','search','fileName','css','getProjectConfig','warn','setTemplate','client','theme','.app-tests.js','startup','resourceName','templates.js','layout','.js','findAppDirectory','withValue','lib','ssr','api','tsx','import\x20\x27./','template/template.css','true','dir','engines','\x20}\x20from\x20\x27','14512Vyjcqw','includes','\x20};\x0a','features','constructor','ramda','1855742EHEgXQ','fsi','1080QIDsGq','rewriteDestinationPathForEngine','create','test','21155OPuMUE','4302pMsuyd','none','relative','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','3364apolzE','react','\x27;\x0a','apply','pathFromApp','toString','graphql','template','362pEUgwx','(((.+)+)+)+$','maka\x20g:layout\x20mobile/iPhone8','injectAtEndOfFile','431214bcybSF'];a103c=function(){return u;};return a103c();}const a103r=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x136;let f=c[d];return f;},a103d(a,b);}(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x14f))/0x1*(parseInt(o(0x157))/0x2)+parseInt(o(0x15b))/0x3+-parseInt(o(0x167))/0x4+-parseInt(o(0x14a))/0x5*(-parseInt(o(0x146))/0x6)+-parseInt(o(0x144))/0x7+parseInt(o(0x13e))/0x8*(parseInt(o(0x14b))/0x9)+-parseInt(o(0x15f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x74c21));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a['toString']()[q(0x16b)](q(0x158))[q(0x154)]()[q(0x142)](a103a)['search'](q(0x158));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a103r(0x148)]({'name':a103r(0x177),'aliases':aliases,'usage':a103r(0x14e),'shortDesc':a103r(0x166),'validOpts':[],'examples':[a103r(0x159),'maka\x20g:l\x20web/safari']},function(a,b){const s=a103r,c='/imports/ui/layouts',d=this[s(0x145)][s(0x179)](),e=this[s(0x145)][s(0x153)]({'pathParts':[c,b['dir'],paramCase(b[s(0x175)]),paramCase(b[s(0x175)])]}),f=this[s(0x145)][s(0x16e)]();this[s(0x145)][s(0x17a)](f,()=>{const t=s;typeof f[t(0x156)][t(0x149)]==='string'&&(f['template'][t(0x149)]=f[t(0x156)][t(0x149)]===t(0x13a)?!![]:![],this['fsi']['setTemplate']('test',f['template']['test']));typeof f['template'][t(0x16d)]==='string'&&(f[t(0x156)][t(0x16d)]=f[t(0x156)][t(0x16d)]===t(0x13a)?!![]:![],this[t(0x145)]['setTemplate'](t(0x16d),f['template']['css']));typeof f[t(0x156)]['js']==='string'&&(f['template']['js']=f[t(0x156)]['js']===t(0x13a)?!![]:![],this[t(0x145)][t(0x170)]('js',f[t(0x156)]['js']));!f[t(0x141)]&&(f[t(0x141)]={});const g=b['_']?b['_'][0x0][t(0x164)](':')[0x1]:![],h=b['_']&&aliases[t(0x13f)](g);h&&!this[t(0x168)](t(0x143))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x145)]['installNpmPackage'](t(0x143),{'cwd':d}));if(h&&!this[t(0x168)]('react')){Log[t(0x16f)](t(0x163));return;}const i={'name':pascalCase(b[t(0x175)]),'myPath':a103e[t(0x14d)](this[t(0x145)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x175)]),'camelCaseName':camelCase(b[t(0x175)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x13c)][t(0x155)],'features':f[t(0x141)],'client':f[t(0x13c)][t(0x171)],'api':f[t(0x13c)][t(0x136)],'ssr':f[t(0x13c)][t(0x17c)],'test':f[t(0x13c)][t(0x149)],'theme':f[t(0x13c)][t(0x172)],'isComponent':![],'isLayout':!![],'withTranslations':f['features']['withTranslations']};f[t(0x141)]?.[t(0x15e)]||b[t(0x169)]?this[t(0x145)][t(0x156)]({'srcPath':t(0x160),'destPath':e+t(0x178),'framework':'react','context':i,'config':f}):this['fsi'][t(0x156)]({'srcPath':'component/component.js','destPath':e+'.js','framework':t(0x150),'context':i,'config':f});f[t(0x13c)][t(0x149)]!==t(0x14c)&&this[t(0x145)][t(0x156)]({'srcPath':'test/test.js','destPath':e+t(0x173),'framework':t(0x150),'context':i,'config':f});f['template'][t(0x16d)]&&(this[t(0x145)]['template']({'srcPath':t(0x139),'destPath':e+t(0x16a),'context':Object[t(0x162)]({},i,{'className':paramCase(b[t(0x175)])}),'config':f}),this['fsi'][t(0x161)]({'filePath':e+'.'+f['engines']['js'],'content':t(0x138)+i[t(0x16c)]+'.'+f['engines'][t(0x16d)]+'\x27;'}));const j=b[t(0x13b)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x16c)]+'/'+i['fileName'];let l;if(f[t(0x13c)]['ssr']==='true'){const m=this[t(0x145)]['pathFromApp']({'pathParts':[t(0x15c),t(0x174),t(0x17b),'templates.js']});l=this[t(0x145)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0x145)][t(0x153)]({'pathParts':[t(0x15c),'startup',t(0x171),t(0x176)]});l=this[t(0x145)][t(0x147)]({'pathParts':[n],'config':f});}f['engines']['client']===t(0x150)?(f[t(0x13c)]['js']===t(0x137)?this[t(0x145)][t(0x161)]({'filePath':l,'content':'import\x20{\x20'+i['className']+t(0x13d)+k+'\x27;\x0a'}):this[t(0x145)][t(0x161)]({'filePath':l,'content':t(0x165)+i[t(0x15d)]+t(0x13d)+k+'.'+f['engines']['js']+t(0x151)}),this['fsi'][t(0x15a)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x15d)]+t(0x140)})):this[t(0x145)][t(0x15a)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x13c)]['js']+t(0x151)});});});
1
+ const a103r=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x233))/0x1*(-parseInt(o(0x202))/0x2)+parseInt(o(0x1f7))/0x3+parseInt(o(0x21a))/0x4*(-parseInt(o(0x209))/0x5)+parseInt(o(0x1f1))/0x6+parseInt(o(0x1fc))/0x7+-parseInt(o(0x1f6))/0x8*(-parseInt(o(0x226))/0x9)+-parseInt(o(0x230))/0xa*(parseInt(o(0x20b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x77a17));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a[q(0x20f)]()[q(0x22e)]('(((.+)+)+)+$')[q(0x20f)]()[q(0x1ee)](a103a)[q(0x22e)](q(0x21b));});a103a();import a103e from'path';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1ed;let f=c[d];return f;},a103d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const u=['pathFromApp','745159eSxlor','client','react','maka\x20g:l\x20web/safari','apply','constructor','.css','template/template.css','2510406NPgpzH','graphql','import\x20\x27','.js','fileName','4384kUZGgv','2406048UpWwmG','/imports/ui/layouts','className','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','getProjectConfig','4220762xgAOAW','component/component.js','assign','\x20};\x0a','tsx','injectAtEndOfFile','2pTPPuw','relative','templates.js','import\x20{\x20','lib','rewriteDestinationPathForEngine','test/test.js','5tieUWq','test','803dGUnMk','startup','hook/hook.js','maka\x20g:layout\x20mobile/iPhone8','toString','template','dir','injectAtBeginningOfFile','features','setTemplate','checkNpmPackage','ramda','engines','true','withTranslations','3382920sfHZrl','(((.+)+)+)+$','api','ssr','withHooks','installNpmPackage','pathFromProject','layout','export\x20{\x20','warn','\x20}\x20from\x20\x27','\x27;\x0a','7983DuxZeQ','theme','css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','string','create','imports','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','search','resourceName','31310xialXa','fsi'];a103c=function(){return u;};return a103c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a103r(0x22b)]({'name':a103r(0x221),'aliases':aliases,'usage':a103r(0x22d),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a103r(0x20e),a103r(0x236)]},function(a,b){const s=a103r,c=s(0x1f8),d=this[s(0x231)]['findAppDirectory'](),e=this[s(0x231)][s(0x232)]({'pathParts':[c,b[s(0x211)],paramCase(b[s(0x22f)]),paramCase(b[s(0x22f)])]}),f=this[s(0x231)][s(0x1fb)]();this['fsi']['withValue'](f,()=>{const t=s;typeof f[t(0x210)][t(0x20a)]==='string'&&(f['template'][t(0x20a)]=f[t(0x210)][t(0x20a)]==='true'?!![]:![],this[t(0x231)][t(0x214)]('test',f[t(0x210)]['test']));typeof f[t(0x210)][t(0x228)]==='string'&&(f[t(0x210)][t(0x228)]=f[t(0x210)][t(0x228)]==='true'?!![]:![],this['fsi'][t(0x214)](t(0x228),f[t(0x210)][t(0x228)]));typeof f['template']['js']===t(0x22a)&&(f['template']['js']=f[t(0x210)]['js']==='true'?!![]:![],this[t(0x231)][t(0x214)]('js',f['template']['js']));!f[t(0x213)]&&(f['features']={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](t(0x216))&&(Log[t(0x223)](t(0x229)),this['fsi'][t(0x21f)](t(0x216),{'cwd':d}));if(h&&!this[t(0x215)](t(0x235))){Log[t(0x223)](t(0x1fa));return;}const i={'name':pascalCase(b[t(0x22f)]),'myPath':a103e[t(0x203)](this[t(0x231)][t(0x220)]({}),e),'cssCaseName':paramCase(b[t(0x22f)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x22f)]),'fileName':paramCase(b[t(0x22f)]),'graphql':f[t(0x217)][t(0x1f2)],'features':f[t(0x213)],'client':f[t(0x217)][t(0x234)],'api':f[t(0x217)][t(0x21c)],'ssr':f['engines'][t(0x21d)],'test':f['engines'][t(0x20a)],'theme':f['engines'][t(0x227)],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][t(0x219)]};f[t(0x213)]?.[t(0x21e)]||b['withHook']?this['fsi'][t(0x210)]({'srcPath':t(0x20d),'destPath':e+'.js','framework':t(0x235),'context':i,'config':f}):this['fsi'][t(0x210)]({'srcPath':t(0x1fd),'destPath':e+t(0x1f4),'framework':t(0x235),'context':i,'config':f});f['engines'][t(0x20a)]!=='none'&&this[t(0x231)][t(0x210)]({'srcPath':t(0x208),'destPath':e+'.app-tests.js','framework':t(0x235),'context':i,'config':f});f['template'][t(0x228)]&&(this[t(0x231)][t(0x210)]({'srcPath':t(0x1f0),'destPath':e+t(0x1ef),'context':Object[t(0x1fe)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x217)]['js'],'content':'import\x20\x27./'+i[t(0x1f5)]+'.'+f[t(0x217)]['css']+'\x27;'}));const j=b[t(0x211)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x1f5)]+'/'+i[t(0x1f5)];let l;if(f[t(0x217)][t(0x21d)]===t(0x218)){const m=this[t(0x231)]['pathFromApp']({'pathParts':[t(0x22c),t(0x20c),t(0x206),t(0x204)]});l=this[t(0x231)][t(0x207)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x232)]({'pathParts':[t(0x22c),t(0x20c),t(0x234),'templates.js']});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0x217)][t(0x234)]===t(0x235)?(f[t(0x217)]['js']===t(0x200)?this[t(0x231)][t(0x212)]({'filePath':l,'content':t(0x205)+i[t(0x1f9)]+t(0x224)+k+t(0x225)}):this[t(0x231)][t(0x212)]({'filePath':l,'content':t(0x205)+i[t(0x1f9)]+t(0x224)+k+'.'+f[t(0x217)]['js']+t(0x225)}),this[t(0x231)][t(0x201)]({'filePath':l,'content':t(0x222)+i[t(0x1f9)]+t(0x1ff)})):this['fsi'][t(0x201)]({'filePath':l,'content':t(0x1f3)+k+'.'+f[t(0x217)]['js']+t(0x225)});});});
@@ -1 +1 @@
1
- const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0xa9))/0x1*(parseInt(f(0xa8))/0x2)+parseInt(f(0xae))/0x3*(parseInt(f(0xa6))/0x4)+parseInt(f(0xac))/0x5+parseInt(f(0xb3))/0x6+parseInt(f(0xaa))/0x7+parseInt(f(0xab))/0x8+parseInt(f(0xa4))/0x9*(-parseInt(f(0xa3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x61401));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0xa7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a['toString']()['search'](h(0xb5))[h(0xb0)]()['constructor'](a104a)[h(0xaf)](h(0xb5));});a104a();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xa3;let f=c[d];return f;},a104d(a,b);}function a104c(){const j=['3033745rOMqqy','maka\x20g:hook\x20cool-hook','840051UkxJUb','search','toString','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka\x20generate:api\x20Trucks','4048272ZJNQva','Maka!','(((.+)+)+)+$','3190scxYsB','49104Swzenk','maka','8AoCglb','apply','2GBRJVu','367520KULyhj','3683974BAfhrB','1108352PjBdgf'];a104c=function(){return j;};return a104c();}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0xa5),'shortDesc':a104i(0xb4),'validOpts':[],'description':'\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','usage':a104i(0xb1),'examples':[a104i(0xb2),a104i(0xad)]},function(){return null;});export default MakaGen;
1
+ function a104c(){const j=['614128bTalkx','search','12qgHKHt','maka\x20generate:api\x20Trucks','6xKhNdH','174710CoIDDq','1308854HRvfMV','9122440UXmpEO','constructor','(((.+)+)+)+$','apply','maka','9rsqKdz','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','176cKRlhe','maka\x20g:hook\x20cool-hook','5735716vLkrxl','47244ktxQVz','toString','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','1087225PHIOSf'];a104c=function(){return j;};return a104c();}const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0xcb))/0x1+parseInt(f(0xc0))/0x2+parseInt(f(0xbe))/0x3*(-parseInt(f(0xcf))/0x4)+-parseInt(f(0xce))/0x5*(-parseInt(f(0xbc))/0x6)+parseInt(f(0xca))/0x7+-parseInt(f(0xc1))/0x8*(parseInt(f(0xc6))/0x9)+parseInt(f(0xbf))/0xa*(parseInt(f(0xc8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xc0694));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0xcc)]()[h(0xd0)]('(((.+)+)+)+$')[h(0xcc)]()[h(0xc2)](a104a)[h(0xd0)](h(0xc3));});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0xc5),'shortDesc':'Maka!','validOpts':[],'description':a104i(0xc7),'usage':a104i(0xcd),'examples':[a104i(0xbd),a104i(0xc9)]},function(){return null;});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xbc;let f=c[d];return f;},a104d(a,b);}export default MakaGen;
@@ -1 +1 @@
1
- const a105m=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=parseInt(k(0xe7))/0x1*(-parseInt(k(0xd1))/0x2)+-parseInt(k(0xea))/0x3*(parseInt(k(0xca))/0x4)+-parseInt(k(0xc8))/0x5+-parseInt(k(0xdb))/0x6*(-parseInt(k(0xd0))/0x7)+parseInt(k(0xcd))/0x8*(-parseInt(k(0xe8))/0x9)+parseInt(k(0xe3))/0xa*(-parseInt(k(0xe5))/0xb)+parseInt(k(0xeb))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x47cb8));function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xc6;let f=c[d];return f;},a105d(a,b);}const a105b=(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;};}()),a105a=a105b(this,function(){const l=a105d;return a105a['toString']()[l(0xde)](l(0xe1))[l(0xd8)]()[l(0xd3)](a105a)[l(0xde)](l(0xe1));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105m(0xda)]({'name':a105m(0xd2),'aliases':['m'],'usage':a105m(0xe9),'checkWhere':!![],'shortDesc':a105m(0xd9),'validOpts':[a105m(0xee)],'examples':['maka\x20g:method\x20todos']},function(a,b){const n=a105m;try{const c=this[n(0xf0)]['getProjectConfig']();this[n(0xf0)][n(0xe0)](c,async()=>{const o=n,d=paramCase(b[o(0xd6)]),f={'name':b[o(0xd6)],'fileName':d,'className':pascalCase(b[o(0xd6)]),'camelCase':camelCase(b[o(0xd6)]),'noRename':!![]};let g='js';c['engines']['js']===o(0xe6)&&(g='ts');const h=this[o(0xf0)][o(0xdc)]({});(!this[o(0xf0)][o(0xe2)]('check')||!this[o(0xf0)][o(0xe2)](o(0xcb))||!this['fsi'][o(0xe2)](o(0xdd)))&&(Log[o(0xc9)](o(0xd7)),this[o(0xf0)][o(0xc6)](o(0xdf),{'cwd':h}));this[o(0xf0)][o(0xef)]({'srcPath':o(0xc7),'destPath':this[o(0xf0)][o(0xdc)]({'pathParts':[o(0xe4),o(0xd5),b[o(0xed)],o(0xd4),b[o(0xee)],d+o(0xcf)+g]}),'context':f,'config':c});const i=b[o(0xee)]?'/'+b[o(0xee)]+'/':'/',j=this[o(0xf0)][o(0xdc)]({'pathParts':[o(0xe4),'startup',b[o(0xed)],o(0xec)+c['engines']['js']]});this[o(0xf0)]['injectAtEndOfFile']({'filePath':j,'content':o(0xcc)+i+d+o(0xce)});});}catch(d){Log['error'](d);}});function a105c(){const p=['ddp-rate-limiter','import\x20\x27./methods','2262864WBqOde','-rpc-method\x27;','-rpc-method.','4942NNgPJr','241006FHJLbR','method','constructor','methods','startup','resourceName','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','toString','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','create','1752CgDrnX','pathFromApp','mdg:validated-method','search','check\x20ddp-rate-limiter\x20mdg:validated-method','withValue','(((.+)+)+)+$','checkMeteorPackage','287030uGxolv','imports','220toknJo','tsx','3VjmjUn','9sJVVCU','maka\x20{generate,\x20g}:{method,\x20m}\x20name','15585MlbWUK','22790424BdXrbJ','index.','appPathPrefix','dir','template','fsi','installMeteorPackage','method/method.js','2288925ZYTARa','warn','104USbToJ'];a105c=function(){return p;};return a105c();}
1
+ const a105m=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=parseInt(k(0x1e4))/0x1*(-parseInt(k(0x204))/0x2)+-parseInt(k(0x1fd))/0x3*(-parseInt(k(0x1f8))/0x4)+-parseInt(k(0x1f3))/0x5+-parseInt(k(0x200))/0x6+-parseInt(k(0x1ff))/0x7+-parseInt(k(0x1f5))/0x8*(-parseInt(k(0x201))/0x9)+parseInt(k(0x1ed))/0xa*(parseInt(k(0x1fb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x35015));const a105b=(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;};}()),a105a=a105b(this,function(){const l=a105d;return a105a['toString']()['search'](l(0x1e9))['toString']()[l(0x205)](a105a)[l(0x202)](l(0x1e9));});a105a();function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a105d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a105c(){const p=['method','pathFromApp','4NKlDnz','mdg:validated-method','fsi','getProjectConfig','dir','(((.+)+)+)+$','ddp-rate-limiter','engines','-rpc-method\x27;','2740TWEQPI','method/method.js','error','methods','create','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','181225dJkXoc','injectAtEndOfFile','48WwSAah','checkMeteorPackage','maka\x20{generate,\x20g}:{method,\x20m}\x20name','28lqJJho','import\x20\x27./methods','imports','17567CZSnxQ','resourceName','182019oXobzb','appPathPrefix','1745338etwByq','557454MUUoux','92772PdYLMx','search','check','164270tKQEUZ','constructor','tsx','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'];a105c=function(){return p;};return a105c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105m(0x1f1)]({'name':a105m(0x1e2),'aliases':['m'],'usage':a105m(0x1f7),'checkWhere':!![],'shortDesc':a105m(0x1f2),'validOpts':[a105m(0x1e8)],'examples':['maka\x20g:method\x20todos']},function(a,b){const n=a105m;try{const c=this[n(0x1e6)][n(0x1e7)]();this[n(0x1e6)]['withValue'](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0x1fc)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[o(0x1eb)]['js']===o(0x206)&&(g='ts');const h=this[o(0x1e6)]['pathFromApp']({});(!this[o(0x1e6)][o(0x1f6)](o(0x203))||!this[o(0x1e6)][o(0x1f6)](o(0x1ea))||!this[o(0x1e6)][o(0x1f6)](o(0x1e5)))&&(Log['warn'](o(0x207)),this[o(0x1e6)]['installMeteorPackage']('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[o(0x1e6)]['template']({'srcPath':o(0x1ee),'destPath':this['fsi'][o(0x1e3)]({'pathParts':[o(0x1fa),'startup',b['appPathPrefix'],o(0x1f0),b[o(0x1e8)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0x1e8)]?'/'+b[o(0x1e8)]+'/':'/',j=this['fsi'][o(0x1e3)]({'pathParts':[o(0x1fa),'startup',b[o(0x1fe)],'index.'+c[o(0x1eb)]['js']]});this[o(0x1e6)][o(0x1f4)]({'filePath':j,'content':o(0x1f9)+i+d+o(0x1ec)});});}catch(d){Log[n(0x1ef)](d);}});
@@ -1 +1 @@
1
- const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0x1f2))/0x1+-parseInt(l(0x1ea))/0x2*(parseInt(l(0x1d5))/0x3)+-parseInt(l(0x1e5))/0x4+-parseInt(l(0x1db))/0x5+-parseInt(l(0x1c9))/0x6*(parseInt(l(0x1ce))/0x7)+parseInt(l(0x1e3))/0x8+-parseInt(l(0x1f4))/0x9*(-parseInt(l(0x1f5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xd4c0c));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x1d3)]()[n(0x1d6)]('(((.+)+)+)+$')[n(0x1d3)]()[n(0x1e4)](a106a)[n(0x1d6)]('(((.+)+)+)+$');});function a106c(){const s=['ssr','forEach','template','relative','dir','2209560GziXWg','constructor','1642504gzUJrb','withValue','.js','package/package.js','/client/','2mpRdtZ','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','client','features','tests/server','fsi','lib','318375HkYPgR','hasOwnProperty','1806714rywqHX','170OEcWMJ','138pRKjFd','component','create','package/','pathFromProject','391839FOzpFS','server','template/template.js','theme','store','toString','resourceName','3762735NTsGeu','search','package','getProjectConfig','engines','apply','917370TVgHcY','package.js','packages'];a106c=function(){return s;};return a106c();}a106a();import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a106d(a,b);}Generator[a106o(0x1cb)]({'name':a106o(0x1d7),'aliases':['p'],'usage':a106o(0x1ec),'shortDesc':a106o(0x1eb),'validOpts':[a106o(0x1e2)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a106o,c=paramCase(b['resourceName']),d=this[p(0x1f0)]['pathFromApp']({'pathParts':[p(0x1dd),b[p(0x1e2)],c]}),e=this[p(0x1f0)]['pathFromAppWithNoReWrite']({'pathParts':[p(0x1dd),b[p(0x1e2)],c,p(0x1dc)]}),f=this[p(0x1f0)][p(0x1d8)]();this['fsi'][p(0x1e6)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a106e[q(0x1e1)](this[q(0x1f0)][q(0x1cd)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x1d4)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x1d9)][q(0x1ed)],'graphql':f[q(0x1d9)]['graphql'],'ssr':f[q(0x1d9)][q(0x1de)],'isComponent':b[q(0x1f3)](q(0x1ca)),'isLayout':b[q(0x1f3)]('layout'),'isStore':b[q(0x1f3)](q(0x1d2)),'features':f[q(0x1ee)],'noRename':!![],'theme':f[q(0x1d9)][q(0x1d1)]};this[q(0x1f0)][q(0x1e0)]({'srcPath':q(0x1e8),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0x1e9)+c+q(0x1e7);this['fsi'][q(0x1e0)]({'srcPath':q(0x1d0),'destPath':h,'context':g,'config':f});const i=[q(0x1f1),q(0x1cf),'tests/client',q(0x1ef)];i[q(0x1df)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi'][r(0x1e0)]({'srcPath':r(0x1cc)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
1
+ const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0x175))/0x1*(-parseInt(l(0x17a))/0x2)+-parseInt(l(0x16d))/0x3*(-parseInt(l(0x183))/0x4)+parseInt(l(0x163))/0x5+parseInt(l(0x161))/0x6*(parseInt(l(0x189))/0x7)+-parseInt(l(0x18d))/0x8+parseInt(l(0x169))/0x9+-parseInt(l(0x18b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xe54bb));function a106c(){const s=['8ljLKNU','(((.+)+)+)+$','apply','pathFromAppWithNoReWrite','engines','constructor','791iFxUfE','maka\x20g:package\x20todos:package','3037910wJvfeW','lib','6281528JXbsaq','38550ajhQCD','resourceName','4545380uAmBmB','pathFromProject','tests/client','features','hasOwnProperty','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','3031128AwtnjR','package/package.js','server','fsi','2383431nbsYME','tests/server','search','theme','component','template','graphql','dir','235nWlcqk','packages','store','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','withValue','13044kMMzNi','package.js','/client/','package/','client','noRename','toString','.js','template/template.js'];a106c=function(){return s;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x180)]()[n(0x16f)](n(0x184))[n(0x180)]()[n(0x188)](a106a)[n(0x16f)](n(0x184));});function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x161;let f=c[d];return f;},a106d(a,b);}a106a();import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'package','aliases':['p'],'usage':a106o(0x168),'shortDesc':a106o(0x178),'validOpts':[a106o(0x174)],'examples':[a106o(0x18a)]},async function(a,b){const p=a106o,c=paramCase(b[p(0x162)]),d=this[p(0x16c)]['pathFromApp']({'pathParts':['packages',b[p(0x174)],c]}),e=this[p(0x16c)][p(0x186)]({'pathParts':[p(0x176),b[p(0x174)],c,p(0x17b)]}),f=this[p(0x16c)]['getProjectConfig']();this[p(0x16c)][p(0x179)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x162)]),'myPath':a106e['relative'](this[q(0x16c)][q(0x164)]({}),d),'cssCaseName':paramCase(b[q(0x162)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x162)]),'fileName':c,'client':f[q(0x187)][q(0x17e)],'graphql':f['engines'][q(0x173)],'ssr':f[q(0x187)]['ssr'],'isComponent':b['hasOwnProperty'](q(0x171)),'isLayout':b['hasOwnProperty']('layout'),'isStore':b[q(0x167)](q(0x177)),'features':f[q(0x166)],'noRename':!![],'theme':f[q(0x187)][q(0x170)]};this['fsi'][q(0x172)]({'srcPath':q(0x16a),'destPath':e,'context':g,'config':f}),g[q(0x17f)]=![];const h=d+q(0x17c)+c+q(0x181);this['fsi'][q(0x172)]({'srcPath':q(0x182),'destPath':h,'context':g,'config':f});const i=[q(0x18c),q(0x16b),q(0x165),q(0x16e)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x181);this[r(0x16c)][r(0x172)]({'srcPath':r(0x17d)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a107q=a107d;(function(a,b){const n=a107d,c=a();while(!![]){try{const d=-parseInt(n(0x8f))/0x1*(parseInt(n(0x84))/0x2)+-parseInt(n(0x7f))/0x3+-parseInt(n(0x94))/0x4*(-parseInt(n(0x9a))/0x5)+-parseInt(n(0x70))/0x6*(parseInt(n(0x7b))/0x7)+-parseInt(n(0x97))/0x8+-parseInt(n(0xbb))/0x9+parseInt(n(0xad))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xd94ad));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a107d;if(c){const e=c[o(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const p=a107d;return a107a[p(0xb5)]()[p(0xb8)](p(0xa3))[p(0xb5)]()[p(0xaf)](a107a)[p(0xb8)](p(0xa3));});a107a();import a107e from'path';import{Generator}from'../generator.js';function a107c(){const t=['\x20}\x20from\x20\x27','features','6227766iHbKug','true','template/template.html','lib','store','template','hasOwnProperty','\x20};\x0a','css','engines','create','error','imports','className','startup','36ssGvOL','page','fileName','rewriteDestinationPathForEngine','import\x20{\x20','pages','theme','includes','hook/hook.js','layouts','withValue','1115737wneCpQ','apply','.app-tests.js','hooks','4153347jkobBx','assign','test','Updating\x20npm\x20packages\x20...','injectAtEndOfFile','2tyYorO','pathFromApp','react','export\x20{\x20','pathFromProject','warn','root','test/test.js','component','/imports/ui/','string','130967BRcpcD','client','templates.js','baseDir','import\x20\x27','100600RLYAUv','ssr','.html','4111720wNZAVY','/imports/ui/pages','dir','180petYaK','layout','fsi','Valid\x20options\x20are:\x20','installNpmPackage','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','\x27;\x0a','setTemplate','component/component.js','(((.+)+)+)+$','checkNpmPackage','resourceName','maka\x20g:page\x20todos/todos-item','withHook','html','injectAtBeginningOfFile','api','withTranslations','.js','36623300joWlfJ','none','constructor','import\x20\x27./','.css','template/template.css','tsx','ramda','toString','components','vanilla','search'];a107c=function(){return t;};return a107c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x65;let f=c[d];return f;},a107d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107q(0x6b)]({'name':a107q(0x71),'aliases':aliases,'usage':a107q(0x9f),'shortDesc':'Generate\x20a\x20page.','validOpts':[a107q(0x92),a107q(0xa7)],'examples':[a107q(0xa6)]},function(a,b){const r=a107q,c=[r(0x7e),r(0xb6),r(0x75),r(0x79)];if(b[r(0x92)]&&!c[r(0x77)](b['baseDir'])){Log[r(0x6c)]('Invalid\x20directory\x20option\x20\x22'+b[r(0x92)]+'\x22'),Log[r(0x6c)](r(0x9d)+c['join'](',\x20'));throw new UsageError();}const d=b[r(0x92)]?r(0x8d)+b[r(0x92)]:r(0x98),e=this[r(0x9c)][r(0x85)](b),f=this[r(0x9c)]['pathFromApp']({'pathParts':[d,b[r(0x99)],paramCase(b[r(0xa5)]),paramCase(b['resourceName'])]}),g=this['fsi']['getProjectConfig']();this[r(0x9c)][r(0x7a)](g,()=>{const s=r;typeof g[s(0x66)]['html']==='string'&&(g[s(0x66)][s(0xa8)]=g[s(0x66)][s(0xa8)]===s(0xbc)?!![]:![],this[s(0x9c)][s(0xa1)]('html',g[s(0x66)]['html']));typeof g[s(0x66)][s(0x81)]===s(0x8e)&&(g['template'][s(0x81)]=g[s(0x66)][s(0x81)]===s(0xbc)?!![]:![],this[s(0x9c)]['setTemplate'](s(0x81),g['template']['test']));typeof g[s(0x66)][s(0x69)]===s(0x8e)&&(g[s(0x66)][s(0x69)]=g['template'][s(0x69)]==='true'?!![]:![],this[s(0x9c)]['setTemplate']('css',g[s(0x66)][s(0x69)]));typeof g[s(0x66)]['js']===s(0x8e)&&(g[s(0x66)]['js']=g[s(0x66)]['js']===s(0xbc)?!![]:![],this['fsi']['setTemplate']('js',g['template']['js']));!g[s(0xba)]&&(g[s(0xba)]={});!b[s(0x8a)]&&!this[s(0x9c)][s(0xa4)](s(0xb4))&&(Log[s(0x89)](s(0x82)),this[s(0x9c)][s(0x9e)](s(0xb4),{'cwd':e}));const h={'name':pascalCase(b[s(0xa5)]),'myPath':a107e['relative'](this[s(0x9c)][s(0x88)]({}),f),'cssCaseName':paramCase(b[s(0xa5)]),'className':pascalCase(b[s(0xa5)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[s(0xa5)]),'graphql':g[s(0x6a)]['graphql'],'features':g[s(0xba)],'client':g[s(0x6a)][s(0x90)],'api':g[s(0x6a)][s(0xaa)],'ssr':g[s(0x6a)]['ssr'],'isStore':b[s(0x67)](s(0x65)),'isComponent':b[s(0x67)](s(0x8c)),'isLayout':b['hasOwnProperty'](s(0x9b)),'withTranslations':g[s(0xba)][s(0xab)],'test':g[s(0x6a)][s(0x81)],'theme':g[s(0x6a)][s(0x76)]};g[s(0x66)][s(0xa8)]&&this[s(0x9c)][s(0x66)]({'srcPath':s(0xbd),'destPath':f+s(0x96),'context':h,'config':g});g['features']?.['withHooks']||b[s(0xa7)]?this[s(0x9c)]['template']({'srcPath':s(0x78),'destPath':f+s(0xac),'framework':s(0x86),'context':h,'config':g}):this['fsi'][s(0x66)]({'srcPath':s(0xa2),'destPath':f+s(0xac),'framework':s(0x86),'context':h,'config':g});g['engines'][s(0x81)]!==s(0xae)&&this[s(0x9c)][s(0x66)]({'srcPath':s(0x8b),'destPath':f+s(0x7d),'framework':s(0x86),'context':h,'config':g});g[s(0x66)][s(0x69)]&&this['fsi'][s(0x66)]({'srcPath':s(0xb2),'destPath':f+s(0xb1),'context':Object[s(0x80)]({},h,{'className':paramCase(b[s(0xa5)])}),'config':g});g[s(0x6a)][s(0x90)]!==s(0x86)&&g[s(0x6a)][s(0x90)]!==s(0xb7)?(g[s(0x66)][s(0x69)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x6a)]['js'],'content':s(0xb0)+h[s(0x72)]+'.'+g['engines'][s(0xa8)]+'\x27;\x0a'+'import\x20\x27./'+h['fileName']+'.'+g[s(0x6a)][s(0x69)]+'\x27;'}),!g[s(0x66)][s(0x69)]&&this[s(0x9c)][s(0xa9)]({'filePath':f+'.'+g[s(0x6a)]['js'],'content':s(0xb0)+h['fileName']+'.'+g[s(0x6a)][s(0xa8)]+'\x27;'})):g['template'][s(0x69)]&&this[s(0x9c)][s(0xa9)]({'filePath':f+'.'+g[s(0x6a)]['js'],'content':s(0xb0)+h[s(0x72)]+'.'+g['engines']['css']+'\x27;'});const i=b[s(0x99)]?'/'+b[s(0x99)]+'/':'/',j=''+d+i+h['fileName']+'/'+h['fileName'];let k;if(g[s(0x6a)][s(0x95)]===s(0xbc)){const l=this[s(0x9c)][s(0x85)]({'pathParts':['imports',s(0x6f),s(0xbe),s(0x91)]});k=this['fsi'][s(0x73)]({'pathParts':[l],'config':g});}else{const m=this[s(0x9c)][s(0x85)]({'pathParts':[s(0x6d),s(0x6f),'client',s(0x91)]});k=this['fsi'][s(0x73)]({'pathParts':[m],'config':g});}g[s(0x6a)][s(0x90)]==='react'?(g[s(0x6a)]['js']===s(0xb3)?this['fsi'][s(0xa9)]({'filePath':k,'content':'import\x20{\x20'+h[s(0x6e)]+s(0xb9)+j+'\x27;\x0a'}):this['fsi']['injectAtBeginningOfFile']({'filePath':k,'content':s(0x74)+h[s(0x6e)]+s(0xb9)+j+'.'+g[s(0x6a)]['js']+s(0xa0)}),this[s(0x9c)][s(0x83)]({'filePath':k,'content':s(0x87)+h[s(0x6e)]+s(0x68)})):this['fsi'][s(0x83)]({'filePath':k,'content':s(0x93)+j+'.'+g[s(0x6a)]['js']+'\x27;\x0a'});});});
1
+ const a107q=a107d;(function(a,b){const n=a107d,c=a();while(!![]){try{const d=parseInt(n(0x18e))/0x1+parseInt(n(0x1d2))/0x2*(parseInt(n(0x1d9))/0x3)+-parseInt(n(0x18a))/0x4*(parseInt(n(0x19f))/0x5)+parseInt(n(0x18f))/0x6*(-parseInt(n(0x1b2))/0x7)+parseInt(n(0x1c7))/0x8+-parseInt(n(0x1c0))/0x9+parseInt(n(0x1a7))/0xa*(-parseInt(n(0x1b8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x54617));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a107d;if(c){const e=c[o(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const p=a107d;return a107a[p(0x1b9)]()[p(0x1cb)](p(0x1bd))[p(0x1b9)]()[p(0x1a2)](a107a)['search']('(((.+)+)+)+$');});a107a();import a107e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x18a;let f=c[d];return f;},a107d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107q(0x1dc)]({'name':a107q(0x1be),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a107q(0x1c1),'validOpts':[a107q(0x1b4),a107q(0x19d)],'examples':[a107q(0x19a)]},function(a,b){const r=a107q,c=[r(0x1d8),'components',r(0x1ce),r(0x1b0)];if(b[r(0x1b4)]&&!c[r(0x1d3)](b[r(0x1b4)])){Log[r(0x1ca)](r(0x1d7)+b[r(0x1b4)]+'\x22'),Log[r(0x1ca)](r(0x1d4)+c[r(0x1db)](',\x20'));throw new UsageError();}const d=b[r(0x1b4)]?r(0x1af)+b['baseDir']:'/imports/ui/pages',e=this[r(0x1a0)]['pathFromApp'](b),f=this[r(0x1a0)][r(0x19e)]({'pathParts':[d,b[r(0x19c)],paramCase(b[r(0x1d0)]),paramCase(b[r(0x1d0)])]}),g=this['fsi'][r(0x18c)]();this[r(0x1a0)][r(0x1ae)](g,()=>{const s=r;typeof g[s(0x1ab)][s(0x190)]===s(0x1ac)&&(g['template']['html']=g[s(0x1ab)]['html']===s(0x1da)?!![]:![],this[s(0x1a0)]['setTemplate']('html',g[s(0x1ab)][s(0x190)]));typeof g['template'][s(0x1c9)]===s(0x1ac)&&(g[s(0x1ab)][s(0x1c9)]=g[s(0x1ab)][s(0x1c9)]===s(0x1da)?!![]:![],this[s(0x1a0)][s(0x1b1)](s(0x1c9),g[s(0x1ab)][s(0x1c9)]));typeof g[s(0x1ab)][s(0x1c3)]==='string'&&(g[s(0x1ab)][s(0x1c3)]=g[s(0x1ab)]['css']==='true'?!![]:![],this[s(0x1a0)]['setTemplate']('css',g['template'][s(0x1c3)]));typeof g[s(0x1ab)]['js']===s(0x1ac)&&(g[s(0x1ab)]['js']=g[s(0x1ab)]['js']===s(0x1da)?!![]:![],this['fsi'][s(0x1b1)]('js',g['template']['js']));!g['features']&&(g[s(0x1bf)]={});!b[s(0x1a1)]&&!this[s(0x1a0)]['checkNpmPackage'](s(0x1b6))&&(Log[s(0x1d6)](s(0x191)),this['fsi'][s(0x1a8)](s(0x1b6),{'cwd':e}));const h={'name':pascalCase(b[s(0x1d0)]),'myPath':a107e['relative'](this[s(0x1a0)][s(0x198)]({}),f),'cssCaseName':paramCase(b[s(0x1d0)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x1d0)]),'fileName':paramCase(b[s(0x1d0)]),'graphql':g[s(0x1a5)][s(0x1d5)],'features':g[s(0x1bf)],'client':g[s(0x1a5)][s(0x1b5)],'api':g[s(0x1a5)][s(0x196)],'ssr':g[s(0x1a5)][s(0x192)],'isStore':b[s(0x199)](s(0x1c6)),'isComponent':b[s(0x199)]('component'),'isLayout':b[s(0x199)](s(0x1c8)),'withTranslations':g[s(0x1bf)]['withTranslations'],'test':g[s(0x1a5)][s(0x1c9)],'theme':g[s(0x1a5)][s(0x1a9)]};g[s(0x1ab)][s(0x190)]&&this['fsi'][s(0x1ab)]({'srcPath':s(0x1d1),'destPath':f+s(0x1cd),'context':h,'config':g});g[s(0x1bf)]?.['withHooks']||b['withHook']?this['fsi']['template']({'srcPath':s(0x1c5),'destPath':f+s(0x1cf),'framework':s(0x1ba),'context':h,'config':g}):this[s(0x1a0)][s(0x1ab)]({'srcPath':'component/component.js','destPath':f+s(0x1cf),'framework':'react','context':h,'config':g});g[s(0x1a5)][s(0x1c9)]!=='none'&&this['fsi'][s(0x1ab)]({'srcPath':s(0x1a3),'destPath':f+'.app-tests.js','framework':s(0x1ba),'context':h,'config':g});g[s(0x1ab)][s(0x1c3)]&&this[s(0x1a0)][s(0x1ab)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0x1a6)]({},h,{'className':paramCase(b[s(0x1d0)])}),'config':g});g[s(0x1a5)][s(0x1b5)]!==s(0x1ba)&&g[s(0x1a5)][s(0x1b5)]!==s(0x1aa)?(g[s(0x1ab)][s(0x1c3)]&&this['fsi'][s(0x193)]({'filePath':f+'.'+g[s(0x1a5)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+g[s(0x1a5)][s(0x190)]+'\x27;\x0a'+s(0x1a4)+h[s(0x18b)]+'.'+g['engines'][s(0x1c3)]+'\x27;'}),!g[s(0x1ab)][s(0x1c3)]&&this[s(0x1a0)][s(0x193)]({'filePath':f+'.'+g[s(0x1a5)]['js'],'content':s(0x1a4)+h[s(0x18b)]+'.'+g[s(0x1a5)][s(0x190)]+'\x27;'})):g[s(0x1ab)][s(0x1c3)]&&this[s(0x1a0)][s(0x193)]({'filePath':f+'.'+g[s(0x1a5)]['js'],'content':s(0x1a4)+h[s(0x18b)]+'.'+g['engines']['css']+'\x27;'});const i=b[s(0x19c)]?'/'+b[s(0x19c)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[s(0x18b)];let k;if(g[s(0x1a5)][s(0x192)]==='true'){const l=this[s(0x1a0)][s(0x19e)]({'pathParts':[s(0x1cc),s(0x1b3),s(0x195),s(0x194)]});k=this[s(0x1a0)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x1a0)][s(0x19e)]({'pathParts':['imports',s(0x1b3),s(0x1b5),s(0x194)]});k=this[s(0x1a0)][s(0x1bc)]({'pathParts':[m],'config':g});}g[s(0x1a5)][s(0x1b5)]==='react'?(g['engines']['js']===s(0x18d)?this[s(0x1a0)][s(0x193)]({'filePath':k,'content':s(0x1c2)+h[s(0x19b)]+'\x20}\x20from\x20\x27'+j+s(0x1c4)}):this[s(0x1a0)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x1c2)+h[s(0x19b)]+s(0x1ad)+j+'.'+g[s(0x1a5)]['js']+s(0x1c4)}),this['fsi'][s(0x1bb)]({'filePath':k,'content':s(0x1dd)+h[s(0x19b)]+s(0x1b7)})):this[s(0x1a0)][s(0x1bb)]({'filePath':k,'content':'import\x20\x27'+j+'.'+g[s(0x1a5)]['js']+s(0x1c4)});});});function a107c(){const t=['css','\x27;\x0a','hook/hook.js','store','5121944TiSOML','layout','test','error','search','imports','.html','pages','.js','resourceName','template/template.html','2JWAfeJ','includes','Valid\x20options\x20are:\x20','graphql','warn','Invalid\x20directory\x20option\x20\x22','hooks','1839783FvZRkS','true','join','create','export\x20{\x20','4dtGLCV','fileName','getProjectConfig','tsx','203834rApfsq','6YIJzhZ','html','Updating\x20npm\x20packages\x20...','ssr','injectAtBeginningOfFile','templates.js','lib','api','apply','pathFromProject','hasOwnProperty','maka\x20g:page\x20todos/todos-item','className','dir','withHook','pathFromApp','309040JOOxUz','fsi','root','constructor','test/test.js','import\x20\x27./','engines','assign','320HZjzFN','installNpmPackage','theme','vanilla','template','string','\x20}\x20from\x20\x27','withValue','/imports/ui/','layouts','setTemplate','2210159rHOkOH','startup','baseDir','client','ramda','\x20};\x0a','91157rvpYos','toString','react','injectAtEndOfFile','rewriteDestinationPathForEngine','(((.+)+)+)+$','page','features','4220874jtftEP','Generate\x20a\x20page.','import\x20{\x20'];a107c=function(){return t;};return a107c();}
@@ -1 +1 @@
1
- const a108k=a108d;function a108c(){const n=['search','149152TqsPmg','2188944VZQJIz','114530oTGcLj','4IMhCsw','resourceName','fsi','10petksk','tsx','engines','toString','14TnAZCq','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','533772Nhqstg','publish/publish.','injectAtEndOfFile','(((.+)+)+)+$','server/publish.','publish','apply','14401KClgtE','2007670IxymYl','create','341883NnlyWX'];a108c=function(){return n;};return a108c();}(function(a,b){const h=a108d,c=a();while(!![]){try{const d=-parseInt(h(0x192))/0x1*(parseInt(h(0x185))/0x2)+-parseInt(h(0x195))/0x3*(parseInt(h(0x182))/0x4)+parseInt(h(0x199))/0x5+-parseInt(h(0x18b))/0x6*(parseInt(h(0x189))/0x7)+parseInt(h(0x197))/0x8+parseInt(h(0x198))/0x9+parseInt(h(0x193))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x1db2b));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0x188)]()[j(0x196)]('(((.+)+)+)+$')[j(0x188)]()['constructor'](a108a)[j(0x196)](j(0x18e));});a108a();import{paramCase}from'change-case';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x182;let f=c[d];return f;},a108d(a,b);}import{Generator}from'../generator.js';Generator[a108k(0x194)]({'name':a108k(0x190),'aliases':['p'],'usage':a108k(0x18a),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a108k,c=this[l(0x184)]['getProjectConfig']();this[l(0x184)]['withValue'](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x183)]),'noRename':!![]};let e='js';c['engines']['js']===m(0x186)&&(e='ts');const f=this[m(0x184)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x18f)+c[m(0x187)]['js']]}),g=this[m(0x184)]['templateContent']({'srcPath':m(0x18c)+e,'context':d,'config':c});this['fsi'][m(0x18d)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0x98))/0x1*(-parseInt(h(0x93))/0x2)+-parseInt(h(0x87))/0x3+-parseInt(h(0x8b))/0x4*(-parseInt(h(0x8f))/0x5)+-parseInt(h(0x97))/0x6*(parseInt(h(0x91))/0x7)+parseInt(h(0x95))/0x8+-parseInt(h(0x8e))/0x9+-parseInt(h(0x8d))/0xa*(-parseInt(h(0x84))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xaa365));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a['toString']()['search'](j(0x92))['toString']()[j(0x9a)](a108a)['search']('(((.+)+)+)+$');});a108a();function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x7f;let f=c[d];return f;},a108d(a,b);}import{paramCase}from'change-case';import{Generator}from'../generator.js';function a108c(){const n=['constructor','resourceName','apply','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','injectAtEndOfFile','engines','1004311iKoLiQ','fsi','templateContent','1060692etlesP','publish/publish.','getProjectConfig','create','4RsfShM','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','220wbBBGx','10291464uqvunU','758815Armrzj','withValue','7cvQcQF','(((.+)+)+)+$','52lMyNQd','tsx','9640360vYcxay','publish','4643874bfyGsW','15277YcsBGU','server/publish.'];a108c=function(){return n;};return a108c();}Generator[a108k(0x8a)]({'name':a108k(0x96),'aliases':['p'],'usage':a108k(0x81),'shortDesc':a108k(0x8c),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a108k,c=this[l(0x85)][l(0x89)]();this[l(0x85)][l(0x90)](c,async()=>{const m=l,d={'name':b[m(0x7f)],'collection':paramCase(b[m(0x7f)]),'noRename':!![]};let e='js';c[m(0x83)]['js']===m(0x94)&&(e='ts');const f=this[m(0x85)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x99)+c[m(0x83)]['js']]}),g=this[m(0x85)][m(0x86)]({'srcPath':m(0x88)+e,'context':d,'config':c});this[m(0x85)][m(0x82)]({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +1 @@
1
- const a109A=a109d;function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a109d(a,b);}(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0x1af))/0x1+parseInt(x(0x1ec))/0x2+parseInt(x(0x1b0))/0x3+-parseInt(x(0x1b5))/0x4*(parseInt(x(0x1ed))/0x5)+-parseInt(x(0x1df))/0x6+-parseInt(x(0x1eb))/0x7*(-parseInt(x(0x1cd))/0x8)+-parseInt(x(0x1b3))/0x9*(parseInt(x(0x1b9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xa3857));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x1d3)]()[z(0x1a8)]('(((.+)+)+)+$')['toString']()[z(0x1b8)](a109a)[z(0x1a8)](z(0x1d6));});a109a();import a109e from'path';import{Generator}from'../generator.js';function a109c(){const J=['includes','filter','1255126CZVawv','3718095rcLWgd','apply','create','9UxONuL','Valid\x20options\x20are:\x20','4iSTPfO','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','rewriteDestinationPathForEngine','constructor','25442110HBikLt','/imports/ui/','cwd','injectAtEndOfFile','templateName','client','const\x20privateRoutes\x20=\x20(<>','root','MasterLayout','baseDir','react','<Router','layout','dir','layouts','hooks','invoke','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','maka\x20g:route\x20todosIndex\x20todos','\x0a\x09\x09','72cIcbbd','pathFromApp','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','map','fsi','imports','toString','route','newForm','(((.+)+)+)+$','const\x20publicRoutes\x20=\x20(<>','injectIntoFile','ssr','length','engines','true','components','private','6290832fajytl','routes.js','route/route.js','config','findGenerator','lib','templateContent','maka\x20g:route\x20pages/lists/listIndex\x20lists','indexOf','only','features','withValue','859537xmtpYj','2267726BSJUtQ','2355035uaKuwC','readFileLines','maka\x20g:route\x20pages/about','withHook','PrivateLayout','warn','search','<Route','join','error','startup'];a109c=function(){return J;};return a109c();}import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0x1b2)]({'name':a109A(0x1d4),'aliases':aliases,'validOpts':[a109A(0x1de),'layout',a109A(0x1e8),a109A(0x1bb),a109A(0x1e2),a109A(0x1c0),a109A(0x1a5),'url',a109A(0x1c2)],'usage':a109A(0x1ca),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a109A(0x1cb),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a109A(0x1b6),a109A(0x1e6),a109A(0x1a4)]},function(a,b){const B=a109A;try{const c=[B(0x1c8),B(0x1dd),'pages',B(0x1c7)];if(b[B(0x1c2)]&&!c['includes'](b[B(0x1c2)])){Log[B(0x1ab)]('Invalid\x20directory\x20option\x20\x22'+b[B(0x1c2)]+'\x22'),Log[B(0x1ab)](B(0x1b4)+c[B(0x1aa)](',\x20'));throw new UsageError();}const d=this[B(0x1d1)]['getProjectConfig']();this[B(0x1d1)][B(0x1ea)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(a[0x0]),h='/'+g;a['length']>0x1&&(h='/'+a[C(0x1ae)](function(n){return n!=='/';})['join']('/')['toLowerCase']());g=camelCase(g);b[C(0x1c5)]&&(b[C(0x1c5)]=camelCase(b[C(0x1c5)]));const i=b['baseDir']?C(0x1ba)+b[C(0x1c2)]:'/imports/ui/pages',j=a109e[C(0x1aa)](i,b[C(0x1c6)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x1c5)]||C(0x1c1),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x1db)][C(0x1be)],'newForm':![],'withTranslations':d[C(0x1e9)]['withTranslations']};f&&(k['layout']=C(0x1a6));if(!b[C(0x1c0)]){const n=a109f[C(0x1e3)]('page');n&&await n[C(0x1c9)](a,b);}let l,m;if(d[C(0x1db)][C(0x1be)]===C(0x1c3)){if(d['engines'][C(0x1d9)]===C(0x1dc)){const r=this['fsi'][C(0x1ce)]({'pathParts':[C(0x1d2),'startup',C(0x1e4),C(0x1e0)]});l=this[C(0x1d1)]['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this[C(0x1d1)]['pathFromApp']({'pathParts':['imports',C(0x1ac),C(0x1be),C(0x1e0)]});l=this[C(0x1d1)][C(0x1b7)]({'pathParts':[s],'config':d});}const o=this[C(0x1d1)][C(0x1ee)](l)[C(0x1d0)]((t,u)=>{const D=C;return t[D(0x1ad)](D(0x1cf))?u+0x1:null;})['filter'](t=>t!==null);let p=this[C(0x1d1)][C(0x1ee)](l)[C(0x1d0)]((t,u)=>{const E=C;return t['includes'](E(0x1d7))?u+0x1:null;})[C(0x1ae)](t=>t!==null),q=this[C(0x1d1)][C(0x1ee)](l)[C(0x1d0)]((t,u)=>{const F=C;return t[F(0x1ad)]('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x1ae)](t=>t!==null);p[C(0x1da)]>0x0&&q[C(0x1da)]>0x0&&(k[C(0x1d5)]=!![]);m=this[C(0x1d1)][C(0x1e5)]({'srcPath':C(0x1e1),'framework':C(0x1c3),'context':k,'config':d});if(p[C(0x1da)]>0x0||q[C(0x1da)]>0x0){this['fsi']['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x1da)]>0x0)q=this['fsi']['readFileLines'](l)[C(0x1d0)]((t,u)=>{const G=C;return t[G(0x1ad)](G(0x1bf))?u+0x1:null;})[C(0x1ae)](t=>t!==null),this[C(0x1d1)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0x1bd)]+'}','lineNumber':q[0x0]});else p[C(0x1da)]>0x0?(p=this[C(0x1d1)][C(0x1ee)](l)[C(0x1d0)]((t,u)=>{const H=C;return t[H(0x1ad)]('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x1ae)](t=>t!==null),this[C(0x1d1)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0x1bd)]+'}','lineNumber':p[0x0]})):Log[C(0x1a7)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const t=this[C(0x1d1)]['readFileLines'](l)[C(0x1d0)](w=>{const I=C;return w[I(0x1ad)]('\x22*\x22');}),u=t[C(0x1e7)](!![])>-0x1,v=u?C(0x1a9):'</Router>';this[C(0x1d1)][C(0x1d8)]({'filePath':l,'content':'\x0a\x09\x09'+m+C(0x1cc),'begin':C(0x1c4),'end':v});}}else{if(d[C(0x1db)]['client']==='vanilla'){const w=this[C(0x1d1)][C(0x1ce)]({'pathParts':[C(0x1d2),C(0x1ac),C(0x1be),C(0x1e0)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[w],'config':d}),m=this[C(0x1d1)][C(0x1e5)]({'srcPath':'route/route.js','context':k}),this[C(0x1d1)][C(0x1bc)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
1
+ const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0xae))/0x1+parseInt(x(0xc8))/0x2*(parseInt(x(0xe1))/0x3)+-parseInt(x(0xe7))/0x4+-parseInt(x(0xc5))/0x5+parseInt(x(0xcb))/0x6+parseInt(x(0xe9))/0x7*(parseInt(x(0xfc))/0x8)+-parseInt(x(0xe5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x1f247));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a['toString']()[z(0xde)]('(((.+)+)+)+$')[z(0xd7)]()[z(0xb6)](a109a)['search'](z(0xc3));});a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xae;let f=c[d];return f;},a109d(a,b);}function a109c(){const J=['/imports/ui/','hooks','features','invoke','config','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','engines','MasterLayout','(((.+)+)+)+$','ssr','66840RFWsFF','injectIntoFile','Valid\x20options\x20are:\x20','40430mbSsnn','route','dir','1153542BcoFyE','templateContent','maka\x20g:route\x20todosIndex\x20todos','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','rewriteDestinationPathForEngine','withHook','/imports/ui/pages','pages','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','lib','maka\x20g:route\x20pages/lists/listIndex\x20lists','PrivateLayout','toString','getProjectConfig','const\x20privateRoutes\x20=\x20(<>','routes.js','filter','fsi','withValue','search','imports','map','6pxVPOT','newForm','private','startup','1816137ToTEwR','apply','536080ECmQGG','page','97762AlCbOH','true','route/route.js','create','const\x20publicRoutes\x20=\x20(<>','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','templateName','indexOf','\x0a\x09\x09','includes','components','url','\x22*\x22','Invalid\x20directory\x20option\x20\x22','withTranslations','react','root','only','join','24Bfkhof','injectAfterLineNumber','maka\x20g:route\x20pages/about','length','injectAtEndOfFile','baseDir','202155YMjbbT','cwd','</Router>','error','client','warn','Scaffolding\x20for\x20a\x20Route.','readFileLines','constructor','pathFromApp','<Route','layout','toLowerCase'];a109c=function(){return J;};return a109c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0xec)]({'name':a109A(0xc9),'aliases':aliases,'validOpts':[a109A(0xe3),a109A(0xb9),a109A(0xfa),a109A(0xaf),a109A(0xbf),a109A(0xf9),a109A(0xd0),a109A(0xf4),a109A(0x101)],'usage':a109A(0xee),'shortDesc':a109A(0xb4),'examples':[a109A(0xcd),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a109A(0xd3),a109A(0xd5),a109A(0xfe)]},function(a,b){const B=a109A;try{const c=[B(0xbc),B(0xf3),B(0xd2),'layouts'];if(b[B(0x101)]&&!c[B(0xf2)](b['baseDir'])){Log[B(0xb1)](B(0xf6)+b[B(0x101)]+'\x22'),Log[B(0xb1)](B(0xc7)+c[B(0xfb)](',\x20'));throw new UsageError();}const d=this[B(0xdc)][B(0xd8)]();this[B(0xdc)][B(0xdd)](d,async()=>{const C=B,f=b[C(0xe3)]??![];let g=paramCase(a[0x0]),h='/'+g;a[C(0xff)]>0x1&&(h='/'+a[C(0xdb)](function(n){return n!=='/';})[C(0xfb)]('/')[C(0xba)]());g=camelCase(g);b[C(0xb9)]&&(b[C(0xb9)]=camelCase(b[C(0xb9)]));const i=b['baseDir']?C(0xbb)+b[C(0x101)]:C(0xd1),j=a109e[C(0xfb)](i,b[C(0xca)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||C(0xc2),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0xc1)][C(0xb2)],'newForm':![],'withTranslations':d[C(0xbd)][C(0xf7)]};f&&(k[C(0xb9)]=C(0xd6));if(!b[C(0xf9)]){const n=a109f['findGenerator'](C(0xe8));n&&await n[C(0xbe)](a,b);}let l,m;if(d[C(0xc1)][C(0xb2)]==='react'){if(d['engines'][C(0xc4)]===C(0xea)){const r=this[C(0xdc)][C(0xb7)]({'pathParts':[C(0xdf),'startup',C(0xd4),C(0xda)]});l=this[C(0xdc)][C(0xcf)]({'pathParts':[r],'config':d});}else{const s=this['fsi'][C(0xb7)]({'pathParts':[C(0xdf),'startup','client','routes.js']});l=this[C(0xdc)][C(0xcf)]({'pathParts':[s],'config':d});}const o=this[C(0xdc)][C(0xb5)](l)[C(0xe0)]((t,u)=>{const D=C;return t[D(0xf2)](D(0xc0))?u+0x1:null;})[C(0xdb)](t=>t!==null);let p=this[C(0xdc)][C(0xb5)](l)[C(0xe0)]((t,u)=>{const E=C;return t[E(0xf2)](E(0xed))?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0xdc)]['readFileLines'](l)[C(0xe0)]((t,u)=>{const F=C;return t[F(0xf2)](F(0xd9))?u+0x1:null;})[C(0xdb)](t=>t!==null);p[C(0xff)]>0x0&&q[C(0xff)]>0x0&&(k[C(0xe2)]=!![]);m=this['fsi'][C(0xcc)]({'srcPath':C(0xeb),'framework':C(0xf8),'context':k,'config':d});if(p[C(0xff)]>0x0||q['length']>0x0){this[C(0xdc)][C(0xfd)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[C(0xdc)][C(0xb5)](l)[C(0xe0)]((t,u)=>{const G=C;return t[G(0xf2)](G(0xd9))?u+0x1:null;})[C(0xdb)](t=>t!==null),this[C(0xdc)][C(0xfd)]({'filePath':l,'content':'\x09{'+k[C(0xef)]+'}','lineNumber':q[0x0]});else p[C(0xff)]>0x0?(p=this[C(0xdc)][C(0xb5)](l)[C(0xe0)]((t,u)=>{const H=C;return t['includes'](H(0xed))?u+0x1:null;})[C(0xdb)](t=>t!==null),this[C(0xdc)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0xef)]+'}','lineNumber':p[0x0]})):Log[C(0xb3)](C(0xce)+l);}else{const t=this[C(0xdc)][C(0xb5)](l)[C(0xe0)](w=>{const I=C;return w[I(0xf2)](I(0xf5));}),u=t[C(0xf0)](!![])>-0x1,v=u?C(0xb8):C(0xb0);this[C(0xdc)][C(0xc6)]({'filePath':l,'content':'\x0a\x09\x09'+m+C(0xf1),'begin':'<Router','end':v});}}else{if(d[C(0xc1)][C(0xb2)]==='vanilla'){const w=this[C(0xdc)]['pathFromApp']({'pathParts':[C(0xdf),C(0xe4),'client',C(0xda)]});l=this[C(0xdc)][C(0xcf)]({'pathParts':[w],'config':d}),m=this['fsi'][C(0xcc)]({'srcPath':C(0xeb),'context':k}),this[C(0xdc)][C(0x100)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});