@maka/maka-cli 4.13.20 → 5.0.0-beta.1

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 (178) hide show
  1. package/bundle/obf/src/command.js +1 -1
  2. package/bundle/obf/src/commands/_index.js +1 -1
  3. package/bundle/obf/src/commands/ai.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/cecr.sub.cmd.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/decr.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/build/_index.js +1 -1
  22. package/bundle/obf/src/commands/build/build.js +1 -1
  23. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/create.js +1 -1
  25. package/bundle/obf/src/commands/debug.js +1 -1
  26. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  27. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  28. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/_index.js +1 -1
  31. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/play.command.js +1 -1
  33. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/generate.js +1 -1
  71. package/bundle/obf/src/commands/get/_index.js +1 -1
  72. package/bundle/obf/src/commands/get/get.command.js +1 -1
  73. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/help.js +1 -1
  77. package/bundle/obf/src/commands/install.js +1 -1
  78. package/bundle/obf/src/commands/jsdoc.js +1 -1
  79. package/bundle/obf/src/commands/lint.js +1 -1
  80. package/bundle/obf/src/commands/login.js +1 -1
  81. package/bundle/obf/src/commands/logout.js +1 -1
  82. package/bundle/obf/src/commands/logs.js +1 -1
  83. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  84. package/bundle/obf/src/commands/murder.js +1 -1
  85. package/bundle/obf/src/commands/patreon.js +1 -1
  86. package/bundle/obf/src/commands/profile.js +1 -1
  87. package/bundle/obf/src/commands/proxy.js +1 -1
  88. package/bundle/obf/src/commands/reconfig.js +1 -1
  89. package/bundle/obf/src/commands/register.js +1 -1
  90. package/bundle/obf/src/commands/run/_index.js +1 -1
  91. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/run/run.command.js +1 -1
  93. package/bundle/obf/src/commands/set/_index.js +1 -1
  94. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/set.command.js +1 -1
  97. package/bundle/obf/src/commands/ssh.js +1 -1
  98. package/bundle/obf/src/commands/ssl.js +1 -1
  99. package/bundle/obf/src/commands/test.js +1 -1
  100. package/bundle/obf/src/commands/undo.js +1 -1
  101. package/bundle/obf/src/commands/version.js +1 -1
  102. package/bundle/obf/src/error.js +1 -1
  103. package/bundle/obf/src/exec.js +1 -1
  104. package/bundle/obf/src/generator.js +1 -1
  105. package/bundle/obf/src/generators/_index.js +1 -1
  106. package/bundle/obf/src/generators/api.js +1 -1
  107. package/bundle/obf/src/generators/aws/_index.js +1 -1
  108. package/bundle/obf/src/generators/aws/aws.js +1 -1
  109. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  112. package/bundle/obf/src/generators/collection.js +1 -1
  113. package/bundle/obf/src/generators/component.js +1 -1
  114. package/bundle/obf/src/generators/config.js +1 -1
  115. package/bundle/obf/src/generators/dbc.js +1 -1
  116. package/bundle/obf/src/generators/dockerfile.js +1 -1
  117. package/bundle/obf/src/generators/hook.js +1 -1
  118. package/bundle/obf/src/generators/kits/_index.js +1 -1
  119. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/kit.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  131. package/bundle/obf/src/generators/layout.js +1 -1
  132. package/bundle/obf/src/generators/maka.gen.js +1 -1
  133. package/bundle/obf/src/generators/methods.js +1 -1
  134. package/bundle/obf/src/generators/package.js +1 -1
  135. package/bundle/obf/src/generators/page.js +1 -1
  136. package/bundle/obf/src/generators/publish.js +1 -1
  137. package/bundle/obf/src/generators/route.js +1 -1
  138. package/bundle/obf/src/generators/service.js +1 -1
  139. package/bundle/obf/src/generators/services/_index.js +1 -1
  140. package/bundle/obf/src/generators/services/openssl.js +1 -1
  141. package/bundle/obf/src/generators/services/translation.js +1 -1
  142. package/bundle/obf/src/maka.js +1 -1
  143. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +5 -4
  144. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +5 -4
  145. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +24 -43
  146. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +25 -44
  147. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -1
  148. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -1
  149. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +24 -43
  150. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +25 -44
  151. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +2 -2
  152. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +2 -2
  153. package/bundle/obf/src/templates/react/component/component.js.jsx +4 -1
  154. package/bundle/obf/src/templates/react/component/component.js.tsx +4 -1
  155. package/bundle/obf/src/templates/react/hook/hook.js.jsx +4 -2
  156. package/bundle/obf/src/templates/react/hook/hook.js.tsx +4 -1
  157. package/bundle/obf/src/templates/react/route/route.js.jsx +2 -5
  158. package/bundle/obf/src/templates/react/route/route.js.tsx +2 -5
  159. package/bundle/obf/src/tool.js +1 -1
  160. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  161. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  162. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  163. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  164. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  165. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  166. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  167. package/bundle/obf/src/tools/https/https.class.js +1 -1
  168. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  169. package/bundle/obf/src/tools/log/log.class.js +1 -1
  170. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  171. package/bundle/obf/src/tools/options/options.class.js +1 -1
  172. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  173. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  174. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  175. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  176. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  177. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  178. package/package.json +1 -1
@@ -1 +1 @@
1
- function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0xd3;let f=c[d];return f;},a116d(a,b);}const a116k=a116d;(function(a,b){const h=a116d,c=a();while(!![]){try{const d=parseInt(h(0xdf))/0x1*(parseInt(h(0xdd))/0x2)+parseInt(h(0xde))/0x3*(parseInt(h(0xed))/0x4)+parseInt(h(0xf3))/0x5+parseInt(h(0xe1))/0x6*(-parseInt(h(0xeb))/0x7)+-parseInt(h(0xf4))/0x8*(-parseInt(h(0xd7))/0x9)+parseInt(h(0xe4))/0xa*(parseInt(h(0xf0))/0xb)+parseInt(h(0xd9))/0xc*(-parseInt(h(0xda))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xefcb3));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a116d;if(c){const e=c[i(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const j=a116d;return a116a[j(0xe8)]()[j(0xd4)](j(0xd3))['toString']()[j(0xe0)](a116a)[j(0xd4)](j(0xd3));});a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a116e from'path';function a116c(){const n=['11873829EbQZXY','Dockerfile','cert','7979880WYrMEf','528232WkbakY','(((.+)+)+)+$','search','getGlobalConfig','dockerfile','81ivFrWQ','app.tar.gz','30090108YUdHXk','13gVActi','withValue','template','2mhlZoP','838923NLHWNb','1047527jZVSIR','constructor','6Fxayhr','error','docker/Dockerfile','10kgtpBO','isFile','apply','join','toString','getMakaProjectConfig','maka\x20g:dockerfile','9707467UiObFd','Generate\x20an\x20updated\x20dockerfile','8McgNLr','fsi','force'];a116c=function(){return n;};return a116c();}Generator['create']({'name':a116k(0xd6),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a116k(0xec),'validOpts':[{'name':a116k(0xef),'boolFlag':!![]}],'noNeedResource':!![],'examples':[a116k(0xea)]},async function(a,b){const l=a116k;try{const c=await this[l(0xee)][l(0xe9)](),d=await this['fsi'][l(0xd5)](),f=this[l(0xee)]['findProjectDirectory']();await this[l(0xee)][l(0xdb)](c,async()=>{const m=l,g={'app':d['appName'],'config':c,'appPath':a116e[m(0xe7)](f,'app'),'bundlePath':a116e['join'](f,'build',m(0xd8)),'useCert':this[m(0xee)][m(0xe5)](d[m(0xf2)])};await this[m(0xee)][m(0xdc)]({'srcPath':m(0xe3),'destPath':a116e[m(0xe7)](f,m(0xf1)),'framework':'service','context':g,'config':c,'force':b[m(0xef)]});});}catch(g){Log[l(0xe2)](g);}});
1
+ const a116k=a116d;(function(a,b){const h=a116d,c=a();while(!![]){try{const d=-parseInt(h(0x1e8))/0x1+parseInt(h(0x1eb))/0x2*(parseInt(h(0x1dc))/0x3)+-parseInt(h(0x1e3))/0x4*(parseInt(h(0x1f6))/0x5)+-parseInt(h(0x1df))/0x6*(-parseInt(h(0x1ea))/0x7)+-parseInt(h(0x1ec))/0x8*(-parseInt(h(0x1f3))/0x9)+-parseInt(h(0x1e4))/0xa+parseInt(h(0x1db))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x71b83));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a116d;if(c){const e=c[i(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const j=a116d;return a116a[j(0x1e1)]()[j(0x1ee)]('(((.+)+)+)+$')[j(0x1e1)]()[j(0x1f2)](a116a)[j(0x1ee)]('(((.+)+)+)+$');});a116a();import{Generator}from'../generator.js';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x1da;let f=c[d];return f;},a116d(a,b);}import{Log}from'../tools/log/log.class.js';function a116c(){const n=['error','31968bxsogU','getMakaProjectConfig','toString','template','7892uxrzBT','5948430aAPgxA','Generate\x20an\x20updated\x20dockerfile','fsi','create','824185qxiyXm','maka\x20g:dockerfile','497YHLaRt','2QiwEEl','5477768GdKqVr','apply','search','withValue','app.tar.gz','join','constructor','9AgADIQ','force','app','1735SklZcM','maka\x20{generate,\x20g}:dockerfile','build','Dockerfile','appName','10590118POFTYs','1631121PGecnc','dockerfile'];a116c=function(){return n;};return a116c();}import a116e from'path';Generator[a116k(0x1e7)]({'name':a116k(0x1dd),'usage':a116k(0x1f7),'shortDesc':a116k(0x1e5),'validOpts':[{'name':a116k(0x1f4),'boolFlag':!![]}],'noNeedResource':!![],'examples':[a116k(0x1e9)]},async function(a,b){const l=a116k;try{const c=await this[l(0x1e6)][l(0x1e0)](),d=await this[l(0x1e6)]['getGlobalConfig'](),f=this[l(0x1e6)]['findProjectDirectory']();await this['fsi'][l(0x1ef)](c,async()=>{const m=l,g={'app':d[m(0x1da)],'config':c,'appPath':a116e[m(0x1f1)](f,m(0x1f5)),'bundlePath':a116e[m(0x1f1)](f,m(0x1f8),m(0x1f0)),'useCert':this[m(0x1e6)]['isFile'](d['cert'])};await this[m(0x1e6)][m(0x1e2)]({'srcPath':'docker/Dockerfile','destPath':a116e[m(0x1f1)](f,m(0x1f9)),'framework':'service','context':g,'config':c,'force':b[m(0x1f4)]});});}catch(g){Log[l(0x1de)](g);}});
@@ -1 +1 @@
1
- const a117n=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0x17b))/0x1+parseInt(l(0x14c))/0x2+parseInt(l(0x176))/0x3*(parseInt(l(0x167))/0x4)+parseInt(l(0x15b))/0x5+parseInt(l(0x170))/0x6+parseInt(l(0x16d))/0x7+parseInt(l(0x15d))/0x8*(-parseInt(l(0x15c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x57aca));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const m=a117d;return a117a[m(0x177)]()[m(0x17e)](m(0x14a))[m(0x177)]()[m(0x171)](a117a)[m(0x17e)]('(((.+)+)+)+$');});a117a();function a117c(){const q=['@apollo/client','findAppDirectory','(((.+)+)+)+$','relative','809048KqATsI','fileName','true','injectTemplateModule','fsi','force','className','cssCaseName','features','css','apollo','installNpmPackage','injectAtBeginningOfFile','assign','graphql','3307960uGnhaa','5929263DWDBVI','8xTqYQd','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\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','.css','hooks','create','withValue','engines','.app-tests.js','string','theme','12CKBVSu','checkNpmPackage','pathFromApp','test','Creating\x20','withTranslations','310716UUkZpP','test/test.js','pathFromProject','259614lvVWZT','constructor','template','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','getMakaProjectConfig','resourceName','90477bXfnXR','toString','notice','error','\x20hook...','226329rfeiau','layouts','baseDir','search','dir','none','pages','hook'];a117c=function(){return q;};return a117c();}function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x145;let f=c[d];return f;},a117d(a,b);}import a117e 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[a117n(0x161)]({'name':a117n(0x147),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a117n(0x17d),'values':[a117n(0x160),'components',a117n(0x146),a117n(0x17c)]},{'name':a117n(0x151),'boolFlag':!![]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a117n(0x15e)},async function(a,b){const o=a117n;Log[o(0x178)](o(0x16b)+b[o(0x175)]+o(0x17a));try{const c=this['fsi']['checkNpmPackage']('react');if(!c){Log[o(0x179)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[o(0x150)][o(0x149)](),f=b[o(0x17d)]?'/imports/ui/'+b[o(0x17d)]:'/imports/ui/components',g=this[o(0x150)][o(0x169)]({'pathParts':[f,b[o(0x17f)],paramCase(b['resourceName']),paramCase(b[o(0x175)])]}),h=await this[o(0x150)][o(0x174)]();await this[o(0x150)][o(0x162)](h,async()=>{const p=o;typeof h['template']['css']===p(0x165)&&(h[p(0x172)]['css']=h['template']['css']===p(0x14e)?!![]:![],this[p(0x150)]['setTemplate'](p(0x155),h[p(0x172)][p(0x155)]));h[p(0x163)][p(0x15a)]===p(0x156)&&!this[p(0x150)][p(0x168)](p(0x148))&&(Log['warn'](p(0x173)),await this[p(0x150)][p(0x157)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[p(0x175)]),'camelCaseName':camelCase(b[p(0x175)]),'className':pascalCase(b[p(0x175)]),'name':pascalCase(b[p(0x175)]),'graphql':h[p(0x163)][p(0x15a)],'theme':h[p(0x163)][p(0x166)],'features':h['features'],'myPath':a117e[p(0x14b)](this['fsi'][p(0x16f)]({}),g),'fileName':paramCase(b[p(0x175)]),'isComponent':![],'isLayout':![],'withTranslations':h[p(0x154)][p(0x16c)]};await this['fsi'][p(0x172)]({'srcPath':'hook/hook.js','destPath':g+'.js','context':i,'config':h,'framework':'react','force':b[p(0x151)]});h[p(0x172)][p(0x155)]&&(await this[p(0x150)]['template']({'srcPath':'template/template.css','destPath':g+p(0x15f),'context':Object[p(0x159)]({},i,{'className':i[p(0x153)]}),'config':h,'force':b[p(0x151)]}),await this['fsi'][p(0x158)]({'filePath':g+'.'+h[p(0x163)]['js'],'content':'import\x20\x27./'+i[p(0x14d)]+'.'+h[p(0x163)]['css']+'\x27;'}));h[p(0x163)][p(0x16a)]!==p(0x145)&&await this[p(0x150)][p(0x172)]({'srcPath':p(0x16e),'destPath':g+p(0x164),'framework':'react','context':i,'config':h,'force':b[p(0x151)]});const j=b['dir']?'/'+b[p(0x17f)]+'/':'/',k=''+f+j+i[p(0x14d)]+'/'+i[p(0x14d)];await this[p(0x150)][p(0x14f)](i[p(0x152)],h,k);});}catch(i){Log[o(0x179)](i);}});
1
+ const a117o=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0xf2))/0x1+-parseInt(l(0x103))/0x2+parseInt(l(0xdd))/0x3*(-parseInt(l(0xfc))/0x4)+-parseInt(l(0xfa))/0x5*(-parseInt(l(0x10f))/0x6)+parseInt(l(0x110))/0x7+-parseInt(l(0xe2))/0x8+parseInt(l(0x10a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x9049c));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a[n(0xde)]()[n(0x101)](n(0xf1))[n(0xde)]()[n(0x114)](a117a)['search']('(((.+)+)+)+$');});function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0xda;let f=c[d];return f;},a117d(a,b);}a117a();import a117e from'path';function a117c(){const r=['\x20hook...','(((.+)+)+)+$','639149PWpebP','pages','resourceName','assign','engines','true','apollo','relative','870375fSaOPS','/imports/ui/components','4aNTbAk','components','apply','graphql','cssCaseName','search','hooks','602028pgWENE','findAppDirectory','className','create','getMakaProjectConfig','theme','.js','12849741FlcDLd','react','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Creating\x20','setTemplate','30NIIcne','6567526OrTXsg','@apollo/client','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','test','constructor','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','error','layouts','.css','dir','force','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\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','css','template','.app-tests.js','features','2543361Illick','toString','notice','test/test.js','/imports/ui/','6859104BAFaQB','template/template.css','hook','checkNpmPackage','import\x20\x27./','maka\x20g:hook\x20cool-hook','pathFromProject','fsi','hook/hook.js','withTranslations','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','baseDir','fileName'];a117c=function(){return r;};return a117c();}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[a117o(0x106)]({'name':a117o(0xe4),'aliases':['h'],'checkWhere':![],'usage':a117o(0x112),'shortDesc':a117o(0x115),'validOpts':[{'name':a117o(0xee),'values':[a117o(0x102),a117o(0xfd),a117o(0xf3),a117o(0x117)]},{'name':a117o(0x11a),'boolFlag':!![]}],'examples':[a117o(0xe7)],'description':a117o(0x11b)},async function(a,b){const p=a117o;Log[p(0xdf)](p(0x10d)+b[p(0xf4)]+p(0xf0));try{const c=this[p(0xe9)]['checkNpmPackage'](p(0x10b));if(!c){Log['error'](p(0xec));throw new UsageError();}const d=this[p(0xe9)][p(0x104)](),f=b[p(0xee)]?p(0xe1)+b[p(0xee)]:p(0xfb),g=this[p(0xe9)][p(0xed)]({'pathParts':[f,b[p(0x119)],paramCase(b[p(0xf4)]),paramCase(b[p(0xf4)])]}),h=await this['fsi'][p(0x107)]();await this[p(0xe9)]['withValue'](h,async()=>{const q=p;typeof h[q(0xda)][q(0x11c)]==='string'&&(h[q(0xda)]['css']=h[q(0xda)][q(0x11c)]===q(0xf7)?!![]:![],this[q(0xe9)][q(0x10e)]('css',h[q(0xda)][q(0x11c)]));h[q(0xf6)][q(0xff)]===q(0xf8)&&!this['fsi'][q(0xe5)](q(0x111))&&(Log['warn'](q(0x10c)),await this[q(0xe9)]['installNpmPackage']('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0xf4)]),'camelCaseName':camelCase(b[q(0xf4)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[q(0xf4)]),'graphql':h['engines'][q(0xff)],'theme':h[q(0xf6)][q(0x108)],'features':h['features'],'myPath':a117e[q(0xf9)](this[q(0xe9)][q(0xe8)]({}),g),'fileName':paramCase(b[q(0xf4)]),'isComponent':![],'isLayout':![],'withTranslations':h[q(0xdc)][q(0xeb)]};await this[q(0xe9)]['template']({'srcPath':q(0xea),'destPath':g+q(0x109),'context':i,'config':h,'framework':'react','force':b[q(0x11a)]});h[q(0xda)][q(0x11c)]&&(await this[q(0xe9)]['template']({'srcPath':q(0xe3),'destPath':g+q(0x118),'context':Object[q(0xf5)]({},i,{'className':i[q(0x100)]}),'config':h,'force':b[q(0x11a)]}),await this[q(0xe9)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[q(0xf6)]['js'],'content':q(0xe6)+i[q(0xef)]+'.'+h[q(0xf6)][q(0x11c)]+'\x27;'}));h[q(0xf6)][q(0x113)]!=='none'&&await this[q(0xe9)][q(0xda)]({'srcPath':q(0xe0),'destPath':g+q(0xdb),'framework':q(0x10b),'context':i,'config':h,'force':b[q(0x11a)]});const j=b[q(0x119)]?'/'+b[q(0x119)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[q(0xef)];await this[q(0xe9)]['injectTemplateModule'](i[q(0x105)],h,k);});}catch(i){Log[p(0x116)](i);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a118d,c=a();while(!![]){try{var d=parseInt(f(0x112))/0x1*(parseInt(f(0x115))/0x2)+-parseInt(f(0x10e))/0x3+-parseInt(f(0x113))/0x4*(-parseInt(f(0x111))/0x5)+parseInt(f(0x10d))/0x6*(-parseInt(f(0x108))/0x7)+-parseInt(f(0x10c))/0x8*(parseInt(f(0x107))/0x9)+-parseInt(f(0x10a))/0xa+parseInt(f(0x114))/0xb*(parseInt(f(0x109))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0xccedb));var a118b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a118d;if(c){var e=c[g(0x117)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){var h=a118d;return a118a['toString']()[h(0x10b)](h(0x10f))[h(0x116)]()[h(0x110)](a118a)[h(0x10b)](h(0x10f));});a118a();function a118c(){var i=['1197977DLQAPu','4670YNzmzF','toString','apply','27gjbfvS','7MsxuMY','204eUNVzt','12579920nNlNjd','search','1332192pSgdog','4399602fxALZW','1703541uKPDmJ','(((.+)+)+)+$','constructor','85HSsKis','167ruoGXF','389812eCkbGl'];a118c=function(){return i;};return a118c();}import'./kit.js';function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x107;var f=c[d];return f;},a118d(a,b);}import'./mui/_index.js';import'./esri/_index.js';import'./auth/_index.js';
1
+ (function(a,b){var f=a118d,c=a();while(!![]){try{var d=parseInt(f(0x1ee))/0x1+-parseInt(f(0x1e8))/0x2*(-parseInt(f(0x1f2))/0x3)+-parseInt(f(0x1e9))/0x4*(-parseInt(f(0x1f5))/0x5)+parseInt(f(0x1f0))/0x6*(-parseInt(f(0x1f4))/0x7)+-parseInt(f(0x1eb))/0x8*(-parseInt(f(0x1ea))/0x9)+-parseInt(f(0x1f7))/0xa+parseInt(f(0x1ed))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x50cf4));function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x1e8;var f=c[d];return f;},a118d(a,b);}function a118c(){var i=['search','12NLQtIw','apply','3ZcCQCx','(((.+)+)+)+$','891842MdVPsB','5ZkhIFS','constructor','4403020IRSeWg','40532kxYlSU','1485096OHuXcW','357039UPqoXg','104DkWfzr','toString','48224PfaGAe','114463ZDgbaw'];a118c=function(){return i;};return a118c();}var a118b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a118d;if(c){var e=c[g(0x1f1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){var h=a118d;return a118a[h(0x1ec)]()[h(0x1ef)]('(((.+)+)+)+$')[h(0x1ec)]()[h(0x1f6)](a118a)[h(0x1ef)](h(0x1f3));});a118a();import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';import'./auth/_index.js';
@@ -1 +1 @@
1
- function a119c(){var h=['36366XLcFnn','65742ojBgWA','1106AgRmZJ','(((.+)+)+)+$','toString','1505452vLNedP','search','695jlTnky','26106606jlQVFP','13202EXJacJ','3223116HitPAb','68384lSZdGI'];a119c=function(){return h;};return a119c();}(function(a,b){var f=a119d,c=a();while(!![]){try{var d=-parseInt(f(0xc2))/0x1+parseInt(f(0xbe))/0x2+-parseInt(f(0xc6))/0x3+parseInt(f(0xc3))/0x4+parseInt(f(0xc0))/0x5*(parseInt(f(0xc5))/0x6)+-parseInt(f(0xc7))/0x7*(-parseInt(f(0xc4))/0x8)+-parseInt(f(0xc1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xc7266));var a119b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){var g=a119d;return a119a[g(0xbd)]()['search'](g(0xbc))[g(0xbd)]()['constructor'](a119a)[g(0xbf)](g(0xbc));});a119a();function a119d(a,b){var c=a119c();return a119d=function(d,e){d=d-0xbc;var f=c[d];return f;},a119d(a,b);}import'./auth.generator.js';import'./provider.auth.gen.js';import'./basic-meteor.auth.gen.js';
1
+ (function(a,b){var f=a119d,c=a();while(!![]){try{var d=parseInt(f(0x88))/0x1*(-parseInt(f(0x91))/0x2)+parseInt(f(0x8d))/0x3*(parseInt(f(0x8e))/0x4)+-parseInt(f(0x92))/0x5*(parseInt(f(0x98))/0x6)+-parseInt(f(0x89))/0x7*(parseInt(f(0x90))/0x8)+parseInt(f(0x8f))/0x9*(parseInt(f(0x94))/0xa)+-parseInt(f(0x8b))/0xb*(-parseInt(f(0x97))/0xc)+parseInt(f(0x93))/0xd*(parseInt(f(0x96))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xb9fad));var a119b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){var g=a119d;return a119a['toString']()['search'](g(0x95))['toString']()[g(0x8c)](a119a)[g(0x8a)](g(0x95));});a119a();import'./auth.generator.js';function a119c(){var h=['126562BTchtc','85fneArM','1608932WWWiys','10mGdteQ','(((.+)+)+)+$','70apCXqr','12uyPDuf','336450Axbtzb','13KVoZSJ','276899xRZbme','search','4021886BYGzgx','constructor','3NAUaIO','3169580HYyrwn','7915779idhAbE','24lFjMZz'];a119c=function(){return h;};return a119c();}import'./provider.auth.gen.js';function a119d(a,b){var c=a119c();return a119d=function(d,e){d=d-0x88;var f=c[d];return f;},a119d(a,b);}import'./basic-meteor.auth.gen.js';
@@ -1 +1 @@
1
- const a120i=a120d;(function(a,b){const f=a120d,c=a();while(!![]){try{const d=parseInt(f(0x167))/0x1*(-parseInt(f(0x16b))/0x2)+-parseInt(f(0x161))/0x3*(parseInt(f(0x168))/0x4)+parseInt(f(0x15b))/0x5*(parseInt(f(0x166))/0x6)+parseInt(f(0x15a))/0x7+-parseInt(f(0x15c))/0x8*(-parseInt(f(0x158))/0x9)+-parseInt(f(0x157))/0xa+-parseInt(f(0x160))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x81da3));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a120d;if(c){const e=c[g(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const h=a120d;return a120a[h(0x16a)]()['search'](h(0x169))[h(0x16a)]()[h(0x15f)](a120a)[h(0x15d)](h(0x169));});a120a();function a120c(){const j=['maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:<kit-name>','846zjbhbI','1DIbsJm','4TFLXuz','(((.+)+)+)+$','toString','54beXtYg','4791680PJTFBr','11061lxWGiu','auth','6885368wwWkrx','9325BcVsML','5992ZFysMc','search','maka\x20g:kit:a','constructor','11809578xMcugY','247326lpluib','Starting\x20point\x20for\x20generating\x20an\x20Auth\x20Provider','apply','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x20\x20'];a120c=function(){return j;};return a120c();}import{Generator}from'../../../generator.js';import a120e from'../kit.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x157;let f=c[d];return f;},a120d(a,b);}const AuthGen=Generator['create']({'name':a120i(0x159),'aliases':['a'],'usage':a120i(0x165),'noNeedResource':!![],'shortDesc':a120i(0x162),'validOpts':[''],'isPro':!![],'examples':[a120i(0x15e)],'description':a120i(0x164)},async function(){throw'NIE';},async function(){},a120e);export default AuthGen;
1
+ function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0xea;let f=c[d];return f;},a120d(a,b);}const a120i=a120d;(function(a,b){const f=a120d,c=a();while(!![]){try{const d=-parseInt(f(0xf3))/0x1+-parseInt(f(0xf8))/0x2*(parseInt(f(0xed))/0x3)+parseInt(f(0xeb))/0x4+parseInt(f(0xee))/0x5*(parseInt(f(0xf9))/0x6)+-parseInt(f(0xfa))/0x7+-parseInt(f(0xf5))/0x8*(-parseInt(f(0xf6))/0x9)+parseInt(f(0xf7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x79190));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a120d;if(c){const e=c[g(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const h=a120d;return a120a[h(0xfb)]()[h(0xef)]('(((.+)+)+)+$')['toString']()[h(0xf1)](a120a)[h(0xef)]('(((.+)+)+)+$');});a120a();function a120c(){const k=['apply','56824gcIGcP','225PscVsZ','11009300NzefUa','24YXVCMu','12oIevNv','4611341ZMsZZd','toString','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:<kit-name>','891692sdjJIR','NIE','93531kaLDRr','2103135YOyEMT','search','maka\x20g:kit:a','constructor','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x20\x20','813779vzVIWM'];a120c=function(){return k;};return a120c();}import{Generator}from'../../../generator.js';import a120e from'../kit.js';const AuthGen=Generator['create']({'name':'auth','aliases':['a'],'usage':a120i(0xea),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20an\x20Auth\x20Provider','validOpts':[''],'isPro':!![],'examples':[a120i(0xf0)],'description':a120i(0xf2)},async function(){const j=a120i;throw j(0xec);},async function(){},a120e);export default AuthGen;
@@ -1 +1 @@
1
- const a121r=a121d;function a121c(){const u=['publish','alanning:roles','const\x20authenticateToken','/imports/startup/lib','4794424pPAIgU','\x0a\x20\x20\x20\x20\x20\x20WebAppInternals.setInlineScriptsAllowed(false);\x0a\x0a\x20\x20\x20\x20\x20\x20Accounts.urls.resetPassword\x20=\x20function\x20(token)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.absoluteUrl(\x27reset-password/\x27\x20+\x20token);\x0a\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20','kit/auth/service/meteor-auth-service.js','\x0a\x20\x20\x20\x20\x20\x20const\x20authorizations\x20=\x20await\x20AuthService.getUserAuthorizations(user.id);\x0a\x20\x20\x20\x20\x20\x20return\x20authorizations;\x0a\x20\x20\x20\x20\x20\x20','apply','imports','useTracker','react','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20start\x20by\x20generating\x20your\x20auth\x20provider\x20and\x20context,\x20and\x20then\x20setup\x20Meteor\x20Accounts\x0a\x20\x20\x20\x20to\x20handle\x20authentication\x20and\x20authorization.\x0a\x20\x20','REACT','index','\x0a\x20\x20\x20\x20\x20\x20\x20\x20useTracker(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.isClient)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.user()\x20&&\x20!currentUser)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20setCurrentUser(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fetchUserAuthorizations(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a\x20\x20\x20\x20\x20\x20','meteor','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','meteor/meteor','5pFJLDW','const\x20getUserAuthorizations','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','startup','kit:auth:provider','/imports/startup/client','force','fsi','19984980BWQdKX','toString','ssr','injectImport','AuthService','\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20If\x20logged\x20in,\x20return\x20documents\x20owned\x20by\x20this\x20user.\x20Otherwise\x20return\x20nothing.\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(this.userId)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.roleAssignment.find({\x20\x27user._id\x27:\x20this.userId\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20[];\x0a\x20\x20\x20\x20\x20\x20','Meteor.startup','authentication-provider','135928nnrexk','injectIntoFile','686068xVnbcr','pathFromApp','accounts-password','getMakaProjectConfig','/imports/startup/client/authentication-service','219033yElrkH','exit','const\x20sendForgotPasswordEmail','const\x20registerNewUser','processAndRunGenerator','return\x20\x5c(','7473200aXhlEy','withValue','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','findProjectDirectory','Meteor.publish','8316318dzcsfa','(((.+)+)+)+$','const\x20deauthenticateUser','9FvFqFZ','Accounts','export\x20const\x20AuthProvider','error','const\x20resetPasswordWithToken','search','369rcNELY','authentication-service','injectIntoCodeBlock','meteor/maka:react-tracker','Meteor','server','checkMeteorPackage','engines','\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateUser(username,\x20password);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','auth/roles'];a121c=function(){return u;};return a121c();}(function(a,b){const o=a121d,c=a();while(!![]){try{const d=-parseInt(o(0x98))/0x1+-parseInt(o(0x93))/0x2*(parseInt(o(0xa6))/0x3)+-parseInt(o(0xba))/0x4*(-parseInt(o(0x81))/0x5)+-parseInt(o(0xa3))/0x6+parseInt(o(0x9e))/0x7+parseInt(o(0x91))/0x8*(-parseInt(o(0xac))/0x9)+parseInt(o(0x89))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xe3ffd));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a121d;if(c){const e=c[p(0x76)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const q=a121d;return a121a[q(0x8a)]()['search'](q(0xa4))[q(0x8a)]()['constructor'](a121a)[q(0xab)]('(((.+)+)+)+$');});a121a();function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x75;let f=c[d];return f;},a121d(a,b);}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a121e from'./auth.generator.js';import a121f from'../../../generators/maka.gen.js';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':a121r(0x7e),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','shortDesc':a121r(0x7f),'validOpts':[a121r(0x87)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a121r(0x7b)]},'description':a121r(0x7a)},async function(a,b){const s=a121r;try{const c=b[s(0x87)]||![];await this[s(0x88)][s(0xb2)]([s(0x95),s(0xb7)],{'shouldInstall':!![]});const d=this['fsi'][s(0xa1)](),f=this[s(0x88)][s(0x96)](),g=f['engines'][s(0x8b)]==='true';await a121f['processAndRunGenerator'](s(0x85),[],{'force':c,'cwd':d,'config':f});const h=await a121f[s(0x9c)](s(0xb6),[s(0xb5)],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?s(0xb9):s(0x86),j=this[s(0x88)][s(0x94)]({'pathParts':[i,'','',s(0xad)]});await this[s(0x88)][s(0x9f)](f,async()=>{const t=s;await this['fsi']['template']({'srcPath':t(0xbc),'destPath':j+'.js','framework':t(0x79),'context':{},'config':f,'force':c,'ignore':![]});});const k=this[s(0x88)]['pathFromApp']({'pathParts':[i,'','',s(0x90)]}),l=f[s(0xb3)]['js'];await this[s(0x88)]['injectImport']({'filePath':k+'.'+l,'importName':s(0x8d),'modulePath':g?'/imports/startup/lib/authentication-service':s(0x97),'isNamedExport':![]}),await this[s(0x88)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':s(0xb4),'begin':'const\x20authenticateUser','replace':!![]}),await this['fsi'][s(0xae)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateToken();\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','begin':s(0xb8),'replace':!![]}),await this[s(0x88)][s(0xae)]({'filePath':k+'.'+l,'content':s(0x75),'begin':s(0x82),'replace':!![]}),await this['fsi'][s(0xae)]({'filePath':k+'.'+l,'content':s(0xa0),'begin':s(0xa5),'replace':!![]}),await this[s(0x88)][s(0xae)]({'filePath':k+'.'+l,'content':s(0x83),'begin':s(0x9a),'replace':!![]}),await this[s(0x88)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','begin':s(0x9b),'replace':!![]}),await this[s(0x88)][s(0xae)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.resetPasswordWithToken(token,\x20password);\x0a\x20\x20\x20\x20\x20\x20','begin':s(0xaa),'replace':!![]});g&&(await this['fsi'][s(0x8c)]({'filePath':k+'.'+l,'importName':s(0x78),'modulePath':s(0xaf),'isNamedExport':!![]}),await this[s(0x88)][s(0x92)]({'filePath':k+'.'+l,'content':s(0x7d),'begin':s(0xa8),'end':s(0x9d)}));await this[s(0x88)][s(0x8c)]({'filePath':h,'importName':s(0xb0),'modulePath':s(0x80),'isNamedExport':!![],'injectAtStart':!![]}),await this[s(0x88)][s(0xae)]({'filePath':h,'content':s(0x8e),'begin':s(0xa2),'replace':!![]});const m=this[s(0x88)]['pathFromApp']({'pathParts':[s(0x77),s(0x84),s(0xb1),s(0x7c)]});await this[s(0x88)][s(0x8c)]({'filePath':m+'.'+l,'importName':s(0xa7),'modulePath':'meteor/accounts-base','isNamedExport':!![]}),await this[s(0x88)][s(0xae)]({'filePath':m+'.'+l,'content':s(0xbb),'begin':s(0x8f),'replace':!![]});}catch(n){Log[s(0xa9)](n),process[s(0x99)](0x1);}},async function(){},a121e);
1
+ const a121r=a121d;function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x6c;let f=c[d];return f;},a121d(a,b);}(function(a,b){const o=a121d,c=a();while(!![]){try{const d=parseInt(o(0x97))/0x1+-parseInt(o(0xa1))/0x2+parseInt(o(0x9d))/0x3*(-parseInt(o(0x73))/0x4)+-parseInt(o(0xa6))/0x5*(parseInt(o(0x83))/0x6)+-parseInt(o(0x7f))/0x7+parseInt(o(0xa8))/0x8*(-parseInt(o(0x8d))/0x9)+parseInt(o(0x99))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xa5de7));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a121d;if(c){const e=c[p(0x6e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const q=a121d;return a121a[q(0xac)]()[q(0x9b)](q(0x6c))[q(0xac)]()[q(0x85)](a121a)[q(0x9b)](q(0x6c));});a121a();import{Generator}from'../../../generator.js';function a121c(){const u=['1132340TjfPaV','\x0a\x20\x20\x20\x20\x20\x20\x20\x20useTracker(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.isClient)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.user()\x20&&\x20!currentUser)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20setCurrentUser(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fetchUserAuthorizations(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a\x20\x20\x20\x20\x20\x20','32prlclx','const\x20resetPasswordWithToken','AuthService','withValue','toString','const\x20authenticateToken','REACT','auth/roles','template','force','checkMeteorPackage','(((.+)+)+)+$','fsi','apply','const\x20getUserAuthorizations','useTracker','injectIntoCodeBlock','Meteor.publish','538388TZAfwn','\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateToken();\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','exit','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','server','findProjectDirectory','const\x20sendForgotPasswordEmail','\x0a\x20\x20\x20\x20\x20\x20WebAppInternals.setInlineScriptsAllowed(false);\x0a\x0a\x20\x20\x20\x20\x20\x20Accounts.urls.resetPassword\x20=\x20function\x20(token)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.absoluteUrl(\x27reset-password/\x27\x20+\x20token);\x0a\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20','processAndRunGenerator','react','meteor/meteor','8264039MkGuJR','Meteor.startup','pathFromApp','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20start\x20by\x20generating\x20your\x20auth\x20provider\x20and\x20context,\x20and\x20then\x20setup\x20Meteor\x20Accounts\x0a\x20\x20\x20\x20to\x20handle\x20authentication\x20and\x20authorization.\x0a\x20\x20','12EExjLH','meteor','constructor','error','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','injectImport','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.resetPasswordWithToken(token,\x20password);\x0a\x20\x20\x20\x20\x20\x20','const\x20authenticateUser','imports','authentication-provider','905886PNBKls','ssr','meteor/maka:react-tracker','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','startup','Meteor','publish','alanning:roles','return\x20\x5c(','/imports/startup/client/authentication-service','346865iKxdOe','Accounts','40652560CEFPOo','true','search','\x0a\x20\x20\x20\x20\x20\x20const\x20authorizations\x20=\x20await\x20AuthService.getUserAuthorizations(user.id);\x0a\x20\x20\x20\x20\x20\x20return\x20authorizations;\x0a\x20\x20\x20\x20\x20\x20','9EXcFBV','getMakaProjectConfig','engines','injectIntoFile','2585604sjNrow','.js','kit:auth:provider','meteor/accounts-base','/imports/startup/client'];a121c=function(){return u;};return a121c();}import{Log}from'../../../tools/log/log.class.js';import a121e from'./auth.generator.js';import a121f from'../../../generators/maka.gen.js';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':a121r(0x84),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','shortDesc':a121r(0x87),'validOpts':[a121r(0xb1)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a121r(0xae)]},'description':a121r(0x82)},async function(a,b){const s=a121r;try{const c=b['force']||![];await this[s(0x6d)][s(0xb2)](['accounts-password',s(0x94)],{'shouldInstall':!![]});const d=this[s(0x6d)][s(0x79)](),f=this[s(0x6d)][s(0x9e)](),g=f[s(0x9f)][s(0x8e)]===s(0x9a);await a121f[s(0x7c)](s(0xa3),[],{'force':c,'cwd':d,'config':f});const h=await a121f[s(0x7c)](s(0x93),[s(0xaf)],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?'/imports/startup/lib':s(0xa5),j=this['fsi'][s(0x81)]({'pathParts':[i,'','','authentication-service']});await this['fsi'][s(0xab)](f,async()=>{const t=s;await this[t(0x6d)][t(0xb0)]({'srcPath':'kit/auth/service/meteor-auth-service.js','destPath':j+t(0xa2),'framework':t(0x7d),'context':{},'config':f,'force':c,'ignore':![]});});const k=this[s(0x6d)][s(0x81)]({'pathParts':[i,'','',s(0x8c)]}),l=f[s(0x9f)]['js'];await this[s(0x6d)][s(0x88)]({'filePath':k+'.'+l,'importName':s(0xaa),'modulePath':g?'/imports/startup/lib/authentication-service':s(0x96),'isNamedExport':![]}),await this['fsi'][s(0x71)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateUser(username,\x20password);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','begin':s(0x8a),'replace':!![]}),await this[s(0x6d)][s(0x71)]({'filePath':k+'.'+l,'content':s(0x74),'begin':s(0xad),'replace':!![]}),await this[s(0x6d)][s(0x71)]({'filePath':k+'.'+l,'content':s(0x9c),'begin':s(0x6f),'replace':!![]}),await this['fsi'][s(0x71)]({'filePath':k+'.'+l,'content':s(0x76),'begin':'const\x20deauthenticateUser','replace':!![]}),await this[s(0x6d)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':s(0x77),'begin':s(0x7a),'replace':!![]}),await this[s(0x6d)][s(0x71)]({'filePath':k+'.'+l,'content':s(0x90),'begin':'const\x20registerNewUser','replace':!![]}),await this[s(0x6d)][s(0x71)]({'filePath':k+'.'+l,'content':s(0x89),'begin':s(0xa9),'replace':!![]});g&&(await this[s(0x6d)][s(0x88)]({'filePath':k+'.'+l,'importName':s(0x70),'modulePath':s(0x8f),'isNamedExport':!![]}),await this[s(0x6d)][s(0xa0)]({'filePath':k+'.'+l,'content':s(0xa7),'begin':'export\x20const\x20AuthProvider','end':s(0x95)}));await this[s(0x6d)]['injectImport']({'filePath':h,'importName':s(0x92),'modulePath':s(0x7e),'isNamedExport':!![],'injectAtStart':!![]}),await this['fsi'][s(0x71)]({'filePath':h,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20If\x20logged\x20in,\x20return\x20documents\x20owned\x20by\x20this\x20user.\x20Otherwise\x20return\x20nothing.\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(this.userId)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.roleAssignment.find({\x20\x27user._id\x27:\x20this.userId\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20[];\x0a\x20\x20\x20\x20\x20\x20','begin':s(0x72),'replace':!![]});const m=this['fsi']['pathFromApp']({'pathParts':[s(0x8b),s(0x91),s(0x78),'index']});await this['fsi'][s(0x88)]({'filePath':m+'.'+l,'importName':s(0x98),'modulePath':s(0xa4),'isNamedExport':!![]}),await this[s(0x6d)][s(0x71)]({'filePath':m+'.'+l,'content':s(0x7b),'begin':s(0x80),'replace':!![]});}catch(n){Log[s(0x86)](n),process[s(0x75)](0x1);}},async function(){},a121e);
@@ -1 +1 @@
1
- const a122w=a122d;function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x8d;let f=c[d];return f;},a122d(a,b);}(function(a,b){const u=a122d,c=a();while(!![]){try{const d=parseInt(u(0xa8))/0x1*(-parseInt(u(0xbd))/0x2)+-parseInt(u(0xab))/0x3+parseInt(u(0x9c))/0x4+parseInt(u(0xb7))/0x5+-parseInt(u(0x91))/0x6+parseInt(u(0x8f))/0x7*(parseInt(u(0x9a))/0x8)+-parseInt(u(0xa1))/0x9*(-parseInt(u(0xb5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xc2226));const a122b=(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;};}()),a122a=a122b(this,function(){const v=a122d;return a122a['toString']()[v(0xae)](v(0x90))[v(0xa3)]()[v(0xa2)](a122a)[v(0xae)](v(0x90));});a122a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a122c(){const z=['4490930yoGMPY','<Routes\x20history={browserHistory}/>','<AuthProvider>','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','exit','bright','2KyCrHn','/imports/startup/server/index','function\x20Routes','injectIntoCodeBlock','injectImport','create','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','Creating\x20an\x20AuthProvider\x20and\x20AuthContext','361459fsWQmq','(((.+)+)+)+$','6997596vUULyl','getMakaProjectConfig','/imports/startup/client/authentication-provider','appName','/imports/startup/client/index','/imports/startup/client','split','template','AuthProvider','192PHTmYT','provider','5144356FbCuwt','const\x20Routes','withValue','pathFromApp','force','162423SrwtCn','constructor','toString','AuthContext','react','/imports/startup/lib','ssr','776967zZDbdf','authentication-provider','engines','3138288TNNPuO','.js','/routes','search','fsi','<Routes\x20history={history}/>','error','/imports/startup/lib/authentication-provider','replaceAll','</AuthProvider>','200tyDGZf','injectAroundString'];a122c=function(){return z;};return a122c();}import a122e from'./auth.generator.js';import{headerCase}from'change-case';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a122w(0xc2)]({'name':a122w(0x9b),'aliases':['p'],'usage':a122w(0x8d),'shortDesc':a122w(0xba),'validOpts':['force'],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines['REACT']},'description':'\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x0a\x20\x20\x20\x20It\x20will\x20also\x20update\x20your\x20Routes\x20file\x20to\x20include\x20the\x20AuthProvider\x20and\x20Context.\x0a\x20\x20\x20\x20for\x20navigation\x20checking.\x0a\x20\x20'},async function(a,b){const x=a122w;try{const c=b[x(0xa0)]||![];Log[x(0xbc)](x(0x8e));const d=this[x(0xaf)][x(0x92)](),f=d['engines'][x(0xa7)]==='true',g={'name':headerCase(d[x(0x94)])[x(0xb3)]('-','\x20')},h=f?x(0xa6):x(0x96),i=this[x(0xaf)][x(0x9f)]({'pathParts':[h,'','',x(0xa9)]});await this[x(0xaf)][x(0x9e)](d,async()=>{const y=x;await this['fsi'][y(0x98)]({'srcPath':'kit/auth/provider/authentication-provider.js','destPath':i+y(0xac),'framework':'react','context':g,'config':d,'force':c,'ignore':![]});});const j=d[x(0xaa)]['js'],k=h+x(0xad),l=k['split']('/'),m=this[x(0xaf)][x(0x9f)]({'pathParts':l});await this[x(0xaf)]['injectImport']({'filePath':m+'.'+j,'importName':x(0xa4),'modulePath':f?'/imports/startup/lib/authentication-provider':x(0x93),'isNamedExport':!![]}),await this['fsi'][x(0xc1)]({'filePath':m+'.'+j,'importName':'useContext','modulePath':x(0xa5),'isNamedExport':!![],'injectAtStart':!![]}),await this[x(0xaf)][x(0xc0)]({'filePath':m+'.'+j,'content':'\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useContext(AuthContext);\x0a\x20\x20\x20\x20\x20\x20if\x20(loading)\x20return\x20<PublicRoutes\x20history={history}/>;\x0a\x20\x20\x20\x20\x20\x20return\x20(!currentUser)\x20?\x20<PublicRoutes\x20history={history}/>\x20:\x20<PrivateRoutes\x20history={history}/>;\x0a\x20\x20\x20\x20\x20\x20','begin':[x(0x9d),x(0xbf)],'replace':!![]});const n=x(0x95),o=n[x(0x97)]('/'),p=this[x(0xaf)][x(0x9f)]({'pathParts':o});await this['fsi']['injectImport']({'filePath':p+'.'+j,'importName':x(0x99),'modulePath':f?x(0xb2):x(0x93),'isNamedExport':!![]}),await this['fsi'][x(0xb6)]({'filePath':p+'.'+j,'aboveContent':x(0xb9),'belowContent':x(0xb4),'targetString':x(0xb8),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q=x(0xbe),r=q['split']('/'),s=this['fsi'][x(0x9f)]({'pathParts':r});await this[x(0xaf)][x(0xc1)]({'filePath':s+'.'+j,'importName':'AuthProvider','modulePath':f?x(0xb2):x(0x93),'isNamedExport':!![]}),await this[x(0xaf)][x(0xb6)]({'filePath':s+'.'+j,'aboveContent':x(0xb9),'belowContent':'</AuthProvider>','targetString':x(0xb0),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log[x(0xb1)](t),process[x(0xbb)](0x1);}},async function(){},a122e);
1
+ const a122w=a122d;(function(a,b){const u=a122d,c=a();while(!![]){try{const d=-parseInt(u(0x11a))/0x1*(parseInt(u(0x111))/0x2)+parseInt(u(0x10c))/0x3+parseInt(u(0x11e))/0x4+-parseInt(u(0x10d))/0x5+parseInt(u(0x11b))/0x6*(-parseInt(u(0x101))/0x7)+parseInt(u(0x120))/0x8+parseInt(u(0x11d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x48045));const a122b=(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;};}()),a122a=a122b(this,function(){const v=a122d;return a122a[v(0x126)]()[v(0x112)](v(0x122))[v(0x126)]()['constructor'](a122a)[v(0x112)]('(((.+)+)+)+$');});a122a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a122e from'./auth.generator.js';function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0xfd;let f=c[d];return f;},a122d(a,b);}import{headerCase}from'change-case';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a122w(0x10a)]({'name':a122w(0x11c),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','shortDesc':'Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','validOpts':[a122w(0x128)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a122w(0x113)]},'description':a122w(0x105)},async function(a,b){const x=a122w;try{const c=b[x(0x128)]||![];Log['bright']('Creating\x20an\x20AuthProvider\x20and\x20AuthContext');const d=this[x(0x107)][x(0x10b)](),f=d[x(0x106)][x(0xfd)]==='true',g={'name':headerCase(d['appName'])[x(0x10e)]('-','\x20')},h=f?x(0x123):x(0xfe),i=this[x(0x107)][x(0x104)]({'pathParts':[h,'','',x(0x100)]});await this['fsi']['withValue'](d,async()=>{const y=x;await this['fsi'][y(0xff)]({'srcPath':y(0x110),'destPath':i+y(0x103),'framework':y(0x119),'context':g,'config':d,'force':c,'ignore':![]});});const j=d['engines']['js'],k=h+x(0x118),l=k[x(0x108)]('/'),m=this[x(0x107)][x(0x104)]({'pathParts':l});await this['fsi']['injectImport']({'filePath':m+'.'+j,'importName':'AuthContext','modulePath':f?x(0x10f):'/imports/startup/client/authentication-provider','isNamedExport':!![]}),await this['fsi'][x(0x127)]({'filePath':m+'.'+j,'importName':'useContext','modulePath':'react','isNamedExport':!![],'injectAtStart':!![]}),await this[x(0x107)]['injectIntoCodeBlock']({'filePath':m+'.'+j,'content':x(0x117),'begin':[x(0x116),x(0x129)],'replace':!![]});const n=x(0x12a),o=n[x(0x108)]('/'),p=this[x(0x107)][x(0x104)]({'pathParts':o});await this['fsi'][x(0x127)]({'filePath':p+'.'+j,'importName':x(0x124),'modulePath':f?x(0x10f):'/imports/startup/client/authentication-provider','isNamedExport':!![]}),await this[x(0x107)][x(0x125)]({'filePath':p+'.'+j,'aboveContent':'<AuthProvider>','belowContent':x(0x11f),'targetString':x(0x102),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q=x(0x109),r=q[x(0x108)]('/'),s=this[x(0x107)][x(0x104)]({'pathParts':r});await this[x(0x107)][x(0x127)]({'filePath':s+'.'+j,'importName':x(0x124),'modulePath':f?'/imports/startup/lib/authentication-provider':'/imports/startup/client/authentication-provider','isNamedExport':!![]}),await this[x(0x107)]['injectAroundString']({'filePath':s+'.'+j,'aboveContent':'<AuthProvider>','belowContent':x(0x11f),'targetString':x(0x114),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log[x(0x115)](t),process[x(0x121)](0x1);}},async function(){},a122e);function a122c(){const z=['/imports/startup/server/index','create','getMakaProjectConfig','51807MDUPhc','2934250IDhjAz','replaceAll','/imports/startup/lib/authentication-provider','kit/auth/provider/authentication-provider.js','2SKAXWM','search','REACT','<Routes\x20history={history}/>','error','const\x20Routes','\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useContext(AuthContext);\x0a\x20\x20\x20\x20\x20\x20if\x20(loading)\x20return\x20<PublicRoutes\x20history={history}/>;\x0a\x20\x20\x20\x20\x20\x20return\x20(!currentUser)\x20?\x20<PublicRoutes\x20history={history}/>\x20:\x20<PrivateRoutes\x20history={history}/>;\x0a\x20\x20\x20\x20\x20\x20','/routes','react','91237UFsXaw','4254EraDOl','provider','9854073JSnHgf','570288bGBhHc','</AuthProvider>','1257608IWjsdn','exit','(((.+)+)+)+$','/imports/startup/lib','AuthProvider','injectAroundString','toString','injectImport','force','function\x20Routes','/imports/startup/client/index','ssr','/imports/startup/client','template','authentication-provider','4333XyjfDs','<Routes\x20history={browserHistory}/>','.js','pathFromApp','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x0a\x20\x20\x20\x20It\x20will\x20also\x20update\x20your\x20Routes\x20file\x20to\x20include\x20the\x20AuthProvider\x20and\x20Context.\x0a\x20\x20\x20\x20for\x20navigation\x20checking.\x0a\x20\x20','engines','fsi','split'];a122c=function(){return z;};return a122c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a123d,c=a();while(!![]){try{var d=-parseInt(f(0x100))/0x1*(-parseInt(f(0xfe))/0x2)+-parseInt(f(0x109))/0x3*(parseInt(f(0x108))/0x4)+parseInt(f(0xfc))/0x5+-parseInt(f(0x101))/0x6*(parseInt(f(0xfb))/0x7)+-parseInt(f(0x105))/0x8*(-parseInt(f(0x102))/0x9)+-parseInt(f(0x106))/0xa*(-parseInt(f(0x107))/0xb)+-parseInt(f(0xfd))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x98654));function a123c(){var h=['8741gRyqMd','18tsxvoP','7605UDAKIe','search','(((.+)+)+)+$','6760MBfhmW','2350NRsAee','19261nXQJlv','123572fqeqyA','3KdHemV','830613TMQzIq','4397545QuInLN','26087664foFora','270hjXgsC','toString'];a123c=function(){return h;};return a123c();}var a123b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){var g=a123d;return a123a[g(0xff)]()[g(0x103)](g(0x104))[g(0xff)]()['constructor'](a123a)[g(0x103)](g(0x104));});a123a();import'./esri.generator.js';function a123d(a,b){var c=a123c();return a123d=function(d,e){d=d-0xfb;var f=c[d];return f;},a123d(a,b);}import'./map.esri.gen.js';
1
+ function a123c(){var i=['11205IACXXJ','51242PoBQKF','910472LDzGnj','35Cdqwxu','35LjptZF','1mvStzc','toString','90632Yityfr','1980AupgrB','(((.+)+)+)+$','search','740955xlmsVU','154578kIsSou','apply','8541192IABeYs'];a123c=function(){return i;};return a123c();}(function(a,b){var f=a123d,c=a();while(!![]){try{var d=-parseInt(f(0x159))/0x1*(-parseInt(f(0x164))/0x2)+-parseInt(f(0x15f))/0x3+parseInt(f(0x15b))/0x4*(-parseInt(f(0x158))/0x5)+parseInt(f(0x160))/0x6*(parseInt(f(0x166))/0x7)+-parseInt(f(0x165))/0x8+-parseInt(f(0x163))/0x9*(parseInt(f(0x15c))/0xa)+parseInt(f(0x162))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x28486));var a123b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a123d;if(c){var e=c[g(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){var h=a123d;return a123a[h(0x15a)]()[h(0x15e)](h(0x15d))[h(0x15a)]()['constructor'](a123a)['search'](h(0x15d));});a123a();function a123d(a,b){var c=a123c();return a123d=function(d,e){d=d-0x158;var f=c[d];return f;},a123d(a,b);}import'./esri.generator.js';import'./map.esri.gen.js';
@@ -1 +1 @@
1
- const a124i=a124d;(function(a,b){const f=a124d,c=a();while(!![]){try{const d=-parseInt(f(0x17a))/0x1+-parseInt(f(0x180))/0x2*(-parseInt(f(0x179))/0x3)+-parseInt(f(0x176))/0x4+parseInt(f(0x17b))/0x5+parseInt(f(0x17e))/0x6*(parseInt(f(0x183))/0x7)+-parseInt(f(0x17c))/0x8+-parseInt(f(0x181))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x7be7b));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a124d;if(c){const e=c[g(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const h=a124d;return a124a[h(0x185)]()[h(0x17f)](h(0x178))[h(0x185)]()[h(0x17d)](a124a)['search'](h(0x178));});function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x175;let f=c[d];return f;},a124d(a,b);}a124a();import{Generator}from'../../../generator.js';import a124e from'../kit.js';const EsriGen=Generator['create']({'name':'esri','aliases':['e'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20Esri\x20Maps','validOpts':[''],'isPro':!![],'examples':[a124i(0x175)],'description':a124i(0x186)},async function(){const j=a124i;return{'success':!![],'message':j(0x177),'details':{'filesCreated':[j(0x182)],'filesUpdated':['/foo']}};},async function(){},a124e);function a124c(){const k=['apply','toString','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20kit\x20for\x20Esri\x20Maps.\x20Starting\x20with\x20a\x20basic\x20map,\x0a\x20\x20\x20\x20but\x20with\x20the\x20ability\x20to\x20add\x20more\x20components\x20to\x20the\x20kit.\x0a\x20\x20','maka\x20g:kit:e','413328SpCzeG','Esri\x20Kit\x20generated\x20successfully','(((.+)+)+)+$','123XXUqMG','790850eJfnJb','2224345QdMypw','4735656jufLPS','constructor','678rXwLKv','search','49254QPPgLY','2264247YBSPyx','/foo/bar','48979hHzAxU'];a124c=function(){return k;};return a124c();}export default EsriGen;
1
+ const a124i=a124d;(function(a,b){const f=a124d,c=a();while(!![]){try{const d=-parseInt(f(0x10d))/0x1*(-parseInt(f(0x10e))/0x2)+-parseInt(f(0xfd))/0x3*(-parseInt(f(0x107))/0x4)+parseInt(f(0x10c))/0x5*(parseInt(f(0xfe))/0x6)+-parseInt(f(0x10f))/0x7+parseInt(f(0x102))/0x8+-parseInt(f(0x103))/0x9+-parseInt(f(0x111))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xc1435));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a124d;if(c){const e=c[g(0x104)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const h=a124d;return a124a['toString']()[h(0xff)](h(0x101))[h(0x10a)]()[h(0x100)](a124a)[h(0xff)]('(((.+)+)+)+$');});function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0xfc;let f=c[d];return f;},a124d(a,b);}a124a();import{Generator}from'../../../generator.js';import a124e from'../kit.js';function a124c(){const k=['19509150iGuaMu','Esri\x20Kit\x20generated\x20successfully','3VZFWye','12vlxrKs','search','constructor','(((.+)+)+)+$','4901600TORSAN','6933501sUdsPG','apply','/foo','esri','3884020wGFZNi','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','toString','create','2305405XUCWSw','1324094wcyOmQ','2QLZAog','2219364fXVQwh','/foo/bar'];a124c=function(){return k;};return a124c();}const EsriGen=Generator[a124i(0x10b)]({'name':a124i(0x106),'aliases':['e'],'usage':a124i(0x109),'noNeedResource':!![],'shortDesc':a124i(0x108),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:e'],'description':'\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20kit\x20for\x20Esri\x20Maps.\x20Starting\x20with\x20a\x20basic\x20map,\x0a\x20\x20\x20\x20but\x20with\x20the\x20ability\x20to\x20add\x20more\x20components\x20to\x20the\x20kit.\x0a\x20\x20'},async function(){const j=a124i;return{'success':!![],'message':j(0xfc),'details':{'filesCreated':[j(0x110)],'filesUpdated':[j(0x105)]}};},async function(){},a124e);export default EsriGen;
@@ -1 +1 @@
1
- function a125c(){const v=['maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','8043558bEauki','split','template','3918795OkhLEY','842932RdkOYx','map','create','dir','/imports/startup/client/templates','react','findProjectDirectory','toString','494966ZGyklT','Generate\x20an\x20Esri\x20map\x20component','appName','engines','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','injectTemplateModule','replaceAll','esri-loader','.js','<div\x20id=\x22map\x22>','kit/esri/map/','1062117xMstwI','processAndRunGenerator','getMakaProjectConfig','4938790OaLaAD','baseDir','pathFromApp','fsi','page','27TgKAPX','injectImport','bright','apply','withValue','1BpDNAP','10yTRvfz','constructor','checkNpmPackage','11602456BPXDXm','FALSE','injectIntoFile','exit'];a125c=function(){return v;};return a125c();}const a125s=a125d;(function(a,b){const p=a125d,c=a();while(!![]){try{const d=parseInt(p(0x92))/0x1*(parseInt(p(0xa7))/0x2)+parseInt(p(0x9e))/0x3+-parseInt(p(0x9f))/0x4*(-parseInt(p(0x93))/0x5)+-parseInt(p(0x9b))/0x6+parseInt(p(0x85))/0x7+parseInt(p(0x96))/0x8+-parseInt(p(0x8d))/0x9*(parseInt(p(0x88))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xb854e));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a125d;if(c){const e=c[q(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const r=a125d;return a125a[r(0xa6)]()['search']('(((.+)+)+)+$')[r(0xa6)]()[r(0x94)](a125a)['search']('(((.+)+)+)+$');});function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x7e;let f=c[d];return f;},a125d(a,b);}a125a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a125e from'./esri.generator.js';import a125f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a125s(0xa1)]({'name':'map','aliases':['m'],'usage':a125s(0x9a),'shortDesc':a125s(0xa8),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines['REACT'],'ssr':SsrEngines[a125s(0x97)]},'description':'\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20map\x20component\x20in\x20the\x20/imports/ui/hooks\x20directory.\x0a\x0a\x20\x20\x20\x20It\x27ll\x20also\x20create\x20a\x20page\x20component\x20in\x20the\x20/imports/ui/pages/map\x20directory.\x0a\x0a\x20\x20\x20\x20The\x20map\x20component\x20will\x20be\x20named\x20\x27BasicMap\x27\x20by\x20default.\x0a\x0a\x20\x20'},async function(a,b){const t=a125s;try{Log[t(0x8f)]('Generating\x20a\x20map\x20component');const c='basic-map';await this[t(0x8b)][t(0x95)](['@esri/react-arcgis',t(0x81)],{'shouldInstall':!![]});const d=this[t(0x8b)][t(0xa5)](),f=this['fsi'][t(0x87)](),g=f[t(0xaa)]['ssr']==='true',h=await a125f[t(0x86)](t(0x8c),[t(0xa0)],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0xa9)])[t(0x80)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0x89)]?'/imports/ui/'+b[t(0x89)]:'/imports/ui/hooks',k=this[t(0x8b)][t(0x8a)]({'pathParts':[j,b[t(0xa2)],paramCase(c),paramCase(c)]});await this[t(0x8b)][t(0x91)](f,async()=>{const u=t;await this[u(0x8b)][u(0x9d)]({'srcPath':u(0x84)+c+u(0x82),'destPath':k+u(0x82),'framework':u(0xa4),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0xa2)]+'/'+c+'/'+c;await this[t(0x8b)][t(0x7f)](c,f,l);const m=h[t(0x9c)]('/'),n=this[t(0x8b)][t(0x8a)]({'pathParts':m});await this['fsi'][t(0x8e)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':t(0xa3),'isNamedExport':!![]}),await this['fsi'][t(0x98)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x7e),'begin':[t(0x83),t(0x83)],'end':['</div>'],'replace':!![]});}catch(o){Log['error'](o),process[t(0x99)](0x1);}},async function(){},a125e);
1
+ const a125s=a125d;(function(a,b){const p=a125d,c=a();while(!![]){try{const d=-parseInt(p(0x115))/0x1+-parseInt(p(0x100))/0x2+parseInt(p(0x102))/0x3+-parseInt(p(0x105))/0x4*(parseInt(p(0x101))/0x5)+parseInt(p(0x11d))/0x6+-parseInt(p(0x10d))/0x7*(parseInt(p(0x104))/0x8)+-parseInt(p(0x122))/0x9*(-parseInt(p(0x116))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x74f1d));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a125d;if(c){const e=c[q(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const r=a125d;return a125a[r(0x129)]()[r(0x125)]('(((.+)+)+)+$')[r(0x129)]()['constructor'](a125a)['search']('(((.+)+)+)+$');});function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x100;let f=c[d];return f;},a125d(a,b);}a125a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a125e from'./esri.generator.js';import a125f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';function a125c(){const v=['713406xKJMYx','apply','exit','injectTemplateModule','react','20088477HSKUdU','true','</div>','search','bright','create','esri-loader','toString','page','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20map\x20component\x20in\x20the\x20/imports/ui/hooks\x20directory.\x0a\x0a\x20\x20\x20\x20It\x27ll\x20also\x20create\x20a\x20page\x20component\x20in\x20the\x20/imports/ui/pages/map\x20directory.\x0a\x0a\x20\x20\x20\x20The\x20map\x20component\x20will\x20be\x20named\x20\x27BasicMap\x27\x20by\x20default.\x0a\x0a\x20\x20','map','1593480zXLmwL','483095dOUbEC','1507227SrudmW','replaceAll','8jQyCuP','4tycKcM','REACT','fsi','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','template','<div\x20id=\x22map\x22>','.js','Generating\x20a\x20map\x20component','5714996iDBsGP','getMakaProjectConfig','injectIntoFile','dir','engines','split','error','/imports/ui/hooks','664571UxfIMD','10CSnSir','FALSE','ssr','@esri/react-arcgis','appName','checkNpmPackage','withValue'];a125c=function(){return v;};return a125c();}Generator[a125s(0x127)]({'name':a125s(0x12c),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','shortDesc':'Generate\x20an\x20Esri\x20map\x20component','validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a125s(0x106)],'ssr':SsrEngines[a125s(0x117)]},'description':a125s(0x12b)},async function(a,b){const t=a125s;try{Log[t(0x126)](t(0x10c));const c='basic-map';await this[t(0x107)][t(0x11b)]([t(0x119),t(0x128)],{'shouldInstall':!![]});const d=this[t(0x107)]['findProjectDirectory'](),f=this[t(0x107)][t(0x10e)](),g=f[t(0x111)][t(0x118)]===t(0x123),h=await a125f['processAndRunGenerator'](t(0x12a),[t(0x12c)],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0x11a)])[t(0x103)]('-','\x20'),'componentName':pascalCase(c)},j=b['baseDir']?'/imports/ui/'+b['baseDir']:t(0x114),k=this[t(0x107)]['pathFromApp']({'pathParts':[j,b[t(0x110)],paramCase(c),paramCase(c)]});await this['fsi'][t(0x11c)](f,async()=>{const u=t;await this['fsi'][u(0x109)]({'srcPath':'kit/esri/map/'+c+u(0x10b),'destPath':k+'.js','framework':u(0x121),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0x110)]+'/'+c+'/'+c;await this['fsi'][t(0x120)](c,f,l);const m=h[t(0x112)]('/'),n=this[t(0x107)]['pathFromApp']({'pathParts':m});await this[t(0x107)]['injectImport']({'filePath':n,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':'/imports/startup/client/templates','isNamedExport':!![]}),await this[t(0x107)][t(0x10f)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x108),'begin':['<div\x20id=\x22map\x22>',t(0x10a)],'end':[t(0x124)],'replace':!![]});}catch(o){Log[t(0x113)](o),process[t(0x11f)](0x1);}},async function(){},a125e);
@@ -1 +1 @@
1
- const a126h=a126d;(function(a,b){const f=a126d,c=a();while(!![]){try{const d=parseInt(f(0x1cd))/0x1+-parseInt(f(0x1cf))/0x2+parseInt(f(0x1c5))/0x3+parseInt(f(0x1ca))/0x4+-parseInt(f(0x1d2))/0x5*(parseInt(f(0x1cc))/0x6)+-parseInt(f(0x1cb))/0x7*(parseInt(f(0x1c3))/0x8)+parseInt(f(0x1c7))/0x9*(parseInt(f(0x1c9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x34835));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const g=a126d;return a126a[g(0x1d0)]()[g(0x1c6)]('(((.+)+)+)+$')[g(0x1d0)]()[g(0x1d1)](a126a)[g(0x1c6)](g(0x1c4));});a126a();import{Generator}from'../../generator.js';const KitGen=Generator['create']({'name':'kit','aliases':['k'],'usage':a126h(0x1c8),'shortDesc':'Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a126h(0x1ce),'maka\x20g:k']},async function(){});function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a126d(a,b);}function a126c(){const i=['constructor','5pxMNLp','8CUOtfL','(((.+)+)+)+$','774951ACaIZR','search','3262149EMvbFg','maka\x20{generate,\x20g}:{kit}\x20<name>','10SnDJLc','702272rTgxLt','1383557OxKpeI','1810650CxLZDv','7382LgNxmu','maka\x20g:kit','178418SelnYE','toString'];a126c=function(){return i;};return a126c();}export default KitGen;
1
+ const a126i=a126d;(function(a,b){const f=a126d,c=a();while(!![]){try{const d=-parseInt(f(0x1d8))/0x1+parseInt(f(0x1c8))/0x2+parseInt(f(0x1cb))/0x3+parseInt(f(0x1d6))/0x4*(-parseInt(f(0x1ce))/0x5)+parseInt(f(0x1c6))/0x6*(-parseInt(f(0x1d7))/0x7)+parseInt(f(0x1d5))/0x8*(-parseInt(f(0x1ca))/0x9)+parseInt(f(0x1da))/0xa*(parseInt(f(0x1c9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x1f6f7));function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a126d(a,b);}function a126c(){const j=['457060kcrLph','16597YldPAQ','64730BLbBmv','maka\x20g:kit','3020UjOSfF','480CrHTQK','toString','150820qdppjX','19569KrRssF','9qwlLBs','133563aaAtYe','kit','constructor','5nRKlon','apply','maka\x20{generate,\x20g}:{kit}\x20<name>','(((.+)+)+)+$','maka\x20g:k','search','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','1278040toOuSl'];a126c=function(){return j;};return a126c();}const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a126d;if(c){const e=c[g(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const h=a126d;return a126a[h(0x1c7)]()[h(0x1d3)](h(0x1d1))[h(0x1c7)]()[h(0x1cd)](a126a)[h(0x1d3)](h(0x1d1));});a126a();import{Generator}from'../../generator.js';const KitGen=Generator['create']({'name':a126i(0x1cc),'aliases':['k'],'usage':a126i(0x1d0),'shortDesc':a126i(0x1d4),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a126i(0x1d9),a126i(0x1d2)]},async function(){});export default KitGen;
@@ -1 +1 @@
1
- (function(a,b){var f=a127d,c=a();while(!![]){try{var d=-parseInt(f(0x111))/0x1+-parseInt(f(0x112))/0x2*(parseInt(f(0x117))/0x3)+-parseInt(f(0x11d))/0x4+-parseInt(f(0x11e))/0x5*(parseInt(f(0x119))/0x6)+-parseInt(f(0x118))/0x7+-parseInt(f(0x114))/0x8*(parseInt(f(0x113))/0x9)+parseInt(f(0x116))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x1c072));var a127b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){var g=a127d;return a127a[g(0x11a)]()[g(0x11b)](g(0x115))[g(0x11a)]()[g(0x11c)](a127a)['search']('(((.+)+)+)+$');});a127a();import'./mui.generator.js';function a127d(a,b){var c=a127c();return a127d=function(d,e){d=d-0x111;var f=c[d];return f;},a127d(a,b);}import'./frame.mui.gen.js';import'./auth.mui.gen.js';function a127c(){var h=['369cQWBeg','11464dOAtOZ','(((.+)+)+)+$','9594520bAueIn','139812tiZuPD','1507548TAUxLi','876kXJeXI','toString','search','constructor','555044mPZdsD','6125peTfbv','66506PSnskZ','8dvwkXu'];a127c=function(){return h;};return a127c();}
1
+ (function(a,b){var f=a127d,c=a();while(!![]){try{var d=-parseInt(f(0x1bd))/0x1+parseInt(f(0x1c2))/0x2+-parseInt(f(0x1c6))/0x3*(parseInt(f(0x1bf))/0x4)+-parseInt(f(0x1c5))/0x5*(-parseInt(f(0x1c0))/0x6)+-parseInt(f(0x1c3))/0x7+parseInt(f(0x1c7))/0x8*(parseInt(f(0x1c1))/0x9)+parseInt(f(0x1c9))/0xa*(parseInt(f(0x1be))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x5bc92));var a127b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){var g=a127d;return a127a[g(0x1c4)]()[g(0x1ca)]('(((.+)+)+)+$')[g(0x1c4)]()['constructor'](a127a)[g(0x1ca)](g(0x1c8));});a127a();import'./mui.generator.js';function a127d(a,b){var c=a127c();return a127d=function(d,e){d=d-0x1bd;var f=c[d];return f;},a127d(a,b);}import'./frame.mui.gen.js';function a127c(){var h=['18biYawC','631474RXFIvS','5088244KKdEcH','toString','3142175ioIKCE','30333LBPrDn','2410160xkfCIm','(((.+)+)+)+$','30zwOljL','search','387030EbmfDQ','940885dqeqis','124dHEiZx','6WzKwMx'];a127c=function(){return h;};return a127c();}import'./auth.mui.gen.js';
@@ -1 +1 @@
1
- const a128J=a128d;(function(a,b){const G=a128d,c=a();while(!![]){try{const d=parseInt(G(0xef))/0x1+parseInt(G(0xb8))/0x2+parseInt(G(0xe0))/0x3+parseInt(G(0xe7))/0x4*(parseInt(G(0xdb))/0x5)+-parseInt(G(0xfb))/0x6+parseInt(G(0xde))/0x7*(parseInt(G(0xf4))/0x8)+parseInt(G(0xd1))/0x9*(-parseInt(G(0xf8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xc03ad));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a128d;if(c){const e=c[H(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const I=a128d;return a128a[I(0xc1)]()['search'](I(0xca))[I(0xc1)]()[I(0xbb)](a128a)[I(0xba)](I(0xca));});a128a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xb7;let f=c[d];return f;},a128d(a,b);}import{Actions}from'../../../tools/actions/actions.class.js';import a128e from'../../../generators/maka.gen.js';import a128f from'./mui.generator.js';import{paramCase,headerCase}from'change-case';function a128c(){const N=['REACT','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','apply','maka\x20g:k:m:f','toString','/imports/ui/','custom','kit/mui/auth/forgot-password/','kit/mui/auth/login/','log','basic-forgot-password-page','ssr','kit/mui/auth/register/','(((.+)+)+)+$','layouts','.js','split','dir','appName','replaceAll','2330154yzYXMY','Custom\x20(roll\x20your\x20own)','injectImport','kit:auth:meteor','login','forgot-password','engines','maka\x20generate:kit:mui:frame','Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','pathFromApp','10gqchMB','template','register','9617713vrLMOI','/imports/startup/client/authentication-provider','2862972inFuIx','Meteor\x20Accounts','basic-login-page','basic-logout-page','options','/imports/ui/pages/auth','react','2533304wbXEwE','findProjectDirectory','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','route','AuthContext','baseDir','fsi','270512aRRobm','basic-password-reset-page','list','force','MATERIAL','8jpgvkp','basic-register-page','getMakaProjectConfig','kit:auth:provider','130rWERaJ','processAndRunGenerator','injectTemplateModule','6854034cqPoGI','withValue','/imports/startup/lib/authentication-provider','meteor','2860086ALZlok','logout','search','constructor','kit/mui/auth/password-reset/'];a128c=function(){return N;};return a128c();}import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':'auth','aliases':['a'],'usage':a128J(0xe9),'shortDesc':a128J(0xd9),'validOpts':[a128J(0xcb),'force'],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a128J(0xf3)],'client':ClientEngines[a128J(0xbd)]},'examples':[a128J(0xd8),a128J(0xc0)],'description':a128J(0xea)},async function(a,b){const K=a128J;try{const c=b[K(0xf2)]||![],d=this[K(0xee)][K(0xe8)](),f=this[K(0xee)][K(0xf6)](),{authType:g}=await Actions[K(0xe4)]({'type':K(0xf1),'name':'authType','message':K(0xbe),'choices':[{'name':K(0xe1),'value':K(0xb7)},{'name':K(0xd2),'value':K(0xc3)}]}),h=K(0xe2),i=K(0xe3),j=K(0xf5),k=K(0xf0),l=K(0xc7),m=b[K(0xed)]?K(0xc2)+b['baseDir']:K(0xe5),n=this['fsi'][K(0xda)]({'pathParts':[m,b[K(0xce)],paramCase(h),paramCase(h)]}),o=this[K(0xee)][K(0xda)]({'pathParts':[m,b['dir'],paramCase(i),paramCase(i)]}),p=this[K(0xee)][K(0xda)]({'pathParts':[m,b[K(0xce)],paramCase(j),paramCase(j)]}),q=this[K(0xee)][K(0xda)]({'pathParts':[m,b[K(0xce)],paramCase(k),paramCase(k)]}),r=this['fsi'][K(0xda)]({'pathParts':[m,b[K(0xce)],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[K(0xcf)])[K(0xd0)]('-','\x20')};await this[K(0xee)][K(0xfc)](f,async()=>{const L=K;await this['fsi'][L(0xdc)]({'srcPath':L(0xc5)+h+L(0xcc),'destPath':n+'.js','framework':L(0xe6),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0xee)]['template']({'srcPath':'kit/mui/auth/logout/'+i+L(0xcc),'destPath':o+L(0xcc),'framework':L(0xe6),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0xee)][L(0xdc)]({'srcPath':L(0xc9)+j+L(0xcc),'destPath':p+'.js','framework':L(0xe6),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0xee)][L(0xdc)]({'srcPath':L(0xbc)+k+'.js','destPath':q+L(0xcc),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[L(0xee)][L(0xdc)]({'srcPath':L(0xc4)+l+L(0xcc),'destPath':r+L(0xcc),'framework':L(0xe6),'context':s,'config':f,'force':c,'ignore':![]});});const t=''+m+b[K(0xce)]+'/'+h+'/'+h;await this['fsi'][K(0xfa)](h,f,t);const u=''+m+b[K(0xce)]+'/'+i+'/'+i;await this[K(0xee)][K(0xfa)](i,f,u);const v=''+m+b['dir']+'/'+j+'/'+j;await this[K(0xee)][K(0xfa)](j,f,v);const w=''+m+b[K(0xce)]+'/'+k+'/'+k;await this[K(0xee)]['injectTemplateModule'](k,f,w);const x=''+m+b[K(0xce)]+'/'+l+'/'+l;await this[K(0xee)][K(0xfa)](l,f,x),await a128e[K(0xf9)](K(0xeb),[K(0xe2)],{'url':K(0xd5),'cwd':d,'config':f}),await a128e['processAndRunGenerator']('route',[K(0xe3)],{'url':K(0xb9),'private':!![],'cwd':d,'config':f}),await a128e[K(0xf9)]('route',[K(0xf5)],{'url':K(0xdd),'cwd':d,'config':f}),await a128e[K(0xf9)](K(0xeb),[K(0xf0)],{'url':'reset-password/:token','cwd':d,'config':f}),await a128e['processAndRunGenerator'](K(0xeb),[K(0xc7)],{'url':K(0xd6),'cwd':d,'config':f});g==='meteor'&&await a128e[K(0xf9)](K(0xd4),[],{'force':c,'cwd':d,'config':f});g==='custom'&&await a128e['processAndRunGenerator'](K(0xf7),[],{'force':c,'cwd':d,'config':f});const y=f['engines'][K(0xc8)]==='true',z=f[K(0xd7)]['js'],A=this['fsi'][K(0xda)]({'pathParts':t[K(0xcd)]('/')});await this[K(0xee)][K(0xd3)]({'filePath':A+'.'+z,'importName':K(0xec),'modulePath':y?'/imports/startup/lib/authentication-provider':'/imports/startup/client/authentication-provider','isNamedExport':!![]});const B=this['fsi']['pathFromApp']({'pathParts':u[K(0xcd)]('/')});await this['fsi'][K(0xd3)]({'filePath':B+'.'+z,'importName':K(0xec),'modulePath':y?K(0xfd):K(0xdf),'isNamedExport':!![]});const C=this[K(0xee)]['pathFromApp']({'pathParts':v[K(0xcd)]('/')});await this[K(0xee)][K(0xd3)]({'filePath':C+'.'+z,'importName':K(0xec),'modulePath':y?'/imports/startup/lib/authentication-provider':K(0xdf),'isNamedExport':!![]});const D=this[K(0xee)][K(0xda)]({'pathParts':w[K(0xcd)]('/')});await this[K(0xee)]['injectImport']({'filePath':D+'.'+z,'importName':K(0xec),'modulePath':y?K(0xfd):K(0xdf),'isNamedExport':!![]});const E=this['fsi'][K(0xda)]({'pathParts':x['split']('/')});await this[K(0xee)][K(0xd3)]({'filePath':E+'.'+z,'importName':K(0xec),'modulePath':y?K(0xfd):K(0xdf),'isNamedExport':!![]});}catch(F){Log['error'](F);}},async function(){const M=a128J;console[M(0xc6)]('Cleaning\x20up...');},a128f);
1
+ const a128J=a128d;(function(a,b){const G=a128d,c=a();while(!![]){try{const d=-parseInt(G(0x13a))/0x1+-parseInt(G(0x172))/0x2*(-parseInt(G(0x174))/0x3)+parseInt(G(0x146))/0x4+parseInt(G(0x15b))/0x5*(parseInt(G(0x14e))/0x6)+parseInt(G(0x13f))/0x7+parseInt(G(0x140))/0x8+-parseInt(G(0x151))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x6b561));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a128d;if(c){const e=c[H(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const I=a128d;return a128a[I(0x150)]()[I(0x155)](I(0x141))['toString']()['constructor'](a128a)[I(0x155)](I(0x141));});a128a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a128c(){const N=['699566faSoLl','3171920kEvTrw','(((.+)+)+)+$','/imports/startup/lib/authentication-provider','register','options','withValue','3244060eLmIPm','findProjectDirectory','reset-password/:token','baseDir','authType','custom','kit/mui/auth/logout/','basic-login-page','12kMZIOx','kit:auth:provider','toString','12732786zfvVxi','kit/mui/auth/login/','kit/mui/auth/forgot-password/','split','search','create','/imports/ui/','injectTemplateModule','kit/mui/auth/password-reset/','login','1499240wFVAKG','true','dir','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','force','basic-register-page','maka\x20g:k:m:f','template','Cleaning\x20up...','replaceAll','error','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','react','route','basic-password-reset-page','layouts','AuthContext','Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','meteor','forgot-password','logout','processAndRunGenerator','38tJglLn','Meteor\x20Accounts','8145uPeGaG','list','.js','/imports/startup/client/authentication-provider','engines','Custom\x20(roll\x20your\x20own)','basic-forgot-password-page','REACT','pathFromApp','apply','log','fsi','104321cNMMIh','appName','basic-logout-page','injectImport','kit:auth:meteor'];a128c=function(){return N;};return a128c();}import a128e from'../../../generators/maka.gen.js';import a128f from'./mui.generator.js';import{paramCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x132;let f=c[d];return f;},a128d(a,b);}Generator[a128J(0x156)]({'name':'auth','aliases':['a'],'usage':a128J(0x15e),'shortDesc':a128J(0x16c),'validOpts':[a128J(0x16a),a128J(0x15f)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a128J(0x135)]},'examples':['maka\x20generate:kit:mui:frame',a128J(0x161)],'description':a128J(0x16d)},async function(a,b){const K=a128J;try{const c=b[K(0x15f)]||![],d=this[K(0x139)][K(0x147)](),f=this[K(0x139)]['getMakaProjectConfig'](),{authType:g}=await Actions[K(0x144)]({'type':K(0x175),'name':K(0x14a),'message':K(0x166),'choices':[{'name':K(0x173),'value':K(0x16e)},{'name':K(0x133),'value':K(0x14b)}]}),h='basic-login-page',i=K(0x13c),j=K(0x160),k=K(0x169),l=K(0x134),m=b[K(0x149)]?K(0x157)+b[K(0x149)]:'/imports/ui/pages/auth',n=this[K(0x139)][K(0x136)]({'pathParts':[m,b[K(0x15d)],paramCase(h),paramCase(h)]}),o=this[K(0x139)][K(0x136)]({'pathParts':[m,b[K(0x15d)],paramCase(i),paramCase(i)]}),p=this['fsi'][K(0x136)]({'pathParts':[m,b[K(0x15d)],paramCase(j),paramCase(j)]}),q=this[K(0x139)][K(0x136)]({'pathParts':[m,b[K(0x15d)],paramCase(k),paramCase(k)]}),r=this[K(0x139)]['pathFromApp']({'pathParts':[m,b[K(0x15d)],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[K(0x13b)])[K(0x164)]('-','\x20')};await this[K(0x139)][K(0x145)](f,async()=>{const L=K;await this[L(0x139)][L(0x162)]({'srcPath':L(0x152)+h+'.js','destPath':n+L(0x176),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x139)][L(0x162)]({'srcPath':L(0x14c)+i+'.js','destPath':o+L(0x176),'framework':L(0x167),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x139)][L(0x162)]({'srcPath':'kit/mui/auth/register/'+j+'.js','destPath':p+'.js','framework':L(0x167),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x139)][L(0x162)]({'srcPath':L(0x159)+k+L(0x176),'destPath':q+L(0x176),'framework':L(0x167),'context':s,'config':f,'force':c,'ignore':![]}),await this['fsi']['template']({'srcPath':L(0x153)+l+L(0x176),'destPath':r+L(0x176),'framework':L(0x167),'context':s,'config':f,'force':c,'ignore':![]});});const t=''+m+b[K(0x15d)]+'/'+h+'/'+h;await this[K(0x139)]['injectTemplateModule'](h,f,t);const u=''+m+b[K(0x15d)]+'/'+i+'/'+i;await this[K(0x139)][K(0x158)](i,f,u);const v=''+m+b[K(0x15d)]+'/'+j+'/'+j;await this[K(0x139)][K(0x158)](j,f,v);const w=''+m+b['dir']+'/'+k+'/'+k;await this[K(0x139)][K(0x158)](k,f,w);const x=''+m+b[K(0x15d)]+'/'+l+'/'+l;await this[K(0x139)][K(0x158)](l,f,x),await a128e[K(0x171)](K(0x168),[K(0x14d)],{'url':K(0x15a),'cwd':d,'config':f}),await a128e[K(0x171)](K(0x168),['basic-logout-page'],{'url':K(0x170),'private':!![],'cwd':d,'config':f}),await a128e[K(0x171)](K(0x168),[K(0x160)],{'url':K(0x143),'cwd':d,'config':f}),await a128e[K(0x171)](K(0x168),[K(0x169)],{'url':K(0x148),'cwd':d,'config':f}),await a128e[K(0x171)](K(0x168),[K(0x134)],{'url':K(0x16f),'cwd':d,'config':f});g==='meteor'&&await a128e['processAndRunGenerator'](K(0x13e),[],{'force':c,'cwd':d,'config':f});g===K(0x14b)&&await a128e[K(0x171)](K(0x14f),[],{'force':c,'cwd':d,'config':f});const y=f[K(0x132)]['ssr']===K(0x15c),z=f[K(0x132)]['js'],A=this['fsi'][K(0x136)]({'pathParts':t[K(0x154)]('/')});await this[K(0x139)][K(0x13d)]({'filePath':A+'.'+z,'importName':K(0x16b),'modulePath':y?K(0x142):K(0x177),'isNamedExport':!![]});const B=this[K(0x139)][K(0x136)]({'pathParts':u[K(0x154)]('/')});await this[K(0x139)]['injectImport']({'filePath':B+'.'+z,'importName':K(0x16b),'modulePath':y?'/imports/startup/lib/authentication-provider':K(0x177),'isNamedExport':!![]});const C=this[K(0x139)][K(0x136)]({'pathParts':v[K(0x154)]('/')});await this[K(0x139)][K(0x13d)]({'filePath':C+'.'+z,'importName':K(0x16b),'modulePath':y?'/imports/startup/lib/authentication-provider':K(0x177),'isNamedExport':!![]});const D=this[K(0x139)]['pathFromApp']({'pathParts':w[K(0x154)]('/')});await this[K(0x139)]['injectImport']({'filePath':D+'.'+z,'importName':K(0x16b),'modulePath':y?K(0x142):'/imports/startup/client/authentication-provider','isNamedExport':!![]});const E=this[K(0x139)][K(0x136)]({'pathParts':x[K(0x154)]('/')});await this[K(0x139)][K(0x13d)]({'filePath':E+'.'+z,'importName':K(0x16b),'modulePath':y?'/imports/startup/lib/authentication-provider':K(0x177),'isNamedExport':!![]});}catch(F){Log[K(0x165)](F);}},async function(){const M=a128J;console[M(0x138)](M(0x163));},a128f);
@@ -1 +1 @@
1
- const a129E=a129d;(function(a,b){const B=a129d,c=a();while(!![]){try{const d=-parseInt(B(0x14b))/0x1*(parseInt(B(0x161))/0x2)+-parseInt(B(0x12f))/0x3*(parseInt(B(0x120))/0x4)+parseInt(B(0x146))/0x5*(-parseInt(B(0x162))/0x6)+-parseInt(B(0x133))/0x7+-parseInt(B(0x147))/0x8*(parseInt(B(0x135))/0x9)+parseInt(B(0x143))/0xa+parseInt(B(0x12b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x8db27));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a129d;if(c){const e=c[C(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const D=a129d;return a129a[D(0x12a)]()['search'](D(0x11c))['toString']()[D(0x144)](a129a)[D(0x164)](D(0x11c));});a129a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a129e from'path';import a129f from'./mui.generator.js';function a129c(){const I=['.js','/imports/startup/lib/templates','length','template','dir','imports','getDirectories','kit/mui/frame/app-bars/','withValue','ssr','<div\x20id=\x22','{\x20this.props.children\x20}','881210mBltmW','constructor','layouts','5MAOQYR','49784QflbDj','fsi','checkbox','/imports/ui/','11MQmyqv','maka\x20generate:kit:mui:frame','appName','Cleaning\x20up...','{\x20props.children\x20}','true','force','tests','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','app-tests','injectAroundString','react','@mui/material/Box','</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','getMakaProjectConfig','maka:react-tracker','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','injectImport','engines','kit/mui/frame/footers/','injectIntoFile','{props.children}','51426tWHAlx','488190jwhFeN','session','search','injectTemplateModule','No\x20layouts\x20selected','basic-drawer','(((.+)+)+)+$','error','log','getFiles','88mLHpQf','options','-hook\x22>','<Box\x20style={{\x20display:\x20\x27flex\x27,\x20flexDirection:\x20\x27column\x27,\x20minHeight:\x20\x27calc(100vh\x20-\x20157px)\x27\x20}}>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Container\x20component=\x22main\x22>','maka\x20g:k:m:f','frame','kit/mui/frame/drawers/','MATERIAL','jsx','join','toString','19230640DpSuoR','baseDir','/imports/ui/components','/imports/startup/client/templates','4527kxWyiw','apply','</div>','{this.props.children}','3875459bFdjOu','\x20/>\x0a','441IWzQcR','pathFromApp'];a129c=function(){return I;};return a129c();}import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x11c;let f=c[d];return f;},a129d(a,b);}Generator['create']({'name':a129E(0x125),'aliases':['f'],'usage':a129E(0x15b),'shortDesc':a129E(0x153),'validOpts':[a129E(0x145),'baseDir',a129E(0x13b),a129E(0x151)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a129E(0x127)],'client':ClientEngines['REACT']},'examples':[a129E(0x14c),a129E(0x124)],'description':'\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20'},async function(a,b){const F=a129E;try{const c=b[F(0x151)]||![],d='basic-app-bar',f=F(0x167),g='basic-sticky-footer',h=this[F(0x148)][F(0x159)](),i=h[F(0x15d)][F(0x140)]===F(0x150);await this[F(0x148)]['checkMeteorPackage']([F(0x163),F(0x15a)],{'shouldInstall':!![]});const j=this[F(0x148)]['findAppDirectory'](),k=a129e[F(0x129)](j,F(0x13c),'ui',F(0x145)),l=this[F(0x148)][F(0x13d)](k),m=await Actions[F(0x121)]({'type':F(0x149),'name':F(0x145),'message':'Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','choices':l});if(m['layouts'][F(0x139)]===0x0){Log['error'](F(0x166));return;}const n=b[F(0x12c)]?F(0x14a)+b[F(0x12c)]:F(0x12d),o=this[F(0x148)][F(0x136)]({'pathParts':[n,b[F(0x13b)],paramCase(d),paramCase(d)]}),p=this[F(0x148)][F(0x136)]({'pathParts':[n,b[F(0x13b)],paramCase(f),paramCase(f)]}),q=this[F(0x148)][F(0x136)]({'pathParts':[n,b[F(0x13b)],paramCase(g),paramCase(g)]}),r={'name':headerCase(h[F(0x14d)])['replaceAll']('-','\x20')};await this['fsi'][F(0x13f)](h,async()=>{const G=F;await this[G(0x148)][G(0x13a)]({'srcPath':G(0x13e)+d+G(0x137),'destPath':o+G(0x137),'framework':G(0x156),'context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x148)]['template']({'srcPath':G(0x126)+f+G(0x137),'destPath':p+'.js','framework':G(0x156),'context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x148)][G(0x13a)]({'srcPath':G(0x15e)+g+G(0x137),'destPath':q+'.js','framework':'react','context':r,'config':h,'force':c,'ignore':![]});});const s=''+n+b[F(0x13b)]+'/'+d+'/'+d;await this['fsi'][F(0x165)](d,h,s);const t=''+n+b['dir']+'/'+f+'/'+f;await this[F(0x148)][F(0x165)](f,h,t);const u=''+n+b[F(0x13b)]+'/'+g+'/'+g;await this[F(0x148)][F(0x165)](g,h,u);const {layouts:v}=m;for(const w of v){const x=this['fsi'][F(0x11f)](a129e[F(0x129)](k,w),{'extensions':[F(0x128),'tsx'],'omit':[F(0x154),F(0x152),'test']});for(const y of x){const z=a129e[F(0x129)](k,w,y);await this[F(0x148)]['injectImport']({'filePath':z,'importName':'Box','modulePath':F(0x157),'isNamedExport':![]}),await this[F(0x148)][F(0x15c)]({'filePath':z,'importName':'Container','modulePath':'@mui/material/Container','isNamedExport':![]}),await this[F(0x148)][F(0x15c)]({'filePath':z,'importName':pascalCase(d),'modulePath':i?F(0x138):F(0x12e),'isNamedExport':!![]}),await this[F(0x148)]['injectIntoFile']({'filePath':z,'content':'<'+pascalCase(d)+F(0x134),'begin':[F(0x141)+w+'\x22>',F(0x141)+w+F(0x122)],'end':[F(0x132),F(0x142),F(0x160),'{\x20props.children\x20}']}),await this[F(0x148)]['injectImport']({'filePath':z,'importName':pascalCase(f),'modulePath':i?F(0x138):F(0x12e),'isNamedExport':!![]}),await this[F(0x148)]['injectIntoFile']({'filePath':z,'content':'<'+pascalCase(f)+F(0x134),'begin':[F(0x141)+w+'\x22>','<div\x20id=\x22'+w+F(0x122)],'end':[F(0x132),F(0x142),F(0x160),F(0x14f)]}),await this[F(0x148)][F(0x15f)]({'filePath':z,'content':'<'+pascalCase(g)+F(0x134),'begin':[F(0x132),'{\x20this.props.children\x20}',F(0x160),'{\x20props.children\x20}'],'end':[F(0x131)]}),await this[F(0x148)][F(0x15c)]({'filePath':z,'importName':pascalCase(g),'modulePath':i?'/imports/startup/lib/templates':'/imports/startup/client/templates','isNamedExport':!![]}),await this['fsi'][F(0x155)]({'filePath':z,'aboveContent':F(0x123),'belowContent':F(0x158),'targetString':['{this.props.children}',F(0x142),'{props.children}',F(0x14f)],'targetIndentAdjustment':0x6});}}return!![];}catch(A){Log[F(0x11d)](A);}},async function(){const H=a129E;console[H(0x11e)](H(0x14e));},a129f);
1
+ function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0xb9;let f=c[d];return f;},a129d(a,b);}const a129E=a129d;(function(a,b){const B=a129d,c=a();while(!![]){try{const d=-parseInt(B(0xe7))/0x1+parseInt(B(0xe5))/0x2*(parseInt(B(0xd9))/0x3)+parseInt(B(0xeb))/0x4+parseInt(B(0xc7))/0x5*(-parseInt(B(0xbc))/0x6)+-parseInt(B(0xd3))/0x7*(-parseInt(B(0xb9))/0x8)+-parseInt(B(0x104))/0x9+-parseInt(B(0xda))/0xa*(parseInt(B(0xf9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x5d124));function a129c(){const H=['getFiles','join','appName','injectAroundString','<Box\x20style={{\x20display:\x20\x27flex\x27,\x20flexDirection:\x20\x27column\x27,\x20minHeight:\x20\x27calc(100vh\x20-\x20157px)\x27\x20}}>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Container\x20component=\x22main\x22>','pathFromApp','tests','11FwvRuQ','options','.js','Box','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20frame\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','kit/mui/frame/app-bars/','replaceAll','Container','/imports/startup/client/templates','getDirectories','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','1654389obTqeU','/imports/startup/lib/templates','16888lspBQS','fsi','(((.+)+)+)+$','12MLRrKR','imports','test','<div\x20id=\x22','injectIntoFile','/imports/ui/components','injectImport','-hook\x22>','withValue','dir','kit/mui/frame/drawers/','74765XviMvs','force','basic-sticky-footer','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f}','react','toString','jsx','</div>','MATERIAL','@mui/material/Container','apply','maka\x20generate:kit:mui:frame','847oRnAup','engines','app-tests','REACT','getMakaProjectConfig','kit/mui/frame/footers/','6txbWVl','684620ltdUdz','template','</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','checkMeteorPackage','injectTemplateModule','baseDir','@mui/material/Box','<Outlet/>','create','maka\x20g:k:m:f','checkbox','9634jPXynb','search','151813UZhgAQ','tsx','layouts','error','2200628iRMAZY','length','frame','/imports/ui/','\x20/>\x0a','basic-drawer','No\x20layouts\x20selected'];a129c=function(){return H;};return a129c();}const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a129d;if(c){const e=c[C(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const D=a129d;return a129a[D(0xcc)]()[D(0xe6)](D(0xbb))[D(0xcc)]()['constructor'](a129a)['search']('(((.+)+)+)+$');});a129a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a129e from'path';import a129f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a129E(0xe2)]({'name':a129E(0xed),'aliases':['f'],'usage':a129E(0xca),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','validOpts':[a129E(0xe9),'baseDir',a129E(0xc5),a129E(0xc8)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a129E(0xcf)],'client':ClientEngines[a129E(0xd6)]},'examples':[a129E(0xd2),a129E(0xe3)],'description':a129E(0xfd)},async function(a,b){const F=a129E;try{const c=b[F(0xc8)]||![],d='basic-app-bar',f=F(0xf0),g=F(0xc9),h=this[F(0xba)][F(0xd7)](),i=h[F(0xd4)]['ssr']==='true';await this[F(0xba)][F(0xdd)](['session','maka:react-tracker'],{'shouldInstall':!![]});const j=this[F(0xba)]['findAppDirectory'](),k=a129e[F(0xf3)](j,F(0xbd),'ui','layouts'),l=this[F(0xba)][F(0x102)](k),m=await Actions[F(0xfa)]({'type':F(0xe4),'name':F(0xe9),'message':F(0x103),'choices':l});if(m[F(0xe9)][F(0xec)]===0x0){Log[F(0xea)](F(0xf1));return;}const n=b[F(0xdf)]?F(0xee)+b[F(0xdf)]:F(0xc1),o=this[F(0xba)][F(0xf7)]({'pathParts':[n,b['dir'],paramCase(d),paramCase(d)]}),p=this['fsi'][F(0xf7)]({'pathParts':[n,b[F(0xc5)],paramCase(f),paramCase(f)]}),q=this[F(0xba)][F(0xf7)]({'pathParts':[n,b[F(0xc5)],paramCase(g),paramCase(g)]}),r={'name':headerCase(h[F(0xf4)])[F(0xff)]('-','\x20')};await this['fsi'][F(0xc4)](h,async()=>{const G=F;await this[G(0xba)][G(0xdb)]({'srcPath':G(0xfe)+d+G(0xfb),'destPath':o+G(0xfb),'framework':G(0xcb),'context':r,'config':h,'force':c,'ignore':![]}),await this['fsi']['template']({'srcPath':G(0xc6)+f+G(0xfb),'destPath':p+'.js','framework':'react','context':r,'config':h,'force':c,'ignore':![]}),await this[G(0xba)]['template']({'srcPath':G(0xd8)+g+G(0xfb),'destPath':q+G(0xfb),'framework':'react','context':r,'config':h,'force':c,'ignore':![]});});const s=''+n+b[F(0xc5)]+'/'+d+'/'+d;await this[F(0xba)][F(0xde)](d,h,s);const t=''+n+b['dir']+'/'+f+'/'+f;await this['fsi'][F(0xde)](f,h,t);const u=''+n+b[F(0xc5)]+'/'+g+'/'+g;await this[F(0xba)][F(0xde)](g,h,u);const {layouts:v}=m;for(const w of v){const x=this[F(0xba)][F(0xf2)](a129e[F(0xf3)](k,w),{'extensions':[F(0xcd),F(0xe8)],'omit':[F(0xd5),F(0xf8),F(0xbe)]});for(const y of x){const z=a129e[F(0xf3)](k,w,y);await this[F(0xba)][F(0xc2)]({'filePath':z,'importName':F(0xfc),'modulePath':F(0xe0),'isNamedExport':![]}),await this[F(0xba)][F(0xc2)]({'filePath':z,'importName':F(0x100),'modulePath':F(0xd0),'isNamedExport':![]}),await this[F(0xba)][F(0xc2)]({'filePath':z,'importName':pascalCase(d),'modulePath':i?F(0x105):'/imports/startup/client/templates','isNamedExport':!![]}),await this[F(0xba)][F(0xc0)]({'filePath':z,'content':'<'+pascalCase(d)+'\x20/>\x0a','begin':['<div\x20id=\x22'+w+'\x22>',F(0xbf)+w+'-hook\x22>'],'end':[F(0xe1)]}),await this[F(0xba)]['injectImport']({'filePath':z,'importName':pascalCase(f),'modulePath':i?F(0x105):F(0x101),'isNamedExport':!![]}),await this['fsi'][F(0xc0)]({'filePath':z,'content':'<'+pascalCase(f)+F(0xef),'begin':[F(0xbf)+w+'\x22>',F(0xbf)+w+F(0xc3)],'end':[F(0xe1)]}),await this[F(0xba)][F(0xc0)]({'filePath':z,'content':'<'+pascalCase(g)+F(0xef),'begin':[F(0xe1)],'end':[F(0xce)]}),await this[F(0xba)]['injectImport']({'filePath':z,'importName':pascalCase(g),'modulePath':i?F(0x105):F(0x101),'isNamedExport':!![]}),await this[F(0xba)][F(0xf5)]({'filePath':z,'aboveContent':F(0xf6),'belowContent':F(0xdc),'targetString':[F(0xe1)],'targetIndentAdjustment':0x6});}}return!![];}catch(A){Log[F(0xea)](A);}},async function(){console['log']('Cleaning\x20up...');},a129f);
@@ -1 +1 @@
1
- const a130i=a130d;(function(a,b){const g=a130d,c=a();while(!![]){try{const d=parseInt(g(0x19e))/0x1*(parseInt(g(0x1ba))/0x2)+-parseInt(g(0x1a5))/0x3+parseInt(g(0x19c))/0x4*(-parseInt(g(0x1a7))/0x5)+parseInt(g(0x19f))/0x6*(parseInt(g(0x1a9))/0x7)+parseInt(g(0x1bc))/0x8*(-parseInt(g(0x19b))/0x9)+-parseInt(g(0x1a8))/0xa+parseInt(g(0x1b0))/0xb*(parseInt(g(0x1af))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x36a53));function a130c(){const k=['Header,\x20Footer,\x20and\x20Drawer','kit:mui:frame','frame','47112eyjTQP','2739nOtPiV','findProjectDirectory','(((.+)+)+)+$','length','constructor','kit:mui:auth','getMakaProjectConfig','mui','checkbox','processAndRunGenerator','24scYcMs','Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!','16VAIfVB','Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','No\x20MUI\x20kits\x20selected.\x20Exiting.','290673RNiBbg','4EbBQlW','kitChoices','3163JAwMXi','27882dZutAj','maka\x20g:kit:m','fsi','notice','toString','Material-UI\x20Kit','1007157slGqdl','includes','1880995WRCzTH','756020gtlBIh','91zvNnlz','auth','search'];a130c=function(){return k;};return a130c();}const a130b=(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;};}()),a130a=a130b(this,function(){const h=a130d;return a130a['toString']()[h(0x1ab)](h(0x1b2))[h(0x1a3)]()[h(0x1b4)](a130a)[h(0x1ab)](h(0x1b2));});a130a();import{Generator}from'../../../generator.js';import{Actions}from'../../../tools/actions/actions.class.js';import{Log}from'../../../tools/log/log.class.js';import a130e from'../../../generators/maka.gen.js';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x19b;let f=c[d];return f;},a130d(a,b);}import a130f from'../kit.js';const MuiGen=Generator['create']({'name':a130i(0x1b7),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a130i(0x1a4),'validOpts':[''],'isPro':!![],'examples':[a130i(0x1a0)]},async function(){const j=a130i;Log['info'](j(0x1bb)),Log[j(0x1a2)]('\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&####%&@@@@@@@@@@@@@@@@@@@&&%###&@@@@@@&%###%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#(((((##%&&@@@@@@@@@&&%%#(((((#&@@@@@&#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((#%&&@&&%##(((((((((#&@@@@&&#((##%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((((((#((((((((((((((#&@@@@@&%&&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#%%%%##((((((((#%%&%#((((#&@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@&&%###%%&@@@@&#((((#&@@@@@@@@&&&&@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@@@&#((((#&@@@@@&%#(((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@&%##((((#&@@@@&%#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&%#(((#&&@@@@@@@@@&&%##(((((((#%&@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@&%#%&@@@@@@@@&#((((((((##%&@@@@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((%&@@@@@@@@@&%#((((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((#%%&@@&&%##((((((((#%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@&%%#((((((((##((((((((##%&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&%##(((((((((##%&@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&%##(#%&&@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a\x0a\x20\x20This\x20generator\x20will\x20help\x20you\x20add\x20MUI\x20to\x20your\x20project.\x0a\x20\x20Choose\x20from\x20a\x20selection\x20of\x20premade\x20MUI\x20components.\x0a\x20\x20');const {kitChoices:a}=await Actions['options']({'type':j(0x1b8),'name':j(0x19d),'message':j(0x1bd),'choices':[{'name':j(0x1ac),'value':'frame'},{'name':'Auth\x20workflow\x20(login,\x20logout,\x20etc.)','value':j(0x1aa)}]}),b=this[j(0x1a1)][j(0x1b1)](),c=this[j(0x1a1)][j(0x1b6)]();a['includes'](j(0x1ae))&&await a130e['processAndRunGenerator'](j(0x1ad),[],{'force':!![],'cwd':b,'config':c});a[j(0x1a6)](j(0x1aa))&&await a130e[j(0x1b9)](j(0x1b5),[],{'force':!![],'cwd':b,'config':c});if(a[j(0x1b3)]===0x0){Log['info'](j(0x1be));return;}},async function(){},a130f);export default MuiGen;
1
+ const a130j=a130d;function a130c(){const l=['notice','90277BztenP','Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!','1754192QQFMBz','No\x20MUI\x20kits\x20selected.\x20Exiting.','mui','includes','processAndRunGenerator','240579FVdFJw','6380469zBKxlN','getMakaProjectConfig','Auth\x20workflow\x20(login,\x20logout,\x20etc.)','kit:mui:auth','toString','(((.+)+)+)+$','checkbox','options','Material-UI\x20Kit','maka\x20g:kit:m','kitChoices','30lFjRZP','1826080FYSZhh','auth','apply','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','create','3028YMJYrl','findProjectDirectory','915EyAdYh','length','search','Header,\x20Footer,\x20and\x20Drawer','6hEdfDX','fsi','711165ainsOv'];a130c=function(){return l;};return a130c();}(function(a,b){const g=a130d,c=a();while(!![]){try{const d=parseInt(g(0x12c))/0x1+parseInt(g(0x128))/0x2*(parseInt(g(0x110))/0x3)+parseInt(g(0x122))/0x4*(-parseInt(g(0x124))/0x5)+-parseInt(g(0x11c))/0x6*(parseInt(g(0x12a))/0x7)+-parseInt(g(0x12e))/0x8+parseInt(g(0x111))/0x9+parseInt(g(0x11d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x57111));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a130d;if(c){const e=c[h(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const i=a130d;return a130a['toString']()[i(0x126)](i(0x116))[i(0x115)]()['constructor'](a130a)[i(0x126)](i(0x116));});a130a();import{Generator}from'../../../generator.js';import{Actions}from'../../../tools/actions/actions.class.js';import{Log}from'../../../tools/log/log.class.js';import a130e from'../../../generators/maka.gen.js';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x10d;let f=c[d];return f;},a130d(a,b);}import a130f from'../kit.js';const MuiGen=Generator[a130j(0x121)]({'name':a130j(0x10d),'aliases':['m'],'usage':a130j(0x120),'noNeedResource':!![],'shortDesc':a130j(0x119),'validOpts':[''],'isPro':!![],'examples':[a130j(0x11a)]},async function(){const k=a130j;Log['info'](k(0x12d)),Log[k(0x12b)]('\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&####%&@@@@@@@@@@@@@@@@@@@&&%###&@@@@@@&%###%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#(((((##%&&@@@@@@@@@&&%%#(((((#&@@@@@&#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((#%&&@&&%##(((((((((#&@@@@&&#((##%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((((((#((((((((((((((#&@@@@@&%&&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#%%%%##((((((((#%%&%#((((#&@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@&&%###%%&@@@@&#((((#&@@@@@@@@&&&&@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@@@&#((((#&@@@@@&%#(((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@&%##((((#&@@@@&%#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&%#(((#&&@@@@@@@@@&&%##(((((((#%&@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@&%#%&@@@@@@@@&#((((((((##%&@@@@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((%&@@@@@@@@@&%#((((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((#%%&@@&&%##((((((((#%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@&%%#((((((((##((((((((##%&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&%##(((((((((##%&@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&%##(#%&&@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a\x0a\x20\x20This\x20generator\x20will\x20help\x20you\x20add\x20MUI\x20to\x20your\x20project.\x0a\x20\x20Choose\x20from\x20a\x20selection\x20of\x20premade\x20MUI\x20components.\x0a\x20\x20');const {kitChoices:a}=await Actions[k(0x118)]({'type':k(0x117),'name':k(0x11b),'message':'Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','choices':[{'name':k(0x127),'value':'frame'},{'name':k(0x113),'value':k(0x11e)}]}),b=this[k(0x129)][k(0x123)](),c=this[k(0x129)][k(0x112)]();a[k(0x10e)]('frame')&&await a130e[k(0x10f)]('kit:mui:frame',[],{'force':!![],'cwd':b,'config':c});a[k(0x10e)]('auth')&&await a130e[k(0x10f)](k(0x114),[],{'force':!![],'cwd':b,'config':c});if(a[k(0x125)]===0x0){Log['info'](k(0x12f));return;}},async function(){},a130f);export default MuiGen;
@@ -1 +1 @@
1
- const a131o=a131d;(function(a,b){const l=a131d,c=a();while(!![]){try{const d=parseInt(l(0x1c4))/0x1+-parseInt(l(0x1bf))/0x2*(-parseInt(l(0x1a1))/0x3)+-parseInt(l(0x1a7))/0x4+-parseInt(l(0x1af))/0x5*(parseInt(l(0x1a5))/0x6)+-parseInt(l(0x1a8))/0x7+-parseInt(l(0x198))/0x8+-parseInt(l(0x196))/0x9*(-parseInt(l(0x1c9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x28747));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a131d;if(c){const e=c[m(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const n=a131d;return a131a[n(0x1a2)]()[n(0x1b5)](n(0x1b8))[n(0x1a2)]()[n(0x1b2)](a131a)[n(0x1b5)](n(0x1b8));});function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x192;let f=c[d];return f;},a131d(a,b);}a131a();import a131e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a131c(){const r=['engines','client','split','resourceName','api','511828twhKwM','component/component.js','findAppDirectory','test','dir','274982wmRquk','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','react','import\x20\x27./','fileName','110uccMIw','className','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','setTemplate','withValue','108585EPvJqK','/imports/ui/layouts','255272ZtGKjT','graphql','template/template.css','theme','template','checkNpmPackage','string','true','withHooks','3TVNJrs','toString','warn','installNpmPackage','788904OcUeNv','withHook','43056FdhkfJ','1345869vAXovj','withTranslations','includes','pathFromProject','Scaffolding\x20for\x20a\x20React\x20Layout.','injectTemplateModule','css','10CYlfFs','hook/hook.js','features','constructor','fsi','assign','search','.js','apply','(((.+)+)+)+$','getMakaProjectConfig'];a131c=function(){return r;};return a131c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':'layout','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a131o(0x1ac),'validOpts':['withHook'],'examples':['maka\x20g:layout\x20mobile/iPhone8','maka\x20g:l\x20web/safari']},async function(a,b){const p=a131o,c=p(0x197),d=this[p(0x1b3)][p(0x1c1)](),e=this[p(0x1b3)]['pathFromApp']({'pathParts':[c,b[p(0x1c3)],paramCase(b[p(0x1bd)]),paramCase(b[p(0x1bd)])]}),f=this[p(0x1b3)][p(0x1b9)]();await this[p(0x1b3)][p(0x195)](f,async()=>{const q=p;typeof f[q(0x19c)]['test']===q(0x19e)&&(f[q(0x19c)][q(0x1c2)]=f[q(0x19c)][q(0x1c2)]===q(0x19f)?!![]:![],this[q(0x1b3)][q(0x194)](q(0x1c2),f['template'][q(0x1c2)]));typeof f[q(0x19c)][q(0x1ae)]==='string'&&(f[q(0x19c)][q(0x1ae)]=f[q(0x19c)][q(0x1ae)]===q(0x19f)?!![]:![],this['fsi'][q(0x194)](q(0x1ae),f[q(0x19c)][q(0x1ae)]));typeof f[q(0x19c)]['js']===q(0x19e)&&(f[q(0x19c)]['js']=f[q(0x19c)]['js']==='true'?!![]:![],this['fsi'][q(0x194)]('js',f['template']['js']));!f['features']&&(f[q(0x1b1)]={});const g=b['_']?b['_'][0x0][q(0x1bc)](':')[0x1]:![],h=b['_']&&aliases[q(0x1aa)](g);h&&!this[q(0x19d)]('ramda')&&(Log[q(0x1a3)](q(0x193)),this[q(0x1b3)][q(0x1a4)]('ramda',{'cwd':d}));if(h&&!this[q(0x19d)]('react')){Log[q(0x1a3)](q(0x1c5));return;}const i={'name':pascalCase(b[q(0x1bd)]),'myPath':a131e['relative'](this['fsi'][q(0x1ab)]({}),e),'cssCaseName':paramCase(b[q(0x1bd)]),'className':pascalCase(b[q(0x1bd)]),'camelCaseName':camelCase(b[q(0x1bd)]),'fileName':paramCase(b[q(0x1bd)]),'graphql':f[q(0x1ba)][q(0x199)],'features':f['features'],'client':f['engines'][q(0x1bb)],'api':f[q(0x1ba)][q(0x1be)],'ssr':f[q(0x1ba)]['ssr'],'test':f[q(0x1ba)][q(0x1c2)],'theme':f[q(0x1ba)][q(0x19b)],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0x1b1)][q(0x1a9)]};f[q(0x1b1)]?.[q(0x1a0)]||b[q(0x1a6)]?await this[q(0x1b3)]['template']({'srcPath':q(0x1b0),'destPath':e+q(0x1b6),'framework':'react','context':i,'config':f}):await this[q(0x1b3)][q(0x19c)]({'srcPath':q(0x1c0),'destPath':e+q(0x1b6),'framework':q(0x1c6),'context':i,'config':f});f['engines']['test']!=='none'&&await this[q(0x1b3)][q(0x19c)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':q(0x1c6),'context':i,'config':f});f['template'][q(0x1ae)]&&(await this[q(0x1b3)][q(0x19c)]({'srcPath':q(0x19a),'destPath':e+'.css','context':Object[q(0x1b4)]({},i,{'className':paramCase(b[q(0x1bd)])}),'config':f}),await this[q(0x1b3)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':q(0x1c7)+i[q(0x1c8)]+'.'+f[q(0x1ba)]['css']+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i[q(0x1c8)]+'/'+i['fileName'];await this[q(0x1b3)][q(0x1ad)](i[q(0x192)],f,k);});});
1
+ function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x9e;let f=c[d];return f;},a131d(a,b);}const a131n=a131d;(function(a,b){const l=a131d,c=a();while(!![]){try{const d=-parseInt(l(0xa1))/0x1*(parseInt(l(0xc0))/0x2)+-parseInt(l(0xa4))/0x3+parseInt(l(0xba))/0x4+parseInt(l(0xa6))/0x5+-parseInt(l(0x9f))/0x6+-parseInt(l(0xc8))/0x7*(-parseInt(l(0xab))/0x8)+-parseInt(l(0xc1))/0x9*(-parseInt(l(0xb8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xac128));const a131b=(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;};}()),a131a=a131b(this,function(){const m=a131d;return a131a[m(0xc3)]()[m(0xb6)](m(0xd8))[m(0xc3)]()['constructor'](a131a)[m(0xb6)]('(((.+)+)+)+$');});a131a();import a131e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a131c(){const q=['import\x20\x27./','injectAtBeginningOfFile','features','maka\x20g:layout\x20mobile/iPhone8','search','api','1130qVCYNO','warn','79992nZTDxm','ssr','injectTemplateModule','string','resourceName','template','687402BpBJIX','47457JkEJNk','css','toString','test','.app-tests.js','true','theme','3973669fxboMT','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','className','hook/hook.js','assign','engines','withTranslations','test/test.js','relative','pathFromProject','template/template.css','fsi','/imports/ui/layouts','none','react','installNpmPackage','(((.+)+)+)+$','.js','325698mvVxZW','withValue','1KVZroN','fileName','create','730716IJjmcc','checkNpmPackage','814250mGHxUw','includes','getMakaProjectConfig','withHook','withHooks','8uLdAsD','layout','maka\x20g:l\x20web/safari','setTemplate','dir','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','split'];a131c=function(){return q;};return a131c();}const aliases=['l'];Generator[a131n(0xa3)]({'name':a131n(0xac),'aliases':aliases,'usage':a131n(0xc9),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[a131n(0xa9)],'examples':[a131n(0xb5),a131n(0xad)]},async function(a,b){const o=a131n,c=o(0xd4),d=this[o(0xd3)]['findAppDirectory'](),e=this[o(0xd3)]['pathFromApp']({'pathParts':[c,b[o(0xaf)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this[o(0xd3)][o(0xa8)]();await this[o(0xd3)][o(0xa0)](f,async()=>{const p=o;typeof f[p(0xbf)][p(0xc4)]==='string'&&(f[p(0xbf)][p(0xc4)]=f[p(0xbf)][p(0xc4)]===p(0xc6)?!![]:![],this[p(0xd3)][p(0xae)](p(0xc4),f[p(0xbf)][p(0xc4)]));typeof f[p(0xbf)]['css']===p(0xbd)&&(f[p(0xbf)]['css']=f[p(0xbf)][p(0xc2)]===p(0xc6)?!![]:![],this['fsi'][p(0xae)]('css',f[p(0xbf)][p(0xc2)]));typeof f[p(0xbf)]['js']===p(0xbd)&&(f[p(0xbf)]['js']=f[p(0xbf)]['js']===p(0xc6)?!![]:![],this[p(0xd3)]['setTemplate']('js',f[p(0xbf)]['js']));!f['features']&&(f[p(0xb4)]={});const g=b['_']?b['_'][0x0][p(0xb1)](':')[0x1]:![],h=b['_']&&aliases[p(0xa7)](g);h&&!this[p(0xa5)]('ramda')&&(Log[p(0xb9)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[p(0xd3)][p(0xd7)]('ramda',{'cwd':d}));if(h&&!this['checkNpmPackage']('react')){Log['warn'](p(0xb0));return;}const i={'name':pascalCase(b[p(0xbe)]),'myPath':a131e[p(0xd0)](this[p(0xd3)][p(0xd1)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[p(0xbe)]),'camelCaseName':camelCase(b[p(0xbe)]),'fileName':paramCase(b[p(0xbe)]),'graphql':f['engines']['graphql'],'features':f[p(0xb4)],'client':f[p(0xcd)]['client'],'api':f[p(0xcd)][p(0xb7)],'ssr':f[p(0xcd)][p(0xbb)],'test':f[p(0xcd)][p(0xc4)],'theme':f['engines'][p(0xc7)],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0xb4)][p(0xce)]};f[p(0xb4)]?.[p(0xaa)]||b[p(0xa9)]?await this['fsi'][p(0xbf)]({'srcPath':p(0xcb),'destPath':e+p(0x9e),'framework':p(0xd6),'context':i,'config':f}):await this['fsi'][p(0xbf)]({'srcPath':'component/component.js','destPath':e+p(0x9e),'framework':p(0xd6),'context':i,'config':f});f['engines']['test']!==p(0xd5)&&await this[p(0xd3)][p(0xbf)]({'srcPath':p(0xcf),'destPath':e+p(0xc5),'framework':p(0xd6),'context':i,'config':f});f[p(0xbf)][p(0xc2)]&&(await this['fsi'][p(0xbf)]({'srcPath':p(0xd2),'destPath':e+'.css','context':Object[p(0xcc)]({},i,{'className':paramCase(b[p(0xbe)])}),'config':f}),await this[p(0xd3)][p(0xb3)]({'filePath':e+'.'+f[p(0xcd)]['js'],'content':p(0xb2)+i[p(0xa2)]+'.'+f['engines']['css']+'\x27;'}));const j=b['dir']?'/'+b[p(0xaf)]+'/':'/',k=''+c+j+i[p(0xa2)]+'/'+i[p(0xa2)];await this[p(0xd3)][p(0xbc)](i[p(0xca)],f,k);});});
@@ -1 +1 @@
1
- const a132i=a132d;(function(a,b){const f=a132d,c=a();while(!![]){try{const d=-parseInt(f(0x83))/0x1*(-parseInt(f(0x95))/0x2)+parseInt(f(0x8f))/0x3*(parseInt(f(0x94))/0x4)+-parseInt(f(0x82))/0x5*(-parseInt(f(0x8c))/0x6)+parseInt(f(0x8e))/0x7+-parseInt(f(0x90))/0x8+-parseInt(f(0x93))/0x9+-parseInt(f(0x81))/0xa*(parseInt(f(0x87))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x67405));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a132d;if(c){const e=c[g(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const h=a132d;return a132a[h(0x85)]()['search'](h(0x8d))[h(0x85)]()[h(0x84)](a132a)['search']('(((.+)+)+)+$');});a132a();function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x81;let f=c[d];return f;},a132d(a,b);}function a132c(){const j=['apply','maka\x20g:route\x20todos/edit','maka\x20g:api\x20trucks','Scaffold\x20various\x20parts\x20of\x20your\x20application','6gdRrDE','(((.+)+)+)+$','3303776AjoMVM','789117vcqtpL','6460952Ouopyv','maka\x20generate:scaffold\x20todos','maka\x20{generate,\x20g}:<generator>\x20<name>','1761093LCDrfw','4xIpnMs','323410qtYDHr','509140AGzMfh','1704535XtzJAE','5rLLQBG','constructor','toString','maka\x20g:dbc\x20geoserver\x20--type=pgsql','99YiMmBe'];a132c=function(){return j;};return a132c();}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a132i(0x92),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a132i(0x8b),'examples':[a132i(0x91),'maka\x20g:scaffold\x20todos','maka\x20g:template\x20todos/todo_item','maka\x20g:package\x20package:name',a132i(0x89),a132i(0x8a),a132i(0x86)]},function(){});export default MakaGen;
1
+ const a132i=a132d;(function(a,b){const f=a132d,c=a();while(!![]){try{const d=-parseInt(f(0x1b1))/0x1*(parseInt(f(0x1b9))/0x2)+parseInt(f(0x1c2))/0x3+parseInt(f(0x1af))/0x4+-parseInt(f(0x1b5))/0x5*(parseInt(f(0x1b3))/0x6)+parseInt(f(0x1b7))/0x7*(-parseInt(f(0x1b2))/0x8)+-parseInt(f(0x1c1))/0x9+parseInt(f(0x1bf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x37c61));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a132d;if(c){const e=c[g(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const h=a132d;return a132a['toString']()['search']('(((.+)+)+)+$')[h(0x1c0)]()[h(0x1b8)](a132a)[h(0x1b6)]('(((.+)+)+)+$');});function a132c(){const j=['240AOIxxc','18rMsTvc','maka\x20{generate,\x20g}:<generator>\x20<name>','137890XAsYMc','search','95984SPcUHv','constructor','4CUHNyd','maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20generate:scaffold\x20todos','apply','maka\x20g:route\x20todos/edit','maka\x20g:api\x20trucks','9628320TthEEQ','toString','2656665xRHrZe','210411MluVLu','140804Sfcwak','maka\x20g:scaffold\x20todos','25221TDaRfm'];a132c=function(){return j;};return a132c();}a132a();import{Generator}from'../generator.js';function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x1af;let f=c[d];return f;},a132d(a,b);}const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a132i(0x1b4),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':'Scaffold\x20various\x20parts\x20of\x20your\x20application','examples':[a132i(0x1bb),a132i(0x1b0),'maka\x20g:template\x20todos/todo_item','maka\x20g:package\x20package:name',a132i(0x1bd),a132i(0x1be),a132i(0x1ba)]},function(){});export default MakaGen;
@@ -1 +1 @@
1
- const a133l=a133d;function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x188;let f=c[d];return f;},a133d(a,b);}(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0x1a5))/0x1*(parseInt(j(0x199))/0x2)+-parseInt(j(0x19f))/0x3*(-parseInt(j(0x1a1))/0x4)+-parseInt(j(0x19c))/0x5*(parseInt(j(0x18f))/0x6)+parseInt(j(0x1a6))/0x7*(-parseInt(j(0x18d))/0x8)+-parseInt(j(0x19e))/0x9+parseInt(j(0x18c))/0xa+parseInt(j(0x19d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x4f371));const a133b=(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;};}()),a133a=a133b(this,function(){const k=a133d;return a133a['toString']()[k(0x194)](k(0x1a4))['toString']()[k(0x198)](a133a)[k(0x194)](k(0x1a4));});a133a();import{Generator}from'../generator.js';function a133c(){const o=['tsx','(((.+)+)+)+$','74rXDBPg','406twVqnu','dir','index.','ddp-rate-limiter','engines','checkMeteorPackage','imports','mdg:validated-method','fsi','import\x20\x27./methods','6312110shZOak','36152OLvscr','withValue','27690nCwQjt','maka\x20{generate,\x20g}:{method,\x20m}\x20name','method','pathFromApp','maka\x20g:method\x20todos','search','resourceName','template','-rpc-method\x27;','constructor','4132ejwTMS','method/method.js','startup','135pSoVhr','3553099ttxibv','4404069UhsqNT','3lJvxkH','appPathPrefix','373636AOnoLz','error'];a133c=function(){return o;};return a133c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a133l(0x191),'aliases':['m'],'usage':a133l(0x190),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a133l(0x1a7)],'examples':[a133l(0x193)]},async function(a,b){const m=a133l;try{const c=this[m(0x18a)]['getMakaProjectConfig']();await this[m(0x18a)][m(0x18e)](c,async()=>{const n=m,d=paramCase(b[n(0x195)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[n(0x195)]),'camelCase':camelCase(b[n(0x195)]),'noRename':!![]};let g='js';c[n(0x1aa)]['js']===n(0x1a3)&&(g='ts');await this[n(0x18a)][n(0x1ab)](['maka:check',n(0x1a9),n(0x189)],{'shouldInstall':!![]}),await this[n(0x18a)][n(0x196)]({'srcPath':n(0x19a),'destPath':this[n(0x18a)][n(0x192)]({'pathParts':[n(0x188),n(0x19b),b['appPathPrefix'],'methods',b[n(0x1a7)],d+'-rpc-method.'+g]}),'context':f,'config':c});const h=b[n(0x1a7)]?'/'+b['dir']+'/':'/',i=this[n(0x18a)][n(0x192)]({'pathParts':[n(0x188),'startup',b[n(0x1a0)],n(0x1a8)+c[n(0x1aa)]['js']]});await this[n(0x18a)]['injectAtEndOfFile']({'filePath':i,'content':n(0x18b)+h+d+n(0x197)});});}catch(d){Log[m(0x1a2)](d);}});
1
+ const a133m=a133d;function a133c(){const p=['fsi','mdg:validated-method','-rpc-method\x27;','constructor','create','5220246cuUgNJ','maka:check','imports','915691sTpTjj','1JKRPOx','resourceName','methods','search','toString','injectAtEndOfFile','dir','pathFromApp','withValue','engines','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','template','(((.+)+)+)+$','error','apply','920638yTMjsY','index.','670308TSncQD','method/method.js','import\x20\x27./methods','11980000eHgYLD','648OWXfqx','maka\x20g:method\x20todos','maka\x20{generate,\x20g}:{method,\x20m}\x20name','startup','method','appPathPrefix','3533195yuDjuI','tsx'];a133c=function(){return p;};return a133c();}(function(a,b){const j=a133d,c=a();while(!![]){try{const d=-parseInt(j(0x18d))/0x1*(parseInt(j(0x19c))/0x2)+parseInt(j(0x1a2))/0x3+-parseInt(j(0x19e))/0x4+parseInt(j(0x182))/0x5+-parseInt(j(0x189))/0x6+-parseInt(j(0x18c))/0x7+parseInt(j(0x1a1))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x8c875));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a['toString']()['search'](l(0x199))[l(0x191)]()[l(0x187)](a133a)[l(0x190)](l(0x199));});a133a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x181;let f=c[d];return f;},a133d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a133m(0x188)]({'name':a133m(0x1a6),'aliases':['m'],'usage':a133m(0x1a4),'checkWhere':!![],'shortDesc':a133m(0x197),'validOpts':[a133m(0x193)],'examples':[a133m(0x1a3)]},async function(a,b){const n=a133m;try{const c=this[n(0x184)]['getMakaProjectConfig']();await this[n(0x184)][n(0x195)](c,async()=>{const o=n,d=paramCase(b[o(0x18e)]),f={'name':b[o(0x18e)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[o(0x196)]['js']===o(0x183)&&(g='ts');await this['fsi']['checkMeteorPackage']([o(0x18a),'ddp-rate-limiter',o(0x185)],{'shouldInstall':!![]}),await this[o(0x184)][o(0x198)]({'srcPath':o(0x19f),'destPath':this[o(0x184)][o(0x194)]({'pathParts':[o(0x18b),o(0x1a5),b['appPathPrefix'],o(0x18f),b[o(0x193)],d+'-rpc-method.'+g]}),'context':f,'config':c});const h=b[o(0x193)]?'/'+b[o(0x193)]+'/':'/',i=this[o(0x184)][o(0x194)]({'pathParts':[o(0x18b),o(0x1a5),b[o(0x181)],o(0x19d)+c[o(0x196)]['js']]});await this[o(0x184)][o(0x192)]({'filePath':i,'content':o(0x1a0)+h+d+o(0x186)});});}catch(d){Log[n(0x19a)](d);}});
@@ -1 +1 @@
1
- const a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d=parseInt(l(0x172))/0x1*(parseInt(l(0x175))/0x2)+parseInt(l(0x183))/0x3*(parseInt(l(0x178))/0x4)+-parseInt(l(0x165))/0x5*(-parseInt(l(0x17e))/0x6)+-parseInt(l(0x171))/0x7*(-parseInt(l(0x168))/0x8)+-parseInt(l(0x162))/0x9+parseInt(l(0x15e))/0xa+-parseInt(l(0x167))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x9667e));function a134c(){const r=['3417258eWciPL','create','maka\x20g:package\x20todos:package','tests/client','withValue','16374SDdCqR','.js','toString','search','template/template.js','pathFromProject','packages','component','graphql','theme','relative','3524700vaZHcf','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','/package.js','hasOwnProperty','5298066ysVUWK','pathFromAppWithNoReWrite','store','10mdKlGP','constructor','15090856tjqHbw','440kUwAin','package/package.js','ssr','engines','fsi','client','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','getMakaProjectConfig','package.js','36757menJYk','19YDkKtm','resourceName','server','72902qQUaNm','tests/server','template','76PEfvce','apply','(((.+)+)+)+$','features','noRename','dir'];a134c=function(){return r;};return a134c();}const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0x179)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a[n(0x185)]()[n(0x186)](n(0x17a))[n(0x185)]()[n(0x166)](a134a)[n(0x186)](n(0x17a));});a134a();import a134e from'path';function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x15e;let f=c[d];return f;},a134d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a134o(0x17f)]({'name':'package','aliases':['p'],'usage':a134o(0x16e),'shortDesc':a134o(0x15f),'validOpts':['dir'],'examples':[a134o(0x180)]},async function(a,b){const p=a134o,c=paramCase(b[p(0x173)]),d=this[p(0x16c)]['pathFromApp']({'pathParts':[p(0x189),b[p(0x17d)],c]}),e=this[p(0x16c)][p(0x163)]({'pathParts':[p(0x189),b[p(0x17d)],c,p(0x170)]}),f=this['fsi'][p(0x16f)]();await this[p(0x16c)][p(0x182)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x173)]),'myPath':a134e[q(0x18d)](this[q(0x16c)][q(0x188)]({}),d),'cssCaseName':paramCase(b[q(0x173)]),'className':pascalCase(b[q(0x173)]),'camelCaseName':camelCase(b[q(0x173)]),'fileName':c,'client':f['engines'][q(0x16d)],'graphql':f[q(0x16b)][q(0x18b)],'ssr':f[q(0x16b)][q(0x16a)],'isComponent':b[q(0x161)](q(0x18a)),'isLayout':b['hasOwnProperty']('layout'),'isStore':b[q(0x161)](q(0x164)),'features':f[q(0x17b)],'noRename':!![],'theme':f[q(0x16b)][q(0x18c)]};await this[q(0x16c)][q(0x177)]({'srcPath':q(0x169),'destPath':e,'context':g,'config':f}),g[q(0x17c)]=![];const h=d+'/client/'+c+q(0x184);await this['fsi'][q(0x177)]({'srcPath':q(0x187),'destPath':h,'context':g,'config':f});const i=['lib',q(0x174),q(0x181),q(0x176)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x184);await this[q(0x16c)][q(0x177)]({'srcPath':'package/'+j+q(0x160),'destPath':k,'context':g,'config':f});}});});
1
+ const a134o=a134d;function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x76;let f=c[d];return f;},a134d(a,b);}(function(a,b){const l=a134d,c=a();while(!![]){try{const d=-parseInt(l(0x9c))/0x1+parseInt(l(0x80))/0x2*(parseInt(l(0x8e))/0x3)+parseInt(l(0x94))/0x4*(parseInt(l(0x8a))/0x5)+parseInt(l(0x79))/0x6*(-parseInt(l(0x7d))/0x7)+-parseInt(l(0x81))/0x8*(-parseInt(l(0x90))/0x9)+parseInt(l(0xa5))/0xa*(parseInt(l(0x76))/0xb)+-parseInt(l(0x7e))/0xc*(parseInt(l(0x99))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xa8f9d));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a[n(0x9a)]()[n(0xa1)](n(0x85))[n(0x9a)]()[n(0x97)](a134a)[n(0xa1)](n(0x85));});a134a();import a134e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a134c(){const r=['server','10ntsHZt','ssr','2784023xWGLrp','dir','package/package.js','12552SymuPZ','tests/client','pathFromApp','resourceName','2737bZNdGG','108NMNYzN','template','6kfDPwb','56kyhWTL','apply','/client/','create','(((.+)+)+)+$','package/','template/template.js','store','noRename','165frmMTp','packages','.js','tests/server','636393JApMRm','fsi','790821Tngfto','pathFromProject','theme','engines','156332sHNoJH','hasOwnProperty','/package.js','constructor','maka\x20g:package\x20todos:package','1810809SZSsZp','toString','package','30574lOmxHG','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','relative','withValue','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','search','features','lib'];a134c=function(){return r;};return a134c();}Generator[a134o(0x84)]({'name':a134o(0x9b),'aliases':['p'],'usage':a134o(0xa0),'shortDesc':a134o(0x9d),'validOpts':[a134o(0x77)],'examples':[a134o(0x98)]},async function(a,b){const p=a134o,c=paramCase(b[p(0x7c)]),d=this[p(0x8f)][p(0x7b)]({'pathParts':[p(0x8b),b['dir'],c]}),e=this[p(0x8f)]['pathFromAppWithNoReWrite']({'pathParts':[p(0x8b),b[p(0x77)],c,'package.js']}),f=this[p(0x8f)]['getMakaProjectConfig']();await this[p(0x8f)][p(0x9f)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x7c)]),'myPath':a134e[q(0x9e)](this[q(0x8f)][q(0x91)]({}),d),'cssCaseName':paramCase(b[q(0x7c)]),'className':pascalCase(b[q(0x7c)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x93)]['client'],'graphql':f['engines']['graphql'],'ssr':f['engines'][q(0xa6)],'isComponent':b['hasOwnProperty']('component'),'isLayout':b[q(0x95)]('layout'),'isStore':b[q(0x95)](q(0x88)),'features':f[q(0xa2)],'noRename':!![],'theme':f[q(0x93)][q(0x92)]};await this['fsi'][q(0x7f)]({'srcPath':q(0x78),'destPath':e,'context':g,'config':f}),g[q(0x89)]=![];const h=d+q(0x83)+c+q(0x8c);await this[q(0x8f)]['template']({'srcPath':q(0x87),'destPath':h,'context':g,'config':f});const i=[q(0xa3),q(0xa4),q(0x7a),q(0x8d)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x8c);await this[q(0x8f)][q(0x7f)]({'srcPath':q(0x86)+j+q(0x96),'destPath':k,'context':g,'config':f});}});});