@maka/maka-cli 4.7.1 → 4.7.2
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.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a99d(a,b);}const a99x=a99d;(function(a,b){const u=a99d,c=a();while(!![]){try{const d=parseInt(u(0x1f4))/0x1+-parseInt(u(0x200))/0x2+parseInt(u(0x244))/0x3*(parseInt(u(0x213))/0x4)+-parseInt(u(0x234))/0x5+parseInt(u(0x227))/0x6+parseInt(u(0x243))/0x7+parseInt(u(0x1f2))/0x8*(-parseInt(u(0x210))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xbd414));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x218)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a['toString']()['search']('(((.+)+)+)+$')[w(0x233)]()[w(0x239)](a99a)[w(0x237)](w(0x232));});a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99c(){const A=['REST\x20API','No\x20API\x20boundaries\x20selected','index.','graphql','options','ddp-rate-limiter','checkMeteorPackage','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','publications.','withValue','fsi','const','2056668IckmVY','import\x20{\x20typeDefs\x20as\x20','push','withGql','Publications','api/resolvers.js','startup','rpc-methods.','\x0aimport\x20{\x20resolvers\x20as\x20','mdg:validated-method','/graphql/typeDefs','(((.+)+)+)+$','toString','1547530IApNpZ','if\x20\x5c(typeList','import\x20\x27./register-','search','TypeDefs\x20}\x20from\x20\x27','constructor','server','api/api.js','rest','pathFromApp','getMakaProjectConfig','dir','withRest','Resolvers);\x0a\x0a','injectIntoFile','488362xPUGVk','3JKboQA','api/tests.js','none','injectAtEndOfFile','engines','apiAnswers','\x27;\x0a','withMethods','API\x20boundaries\x20to\x20create','api/fixtures.js','checkbox','api','5520472KVpJhu','maka:rest','1492865rzztCh','api/methods.js','error','apollo','typeDefs.','Resolvers\x20}\x20from\x20\x27','typeList.push(','withPubs','template','TypeDefs);\x0a','rest-api.','fixtures.','913252jvXclF','maka\x20{generate,\x20g}:{api}\x20<resource-name>','collection','register-','Fixtures','GraphQL','withFixtures','create','processAndRunGenerator','resolverList.push(','imports','maka\x20g:api\x20Todos','exit','tsx','/imports/api','rewriteDestinationPathForEngine','18AaHZNp','length','-api.','4064116ozHdIc','RPC\x20(Methods)','injectAtBeginningOfFile','api/publications.js','includes','apply','/graphql/resolvers','.app-tests.'];a99c=function(){return A;};return a99c();}import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99x(0x207)]({'name':a99x(0x1f1),'aliases':['a'],'usage':a99x(0x201),'shortDesc':a99x(0x222),'validOpts':[a99x(0x23f)],'examples':[a99x(0x20b)],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const y=a99x;try{const c=this['fsi'][y(0x23e)](),d=[{'name':y(0x214),'value':'withMethods'},{'name':y(0x204),'value':y(0x206)},{'name':y(0x22b),'value':y(0x1fb)}];c[y(0x248)][y(0x1f1)]===y(0x23c)&&d[y(0x229)]({'name':y(0x21b),'value':y(0x240)});c[y(0x248)][y(0x21e)]===y(0x1f7)&&d[y(0x229)]({'name':y(0x205),'value':y(0x22a)});const f={'type':y(0x1f0),'name':y(0x249),'message':y(0x1ee),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x21f)](f);g[y(0x211)]===0x0&&(Log[y(0x1f6)](y(0x21c)),process[y(0x20c)](0x1)),await this[y(0x225)][y(0x224)](c,async()=>{const z=y,h=b['resourceName'],i=paramCase(h),j=camelCase(h),k=b['dir']?'/'+b[z(0x23f)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0x248)]['api'],'graphql':c[z(0x248)][z(0x21e)],'test':c[z(0x248)]['test'],'noRename':!![],'withPubs':g[z(0x217)](z(0x1fb)),'withFixtures':g[z(0x217)](z(0x206)),'withMethods':g[z(0x217)](z(0x1ed)),'withRest':g[z(0x217)](z(0x240))};let m='js';c[z(0x248)]['js']===z(0x20d)&&(m='ts');await this[z(0x225)][z(0x221)]([z(0x1f3),'maka:check',z(0x220),z(0x230),'mongo'],{'shouldInstall':!![]}),await a99e[z(0x208)](z(0x202),[i],{'config':c,'where':z(0x23a)});c[z(0x248)]['api']===z(0x23c)&&(l['withRest']&&await this[z(0x225)]['template']({'srcPath':z(0x23b),'destPath':this['fsi'][z(0x23d)]({'pathParts':[z(0x20a),z(0x1f1),b[z(0x23f)],i,z(0x1fe)+m]}),'context':l,'config':c}));l[z(0x1ed)]&&await this[z(0x225)][z(0x1fc)]({'srcPath':z(0x1f5),'destPath':this['fsi'][z(0x23d)]({'pathParts':['imports',z(0x1f1),b[z(0x23f)],i,z(0x22e)+m]}),'context':l,'config':c});l['withFixtures']&&await this[z(0x225)][z(0x1fc)]({'srcPath':z(0x1ef),'destPath':this[z(0x225)][z(0x23d)]({'pathParts':[z(0x20a),z(0x1f1),b['dir'],i,z(0x1ff)+m]}),'context':l,'config':c});c[z(0x248)]['test']!==z(0x246)&&this[z(0x225)][z(0x1fc)]({'srcPath':z(0x245),'destPath':this['fsi'][z(0x23d)]({'pathParts':[z(0x20a),z(0x1f1),b[z(0x23f)],i,i+z(0x21a)+m]}),'context':l,'config':c});l['withPubs']&&await this[z(0x225)]['template']({'srcPath':z(0x216),'destPath':this[z(0x225)][z(0x23d)]({'pathParts':[z(0x20a),'api',b[z(0x23f)],i,z(0x223)+m]}),'context':l,'config':c});if(c[z(0x248)]['graphql']===z(0x1f7)){if(g[z(0x217)](z(0x22a))){const o=this[z(0x225)][z(0x23d)]({'pathParts':['imports',z(0x22d),'server','index.'+c[z(0x248)]['js']]}),p=this[z(0x225)][z(0x20f)]({'pathParts':[o],'config':c}),q=this['fsi'][z(0x23d)]({'pathParts':[z(0x20a),'api',b[z(0x23f)],i,z(0x21e),z(0x1f8)+m]}),r=z(0x20e)+k+i+z(0x231);this['fsi'][z(0x1fc)]({'srcPath':'api/typeDefs.js','destPath':q,'context':l,'config':c}),await this[z(0x225)][z(0x215)]({'filePath':p,'content':z(0x228)+j+z(0x238)+r+z(0x1ec)}),await this[z(0x225)][z(0x242)]({'filePath':p,'content':z(0x1fa)+j+z(0x1fd),'begin':z(0x226),'end':'if\x20\x5c(typeList'});const s=this[z(0x225)][z(0x23d)]({'pathParts':[z(0x20a),'api',b['dir'],i,z(0x21e),'resolvers.'+m]}),t=z(0x20e)+k+i+z(0x219);await this[z(0x225)][z(0x1fc)]({'srcPath':z(0x22c),'destPath':s,'context':l,'config':c}),await this['fsi']['injectAtBeginningOfFile']({'filePath':p,'content':z(0x22f)+j+z(0x1f9)+t+'\x27;'}),await this['fsi']['injectIntoFile']({'filePath':p,'content':z(0x209)+j+z(0x241),'begin':z(0x226),'end':z(0x235)});}}await this['fsi'][z(0x1fc)]({'srcPath':'api/register-api.js','destPath':this[z(0x225)][z(0x23d)]({'pathParts':['imports','startup',z(0x23a),z(0x203)+i+z(0x212)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x225)][z(0x23d)]({'pathParts':[z(0x20a),z(0x22d),z(0x23a),z(0x21d)+c['engines']['js']]});await this[z(0x225)][z(0x247)]({'filePath':n,'content':z(0x236)+i+'-api\x27;'});});}catch(h){console[y(0x1f6)](h),process[y(0x20c)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
function a100c(){const o=['create','appPathPrefix','1372056HtIVxA','checkMeteorPackage','constructor','startup','fsi','template','error','4107859qtngJx','col','8fmTgxG','test','35CUmMCe','5510040fqDoes','2kHrZKT','toString','engines','(((.+)+)+)+$','import\x20\x27./collections','89440cfcZus','injectAtEndOfFile','getMakaProjectConfig','63VLfnsm','resourceName','collections','862590hXQpjK','maka\x20g:collection\x20todos','imports','7221366HvkAOi','search','collection/tests.js','pathFromApp','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','none','collection','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','dir','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','7868476mXpevm','where','withValue'];a100c=function(){return o;};return a100c();}const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0xa9))/0x1*(parseInt(j(0x9e))/0x2)+-parseInt(j(0xa6))/0x3*(parseInt(j(0xa3))/0x4)+-parseInt(j(0x9c))/0x5*(-parseInt(j(0xbb))/0x6)+-parseInt(j(0x98))/0x7*(parseInt(j(0x9a))/0x8)+parseInt(j(0xac))/0x9+-parseInt(j(0x9d))/0xa+-parseInt(j(0xb6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xe6383));const a100b=(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;};}()),a100a=a100b(this,function(){const k=a100d;return a100a[k(0x9f)]()[k(0xad)](k(0xa1))[k(0x9f)]()[k(0xbd)](a100a)[k(0xad)](k(0xa1));});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x98;let f=c[d];return f;},a100d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a100l(0xb9)]({'name':a100l(0xb2),'aliases':[a100l(0x99)],'usage':a100l(0xb5),'checkWhere':!![],'shortDesc':a100l(0xb3),'validOpts':['dir','where'],'description':a100l(0xb0),'examples':[a100l(0xaa)]},async function(a,b){const m=a100l;try{const c=this['fsi'][m(0xa5)]();await this[m(0xbf)][m(0xb8)](c,async()=>{const n=m,d=paramCase(b['resourceName']),f={'name':pascalCase(b[n(0xa7)]),'collectionName':pascalCase(b[n(0xa7)]),'fileName':d,'where':b[n(0xb7)],'test':c[n(0xa0)]['test'],'noRename':!![]};let g='js';c[n(0xa0)]['js']==='tsx'&&(g='ts');await this[n(0xbf)][n(0xbc)](['mongo','maka:check'],{'shouldInstall':!![]}),await this[n(0xbf)]['template']({'srcPath':'collection/collection.js','destPath':this['fsi'][n(0xaf)]({'pathParts':[n(0xab),n(0xbe),b[n(0xba)],'collections',b[n(0xb4)],d+'.'+g]}),'context':f,'config':c});c[n(0xa0)][n(0x9b)]!==n(0xb1)&&await this['fsi'][n(0xc0)]({'srcPath':n(0xae),'destPath':this[n(0xbf)][n(0xaf)]({'pathParts':['imports',n(0xbe),b[n(0xba)],n(0xa8),b[n(0xb4)],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[n(0xb4)]?'/'+b[n(0xb4)]+'/':'/',i=this['fsi'][n(0xaf)]({'pathParts':[n(0xab),n(0xbe),b[n(0xba)],'index.'+c['engines']['js']]});await this[n(0xbf)][n(0xa4)]({'filePath':i,'content':n(0xa2)+h+d+'\x27;'});});}catch(d){Log[m(0xc1)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101p=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x192))/0x1+-parseInt(n(0x19c))/0x2+parseInt(n(0x198))/0x3*(-parseInt(n(0x18e))/0x4)+parseInt(n(0x1ba))/0x5+parseInt(n(0x19d))/0x6*(parseInt(n(0x1c3))/0x7)+parseInt(n(0x19f))/0x8+-parseInt(n(0x1a7))/0x9*(-parseInt(n(0x189))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xd2347));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const o=a101d;return a101a['toString']()[o(0x196)]('(((.+)+)+)+$')[o(0x184)]()[o(0x1a5)](a101a)[o(0x196)](o(0x1a9));});a101a();import a101e from'path';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x17d;let f=c[d];return f;},a101d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a101p(0x1bf)];Generator['create']({'name':'component','aliases':aliases,'usage':a101p(0x199),'shortDesc':a101p(0x1a4),'validOpts':[{'name':'baseDir','values':[a101p(0x1b4),a101p(0x187),a101p(0x1bd),a101p(0x1ab)]}],'examples':[a101p(0x1b1)]},async function(a,b){const q=a101p;try{const c=this[q(0x1a0)][q(0x188)](),d=b[q(0x190)]?'/imports/ui/'+b[q(0x190)]:q(0x1c4),f=this[q(0x1a0)][q(0x1a8)]({'pathParts':[d,b[q(0x186)],paramCase(b[q(0x185)]),paramCase(b[q(0x185)])]}),g=await this['fsi'][q(0x18a)]();await this[q(0x1a0)][q(0x17e)](g,async()=>{const r=q;typeof g[r(0x1ad)]['test']===r(0x18b)&&(g[r(0x1ad)]['test']=g[r(0x1ad)][r(0x1a1)]==='true'?!![]:![],this[r(0x1a0)]['setTemplate'](r(0x1a1),g[r(0x1ad)][r(0x1a1)]));typeof g['template'][r(0x1b0)]===r(0x18b)&&(g[r(0x1ad)][r(0x1b0)]=g['template'][r(0x1b0)]==='true'?!![]:![],this[r(0x1a0)][r(0x1b8)](r(0x1b0),g[r(0x1ad)]['css']));typeof g[r(0x1ad)]['js']===r(0x18b)&&(g[r(0x1ad)]['js']=g[r(0x1ad)]['js']===r(0x19b)?!![]:![],this['fsi'][r(0x1b8)]('js',g['template']['js']));!g[r(0x1ae)]&&(g[r(0x1ae)]={});!b[r(0x1a6)]&&!this[r(0x1a0)][r(0x1bb)](r(0x1bc))&&(Log[r(0x18f)](r(0x1b3)),await this[r(0x1a0)][r(0x182)](r(0x1bc),{'cwd':c}));if(!b[r(0x1a6)]&&!this[r(0x1a0)][r(0x1bb)]('react')){Log[r(0x191)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[r(0x185)]),'myPath':a101e[r(0x1ac)](this[r(0x1a0)][r(0x1a3)]({}),f),'cssCaseName':paramCase(b[r(0x185)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0x185)]),'fileName':paramCase(b[r(0x185)]),'graphql':g[r(0x180)][r(0x193)],'features':g['features'],'client':g[r(0x180)]['client'],'api':g[r(0x180)][r(0x1a2)],'ssr':g[r(0x180)]['ssr'],'test':g['engines'][r(0x1a1)],'theme':g[r(0x180)][r(0x1b2)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0x1ae)]['withTranslations']};await this['fsi'][r(0x1ad)]({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':r(0x19a),'config':g});g[r(0x180)]['test']!==r(0x1b9)&&await this[r(0x1a0)][r(0x1ad)]({'srcPath':r(0x1b7),'destPath':f+'.tests.js','context':h,'framework':r(0x19a),'config':g});g[r(0x1ad)][r(0x1b0)]&&(await this[r(0x1a0)][r(0x1ad)]({'srcPath':r(0x1c1),'destPath':f+r(0x18d),'context':Object[r(0x17f)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),await this['fsi'][r(0x1aa)]({'filePath':f+'.'+g['engines']['js'],'content':r(0x1c5)+h['cssCaseName']+'.'+g[r(0x180)]['css']+'\x27;'}));const i=b[r(0x186)]?'/'+b['dir']+'/':'/',j=''+d+i+h[r(0x1b5)]+'/'+h[r(0x1b5)];let k;if(g[r(0x180)][r(0x183)]===r(0x19b)){const l=this[r(0x1a0)][r(0x1a8)]({'pathParts':['imports',r(0x1c2),r(0x197),r(0x195)]});k=this[r(0x1a0)][r(0x1b6)]({'pathParts':[l],'config':g});}else{const m=this['fsi']['pathFromApp']({'pathParts':[r(0x18c),r(0x1c2),r(0x1be),'templates.js']});k=this[r(0x1a0)][r(0x1b6)]({'pathParts':[m],'config':g});}g[r(0x180)][r(0x1be)]==='react'||g[r(0x180)]['client']===r(0x19e)?await this[r(0x1a0)][r(0x181)]({'filePath':k,'content':r(0x1c0)+h[r(0x194)]+'\x20}\x20from\x20\x27'+j+r(0x1af)}):await this[r(0x1a0)][r(0x181)]({'filePath':k,'content':r(0x17d)+j+'.'+g[r(0x180)]['js']+r(0x1af)});});}catch(h){Log[q(0x191)](h);}});function a101c(){const s=['comp','export\x20{\x20','template/template.css','startup','7CzXeem','/imports/ui/components','import\x20\x27./','export\x20\x27','withValue','assign','engines','injectAtEndOfFile','installNpmPackage','ssr','toString','resourceName','dir','components','findAppDirectory','1472090hymijY','getMakaProjectConfig','string','imports','.css','120nHkHHQ','warn','baseDir','error','1450541VEPuxJ','graphql','className','templates.js','search','lib','68433YPamiL','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','react','true','2130960ylCKzY','6359472sOHqPH','reflux','6312608WdeVue','fsi','test','api','pathFromProject','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','constructor','root','81mVccxV','pathFromApp','(((.+)+)+)+$','injectAtBeginningOfFile','layouts','relative','template','features','\x27;\x0a','css','maka\x20g:comp\x20todos/todos-item','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','hooks','fileName','rewriteDestinationPathForEngine','test/test.js','setTemplate','none','4437405abAQPg','checkNpmPackage','ramda','pages','client'];a101c=function(){return s;};return a101c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x15a;let f=c[d];return f;},a102d(a,b);}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x173))/0x1+parseInt(h(0x163))/0x2*(-parseInt(h(0x169))/0x3)+-parseInt(h(0x166))/0x4+-parseInt(h(0x175))/0x5+parseInt(h(0x172))/0x6+-parseInt(h(0x168))/0x7*(parseInt(h(0x164))/0x8)+parseInt(h(0x177))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x2ddc6));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x171)]()['search'](j(0x174))[j(0x171)]()[j(0x165)](a102a)[j(0x15b)](j(0x174));});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x15f)]({'name':a102k(0x16d),'usage':a102k(0x161),'shortDesc':a102k(0x15c),'validOpts':[a102k(0x16b)],'examples':['maka\x20g:config\x20production']},async function(a,b){const l=a102k,c=this[l(0x170)][l(0x15a)]();await this[l(0x170)][l(0x15d)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x15e)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x16f)]),'camelCase':camelCase(b[m(0x16f)]),'userName':m(0x176),'isDocker':b[m(0x16b)]};let e=b[m(0x16f)];if(e===m(0x160))e='development';else e==='prod'&&(e=m(0x16a));const f=this[m(0x170)][m(0x162)]({'pathParts':[m(0x16d),e,'settings.json']});await this[m(0x170)][m(0x167)]({'srcPath':m(0x16c),'destPath':f,'context':d,'config':c});if(!b[m(0x16b)]){const g=this[m(0x170)][m(0x162)]({'pathParts':['config',e,'process.env']});await this['fsi'][m(0x167)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});function a102c(){const n=['514221IgzOjk','production','isDocker','config/settings.json','config','apply','resourceName','fsi','toString','1806432Fztkwa','65536WClugt','(((.+)+)+)+$','908275qECQXe','ubuntu','4417659pAhaza','getMakaProjectConfig','search','Generate\x20configuration\x20settings.','withValue','appName','create','dev','maka\x20{generate,\x20g}:{config}\x20<name>','pathFromProject','2MNSouH','467944cTIKkp','constructor','798260cTraMu','template','14iefCRb'];a102c=function(){return n;};return a102c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x8e))/0x1+parseInt(j(0x71))/0x2+-parseInt(j(0x85))/0x3*(-parseInt(j(0x90))/0x4)+parseInt(j(0x88))/0x5*(-parseInt(j(0x86))/0x6)+parseInt(j(0x87))/0x7*(-parseInt(j(0x74))/0x8)+-parseInt(j(0xa0))/0x9+parseInt(j(0x8a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xdd82b));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x8f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a['toString']()['search'](l(0x9a))[l(0x95)]()['constructor'](a103a)['search']('(((.+)+)+)+$');});a103a();function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x6b;let f=c[d];return f;},a103d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a103c(){const p=['(((.+)+)+)+$','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20azure\x20--type=mssql','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','import\x20\x27./register-','index.','2395764yOUwqG','type','withValue','maka\x20g:dbc\x20todos\x20--type=sqlite','-dbc\x27;','template','warn','1569830HUnWUE','config.','checkNpmPackage','893072Hmqvck','server','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','dbc/conn.js','mssql','dbc/config.js','better-sqlite3','startup','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','injectAtEndOfFile','conn.','engines','register-','create','pathFromApp','imports','error','39fAEmSu','642VYDYtX','77xFAGhm','28710TLtKVH','sqlite','15872810iGcayH','resourceName','pgsql','dbc/register-dbc.js','1001995Givubm','apply','506360zfRljo','-dbc.','tsx','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','installNpmPackage','toString','dbc','fsi','getMakaProjectConfig','dir'];a103c=function(){return p;};return a103c();}import{Log}from'../tools/log/log.class.js';Generator[a103m(0x81)]({'name':a103m(0x96),'usage':a103m(0x93),'shortDesc':a103m(0x76),'validOpts':[a103m(0x99)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a103m(0x8c),a103m(0x78),a103m(0x89)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a103m(0x9c),a103m(0x6d)]},async function(a,b){const n=a103m;try{const c=await this[n(0x97)][n(0x98)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[n(0x8b)]),g={'name':pascalCase(b[n(0x8b)]),'fileName':paramCase(b[n(0x8b)]),'camelCase':camelCase(b[n(0x8b)]),'type':b[n(0x6b)],'engine':c[n(0x7f)]['js'],'noRename':!![]};await this[n(0x97)][n(0x6c)](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0x92)&&(h='ts');b['type']===o(0x8c)&&!this[o(0x97)][o(0x73)]('pg')&&(Log[o(0x70)](o(0x9d)),await this[o(0x97)][o(0x94)]('pg',{'cwd':d}));b[o(0x6b)]===o(0x78)&&!this[o(0x97)][o(0x73)]('mssql')&&(Log['warn'](o(0x9b)),await this[o(0x97)][o(0x94)](o(0x78),{'cwd':d}));b['type']===o(0x89)&&!this['fsi'][o(0x73)]('better-sqlite3')&&(Log['warn'](o(0x7c)),await this['fsi'][o(0x94)](o(0x7a),{'cwd':d}));await this['fsi'][o(0x6f)]({'srcPath':o(0x79),'destPath':this[o(0x97)][o(0x82)]({'pathParts':[o(0x83),o(0x7b),o(0x75),o(0x96),b[o(0x99)],f,o(0x72)+h]}),'context':g,'config':c}),await this[o(0x97)][o(0x6f)]({'srcPath':o(0x77),'destPath':this[o(0x97)][o(0x82)]({'pathParts':[o(0x83),o(0x7b),o(0x75),o(0x96),b['dir'],f,o(0x7e)+h]}),'context':g,'config':c}),await this[o(0x97)][o(0x6f)]({'srcPath':o(0x8d),'destPath':this['fsi'][o(0x82)]({'pathParts':[o(0x83),o(0x7b),o(0x75),o(0x80)+f+o(0x91)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x82)]({'pathParts':['imports','startup',o(0x75),o(0x9f)+c[o(0x7f)]['js']]});await this[o(0x97)][o(0x7d)]({'filePath':i,'content':o(0x9e)+f+o(0x6e)});});}catch(h){Log[n(0x84)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;function a104c(){const l=['
|
|
1
|
+
const a104i=a104d;function a104c(){const l=['join','(((.+)+)+)+$','9SbGSSJ','build','12OUvvSO','template','docker/Dockerfile','cert','22287001OFGzfC','error','8216410zlGOBn','1618205VvFGMQ','create','constructor','app.tar.gz','71772DnWJXr','36ajYOwn','app','maka\x20g:dockerfile','1JPJxba','getMakaProjectConfig','Dockerfile','service','search','fsi','Generate\x20an\x20updated\x20dockerfile','apply','3149840SazdwF','isFile','600929gUmpsl','toString','6aodLqi','1016474SDrZXL'];a104c=function(){return l;};return a104c();}(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x1dc))/0x1*(parseInt(f(0x1e9))/0x2)+parseInt(f(0x1d9))/0x3*(-parseInt(f(0x1d8))/0x4)+-parseInt(f(0x1f5))/0x5*(-parseInt(f(0x1e8))/0x6)+parseInt(f(0x1e6))/0x7+-parseInt(f(0x1e4))/0x8*(parseInt(f(0x1ec))/0x9)+-parseInt(f(0x1f4))/0xa+-parseInt(f(0x1f2))/0xb*(-parseInt(f(0x1ee))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x7940f));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1e3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1e7)]()[h(0x1e0)](h(0x1eb))[h(0x1e7)]()[h(0x1d6)](a104a)[h(0x1e0)]('(((.+)+)+)+$');});a104a();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a104d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0x1d5)]({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a104i(0x1e2),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x1db)]},async function(){const j=a104i;try{const a=await this[j(0x1e1)][j(0x1dd)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0x1e1)]['findProjectDirectory']();await this[j(0x1e1)]['withValue'](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a104e[k(0x1ea)](c,k(0x1da)),'bundlePath':a104e[k(0x1ea)](c,k(0x1ed),k(0x1d7)),'useCert':this[k(0x1e1)][k(0x1e5)](b[k(0x1f1)])};await this[k(0x1e1)][k(0x1ef)]({'srcPath':k(0x1f0),'destPath':a104e['join'](c,k(0x1de)),'framework':k(0x1df),'context':d,'config':a});});}catch(d){Log[j(0x1f3)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a105c(){const
|
|
1
|
+
const a105r=a105d;(function(a,b){const o=a105d,c=a();while(!![]){try{const d=-parseInt(o(0x110))/0x1+parseInt(o(0xef))/0x2*(parseInt(o(0x105))/0x3)+-parseInt(o(0x10b))/0x4+parseInt(o(0xd9))/0x5*(parseInt(o(0xd4))/0x6)+parseInt(o(0xf2))/0x7*(-parseInt(o(0xe8))/0x8)+parseInt(o(0xea))/0x9+parseInt(o(0xd5))/0xa*(-parseInt(o(0x111))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xe601d));function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xd0;let f=c[d];return f;},a105d(a,b);}function a105c(){const u=['7YatkQF','maka\x20g:hook\x20cool-hook','react','template','test/test.js','hooks','.css','checkNpmPackage','create','templates.js','notice','\x27;\x0a','error','import\x20\x27./','.js','hook/hook.js','startup','hook','\x20}\x20from\x20\x27','27snELCh','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fileName','layouts','none','/imports/ui/','1620352nbMuEy','className','getMakaProjectConfig','components','setTemplate','917086LlHCGq','44gEZzMp','apply','injectAtEndOfFile','ssr','force','export\x20{\x20','assign','relative','constructor','template/template.css','toString','search','test','apollo','resourceName','(((.+)+)+)+$','string','780882YlpALQ','618620SYiVMz','/imports/ui/hooks','withTranslations','.app-tests.js','35TQZbFc','true','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','client','features','graphql','css','baseDir','theme','pages','lib','dir','@apollo/client\x20isomorphic-fetch','warn','pathFromApp','4744552VpMbuv','pathFromProject','5072976BPVmOM','cssCaseName','fsi','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','engines','362246fZdLjf','rewriteDestinationPathForEngine','imports'];a105c=function(){return u;};return a105c();}const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0x112)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0x11b)]()[q(0x11c)](q(0xd2))['toString']()[q(0x119)](a105a)[q(0x11c)](q(0xd2));});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105r(0xfa)]({'name':a105r(0x103),'aliases':['h'],'checkWhere':![],'usage':a105r(0xed),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':'baseDir','values':[a105r(0xf7),a105r(0x10e),a105r(0xe2),a105r(0x108)]},{'name':a105r(0x115),'boolFlag':!![]}],'examples':[a105r(0xf3)],'description':a105r(0xdb)},async function(a,b){const s=a105r;Log[s(0xfc)]('Creating\x20'+b['resourceName']+'\x20hook...');try{const c=this[s(0xec)][s(0xf9)](s(0xf4));if(!c){Log[s(0xfe)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[s(0xec)][s(0xe7)](b),f=b['baseDir']?s(0x10a)+b[s(0xe0)]:s(0xd6),g=this[s(0xec)]['pathFromApp']({'pathParts':[f,b[s(0xe4)],paramCase(b['resourceName']),paramCase(b[s(0xd1)])]}),h=await this[s(0xec)][s(0x10d)]();await this[s(0xec)]['withValue'](h,async()=>{const t=s;typeof h[t(0xf5)][t(0xdf)]===t(0xd3)&&(h[t(0xf5)][t(0xdf)]=h[t(0xf5)][t(0xdf)]==='true'?!![]:![],this[t(0xec)][t(0x10f)](t(0xdf),h[t(0xf5)][t(0xdf)]));h[t(0xee)][t(0xde)]===t(0xd0)&&!this[t(0xec)]['checkNpmPackage']('@apollo/client')&&(Log[t(0xe6)](t(0x106)),await this['fsi']['installNpmPackage'](t(0xe5),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xd1)]),'camelCaseName':camelCase(b[t(0xd1)]),'className':pascalCase(b[t(0xd1)]),'name':pascalCase(b[t(0xd1)]),'graphql':h[t(0xee)][t(0xde)],'theme':h[t(0xee)][t(0xe1)],'features':h[t(0xdd)],'myPath':a105e[t(0x118)](this[t(0xec)][t(0xe9)]({}),g),'fileName':paramCase(b[t(0xd1)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xdd)][t(0xd7)]};await this[t(0xec)][t(0xf5)]({'srcPath':t(0x101),'destPath':g+t(0x100),'context':i,'config':h,'framework':t(0xf4),'force':b['force']});h['template'][t(0xdf)]&&(await this[t(0xec)]['template']({'srcPath':t(0x11a),'destPath':g+t(0xf8),'context':Object[t(0x117)]({},i,{'className':i[t(0xeb)]}),'config':h,'force':b[t(0x115)]}),await this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0xee)]['js'],'content':t(0xff)+i[t(0x107)]+'.'+h['engines'][t(0xdf)]+'\x27;'}));h[t(0xee)][t(0x11d)]!==t(0x109)&&await this[t(0xec)][t(0xf5)]({'srcPath':t(0xf6),'destPath':g+t(0xd8),'framework':t(0xf4),'context':i,'config':h,'force':b[t(0x115)]});const j=b[t(0xe4)]?'/'+b[t(0xe4)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x107)];let l;if(h[t(0xee)][t(0x114)]===t(0xda)){const m=this[t(0xec)][t(0xe7)]({'pathParts':[t(0xf1),t(0x102),t(0xe3),'templates.js']});l=this[t(0xec)][t(0xf0)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0xe7)]({'pathParts':[t(0xf1),t(0x102),t(0xdc),t(0xfb)]});l=this['fsi'][t(0xf0)]({'pathParts':[n],'config':h});}h[t(0xee)][t(0xdc)]===t(0xf4)?await this[t(0xec)][t(0x113)]({'filePath':l,'content':t(0x116)+i[t(0x10c)]+t(0x104)+k+'\x27;\x0a'}):await this['fsi'][t(0x113)]({'filePath':l,'content':'export\x20\x27'+k+'.'+h[t(0xee)]['js']+t(0xfd)});});}catch(i){Log[s(0xfe)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x1a1))/0x1*(-parseInt(f(0x1a4))/0x2)+-parseInt(f(0x1a8))/0x3*(-parseInt(f(0x1a9))/0x4)+-parseInt(f(0x1a3))/0x5*(parseInt(f(0x1a2))/0x6)+-parseInt(f(0x1b1))/0x7*(parseInt(f(0x1af))/0x8)+-parseInt(f(0x1a0))/0x9+parseInt(f(0x1a6))/0xa*(parseInt(f(0x1ac))/0xb)+-parseInt(f(0x1ab))/0xc*(parseInt(f(0x1ae))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xee4a4));var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x1a7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a[h(0x1b0)]()['search']('(((.+)+)+)+$')['toString']()[h(0x1ad)](a106a)[h(0x1aa)](h(0x1a5));});a106a();import'./kit.js';function a106c(){var i=['16yqipHe','search','11108220GuyWVB','33CArifK','constructor','13eQaIxb','1949144TNkDYO','toString','14djTOYB','16924554xokEVR','1207117BMrkup','13782drfoVE','315ljSDIe','2eQykRX','(((.+)+)+)+$','4928730eDvKYt','apply','1296366sqrlFw'];a106c=function(){return i;};return a106c();}function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x1a0;var f=c[d];return f;},a106d(a,b);}import'./mui/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107h=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a107h=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(0x138))/0x1*(-parseInt(f(0x143))/0x2)+parseInt(f(0x133))/0x3*(-parseInt(f(0x13b))/0x4)+parseInt(f(0x135))/0x5*(-parseInt(f(0x13d))/0x6)+-parseInt(f(0x136))/0x7*(parseInt(f(0x13f))/0x8)+parseInt(f(0x145))/0x9*(parseInt(f(0x144))/0xa)+parseInt(f(0x137))/0xb+-parseInt(f(0x13e))/0xc*(-parseInt(f(0x13a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xeaafc));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const g=a107d;return a107a['toString']()['search'](g(0x142))[g(0x13c)]()[g(0x139)](a107a)[g(0x134)](g(0x142));});a107a();function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x133;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../../generator.js';function a107c(){const i=['570978LLnRhy','204pDqTSn','7613808xLzEEr','create','maka\x20g:k','(((.+)+)+)+$','28SulSZA','303310nvHUjl','45zSWJHI','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','56337MBnaZX','search','55imwzUu','14RewnqL','10124136NRCzVA','79601ommrQq','constructor','2338765sQMrcL','284RVnBDH','toString'];a107c=function(){return i;};return a107c();}const KitGen=Generator[a107h(0x140)]({'name':'kit','aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<name>','shortDesc':a107h(0x146),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit',a107h(0x141)]},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0xb7))/0x1+parseInt(f(0xc0))/0x2+-parseInt(f(0xc2))/0x3+parseInt(f(0xbc))/0x4*(-parseInt(f(0xb6))/0x5)+parseInt(f(0xbb))/0x6*(parseInt(f(0xbf))/0x7)+-parseInt(f(0xc1))/0x8+-parseInt(f(0xb8))/0x9*(parseInt(f(0xb9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x4531f));function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0xb5;var f=c[d];return f;},a108d(a,b);}var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a['toString']()[h(0xbd)](h(0xb5))[h(0xba)]()[h(0xc3)](a108a)['search'](h(0xb5));});function a108c(){var i=['4TsFrvs','search','apply','10577BKHViy','977184ymwjkT','2910928rdHGBC','323496jJLnJS','constructor','(((.+)+)+)+$','203180EXUtRJ','36397NJdYGL','26181lXTDFd','50TXVSHx','toString','1422TXboyq'];a108c=function(){return i;};return a108c();}a108a();import'./mui.generator.js';import'./frame.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d
|
|
1
|
+
const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=-parseInt(x(0x179))/0x1+parseInt(x(0x161))/0x2+-parseInt(x(0x17b))/0x3+-parseInt(x(0x189))/0x4+parseInt(x(0x17e))/0x5+-parseInt(x(0x167))/0x6+-parseInt(x(0x193))/0x7*(-parseInt(x(0x16c))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x69cbb));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x183)]()[z(0x17a)](z(0x159))[z(0x183)]()['constructor'](a109a)[z(0x17a)]('(((.+)+)+)+$');});a109a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x158;let f=c[d];return f;},a109d(a,b);}import{Actions}from'../../../tools/actions/actions.class.js';import a109e from'path';import a109f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a109c(){const D=['replaceAll','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','checkMeteorPackage','tsx','MATERIAL','getMakaProjectConfig','<div\x20id=\x22','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','175216kbnyLU','search','783405FLCKQN','injectTemplateModule','error','3049080fbbfHe','options','{\x20this.props.children\x20}','kit/mui/frame/app-bars/','findAppDirectory','toString','withValue','getDirectories','basic-drawer','injectImport','layouts','1310300ZDHwkb','maka\x20generate:kit:mui:frame','{props.children}','/imports/startup/lib/templates','basic-app-bar','injectIntoFile','REACT','true','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','create','3330656GjGPpX','baseDir','(((.+)+)+)+$','dir','{this.props.children}','/imports/ui/hooks','-component\x22>','{\x20props.children\x20}','/imports/startup/client/templates','react','322418NzssfS','imports','.js','-hook\x22>','template','kit/mui/frame/drawers/','3152256IaovnT','join','checkbox','/imports/ui/','fsi','16Wwhkcp','frame','\x20/>\x0a','apply','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout'];a109c=function(){return D;};return a109c();}Generator[a109A(0x192)]({'name':a109A(0x16d),'aliases':['f'],'usage':a109A(0x172),'shortDesc':a109A(0x170),'validOpts':[a109A(0x188)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a109A(0x175)],'client':ClientEngines[a109A(0x18f)]},'examples':[a109A(0x18a),'maka\x20g:k:m:f'],'description':a109A(0x191)},async function(a,b){const B=a109A;try{const c=B(0x18d),d=B(0x186),f=this[B(0x16b)][B(0x176)](),g=f['engines']['ssr']===B(0x190);await this[B(0x16b)][B(0x173)]('session',{'shouldInstall':!![]});const h=this[B(0x16b)][B(0x182)](),i=a109e[B(0x168)](h,B(0x162),'ui',B(0x188)),j=this[B(0x16b)][B(0x185)](i),k=await Actions[B(0x17f)]({'type':B(0x169),'name':B(0x188),'message':B(0x178),'choices':j});if(k['layouts']['length']===0x0){Log[B(0x17d)]('No\x20layouts\x20selected');return;}const l=b[B(0x158)]?B(0x16a)+b['baseDir']:B(0x15c),m=this[B(0x16b)]['pathFromApp']({'pathParts':[l,b['dir'],paramCase(c),paramCase(c)]}),n=this['fsi']['pathFromApp']({'pathParts':[l,b[B(0x15a)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f['appName'])[B(0x171)]('-','\x20')};await this[B(0x16b)][B(0x184)](f,async()=>{const C=B;await this[C(0x16b)][C(0x165)]({'srcPath':C(0x181)+c+C(0x163),'destPath':m+C(0x163),'framework':C(0x160),'context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x16b)][C(0x165)]({'srcPath':C(0x166)+d+C(0x163),'destPath':n+C(0x163),'framework':'react','context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0x15a)]+'/'+c+'/'+c;await this[B(0x16b)]['injectTemplateModule'](c,f,p);const q=''+l+b[B(0x15a)]+'/'+d+'/'+d;await this[B(0x16b)][B(0x17c)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this['fsi']['getFiles'](a109e[B(0x168)](i,s),{'extensions':['jsx',B(0x174)],'omit':['app-tests','tests','test']});for(const u of t){const v=a109e[B(0x168)](i,s,u);await this['fsi']['injectImport']({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':B(0x15f),'isNamedExport':!![]}),await this[B(0x16b)][B(0x18e)]({'filePath':v,'content':'<'+pascalCase(c)+B(0x16e),'begin':[B(0x177)+s+B(0x15d),'<div\x20id=\x22'+s+B(0x164)],'end':['{this.props.children}',B(0x180),B(0x18b),B(0x15e)]}),await this[B(0x16b)][B(0x187)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0x18c):B(0x15f),'isNamedExport':!![]}),await this[B(0x16b)][B(0x18e)]({'filePath':v,'content':'<'+pascalCase(d)+B(0x16e),'begin':[B(0x177)+s+B(0x15d),B(0x177)+s+B(0x164)],'end':[B(0x15b),B(0x180),B(0x18b),B(0x15e)]});}}}catch(w){Log[B(0x17d)](w);}},a109f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x140;let f=c[d];return f;},a110d(a,b);}const a110h=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x155))/0x1*(parseInt(f(0x145))/0x2)+-parseInt(f(0x14d))/0x3*(parseInt(f(0x151))/0x4)+parseInt(f(0x153))/0x5*(-parseInt(f(0x14e))/0x6)+-parseInt(f(0x142))/0x7*(-parseInt(f(0x143))/0x8)+parseInt(f(0x14b))/0x9*(parseInt(f(0x147))/0xa)+parseInt(f(0x140))/0xb+parseInt(f(0x14a))/0xc*(parseInt(f(0x14c))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xb08fe));const a110b=(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;};}()),a110a=a110b(this,function(){const g=a110d;return a110a[g(0x149)]()[g(0x146)](g(0x14f))[g(0x149)]()[g(0x141)](a110a)[g(0x146)]('(((.+)+)+)+$');});a110a();function a110c(){const j=['141nEaNFU','6oPTnSk','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','85100OKBQOb','NIE','3794775kHHCmo','mui','133474jEjkzF','2764058mbQYhM','constructor','11081CPtkOG','4496aZGqRI','Material-UI\x20Kit','8YfdtYn','search','463160nzndbT','maka\x20g:kit:m','toString','132XGgdVU','216pYpDho','902278xBXMVo'];a110c=function(){return j;};return a110c();}import{Generator}from'../../../generator.js';import a110e from'../kit.js';const MuiGen=Generator['create']({'name':a110h(0x154),'aliases':['m'],'usage':a110h(0x150),'noNeedResource':!![],'shortDesc':a110h(0x144),'validOpts':[''],'isPro':!![],'examples':[a110h(0x148)]},async function(){const i=a110h;throw i(0x152);},a110e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0xfa;let f=c[d];return f;},a111d(a,b);}const a111q=a111d;(function(a,b){const o=a111d,c=a();while(!![]){try{const d=parseInt(o(0x141))/0x1*(-parseInt(o(0x13d))/0x2)+-parseInt(o(0x135))/0x3*(parseInt(o(0x10d))/0x4)+-parseInt(o(0xfc))/0x5*(-parseInt(o(0x100))/0x6)+-parseInt(o(0x13f))/0x7*(-parseInt(o(0x106))/0x8)+parseInt(o(0x125))/0x9*(-parseInt(o(0x137))/0xa)+parseInt(o(0x13b))/0xb+-parseInt(o(0xff))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x7a657));const a111b=(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;};}()),a111a=a111b(this,function(){const p=a111d;return a111a[p(0x134)]()[p(0x110)](p(0x117))['toString']()[p(0x116)](a111a)[p(0x110)]('(((.+)+)+)+$');});a111a();import a111e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a111c(){const t=['engines','maka\x20g:layout\x20mobile/iPhone8','graphql','pathFromApp','.css','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','1052334cSVdgB','injectAtEndOfFile','log','layout','imports','checkNpmPackage','rewriteDestinationPathForEngine','maka\x20g:l\x20web/safari','api','react','lib','/imports/ui/layouts','.js','component/component.js','css','toString','13458aXSxab','import\x20\x27./','70ePRYqu','ramda','templates.js','features','10029118pQwiSd','getMakaProjectConfig','8716tdFQxy','relative','11851KJLvCY','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','1IBNpSl','withHook','string','theme','5YPvVJw','true','client','4159836UmwnPY','2514222TYTEXG','injectAtBeginningOfFile','.app-tests.js','installNpmPackage','split','findAppDirectory','2264QadsJd','withValue','hook/hook.js','none','startup','fsi','setTemplate','124hOBbOQ','test','Injecting\x20into\x20file','search','withTranslations','dir','includes','warn','className','constructor','(((.+)+)+)+$','resourceName','Scaffolding\x20for\x20a\x20React\x20Layout.','\x27;\x0a','export\x20{\x20','template','\x20}\x20from\x20\x27','withHooks'];a111c=function(){return t;};return a111c();}const aliases=['l'];Generator['create']({'name':a111q(0x128),'aliases':aliases,'usage':a111q(0x124),'shortDesc':a111q(0x119),'validOpts':[],'examples':[a111q(0x120),a111q(0x12c)]},async function(a,b){const r=a111q,c=r(0x130),d=this[r(0x10b)][r(0x105)](),e=this[r(0x10b)][r(0x122)]({'pathParts':[c,b[r(0x112)],paramCase(b[r(0x118)]),paramCase(b[r(0x118)])]}),f=this['fsi'][r(0x13c)]();await this[r(0x10b)][r(0x107)](f,async()=>{const s=r;typeof f['template'][s(0x10e)]===s(0xfa)&&(f['template'][s(0x10e)]=f['template']['test']===s(0xfd)?!![]:![],this[s(0x10b)][s(0x10c)]('test',f[s(0x11c)][s(0x10e)]));typeof f[s(0x11c)]['css']===s(0xfa)&&(f[s(0x11c)]['css']=f[s(0x11c)]['css']==='true'?!![]:![],this['fsi'][s(0x10c)](s(0x133),f[s(0x11c)][s(0x133)]));typeof f['template']['js']===s(0xfa)&&(f[s(0x11c)]['js']=f[s(0x11c)]['js']===s(0xfd)?!![]:![],this[s(0x10b)][s(0x10c)]('js',f[s(0x11c)]['js']));!f[s(0x13a)]&&(f[s(0x13a)]={});const g=b['_']?b['_'][0x0][s(0x104)](':')[0x1]:![],h=b['_']&&aliases[s(0x113)](g);h&&!this[s(0x12a)]('ramda')&&(Log[s(0x114)](s(0x140)),this[s(0x10b)][s(0x103)](s(0x138),{'cwd':d}));if(h&&!this[s(0x12a)](s(0x12e))){Log[s(0x114)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[s(0x118)]),'myPath':a111e[s(0x13e)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b[s(0x118)]),'className':pascalCase(b[s(0x118)]),'camelCaseName':camelCase(b[s(0x118)]),'fileName':paramCase(b['resourceName']),'graphql':f[s(0x11f)][s(0x121)],'features':f[s(0x13a)],'client':f[s(0x11f)][s(0xfe)],'api':f['engines'][s(0x12d)],'ssr':f['engines']['ssr'],'test':f['engines']['test'],'theme':f[s(0x11f)][s(0xfb)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x13a)][s(0x111)]};f[s(0x13a)]?.[s(0x11e)]||b[s(0x142)]?await this['fsi']['template']({'srcPath':s(0x108),'destPath':e+s(0x131),'framework':s(0x12e),'context':i,'config':f}):await this[s(0x10b)][s(0x11c)]({'srcPath':s(0x132),'destPath':e+'.js','framework':'react','context':i,'config':f});f['engines'][s(0x10e)]!==s(0x109)&&await this[s(0x10b)][s(0x11c)]({'srcPath':'test/test.js','destPath':e+s(0x102),'framework':s(0x12e),'context':i,'config':f});f[s(0x11c)][s(0x133)]&&(await this['fsi'][s(0x11c)]({'srcPath':'template/template.css','destPath':e+s(0x123),'context':Object['assign']({},i,{'className':paramCase(b[s(0x118)])}),'config':f}),console[s(0x127)](s(0x10f)),await this[s(0x10b)][s(0x101)]({'filePath':e+'.'+f[s(0x11f)]['js'],'content':s(0x136)+i['fileName']+'.'+f[s(0x11f)][s(0x133)]+'\x27;'}));const j=b[s(0x112)]?'/'+b[s(0x112)]+'/':'/',k=''+c+j+i['fileName']+'/'+i['fileName'];let l;if(f['engines']['ssr']===s(0xfd)){const m=this[s(0x10b)][s(0x122)]({'pathParts':[s(0x129),'startup',s(0x12f),s(0x139)]});l=this[s(0x10b)][s(0x12b)]({'pathParts':[m],'config':f});}else{const n=this[s(0x10b)][s(0x122)]({'pathParts':[s(0x129),s(0x10a),s(0xfe),s(0x139)]});l=this[s(0x10b)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[s(0x11f)]['client']===s(0x12e)?await this[s(0x10b)][s(0x126)]({'filePath':l,'content':s(0x11b)+i[s(0x115)]+s(0x11d)+k+s(0x11a)}):await this['fsi'][s(0x126)]({'filePath':l,'content':'export\x20\x27'+k+'.'+f[s(0x11f)]['js']+s(0x11a)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112h=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=parseInt(f(0xa0))/0x1*(parseInt(f(0x96))/0x2)+-parseInt(f(0x94))/0x3+-parseInt(f(0x9e))/0x4*(parseInt(f(0xa6))/0x5)+-parseInt(f(0x9c))/0x6+parseInt(f(0x98))/0x7*(-parseInt(f(0xa4))/0x8)+-parseInt(f(0x9f))/0x9+parseInt(f(0x9b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x36b0b));function a112c(){const i=['137ZWSitI','maka\x20g:api\x20trucks','(((.+)+)+)+$','maka\x20g:route\x20todos/edit','128pGBlZB','maka\x20g:scaffold\x20todos','155IaiVig','1130952MBxfWb','search','5578YyeCgr','Scaffold\x20various\x20parts\x20of\x20your\x20application','77105vyhHfr','generate','maka\x20g:package\x20package:name','11549290qYViXC','2092716nQriBD','maka\x20{generate,\x20g}:<generator>\x20<name>','44692WMgClJ','581742XbDvtC'];a112c=function(){return i;};return a112c();}function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x94;let f=c[d];return f;},a112d(a,b);}const a112b=(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;};}()),a112a=a112b(this,function(){const g=a112d;return a112a['toString']()[g(0x95)](g(0xa2))['toString']()['constructor'](a112a)[g(0x95)]('(((.+)+)+)+$');});a112a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a112h(0x99),'aliases':['g'],'usage':a112h(0x9d),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a112h(0x97),'examples':['maka\x20generate:scaffold\x20todos',a112h(0xa5),'maka\x20g:template\x20todos/todo_item',a112h(0x9a),a112h(0xa3),a112h(0xa1),'maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113m=a113d;
|
|
1
|
+
const a113m=a113d;(function(a,b){const j=a113d,c=a();while(!![]){try{const d=parseInt(j(0x188))/0x1+-parseInt(j(0x198))/0x2*(parseInt(j(0x192))/0x3)+-parseInt(j(0x1a6))/0x4*(parseInt(j(0x1a5))/0x5)+-parseInt(j(0x196))/0x6*(-parseInt(j(0x1a0))/0x7)+parseInt(j(0x1a1))/0x8*(parseInt(j(0x186))/0x9)+-parseInt(j(0x18a))/0xa*(parseInt(j(0x18d))/0xb)+-parseInt(j(0x1a3))/0xc*(-parseInt(j(0x189))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xbda77));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a113d;if(c){const e=c[k(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const l=a113d;return a113a['toString']()[l(0x190)](l(0x18c))['toString']()[l(0x184)](a113a)[l(0x190)](l(0x18c));});a113a();function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x17e;let f=c[d];return f;},a113d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a113c(){const p=['(((.+)+)+)+$','275ssjnUY','index.','withValue','search','dir','466872jzpRUo','fsi','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','-rpc-method.','12SQznzk','engines','4wHcqnk','startup','appPathPrefix','pathFromApp','method/method.js','methods','import\x20\x27./methods','getMakaProjectConfig','1925091ggdVMt','2034136QWNqwz','mdg:validated-method','3168yqSlYY','injectAtEndOfFile','2064935LEKmIt','4jlUioi','tsx','error','imports','checkMeteorPackage','resourceName','apply','constructor','maka\x20{generate,\x20g}:{method,\x20m}\x20name','36KffFMJ','maka:check','371680OECDdh','34203pZMyJJ','452920NEwWOj','maka\x20g:method\x20todos'];a113c=function(){return p;};return a113c();}Generator['create']({'name':'method','aliases':['m'],'usage':a113m(0x185),'checkWhere':!![],'shortDesc':a113m(0x194),'validOpts':[a113m(0x191)],'examples':[a113m(0x18b)]},async function(a,b){const n=a113m;try{const c=this[n(0x193)][n(0x19f)]();await this['fsi'][n(0x18f)](c,async()=>{const o=n,d=paramCase(b[o(0x182)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[o(0x182)]),'camelCase':camelCase(b[o(0x182)]),'noRename':!![]};let g='js';c[o(0x197)]['js']===o(0x17e)&&(g='ts');await this['fsi'][o(0x181)]([o(0x187),'ddp-rate-limiter',o(0x1a2)],{'shouldInstall':!![]}),await this[o(0x193)]['template']({'srcPath':o(0x19c),'destPath':this['fsi'][o(0x19b)]({'pathParts':[o(0x180),o(0x199),b[o(0x19a)],o(0x19d),b[o(0x191)],d+o(0x195)+g]}),'context':f,'config':c});const h=b[o(0x191)]?'/'+b['dir']+'/':'/',i=this[o(0x193)][o(0x19b)]({'pathParts':['imports',o(0x199),b['appPathPrefix'],o(0x18e)+c[o(0x197)]['js']]});await this[o(0x193)][o(0x1a4)]({'filePath':i,'content':o(0x19e)+h+d+'-rpc-method\x27;'});});}catch(d){Log[n(0x17f)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=-parseInt(l(0x1c1))/0x1*(-parseInt(l(0x1c2))/0x2)+parseInt(l(0x1b9))/0x3*(parseInt(l(0x1b8))/0x4)+-parseInt(l(0x1d2))/0x5+-parseInt(l(0x1c5))/0x6*(parseInt(l(0x1c8))/0x7)+parseInt(l(0x1cb))/0x8*(-parseInt(l(0x1d7))/0x9)+parseInt(l(0x1c0))/0xa+-parseInt(l(0x1ca))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x5edc0));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a['toString']()[n(0x1cf)](n(0x1c6))[n(0x1bf)]()['constructor'](a114a)[n(0x1cf)]('(((.+)+)+)+$');});a114a();function a114c(){const r=['server','search','pathFromAppWithNoReWrite','noRename','615420dEVrqT','pathFromApp','features','maka\x20g:package\x20todos:package','package/','117ElZsEE','layout','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','fsi','apply','/package.js','tests/server','template','getMakaProjectConfig','pathFromProject','package/package.js','lib','ssr','create','withValue','tests/client','3348mVKryC','1647OFYiiF','component','resourceName','.js','packages','/client/','toString','5756020NwhOhC','1BXmcDD','1436606UNQKuu','dir','engines','1277154cvrJsL','(((.+)+)+)+$','template/template.js','7MKWDIM','store','4476692WsQApI','382744XrSjGl','hasOwnProperty','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>'];a114c=function(){return r;};return a114c();}import a114e from'path';function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a114d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a114o(0x1b5)]({'name':'package','aliases':['p'],'usage':a114o(0x1cd),'shortDesc':a114o(0x1d9),'validOpts':[a114o(0x1c3)],'examples':[a114o(0x1d5)]},async function(a,b){const p=a114o,c=paramCase(b[p(0x1bb)]),d=this[p(0x1da)][p(0x1d3)]({'pathParts':[p(0x1bd),b[p(0x1c3)],c]}),e=this[p(0x1da)][p(0x1d0)]({'pathParts':[p(0x1bd),b['dir'],c,'package.js']}),f=this['fsi'][p(0x1df)]();await this[p(0x1da)][p(0x1b6)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1bb)]),'myPath':a114e['relative'](this[q(0x1da)][q(0x1e0)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x1bb)]),'camelCaseName':camelCase(b[q(0x1bb)]),'fileName':c,'client':f[q(0x1c4)]['client'],'graphql':f[q(0x1c4)]['graphql'],'ssr':f[q(0x1c4)][q(0x1e3)],'isComponent':b[q(0x1cc)](q(0x1ba)),'isLayout':b[q(0x1cc)](q(0x1d8)),'isStore':b['hasOwnProperty'](q(0x1c9)),'features':f[q(0x1d4)],'noRename':!![],'theme':f[q(0x1c4)]['theme']};await this['fsi'][q(0x1de)]({'srcPath':q(0x1e1),'destPath':e,'context':g,'config':f}),g[q(0x1d1)]=![];const h=d+q(0x1be)+c+q(0x1bc);await this[q(0x1da)]['template']({'srcPath':q(0x1c7),'destPath':h,'context':g,'config':f});const i=[q(0x1e2),q(0x1ce),q(0x1b7),q(0x1dd)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x1bc);await this[q(0x1da)][q(0x1de)]({'srcPath':q(0x1d6)+j+q(0x1dc),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115p=a115d;(function(a,b){const m=a115d,c=a();while(!![]){try{const d
|
|
1
|
+
function a115c(){const s=['className','(((.+)+)+)+$','test','constructor','injectAtEndOfFile','css','create','injectAtBeginningOfFile','apply','dir','true','6FZdxqA','checkNpmPackage','resourceName','template/template.html','features','none','engines','fsi','648500dCpZiG','withHook','root','8fGFJSs','216738YlVPpk','24UVLswT','imports','.css','test/test.js','string','rewriteDestinationPathForEngine','316670hFbSoW','pathFromApp','hook/hook.js','setTemplate','.js','template/template.css','templates.js','installNpmPackage','hasOwnProperty','getMakaProjectConfig','225338jYyQgP','1289071VTxckO','theme','/imports/ui/pages','hooks','export\x20{\x20','maka\x20g:page\x20todos/todos-item','search','baseDir','store','845484gqOpTW','graphql','pathFromProject','components','html','react','client','withValue','462933mxjoLZ','ssr','Generate\x20a\x20page.','withTranslations','\x27;\x0a','fileName','startup','template','import\x20\x27./','export\x20\x27','layouts','assign','vanilla','api','ramda','page'];a115c=function(){return s;};return a115c();}const a115p=a115d;(function(a,b){const m=a115d,c=a();while(!![]){try{const d=-parseInt(m(0x1be))/0x1+parseInt(m(0x185))/0x2*(parseInt(m(0x1b2))/0x3)+-parseInt(m(0x1bd))/0x4*(parseInt(m(0x17b))/0x5)+parseInt(m(0x18f))/0x6+parseInt(m(0x186))/0x7+-parseInt(m(0x1bf))/0x8*(parseInt(m(0x197))/0x9)+parseInt(m(0x1ba))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x1cb22));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a115d;if(c){const e=c[n(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const o=a115d;return a115a['toString']()['search'](o(0x1a8))['toString']()[o(0x1aa)](a115a)[o(0x18c)](o(0x1a8));});a115a();import a115e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x176;let f=c[d];return f;},a115d(a,b);}const aliases=['p'];Generator[a115p(0x1ad)]({'name':a115p(0x1a6),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a115p(0x199),'validOpts':[{'name':a115p(0x18d),'values':[a115p(0x189),a115p(0x192),'pages',a115p(0x1a1)]},{'name':a115p(0x1bb),'boolFlag':!![]}],'examples':[a115p(0x18b)]},async function(a,b){const q=a115p,c=b['baseDir']?'/imports/ui/'+b[q(0x18d)]:q(0x188),d=this[q(0x1b9)][q(0x17c)](b),e=this[q(0x1b9)][q(0x17c)]({'pathParts':[c,b[q(0x1b0)],paramCase(b['resourceName']),paramCase(b[q(0x1b4)])]}),f=this['fsi'][q(0x184)]();await this['fsi'][q(0x196)](f,async()=>{const r=q;typeof f[r(0x19e)][r(0x193)]===r(0x179)&&(f['template'][r(0x193)]=f['template'][r(0x193)]===r(0x1b1)?!![]:![],this['fsi'][r(0x17e)](r(0x193),f[r(0x19e)][r(0x193)]));typeof f[r(0x19e)][r(0x1a9)]===r(0x179)&&(f[r(0x19e)]['test']=f['template'][r(0x1a9)]===r(0x1b1)?!![]:![],this[r(0x1b9)][r(0x17e)](r(0x1a9),f['template'][r(0x1a9)]));typeof f[r(0x19e)]['css']==='string'&&(f[r(0x19e)][r(0x1ac)]=f['template'][r(0x1ac)]==='true'?!![]:![],this['fsi'][r(0x17e)]('css',f['template'][r(0x1ac)]));typeof f[r(0x19e)]['js']==='string'&&(f[r(0x19e)]['js']=f['template']['js']==='true'?!![]:![],this[r(0x1b9)][r(0x17e)]('js',f['template']['js']));!f['features']&&(f[r(0x1b6)]={});!b[r(0x1bc)]&&!this[r(0x1b9)][r(0x1b3)](r(0x1a5))&&(Log['warn']('Updating\x20npm\x20packages\x20...'),this[r(0x1b9)][r(0x182)](r(0x1a5),{'cwd':d}));const g={'name':pascalCase(b[r(0x1b4)]),'myPath':a115e['relative'](this[r(0x1b9)][r(0x191)]({}),e),'cssCaseName':paramCase(b[r(0x1b4)]),'className':pascalCase(b[r(0x1b4)]),'camelCaseName':camelCase(b[r(0x1b4)]),'fileName':paramCase(b['resourceName']),'graphql':f[r(0x1b8)][r(0x190)],'features':f['features'],'client':f[r(0x1b8)][r(0x195)],'api':f[r(0x1b8)][r(0x1a4)],'ssr':f[r(0x1b8)][r(0x198)],'isStore':b['hasOwnProperty'](r(0x18e)),'isComponent':b[r(0x183)]('component'),'isLayout':b[r(0x183)]('layout'),'withTranslations':f[r(0x1b6)][r(0x19a)],'test':f[r(0x1b8)][r(0x1a9)],'theme':f[r(0x1b8)][r(0x187)]};f[r(0x19e)][r(0x193)]&&await this['fsi'][r(0x19e)]({'srcPath':r(0x1b5),'destPath':e+'.html','context':g,'config':f});f['features']?.['withHooks']||b[r(0x1bb)]?await this[r(0x1b9)]['template']({'srcPath':r(0x17d),'destPath':e+r(0x17f),'framework':r(0x194),'context':g,'config':f}):await this[r(0x1b9)][r(0x19e)]({'srcPath':'component/component.js','destPath':e+'.js','framework':'react','context':g,'config':f});f[r(0x1b8)][r(0x1a9)]!==r(0x1b7)&&await this[r(0x1b9)]['template']({'srcPath':r(0x178),'destPath':e+'.app-tests.js','framework':r(0x194),'context':g,'config':f});f[r(0x19e)]['css']&&await this[r(0x1b9)][r(0x19e)]({'srcPath':r(0x180),'destPath':e+r(0x177),'context':Object[r(0x1a2)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0x1b8)][r(0x195)]!==r(0x194)&&f[r(0x1b8)]['client']!==r(0x1a3)?(f['template'][r(0x1ac)]&&await this[r(0x1b9)][r(0x1ae)]({'filePath':e+'.'+f[r(0x1b8)]['js'],'content':r(0x19f)+g['fileName']+'.'+f[r(0x1b8)][r(0x193)]+r(0x19b)+r(0x19f)+g[r(0x19c)]+'.'+f[r(0x1b8)]['css']+'\x27;'}),!f[r(0x19e)][r(0x1ac)]&&await this[r(0x1b9)][r(0x1ae)]({'filePath':e+'.'+f[r(0x1b8)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[r(0x1b8)][r(0x193)]+'\x27;'})):f[r(0x19e)][r(0x1ac)]&&await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x1b8)]['js'],'content':r(0x19f)+g[r(0x19c)]+'.'+f[r(0x1b8)][r(0x1ac)]+'\x27;'});const h=b[r(0x1b0)]?'/'+b[r(0x1b0)]+'/':'/',i=''+c+h+g[r(0x19c)]+'/'+g[r(0x19c)];let j;if(f['engines'][r(0x198)]===r(0x1b1)){const k=this[r(0x1b9)]['pathFromApp']({'pathParts':[r(0x176),'startup','lib','templates.js']});j=this[r(0x1b9)][r(0x17a)]({'pathParts':[k],'config':f});}else{const l=this[r(0x1b9)]['pathFromApp']({'pathParts':[r(0x176),r(0x19d),r(0x195),r(0x181)]});j=this['fsi'][r(0x17a)]({'pathParts':[l],'config':f});}f[r(0x1b8)]['client']===r(0x194)?await this[r(0x1b9)]['injectAtEndOfFile']({'filePath':j,'content':r(0x18a)+g[r(0x1a7)]+'\x20}\x20from\x20\x27'+i+r(0x19b)}):await this[r(0x1b9)][r(0x1ab)]({'filePath':j,'content':r(0x1a0)+i+'.'+f['engines']['js']+r(0x19b)});});});
|