@maka/maka-cli 5.0.20 → 5.0.21

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 (168) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.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/api/api.js +2 -2
  144. package/bundle/obf/src/templates/meteor/api/api.js.ts +2 -2
  145. package/bundle/obf/src/tool.js +1 -1
  146. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  148. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  150. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  151. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  153. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  154. package/bundle/obf/src/tools/https/https.class.js +1 -1
  155. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  156. package/bundle/obf/src/tools/log/log.class.js +1 -1
  157. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  158. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  159. package/bundle/obf/src/tools/options/options.class.js +1 -1
  160. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  161. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  162. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  163. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  164. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  165. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  166. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  167. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  168. package/package.json +1 -1
@@ -1 +1 @@
1
- const a120r=a120d;(function(a,b){const o=a120d,c=a();while(!![]){try{const d=-parseInt(o(0x1ea))/0x1+parseInt(o(0x217))/0x2+parseInt(o(0x227))/0x3*(parseInt(o(0x1e5))/0x4)+-parseInt(o(0x1f9))/0x5*(-parseInt(o(0x204))/0x6)+parseInt(o(0x1e7))/0x7*(parseInt(o(0x226))/0x8)+-parseInt(o(0x1e8))/0x9+-parseInt(o(0x20c))/0xa*(-parseInt(o(0x20f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0xb7afd));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a120d;if(c){const e=c[p(0x1eb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const q=a120d;return a120a[q(0x216)]()[q(0x1fc)](q(0x1f2))['toString']()[q(0x209)](a120a)[q(0x1fc)](q(0x1f2));});a120a();function a120c(){const t=['\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','findProjectDirectory','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','/imports/startup/client','cfg','444102NcXeCc','react','injectIntoCodeBlock','meteor','Accounts','constructor','Meteor','AuthService','1190RKexdK','auth/roles','Meteor.publish','90134qCAHeB','meteor/accounts-base','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','const\x20authenticateUser','checkMeteorPackage','pkg','/imports/startup/lib','toString','1456374jvqoNF','return\x20\x5c(','error','engines','imports','kit:auth:provider','scaffold','kit/auth/service/meteor-auth-service.js','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.resetPasswordWithToken(token,\x20password);\x0a\x20\x20\x20\x20\x20\x20','getMakaProjectConfig','.js','const\x20authenticateToken','true','const\x20registerNewUser','ssr','508328OWyxRJ','590658EpNAiz','\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','\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','force','processAndRunGenerator','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','injectIntoFile','4FlZVVO','\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','49WBQqxR','9695340gSLpew','const\x20getUserAuthorizations','1033424HqrfmN','apply','\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','meteor/maka:react-tracker','publish','/imports/startup/lib/authentication-service','injectImport','alanning:roles','(((.+)+)+)+$','const\x20deauthenticateUser','useTracker','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','exit','authentication-provider','export\x20const\x20AuthProvider','35nOMvxE','fsi','server','search','pathFromApp','accounts-password'];a120c=function(){return t;};return a120c();}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a120e from'./auth.generator.js';import a120f from'../../../generators/maka.gen.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a120d(a,b);}import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':a120r(0x207),'aliases':['m'],'usage':a120r(0x1e3),'shortDesc':a120r(0x211),'validOpts':[a120r(0x1e1)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines['REACT']},'description':a120r(0x1ff)},async function(a,b){const s=a120r;try{const c=b['force']||![];await this[s(0x214)][s(0x213)]([s(0x1fe),s(0x1f1)],{'shouldInstall':!![]});const d=this[s(0x1fa)][s(0x200)](),f=await this[s(0x203)][s(0x220)](),g=f['engines'][s(0x225)]===s(0x223);await a120f['processAndRunGenerator'](s(0x21c),[],{'force':c,'cwd':d,'config':f});const h=await a120f[s(0x1e2)](s(0x1ee),[s(0x20d)],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?s(0x215):s(0x202),j=this[s(0x21d)][s(0x1fd)]({'pathParts':[i,'','','authentication-service']});await this[s(0x21d)]['template']({'srcPath':s(0x21e),'destPath':j+s(0x221),'framework':s(0x205),'context':{},'config':f,'force':c,'ignore':![]});const k=this['scaffold']['pathFromApp']({'pathParts':[i,'','',s(0x1f7)]}),l=f[s(0x21a)]['js'];await this[s(0x21d)][s(0x1f0)]({'filePath':k+'.'+l,'importName':s(0x20b),'modulePath':g?s(0x1ef):'/imports/startup/client/authentication-service','isNamedExport':![]}),await this['scaffold'][s(0x206)]({'filePath':k+'.'+l,'content':s(0x1e6),'begin':s(0x212),'replace':!![]}),await this['scaffold'][s(0x206)]({'filePath':k+'.'+l,'content':s(0x1e0),'begin':s(0x222),'replace':!![]}),await this[s(0x21d)][s(0x206)]({'filePath':k+'.'+l,'content':'\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','begin':s(0x1e9),'replace':!![]}),await this[s(0x21d)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','begin':s(0x1f3),'replace':!![]}),await this['scaffold'][s(0x206)]({'filePath':k+'.'+l,'content':s(0x1f5),'begin':'const\x20sendForgotPasswordEmail','replace':!![]}),await this[s(0x21d)][s(0x206)]({'filePath':k+'.'+l,'content':s(0x201),'begin':s(0x224),'replace':!![]}),await this[s(0x21d)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':s(0x21f),'begin':'const\x20resetPasswordWithToken','replace':!![]});g&&(await this['scaffold'][s(0x1f0)]({'filePath':k+'.'+l,'importName':s(0x1f4),'modulePath':s(0x1ed),'isNamedExport':!![]}),await this[s(0x21d)][s(0x1e4)]({'filePath':k+'.'+l,'content':s(0x228),'begin':s(0x1f8),'end':s(0x218)}));await this[s(0x21d)][s(0x1f0)]({'filePath':h,'importName':s(0x20a),'modulePath':'meteor/meteor','isNamedExport':!![],'injectAtStart':!![]}),await this[s(0x21d)][s(0x206)]({'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(0x20e),'replace':!![]});const m=this[s(0x21d)][s(0x1fd)]({'pathParts':[s(0x21b),'startup',s(0x1fb),'index']});await this[s(0x21d)]['injectImport']({'filePath':m+'.'+l,'importName':s(0x208),'modulePath':s(0x210),'isNamedExport':!![]}),await this[s(0x21d)][s(0x206)]({'filePath':m+'.'+l,'content':s(0x1ec),'begin':'Meteor.startup','replace':!![]});}catch(n){Log[s(0x219)](n),process[s(0x1f6)](0x1);}},async function(){},a120e);
1
+ const a120q=a120d;(function(a,b){const o=a120d,c=a();while(!![]){try{const d=-parseInt(o(0x12b))/0x1+-parseInt(o(0x143))/0x2*(-parseInt(o(0x15a))/0x3)+parseInt(o(0x12c))/0x4*(parseInt(o(0x145))/0x5)+parseInt(o(0x12f))/0x6+parseInt(o(0x127))/0x7*(parseInt(o(0x152))/0x8)+parseInt(o(0x133))/0x9*(parseInt(o(0x13e))/0xa)+parseInt(o(0x13b))/0xb*(-parseInt(o(0x144))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0xb8794));function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x122;let f=c[d];return f;},a120d(a,b);}const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const p=a120d;return a120a[p(0x15b)]()[p(0x146)]('(((.+)+)+)+$')[p(0x15b)]()[p(0x13f)](a120a)[p(0x146)]('(((.+)+)+)+$');});a120a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a120e from'./auth.generator.js';import a120f from'../../../generators/maka.gen.js';function a120c(){const s=['Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','template','855ygihDy','toString','Meteor','alanning:roles','react','return\x20\x5c(','Accounts','engines','meteor/meteor','const\x20registerNewUser','create','ssr','AuthService','17885WDEzku','pathFromApp','Meteor.publish','force','145742HKrrDS','202060VvVWFi','server','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','1228296GisxqE','/imports/startup/lib','injectImport','meteor/maka:react-tracker','867501MEjTrr','export\x20const\x20AuthProvider','\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','\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','findProjectDirectory','/imports/startup/lib/authentication-service','\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','publish','304579NRTsEI','getMakaProjectConfig','processAndRunGenerator','130CVeWDK','constructor','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','scaffold','cfg','6088gKhnjc','1356qUrKKA','125vdEqov','search','fsi','kit/auth/service/meteor-auth-service.js','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','injectIntoCodeBlock','injectIntoFile','const\x20deauthenticateUser','const\x20getUserAuthorizations','useTracker','imports','\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','authentication-provider','1384gPlgrP','index','meteor','\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','\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'];a120c=function(){return s;};return a120c();}import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a120q(0x124)]({'name':a120q(0x154),'aliases':['m'],'usage':a120q(0x158),'shortDesc':a120q(0x157),'validOpts':[a120q(0x12a)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines['REACT']},'description':a120q(0x156)},async function(a,b){const r=a120q;try{const c=b[r(0x12a)]||![];await this['pkg']['checkMeteorPackage'](['accounts-password',r(0x15d)],{'shouldInstall':!![]});const d=this[r(0x147)][r(0x137)](),f=await this[r(0x142)][r(0x13c)](),g=f['engines'][r(0x125)]==='true';await a120f[r(0x13d)]('kit:auth:provider',[],{'force':c,'cwd':d,'config':f});const h=await a120f[r(0x13d)](r(0x13a),['auth/roles'],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?r(0x130):'/imports/startup/client',j=this[r(0x141)][r(0x128)]({'pathParts':[i,'','','authentication-service']});await this['scaffold'][r(0x159)]({'srcPath':r(0x148),'destPath':j+'.js','framework':r(0x15e),'context':{},'config':f,'force':c,'ignore':![]});const k=this[r(0x141)]['pathFromApp']({'pathParts':[i,'','',r(0x151)]}),l=f[r(0x161)]['js'];await this['scaffold'][r(0x131)]({'filePath':k+'.'+l,'importName':r(0x126),'modulePath':g?r(0x138):'/imports/startup/client/authentication-service','isNamedExport':![]}),await this[r(0x141)][r(0x14a)]({'filePath':k+'.'+l,'content':r(0x150),'begin':'const\x20authenticateUser','replace':!![]}),await this[r(0x141)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':r(0x139),'begin':'const\x20authenticateToken','replace':!![]}),await this[r(0x141)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':'\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','begin':r(0x14d),'replace':!![]}),await this['scaffold'][r(0x14a)]({'filePath':k+'.'+l,'content':r(0x149),'begin':r(0x14c),'replace':!![]}),await this[r(0x141)][r(0x14a)]({'filePath':k+'.'+l,'content':r(0x12e),'begin':'const\x20sendForgotPasswordEmail','replace':!![]}),await this['scaffold'][r(0x14a)]({'filePath':k+'.'+l,'content':r(0x140),'begin':r(0x123),'replace':!![]}),await this[r(0x141)][r(0x14a)]({'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':'const\x20resetPasswordWithToken','replace':!![]});g&&(await this['scaffold']['injectImport']({'filePath':k+'.'+l,'importName':r(0x14e),'modulePath':r(0x132),'isNamedExport':!![]}),await this[r(0x141)][r(0x14b)]({'filePath':k+'.'+l,'content':r(0x155),'begin':r(0x134),'end':r(0x15f)}));await this[r(0x141)][r(0x131)]({'filePath':h,'importName':r(0x15c),'modulePath':r(0x122),'isNamedExport':!![],'injectAtStart':!![]}),await this[r(0x141)][r(0x14a)]({'filePath':h,'content':r(0x135),'begin':r(0x129),'replace':!![]});const m=this[r(0x141)][r(0x128)]({'pathParts':[r(0x14f),'startup',r(0x12d),r(0x153)]});await this['scaffold'][r(0x131)]({'filePath':m+'.'+l,'importName':r(0x160),'modulePath':'meteor/accounts-base','isNamedExport':!![]}),await this[r(0x141)][r(0x14a)]({'filePath':m+'.'+l,'content':r(0x136),'begin':'Meteor.startup','replace':!![]});}catch(n){Log['error'](n),process['exit'](0x1);}},async function(){},a120e);
@@ -1 +1 @@
1
- const a121x=a121d;(function(a,b){const u=a121d,c=a();while(!![]){try{const d=parseInt(u(0x193))/0x1*(parseInt(u(0x16f))/0x2)+-parseInt(u(0x19c))/0x3+parseInt(u(0x1a2))/0x4+-parseInt(u(0x179))/0x5+-parseInt(u(0x175))/0x6*(parseInt(u(0x17b))/0x7)+-parseInt(u(0x196))/0x8*(parseInt(u(0x18e))/0x9)+parseInt(u(0x17f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x4bfad));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a121d;if(c){const e=c[v(0x18a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const w=a121d;return a121a[w(0x1a4)]()[w(0x198)](w(0x194))[w(0x1a4)]()[w(0x17c)](a121a)[w(0x198)](w(0x194));});a121a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a121e from'./auth.generator.js';function a121c(){const z=['provider','411597bYTdza','useContext','cfg','true','kit/auth/provider/authentication-provider.js','27410jGAExD','(((.+)+)+)+$','/imports/startup/lib','40QyQnHM','.js','search','\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','AuthContext','/routes','461952iOJeRs','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','<AppRoutes\x20/>','replaceAll','\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useContext(AuthContext);\x0a\x20\x20\x20\x20\x20\x20return\x20{\x20currentUser,\x20loading\x20};\x0a\x20\x20\x20\x20\x20\x20','injectIntoCodeBlock','1819872uoqRBC','getMakaProjectConfig','toString','ssr','14WOAeoi','template','error','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','REACT','/imports/startup/lib/authentication-provider','2340YQBLbj','pathFromApp','force','AuthProvider','288195vvbzAN','const\x20PrivateRoute','2086ctcMee','constructor','split','react','2208830toHyyu','appName','/imports/startup/client/authentication-provider','scaffold','\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useAuth();\x0a\x20\x20\x20\x20\x20\x20if\x20(loading)\x20return\x20<div>Loading...</div>;\x0a\x20\x20\x20\x20\x20\x20return\x20(currentUser)\x20?\x20<Outlet/>\x20:\x20<Navigate\x20to=\x22/login\x22\x20/>;\x0a\x20\x20\x20\x20\x20\x20','/imports/startup/client/index','const\x20useAuth','</AuthProvider>','bright','Creating\x20an\x20AuthProvider\x20and\x20AuthContext','engines','apply','injectAroundString','injectImport'];a121c=function(){return z;};return a121c();}import{headerCase}from'change-case';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x16e;let f=c[d];return f;},a121d(a,b);}import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':a121x(0x18d),'aliases':['p'],'usage':a121x(0x19d),'shortDesc':a121x(0x172),'validOpts':[a121x(0x177)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a121x(0x173)]},'description':a121x(0x199)},async function(a,b){const y=a121x;try{const c=b['force']||![];Log[y(0x187)](y(0x188));const d=await this[y(0x190)][y(0x1a3)](),f=d[y(0x189)][y(0x16e)]===y(0x191),g={'name':headerCase(d[y(0x180)])[y(0x19f)]('-','\x20')},h=f?y(0x195):'/imports/startup/client',i=this[y(0x182)][y(0x176)]({'pathParts':[h,'','','authentication-provider']});await this[y(0x182)][y(0x170)]({'srcPath':y(0x192),'destPath':i+y(0x197),'framework':y(0x17e),'context':g,'config':d,'force':c,'ignore':![]});const j=d[y(0x189)]['js'],k=h+y(0x19b),l=k[y(0x17d)]('/'),m=this[y(0x182)][y(0x176)]({'pathParts':l});await this[y(0x182)][y(0x18c)]({'filePath':m+'.'+j,'importName':y(0x19a),'modulePath':f?y(0x174):y(0x181),'isNamedExport':!![]}),await this[y(0x182)]['injectImport']({'filePath':m+'.'+j,'importName':y(0x18f),'modulePath':y(0x17e),'isNamedExport':!![],'injectAtStart':!![]}),await this[y(0x182)][y(0x1a1)]({'filePath':m+'.'+j,'content':y(0x1a0),'begin':[y(0x185),'function\x20useAuth'],'replace':!![]}),await this['scaffold'][y(0x1a1)]({'filePath':m+'.'+j,'content':y(0x183),'begin':[y(0x17a)],'replace':!![]});const n=y(0x184),o=n[y(0x17d)]('/'),p=this[y(0x182)][y(0x176)]({'pathParts':o});await this['scaffold'][y(0x18c)]({'filePath':p+'.'+j,'importName':y(0x178),'modulePath':f?y(0x174):y(0x181),'isNamedExport':!![]}),await this['scaffold']['injectAroundString']({'filePath':p+'.'+j,'aboveContent':'<AuthProvider>','belowContent':y(0x186),'targetString':'<AppRoutes\x20/>','indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q='/imports/startup/server/index',r=q['split']('/'),s=this['scaffold'][y(0x176)]({'pathParts':r});await this['scaffold'][y(0x18c)]({'filePath':s+'.'+j,'importName':y(0x178),'modulePath':f?'/imports/startup/lib/authentication-provider':y(0x181),'isNamedExport':!![]}),await this[y(0x182)][y(0x18b)]({'filePath':s+'.'+j,'aboveContent':'<AuthProvider>','belowContent':y(0x186),'targetString':y(0x19e),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log[y(0x171)](t),process['exit'](0x1);}},async function(){},a121e);
1
+ const a121x=a121d;(function(a,b){const u=a121d,c=a();while(!![]){try{const d=parseInt(u(0xed))/0x1+-parseInt(u(0xf3))/0x2+-parseInt(u(0xe3))/0x3+parseInt(u(0xc8))/0x4*(-parseInt(u(0xf8))/0x5)+parseInt(u(0xe8))/0x6*(parseInt(u(0xf4))/0x7)+-parseInt(u(0xd9))/0x8*(-parseInt(u(0xf0))/0x9)+-parseInt(u(0xea))/0xa*(-parseInt(u(0xdc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x5b7d6));function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0xc4;let f=c[d];return f;},a121d(a,b);}const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a121d;if(c){const e=c[v(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const w=a121d;return a121a[w(0xdb)]()[w(0xde)](w(0xe6))['toString']()['constructor'](a121a)['search'](w(0xe6));});function a121c(){const z=['scaffold','(((.+)+)+)+$','kit/auth/provider/authentication-provider.js','6gJHclY','injectImport','10HcDksS','</AuthProvider>','ssr','302936OTygEe','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','template','29115pUcLky','const\x20PrivateRoute','/imports/startup/client','561404ylkGMj','1926274fIgOTq','Creating\x20an\x20AuthProvider\x20and\x20AuthContext','create','<AuthProvider>','67330jfFeNR','force','REACT','cfg','<AppRoutes\x20/>','172RuPBVQ','function\x20useAuth','AuthProvider','pathFromApp','react','replaceAll','getMakaProjectConfig','/routes','apply','\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useContext(AuthContext);\x0a\x20\x20\x20\x20\x20\x20return\x20{\x20currentUser,\x20loading\x20};\x0a\x20\x20\x20\x20\x20\x20','injectAroundString','/imports/startup/client/index','/imports/startup/lib/authentication-provider','engines','split','appName','injectIntoCodeBlock','424gcVgGQ','/imports/startup/client/authentication-provider','toString','10199013nhlYzc','exit','search','authentication-provider','provider','\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useAuth();\x0a\x20\x20\x20\x20\x20\x20if\x20(loading)\x20return\x20<div>Loading...</div>;\x0a\x20\x20\x20\x20\x20\x20return\x20(currentUser)\x20?\x20<Outlet/>\x20:\x20<Navigate\x20to=\x22/login\x22\x20/>;\x0a\x20\x20\x20\x20\x20\x20','.js','1326822ZRKGao','useContext'];a121c=function(){return z;};return a121c();}a121a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a121e from'./auth.generator.js';import{headerCase}from'change-case';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a121x(0xf6)]({'name':a121x(0xe0),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','shortDesc':a121x(0xee),'validOpts':[a121x(0xc4)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a121x(0xc5)]},'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 y=a121x;try{const c=b[y(0xc4)]||![];Log['bright'](y(0xf5));const d=await this[y(0xc6)][y(0xce)](),f=d[y(0xd5)][y(0xec)]==='true',g={'name':headerCase(d[y(0xd7)])[y(0xcd)]('-','\x20')},h=f?'/imports/startup/lib':y(0xf2),i=this[y(0xe5)][y(0xcb)]({'pathParts':[h,'','',y(0xdf)]});await this['scaffold'][y(0xef)]({'srcPath':y(0xe7),'destPath':i+y(0xe2),'framework':y(0xcc),'context':g,'config':d,'force':c,'ignore':![]});const j=d[y(0xd5)]['js'],k=h+y(0xcf),l=k[y(0xd6)]('/'),m=this[y(0xe5)][y(0xcb)]({'pathParts':l});await this[y(0xe5)][y(0xe9)]({'filePath':m+'.'+j,'importName':'AuthContext','modulePath':f?y(0xd4):y(0xda),'isNamedExport':!![]}),await this['scaffold'][y(0xe9)]({'filePath':m+'.'+j,'importName':y(0xe4),'modulePath':y(0xcc),'isNamedExport':!![],'injectAtStart':!![]}),await this[y(0xe5)][y(0xd8)]({'filePath':m+'.'+j,'content':y(0xd1),'begin':['const\x20useAuth',y(0xc9)],'replace':!![]}),await this['scaffold']['injectIntoCodeBlock']({'filePath':m+'.'+j,'content':y(0xe1),'begin':[y(0xf1)],'replace':!![]});const n=y(0xd3),o=n[y(0xd6)]('/'),p=this[y(0xe5)][y(0xcb)]({'pathParts':o});await this[y(0xe5)]['injectImport']({'filePath':p+'.'+j,'importName':'AuthProvider','modulePath':f?y(0xd4):y(0xda),'isNamedExport':!![]}),await this[y(0xe5)][y(0xd2)]({'filePath':p+'.'+j,'aboveContent':'<AuthProvider>','belowContent':'</AuthProvider>','targetString':'<AppRoutes\x20/>','indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q='/imports/startup/server/index',r=q[y(0xd6)]('/'),s=this[y(0xe5)][y(0xcb)]({'pathParts':r});await this['scaffold'][y(0xe9)]({'filePath':s+'.'+j,'importName':y(0xca),'modulePath':f?'/imports/startup/lib/authentication-provider':'/imports/startup/client/authentication-provider','isNamedExport':!![]}),await this[y(0xe5)][y(0xd2)]({'filePath':s+'.'+j,'aboveContent':y(0xf7),'belowContent':y(0xeb),'targetString':y(0xc7),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log['error'](t),process[y(0xdd)](0x1);}},async function(){},a121e);
@@ -1 +1 @@
1
- (function(a,b){var f=a122d,c=a();while(!![]){try{var d=-parseInt(f(0x80))/0x1+-parseInt(f(0x7d))/0x2+-parseInt(f(0x7e))/0x3*(-parseInt(f(0x84))/0x4)+parseInt(f(0x78))/0x5*(parseInt(f(0x7a))/0x6)+parseInt(f(0x81))/0x7+parseInt(f(0x83))/0x8*(-parseInt(f(0x85))/0x9)+parseInt(f(0x82))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xc47c0));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x7b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0x79)]()[h(0x7f)](h(0x7c))['toString']()['constructor'](a122a)[h(0x7f)](h(0x7c));});a122a();function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x78;var f=c[d];return f;},a122d(a,b);}function a122c(){var i=['apply','(((.+)+)+)+$','2015500OrXbGm','3cXUMaa','search','565506UeiVHN','7881300aDLidk','7199380pUkaWX','36616rnLqLb','4882024czJXlK','2961RiVlRl','1362575rmTaJl','toString','18CDlCTk'];a122c=function(){return i;};return a122c();}import'./esri.generator.js';import'./map.esri.gen.js';
1
+ (function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0xd6))/0x1*(parseInt(f(0xcd))/0x2)+-parseInt(f(0xd8))/0x3*(-parseInt(f(0xcb))/0x4)+parseInt(f(0xd1))/0x5*(-parseInt(f(0xd3))/0x6)+-parseInt(f(0xcf))/0x7*(parseInt(f(0xd7))/0x8)+-parseInt(f(0xcc))/0x9+parseInt(f(0xd2))/0xa+parseInt(f(0xd4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xaac95));var a122b=(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;};}()),a122a=a122b(this,function(){var g=a122d;return a122a[g(0xce)]()['search'](g(0xd5))[g(0xce)]()[g(0xd0)](a122a)[g(0xd9)](g(0xd5));});a122a();function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0xcb;var f=c[d];return f;},a122d(a,b);}function a122c(){var h=['993464ZdzUax','20421JiRHnt','search','188DxhgSw','6700500vELvEN','689612ygkLSZ','toString','21XtPDIX','constructor','3365mdEyUH','8602220UWLNOK','1518KPtVDh','5080922ptSEnw','(((.+)+)+)+$','1RHroOA'];a122c=function(){return h;};return a122c();}import'./esri.generator.js';import'./map.esri.gen.js';
@@ -1 +1 @@
1
- const a123i=a123d;function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x121;let f=c[d];return f;},a123d(a,b);}(function(a,b){const f=a123d,c=a();while(!![]){try{const d=parseInt(f(0x12f))/0x1+parseInt(f(0x130))/0x2+parseInt(f(0x122))/0x3+parseInt(f(0x12d))/0x4*(-parseInt(f(0x127))/0x5)+parseInt(f(0x125))/0x6+parseInt(f(0x12b))/0x7+parseInt(f(0x132))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xea8a6));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a123d;if(c){const e=c[g(0x131)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const h=a123d;return a123a[h(0x12e)]()[h(0x129)](h(0x121))[h(0x12e)]()[h(0x124)](a123a)[h(0x129)](h(0x121));});a123a();import{Generator}from'../../../generator.js';import a123e from'../kit.js';const EsriGen=Generator[a123i(0x126)]({'name':'esri','aliases':['e'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','noNeedResource':!![],'shortDesc':a123i(0x12a),'validOpts':[''],'isPro':!![],'examples':[a123i(0x123)],'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=a123i;return{'success':!![],'message':'Esri\x20Kit\x20generated\x20successfully','details':{'filesCreated':[j(0x12c)],'filesUpdated':[j(0x128)]}};},async function(){},a123e);export default EsriGen;function a123c(){const k=['(((.+)+)+)+$','2297049EqMywJ','maka\x20g:kit:e','constructor','5846016VdWeCf','create','52735ZnMJNY','/foo','search','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','179158qOtVNR','/foo/bar','672uFDKAi','toString','205903QaQsfb','304860BCmmtW','apply','4869024cwkIMh'];a123c=function(){return k;};return a123c();}
1
+ function a123c(){const k=['/foo','\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','413932tisNrA','14kngybB','68rRyAxb','614504HichMJ','toString','create','(((.+)+)+)+$','2506524EGZJwQ','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','3238990jBEejt','8RqtMAt','2wNRQEl','9256383SDXYTr','esri','91026kdpkRC','maka\x20g:kit:e','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','Esri\x20Kit\x20generated\x20successfully','/foo/bar','apply','2936280GhRLlK','search','264CNCBnm'];a123c=function(){return k;};return a123c();}const a123i=a123d;(function(a,b){const f=a123d,c=a();while(!![]){try{const d=-parseInt(f(0x1b7))/0x1*(-parseInt(f(0x1a9))/0x2)+parseInt(f(0x1ac))/0x3*(parseInt(f(0x1b9))/0x4)+-parseInt(f(0x1b2))/0x5+parseInt(f(0x1a5))/0x6*(parseInt(f(0x1b8))/0x7)+parseInt(f(0x1a8))/0x8*(parseInt(f(0x1aa))/0x9)+-parseInt(f(0x1a7))/0xa+-parseInt(f(0x1ba))/0xb*(parseInt(f(0x1b4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x9f90a));function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a123d(a,b);}const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a123d;if(c){const e=c[g(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const h=a123d;return a123a[h(0x1bb)]()['search'](h(0x1bd))['toString']()['constructor'](a123a)[h(0x1b3)](h(0x1bd));});a123a();import{Generator}from'../../../generator.js';import a123e from'../kit.js';const EsriGen=Generator[a123i(0x1bc)]({'name':a123i(0x1ab),'aliases':['e'],'usage':a123i(0x1ae),'noNeedResource':!![],'shortDesc':a123i(0x1a6),'validOpts':[''],'isPro':!![],'examples':[a123i(0x1ad)],'description':a123i(0x1b6)},async function(){const j=a123i;return{'success':!![],'message':j(0x1af),'details':{'filesCreated':[j(0x1b0)],'filesUpdated':[j(0x1b5)]}};},async function(){},a123e);export default EsriGen;
@@ -1 +1 @@
1
- const a124r=a124d;(function(a,b){const p=a124d,c=a();while(!![]){try{const d=parseInt(p(0x1dc))/0x1+parseInt(p(0x1ea))/0x2+parseInt(p(0x1d5))/0x3+parseInt(p(0x1c9))/0x4*(parseInt(p(0x1bf))/0x5)+-parseInt(p(0x1df))/0x6+parseInt(p(0x1d3))/0x7*(-parseInt(p(0x1c8))/0x8)+parseInt(p(0x1c6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x1b85d));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const q=a124d;return a124a[q(0x1e7)]()[q(0x1de)](q(0x1d8))[q(0x1e7)]()[q(0x1c7)](a124a)['search'](q(0x1d8));});a124a();function a124c(){const t=['dir','scaffold','/imports/startup/client/templates','findProjectDirectory','injectTemplateModule','\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','@esri/react-arcgis','pathFromApp','/imports/startup/lib/templates','pkg','45QcZOTV','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','fsi','replaceAll','processAndRunGenerator','cfg','split','1126449MYrQMM','constructor','41464apqjmj','54396EqGqIs','true','FALSE','map','/imports/ui/','<div\x20id=\x22map\x22>','baseDir','Generate\x20an\x20Esri\x20map\x20component','.js','/imports/ui/hooks','189yvvyFg','engines','56313IcZjlW','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','create','(((.+)+)+)+$','Generating\x20a\x20map\x20component','</div>','checkNpmPackage','36006WuqEew','injectImport','search','473568SgTiTw','REACT','exit','react','bright','kit/esri/map/','esri-loader','getMakaProjectConfig','toString','injectIntoFile','appName','58546GWoFTL'];a124c=function(){return t;};return a124c();}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a124e from'./esri.generator.js';import a124f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a124d(a,b);}import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a124r(0x1d7)]({'name':a124r(0x1cc),'aliases':['m'],'usage':a124r(0x1d6),'shortDesc':a124r(0x1d0),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a124r(0x1e0)],'ssr':SsrEngines[a124r(0x1cb)]},'description':a124r(0x1f0)},async function(a,b){const s=a124r;try{Log[s(0x1e3)](s(0x1d9));const c='basic-map';await this[s(0x1be)][s(0x1db)]([s(0x1bb),s(0x1e5)],{'shouldInstall':!![]});const d=this[s(0x1c1)][s(0x1ee)](),f=await this[s(0x1c4)][s(0x1e6)](),g=f[s(0x1d4)]['ssr']===s(0x1ca),h=await a124f[s(0x1c3)]('page',[s(0x1cc)],{'cwd':d,'config':f}),i={'name':headerCase(f[s(0x1e9)])[s(0x1c2)]('-','\x20'),'componentName':pascalCase(c)},j=b['baseDir']?s(0x1cd)+b[s(0x1cf)]:s(0x1d2),k=this[s(0x1ec)][s(0x1bc)]({'pathParts':[j,b['dir'],paramCase(c),paramCase(c)]});await this[s(0x1ec)]['template']({'srcPath':s(0x1e4)+c+s(0x1d1),'destPath':k+s(0x1d1),'framework':s(0x1e2),'context':i,'config':f,'force':![],'ignore':![]});const l=''+j+b[s(0x1eb)]+'/'+c+'/'+c;await this[s(0x1ec)][s(0x1ef)](c,f,l);const m=h[s(0x1c5)]('/'),n=this['scaffold'][s(0x1bc)]({'pathParts':m});await this[s(0x1ec)][s(0x1dd)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?s(0x1bd):s(0x1ed),'isNamedExport':!![]}),await this[s(0x1ec)][s(0x1e8)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+s(0x1c0),'begin':[s(0x1ce),s(0x1ce)],'end':[s(0x1da)],'replace':!![]});}catch(o){Log['error'](o),process[s(0x1e1)](0x1);}},async function(){},a124e);
1
+ function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x113;let f=c[d];return f;},a124d(a,b);}const a124s=a124d;(function(a,b){const p=a124d,c=a();while(!![]){try{const d=-parseInt(p(0x143))/0x1*(-parseInt(p(0x13e))/0x2)+-parseInt(p(0x13b))/0x3*(-parseInt(p(0x12d))/0x4)+parseInt(p(0x123))/0x5*(-parseInt(p(0x121))/0x6)+-parseInt(p(0x13f))/0x7+parseInt(p(0x125))/0x8+parseInt(p(0x130))/0x9+-parseInt(p(0x11b))/0xa*(parseInt(p(0x13c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x597af));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a124d;if(c){const e=c[q(0x116)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const r=a124d;return a124a[r(0x12c)]()['search'](r(0x117))[r(0x12c)]()[r(0x12b)](a124a)[r(0x144)](r(0x117));});a124a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a124e from'./esri.generator.js';import a124f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';function a124c(){const u=['10gxjIfl','FALSE','injectIntoFile','dir','Generate\x20an\x20Esri\x20map\x20component','replaceAll','3570wOxERr','/imports/ui/','915QvBeWy','basic-map','339584oQIplB','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','/imports/startup/lib/templates','fsi','react','ssr','constructor','toString','449212tYDrNl','<div\x20id=\x22map\x22>','REACT','4009806jYBruo','processAndRunGenerator','scaffold','page','create','kit/esri/map/','injectImport','bright','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','.js','map','3RgfuTD','2630001sJWMPp','baseDir','262UrcICv','1083187YvsKfu','engines','true','Generating\x20a\x20map\x20component','2053wLwixl','search','@esri/react-arcgis','pathFromApp','getMakaProjectConfig','apply','(((.+)+)+)+$','checkNpmPackage','injectTemplateModule','esri-loader'];a124c=function(){return u;};return a124c();}import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a124s(0x134)]({'name':a124s(0x13a),'aliases':['m'],'usage':a124s(0x138),'shortDesc':a124s(0x11f),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a124s(0x12f)],'ssr':SsrEngines[a124s(0x11c)]},'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=a124s;try{Log[t(0x137)](t(0x142));const c=t(0x124);await this['pkg'][t(0x118)]([t(0x113),t(0x11a)],{'shouldInstall':!![]});const d=this[t(0x128)]['findProjectDirectory'](),f=await this['cfg'][t(0x115)](),g=f[t(0x140)][t(0x12a)]===t(0x141),h=await a124f[t(0x131)](t(0x133),[t(0x13a)],{'cwd':d,'config':f}),i={'name':headerCase(f['appName'])[t(0x120)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0x13d)]?t(0x122)+b['baseDir']:'/imports/ui/hooks',k=this[t(0x132)][t(0x114)]({'pathParts':[j,b[t(0x11e)],paramCase(c),paramCase(c)]});await this['scaffold']['template']({'srcPath':t(0x135)+c+t(0x139),'destPath':k+t(0x139),'framework':t(0x129),'context':i,'config':f,'force':![],'ignore':![]});const l=''+j+b[t(0x11e)]+'/'+c+'/'+c;await this[t(0x132)][t(0x119)](c,f,l);const m=h['split']('/'),n=this['scaffold'][t(0x114)]({'pathParts':m});await this['scaffold'][t(0x136)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0x127):'/imports/startup/client/templates','isNamedExport':!![]}),await this[t(0x132)][t(0x11d)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x126),'begin':[t(0x12e),'<div\x20id=\x22map\x22>'],'end':['</div>'],'replace':!![]});}catch(o){Log['error'](o),process['exit'](0x1);}},async function(){},a124e);
@@ -1 +1 @@
1
- const a125h=a125d;function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x15e;let f=c[d];return f;},a125d(a,b);}(function(a,b){const f=a125d,c=a();while(!![]){try{const d=-parseInt(f(0x160))/0x1*(-parseInt(f(0x169))/0x2)+parseInt(f(0x168))/0x3*(-parseInt(f(0x15e))/0x4)+-parseInt(f(0x16d))/0x5+parseInt(f(0x15f))/0x6+-parseInt(f(0x165))/0x7+-parseInt(f(0x162))/0x8*(-parseInt(f(0x164))/0x9)+parseInt(f(0x170))/0xa*(parseInt(f(0x167))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xf1c91));const a125b=(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;};}()),a125a=a125b(this,function(){const g=a125d;return a125a[g(0x16b)]()['search'](g(0x161))[g(0x16b)]()['constructor'](a125a)[g(0x16c)](g(0x161));});a125a();function a125c(){const i=['maka\x20g:k','maka\x20g:kit','8090BtaatU','95276gMyGPM','9069312UBGagj','4ltFyfB','(((.+)+)+)+$','75016goNLRG','create','63eoQADz','7795977jNuBhy','kit','15763fDBQuS','165hWwmqT','570254HkODIL','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','toString','search','2314435EgZBDX'];a125c=function(){return i;};return a125c();}import{Generator}from'../../generator.js';const KitGen=Generator[a125h(0x163)]({'name':a125h(0x166),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<name>','shortDesc':a125h(0x16a),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a125h(0x16f),a125h(0x16e)]},async function(){});export default KitGen;
1
+ function a125c(){const j=['Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','8LdABtb','6102396PKZFXt','search','constructor','7286720PIvrPE','2073789mkJOhg','2830653hJhjWI','269339phxhJV','maka\x20g:k','2438684tPlsQL','(((.+)+)+)+$','create','5kpkyLQ','toString','apply','17705493anJxlg'];a125c=function(){return j;};return a125c();}const a125i=a125d;(function(a,b){const f=a125d,c=a();while(!![]){try{const d=parseInt(f(0x1af))/0x1*(-parseInt(f(0x1a8))/0x2)+parseInt(f(0x1ad))/0x3+parseInt(f(0x1b1))/0x4*(parseInt(f(0x1a3))/0x5)+parseInt(f(0x1a9))/0x6+parseInt(f(0x1ae))/0x7+parseInt(f(0x1ac))/0x8+-parseInt(f(0x1a6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x8fb2a));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a125d;if(c){const e=c[g(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const h=a125d;return a125a[h(0x1a4)]()[h(0x1aa)]('(((.+)+)+)+$')[h(0x1a4)]()[h(0x1ab)](a125a)[h(0x1aa)](h(0x1a1));});function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a125d(a,b);}a125a();import{Generator}from'../../generator.js';const KitGen=Generator[a125i(0x1a2)]({'name':'kit','aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<name>','shortDesc':a125i(0x1a7),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit',a125i(0x1b0)]},async function(){});export default KitGen;
@@ -1 +1 @@
1
- (function(a,b){var f=a126d,c=a();while(!![]){try{var d=-parseInt(f(0xe4))/0x1*(-parseInt(f(0xe8))/0x2)+parseInt(f(0xe1))/0x3+-parseInt(f(0xe3))/0x4+-parseInt(f(0xe7))/0x5+-parseInt(f(0xec))/0x6+-parseInt(f(0xe9))/0x7+-parseInt(f(0xe2))/0x8*(-parseInt(f(0xe6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x416d1));function a126c(){var i=['apply','195174gYZaGT','4720792bbOIkV','2085992ahUcrW','1xVyvgh','search','18SrDqlT','1146710hKVjRx','481532jlWipw','2899568kuFvqv','(((.+)+)+)+$','toString','317838okhWDB'];a126c=function(){return i;};return a126c();}var a126b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a126d;if(c){var e=c[g(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){var h=a126d;return a126a['toString']()[h(0xe5)](h(0xea))[h(0xeb)]()['constructor'](a126a)['search'](h(0xea));});a126a();function a126d(a,b){var c=a126c();return a126d=function(d,e){d=d-0xe0;var f=c[d];return f;},a126d(a,b);}import'./mui.generator.js';import'./frame.mui.gen.js';import'./auth.mui.gen.js';
1
+ (function(a,b){var f=a126d,c=a();while(!![]){try{var d=-parseInt(f(0x171))/0x1*(parseInt(f(0x170))/0x2)+parseInt(f(0x177))/0x3*(parseInt(f(0x174))/0x4)+parseInt(f(0x17a))/0x5+-parseInt(f(0x16f))/0x6+-parseInt(f(0x175))/0x7+-parseInt(f(0x176))/0x8+parseInt(f(0x179))/0x9*(parseInt(f(0x172))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x90082));function a126d(a,b){var c=a126c();return a126d=function(d,e){d=d-0x16e;var f=c[d];return f;},a126d(a,b);}var a126b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a126d;if(c){var e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){var h=a126d;return a126a[h(0x173)]()['search']('(((.+)+)+)+$')[h(0x173)]()[h(0x178)](a126a)[h(0x16e)]('(((.+)+)+)+$');});function a126c(){var i=['apply','search','3119520ueivmP','470rehtRw','1493NeWlGb','10TVGjEv','toString','2188IHoPfW','3399228KWknQd','6832464pvksRJ','5316ufnDuv','constructor','11676141QsRvoC','2668790feWTcX'];a126c=function(){return i;};return a126c();}a126a();import'./mui.generator.js';import'./frame.mui.gen.js';import'./auth.mui.gen.js';
@@ -1 +1 @@
1
- const a127J=a127d;(function(a,b){const G=a127d,c=a();while(!![]){try{const d=-parseInt(G(0x1c5))/0x1+parseInt(G(0x1a5))/0x2*(-parseInt(G(0x1ce))/0x3)+parseInt(G(0x1bd))/0x4*(-parseInt(G(0x19a))/0x5)+parseInt(G(0x1bf))/0x6+-parseInt(G(0x19d))/0x7+-parseInt(G(0x1ac))/0x8*(parseInt(G(0x1ca))/0x9)+parseInt(G(0x198))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x66e86));function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x198;let f=c[d];return f;},a127d(a,b);}const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a127d;if(c){const e=c[H(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const I=a127d;return a127a[I(0x1a3)]()[I(0x1c9)]('(((.+)+)+)+$')[I(0x1a3)]()[I(0x1c0)](a127a)[I(0x1c9)](I(0x1c2));});a127a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a127e from'../../../generators/maka.gen.js';import a127f from'./mui.generator.js';import{paramCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a127J(0x1c7)]({'name':a127J(0x1d8),'aliases':['a'],'usage':a127J(0x1cd),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','validOpts':[a127J(0x1a4),a127J(0x1b4)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a127J(0x1ae)],'client':ClientEngines[a127J(0x1e0)]},'examples':[a127J(0x1ba),a127J(0x19c)],'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 K=a127J;try{const c=b['force']||![],d=this['fsi'][K(0x1d9)](),f=await this[K(0x1cb)]['getMakaProjectConfig'](),{authType:g}=await Actions[K(0x1a0)]({'type':'list','name':K(0x1b5),'message':K(0x1a9),'choices':[{'name':'Meteor\x20Accounts','value':K(0x1bc)},{'name':K(0x1d5),'value':K(0x1c1)}]}),h=K(0x1d2),i=K(0x1dc),j=K(0x1b2),k=K(0x1d3),l=K(0x1d1),m=b[K(0x1ad)]?K(0x1b9)+b[K(0x1ad)]:K(0x199),n=this[K(0x1b7)][K(0x1dd)]({'pathParts':[m,b[K(0x1db)],paramCase(h),paramCase(h)]}),o=this['scaffold'][K(0x1dd)]({'pathParts':[m,b[K(0x1db)],paramCase(i),paramCase(i)]}),p=this['scaffold'][K(0x1dd)]({'pathParts':[m,b['dir'],paramCase(j),paramCase(j)]}),q=this[K(0x1b7)][K(0x1dd)]({'pathParts':[m,b[K(0x1db)],paramCase(k),paramCase(k)]}),r=this['scaffold'][K(0x1dd)]({'pathParts':[m,b[K(0x1db)],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[K(0x1b3)])[K(0x1c4)]('-','\x20')};await this[K(0x1b7)][K(0x19b)]({'srcPath':K(0x1bb)+h+K(0x1d7),'destPath':n+K(0x1d7),'framework':K(0x1aa),'context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x1b7)][K(0x19b)]({'srcPath':K(0x1be)+i+K(0x1d7),'destPath':o+K(0x1d7),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x1b7)][K(0x19b)]({'srcPath':K(0x1b6)+j+K(0x1d7),'destPath':p+K(0x1d7),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x1b7)][K(0x19b)]({'srcPath':K(0x1c8)+k+K(0x1d7),'destPath':q+K(0x1d7),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x1b7)][K(0x19b)]({'srcPath':K(0x1a8)+l+K(0x1d7),'destPath':r+K(0x1d7),'framework':K(0x1aa),'context':s,'config':f,'force':c,'ignore':![]});const t=''+m+b[K(0x1db)]+'/'+h+'/'+h;await this['scaffold']['injectTemplateModule'](h,f,t);const u=''+m+b[K(0x1db)]+'/'+i+'/'+i;await this[K(0x1b7)][K(0x1a2)](i,f,u);const v=''+m+b[K(0x1db)]+'/'+j+'/'+j;await this[K(0x1b7)][K(0x1a2)](j,f,v);const w=''+m+b['dir']+'/'+k+'/'+k;await this['scaffold']['injectTemplateModule'](k,f,w);const x=''+m+b['dir']+'/'+l+'/'+l;await this['scaffold'][K(0x1a2)](l,f,x),await a127e[K(0x19f)](K(0x1a6),[K(0x1d2)],{'route':K(0x1a1),'cwd':d,'config':f}),await a127e[K(0x19f)]('route',[K(0x1dc)],{'route':K(0x1d6),'private':!![],'cwd':d,'config':f}),await a127e[K(0x19f)](K(0x1a6),[K(0x1b2)],{'route':K(0x1cf),'cwd':d,'config':f}),await a127e[K(0x19f)](K(0x1a6),[K(0x1d3)],{'route':K(0x1d0),'cwd':d,'config':f}),await a127e['processAndRunGenerator'](K(0x1a6),[K(0x1d1)],{'route':K(0x1c6),'cwd':d,'config':f});g==='meteor'&&await a127e[K(0x19f)](K(0x1df),[],{'force':c,'cwd':d,'config':f});g===K(0x1c1)&&await a127e[K(0x19f)](K(0x1de),[],{'force':c,'cwd':d,'config':f});const y=f[K(0x1b1)][K(0x1ab)]===K(0x1da),z=f[K(0x1b1)]['js'],A=this[K(0x1b7)][K(0x1dd)]({'pathParts':t[K(0x1b8)]('/')});await this[K(0x1b7)]['injectImport']({'filePath':A+'.'+z,'importName':K(0x1af),'modulePath':y?K(0x19e):K(0x1b0),'isNamedExport':!![]});const B=this[K(0x1b7)][K(0x1dd)]({'pathParts':u[K(0x1b8)]('/')});await this[K(0x1b7)][K(0x1d4)]({'filePath':B+'.'+z,'importName':K(0x1af),'modulePath':y?K(0x19e):K(0x1b0),'isNamedExport':!![]});const C=this[K(0x1b7)][K(0x1dd)]({'pathParts':v[K(0x1b8)]('/')});await this[K(0x1b7)][K(0x1d4)]({'filePath':C+'.'+z,'importName':K(0x1af),'modulePath':y?K(0x19e):K(0x1b0),'isNamedExport':!![]});const D=this[K(0x1b7)][K(0x1dd)]({'pathParts':w[K(0x1b8)]('/')});await this[K(0x1b7)][K(0x1d4)]({'filePath':D+'.'+z,'importName':K(0x1af),'modulePath':y?K(0x19e):'/imports/startup/client/authentication-provider','isNamedExport':!![]});const E=this[K(0x1b7)]['pathFromApp']({'pathParts':x['split']('/')});await this[K(0x1b7)][K(0x1d4)]({'filePath':E+'.'+z,'importName':K(0x1af),'modulePath':y?K(0x19e):K(0x1b0),'isNamedExport':!![]});}catch(F){Log[K(0x1a7)](F);}},async function(){const L=a127J;console[L(0x1e1)](L(0x1c3));},a127f);function a127c(){const M=['baseDir','MATERIAL','AuthContext','/imports/startup/client/authentication-provider','engines','basic-register-page','appName','force','authType','kit/mui/auth/register/','scaffold','split','/imports/ui/','maka\x20generate:kit:mui:frame','kit/mui/auth/login/','meteor','128TsEvdu','kit/mui/auth/logout/','1513890SmkFfU','constructor','custom','(((.+)+)+)+$','Cleaning\x20up...','replaceAll','64677Fwtsdb','forgot-password','create','kit/mui/auth/password-reset/','search','45vGhDEn','cfg','apply','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','6cZIQVC','register','reset-password/:token','basic-forgot-password-page','basic-login-page','basic-password-reset-page','injectImport','Custom\x20(roll\x20your\x20own)','logout','.js','auth','findProjectDirectory','true','dir','basic-logout-page','pathFromApp','kit:auth:provider','kit:auth:meteor','REACT','log','22569880WSseci','/imports/ui/pages/auth','94160lFwOyA','template','maka\x20g:k:m:f','4887757VRDHqT','/imports/startup/lib/authentication-provider','processAndRunGenerator','options','login','injectTemplateModule','toString','layouts','644426NPQGNC','route','error','kit/mui/auth/forgot-password/','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','react','ssr','124504kinErf'];a127c=function(){return M;};return a127c();}
1
+ function a127c(){const M=['appName','custom','force','create','Meteor\x20Accounts','basic-login-page','Custom\x20(roll\x20your\x20own)','802200prUdMy','error','.js','88820hNvqez','route','2523190QtkEuf','(((.+)+)+)+$','list','login','reset-password/:token','forgot-password','REACT','apply','injectTemplateModule','5YChviX','AuthContext','pathFromApp','MATERIAL','processAndRunGenerator','true','/imports/startup/lib/authentication-provider','861621JlwDsg','9HpUcFA','replaceAll','authType','ssr','basic-password-reset-page','constructor','meteor','basic-register-page','fsi','kit/mui/auth/logout/','engines','kit/mui/auth/password-reset/','basic-logout-page','baseDir','/imports/ui/pages/auth','maka\x20g:k:m:f','maka\x20generate:kit:mui:frame','layouts','/imports/startup/client/authentication-provider','101704esIjkw','dir','Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','kit:auth:meteor','897156nOhCLX','injectImport','split','getMakaProjectConfig','kit/mui/auth/login/','105OWdEIw','react','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','kit:auth:provider','491774lqnxhq','basic-forgot-password-page','template','logout','Cleaning\x20up...','register','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','options','log','scaffold'];a127c=function(){return M;};return a127c();}const a127J=a127d;(function(a,b){const G=a127d,c=a();while(!![]){try{const d=-parseInt(G(0x18e))/0x1+parseInt(G(0x1c1))/0x2+parseInt(G(0x1a0))/0x3+-parseInt(G(0x1b8))/0x4+parseInt(G(0x199))/0x5*(-parseInt(G(0x18b))/0x6)+parseInt(G(0x1bd))/0x7*(-parseInt(G(0x1b4))/0x8)+-parseInt(G(0x1a1))/0x9*(-parseInt(G(0x190))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x241c5));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a127d;if(c){const e=c[H(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const I=a127d;return a127a['toString']()['search']('(((.+)+)+)+$')['toString']()[I(0x1a6)](a127a)['search'](I(0x191));});a127a();function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x184;let f=c[d];return f;},a127d(a,b);}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a127e from'../../../generators/maka.gen.js';import a127f from'./mui.generator.js';import{paramCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a127J(0x187)]({'name':'auth','aliases':['a'],'usage':a127J(0x1bf),'shortDesc':a127J(0x1b6),'validOpts':[a127J(0x1b2),a127J(0x186)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a127J(0x19c)],'client':ClientEngines[a127J(0x196)]},'examples':[a127J(0x1b1),a127J(0x1b0)],'description':a127J(0x1c7)},async function(a,b){const K=a127J;try{const c=b['force']||![],d=this[K(0x1a9)]['findProjectDirectory'](),f=await this['cfg'][K(0x1bb)](),{authType:g}=await Actions[K(0x1c9)]({'type':K(0x192),'name':K(0x1a3),'message':K(0x1c8),'choices':[{'name':K(0x188),'value':K(0x1a7)},{'name':K(0x18a),'value':K(0x185)}]}),h=K(0x189),i=K(0x1ad),j=K(0x1a8),k='basic-password-reset-page',l=K(0x1c2),m=b[K(0x1ae)]?'/imports/ui/'+b['baseDir']:K(0x1af),n=this[K(0x1cb)][K(0x19b)]({'pathParts':[m,b[K(0x1b5)],paramCase(h),paramCase(h)]}),o=this[K(0x1cb)][K(0x19b)]({'pathParts':[m,b['dir'],paramCase(i),paramCase(i)]}),p=this[K(0x1cb)][K(0x19b)]({'pathParts':[m,b['dir'],paramCase(j),paramCase(j)]}),q=this[K(0x1cb)]['pathFromApp']({'pathParts':[m,b[K(0x1b5)],paramCase(k),paramCase(k)]}),r=this['scaffold']['pathFromApp']({'pathParts':[m,b[K(0x1b5)],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[K(0x184)])[K(0x1a2)]('-','\x20')};await this[K(0x1cb)][K(0x1c3)]({'srcPath':K(0x1bc)+h+K(0x18d),'destPath':n+K(0x18d),'framework':K(0x1be),'context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x1cb)][K(0x1c3)]({'srcPath':K(0x1aa)+i+K(0x18d),'destPath':o+K(0x18d),'framework':K(0x1be),'context':s,'config':f,'force':c,'ignore':![]}),await this['scaffold'][K(0x1c3)]({'srcPath':'kit/mui/auth/register/'+j+K(0x18d),'destPath':p+'.js','framework':K(0x1be),'context':s,'config':f,'force':c,'ignore':![]}),await this['scaffold'][K(0x1c3)]({'srcPath':K(0x1ac)+k+K(0x18d),'destPath':q+K(0x18d),'framework':K(0x1be),'context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x1cb)][K(0x1c3)]({'srcPath':'kit/mui/auth/forgot-password/'+l+K(0x18d),'destPath':r+K(0x18d),'framework':K(0x1be),'context':s,'config':f,'force':c,'ignore':![]});const t=''+m+b[K(0x1b5)]+'/'+h+'/'+h;await this[K(0x1cb)][K(0x198)](h,f,t);const u=''+m+b[K(0x1b5)]+'/'+i+'/'+i;await this[K(0x1cb)][K(0x198)](i,f,u);const v=''+m+b['dir']+'/'+j+'/'+j;await this['scaffold'][K(0x198)](j,f,v);const w=''+m+b[K(0x1b5)]+'/'+k+'/'+k;await this['scaffold'][K(0x198)](k,f,w);const x=''+m+b[K(0x1b5)]+'/'+l+'/'+l;await this['scaffold']['injectTemplateModule'](l,f,x),await a127e[K(0x19d)](K(0x18f),[K(0x189)],{'route':K(0x193),'cwd':d,'config':f}),await a127e[K(0x19d)](K(0x18f),[K(0x1ad)],{'route':K(0x1c4),'private':!![],'cwd':d,'config':f}),await a127e[K(0x19d)](K(0x18f),['basic-register-page'],{'route':K(0x1c6),'cwd':d,'config':f}),await a127e[K(0x19d)](K(0x18f),[K(0x1a5)],{'route':K(0x194),'cwd':d,'config':f}),await a127e[K(0x19d)]('route',[K(0x1c2)],{'route':K(0x195),'cwd':d,'config':f});g===K(0x1a7)&&await a127e[K(0x19d)](K(0x1b7),[],{'force':c,'cwd':d,'config':f});g===K(0x185)&&await a127e[K(0x19d)](K(0x1c0),[],{'force':c,'cwd':d,'config':f});const y=f['engines'][K(0x1a4)]===K(0x19e),z=f[K(0x1ab)]['js'],A=this['scaffold'][K(0x19b)]({'pathParts':t[K(0x1ba)]('/')});await this['scaffold'][K(0x1b9)]({'filePath':A+'.'+z,'importName':K(0x19a),'modulePath':y?K(0x19f):K(0x1b3),'isNamedExport':!![]});const B=this[K(0x1cb)]['pathFromApp']({'pathParts':u[K(0x1ba)]('/')});await this['scaffold']['injectImport']({'filePath':B+'.'+z,'importName':K(0x19a),'modulePath':y?K(0x19f):K(0x1b3),'isNamedExport':!![]});const C=this['scaffold'][K(0x19b)]({'pathParts':v[K(0x1ba)]('/')});await this[K(0x1cb)][K(0x1b9)]({'filePath':C+'.'+z,'importName':K(0x19a),'modulePath':y?K(0x19f):K(0x1b3),'isNamedExport':!![]});const D=this[K(0x1cb)][K(0x19b)]({'pathParts':w[K(0x1ba)]('/')});await this[K(0x1cb)][K(0x1b9)]({'filePath':D+'.'+z,'importName':K(0x19a),'modulePath':y?'/imports/startup/lib/authentication-provider':K(0x1b3),'isNamedExport':!![]});const E=this[K(0x1cb)][K(0x19b)]({'pathParts':x[K(0x1ba)]('/')});await this[K(0x1cb)][K(0x1b9)]({'filePath':E+'.'+z,'importName':K(0x19a),'modulePath':y?'/imports/startup/lib/authentication-provider':K(0x1b3),'isNamedExport':!![]});}catch(F){Log[K(0x18c)](F);}},async function(){const L=a127J;console[L(0x1ca)](L(0x1c5));},a127f);
@@ -1 +1 @@
1
- function a128c(){const H=['Cleaning\x20up...','options','engines','/imports/ui/components','error','imports','.js','<Outlet\x20/>','/imports/startup/lib/templates','template','6ErpyIm','create','-hook\x22>','fsi','5821320nVDYni','findAppDirectory','injectImport','force','Box','597237HPuGhs','replaceAll','react','frame','maka:react-tracker','</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','Container','cfg','</div>','1327340cJaAca','basic-app-bar','@mui/material/Container','checkMeteorPackage','maka\x20generate:kit:mui:frame','baseDir','pathFromApp','true','getMakaProjectConfig','965421oPCEEY','@mui/material/Box','dir','/imports/startup/client/templates','kit/mui/frame/app-bars/','MATERIAL','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','2283253SjTVXh','basic-drawer','5070564wormxa','join','maka\x20g:k:m:f','jsx','scaffold','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f}','/imports/ui/','<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>','toString','length','<Outlet/>','constructor','108892ttYsSW','checkbox','injectTemplateModule','basic-sticky-footer','tsx','getFiles','kit/mui/frame/drawers/','appName','kit/mui/frame/footers/','app-tests','test','search','log','\x20/>\x0a','pkg','apply','<div\x20id=\x22','24TohnWX','injectAroundString','layouts','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','(((.+)+)+)+$','No\x20layouts\x20selected','REACT'];a128c=function(){return H;};return a128c();}const a128E=a128d;(function(a,b){const B=a128d,c=a();while(!![]){try{const d=parseInt(B(0x1da))/0x1*(parseInt(B(0x20a))/0x2)+-parseInt(B(0x1e3))/0x3+-parseInt(B(0x1fe))/0x4+parseInt(B(0x1ec))/0x5+parseInt(B(0x1de))/0x6+parseInt(B(0x1fc))/0x7+parseInt(B(0x1c9))/0x8*(parseInt(B(0x1f5))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xb58ce));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a128d;if(c){const e=c[C(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const D=a128d;return a128a[D(0x206)]()[D(0x1c3)](D(0x1cd))[D(0x206)]()[D(0x209)](a128a)[D(0x1c3)](D(0x1cd));});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-0x1ba;let f=c[d];return f;},a128d(a,b);}import{Actions}from'../../../tools/actions/actions.class.js';import a128e from'path';import a128f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a128E(0x1db)]({'name':a128E(0x1e6),'aliases':['f'],'usage':a128E(0x203),'shortDesc':a128E(0x1cc),'validOpts':['layouts',a128E(0x1f1),'dir',a128E(0x1e1)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a128E(0x1fa)],'client':ClientEngines[a128E(0x1cf)]},'examples':[a128E(0x1f0),a128E(0x200)],'description':'\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20frame\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20'},async function(a,b){const F=a128E;try{const c=b[F(0x1e1)]||![],d=F(0x1ed),f=F(0x1fd),g=F(0x1bb),h=await this[F(0x1ea)][F(0x1f4)](),i=h[F(0x1d2)]['ssr']===F(0x1f3);await this[F(0x1c6)][F(0x1ef)](['session',F(0x1e7)],{'shouldInstall':!![]});const j=this[F(0x1dd)][F(0x1df)](),k=a128e[F(0x1ff)](j,F(0x1d5),'ui','layouts'),l=this[F(0x1dd)]['getDirectories'](k),m=await Actions[F(0x1d1)]({'type':F(0x20b),'name':'layouts','message':F(0x1fb),'choices':l});if(m[F(0x1cb)][F(0x207)]===0x0){Log[F(0x1d4)](F(0x1ce));return;}const n=b[F(0x1f1)]?F(0x204)+b[F(0x1f1)]:F(0x1d3),o=this[F(0x202)][F(0x1f2)]({'pathParts':[n,b[F(0x1f7)],paramCase(d),paramCase(d)]}),p=this[F(0x202)][F(0x1f2)]({'pathParts':[n,b[F(0x1f7)],paramCase(f),paramCase(f)]}),q=this[F(0x202)][F(0x1f2)]({'pathParts':[n,b['dir'],paramCase(g),paramCase(g)]}),r={'name':headerCase(h[F(0x1bf)])[F(0x1e4)]('-','\x20')};await this[F(0x202)][F(0x1d9)]({'srcPath':F(0x1f9)+d+F(0x1d6),'destPath':o+'.js','framework':'react','context':r,'config':h,'force':c,'ignore':![]}),await this[F(0x202)][F(0x1d9)]({'srcPath':F(0x1be)+f+F(0x1d6),'destPath':p+F(0x1d6),'framework':F(0x1e5),'context':r,'config':h,'force':c,'ignore':![]}),await this[F(0x202)]['template']({'srcPath':F(0x1c0)+g+F(0x1d6),'destPath':q+F(0x1d6),'framework':F(0x1e5),'context':r,'config':h,'force':c,'ignore':![]});const s=''+n+b[F(0x1f7)]+'/'+d+'/'+d;await this['scaffold'][F(0x1ba)](d,h,s);const t=''+n+b[F(0x1f7)]+'/'+f+'/'+f;await this[F(0x202)][F(0x1ba)](f,h,t);const u=''+n+b[F(0x1f7)]+'/'+g+'/'+g;await this['scaffold'][F(0x1ba)](g,h,u);const {layouts:v}=m;for(const w of v){const x=this[F(0x1dd)][F(0x1bd)](a128e[F(0x1ff)](k,w),{'extensions':[F(0x201),F(0x1bc)],'omit':[F(0x1c1),'tests',F(0x1c2)]});for(const y of x){const z=a128e[F(0x1ff)](k,w,y);await this[F(0x202)][F(0x1e0)]({'filePath':z,'importName':F(0x1e2),'modulePath':F(0x1f6),'isNamedExport':![]}),await this['scaffold'][F(0x1e0)]({'filePath':z,'importName':F(0x1e9),'modulePath':F(0x1ee),'isNamedExport':![]}),await this[F(0x202)][F(0x1e0)]({'filePath':z,'importName':pascalCase(d),'modulePath':i?F(0x1d8):'/imports/startup/client/templates','isNamedExport':!![]}),await this[F(0x202)]['injectIntoFile']({'filePath':z,'content':'<'+pascalCase(d)+'\x20/>\x0a','begin':[F(0x1c8)+w+'\x22>',F(0x1c8)+w+F(0x1dc)],'end':[F(0x208),'<Outlet\x20/>']}),await this[F(0x202)][F(0x1e0)]({'filePath':z,'importName':pascalCase(f),'modulePath':i?F(0x1d8):F(0x1f8),'isNamedExport':!![]}),await this['scaffold']['injectIntoFile']({'filePath':z,'content':'<'+pascalCase(f)+F(0x1c5),'begin':[F(0x1c8)+w+'\x22>','<div\x20id=\x22'+w+F(0x1dc)],'end':[F(0x208),F(0x1d7)]}),await this[F(0x202)]['injectIntoFile']({'filePath':z,'content':'<'+pascalCase(g)+'\x20/>\x0a','begin':[F(0x208),F(0x1d7)],'end':[F(0x1eb)]}),await this[F(0x202)][F(0x1e0)]({'filePath':z,'importName':pascalCase(g),'modulePath':i?'/imports/startup/lib/templates':F(0x1f8),'isNamedExport':!![]}),await this['scaffold'][F(0x1ca)]({'filePath':z,'aboveContent':F(0x205),'belowContent':F(0x1e8),'targetString':[F(0x208),F(0x1d7)],'targetIndentAdjustment':0x6});}}}catch(A){Log[F(0x1d4)](A);}},async function(){const G=a128E;console[G(0x1c4)](G(0x1d0));},a128f);
1
+ const a128D=a128d;(function(a,b){const B=a128d,c=a();while(!![]){try{const d=-parseInt(B(0x20d))/0x1+-parseInt(B(0x1f1))/0x2*(parseInt(B(0x22e))/0x3)+-parseInt(B(0x21b))/0x4+-parseInt(B(0x21a))/0x5*(-parseInt(B(0x1f5))/0x6)+-parseInt(B(0x1f7))/0x7+-parseInt(B(0x228))/0x8+parseInt(B(0x211))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xabe3c));const a128b=(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;};}()),a128a=a128b(this,function(){const C=a128d;return a128a[C(0x1f6)]()['search'](C(0x212))[C(0x1f6)]()[C(0x20b)](a128a)[C(0x218)]('(((.+)+)+)+$');});a128a();import{Generator}from'../../../generator.js';function a128c(){const G=['replaceAll','injectImport','80WABYPD','Cleaning\x20up...','<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>','true','2302932lecVrg','toString','7213206ShnmpN','@mui/material/Container','log','template','injectTemplateModule','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','pkg','layouts','basic-sticky-footer','<Outlet\x20/>','ssr','appName','getMakaProjectConfig','fsi','kit/mui/frame/drawers/','react','baseDir','findAppDirectory','app-tests','scaffold','constructor','error','822786rvXUvy','jsx','No\x20layouts\x20selected','\x20/>\x0a','33075792EfRQik','(((.+)+)+)+$','getDirectories','/imports/ui/components','checkbox','session','<div\x20id=\x22','search','-hook\x22>','5JHQsGz','1778544XaUQwZ','join','Container','injectIntoFile','kit/mui/frame/app-bars/','force','dir','length','</div>','imports','frame','/imports/ui/','.js','7673040RnCXlJ','basic-drawer','pathFromApp','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','Box','<Outlet/>','7338nbbYIV','options','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20frame\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','create','MATERIAL','tsx','/imports/startup/lib/templates','/imports/startup/client/templates'];a128c=function(){return G;};return a128c();}import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a128e from'path';import a128f from'./mui.generator.js';import{paramCase,pascalCase,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-0x1e7;let f=c[d];return f;},a128d(a,b);}Generator[a128D(0x1ea)]({'name':a128D(0x225),'aliases':['f'],'usage':'maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f}','shortDesc':a128D(0x1fc),'validOpts':['layouts',a128D(0x207),'dir','force'],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a128D(0x1eb)],'client':ClientEngines['REACT']},'examples':['maka\x20generate:kit:mui:frame','maka\x20g:k:m:f'],'description':a128D(0x1e8)},async function(a,b){const E=a128D;try{const c=b[E(0x220)]||![],d='basic-app-bar',f=E(0x229),g=E(0x1ff),h=await this['cfg'][E(0x203)](),i=h['engines'][E(0x201)]===E(0x1f4);await this[E(0x1fd)]['checkMeteorPackage']([E(0x216),'maka:react-tracker'],{'shouldInstall':!![]});const j=this[E(0x204)][E(0x208)](),k=a128e['join'](j,E(0x224),'ui','layouts'),l=this[E(0x204)][E(0x213)](k),m=await Actions[E(0x1e7)]({'type':E(0x215),'name':E(0x1fe),'message':E(0x22b),'choices':l});if(m[E(0x1fe)][E(0x222)]===0x0){Log[E(0x20c)](E(0x20f));return;}const n=b[E(0x207)]?E(0x226)+b[E(0x207)]:E(0x214),o=this[E(0x20a)]['pathFromApp']({'pathParts':[n,b['dir'],paramCase(d),paramCase(d)]}),p=this['scaffold']['pathFromApp']({'pathParts':[n,b[E(0x221)],paramCase(f),paramCase(f)]}),q=this[E(0x20a)][E(0x22a)]({'pathParts':[n,b[E(0x221)],paramCase(g),paramCase(g)]}),r={'name':headerCase(h[E(0x202)])[E(0x1ef)]('-','\x20')};await this[E(0x20a)][E(0x1fa)]({'srcPath':E(0x21f)+d+E(0x227),'destPath':o+E(0x227),'framework':E(0x206),'context':r,'config':h,'force':c,'ignore':![]}),await this[E(0x20a)]['template']({'srcPath':E(0x205)+f+'.js','destPath':p+E(0x227),'framework':'react','context':r,'config':h,'force':c,'ignore':![]}),await this[E(0x20a)]['template']({'srcPath':'kit/mui/frame/footers/'+g+E(0x227),'destPath':q+'.js','framework':E(0x206),'context':r,'config':h,'force':c,'ignore':![]});const s=''+n+b[E(0x221)]+'/'+d+'/'+d;await this[E(0x20a)][E(0x1fb)](d,h,s);const t=''+n+b[E(0x221)]+'/'+f+'/'+f;await this[E(0x20a)]['injectTemplateModule'](f,h,t);const u=''+n+b[E(0x221)]+'/'+g+'/'+g;await this[E(0x20a)][E(0x1fb)](g,h,u);const {layouts:v}=m;for(const w of v){const x=this['fsi']['getFiles'](a128e[E(0x21c)](k,w),{'extensions':[E(0x20e),E(0x1ec)],'omit':[E(0x209),'tests','test']});for(const y of x){const z=a128e['join'](k,w,y);await this[E(0x20a)][E(0x1f0)]({'filePath':z,'importName':E(0x22c),'modulePath':'@mui/material/Box','isNamedExport':![]}),await this['scaffold']['injectImport']({'filePath':z,'importName':E(0x21d),'modulePath':E(0x1f8),'isNamedExport':![]}),await this['scaffold'][E(0x1f0)]({'filePath':z,'importName':pascalCase(d),'modulePath':i?E(0x1ed):E(0x1ee),'isNamedExport':!![]}),await this[E(0x20a)][E(0x21e)]({'filePath':z,'content':'<'+pascalCase(d)+E(0x210),'begin':[E(0x217)+w+'\x22>',E(0x217)+w+E(0x219)],'end':[E(0x22d),'<Outlet\x20/>']}),await this['scaffold']['injectImport']({'filePath':z,'importName':pascalCase(f),'modulePath':i?'/imports/startup/lib/templates':E(0x1ee),'isNamedExport':!![]}),await this[E(0x20a)][E(0x21e)]({'filePath':z,'content':'<'+pascalCase(f)+E(0x210),'begin':[E(0x217)+w+'\x22>',E(0x217)+w+E(0x219)],'end':['<Outlet/>',E(0x200)]}),await this[E(0x20a)][E(0x21e)]({'filePath':z,'content':'<'+pascalCase(g)+'\x20/>\x0a','begin':[E(0x22d),E(0x200)],'end':[E(0x223)]}),await this['scaffold'][E(0x1f0)]({'filePath':z,'importName':pascalCase(g),'modulePath':i?E(0x1ed):'/imports/startup/client/templates','isNamedExport':!![]}),await this[E(0x20a)]['injectAroundString']({'filePath':z,'aboveContent':E(0x1f3),'belowContent':E(0x1e9),'targetString':[E(0x22d),E(0x200)],'targetIndentAdjustment':0x6});}}}catch(A){Log[E(0x20c)](A);}},async function(){const F=a128D;console[F(0x1f9)](F(0x1f2));},a128f);
@@ -1 +1 @@
1
- const a129j=a129d;(function(a,b){const g=a129d,c=a();while(!![]){try{const d=parseInt(g(0x1a2))/0x1*(parseInt(g(0x1b0))/0x2)+-parseInt(g(0x1ba))/0x3+parseInt(g(0x1ab))/0x4*(parseInt(g(0x1b3))/0x5)+parseInt(g(0x1ad))/0x6+parseInt(g(0x19c))/0x7*(parseInt(g(0x1aa))/0x8)+-parseInt(g(0x19d))/0x9*(parseInt(g(0x1b1))/0xa)+-parseInt(g(0x194))/0xb*(parseInt(g(0x1b8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x589bf));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a129d;if(c){const e=c[h(0x1b5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const i=a129d;return a129a[i(0x1b7)]()[i(0x19f)](i(0x1a3))[i(0x1b7)]()[i(0x19b)](a129a)['search'](i(0x1a3));});a129a();import{Generator}from'../../../generator.js';import{Actions}from'../../../tools/actions/actions.class.js';import{Log}from'../../../tools/log/log.class.js';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x194;let f=c[d];return f;},a129d(a,b);}import a129e from'../../../generators/maka.gen.js';import a129f from'../kit.js';const MuiGen=Generator['create']({'name':a129j(0x1ac),'aliases':['m'],'usage':a129j(0x1a8),'noNeedResource':!![],'shortDesc':a129j(0x198),'validOpts':[''],'isPro':!![],'examples':[a129j(0x19e)]},async function(){const k=a129j;Log[k(0x1a9)](k(0x1ae)),Log[k(0x1b4)](k(0x1af));const {kitChoices:a}=await Actions['options']({'type':'checkbox','name':k(0x199),'message':k(0x1b2),'choices':[{'name':k(0x1a6),'value':k(0x1b9)},{'name':k(0x19a),'value':k(0x197)}]}),b=this[k(0x1a4)][k(0x1bb)](),c=this[k(0x195)][k(0x196)]();a[k(0x1b6)](k(0x1b9))&&await a129e[k(0x1a1)](k(0x1a7),[],{'force':!![],'cwd':b,'config':c});a[k(0x1b6)](k(0x197))&&await a129e[k(0x1a1)](k(0x1a0),[],{'force':!![],'cwd':b,'config':c});if(a['length']===0x0){Log['info'](k(0x1a5));return;}},async function(){},a129f);function a129c(){const l=['Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!','\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','6ascNES','3890eRmXQg','Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','535qjGtLS','notice','apply','includes','toString','12eWQsyi','frame','461625OBEGag','findProjectDirectory','6299601iUZjsK','cfg','getMakaProjectConfig','auth','Material-UI\x20Kit','kitChoices','Auth\x20workflow\x20(login,\x20logout,\x20etc.)','constructor','764918qVZkXh','10953GYTfWM','maka\x20g:kit:m','search','kit:mui:auth','processAndRunGenerator','77365BmazOc','(((.+)+)+)+$','fsi','No\x20MUI\x20kits\x20selected.\x20Exiting.','Header,\x20Footer,\x20and\x20Drawer','kit:mui:frame','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','info','32XjLtoU','20632mBVLXt','mui','2050950YLpfZS'];a129c=function(){return l;};return a129c();}export default MuiGen;
1
+ const a129j=a129d;(function(a,b){const g=a129d,c=a();while(!![]){try{const d=parseInt(g(0x110))/0x1+-parseInt(g(0x118))/0x2+parseInt(g(0x104))/0x3+parseInt(g(0x102))/0x4*(-parseInt(g(0x105))/0x5)+-parseInt(g(0xfd))/0x6+parseInt(g(0xfc))/0x7*(parseInt(g(0x10f))/0x8)+parseInt(g(0x113))/0x9*(parseInt(g(0x116))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xa0da2));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a129d;if(c){const e=c[h(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const i=a129d;return a129a[i(0xfb)]()[i(0x119)](i(0x103))[i(0xfb)]()[i(0x10c)](a129a)[i(0x119)](i(0x103));});a129a();function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0xfa;let f=c[d];return f;},a129d(a,b);}import{Generator}from'../../../generator.js';import{Actions}from'../../../tools/actions/actions.class.js';import{Log}from'../../../tools/log/log.class.js';import a129e from'../../../generators/maka.gen.js';function a129c(){const l=['maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','fsi','2108ThIsxk','(((.+)+)+)+$','828498MwoVcy','1895EEIRpd','processAndRunGenerator','maka\x20g:kit:m','info','auth','No\x20MUI\x20kits\x20selected.\x20Exiting.','mui','constructor','checkbox','Header,\x20Footer,\x20and\x20Drawer','8ZzrxAB','87224TFcGhR','apply','length','70011rZuRXq','options','includes','1790qnfsHo','Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!','2332050JxANcW','search','findProjectDirectory','Auth\x20workflow\x20(login,\x20logout,\x20etc.)','cfg','kitChoices','\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','frame','toString','5541193iJWWgE','3136932rUpDZJ','kit:mui:auth','create'];a129c=function(){return l;};return a129c();}import a129f from'../kit.js';const MuiGen=Generator[a129j(0xff)]({'name':a129j(0x10b),'aliases':['m'],'usage':a129j(0x100),'noNeedResource':!![],'shortDesc':'Material-UI\x20Kit','validOpts':[''],'isPro':!![],'examples':[a129j(0x107)]},async function(){const k=a129j;Log['info'](k(0x117)),Log['notice'](k(0x11e));const {kitChoices:a}=await Actions[k(0x114)]({'type':k(0x10d),'name':k(0x11d),'message':'Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','choices':[{'name':k(0x10e),'value':k(0xfa)},{'name':k(0x11b),'value':k(0x109)}]}),b=this[k(0x101)][k(0x11a)](),c=this[k(0x11c)]['getMakaProjectConfig']();a[k(0x115)](k(0xfa))&&await a129e[k(0x106)]('kit:mui:frame',[],{'force':!![],'cwd':b,'config':c});a['includes'](k(0x109))&&await a129e['processAndRunGenerator'](k(0xfe),[],{'force':!![],'cwd':b,'config':c});if(a[k(0x112)]===0x0){Log[k(0x108)](k(0x10a));return;}},async function(){},a129f);export default MuiGen;
@@ -1 +1 @@
1
- const a130o=a130d;function a130c(){const q=['component/component.js','fileName','527838koluSq','176qsSuCQ','installNpmPackage','cfg','dir','.app-tests.js','layout','fsi','hook/hook.js','33537AdSRrm','warn','constructor','getMakaProjectConfig','withHook','checkNpmPackage','withHooks','findProjectDirectory','toString','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','includes','test','40PorzhP','findAppDirectory','react','493104FsGTbz','assign','/imports/ui/layouts','4680657RwTggE','css','create','2358uABVpz','injectAtBeginningOfFile','client','injectTemplateModule','search','1220280SVdrxM','ramda','maka\x20g:layout\x20mobile/iPhone8','template','.css','setTemplate','features','theme','split','engines','resourceName','withTranslations','template/template.css','test/test.js','600340nuQhSa','.js','import\x20\x27./','scaffold','graphql','Scaffolding\x20for\x20a\x20React\x20Layout.','ssr','string','none','apply','(((.+)+)+)+$','maka\x20g:l\x20web/safari','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','pkg','api','14fbDGVb','1MkhUqU','8285WWtYro'];a130c=function(){return q;};return a130c();}(function(a,b){const l=a130d,c=a();while(!![]){try{const d=-parseInt(l(0x1a9))/0x1*(parseInt(l(0x1ad))/0x2)+-parseInt(l(0x171))/0x3*(-parseInt(l(0x17d))/0x4)+-parseInt(l(0x1aa))/0x5*(-parseInt(l(0x186))/0x6)+-parseInt(l(0x1a8))/0x7*(parseInt(l(0x18b))/0x8)+-parseInt(l(0x183))/0x9+parseInt(l(0x199))/0xa+-parseInt(l(0x1ae))/0xb*(-parseInt(l(0x180))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x5f90b));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a130d;if(c){const e=c[m(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const n=a130d;return a130a[n(0x179)]()[n(0x18a)](n(0x1a3))[n(0x179)]()[n(0x173)](a130a)[n(0x18a)](n(0x1a3));});function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x171;let f=c[d];return f;},a130d(a,b);}a130a();import a130e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a130o(0x185)]({'name':a130o(0x1b3),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a130o(0x19e),'validOpts':[a130o(0x175)],'examples':[a130o(0x18d),a130o(0x1a4)]},async function(a,b){const p=a130o,c=p(0x182),d=this['fsi'][p(0x17e)](),e=this[p(0x19c)]['pathFromApp']({'pathParts':[c,b[p(0x1b1)],paramCase(b['resourceName']),paramCase(b[p(0x195)])]}),f=await this['cfg'][p(0x174)]();typeof f['template'][p(0x17c)]===p(0x1a0)&&this['cfg'][p(0x190)](p(0x17c),f[p(0x18e)][p(0x17c)]);typeof f[p(0x18e)][p(0x184)]===p(0x1a0)&&this[p(0x1b0)][p(0x190)]('css',f[p(0x18e)][p(0x184)]);typeof f['template']['js']===p(0x1a0)&&this['cfg']['setTemplate']('js',f[p(0x18e)]['js']);const g=b['_']?b['_'][0x0][p(0x193)](':')[0x1]:![],h=b['_']&&aliases[p(0x17b)](g);h&&!this['pkg'][p(0x176)](p(0x18c))&&(Log['warn'](p(0x1a5)),this[p(0x1a6)][p(0x1af)](p(0x18c),{'cwd':d}));if(h&&!this[p(0x1a6)][p(0x176)](p(0x17f))){Log[p(0x172)](p(0x17a));return;}const i={'name':pascalCase(b[p(0x195)]),'myPath':a130e['relative'](this[p(0x1b4)][p(0x178)](),e),'cssCaseName':paramCase(b[p(0x195)]),'className':pascalCase(b[p(0x195)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[p(0x195)]),'graphql':f[p(0x194)][p(0x19d)],'features':f[p(0x191)],'client':f[p(0x194)][p(0x188)],'api':f[p(0x194)][p(0x1a7)],'ssr':f['engines'][p(0x19f)],'test':f[p(0x194)][p(0x17c)],'theme':f['engines'][p(0x192)],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0x191)][p(0x196)]};f[p(0x191)]?.[p(0x177)]||b[p(0x175)]?await this[p(0x19c)][p(0x18e)]({'srcPath':p(0x1b5),'destPath':e+'.js','framework':'react','context':i,'config':f}):await this['scaffold']['template']({'srcPath':p(0x1ab),'destPath':e+p(0x19a),'framework':p(0x17f),'context':i,'config':f});f[p(0x194)]['test']!==p(0x1a1)&&await this[p(0x19c)]['template']({'srcPath':p(0x198),'destPath':e+p(0x1b2),'framework':p(0x17f),'context':i,'config':f});f[p(0x18e)][p(0x184)]&&(await this[p(0x19c)]['template']({'srcPath':p(0x197),'destPath':e+p(0x18f),'context':Object[p(0x181)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),await this[p(0x19c)][p(0x187)]({'filePath':e+'.'+f[p(0x194)]['js'],'content':p(0x19b)+i[p(0x1ac)]+'.'+f[p(0x194)]['css']+'\x27;'}));const j=b[p(0x1b1)]?'/'+b['dir']+'/':'/',k=''+c+j+i['fileName']+'/'+i[p(0x1ac)];await this['scaffold'][p(0x189)](i['className'],f,k);});
1
+ const a130o=a130d;function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0xda;let f=c[d];return f;},a130d(a,b);}(function(a,b){const l=a130d,c=a();while(!![]){try{const d=parseInt(l(0x102))/0x1+-parseInt(l(0xe4))/0x2*(-parseInt(l(0xdc))/0x3)+parseInt(l(0xfd))/0x4+-parseInt(l(0xed))/0x5+-parseInt(l(0xdd))/0x6+parseInt(l(0xf1))/0x7+-parseInt(l(0x105))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x826bd));function a130c(){const q=['template','layout','cfg','.app-tests.js','(((.+)+)+)+$','assign','283428erwoNY','2132898qntWOE','react','theme','ssr','client','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','getMakaProjectConfig','22XQbXED','test','apply','findAppDirectory','hook/hook.js','features','search','injectTemplateModule','checkNpmPackage','1010885ZVfYrH','template/template.css','engines','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','5481735RwMuWt','dir','component/component.js','setTemplate','.js','findProjectDirectory','Scaffolding\x20for\x20a\x20React\x20Layout.','withHooks','graphql','pkg','fsi','resourceName','2581320tyyCzM','ramda','includes','scaffold','withHook','622294EMtMRJ','import\x20\x27./','string','15984800EScSEz','test/test.js','toString','warn','injectAtBeginningOfFile','split','fileName','/imports/ui/layouts','css','maka\x20g:l\x20web/safari'];a130c=function(){return q;};return a130c();}const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a130d;if(c){const e=c[m(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const n=a130d;return a130a['toString']()[n(0xea)](n(0xda))[n(0x107)]()['constructor'](a130a)['search'](n(0xda));});a130a();import a130e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a130o(0x110),'aliases':aliases,'usage':a130o(0xf0),'shortDesc':a130o(0xf7),'validOpts':[a130o(0x101)],'examples':['maka\x20g:layout\x20mobile/iPhone8',a130o(0x10e)]},async function(a,b){const p=a130o,c=p(0x10c),d=this[p(0xfb)][p(0xe7)](),e=this['scaffold']['pathFromApp']({'pathParts':[c,b[p(0xf2)],paramCase(b[p(0xfc)]),paramCase(b[p(0xfc)])]}),f=await this[p(0x111)][p(0xe3)]();typeof f[p(0x10f)][p(0xe5)]===p(0x104)&&this[p(0x111)]['setTemplate'](p(0xe5),f[p(0x10f)]['test']);typeof f['template']['css']===p(0x104)&&this[p(0x111)][p(0xf4)]('css',f[p(0x10f)][p(0x10d)]);typeof f[p(0x10f)]['js']==='string'&&this[p(0x111)][p(0xf4)]('js',f[p(0x10f)]['js']);const g=b['_']?b['_'][0x0][p(0x10a)](':')[0x1]:![],h=b['_']&&aliases[p(0xff)](g);h&&!this['pkg'][p(0xec)]('ramda')&&(Log[p(0x108)](p(0xe2)),this[p(0xfa)]['installNpmPackage'](p(0xfe),{'cwd':d}));if(h&&!this['pkg'][p(0xec)](p(0xde))){Log[p(0x108)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[p(0xfc)]),'myPath':a130e['relative'](this[p(0xfb)][p(0xf6)](),e),'cssCaseName':paramCase(b[p(0xfc)]),'className':pascalCase(b[p(0xfc)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[p(0xfc)]),'graphql':f[p(0xef)][p(0xf9)],'features':f[p(0xe9)],'client':f[p(0xef)][p(0xe1)],'api':f['engines']['api'],'ssr':f['engines'][p(0xe0)],'test':f[p(0xef)][p(0xe5)],'theme':f[p(0xef)][p(0xdf)],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0xe9)]['withTranslations']};f[p(0xe9)]?.[p(0xf8)]||b[p(0x101)]?await this[p(0x100)][p(0x10f)]({'srcPath':p(0xe8),'destPath':e+p(0xf5),'framework':p(0xde),'context':i,'config':f}):await this[p(0x100)]['template']({'srcPath':p(0xf3),'destPath':e+'.js','framework':p(0xde),'context':i,'config':f});f['engines'][p(0xe5)]!=='none'&&await this[p(0x100)][p(0x10f)]({'srcPath':p(0x106),'destPath':e+p(0x112),'framework':'react','context':i,'config':f});f[p(0x10f)][p(0x10d)]&&(await this[p(0x100)]['template']({'srcPath':p(0xee),'destPath':e+'.css','context':Object[p(0xdb)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),await this[p(0x100)][p(0x109)]({'filePath':e+'.'+f[p(0xef)]['js'],'content':p(0x103)+i['fileName']+'.'+f['engines'][p(0x10d)]+'\x27;'}));const j=b[p(0xf2)]?'/'+b[p(0xf2)]+'/':'/',k=''+c+j+i[p(0x10b)]+'/'+i[p(0x10b)];await this['scaffold'][p(0xeb)](i['className'],f,k);});
@@ -1 +1 @@
1
- const a131i=a131d;function a131c(){const j=['2046708bIsivP','maka\x20g:route\x20todos/edit','search','apply','maka\x20g:api\x20trucks','constructor','maka\x20generate:scaffold\x20todos','8icXmay','maka\x20{generate,\x20g}:<generator>\x20<name>','maka\x20g:dbc\x20geoserver\x20--type=pgsql','1389946pmFJtu','maka\x20g:package\x20package:name','811350KjRmlx','216DFlPfC','generate','3223998ZogPIr','5945877eRTFrA','Scaffold\x20various\x20parts\x20of\x20your\x20application','23631jSCoGf','2471330Ubyxyc'];a131c=function(){return j;};return a131c();}(function(a,b){const f=a131d,c=a();while(!![]){try{const d=parseInt(f(0xb1))/0x1+parseInt(f(0xbb))/0x2+parseInt(f(0xb9))/0x3*(-parseInt(f(0xb4))/0x4)+-parseInt(f(0xba))/0x5+-parseInt(f(0xb3))/0x6+-parseInt(f(0xb7))/0x7+-parseInt(f(0xae))/0x8*(-parseInt(f(0xb6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xd3bbe));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a131d;if(c){const e=c[g(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const h=a131d;return a131a['toString']()[h(0xbd)]('(((.+)+)+)+$')['toString']()[h(0xac)](a131a)[h(0xbd)]('(((.+)+)+)+$');});a131a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a131i(0xb5),'aliases':['g'],'usage':a131i(0xaf),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a131i(0xb8),'examples':[a131i(0xad),'maka\x20g:scaffold\x20todos','maka\x20g:template\x20todos/todo_item',a131i(0xb2),a131i(0xbc),a131i(0xab),a131i(0xb0)]},async function(){});function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0xaa;let f=c[d];return f;},a131d(a,b);}export default MakaGen;
1
+ const a131i=a131d;(function(a,b){const f=a131d,c=a();while(!![]){try{const d=-parseInt(f(0x1e1))/0x1+-parseInt(f(0x1d7))/0x2+parseInt(f(0x1e7))/0x3+parseInt(f(0x1d9))/0x4*(-parseInt(f(0x1e6))/0x5)+-parseInt(f(0x1e2))/0x6*(-parseInt(f(0x1e0))/0x7)+-parseInt(f(0x1e9))/0x8*(-parseInt(f(0x1dc))/0x9)+-parseInt(f(0x1d8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x511ab));function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a131d(a,b);}const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a131d;if(c){const e=c[g(0x1e3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const h=a131d;return a131a[h(0x1da)]()[h(0x1ed)](h(0x1de))[h(0x1da)]()[h(0x1eb)](a131a)[h(0x1ed)](h(0x1de));});a131a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a131i(0x1db),'aliases':['g'],'usage':a131i(0x1e5),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':'Scaffold\x20various\x20parts\x20of\x20your\x20application','examples':[a131i(0x1ea),a131i(0x1dd),'maka\x20g:template\x20todos/todo_item',a131i(0x1ec),a131i(0x1e8),a131i(0x1df),a131i(0x1e4)]},async function(){});export default MakaGen;function a131c(){const j=['2472449XNnekU','106998uYShwk','6ebYBlJ','apply','maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20{generate,\x20g}:<generator>\x20<name>','5610TkhFbN','1415484RUoqmy','maka\x20g:route\x20todos/edit','83536CmavtE','maka\x20generate:scaffold\x20todos','constructor','maka\x20g:package\x20package:name','search','262478bfNtCj','3368870NlhuNu','1084GhfyjB','toString','generate','333WMUdTI','maka\x20g:scaffold\x20todos','(((.+)+)+)+$','maka\x20g:api\x20trucks'];a131c=function(){return j;};return a131c();}
@@ -1 +1 @@
1
- const a132n=a132d;(function(a,b){const k=a132d,c=a();while(!![]){try{const d=-parseInt(k(0xa3))/0x1+-parseInt(k(0x89))/0x2*(-parseInt(k(0x8e))/0x3)+parseInt(k(0x9c))/0x4+parseInt(k(0xa2))/0x5*(-parseInt(k(0x8a))/0x6)+-parseInt(k(0x87))/0x7*(-parseInt(k(0x88))/0x8)+-parseInt(k(0x90))/0x9+parseInt(k(0xa9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0xd2ba4));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a132d;if(c){const e=c[l(0x8f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const m=a132d;return a132a['toString']()[m(0xa8)](m(0xab))[m(0xa7)]()[m(0x91)](a132a)[m(0xa8)](m(0xab));});a132a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a132c(){const p=['pathFromApp','injectAtEndOfFile','startup','23590GiuVLu','1047577McOyKK','maka:check','maka\x20g:method\x20todos','index.','toString','search','26547140qqpaIu','maka\x20{generate,\x20g}:{method,\x20m}\x20name','(((.+)+)+)+$','21wVHQJI','1125680niqnPa','962wbcxsw','2088tGfJxO','methods','resourceName','cfg','4983vxKlcU','apply','12583728iNPMeX','constructor','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','imports','appPathPrefix','-rpc-method.','ddp-rate-limiter','scaffold','getMakaProjectConfig','dir','method','checkMeteorPackage','4299952VWXDIL','method/method.js','error'];a132c=function(){return p;};return a132c();}import{camelCase,paramCase,pascalCase}from'change-case';function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x87;let f=c[d];return f;},a132d(a,b);}Generator['create']({'name':a132n(0x9a),'aliases':['m'],'usage':a132n(0xaa),'checkWhere':!![],'shortDesc':a132n(0x92),'validOpts':['dir'],'examples':[a132n(0xa5)]},async function(a,b){const o=a132n;try{const c=await this[o(0x8d)][o(0x98)](),d=b[o(0x99)]?'/'+b[o(0x99)]+'/':'/',f=paramCase(b[o(0x8c)]),g={'name':b[o(0x8c)],'fileName':f,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x8c)]),'noRename':!![]};let h='js';c['engines']['js']==='tsx'&&(h='ts');await this['pkg'][o(0x9b)]([o(0xa4),o(0x96),'mdg:validated-method'],{'shouldInstall':!![]}),await this[o(0x97)]['template']({'srcPath':o(0x9d),'destPath':this['scaffold']['pathFromApp']({'pathParts':[o(0x93),o(0xa1),b[o(0x94)],o(0x8b),d,f+o(0x95)+h]}),'context':g,'config':c});const i=this['scaffold'][o(0x9f)]({'pathParts':[o(0x93),'startup',b[o(0x94)],o(0xa6)+c['engines']['js']]});await this['scaffold'][o(0xa0)]({'filePath':i,'content':'import\x20\x27./methods'+d+f+'-rpc-method\x27;'});}catch(j){Log[o(0x9e)](j);}});
1
+ function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x18d;let f=c[d];return f;},a132d(a,b);}const a132m=a132d;(function(a,b){const k=a132d,c=a();while(!![]){try{const d=-parseInt(k(0x1ad))/0x1+-parseInt(k(0x19e))/0x2+parseInt(k(0x197))/0x3*(-parseInt(k(0x1ae))/0x4)+-parseInt(k(0x198))/0x5+parseInt(k(0x196))/0x6*(parseInt(k(0x1a6))/0x7)+-parseInt(k(0x19a))/0x8+parseInt(k(0x1a9))/0x9*(parseInt(k(0x195))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x89521));const a132b=(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;};}()),a132a=a132b(this,function(){const l=a132d;return a132a[l(0x1af)]()[l(0x1a3)](l(0x1b0))[l(0x1af)]()[l(0x19b)](a132a)[l(0x1a3)](l(0x1b0));});a132a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a132m(0x193)]({'name':a132m(0x1a5),'aliases':['m'],'usage':a132m(0x1b3),'checkWhere':!![],'shortDesc':a132m(0x1b1),'validOpts':[a132m(0x1a7)],'examples':[a132m(0x1b2)]},async function(a,b){const n=a132m;try{const c=await this[n(0x19f)][n(0x199)](),d=b[n(0x1a7)]?'/'+b[n(0x1a7)]+'/':'/',f=paramCase(b[n(0x1a2)]),g={'name':b[n(0x1a2)],'fileName':f,'className':pascalCase(b[n(0x1a2)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let h='js';c['engines']['js']==='tsx'&&(h='ts');await this[n(0x192)]['checkMeteorPackage']([n(0x1ac),n(0x190),'mdg:validated-method'],{'shouldInstall':!![]}),await this[n(0x1a0)]['template']({'srcPath':n(0x194),'destPath':this[n(0x1a0)][n(0x1a8)]({'pathParts':[n(0x191),'startup',b[n(0x19c)],n(0x19d),d,f+n(0x18e)+h]}),'context':g,'config':c});const i=this[n(0x1a0)][n(0x1a8)]({'pathParts':[n(0x191),n(0x1a4),b['appPathPrefix'],n(0x18f)+c[n(0x1a1)]['js']]});await this[n(0x1a0)][n(0x1ab)]({'filePath':i,'content':n(0x18d)+d+f+'-rpc-method\x27;'});}catch(j){Log[n(0x1aa)](j);}});function a132c(){const o=['search','startup','method','21EBnItM','dir','pathFromApp','63QrYrtg','error','injectAtEndOfFile','maka:check','440544QihEBx','2509796wDZgoI','toString','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','maka\x20g:method\x20todos','maka\x20{generate,\x20g}:{method,\x20m}\x20name','import\x20\x27./methods','-rpc-method.','index.','ddp-rate-limiter','imports','pkg','create','method/method.js','2817390ghhUcK','1905678rGWoxM','3xbGGPt','1636670qbMkqg','getMakaProjectConfig','3540304jtWYUQ','constructor','appPathPrefix','methods','1049364vuXvIY','cfg','scaffold','engines','resourceName'];a132c=function(){return o;};return a132c();}
@@ -1 +1 @@
1
- const a133p=a133d;function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x88;let f=c[d];return f;},a133d(a,b);}(function(a,b){const m=a133d,c=a();while(!![]){try{const d=parseInt(m(0xb2))/0x1+parseInt(m(0xa8))/0x2*(parseInt(m(0xa6))/0x3)+parseInt(m(0x96))/0x4*(parseInt(m(0xa3))/0x5)+parseInt(m(0xa4))/0x6+-parseInt(m(0xae))/0x7*(parseInt(m(0xad))/0x8)+parseInt(m(0xb6))/0x9*(-parseInt(m(0xb5))/0xa)+-parseInt(m(0x9d))/0xb*(parseInt(m(0xac))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x89877));function a133c(){const r=['apply','graphql','toString','917004JMNBOy','template/template.js','pathFromApp','/package.js','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','tests/server','420OxGUWs','6309390ySfQSd','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','1196067gwfxrC','store','4poxlpN','ssr','findProjectDirectory','component','204PZQlsi','9784KMieGd','3129fYqlKE','package/','server','resourceName','158247GOnEEJ','scaffold','hasOwnProperty','10gbQyXK','1262934xMRCuL','template','package','getMakaProjectConfig','theme','dir','search','fsi','packages','layout','features','package.js','maka\x20g:package\x20todos:package','create','/client/','.js','(((.+)+)+)+$','31444JlffSg','noRename','pathFromAppWithNoReWrite','engines'];a133c=function(){return r;};return a133c();}const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a133d;if(c){const e=c[n(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const o=a133d;return a133a[o(0x9c)]()[o(0x8b)](o(0x95))[o(0x9c)]()['constructor'](a133a)[o(0x8b)](o(0x95));});a133a();import a133e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a133p(0x92)]({'name':a133p(0xb8),'aliases':['p'],'usage':a133p(0xa5),'shortDesc':a133p(0xa1),'validOpts':[a133p(0x8a)],'examples':[a133p(0x91)]},async function(a,b){const q=a133p,c=paramCase(b['resourceName']),d=b[q(0x8a)]?'/'+b[q(0x8a)]+'/':'/',e=this[q(0xb3)][q(0x9f)]({'pathParts':['packages',d,c]}),f=this['scaffold'][q(0x98)]({'pathParts':[q(0x8d),d,c,q(0x90)]}),g=await this['cfg'][q(0x88)](),h={'name':paramCase(b[q(0xb1)]),'myPath':a133e['relative'](this[q(0x8c)][q(0xaa)](),e),'cssCaseName':paramCase(b[q(0xb1)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0xb1)]),'fileName':c,'client':g[q(0x99)]['client'],'graphql':g['engines'][q(0x9b)],'ssr':g['engines'][q(0xa9)],'isComponent':b[q(0xb4)](q(0xab)),'isLayout':b['hasOwnProperty'](q(0x8e)),'isStore':b[q(0xb4)](q(0xa7)),'features':g[q(0x8f)],'noRename':!![],'theme':g[q(0x99)][q(0x89)]};await this[q(0xb3)][q(0xb7)]({'srcPath':'package/package.js','destPath':f,'context':h,'config':g}),h[q(0x97)]=![];const i=e+q(0x93)+c+'.js';await this[q(0xb3)]['template']({'srcPath':q(0x9e),'destPath':i,'context':h,'config':g});const j=['lib',q(0xb0),'tests/client',q(0xa2)];for(const k of j){const l=e+'/'+k+'/'+c+q(0x94);await this[q(0xb3)][q(0xb7)]({'srcPath':q(0xaf)+k+q(0xa0),'destPath':l,'context':h,'config':g});}});
1
+ const a133o=a133d;(function(a,b){const m=a133d,c=a();while(!![]){try{const d=parseInt(m(0xf1))/0x1+parseInt(m(0x108))/0x2+parseInt(m(0xfa))/0x3*(parseInt(m(0x110))/0x4)+parseInt(m(0xf0))/0x5+-parseInt(m(0x116))/0x6+-parseInt(m(0xff))/0x7+parseInt(m(0xf4))/0x8*(-parseInt(m(0xfe))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x4da2b));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 n=a133d;return a133a[n(0x112)]()[n(0x101)](n(0xeb))['toString']()['constructor'](a133a)['search'](n(0xeb));});a133a();import a133e from'path';function a133c(){const q=['/client/','server','/package.js','60iCtPkv','tests/server','getMakaProjectConfig','component','9BBXWGk','2710218ewhQpK','package/package.js','search','client','theme','store','noRename','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','packages','1266542iFghQo','package','pathFromAppWithNoReWrite','scaffold','dir','engines','.js','template/template.js','3272CJCZqA','fsi','toString','resourceName','findProjectDirectory','maka\x20g:package\x20todos:package','492222lWqycJ','template','(((.+)+)+)+$','hasOwnProperty','ssr','package/','create','2498980EQWTbl','589908mzvCSQ','relative','lib','7617032MPLZyg','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','pathFromApp'];a133c=function(){return q;};return a133c();}import{Generator}from'../generator.js';function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0xea;let f=c[d];return f;},a133d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a133o(0xef)]({'name':a133o(0x109),'aliases':['p'],'usage':a133o(0x106),'shortDesc':a133o(0xf5),'validOpts':[a133o(0x10c)],'examples':[a133o(0x115)]},async function(a,b){const p=a133o,c=paramCase(b[p(0x113)]),d=b[p(0x10c)]?'/'+b[p(0x10c)]+'/':'/',e=this[p(0x10b)][p(0xf6)]({'pathParts':[p(0x107),d,c]}),f=this[p(0x10b)][p(0x10a)]({'pathParts':['packages',d,c,'package.js']}),g=await this['cfg'][p(0xfc)](),h={'name':paramCase(b[p(0x113)]),'myPath':a133e[p(0xf2)](this[p(0x111)][p(0x114)](),e),'cssCaseName':paramCase(b[p(0x113)]),'className':pascalCase(b[p(0x113)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':g[p(0x10d)][p(0x102)],'graphql':g[p(0x10d)]['graphql'],'ssr':g[p(0x10d)][p(0xed)],'isComponent':b[p(0xec)](p(0xfd)),'isLayout':b[p(0xec)]('layout'),'isStore':b[p(0xec)](p(0x104)),'features':g['features'],'noRename':!![],'theme':g[p(0x10d)][p(0x103)]};await this['scaffold'][p(0xea)]({'srcPath':p(0x100),'destPath':f,'context':h,'config':g}),h[p(0x105)]=![];const i=e+p(0xf7)+c+p(0x10e);await this[p(0x10b)][p(0xea)]({'srcPath':p(0x10f),'destPath':i,'context':h,'config':g});const j=[p(0xf3),p(0xf8),'tests/client',p(0xfb)];for(const k of j){const l=e+'/'+k+'/'+c+'.js';await this[p(0x10b)][p(0xea)]({'srcPath':p(0xee)+k+p(0xf9),'destPath':l,'context':h,'config':g});}});
@@ -1 +1 @@
1
- const a134t=a134d;(function(a,b){const r=a134d,c=a();while(!![]){try{const d=-parseInt(r(0x1f5))/0x1*(-parseInt(r(0x238))/0x2)+-parseInt(r(0x214))/0x3*(parseInt(r(0x219))/0x4)+parseInt(r(0x22d))/0x5*(parseInt(r(0x23a))/0x6)+-parseInt(r(0x240))/0x7+-parseInt(r(0x207))/0x8+parseInt(r(0x209))/0x9+parseInt(r(0x227))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xcab51));const a134b=(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;};}()),a134a=a134b(this,function(){const s=a134d;return a134a[s(0x200)]()[s(0x204)](s(0x23c))['toString']()[s(0x1fd)](a134a)['search'](s(0x23c));});a134a();import a134e from'path';function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a134d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';function a134c(){const v=['fileName','2SUjwBE','<Route\x20index','4042758Ihazcf','routes.','(((.+)+)+)+$','url','error','toLowerCase','11079551YaRqYe','/imports/ui/pages','relative','</Route>','injectTemplateModule','.html','127234dGpELy','getMakaProjectConfig','engines','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','ssr','css','vanilla','injectAtBeginningOfFile','constructor','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','<Route\x20element={<PrivateRoute\x20/>}>','toString','warn','maka\x20g:page\x20todos/todos-item','setTemplate','search','string','.js','5760776OhzOmO','\x27;\x0a','11786931QmaQxT','template','ramda','indexOf','private','pkg','client','features','component/component.js','checkNpmPackage','test/test.js','20541MFVeyo','api','/>}/>\x0a','root','html','172TbrYkl','react','assign','import\x20\x27./','store','startup','installNpmPackage','withTranslations','trim','component','replaceAll','cfg','scaffold','pathFromApp','13169140ROXSgy','<Route\x20path=\x22*\x22','slice','fsi','\x22\x20element={<Component.','replace','5QxiefE','Updating\x20npm\x20packages\x20...','dir','test','create','resourceName','theme','hasOwnProperty','join','lib'];a134c=function(){return v;};return a134c();}const aliases=['p'];Generator[a134t(0x231)]({'name':'page','aliases':aliases,'usage':a134t(0x1f8),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a134t(0x20d),'boolFlag':!![]},{'name':a134t(0x23d)}],'examples':[a134t(0x202)]},async function(a,b){const u=a134t,c=u(0x241),d=this[u(0x22a)]['findAppDirectory'](),e=b['resourceName']['includes'](':')?b['resourceName']['split'](':')[0x0][u(0x221)]():b[u(0x232)]['trim'](),f=b['dir'][u(0x223)]('/','_')+'_'+e[u(0x223)]('/','_'),g=this[u(0x225)][u(0x226)]({'pathParts':[c,b[u(0x22f)],paramCase(f),paramCase(f)]}),h=await this[u(0x224)][u(0x1f6)]();let i='';typeof h[u(0x20a)]['html']===u(0x205)&&this[u(0x224)][u(0x203)](u(0x218),h[u(0x20a)][u(0x218)]);typeof h[u(0x20a)][u(0x230)]==='string'&&this[u(0x224)][u(0x203)](u(0x230),h['template'][u(0x230)]);typeof h[u(0x20a)][u(0x1fa)]===u(0x205)&&this[u(0x224)]['setTemplate']('css',h[u(0x20a)][u(0x1fa)]);typeof h[u(0x20a)]['js']==='string'&&this[u(0x224)]['setTemplate']('js',h[u(0x20a)]['js']);!b[u(0x217)]&&!this[u(0x20e)][u(0x212)]('ramda')&&(Log[u(0x201)](u(0x22e)),this[u(0x20e)][u(0x21f)](u(0x20b),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a134e[u(0x242)](this['fsi']['findProjectDirectory'](),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h['engines']['graphql'],'features':h[u(0x210)],'client':h[u(0x1f7)]['client'],'api':h[u(0x1f7)][u(0x215)],'ssr':h[u(0x1f7)][u(0x1f9)],'isStore':b[u(0x234)](u(0x21d)),'isComponent':b[u(0x234)](u(0x222)),'isLayout':b[u(0x234)]('layout'),'withTranslations':h[u(0x210)][u(0x220)],'test':h[u(0x1f7)][u(0x230)],'theme':h[u(0x1f7)][u(0x233)]};h['template']['html']&&await this[u(0x225)][u(0x20a)]({'srcPath':'template/template.html','destPath':g+u(0x1f4),'context':j,'config':h});h[u(0x210)]?.['withHooks']?await this[u(0x225)][u(0x20a)]({'srcPath':'hook/hook.js','destPath':g+u(0x206),'framework':u(0x21a),'context':j,'config':h}):await this[u(0x225)][u(0x20a)]({'srcPath':u(0x211),'destPath':g+u(0x206),'framework':'react','context':j,'config':h});h[u(0x1f7)][u(0x230)]!=='none'&&await this[u(0x225)][u(0x20a)]({'srcPath':u(0x213),'destPath':g+'.app-tests.js','framework':'react','context':j,'config':h});h['template'][u(0x1fa)]&&await this[u(0x225)][u(0x20a)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[u(0x21b)]({},j,{'className':paramCase(b[u(0x232)])}),'config':h});h['engines'][u(0x20f)]!=='react'&&h[u(0x1f7)]['client']!==u(0x1fb)?(h[u(0x20a)][u(0x1fa)]&&await this[u(0x225)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':u(0x21c)+j[u(0x237)]+'.'+h[u(0x1f7)]['html']+u(0x208)+u(0x21c)+j[u(0x237)]+'.'+h[u(0x1f7)][u(0x1fa)]+'\x27;'}),!h[u(0x20a)][u(0x1fa)]&&await this[u(0x225)][u(0x1fc)]({'filePath':g+'.'+h[u(0x1f7)]['js'],'content':u(0x21c)+j[u(0x237)]+'.'+h[u(0x1f7)][u(0x218)]+'\x27;'})):h['template']['css']&&await this[u(0x225)][u(0x1fc)]({'filePath':g+'.'+h[u(0x1f7)]['js'],'content':'import\x20\x27./'+j[u(0x237)]+'.'+h[u(0x1f7)][u(0x1fa)]+'\x27;'});const k=b[u(0x22f)]?'/'+b[u(0x22f)]+'/':'/';i=''+c+k+j[u(0x237)]+'/'+j[u(0x237)],await this['scaffold'][u(0x244)](j['className'],h,i);if(!b[u(0x217)]){const l=b['private']??![];if(!f){Log[u(0x23e)](u(0x1fe));throw new UsageError();}let m=b[u(0x23d)]?b['url']:'/'+b[u(0x22f)]['trim']()+'/'+b[u(0x232)][u(0x221)]()['replace'](/\\/g,'/')['replace'](/\/+$/,'')[u(0x23f)]();const n=b[u(0x232)][u(0x20c)](':');n!==-0x1&&(m+='/'+b[u(0x232)]['substring'](0x0,n)[u(0x221)]());m['endsWith']('/')&&(m=m[u(0x229)](0x0,-0x1));m=m[u(0x22c)](/\/\//g,'/');const o=h['engines']['js'],p=h[u(0x1f7)][u(0x1f9)]==='true'?u(0x236):u(0x20f),q=a134e[u(0x235)](d,'imports',u(0x21e),p,u(0x23b)+o);l?await this[u(0x225)]['injectIntoFile']({'filePath':q,'content':'<Route\x20path=\x22'+m+u(0x22b)+pascalCase(f)+u(0x216),'begin':[u(0x1ff)],'end':[u(0x243)]}):await this['scaffold']['injectIntoFile']({'filePath':q,'content':'<Route\x20path=\x22'+m+'\x22\x20element={<Component.'+pascalCase(f)+u(0x216),'begin':[u(0x239)],'end':[u(0x228)]});}});
1
+ function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x160;let f=c[d];return f;},a134d(a,b);}function a134c(){const v=['pkg','ssr','routes.','.app-tests.js','1891596TuuHMC','replaceAll','pathFromApp','<Route\x20path=\x22*\x22','.css','lib','endsWith','template','url','maka\x20g:page\x20todos/todos-item','root','none','constructor','client','test/test.js','component/component.js','engines','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','scaffold','Generate\x20a\x20page.','findProjectDirectory','create','private','fileName','string','search','\x22\x20element={<Component.','setTemplate','checkNpmPackage','import\x20\x27./','className','/imports/ui/pages','/>}/>\x0a','imports','error','graphql','slice','fsi','54NpSZzn','186KixwVK','dir','template/template.css','store','trim','hook/hook.js','warn','<Route\x20path=\x22','split','assign','layout','toString','40tSszfT','</Route>','component','cfg','substring','relative','test','<Route\x20index','26046VppBmK','react','(((.+)+)+)+$','Updating\x20npm\x20packages\x20...','injectIntoFile','css','.js','22SZlwFZ','hasOwnProperty','<Route\x20element={<PrivateRoute\x20/>}>','vanilla','withTranslations','2221592TCkXmz','resourceName','135611BzqQeI','66553dbdBeU','html','ramda','112120TwfSnp','injectAtBeginningOfFile','page','6374HWoLDU','true','1390dLFgIX'];a134c=function(){return v;};return a134c();}const a134t=a134d;(function(a,b){const r=a134d,c=a();while(!![]){try{const d=parseInt(r(0x193))/0x1+-parseInt(r(0x199))/0x2*(-parseInt(r(0x170))/0x3)+parseInt(r(0x196))/0x4*(-parseInt(r(0x17c))/0x5)+parseInt(r(0x16f))/0x6*(-parseInt(r(0x192))/0x7)+parseInt(r(0x190))/0x8+-parseInt(r(0x184))/0x9*(-parseInt(r(0x19b))/0xa)+parseInt(r(0x18b))/0xb*(-parseInt(r(0x1a0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x38369));const a134b=(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;};}()),a134a=a134b(this,function(){const s=a134d;return a134a[s(0x17b)]()[s(0x162)](s(0x186))['toString']()[s(0x1ac)](a134a)[s(0x162)](s(0x186));});a134a();import a134e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a134t(0x1b5)]({'name':a134t(0x198),'aliases':aliases,'usage':a134t(0x1b1),'shortDesc':a134t(0x1b3),'validOpts':[{'name':a134t(0x1b6),'boolFlag':!![]},{'name':a134t(0x1a8)}],'examples':[a134t(0x1a9)]},async function(a,b){const u=a134t,c=u(0x168),d=this[u(0x16e)]['findAppDirectory'](),e=b[u(0x191)]['includes'](':')?b[u(0x191)][u(0x178)](':')[0x0][u(0x174)]():b[u(0x191)]['trim'](),f=b['dir'][u(0x1a1)]('/','_')+'_'+e[u(0x1a1)]('/','_'),g=this[u(0x1b2)][u(0x1a2)]({'pathParts':[c,b[u(0x171)],paramCase(f),paramCase(f)]}),h=await this['cfg']['getMakaProjectConfig']();let i='';typeof h[u(0x1a7)][u(0x194)]==='string'&&this[u(0x17f)][u(0x164)](u(0x194),h[u(0x1a7)][u(0x194)]);typeof h[u(0x1a7)][u(0x182)]===u(0x161)&&this[u(0x17f)][u(0x164)](u(0x182),h[u(0x1a7)][u(0x182)]);typeof h[u(0x1a7)][u(0x189)]===u(0x161)&&this[u(0x17f)]['setTemplate']('css',h['template']['css']);typeof h[u(0x1a7)]['js']===u(0x161)&&this[u(0x17f)]['setTemplate']('js',h[u(0x1a7)]['js']);!b[u(0x1aa)]&&!this[u(0x19c)][u(0x165)](u(0x195))&&(Log[u(0x176)](u(0x187)),this['pkg']['installNpmPackage'](u(0x195),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a134e[u(0x181)](this[u(0x16e)][u(0x1b4)](),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[u(0x1b0)][u(0x16c)],'features':h['features'],'client':h['engines'][u(0x1ad)],'api':h[u(0x1b0)]['api'],'ssr':h[u(0x1b0)][u(0x19d)],'isStore':b['hasOwnProperty'](u(0x173)),'isComponent':b['hasOwnProperty'](u(0x17e)),'isLayout':b[u(0x18c)](u(0x17a)),'withTranslations':h['features'][u(0x18f)],'test':h['engines']['test'],'theme':h[u(0x1b0)]['theme']};h['template'][u(0x194)]&&await this[u(0x1b2)][u(0x1a7)]({'srcPath':'template/template.html','destPath':g+'.html','context':j,'config':h});h['features']?.['withHooks']?await this[u(0x1b2)]['template']({'srcPath':u(0x175),'destPath':g+u(0x18a),'framework':'react','context':j,'config':h}):await this[u(0x1b2)][u(0x1a7)]({'srcPath':u(0x1af),'destPath':g+u(0x18a),'framework':u(0x185),'context':j,'config':h});h[u(0x1b0)]['test']!==u(0x1ab)&&await this[u(0x1b2)][u(0x1a7)]({'srcPath':u(0x1ae),'destPath':g+u(0x19f),'framework':u(0x185),'context':j,'config':h});h['template']['css']&&await this['scaffold'][u(0x1a7)]({'srcPath':u(0x172),'destPath':g+u(0x1a4),'context':Object[u(0x179)]({},j,{'className':paramCase(b[u(0x191)])}),'config':h});h[u(0x1b0)][u(0x1ad)]!==u(0x185)&&h['engines'][u(0x1ad)]!==u(0x18e)?(h[u(0x1a7)][u(0x189)]&&await this[u(0x1b2)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+j[u(0x160)]+'.'+h[u(0x1b0)][u(0x194)]+'\x27;\x0a'+u(0x166)+j[u(0x160)]+'.'+h[u(0x1b0)]['css']+'\x27;'}),!h[u(0x1a7)][u(0x189)]&&await this['scaffold'][u(0x197)]({'filePath':g+'.'+h[u(0x1b0)]['js'],'content':u(0x166)+j[u(0x160)]+'.'+h[u(0x1b0)]['html']+'\x27;'})):h[u(0x1a7)][u(0x189)]&&await this['scaffold'][u(0x197)]({'filePath':g+'.'+h[u(0x1b0)]['js'],'content':u(0x166)+j[u(0x160)]+'.'+h[u(0x1b0)]['css']+'\x27;'});const k=b[u(0x171)]?'/'+b[u(0x171)]+'/':'/';i=''+c+k+j[u(0x160)]+'/'+j['fileName'],await this[u(0x1b2)]['injectTemplateModule'](j[u(0x167)],h,i);if(!b[u(0x1aa)]){const l=b['private']??![];if(!f){Log[u(0x16b)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}let m=b[u(0x1a8)]?b[u(0x1a8)]:'/'+b[u(0x171)][u(0x174)]()+'/'+b[u(0x191)][u(0x174)]()['replace'](/\\/g,'/')['replace'](/\/+$/,'')['toLowerCase']();const n=b[u(0x191)]['indexOf'](':');n!==-0x1&&(m+='/'+b['resourceName'][u(0x180)](0x0,n)[u(0x174)]());m[u(0x1a6)]('/')&&(m=m[u(0x16d)](0x0,-0x1));m=m['replace'](/\/\//g,'/');const o=h[u(0x1b0)]['js'],p=h[u(0x1b0)]['ssr']===u(0x19a)?u(0x1a5):u(0x1ad),q=a134e['join'](d,u(0x16a),'startup',p,u(0x19e)+o);l?await this[u(0x1b2)][u(0x188)]({'filePath':q,'content':u(0x177)+m+u(0x163)+pascalCase(f)+u(0x169),'begin':[u(0x18d)],'end':[u(0x17d)]}):await this[u(0x1b2)][u(0x188)]({'filePath':q,'content':u(0x177)+m+'\x22\x20element={<Component.'+pascalCase(f)+'/>}/>\x0a','begin':[u(0x183)],'end':[u(0x1a3)]});}});
@@ -1 +1 @@
1
- function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x138;let f=c[d];return f;},a135d(a,b);}const a135q=a135d;(function(a,b){const n=a135d,c=a();while(!![]){try{const d=parseInt(n(0x158))/0x1+-parseInt(n(0x138))/0x2*(-parseInt(n(0x148))/0x3)+-parseInt(n(0x15b))/0x4+-parseInt(n(0x13d))/0x5*(-parseInt(n(0x149))/0x6)+-parseInt(n(0x14a))/0x7+parseInt(n(0x15c))/0x8*(parseInt(n(0x153))/0x9)+parseInt(n(0x142))/0xa*(-parseInt(n(0x157))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xa2ecb));function a135c(){const s=['template','/imports/ui/','import\x20\x27./publications','6610LHLemk','search','startup','exit','globalPublish','dir','174jhtXxR','434802RWybLT','4106053xzqwBy','baseDir','maka\x20g:publish\x20todos','publish','/imports/startup/server/publications','publish/publish.js','create','toString','resourceName','3920895WxiVuj','apply','engines','appPathPrefix','12034luhIfM','461510jDMZCN','error','force','2136392hQyQvF','8GnKBLy','scaffold','getMakaProjectConfig','index.','13174GtkOxY','injectAtEndOfFile','cfg','imports','(((.+)+)+)+$','85nTFemn','pathFromApp'];a135c=function(){return s;};return a135c();}const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a135d;if(c){const e=c[o(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const p=a135d;return a135a[p(0x151)]()[p(0x143)](p(0x13c))['toString']()['constructor'](a135a)['search']('(((.+)+)+)+$');});a135a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a135q(0x150)]({'name':a135q(0x14d),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a135q(0x15a),a135q(0x146)],'examples':[a135q(0x14c)]},async function(a,b){const r=a135q;try{const c=b[r(0x15a)]||![],d=b[r(0x14b)]?r(0x140)+b[r(0x14b)]:r(0x14e),f=await this[r(0x13a)][r(0x15e)](),g=paramCase(b['resourceName']),h=this[r(0x15d)][r(0x13e)]({'pathParts':[d,b['dir'],'',g]});let i='js';f[r(0x155)]['js']==='tsx'&&(i='ts');const j={'name':b['resourceName'],'collection':pascalCase(b[r(0x152)]),'noRename':!![],'globalPublish':b['globalPublish']};await this['scaffold'][r(0x13f)]({'srcPath':r(0x14f),'destPath':h+'.'+i,'context':j,'config':f,'force':c});const k=this[r(0x15d)][r(0x13e)]({'pathParts':[r(0x13b),r(0x144),'server',b[r(0x156)],r(0x15f)+f[r(0x155)]['js']]}),l=b[r(0x147)]?'/'+b['dir']+'/':'/';await this[r(0x15d)][r(0x139)]({'filePath':k,'content':r(0x141)+l+g+'\x27;'});}catch(m){Log[r(0x159)](m),process[r(0x145)](0x1);}});
1
+ const a135q=a135d;(function(a,b){const n=a135d,c=a();while(!![]){try{const d=-parseInt(n(0xd8))/0x1+parseInt(n(0xc6))/0x2*(-parseInt(n(0xc9))/0x3)+-parseInt(n(0xde))/0x4+-parseInt(n(0xbe))/0x5*(-parseInt(n(0xc7))/0x6)+-parseInt(n(0xd0))/0x7*(parseInt(n(0xdf))/0x8)+-parseInt(n(0xca))/0x9*(-parseInt(n(0xcc))/0xa)+parseInt(n(0xc8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x2e244));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a135d;if(c){const e=c[o(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const p=a135d;return a135a[p(0xcb)]()[p(0xcd)](p(0xdd))[p(0xcb)]()['constructor'](a135a)[p(0xcd)](p(0xdd));});function a135c(){const s=['globalPublish','create','injectAtEndOfFile','/imports/ui/','16685lRTWCZ','getMakaProjectConfig','maka\x20g:publish\x20todos','publish','startup','publish/publish.js','resourceName','index.','251954boQkWw','126MCPpQX','7857421ghkyXm','3ZwFtFm','188127gjSUaC','toString','150peAsqW','search','import\x20\x27./publications','pathFromApp','21fQloJm','apply','cfg','/imports/startup/server/publications','dir','imports','tsx','server','188901OdVyJp','exit','scaffold','error','engines','(((.+)+)+)+$','873512WWNTYs','1001816jOgkSQ','force','baseDir','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html'];a135c=function(){return s;};return a135c();}function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xbc;let f=c[d];return f;},a135d(a,b);}a135a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a135q(0xe4)]({'name':a135q(0xc1),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a135q(0xe2),'validOpts':[a135q(0xe0),a135q(0xe3)],'examples':[a135q(0xc0)]},async function(a,b){const r=a135q;try{const c=b[r(0xe0)]||![],d=b[r(0xe1)]?r(0xbd)+b['baseDir']:r(0xd3),f=await this[r(0xd2)][r(0xbf)](),g=paramCase(b['resourceName']),h=this[r(0xda)][r(0xcf)]({'pathParts':[d,b[r(0xd4)],'',g]});let i='js';f[r(0xdc)]['js']===r(0xd6)&&(i='ts');const j={'name':b[r(0xc4)],'collection':pascalCase(b['resourceName']),'noRename':!![],'globalPublish':b[r(0xe3)]};await this[r(0xda)]['template']({'srcPath':r(0xc3),'destPath':h+'.'+i,'context':j,'config':f,'force':c});const k=this[r(0xda)][r(0xcf)]({'pathParts':[r(0xd5),r(0xc2),r(0xd7),b['appPathPrefix'],r(0xc5)+f['engines']['js']]}),l=b[r(0xd4)]?'/'+b['dir']+'/':'/';await this['scaffold'][r(0xbc)]({'filePath':k,'content':r(0xce)+l+g+'\x27;'});}catch(m){Log[r(0xdb)](m),process[r(0xd9)](0x1);}});