@maka/maka-cli 4.7.4 → 4.7.5
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/esri/_index.js +1 -0
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -0
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -0
- 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/templates/react/kit/esri/map/basic-map.js.jsx +27 -0
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +30 -0
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +1 -1
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +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
|
+
const a99x=a99d;(function(a,b){const u=a99d,c=a();while(!![]){try{const d=parseInt(u(0x15b))/0x1*(parseInt(u(0x146))/0x2)+-parseInt(u(0x16b))/0x3*(parseInt(u(0x121))/0x4)+parseInt(u(0x153))/0x5+-parseInt(u(0x13a))/0x6+-parseInt(u(0x142))/0x7+-parseInt(u(0x12e))/0x8+parseInt(u(0x152))/0x9*(parseInt(u(0x122))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xbecbf));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0x125)]()[w(0x149)]('(((.+)+)+)+$')[w(0x125)]()[w(0x147)](a99a)[w(0x149)](w(0x14e));});a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a99c(){const A=['GraphQL','toString','dir','withGql','maka:rest','collection','engines','imports','api/resolvers.js','rewriteDestinationPathForEngine','9892624SDSNBZ','publications.','const','includes','withPubs','/graphql/resolvers','length','Resolvers);\x0a\x0a','No\x20API\x20boundaries\x20selected','fsi','server','withRest','39054kWxYIJ','TypeDefs);\x0a','withValue','fixtures.','Publications','template','\x27;\x0a','index.','5059215jsTlXe','startup','api/fixtures.js','if\x20\x5c(typeList','3218HRITdI','constructor','pathFromApp','search','ddp-rate-limiter','REST\x20API','api/methods.js','none','(((.+)+)+)+$','api/api.js','maka:check','import\x20{\x20typeDefs\x20as\x20','301149uaqnYk','7402715MnpVWp','checkMeteorPackage','TypeDefs\x20}\x20from\x20\x27','api','\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','maka\x20g:api\x20Todos','tsx','rpc-methods.','341mClegb','maka\x20{generate,\x20g}:{api}\x20<resource-name>','push','options','rest-api.','graphql','resourceName','create','injectAtBeginningOfFile','apollo','test','apiAnswers','typeList.push(','-api\x27;','exit','api/publications.js','217926GxQlUH','injectIntoFile','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','.app-tests.','\x0aimport\x20{\x20resolvers\x20as\x20','api/typeDefs.js','Fixtures','register-','withFixtures','processAndRunGenerator','resolvers.','-api.','injectAtEndOfFile','typeDefs.','apply','/imports/api','import\x20\x27./register-','36mzoDqF','410HlfSVt','API\x20boundaries\x20to\x20create'];a99c=function(){return A;};return a99c();}import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x117;let f=c[d];return f;},a99d(a,b);}Generator[a99x(0x162)]({'name':a99x(0x156),'aliases':['a'],'usage':a99x(0x15c),'shortDesc':a99x(0x16d),'validOpts':[a99x(0x126)],'examples':[a99x(0x158)],'description':a99x(0x157)},async function(a,b){const y=a99x;try{const c=this[y(0x137)]['getMakaProjectConfig'](),d=[{'name':'RPC\x20(Methods)','value':'withMethods'},{'name':y(0x171),'value':y(0x118)},{'name':y(0x13e),'value':y(0x132)}];c['engines'][y(0x156)]==='rest'&&d[y(0x15d)]({'name':y(0x14b),'value':y(0x139)});c[y(0x12a)]['graphql']===y(0x164)&&d[y(0x15d)]({'name':y(0x124),'value':y(0x127)});const f={'type':'checkbox','name':y(0x166),'message':y(0x123),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x15e)](f);g[y(0x134)]===0x0&&(Log['error'](y(0x136)),process[y(0x169)](0x1)),await this[y(0x137)][y(0x13c)](c,async()=>{const z=y,h=b[z(0x161)],i=paramCase(h),j=camelCase(h),k=b[z(0x126)]?'/'+b[z(0x126)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c['engines']['api'],'graphql':c[z(0x12a)][z(0x160)],'test':c[z(0x12a)][z(0x165)],'noRename':!![],'withPubs':g[z(0x131)](z(0x132)),'withFixtures':g['includes'](z(0x118)),'withMethods':g[z(0x131)]('withMethods'),'withRest':g['includes'](z(0x139))};let m='js';c[z(0x12a)]['js']===z(0x159)&&(m='ts');await this['fsi'][z(0x154)]([z(0x128),z(0x150),z(0x14a),'mdg:validated-method','mongo'],{'shouldInstall':!![]}),await a99e[z(0x119)](z(0x129),[i],{'config':c,'where':z(0x138)});c[z(0x12a)][z(0x156)]==='rest'&&(l[z(0x139)]&&await this['fsi']['template']({'srcPath':z(0x14f),'destPath':this[z(0x137)][z(0x148)]({'pathParts':[z(0x12b),z(0x156),b['dir'],i,z(0x15f)+m]}),'context':l,'config':c}));l['withMethods']&&await this[z(0x137)]['template']({'srcPath':z(0x14c),'destPath':this['fsi'][z(0x148)]({'pathParts':[z(0x12b),'api',b['dir'],i,z(0x15a)+m]}),'context':l,'config':c});l[z(0x118)]&&await this[z(0x137)][z(0x13f)]({'srcPath':z(0x144),'destPath':this['fsi'][z(0x148)]({'pathParts':[z(0x12b),z(0x156),b[z(0x126)],i,z(0x13d)+m]}),'context':l,'config':c});c['engines'][z(0x165)]!==z(0x14d)&&this[z(0x137)]['template']({'srcPath':'api/tests.js','destPath':this[z(0x137)][z(0x148)]({'pathParts':[z(0x12b),z(0x156),b[z(0x126)],i,i+z(0x16e)+m]}),'context':l,'config':c});l['withPubs']&&await this[z(0x137)][z(0x13f)]({'srcPath':z(0x16a),'destPath':this[z(0x137)][z(0x148)]({'pathParts':['imports',z(0x156),b[z(0x126)],i,z(0x12f)+m]}),'context':l,'config':c});if(c['engines'][z(0x160)]===z(0x164)){if(g[z(0x131)](z(0x127))){const o=this['fsi'][z(0x148)]({'pathParts':[z(0x12b),'startup',z(0x138),'index.'+c[z(0x12a)]['js']]}),p=this[z(0x137)][z(0x12d)]({'pathParts':[o],'config':c}),q=this[z(0x137)][z(0x148)]({'pathParts':[z(0x12b),z(0x156),b[z(0x126)],i,z(0x160),z(0x11d)+m]}),r=z(0x11f)+k+i+'/graphql/typeDefs';this[z(0x137)][z(0x13f)]({'srcPath':z(0x170),'destPath':q,'context':l,'config':c}),await this[z(0x137)][z(0x163)]({'filePath':p,'content':z(0x151)+j+z(0x155)+r+z(0x140)}),await this[z(0x137)][z(0x16c)]({'filePath':p,'content':z(0x167)+j+z(0x13b),'begin':z(0x130),'end':z(0x145)});const s=this[z(0x137)][z(0x148)]({'pathParts':[z(0x12b),z(0x156),b[z(0x126)],i,z(0x160),z(0x11a)+m]}),t='/imports/api'+k+i+z(0x133);await this[z(0x137)][z(0x13f)]({'srcPath':z(0x12c),'destPath':s,'context':l,'config':c}),await this[z(0x137)][z(0x163)]({'filePath':p,'content':z(0x16f)+j+'Resolvers\x20}\x20from\x20\x27'+t+'\x27;'}),await this[z(0x137)]['injectIntoFile']({'filePath':p,'content':'resolverList.push('+j+z(0x135),'begin':z(0x130),'end':z(0x145)});}}await this[z(0x137)]['template']({'srcPath':'api/register-api.js','destPath':this[z(0x137)][z(0x148)]({'pathParts':['imports',z(0x143),z(0x138),z(0x117)+i+z(0x11b)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x137)]['pathFromApp']({'pathParts':[z(0x12b),z(0x143),z(0x138),z(0x141)+c[z(0x12a)]['js']]});await this[z(0x137)][z(0x11c)]({'filePath':n,'content':z(0x120)+i+z(0x168)});});}catch(h){console['error'](h),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0xe1))/0x1+parseInt(j(0xef))/0x2*(parseInt(j(0xff))/0x3)+parseInt(j(0xf7))/0x4+-parseInt(j(0xe3))/0x5+parseInt(j(0xf6))/0x6*(parseInt(j(0xe2))/0x7)+-parseInt(j(0xe8))/0x8+-parseInt(j(0xe4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xbce43));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(0xea)]()[k(0xd8)](k(0xf9))[k(0xea)]()[k(0xde)](a100a)[k(0xd8)]('(((.+)+)+)+$');});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-0xd6;let f=c[d];return f;},a100d(a,b);}import{Log}from'../tools/log/log.class.js';function a100c(){const o=['3583592DlyGUf','error','toString','dir','withValue','fsi','collection/collection.js','202pwGaks','collection/tests.js','startup','appPathPrefix','collections','create','checkMeteorPackage','18MpXsuE','1240784hpfZZF','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','(((.+)+)+)+$','pathFromApp','test','maka\x20g:collection\x20todos','tsx','.app-tests.','45249stSUQB','import\x20\x27./collections','collection','search','where','col','imports','index.','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','constructor','template','resourceName','576632wpMIHX','2152031yhaxVc','1337650bbGved','16589988OOTGde','engines','mongo','none'];a100c=function(){return o;};return a100c();}Generator[a100l(0xf4)]({'name':a100l(0xd7),'aliases':[a100l(0xda)],'usage':a100l(0xdd),'checkWhere':!![],'shortDesc':a100l(0xf8),'validOpts':[a100l(0xeb),a100l(0xd9)],'description':'\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','examples':[a100l(0xfc)]},async function(a,b){const m=a100l;try{const c=this['fsi']['getMakaProjectConfig']();await this['fsi'][m(0xec)](c,async()=>{const n=m,d=paramCase(b['resourceName']),f={'name':pascalCase(b[n(0xe0)]),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b[n(0xd9)],'test':c[n(0xe5)]['test'],'noRename':!![]};let g='js';c[n(0xe5)]['js']===n(0xfd)&&(g='ts');await this['fsi'][n(0xf5)]([n(0xe6),'maka:check'],{'shouldInstall':!![]}),await this[n(0xed)][n(0xdf)]({'srcPath':n(0xee),'destPath':this[n(0xed)][n(0xfa)]({'pathParts':[n(0xdb),'startup',b['appPathPrefix'],n(0xf3),b[n(0xeb)],d+'.'+g]}),'context':f,'config':c});c[n(0xe5)][n(0xfb)]!==n(0xe7)&&await this[n(0xed)][n(0xdf)]({'srcPath':n(0xf0),'destPath':this[n(0xed)][n(0xfa)]({'pathParts':['imports',n(0xf1),b[n(0xf2)],n(0xf3),b['dir'],d+n(0xfe)+g]}),'context':f,'config':c});const h=b[n(0xeb)]?'/'+b[n(0xeb)]+'/':'/',i=this['fsi'][n(0xfa)]({'pathParts':[n(0xdb),n(0xf1),b[n(0xf2)],n(0xdc)+c['engines']['js']]});await this[n(0xed)]['injectAtEndOfFile']({'filePath':i,'content':n(0xd6)+h+d+'\x27;'});});}catch(d){Log[m(0xe9)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101m=a101d;function a101c(){const p=['maka\x20g:comp\x20todos/todos-item','client','import\x20\x27./','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','(((.+)+)+)+$','toString','warn','api','6AUEXtO','findAppDirectory','component','template','296fGBnQP','6499380QXVtdl','string','fsi','constructor','112401ulJczP','className','pathFromProject','.js','fileName','create','baseDir','1403091VaCJNc','4235035WyFIej','injectTemplateModule','root','cssCaseName','11mVZltU','187852NnmnXw','installNpmPackage','checkNpmPackage','ramda','withTranslations','/imports/ui/','5552110pTYLQX','true','511324vUWhEd','template/template.css','layouts','setTemplate','css','react','test/test.js','engines','test','dir','injectAtBeginningOfFile','ssr','theme','3SBZwjL','component/component.js','none','25KHpHvo','getMakaProjectConfig','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','error','pathFromApp','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','search','resourceName','features'];a101c=function(){return p;};return a101c();}(function(a,b){const k=a101d,c=a();while(!![]){try{const d=-parseInt(k(0xdd))/0x1*(-parseInt(k(0xc8))/0x2)+parseInt(k(0xc2))/0x3+-parseInt(k(0xd0))/0x4*(-parseInt(k(0xe0))/0x5)+parseInt(k(0xb2))/0x6*(-parseInt(k(0xc3))/0x7)+-parseInt(k(0xb6))/0x8*(parseInt(k(0xbb))/0x9)+parseInt(k(0xce))/0xa*(parseInt(k(0xc7))/0xb)+-parseInt(k(0xb7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x51d18));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 l=a101d;return a101a[l(0xaf)]()[l(0xe6)]('(((.+)+)+)+$')[l(0xaf)]()[l(0xba)](a101a)[l(0xe6)](l(0xae));});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xaa;let f=c[d];return f;},a101d(a,b);}a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a101m(0xc0)]({'name':a101m(0xb4),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a101m(0xe5),'validOpts':[{'name':'baseDir','values':['hooks','components','pages',a101m(0xd2)]}],'examples':[a101m(0xaa)]},async function(a,b){const n=a101m;try{const c=this['fsi'][n(0xb3)](),d=b[n(0xc1)]?n(0xcd)+b[n(0xc1)]:'/imports/ui/components',f=this[n(0xb9)][n(0xe4)]({'pathParts':[d,b['dir'],paramCase(b[n(0xe7)]),paramCase(b[n(0xe7)])]}),g=await this[n(0xb9)][n(0xe1)]();await this[n(0xb9)]['withValue'](g,async()=>{const o=n;typeof g['template']['test']===o(0xb8)&&(g[o(0xb5)]['test']=g['template'][o(0xd8)]==='true'?!![]:![],this[o(0xb9)][o(0xd3)]('test',g[o(0xb5)]['test']));typeof g[o(0xb5)][o(0xd4)]===o(0xb8)&&(g[o(0xb5)][o(0xd4)]=g[o(0xb5)][o(0xd4)]==='true'?!![]:![],this[o(0xb9)]['setTemplate']('css',g['template'][o(0xd4)]));typeof g['template']['js']===o(0xb8)&&(g['template']['js']=g[o(0xb5)]['js']===o(0xcf)?!![]:![],this[o(0xb9)][o(0xd3)]('js',g['template']['js']));!g[o(0xe8)]&&(g['features']={});!b['root']&&!this['fsi'][o(0xca)](o(0xcb))&&(Log[o(0xb0)](o(0xad)),await this['fsi'][o(0xc9)](o(0xcb),{'cwd':c}));if(!b[o(0xc5)]&&!this[o(0xb9)][o(0xca)](o(0xd5))){Log[o(0xe3)](o(0xe2));return;}const h={'name':pascalCase(b[o(0xe7)]),'myPath':a101e['relative'](this[o(0xb9)][o(0xbd)]({}),f),'cssCaseName':paramCase(b[o(0xe7)]),'className':pascalCase(b[o(0xe7)]),'camelCaseName':camelCase(b[o(0xe7)]),'fileName':paramCase(b['resourceName']),'graphql':g['engines']['graphql'],'features':g[o(0xe8)],'client':g[o(0xd7)][o(0xab)],'api':g[o(0xd7)][o(0xb1)],'ssr':g[o(0xd7)][o(0xdb)],'test':g[o(0xd7)][o(0xd8)],'theme':g[o(0xd7)][o(0xdc)],'isLayout':![],'isComponent':!![],'withTranslations':g[o(0xe8)][o(0xcc)]};await this['fsi'][o(0xb5)]({'srcPath':o(0xde),'destPath':f+o(0xbe),'context':h,'framework':o(0xd5),'config':g});g[o(0xd7)][o(0xd8)]!==o(0xdf)&&await this[o(0xb9)][o(0xb5)]({'srcPath':o(0xd6),'destPath':f+'.tests.js','context':h,'framework':'react','config':g});g[o(0xb5)][o(0xd4)]&&(await this[o(0xb9)]['template']({'srcPath':o(0xd1),'destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b[o(0xe7)])}),'config':g}),await this[o(0xb9)][o(0xda)]({'filePath':f+'.'+g[o(0xd7)]['js'],'content':o(0xac)+h[o(0xc6)]+'.'+g[o(0xd7)]['css']+'\x27;'}));const i=b['dir']?'/'+b[o(0xd9)]+'/':'/',j=''+d+i+h[o(0xbf)]+'/'+h['fileName'];await this['fsi'][o(0xc4)](h[o(0xbc)],g,j);});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x16c))/0x1+parseInt(h(0x15f))/0x2*(parseInt(h(0x164))/0x3)+parseInt(h(0x157))/0x4*(parseInt(h(0x152))/0x5)+parseInt(h(0x168))/0x6+-parseInt(h(0x154))/0x7*(parseInt(h(0x16b))/0x8)+-parseInt(h(0x167))/0x9*(-parseInt(h(0x155))/0xa)+-parseInt(h(0x159))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xca807));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const i=a102d;return a102a['toString']()[i(0x15c)](i(0x14f))['toString']()[i(0x16a)](a102a)[i(0x15c)](i(0x14f));});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102j(0x163)]({'name':'config','usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a102j(0x14d),'validOpts':[a102j(0x165)],'examples':[a102j(0x156)]},async function(a,b){const k=a102j,c=this['fsi'][k(0x15d)]();await this[k(0x153)][k(0x14e)](c,async()=>{const l=k,d={'app':c['appName'],'appFileCase':paramCase(c[l(0x151)]),'name':pascalCase(b[l(0x160)]),'fileName':paramCase(b[l(0x160)]),'camelCase':camelCase(b[l(0x160)]),'userName':l(0x14c),'isDocker':b[l(0x165)]};let e=b['resourceName'];if(e===l(0x150))e='development';else e===l(0x15a)&&(e=l(0x169));const f=this[l(0x153)]['pathFromProject']({'pathParts':[l(0x15e),e,'settings.json']});await this[l(0x153)][l(0x15b)]({'srcPath':l(0x166),'destPath':f,'context':d,'config':c});if(!b[l(0x165)]){const g=this['fsi'][l(0x158)]({'pathParts':[l(0x15e),e,l(0x161)]});await this[l(0x153)][l(0x15b)]({'srcPath':l(0x162),'destPath':g,'context':d,'config':c});}});});function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x14c;let f=c[d];return f;},a102d(a,b);}function a102c(){const m=['pathFromProject','14900985UAJaBT','prod','template','search','getMakaProjectConfig','config','1651118ECXrpa','resourceName','process.env','config/process.env','create','3DoyCXy','isDocker','config/settings.json','249552wexUKW','5727900yuAzDk','production','constructor','8qKKMKA','280604lGgAFL','ubuntu','Generate\x20configuration\x20settings.','withValue','(((.+)+)+)+$','dev','appName','5KUIGZT','fsi','4772642OgmexG','240lduIbg','maka\x20g:config\x20production','2803244dJQrvM'];a102c=function(){return m;};return a102c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x1ca))/0x1*(-parseInt(j(0x1ad))/0x2)+parseInt(j(0x1ba))/0x3+parseInt(j(0x1d0))/0x4+parseInt(j(0x1da))/0x5*(-parseInt(j(0x1d2))/0x6)+parseInt(j(0x1b7))/0x7+parseInt(j(0x1ab))/0x8*(parseInt(j(0x1d3))/0x9)+-parseInt(j(0x1cc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x5c255));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x1c4)]()[l(0x1b5)](l(0x1bc))[l(0x1c4)]()[l(0x1c9)](a103a)[l(0x1b5)]('(((.+)+)+)+$');});a103a();import{camelCase,paramCase,pascalCase}from'change-case';function a103c(){const p=['108104rsKpQU','imports','20926qxqHUZ','-dbc\x27;','installNpmPackage','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','sqlite','server','config.','better-sqlite3','search','dbc/conn.js','394702oueugO','tsx','maka\x20g:dbc\x20azure\x20--type=mssql','1355118DLiaWS','engines','(((.+)+)+)+$','maka\x20g:dbc\x20geoserver\x20--type=pgsql','import\x20\x27./register-','mssql','template','conn.','warn','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','toString','apply','startup','-dbc.','getMakaProjectConfig','constructor','46gChUWJ','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','12362330xgVJiR','dbc','maka\x20g:dbc\x20todos\x20--type=sqlite','type','2046108pbYnrY','index.','215388fnQFBm','99OYaBrO','injectAtEndOfFile','pgsql','register-','dir','pathFromApp','resourceName','5MrzYIh','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','withValue','fsi','checkNpmPackage'];a103c=function(){return p;};return a103c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a103m(0x1cd),'usage':a103m(0x1c3),'shortDesc':a103m(0x1cb),'validOpts':['dir'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x1cf),'values':['pgsql',a103m(0x1bf),a103m(0x1b1)]}],'examples':[a103m(0x1bd),a103m(0x1b9),a103m(0x1ce)]},async function(a,b){const n=a103m;try{const c=await this['fsi'][n(0x1c8)](),d=this[n(0x1dd)]['pathFromApp']({}),f=paramCase(b[n(0x1d9)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[n(0x1d9)]),'camelCase':camelCase(b['resourceName']),'type':b[n(0x1cf)],'engine':c[n(0x1bb)]['js'],'noRename':!![]};await this[n(0x1dd)][n(0x1dc)](c,async()=>{const o=n;let h='js';c[o(0x1bb)]['js']===o(0x1b8)&&(h='ts');b[o(0x1cf)]===o(0x1d5)&&!this[o(0x1dd)][o(0x1aa)]('pg')&&(Log[o(0x1c2)](o(0x1b0)),await this[o(0x1dd)][o(0x1af)]('pg',{'cwd':d}));b[o(0x1cf)]===o(0x1bf)&&!this[o(0x1dd)][o(0x1aa)](o(0x1bf))&&(Log[o(0x1c2)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x1dd)][o(0x1af)](o(0x1bf),{'cwd':d}));b['type']===o(0x1b1)&&!this[o(0x1dd)][o(0x1aa)]('better-sqlite3')&&(Log[o(0x1c2)](o(0x1db)),await this['fsi'][o(0x1af)](o(0x1b4),{'cwd':d}));await this[o(0x1dd)]['template']({'srcPath':'dbc/config.js','destPath':this[o(0x1dd)][o(0x1d8)]({'pathParts':[o(0x1ac),o(0x1c6),o(0x1b2),o(0x1cd),b[o(0x1d7)],f,o(0x1b3)+h]}),'context':g,'config':c}),await this['fsi'][o(0x1c0)]({'srcPath':o(0x1b6),'destPath':this[o(0x1dd)]['pathFromApp']({'pathParts':[o(0x1ac),o(0x1c6),o(0x1b2),o(0x1cd),b['dir'],f,o(0x1c1)+h]}),'context':g,'config':c}),await this[o(0x1dd)]['template']({'srcPath':'dbc/register-dbc.js','destPath':this[o(0x1dd)]['pathFromApp']({'pathParts':[o(0x1ac),o(0x1c6),o(0x1b2),o(0x1d6)+f+o(0x1c7)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x1d8)]({'pathParts':['imports','startup','server',o(0x1d1)+c[o(0x1bb)]['js']]});await this[o(0x1dd)][o(0x1d4)]({'filePath':i,'content':o(0x1be)+f+o(0x1ae)});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x1a1))/0x1*(-parseInt(f(0x1ac))/0x2)+-parseInt(f(0x194))/0x3+-parseInt(f(0x18c))/0x4*(parseInt(f(0x19b))/0x5)+parseInt(f(0x195))/0x6*(parseInt(f(0x1a6))/0x7)+parseInt(f(0x19f))/0x8*(parseInt(f(0x1a8))/0x9)+-parseInt(f(0x1a2))/0xa+parseInt(f(0x18d))/0xb*(parseInt(f(0x198))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x9fd4d));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1a0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x199)]()['search']('(((.+)+)+)+$')[h(0x199)]()[h(0x18f)](a104a)[h(0x1a5)](h(0x1aa));});function a104c(){const l=['710hcrjvf','34364SKqezI','7435351OSqSAs','cert','constructor','maka\x20{generate,\x20g}:dockerfile','error','fsi','maka\x20g:dockerfile','2061234qMtDdC','18VPjTxs','appName','app','12TeyLQI','toString','dockerfile','210UMvgkL','app.tar.gz','template','create','617216eZkmSH','apply','1687KHHczC','4673900wMJZOi','join','service','search','108409ZlPtbJ','findProjectDirectory','99TlkElo','withValue','(((.+)+)+)+$','docker/Dockerfile'];a104c=function(){return l;};return a104c();}a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x18c;let f=c[d];return f;},a104d(a,b);}import a104e from'path';Generator[a104i(0x19e)]({'name':a104i(0x19a),'usage':a104i(0x190),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noNeedResource':!![],'examples':[a104i(0x193)]},async function(){const j=a104i;try{const a=await this[j(0x192)]['getMakaProjectConfig'](),b=await this[j(0x192)]['getGlobalConfig'](),c=this[j(0x192)][j(0x1a7)]();await this[j(0x192)][j(0x1a9)](a,async()=>{const k=j,d={'app':b[k(0x196)],'config':a,'appPath':a104e['join'](c,k(0x197)),'bundlePath':a104e[k(0x1a3)](c,'build',k(0x19c)),'useCert':this['fsi']['isFile'](b[k(0x18e)])};await this['fsi'][k(0x19d)]({'srcPath':k(0x1ab),'destPath':a104e[k(0x1a3)](c,'Dockerfile'),'framework':k(0x1a4),'context':d,'config':a});});}catch(d){Log[j(0x191)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a105c(){const r=['none','checkNpmPackage','fileName','theme','react','55YqadVf','(((.+)+)+)+$','features','constructor','components','test','test/test.js','pages','true','2995989jUAJAE','layouts','setTemplate','1697958bDTMsM','.css','hook/hook.js','cssCaseName','injectAtBeginningOfFile','error','search','\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','getMakaProjectConfig','css','graphql','template','7mgiAuL','installNpmPackage','fsi','withValue','force','Creating\x20','className','.app-tests.js','2959734ucFlqi','resourceName','/imports/ui/hooks','5QXnxFk','apply','withTranslations','\x20hook...','baseDir','2mXkSdr','import\x20\x27./','toString','4196396qAewqo','template/template.css','3429056YjlODE','string','injectTemplateModule','engines','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','maka\x20g:hook\x20cool-hook','4082700WgPDrj','dir','@apollo/client','.js','warn','notice','pathFromApp','pathFromProject','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','assign','926593xwFBKs'];a105c=function(){return r;};return a105c();}const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=parseInt(l(0x16a))/0x1+parseInt(l(0x154))/0x2*(parseInt(l(0x135))/0x3)+parseInt(l(0x157))/0x4*(parseInt(l(0x14f))/0x5)+-parseInt(l(0x14c))/0x6*(parseInt(l(0x144))/0x7)+parseInt(l(0x159))/0x8+-parseInt(l(0x138))/0x9+-parseInt(l(0x160))/0xa*(parseInt(l(0x12c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xa5f06));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x156)]()[n(0x13e)](n(0x12d))[n(0x156)]()[n(0x12f)](a105a)['search'](n(0x12d));});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x12c;let f=c[d];return f;},a105d(a,b);}a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a105o(0x168),'validOpts':[{'name':a105o(0x153),'values':['hooks',a105o(0x130),a105o(0x133),a105o(0x136)]},{'name':a105o(0x148),'boolFlag':!![]}],'examples':[a105o(0x15f)],'description':a105o(0x13f)},async function(a,b){const p=a105o;Log[p(0x165)](p(0x149)+b[p(0x14d)]+p(0x152));try{const c=this[p(0x146)][p(0x16c)](p(0x16f));if(!c){Log[p(0x13d)](p(0x15e));throw new UsageError();}const d=this[p(0x146)][p(0x166)](b),f=b['baseDir']?'/imports/ui/'+b[p(0x153)]:p(0x14e),g=this[p(0x146)][p(0x166)]({'pathParts':[f,b[p(0x161)],paramCase(b[p(0x14d)]),paramCase(b[p(0x14d)])]}),h=await this[p(0x146)][p(0x140)]();await this[p(0x146)][p(0x147)](h,async()=>{const q=p;typeof h[q(0x143)]['css']===q(0x15a)&&(h['template'][q(0x141)]=h[q(0x143)]['css']===q(0x134)?!![]:![],this[q(0x146)][q(0x137)](q(0x141),h[q(0x143)][q(0x141)]));h[q(0x15c)][q(0x142)]==='apollo'&&!this[q(0x146)][q(0x16c)](q(0x162))&&(Log[q(0x164)](q(0x15d)),await this[q(0x146)][q(0x145)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x14d)]),'className':pascalCase(b[q(0x14d)]),'name':pascalCase(b[q(0x14d)]),'graphql':h[q(0x15c)][q(0x142)],'theme':h[q(0x15c)][q(0x16e)],'features':h[q(0x12e)],'myPath':a105e['relative'](this['fsi'][q(0x167)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h[q(0x12e)][q(0x151)]};await this[q(0x146)]['template']({'srcPath':q(0x13a),'destPath':g+q(0x163),'context':i,'config':h,'framework':q(0x16f),'force':b[q(0x148)]});h['template']['css']&&(await this[q(0x146)][q(0x143)]({'srcPath':q(0x158),'destPath':g+q(0x139),'context':Object[q(0x169)]({},i,{'className':i[q(0x13b)]}),'config':h,'force':b[q(0x148)]}),await this[q(0x146)][q(0x13c)]({'filePath':g+'.'+h[q(0x15c)]['js'],'content':q(0x155)+i[q(0x16d)]+'.'+h[q(0x15c)]['css']+'\x27;'}));h[q(0x15c)][q(0x131)]!==q(0x16b)&&await this['fsi']['template']({'srcPath':q(0x132),'destPath':g+q(0x14b),'framework':q(0x16f),'context':i,'config':h,'force':b[q(0x148)]});const j=b[q(0x161)]?'/'+b[q(0x161)]+'/':'/',k=''+f+j+i[q(0x16d)]+'/'+i['fileName'];await this[q(0x146)][q(0x15b)](i[q(0x14a)],h,k);});}catch(i){Log[p(0x13d)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a106d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x111))/0x1*(-parseInt(f(0x118))/0x2)+-parseInt(f(0x10d))/0x3*(parseInt(f(0x110))/0x4)+parseInt(f(0x10f))/0x5+parseInt(f(0x116))/0x6*(-parseInt(f(0x10c))/0x7)+-parseInt(f(0x114))/0x8+parseInt(f(0x10b))/0x9+parseInt(f(0x115))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xb143c));function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x10a;var f=c[d];return f;},a106d(a,b);}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a[h(0x113)]()[h(0x10a)](h(0x117))[h(0x113)]()[h(0x112)](a106a)['search'](h(0x117));});function a106c(){var i=['59138bcrrNK','search','860427PSsGrV','348817rSAhoW','8679TWvNPb','apply','5535935uuOFjq','628CpLKwk','4oseOld','constructor','toString','786000cAkusA','13028980hWTObM','162ygBKLp','(((.+)+)+)+$'];a106c=function(){return i;};return a106c();}a106a();import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a107c(){var i=['1669172YbUgFd','7749880xVHfIg','toString','3571112ryTSwb','531747YVThrB','(((.+)+)+)+$','constructor','search','2442294MEkKcp','11580NHlVZY','7mpcNGp','27jKFQJw','18843sdlSml','2540504aGsQpe','3bYkkoq','apply'];a107c=function(){return i;};return a107c();}function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x7e;var f=c[d];return f;},a107d(a,b);}(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0x81))/0x1+-parseInt(f(0x8d))/0x2+-parseInt(f(0x8b))/0x3*(parseInt(f(0x80))/0x4)+parseInt(f(0x7e))/0x5+parseInt(f(0x85))/0x6*(-parseInt(f(0x87))/0x7)+-parseInt(f(0x8a))/0x8*(parseInt(f(0x88))/0x9)+-parseInt(f(0x86))/0xa*(-parseInt(f(0x89))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xeed63));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a['toString']()[h(0x84)](h(0x82))[h(0x7f)]()[h(0x83)](a107a)[h(0x84)](h(0x82));});a107a();import'./esri.generator.js';import'./map.esri.gen.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a108h=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0x199))/0x1*(parseInt(f(0x1a7))/0x2)+parseInt(f(0x19b))/0x3*(parseInt(f(0x1a1))/0x4)+parseInt(f(0x19c))/0x5+-parseInt(f(0x196))/0x6+parseInt(f(0x1a3))/0x7*(-parseInt(f(0x1a2))/0x8)+parseInt(f(0x1a4))/0x9*(parseInt(f(0x19e))/0xa)+parseInt(f(0x197))/0xb*(parseInt(f(0x194))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x888c8));const a108b=(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;};}()),a108a=a108b(this,function(){const g=a108d;return a108a[g(0x19a)]()['search'](g(0x1a0))[g(0x19a)]()[g(0x195)](a108a)[g(0x19f)](g(0x1a0));});a108a();function a108c(){const j=['855640HpNyfb','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','8631400JQmphW','search','(((.+)+)+)+$','16560LblNbj','382552WtxelH','147vsrQjW','9yYipwk','NIE','maka\x20g:kit:e','55546xEcOov','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','\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','2190444DhFbcp','constructor','2584782AMQKbE','88OOgmWJ','create','28rcCimz','toString','201FHHiNe'];a108c=function(){return j;};return a108c();}import{Generator}from'../../../generator.js';import a108e from'../kit.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x193;let f=c[d];return f;},a108d(a,b);}const EsriGen=Generator[a108h(0x198)]({'name':'esri','aliases':['e'],'usage':a108h(0x19d),'noNeedResource':!![],'shortDesc':a108h(0x1a8),'validOpts':[''],'isPro':!![],'examples':[a108h(0x1a6)],'description':a108h(0x193)},async function(){const i=a108h;throw i(0x1a5);},a108e);export default EsriGen;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a109s=a109d;(function(a,b){const p=a109d,c=a();while(!![]){try{const d=parseInt(p(0x1f0))/0x1*(parseInt(p(0x1ed))/0x2)+-parseInt(p(0x1f4))/0x3+parseInt(p(0x1ff))/0x4*(parseInt(p(0x1f8))/0x5)+parseInt(p(0x1d9))/0x6*(-parseInt(p(0x1f7))/0x7)+-parseInt(p(0x1df))/0x8*(parseInt(p(0x1f2))/0x9)+-parseInt(p(0x1eb))/0xa+parseInt(p(0x1fb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x740ef));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a109d;if(c){const e=c[q(0x1f1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const r=a109d;return a109a[r(0x201)]()[r(0x203)](r(0x1e6))[r(0x201)]()['constructor'](a109a)['search'](r(0x1e6));});a109a();function a109c(){const v=['FALSE','/imports/startup/lib/templates','256912fQdvhp','.js','<div\x20id=\x22map-hook\x22>','template','ssr','map','/imports/startup/client/templates','(((.+)+)+)+$','basic-map','exit','create','@esri/react-arcgis','547480cfACAR','true','252WAikTr','injectTemplateModule','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','3428NPwwJz','apply','45uppykK','REACT','1636491nwEDrg','withValue','findProjectDirectory','56945IachJF','794035QjlsSM','engines','react','2843709fkwApb','appName','checkNpmPackage','baseDir','16XwvCmq','pathFromApp','toString','Generating\x20a\x20map\x20component','search','getMakaProjectConfig','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','error','page','fsi','/imports/ui/hooks','split','injectImport','66BzPsbu','bright','esri-loader','/imports/ui/'];a109c=function(){return v;};return a109c();}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a109e from'./esri.generator.js';import a109f from'../../../generators/maka.gen.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a109d(a,b);}import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a109s(0x1e9)]({'name':a109s(0x1e4),'aliases':['m'],'usage':a109s(0x205),'shortDesc':'Generate\x20an\x20Esri\x20map\x20component','validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a109s(0x1f3)],'ssr':SsrEngines[a109s(0x1dd)]},'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=a109s;try{Log[t(0x1da)](t(0x202));const c=t(0x1e7);await this[t(0x1d5)][t(0x1fd)]([t(0x1ea),t(0x1db)],{'shouldInstall':!![]});const d=this[t(0x1d5)][t(0x1f6)](),f=this[t(0x1d5)][t(0x204)](),g=f[t(0x1f9)][t(0x1e3)]===t(0x1ec),h=await a109f['processAndRunGenerator'](t(0x207),[t(0x1e4)],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0x1fc)])['replaceAll']('-','\x20'),'componentName':pascalCase(c)},j=b[t(0x1fe)]?t(0x1dc)+b[t(0x1fe)]:t(0x1d6),k=this[t(0x1d5)][t(0x200)]({'pathParts':[j,b['dir'],paramCase(c),paramCase(c)]});this[t(0x1d5)][t(0x1f5)](f,async()=>{const u=t;this[u(0x1d5)][u(0x1e2)]({'srcPath':'kit/esri/map/'+c+u(0x1e0),'destPath':k+u(0x1e0),'framework':u(0x1fa),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b['dir']+'/'+c+'/'+c;await this['fsi'][t(0x1ee)](c,f,l);const m=h[t(0x1d7)]('/'),n=this[t(0x1d5)][t(0x200)]({'pathParts':m});await this[t(0x1d5)][t(0x1d8)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0x1de):t(0x1e5),'isNamedExport':!![]}),await this[t(0x1d5)]['injectIntoFile']({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x1ef),'begin':[t(0x1e1),'<div\x20id=\x22map-component\x22>'],'end':['</div>'],'replace':!![]});}catch(o){Log[t(0x206)](o),process[t(0x1e8)](0x1);}},a109e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0x145))/0x1*(parseInt(f(0x146))/0x2)+parseInt(f(0x139))/0x3*(parseInt(f(0x147))/0x4)+-parseInt(f(0x142))/0x5+-parseInt(f(0x13a))/0x6+parseInt(f(0x13c))/0x7*(parseInt(f(0x140))/0x8)+parseInt(f(0x13f))/0x9*(parseInt(f(0x136))/0xa)+-parseInt(f(0x13e))/0xb*(-parseInt(f(0x137))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xaa883));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a['toString']()[h(0x133)](h(0x143))[h(0x13b)]()[h(0x135)](a110a)[h(0x133)](h(0x143));});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x133;let f=c[d];return f;},a110d(a,b);}a110a();function a110c(){const j=['create','11dcwdXI','34407JJeUYG','648hSWVUI','maka\x20{generate,\x20g}:{kit}\x20<name>','2049800ecIVLK','(((.+)+)+)+$','maka\x20g:kit','1rnHHdK','2212590UIUJKs','4zlnCdi','search','maka\x20g:k','constructor','190yvBnwt','3274644ntCqGO','apply','684939SGJUud','5167002qpbNkm','toString','25018eQDYrs'];a110c=function(){return j;};return a110c();}import{Generator}from'../../generator.js';const KitGen=Generator[a110i(0x13d)]({'name':'kit','aliases':['k'],'usage':a110i(0x141),'shortDesc':'Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a110i(0x144),a110i(0x134)]},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0x1e0))/0x1+-parseInt(f(0x1da))/0x2+-parseInt(f(0x1e3))/0x3+-parseInt(f(0x1de))/0x4*(parseInt(f(0x1e4))/0x5)+-parseInt(f(0x1e5))/0x6+-parseInt(f(0x1e1))/0x7*(parseInt(f(0x1db))/0x8)+parseInt(f(0x1dd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xd4419));function a111c(){var h=['6761712wpqkkN','constructor','2090600TJpPNB','104wEBqCR','search','56454561ZCRJZs','716NgdUeR','(((.+)+)+)+$','1627158HyEeoU','295547gkANpE','toString','3080826SvvUYh','785BWqjZv'];a111c=function(){return h;};return a111c();}var a111b=(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;};}()),a111a=a111b(this,function(){var g=a111d;return a111a[g(0x1e2)]()[g(0x1dc)](g(0x1df))['toString']()[g(0x1e6)](a111a)[g(0x1dc)](g(0x1df));});function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x1da;var f=c[d];return f;},a111d(a,b);}a111a();import'./mui.generator.js';import'./frame.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112A=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d=parseInt(x(0x109))/0x1+parseInt(x(0x122))/0x2*(-parseInt(x(0x129))/0x3)+parseInt(x(0x145))/0x4+-parseInt(x(0x13c))/0x5*(-parseInt(x(0x14a))/0x6)+-parseInt(x(0x128))/0x7+parseInt(x(0x119))/0x8+-parseInt(x(0x140))/0x9*(parseInt(x(0x114))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xdf395));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a112d;if(c){const e=c[y(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const z=a112d;return a112a[z(0x12d)]()[z(0x137)](z(0x146))['toString']()[z(0x113)](a112a)['search']('(((.+)+)+)+$');});function a112c(){const D=['\x20/>\x0a','checkbox','injectTemplateModule','{props.children}','6037360pjrBQJ','78xvjLXR','create','/imports/startup/client/templates','appName','toString','withValue','kit/mui/frame/drawers/','tests','injectIntoFile','maka\x20g:k:m:f','layouts','length','join','error','search','fsi','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','kit/mui/frame/app-bars/','/imports/startup/lib/templates','11330Kzcjxj','.js','{\x20this.props.children\x20}','pathFromApp','8057817eeWVAB','<div\x20id=\x22','react','imports','getDirectories','6962128lRFmKd','(((.+)+)+)+$','maka\x20generate:kit:mui:frame','replaceAll','/imports/ui/hooks','4566PkYPXx','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','729768TDumxh','ssr','checkMeteorPackage','baseDir','getMakaProjectConfig','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','dir','-component\x22>','/imports/ui/','template','constructor','40ESujaJ','findAppDirectory','{\x20props.children\x20}','injectImport','REACT','11436152CTvFRB','session','jsx','options','getFiles','apply','app-tests','basic-app-bar','true','20476NnnSUv','{this.props.children}'];a112c=function(){return D;};return a112c();}a112a();function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x108;let f=c[d];return f;},a112d(a,b);}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a112e from'path';import a112f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a112A(0x12a)]({'name':'frame','aliases':['f'],'usage':a112A(0x108),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','validOpts':[a112A(0x133)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a112A(0x118)]},'examples':[a112A(0x147),a112A(0x132)],'description':a112A(0x139)},async function(a,b){const B=a112A;try{const c=B(0x120),d='basic-drawer',f=this[B(0x138)][B(0x10d)](),g=f['engines'][B(0x10a)]===B(0x121);await this[B(0x138)][B(0x10b)](B(0x11a),{'shouldInstall':!![]});const h=this['fsi'][B(0x115)](),i=a112e[B(0x135)](h,B(0x143),'ui','layouts'),j=this[B(0x138)][B(0x144)](i),k=await Actions[B(0x11c)]({'type':B(0x125),'name':B(0x133),'message':B(0x10e),'choices':j});if(k['layouts'][B(0x134)]===0x0){Log[B(0x136)]('No\x20layouts\x20selected');return;}const l=b['baseDir']?B(0x111)+b[B(0x10c)]:B(0x149),m=this[B(0x138)][B(0x13f)]({'pathParts':[l,b[B(0x10f)],paramCase(c),paramCase(c)]}),n=this[B(0x138)]['pathFromApp']({'pathParts':[l,b['dir'],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0x12c)])[B(0x148)]('-','\x20')};await this[B(0x138)][B(0x12e)](f,async()=>{const C=B;await this['fsi'][C(0x112)]({'srcPath':C(0x13a)+c+C(0x13d),'destPath':m+C(0x13d),'framework':C(0x142),'context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x138)]['template']({'srcPath':C(0x12f)+d+C(0x13d),'destPath':n+C(0x13d),'framework':C(0x142),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0x10f)]+'/'+c+'/'+c;await this[B(0x138)][B(0x126)](c,f,p);const q=''+l+b[B(0x10f)]+'/'+d+'/'+d;await this['fsi'][B(0x126)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0x138)][B(0x11d)](a112e['join'](i,s),{'extensions':[B(0x11b),'tsx'],'omit':[B(0x11f),B(0x130),'test']});for(const u of t){const v=a112e['join'](i,s,u);await this[B(0x138)][B(0x117)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':'/imports/startup/client/templates','isNamedExport':!![]}),await this['fsi']['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(c)+B(0x124),'begin':[B(0x141)+s+B(0x110),B(0x141)+s+'-hook\x22>'],'end':[B(0x123),'{\x20this.props.children\x20}',B(0x127),'{\x20props.children\x20}']}),await this[B(0x138)][B(0x117)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0x13b):B(0x12b),'isNamedExport':!![]}),await this[B(0x138)][B(0x131)]({'filePath':v,'content':'<'+pascalCase(d)+B(0x124),'begin':[B(0x141)+s+'-component\x22>',B(0x141)+s+'-hook\x22>'],'end':[B(0x123),B(0x13e),'{props.children}',B(0x116)]});}}}catch(w){Log[B(0x136)](w);}},a112f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a113h=a113d;(function(a,b){const f=a113d,c=a();while(!![]){try{const d=parseInt(f(0x1f0))/0x1+-parseInt(f(0x1ea))/0x2*(parseInt(f(0x1f7))/0x3)+parseInt(f(0x1ed))/0x4+-parseInt(f(0x1f5))/0x5*(parseInt(f(0x1eb))/0x6)+-parseInt(f(0x1f1))/0x7+-parseInt(f(0x1e8))/0x8*(parseInt(f(0x1ee))/0x9)+parseInt(f(0x1f4))/0xa*(parseInt(f(0x1f2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xcb68a));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const g=a113d;return a113a[g(0x1f8)]()['search']('(((.+)+)+)+$')[g(0x1f8)]()[g(0x1e7)](a113a)['search'](g(0x1ef));});a113a();import{Generator}from'../../../generator.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a113d(a,b);}import a113e from'../kit.js';function a113c(){const j=['5950ncLlQQ','5FoKPmc','NIE','3468558jDjfEp','toString','Material-UI\x20Kit','constructor','56yNBzNB','mui','2wZsOZb','4831824LTxaka','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','3120104pPkkKh','378963eaDcyY','(((.+)+)+)+$','770268TENuaC','6244441MofYmb','44946MqSXax','maka\x20g:kit:m'];a113c=function(){return j;};return a113c();}const MuiGen=Generator['create']({'name':a113h(0x1e9),'aliases':['m'],'usage':a113h(0x1ec),'noNeedResource':!![],'shortDesc':a113h(0x1f9),'validOpts':[''],'isPro':!![],'examples':[a113h(0x1f3)]},async function(){const i=a113h;throw i(0x1f6);},a113e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114n=a114d;function a114c(){const q=['1722510Hojdpb','5500BYTJNI','resourceName','(((.+)+)+)+$','template','ramda','graphql','css','maka\x20g:layout\x20mobile/iPhone8','withHook','4vUYKjr','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','dir','withTranslations','string','warn','withHooks','.app-tests.js','.css','fileName','maka\x20g:l\x20web/safari','883863yifFaj','pathFromApp','template/template.css','create','search','hook/hook.js','true','findAppDirectory','react','assign','setTemplate','/imports/ui/layouts','import\x20\x27./','engines','640352lerYiC','className','test','getMakaProjectConfig','features','6823kVekZd','relative','client','component/component.js','.js','checkNpmPackage','2061437lHCzFi','toString','pathFromProject','11610XLkcbQ','fsi','5GkaJXi','636459ZTVWvN','32UFSvfi'];a114c=function(){return q;};return a114c();}function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0xcf;let f=c[d];return f;},a114d(a,b);}(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0x101))/0x1+-parseInt(l(0xfc))/0x2+parseInt(l(0xd7))/0x3*(parseInt(l(0xe3))/0x4)+-parseInt(l(0xd6))/0x5*(-parseInt(l(0xd9))/0x6)+parseInt(l(0xd1))/0x7+parseInt(l(0xd8))/0x8*(parseInt(l(0xee))/0x9)+-parseInt(l(0xd4))/0xa*(parseInt(l(0xda))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x47760));const a114b=(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;};}()),a114a=a114b(this,function(){const m=a114d;return a114a[m(0xd2)]()[m(0xf2)](m(0xdc))[m(0xd2)]()['constructor'](a114a)[m(0xf2)](m(0xdc));});a114a();import a114e 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[a114n(0xf1)]({'name':'layout','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a114n(0xe1),a114n(0xed)]},async function(a,b){const o=a114n,c=o(0xf9),d=this[o(0xd5)][o(0xf5)](),e=this[o(0xd5)][o(0xef)]({'pathParts':[c,b[o(0xe5)],paramCase(b[o(0xdb)]),paramCase(b[o(0xdb)])]}),f=this[o(0xd5)][o(0xff)]();await this[o(0xd5)]['withValue'](f,async()=>{const p=o;typeof f[p(0xdd)][p(0xfe)]===p(0xe7)&&(f['template'][p(0xfe)]=f[p(0xdd)][p(0xfe)]===p(0xf4)?!![]:![],this[p(0xd5)][p(0xf8)](p(0xfe),f[p(0xdd)][p(0xfe)]));typeof f[p(0xdd)][p(0xe0)]===p(0xe7)&&(f[p(0xdd)][p(0xe0)]=f[p(0xdd)][p(0xe0)]===p(0xf4)?!![]:![],this[p(0xd5)][p(0xf8)]('css',f[p(0xdd)]['css']));typeof f[p(0xdd)]['js']===p(0xe7)&&(f[p(0xdd)]['js']=f[p(0xdd)]['js']==='true'?!![]:![],this[p(0xd5)][p(0xf8)]('js',f['template']['js']));!f[p(0x100)]&&(f[p(0x100)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](p(0xde))&&(Log[p(0xe8)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this['fsi']['installNpmPackage'](p(0xde),{'cwd':d}));if(h&&!this[p(0xd0)](p(0xf6))){Log[p(0xe8)](p(0xe4));return;}const i={'name':pascalCase(b[p(0xdb)]),'myPath':a114e[p(0x102)](this['fsi'][p(0xd3)]({}),e),'cssCaseName':paramCase(b[p(0xdb)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f[p(0xfb)][p(0xdf)],'features':f[p(0x100)],'client':f[p(0xfb)][p(0x103)],'api':f[p(0xfb)]['api'],'ssr':f[p(0xfb)]['ssr'],'test':f['engines']['test'],'theme':f[p(0xfb)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0x100)][p(0xe6)]};f[p(0x100)]?.[p(0xe9)]||b[p(0xe2)]?await this['fsi'][p(0xdd)]({'srcPath':p(0xf3),'destPath':e+'.js','framework':'react','context':i,'config':f}):await this[p(0xd5)][p(0xdd)]({'srcPath':p(0x104),'destPath':e+p(0xcf),'framework':'react','context':i,'config':f});f[p(0xfb)][p(0xfe)]!=='none'&&await this[p(0xd5)][p(0xdd)]({'srcPath':'test/test.js','destPath':e+p(0xea),'framework':'react','context':i,'config':f});f['template'][p(0xe0)]&&(await this[p(0xd5)]['template']({'srcPath':p(0xf0),'destPath':e+p(0xeb),'context':Object[p(0xf7)]({},i,{'className':paramCase(b[p(0xdb)])}),'config':f}),await this[p(0xd5)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[p(0xfb)]['js'],'content':p(0xfa)+i[p(0xec)]+'.'+f[p(0xfb)][p(0xe0)]+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i[p(0xec)]+'/'+i[p(0xec)];await this['fsi']['injectTemplateModule'](i[p(0xfd)],f,k);});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(0x10d))/0x1*(-parseInt(f(0x11a))/0x2)+-parseInt(f(0x10f))/0x3*(-parseInt(f(0x113))/0x4)+parseInt(f(0x11d))/0x5+-parseInt(f(0x119))/0x6+-parseInt(f(0x116))/0x7*(-parseInt(f(0x115))/0x8)+-parseInt(f(0x11b))/0x9*(-parseInt(f(0x118))/0xa)+-parseInt(f(0x107))/0xb*(parseInt(f(0x109))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xb5683));function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x106;let f=c[d];return f;},a115d(a,b);}const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a['toString']()[h(0x106)]('(((.+)+)+)+$')[h(0x10c)]()[h(0x111)](a115a)[h(0x106)](h(0x10b));});a115a();function a115c(){const j=['search','2959OgAVGW','maka\x20g:route\x20todos/edit','1272ELlcse','maka\x20g:template\x20todos/todo_item','(((.+)+)+)+$','toString','1xQbOiI','maka\x20g:scaffold\x20todos','2199OXybfq','apply','constructor','maka\x20generate:scaffold\x20todos','2616QEpktW','maka\x20g:package\x20package:name','8aCFsHo','462091rTAZZE','maka\x20{generate,\x20g}:<generator>\x20<name>','740eWFDuW','5399142DkEWUQ','1636682AeIeZm','11061ztoISB','maka\x20g:dbc\x20geoserver\x20--type=pgsql','1083660CLmwmo','maka\x20g:api\x20trucks'];a115c=function(){return j;};return a115c();}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a115i(0x117),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':'Scaffold\x20various\x20parts\x20of\x20your\x20application','examples':[a115i(0x112),a115i(0x10e),a115i(0x10a),a115i(0x114),a115i(0x108),a115i(0x11e),a115i(0x11c)]},function(){});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=parseInt(j(0x10a))/0x1+parseInt(j(0xf8))/0x2*(parseInt(j(0x104))/0x3)+parseInt(j(0xfc))/0x4+-parseInt(j(0xf3))/0x5+-parseInt(j(0x10b))/0x6+-parseInt(j(0xeb))/0x7+-parseInt(j(0xec))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x3d018));function a116c(){const p=['toString','appPathPrefix','maka\x20g:method\x20todos','370229sznwMS','787164oWjodS','fsi','1285277oHskbE','602384cNzHAf','resourceName','startup','apply','mdg:validated-method','search','pathFromApp','1908585FIuMnk','create','index.','import\x20\x27./methods','dir','441566mWUwAT','error','(((.+)+)+)+$','method','1722752UkpJpv','getMakaProjectConfig','tsx','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','engines','injectAtEndOfFile','constructor','imports','3qPGcfN','maka:check','template'];a116c=function(){return p;};return a116c();}function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0xea;let f=c[d];return f;},a116d(a,b);}const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a116d;if(c){const e=c[k(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const l=a116d;return a116a[l(0x107)]()[l(0xf1)](l(0xfa))['toString']()[l(0x102)](a116a)[l(0xf1)]('(((.+)+)+)+$');});a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a116m(0xf4)]({'name':a116m(0xfb),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a116m(0xff),'validOpts':[a116m(0xf7)],'examples':[a116m(0x109)]},async function(a,b){const n=a116m;try{const c=this[n(0xea)][n(0xfd)]();await this[n(0xea)]['withValue'](c,async()=>{const o=n,d=paramCase(b[o(0xed)]),f={'name':b[o(0xed)],'fileName':d,'className':pascalCase(b[o(0xed)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[o(0x100)]['js']===o(0xfe)&&(g='ts');await this[o(0xea)]['checkMeteorPackage']([o(0x105),'ddp-rate-limiter',o(0xf0)],{'shouldInstall':!![]}),await this[o(0xea)][o(0x106)]({'srcPath':'method/method.js','destPath':this[o(0xea)][o(0xf2)]({'pathParts':[o(0x103),'startup',b[o(0x108)],'methods',b['dir'],d+'-rpc-method.'+g]}),'context':f,'config':c});const h=b[o(0xf7)]?'/'+b[o(0xf7)]+'/':'/',i=this[o(0xea)]['pathFromApp']({'pathParts':['imports',o(0xee),b[o(0x108)],o(0xf5)+c[o(0x100)]['js']]});await this[o(0xea)][o(0x101)]({'filePath':i,'content':o(0xf6)+h+d+'-rpc-method\x27;'});});}catch(d){Log[n(0xf9)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x107;let f=c[d];return f;},a117d(a,b);}const a117o=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=parseInt(l(0x10e))/0x1*(parseInt(l(0x111))/0x2)+-parseInt(l(0x116))/0x3+parseInt(l(0x121))/0x4+-parseInt(l(0x123))/0x5+-parseInt(l(0x10d))/0x6+parseInt(l(0x12e))/0x7+parseInt(l(0x10f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x30ada));function a117c(){const r=['server','package/package.js','lib','pathFromAppWithNoReWrite','hasOwnProperty','(((.+)+)+)+$','663026zdJVcY','/package.js','fsi','toString','apply','maka\x20g:package\x20todos:package','search','/client/','1654158Vzhfpn','5fVRWeU','1874720ETOvdR','create','138846PKqeLR','tests/client','component','resourceName','layout','639393QdcibF','engines','graphql','.js','package.js','ssr','noRename','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','withValue','pathFromApp','packages','1020908UBbOoL','template','1215950qWZOdL','template/template.js','package/','pathFromProject','dir'];a117c=function(){return r;};return a117c();}const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a[n(0x108)]()[n(0x10b)]('(((.+)+)+)+$')[n(0x108)]()['constructor'](a117a)[n(0x10b)](n(0x12d));});a117a();import a117e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a117o(0x110)]({'name':'package','aliases':['p'],'usage':a117o(0x11d),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a117o(0x127)],'examples':[a117o(0x10a)]},async function(a,b){const p=a117o,c=paramCase(b[p(0x114)]),d=this[p(0x107)][p(0x11f)]({'pathParts':[p(0x120),b[p(0x127)],c]}),e=this[p(0x107)][p(0x12b)]({'pathParts':[p(0x120),b[p(0x127)],c,p(0x11a)]}),f=this[p(0x107)]['getMakaProjectConfig']();await this[p(0x107)][p(0x11e)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a117e['relative'](this[q(0x107)][q(0x126)]({}),d),'cssCaseName':paramCase(b[q(0x114)]),'className':pascalCase(b[q(0x114)]),'camelCaseName':camelCase(b[q(0x114)]),'fileName':c,'client':f[q(0x117)]['client'],'graphql':f[q(0x117)][q(0x118)],'ssr':f['engines'][q(0x11b)],'isComponent':b[q(0x12c)](q(0x113)),'isLayout':b[q(0x12c)](q(0x115)),'isStore':b[q(0x12c)]('store'),'features':f['features'],'noRename':!![],'theme':f[q(0x117)]['theme']};await this[q(0x107)][q(0x122)]({'srcPath':q(0x129),'destPath':e,'context':g,'config':f}),g[q(0x11c)]=![];const h=d+q(0x10c)+c+q(0x119);await this[q(0x107)][q(0x122)]({'srcPath':q(0x124),'destPath':h,'context':g,'config':f});const i=[q(0x12a),q(0x128),q(0x112),'tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+'.js';await this[q(0x107)][q(0x122)]({'srcPath':q(0x125)+j+q(0x12f),'destPath':k,'context':g,'config':f});}});});
|