@maka/maka-cli 4.3.31 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/README.md +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.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/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/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.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/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/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/kit.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/actions/actions.test.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/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
|
-
const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(
|
|
1
|
+
const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0x1f5))/0x1*(-parseInt(w(0x1ea))/0x2)+parseInt(w(0x1f6))/0x3+parseInt(w(0x1db))/0x4+-parseInt(w(0x1c6))/0x5*(-parseInt(w(0x1ee))/0x6)+-parseInt(w(0x1f3))/0x7+parseInt(w(0x1d2))/0x8+-parseInt(w(0x1bb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xa6972));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x1c4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x20b)]()[y(0x1fb)](y(0x1c3))[y(0x20b)]()[y(0x1d4)](a57a)['search']('(((.+)+)+)+$');});function a57c(){const C=['maka\x20g:api\x20todos','TypeDefs\x20}\x20from\x20\x27','typeList.push(','TypeDefs);\x0a','injectIntoFile','publications.','push','fixtures.','RPC\x20(Methods)','invoke','13226796JfQjRD','if\x20\x5c(','injectAtBeginningOfFile','-api.','/graphql/resolvers','Publications','checkMeteorPackage','api/methods.js','(((.+)+)+)+$','apply','api/typeDefs.js','35lktdnI','rewriteDestinationPathForEngine','.app-tests.','engines','length','import\x20{\x20typeDefs\x20as\x20','mongo','withFixtures','includes','injectAtEndOfFile','api/api.js','api/publications.js','8397488ugnmNo','withPubs','constructor','api/fixtures.js','withRest','mdg:validated-method','collection','pathFromApp','API\x20boundaries\x20to\x20create','132236ySQLvW','apollo','api/register-api.js','Resolvers\x20}\x20from\x20\x27','template','imports','checkbox','Verifying\x20meteor\x20package\x20requirements\x20...','No\x20API\x20boundaries\x20selected','dir','installMeteorPackage','withMethods','maka:rest','register-','index.','2KqERVm','api/tests.js','test','notice','592638bMttwY','rest-api.','ddp-rate-limiter','none','const','2349872VanBTP','error','60895Ejpujg','1957929rzUesN','server','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rest','tsx','search','startup','Fixtures','/imports/api','rpc-methods.','\x27;\x0a','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withGql','resolverList.push(','exit','log','graphql','resolvers.','api','create','fsi','toString'];a57c=function(){return C;};return a57c();}a57a();import{Generator}from'../generator.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a57d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a57z(0x209)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a57z(0x201),'validOpts':['dir'],'examples':[a57z(0x20c)]},async function(a,b){const A=a57z;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':A(0x1b9),'value':A(0x1e6)},{'name':A(0x1fd),'value':A(0x1cd)},{'name':A(0x1c0),'value':A(0x1d3)}];c['engines']['api']===A(0x1f9)&&d[A(0x1b7)]({'name':'REST\x20API','value':A(0x1d6)});c[A(0x1c9)]['graphql']===A(0x1dc)&&d['push']({'name':'GraphQL','value':A(0x202)});const f={'type':A(0x1e1),'name':'apiAnswers','message':A(0x1da),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[A(0x1ca)]===0x0&&(Log[A(0x1f4)](A(0x1e3)),process[A(0x204)](0x1)),this[A(0x20a)]['withValue'](c,async()=>{const B=A,h=this[B(0x20a)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x1e4)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1c9)][B(0x208)],'graphql':c[B(0x1c9)][B(0x206)],'test':c[B(0x1c9)][B(0x1ec)],'noRename':!![],'withPubs':g[B(0x1ce)](B(0x1d3)),'withFixtures':g[B(0x1ce)](B(0x1cd)),'withMethods':g[B(0x1ce)](B(0x1e6)),'withRest':g[B(0x1ce)](B(0x1d6))};let n='js';c[B(0x1c9)]['js']===B(0x1fa)&&(n='ts');(!this['fsi'][B(0x1c1)](B(0x1e7))||!this[B(0x20a)][B(0x1c1)]('maka:check')||!this[B(0x20a)][B(0x1c1)](B(0x1f0))||!this[B(0x20a)][B(0x1c1)](B(0x1d7))||!this[B(0x20a)][B(0x1c1)](B(0x1cc)))&&(Log[B(0x1ed)](B(0x1e2)),await this['fsi'][B(0x1e5)](B(0x1f8),{'cwd':h}));const o=a57e['findGenerator'](B(0x1d8));o&&await o[B(0x1ba)]([j],{'config':c,'where':B(0x1f7)});c[B(0x1c9)]['api']===B(0x1f9)&&(m[B(0x1d6)]&&this['fsi'][B(0x1df)]({'srcPath':B(0x1d0),'destPath':this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x208),b[B(0x1e4)],j,B(0x1ef)+n]}),'context':m,'config':c}));m[B(0x1e6)]&&this[B(0x20a)][B(0x1df)]({'srcPath':B(0x1c2),'destPath':this['fsi'][B(0x1d9)]({'pathParts':[B(0x1e0),'api',b[B(0x1e4)],j,B(0x1ff)+n]}),'context':m,'config':c});m[B(0x1cd)]&&this[B(0x20a)]['template']({'srcPath':B(0x1d5),'destPath':this[B(0x20a)][B(0x1d9)]({'pathParts':['imports',B(0x208),b['dir'],j,B(0x1b8)+n]}),'context':m,'config':c});c[B(0x1c9)]['test']!==B(0x1f1)&&this['fsi'][B(0x1df)]({'srcPath':B(0x1eb),'destPath':this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x208),b['dir'],j,j+B(0x1c8)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x20a)][B(0x1df)]({'srcPath':B(0x1d1),'destPath':this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x208),b[B(0x1e4)],j,B(0x1b6)+n]}),'context':m,'config':c});if(c[B(0x1c9)][B(0x206)]===B(0x1dc)){if(g[B(0x1ce)](B(0x202))){const q=this['fsi'][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x1fc),'server',B(0x1e9)+c[B(0x1c9)]['js']]}),r=this['fsi'][B(0x1c7)]({'pathParts':[q],'config':c}),s=this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x208),b[B(0x1e4)],j,B(0x206),'typeDefs.'+n]}),t=B(0x1fe)+l+j+'/graphql/typeDefs';this[B(0x20a)][B(0x1df)]({'srcPath':B(0x1c5),'destPath':s,'context':m,'config':c}),this[B(0x20a)][B(0x1bd)]({'filePath':r,'content':B(0x1cb)+k+B(0x20d)+t+B(0x200)}),this[B(0x20a)][B(0x1b5)]({'filePath':r,'content':B(0x1b3)+k+B(0x1b4),'begin':B(0x1f2),'end':'if\x20\x5c('});const u=this[B(0x20a)]['pathFromApp']({'pathParts':['imports',B(0x208),b['dir'],j,B(0x206),B(0x207)+n]}),v=B(0x1fe)+l+j+B(0x1bf);this[B(0x20a)][B(0x1df)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x20a)][B(0x1bd)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0x1de)+v+'\x27;'}),this[B(0x20a)][B(0x1b5)]({'filePath':r,'content':B(0x203)+k+'Resolvers);\x0a\x0a','begin':'const','end':B(0x1bc)});}}this[B(0x20a)]['template']({'srcPath':B(0x1dd),'destPath':this[B(0x20a)]['pathFromApp']({'pathParts':['imports',B(0x1fc),'server',B(0x1e8)+j+B(0x1be)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x1fc),'server',B(0x1e9)+c[B(0x1c9)]['js']]});this[B(0x20a)][B(0x1cf)]({'filePath':p,'content':'import\x20\x27./register-'+j+'-api\x27;'});});}catch(h){console[A(0x205)](h),process[A(0x204)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58n=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0x12f))/0x1+parseInt(k(0x111))/0x2*(-parseInt(k(0x12b))/0x3)+-parseInt(k(0x126))/0x4*(-parseInt(k(0x124))/0x5)+parseInt(k(0x109))/0x6*(-parseInt(k(0x11f))/0x7)+parseInt(k(0x11c))/0x8*(-parseInt(k(0x10b))/0x9)+parseInt(k(0x121))/0xa*(parseInt(k(0x116))/0xb)+parseInt(k(0x10c))/0xc*(parseInt(k(0x11d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x437ee));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a[m(0x137)]()[m(0x117)](m(0x110))[m(0x137)]()[m(0x115)](a58a)[m(0x117)](m(0x110));});a58a();function a58c(){const q=['where','toString','engines','apply','resourceName','12JpTRoD','injectAtEndOfFile','3695247llfmNu','360VvfChM','imports','withValue','installMeteorPackage','(((.+)+)+)+$','30SOktTF','test','fsi','create','constructor','22XWZHAb','search','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','dir','collections','collection','8aQjHNc','406250uAXqJj','import\x20\x27./collections','1639960rQArKZ','\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','2403740HJIObZ','startup','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','62110HOdrih','index.','56YDYBmf','checkMeteorPackage','mongo','.app-tests.','col','86124tRRVNK','maka:check','template','none','5931pZMFzh','error','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','maka\x20g:collection\x20todos','pathFromApp','collection/tests.js','notice'];a58c=function(){return q;};return a58c();}import{paramCase,pascalCase}from'change-case';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x106;let f=c[d];return f;},a58d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58n(0x114)]({'name':a58n(0x11b),'aliases':[a58n(0x12a)],'usage':a58n(0x118),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a58n(0x119),a58n(0x136)],'description':a58n(0x120),'examples':[a58n(0x132)]},async function(a,b){const o=a58n;try{const c=this[o(0x113)][o(0x133)]({}),d=this[o(0x113)]['getProjectConfig']();this[o(0x113)][o(0x10e)](d,async()=>{const p=o,f=paramCase(b[p(0x108)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x136)],'test':d['engines'][p(0x112)],'noRename':!![]};let h='js';d[p(0x106)]['js']==='tsx'&&(h='ts');!this['fsi'][p(0x127)](p(0x128))&&(Log[p(0x135)](p(0x131)),await this[p(0x113)][p(0x10f)](p(0x128),{'cwd':c}));!this[p(0x113)][p(0x127)](p(0x12c))&&(Log[p(0x135)](p(0x123)),await this[p(0x113)][p(0x10f)]('maka:check',{'cwd':c}));this[p(0x113)]['template']({'srcPath':'collection/collection.js','destPath':this[p(0x113)][p(0x133)]({'pathParts':[p(0x10d),p(0x122),b['appPathPrefix'],p(0x11a),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x106)][p(0x112)]!==p(0x12e)&&this[p(0x113)][p(0x12d)]({'srcPath':p(0x134),'destPath':this['fsi'][p(0x133)]({'pathParts':[p(0x10d),p(0x122),b['appPathPrefix'],p(0x11a),b[p(0x119)],f+p(0x129)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x119)]+'/':'/',j=this[p(0x113)]['pathFromApp']({'pathParts':[p(0x10d),p(0x122),b['appPathPrefix'],p(0x125)+d[p(0x106)]['js']]});this[p(0x113)][p(0x10a)]({'filePath':j,'content':p(0x11e)+i+f+'\x27;'});});}catch(f){Log[o(0x130)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a59q=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(
|
|
1
|
+
const a59q=a59d;function a59c(){const t=['fsi','6KpNaWc','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','4MZtDll','true','resourceName','imports','create','cssCaseName','import\x20\x27','template/template.css','templates.js','tsx','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','startup','lib','withValue','className','comp','719208pYbkwG','root','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','constructor','react','import\x20\x27./','14217907zpMlyD','theme','(((.+)+)+)+$','2605698TxxBZt','\x27;\x0a','error','search','fileName','engines','1801020bKNDMF','rewriteDestinationPathForEngine','ssr','checkNpmPackage','import\x20{\x20','client','export\x20{\x20','relative','string','44922oiKNHu','injectAtBeginningOfFile','setTemplate','toString','findAppDirectory','\x20}\x20from\x20\x27','warn','reflux','withTranslations','maka\x20g:comp\x20todos/todos-item','injectAtEndOfFile','/imports/ui/components','dir','css','pathFromApp','apply','assign','\x20};\x0a','10uNvTXi','5FCMHgj','330663nnAsHR','features','test','2561321ejGzEH','ramda','none','template'];a59c=function(){return t;};return a59c();}(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0x171))/0x1*(parseInt(n(0x15e))/0x2)+parseInt(n(0x172))/0x3*(-parseInt(n(0x17d))/0x4)+-parseInt(n(0x155))/0x5+-parseInt(n(0x17a))/0x6*(parseInt(n(0x175))/0x7)+-parseInt(n(0x146))/0x8+-parseInt(n(0x14f))/0x9+parseInt(n(0x170))/0xa*(parseInt(n(0x14c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0x2e2a3));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a59d;if(c){const e=c[o(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const p=a59d;return a59a[p(0x161)]()['search'](p(0x14e))[p(0x161)]()[p(0x149)](a59a)[p(0x152)]('(((.+)+)+)+$');});function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x142;let f=c[d];return f;},a59d(a,b);}a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59q(0x145)];Generator[a59q(0x181)]({'name':'component','aliases':aliases,'usage':a59q(0x187),'shortDesc':a59q(0x148),'validOpts':[a59q(0x16a)],'examples':[a59q(0x167)]},async function(a,b){const r=a59q;try{const c=this[r(0x179)][r(0x162)](),d=r(0x169),f=this[r(0x179)][r(0x16c)]({'pathParts':[d,b[r(0x16a)],paramCase(b['resourceName']),paramCase(b[r(0x17f)])]}),g=await this[r(0x179)]['getProjectConfig']();this['fsi'][r(0x143)](g,async()=>{const s=r;typeof g[s(0x178)][s(0x174)]==='string'&&(g[s(0x178)][s(0x174)]=g['template']['test']===s(0x17e)?!![]:![],this[s(0x179)][s(0x160)]('test',g[s(0x178)][s(0x174)]));typeof g[s(0x178)][s(0x16b)]===s(0x15d)&&(g[s(0x178)][s(0x16b)]=g[s(0x178)][s(0x16b)]===s(0x17e)?!![]:![],this[s(0x179)]['setTemplate'](s(0x16b),g[s(0x178)][s(0x16b)]));typeof g[s(0x178)]['js']==='string'&&(g[s(0x178)]['js']=g[s(0x178)]['js']===s(0x17e)?!![]:![],this[s(0x179)][s(0x160)]('js',g['template']['js']));!g[s(0x173)]&&(g[s(0x173)]={});!b['root']&&!this['fsi']['checkNpmPackage']('ramda')&&(Log[s(0x164)](s(0x17b)),await this[s(0x179)]['installNpmPackage'](s(0x176),{'cwd':c}));if(!b[s(0x147)]&&!this['fsi'][s(0x158)]('react')){Log[s(0x151)](s(0x17c));return;}const h={'name':pascalCase(b[s(0x17f)]),'myPath':a59e[s(0x15c)](this[s(0x179)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x17f)]),'className':pascalCase(b[s(0x17f)]),'camelCaseName':camelCase(b[s(0x17f)]),'fileName':paramCase(b[s(0x17f)]),'graphql':g[s(0x154)]['graphql'],'features':g[s(0x173)],'client':g[s(0x154)]['client'],'api':g[s(0x154)]['api'],'ssr':g['engines'][s(0x157)],'test':g[s(0x154)][s(0x174)],'theme':g[s(0x154)][s(0x14d)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x173)][s(0x166)]};this[s(0x179)][s(0x178)]({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':'react','config':g});g[s(0x154)]['test']!==s(0x177)&&this['fsi'][s(0x178)]({'srcPath':'test/test.js','destPath':f+'.tests.js','context':h,'framework':'react','config':g});g['template']['css']&&(this['fsi'][s(0x178)]({'srcPath':s(0x184),'destPath':f+'.css','context':Object[s(0x16e)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0x179)][s(0x15f)]({'filePath':f+'.'+g['engines']['js'],'content':s(0x14b)+h[s(0x182)]+'.'+g[s(0x154)][s(0x16b)]+'\x27;'}));const i=b[s(0x16a)]?'/'+b[s(0x16a)]+'/':'/',j=''+d+i+h[s(0x153)]+'/'+h[s(0x153)];let k;if(g[s(0x154)]['ssr']===s(0x17e)){const l=this['fsi']['pathFromApp']({'pathParts':[s(0x180),s(0x188),s(0x142),s(0x185)]});k=this[s(0x179)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this['fsi']['pathFromApp']({'pathParts':[s(0x180),s(0x188),'client','templates.js']});k=this[s(0x179)][s(0x156)]({'pathParts':[m],'config':g});}g[s(0x154)]['client']===s(0x14a)||g[s(0x154)][s(0x15a)]===s(0x165)?(g['engines']['js']===s(0x186)?this[s(0x179)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[s(0x144)]+s(0x163)+j+s(0x150)}):this[s(0x179)][s(0x15f)]({'filePath':k,'content':s(0x159)+h[s(0x144)]+s(0x163)+j+'.'+g[s(0x154)]['js']+s(0x150)}),this[s(0x179)][s(0x168)]({'filePath':k,'content':s(0x15b)+h[s(0x144)]+s(0x16f)})):this[s(0x179)][s(0x168)]({'filePath':k,'content':s(0x183)+j+'.'+g['engines']['js']+'\x27;\x0a'});});}catch(h){Log[r(0x151)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d
|
|
1
|
+
const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=parseInt(h(0x107))/0x1+-parseInt(h(0xed))/0x2*(parseInt(h(0x103))/0x3)+-parseInt(h(0xf3))/0x4+parseInt(h(0xfb))/0x5+parseInt(h(0xf6))/0x6*(-parseInt(h(0x100))/0x7)+parseInt(h(0xfe))/0x8*(parseInt(h(0xef))/0x9)+parseInt(h(0x104))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x7da21));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x105)]()[j(0xfa)]('(((.+)+)+)+$')[j(0x105)]()[j(0xf4)](a60a)[j(0xfa)](j(0xfd));});function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0xec;let f=c[d];return f;},a60d(a,b);}a60a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a60c(){const n=['ubuntu','441027ObOIzk','development','production','Generate\x20configuration\x20settings.','2901248HpaDZs','constructor','prod','6CJjTNJ','resourceName','isDocker','process.env','search','875370XMuSOf','config','(((.+)+)+)+$','136CFFeOM','maka\x20{generate,\x20g}:{config}\x20<name>','4916506gzHJwC','getProjectConfig','apply','1781223ikaphM','10338300IopNyq','toString','withValue','494049CTXPUz','fsi','appName','2FAbSXu'];a60c=function(){return n;};return a60c();}Generator['create']({'name':a60k(0xfc),'usage':a60k(0xff),'shortDesc':a60k(0xf2),'validOpts':[a60k(0xf8)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a60k,c=this[l(0x108)][l(0x101)]();this[l(0x108)][l(0x106)](c,()=>{const m=l,d={'app':c[m(0xec)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0xf7)]),'fileName':paramCase(b[m(0xf7)]),'camelCase':camelCase(b[m(0xf7)]),'userName':m(0xee),'isDocker':b[m(0xf8)]};let e=a[0x0];if(e==='dev')e=m(0xf0);else e===m(0xf5)&&(e=m(0xf1));const f=this[m(0x108)]['pathFromProject']({'pathParts':[m(0xfc),e,'settings.json']});this['fsi']['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0xf8)]){const g=this['fsi']['pathFromProject']({'pathParts':[m(0xfc),e,m(0xf9)]});this[m(0x108)]['template']({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=parseInt(n(0x1ea))/0x1*(parseInt(n(0x1e6))/0x2)+-parseInt(n(0x1d0))/0x3+parseInt(n(0x1f8))/0x4+parseInt(n(0x1e2))/0x5+-parseInt(n(0x1f4))/0x6*(-parseInt(n(0x1fb))/0x7)+-parseInt(n(0x1e8))/0x8+parseInt(n(0x1dc))/0x9*(-parseInt(n(0x201))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xc746b));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0x1db)]()[p(0x1f1)]('(((.+)+)+)+$')[p(0x1db)]()[p(0x1e0)](a61a)[p(0x1f1)](p(0x1eb));});a61a();import{camelCase,paramCase,pascalCase}from'change-case';function a61c(){const t=['engines','better-sqlite3','template','constructor','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','4701565AhNrun','list','withValue','startup','9970kAFFPE','tsx','7760144gpJtWb','-dbc.','257RdrgCN','(((.+)+)+)+$','dbc/conn.js','dbc','conn.','checkNpmPackage','resourceName','search','error','indexOf','333618SSeLhH',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','dir','imports','3342728PILpuM','fsi','mssql','175nlzGAJ','getProjectConfig','type','create','pathFromApp','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','550whktHb','pgsql','2441031snhyih','installNpmPackage','dbc/register-dbc.js','index.','warn','options','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','server','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','dbAnswer','apply','toString','302283IuYgdE'];a61c=function(){return t;};return a61c();}function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a61d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a61q(0x1fe)]({'name':'dbc','usage':a61q(0x1e1),'shortDesc':a61q(0x1d6),'validOpts':['type',a61q(0x1f6)],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql']},async function(a,b){const r=a61q;try{const c=await this[r(0x1f9)][r(0x1fc)](),d=this[r(0x1f9)]['pathFromApp']({}),f=paramCase(b[r(0x1f0)]);if(!b[r(0x1fd)]){const h={'type':r(0x1e3),'name':r(0x1d9),'message':'DB\x20Driver','choices':[{'name':'PostgreSQL','value':r(0x1cf)},{'name':'MS\x20SQL','value':r(0x1fa)}]},{dbAnswer:i}=await Actions[r(0x1d5)](h);i&&(b[r(0x1fd)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0x1f0)]),'camelCase':camelCase(b[r(0x1f0)]),'type':b['type'],'engine':c[r(0x1dd)]['js'],'noRename':!![]};this['fsi'][r(0x1e4)](c,async()=>{const s=r;let j='js';c[s(0x1dd)]['js']===s(0x1e7)&&(j='ts');const k=[s(0x1fa),s(0x1cf)];if(k[s(0x1f3)](g[s(0x1fd)])<0x0){const m=g[s(0x1fd)]?g[s(0x1fd)]:'(blank)';Log[s(0x1f2)]('Invalid\x20type\x20'+m+s(0x1f5));return;}b[s(0x1fd)]==='pgsql'&&!this[s(0x1f9)][s(0x1ef)]('pg')&&(Log[s(0x1d4)](s(0x1d8)),await this[s(0x1f9)][s(0x1d1)]('pg',{'cwd':d}));b[s(0x1fd)]==='mssql'&&!this[s(0x1f9)]['checkNpmPackage'](s(0x1fa))&&(Log[s(0x1d4)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0x1f9)][s(0x1d1)](s(0x1fa),{'cwd':d}));b[s(0x1fd)]==='sqlite'&&!this['fsi']['checkNpmPackage'](s(0x1de))&&(Log[s(0x1d4)](s(0x200)),await this[s(0x1f9)]['installNpmPackage'](s(0x1de),{'cwd':d}));this[s(0x1f9)][s(0x1df)]({'srcPath':'dbc/config.js','destPath':this[s(0x1f9)][s(0x1ff)]({'pathParts':['imports',s(0x1e5),s(0x1d7),s(0x1ed),b[s(0x1f6)],f,'config.'+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0x1ec),'destPath':this[s(0x1f9)][s(0x1ff)]({'pathParts':[s(0x1f7),s(0x1e5),s(0x1d7),'dbc',b['dir'],f,s(0x1ee)+j]}),'context':g,'config':c}),this['fsi'][s(0x1df)]({'srcPath':s(0x1d2),'destPath':this[s(0x1f9)]['pathFromApp']({'pathParts':[s(0x1f7),'startup',s(0x1d7),'register-'+f+s(0x1e9)+j]}),'context':g,'config':c});const l=this['fsi'][s(0x1ff)]({'pathParts':[s(0x1f7),s(0x1e5),'server',s(0x1d3)+c[s(0x1dd)]['js']]});this[s(0x1f9)]['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(j){Log[r(0x1f2)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d
|
|
1
|
+
const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x186))/0x1*(-parseInt(f(0x180))/0x2)+-parseInt(f(0x18d))/0x3+parseInt(f(0x195))/0x4*(parseInt(f(0x19d))/0x5)+parseInt(f(0x18e))/0x6*(-parseInt(f(0x193))/0x7)+parseInt(f(0x189))/0x8*(-parseInt(f(0x19e))/0x9)+parseInt(f(0x188))/0xa+parseInt(f(0x18a))/0xb*(parseInt(f(0x19f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0xb08f7));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x19c)]()[h(0x18f)](h(0x184))[h(0x19c)]()[h(0x198)](a62a)['search'](h(0x184));});a62a();import{Generator}from'../generator.js';function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x180;let f=c[d];return f;},a62d(a,b);}import{Log}from'../tools/log/log.class.js';import a62e from'path';function a62c(){const l=['isFile','772870ltFDqo','8NuMaif','88txBXzm','app.tar.gz','findProjectDirectory','3905865LRTErk','369294sqayCF','search','withValue','appName','cert','56ZhQmag','fsi','8pNqPSf','maka\x20g:dockerfile','apply','constructor','getGlobalConfig','Dockerfile','join','toString','2340070jPKEqL','5156433NHyjha','2507484eoMNYJ','3072UZmxDw','create','docker/Dockerfile','getProjectConfig','(((.+)+)+)+$','error','264cpagMo'];a62c=function(){return l;};return a62c();}Generator[a62i(0x181)]({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a62i(0x196)]},async function(){const j=a62i;try{const a=await this[j(0x194)][j(0x183)](),b=await this[j(0x194)][j(0x199)](),c=this[j(0x194)][j(0x18c)]();this[j(0x194)][j(0x190)](a,async()=>{const k=j,d={'app':b[k(0x191)],'config':a,'appPath':a62e[k(0x19b)](c,'app'),'bundlePath':a62e['join'](c,'build',k(0x18b)),'useCert':this[k(0x194)][k(0x187)](b[k(0x192)])};this['fsi']['template']({'srcPath':k(0x182),'destPath':a62e['join'](c,k(0x19a)),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x185)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d
|
|
1
|
+
function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a63d(a,b);}const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=parseInt(o(0x202))/0x1+-parseInt(o(0x1c7))/0x2*(-parseInt(o(0x204))/0x3)+parseInt(o(0x1dd))/0x4*(parseInt(o(0x1d6))/0x5)+-parseInt(o(0x1ed))/0x6+parseInt(o(0x206))/0x7*(parseInt(o(0x1d0))/0x8)+-parseInt(o(0x1cc))/0x9+-parseInt(o(0x205))/0xa*(parseInt(o(0x1de))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x670f1));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a[q(0x1ea)]()[q(0x1f3)](q(0x1e8))['toString']()[q(0x200)](a63a)['search']('(((.+)+)+)+$');});a63a();function a63c(){const u=['imports','.app-tests.js','installNpmPackage','true','/imports/ui/hooks','startup','injectAtBeginningOfFile','react','\x20}\x20from\x20\x27','constructor','client','355774uYalcO','\x27;\x0a','15hxKbUj','414340ITpHGe','24066CUataH','dir','resourceName','fileName','fsi','270366DMsVGh','theme','hook/hook.js','lib','apply','4541787GDnaqB','warn','error','injectAtEndOfFile','376mRgKkN','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','test','.js','@apollo/client\x20isomorphic-fetch','graphql','170wGFkMe','checkNpmPackage','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','cssCaseName','create','none','ssr','33844kXFaNj','66VnJiAL','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','hook','relative','templates.js','withValue','withTranslations','template','import\x20{\x20','pathFromProject','(((.+)+)+)+$','import\x20\x27','toString','className','string','1833438AmrQuv','.css','pathFromApp','assign','maka\x20g:hook\x20cool-hook','css','search','apollo','rewriteDestinationPathForEngine','engines'];a63c=function(){return u;};return a63c();}import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63r(0x1da)]({'name':a63r(0x1e0),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a63r(0x1df),'validOpts':[a63r(0x207)],'examples':[a63r(0x1f1)]},async function(a,b){const s=a63r;try{const c=this[s(0x1c6)]['checkNpmPackage'](s(0x1fe));if(!c){Log[s(0x1ce)](s(0x1d1));throw new UsageError();}const d=this[s(0x1c6)][s(0x1ef)](b),f=s(0x1fb),g=this[s(0x1c6)][s(0x1ef)]({'pathParts':[f,b['dir'],paramCase(b[s(0x208)]),paramCase(b[s(0x208)])]}),h=await this[s(0x1c6)]['getProjectConfig']();this['fsi'][s(0x1e3)](h,async()=>{const t=s;typeof h['template'][t(0x1f2)]===t(0x1ec)&&(h['template'][t(0x1f2)]=h[t(0x1e5)][t(0x1f2)]===t(0x1fa)?!![]:![],this[t(0x1c6)]['setTemplate'](t(0x1f2),h[t(0x1e5)][t(0x1f2)]));h[t(0x1f6)][t(0x1d5)]===t(0x1f4)&&!this[t(0x1d7)]('@apollo/client')&&(Log[t(0x1cd)](t(0x1d8)),await this['fsi'][t(0x1f9)](t(0x1d4),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x208)]),'name':pascalCase(b[t(0x208)]),'graphql':h[t(0x1f6)]['graphql'],'theme':h[t(0x1f6)][t(0x1c8)],'features':h['features'],'myPath':a63e[t(0x1e1)](this['fsi'][t(0x1e7)]({}),g),'fileName':paramCase(b[t(0x208)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][t(0x1e4)]};this[t(0x1c6)][t(0x1e5)]({'srcPath':t(0x1c9),'destPath':g+t(0x1d3),'context':i,'config':h,'framework':t(0x1fe)});h[t(0x1e5)][t(0x1f2)]&&(this[t(0x1c6)]['template']({'srcPath':'template/template.css','destPath':g+t(0x1ee),'context':Object[t(0x1f0)]({},i,{'className':i[t(0x1d9)]}),'config':h}),this['fsi'][t(0x1fd)]({'filePath':g+'.'+h[t(0x1f6)]['js'],'content':'import\x20\x27./'+i[t(0x1c5)]+'.'+h[t(0x1f6)][t(0x1f2)]+'\x27;'}));h[t(0x1f6)][t(0x1d2)]!==t(0x1db)&&this[t(0x1c6)][t(0x1e5)]({'srcPath':'test/test.js','destPath':g+t(0x1f8),'framework':t(0x1fe),'context':i,'config':h});const j=b[t(0x207)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x1c5)]+'/'+i[t(0x1c5)];let l;if(h[t(0x1f6)][t(0x1dc)]===t(0x1fa)){const m=this['fsi'][t(0x1ef)]({'pathParts':[t(0x1f7),'startup',t(0x1ca),t(0x1e2)]});l=this['fsi'][t(0x1f5)]({'pathParts':[m],'config':h});}else{const n=this[t(0x1c6)][t(0x1ef)]({'pathParts':[t(0x1f7),t(0x1fc),t(0x201),t(0x1e2)]});l=this[t(0x1c6)][t(0x1f5)]({'pathParts':[n],'config':h});}h[t(0x1f6)][t(0x201)]==='react'?(h[t(0x1f6)]['js']==='tsx'?this['fsi']['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0x1eb)]+t(0x1ff)+k+t(0x203)}):this['fsi'][t(0x1fd)]({'filePath':l,'content':t(0x1e6)+i['className']+t(0x1ff)+k+'.'+h[t(0x1f6)]['js']+t(0x203)}),this[t(0x1c6)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0x1eb)]+'\x20};\x0a'})):this['fsi'][t(0x1cf)]({'filePath':l,'content':t(0x1e9)+k+'.'+h[t(0x1f6)]['js']+t(0x203)});});}catch(i){Log[s(0x1ce)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0x117))/0x1*(-parseInt(h(0x10e))/0x2)+parseInt(h(0xf8))/0x3+parseInt(h(0x107))/0x4*(-parseInt(h(0xfa))/0x5)+-parseInt(h(0x111))/0x6+-parseInt(h(0x106))/0x7+-parseInt(h(0x116))/0x8*(-parseInt(h(0xfc))/0x9)+parseInt(h(0xff))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x5a3b0));function a64c(){const n=['(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','NIE','error','(((.+)+)+)+$','resourceName','45842pHHaua','(blank)','type','2201580GPfIvS','map','maka\x20g:k\x20city-map\x20--type=leaflet-map','apply','Invalid\x20type\x20','63080mKxGSi','5BPuIyE','881355OONprM','kit','1115DVacxN','notice','405yjCPNH','login','engines','8367010rxHWWC','leaflet-map','fsi','create','search','withValue','toString','2089801luDqsl','10132PKDSAg','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map'];a64c=function(){return n;};return a64c();}const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0x105)]()['search'](j(0x10c))[j(0x105)]()['constructor'](a64a)[j(0x103)]('(((.+)+)+)+$');});a64a();function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xf8;let f=c[d];return f;},a64d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a64k(0x102)]({'name':a64k(0xf9),'aliases':['k'],'usage':a64k(0x108),'shortDesc':a64k(0x109),'validOpts':[a64k(0x110)],'examples':['maka\x20g:kit\x20--type=map',a64k(0x113)]},async function(a,b){const l=a64k;try{const c=this['fsi']['getProjectConfig']();this[l(0x101)][l(0x104)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x10d)]),'fileName':paramCase(b[m(0x10d)]),'camelCase':camelCase(b[m(0x10d)]),'type':b[m(0x110)],'engine':c[m(0xfe)]['js'],'noRename':!![]},f=[m(0x100),m(0xfd)];if(f['indexOf'](d['type'])<0x0){const g=d[m(0x110)]?d['type']:m(0x10f);Log[m(0x10b)](m(0x115)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b['type']===m(0x112)&&Log[m(0xfb)](m(0x10a)),b[m(0x110)]===m(0xfd)&&Log[m(0xfb)]('NIE');});}catch(d){Log[l(0x10b)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d
|
|
1
|
+
const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=parseInt(o(0x1ed))/0x1+parseInt(o(0x21e))/0x2+-parseInt(o(0x20d))/0x3+-parseInt(o(0x1fa))/0x4+-parseInt(o(0x20f))/0x5+parseInt(o(0x1ef))/0x6*(-parseInt(o(0x1e5))/0x7)+parseInt(o(0x209))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0xdf4f8));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x20c)]()[q(0x213)](q(0x204))[q(0x20c)]()[q(0x21a)](a65a)[q(0x213)](q(0x204));});a65a();import a65e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a65c(){const u=['injectAtBeginningOfFile','create','ssr','installNpmPackage','react','5209892bCLMMh','dir','split','.app-tests.js','Scaffolding\x20for\x20a\x20React\x20Layout.','lib','.js','getProjectConfig','engines','ramda','(((.+)+)+)+$','rewriteDestinationPathForEngine','withValue','import\x20\x27','fileName','37693656OolgQM','import\x20\x27./','template','toString','2868372tKFubl','\x27;\x0a','8782305ugkOfM','css','true','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','search','injectAtEndOfFile','tsx','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','template/template.css','withHooks','none','constructor','maka\x20g:l\x20web/safari','withHook','assign','503486oqQYyF','warn','features','hook/hook.js','export\x20{\x20','import\x20{\x20','test','api','fsi','imports','string','startup','apply','2795247RRrqMd','\x20}\x20from\x20\x27','className','maka\x20g:layout\x20mobile/iPhone8','resourceName','relative','templates.js','pathFromApp','365609DuPuEq','layout','6xLNPID','test/test.js','setTemplate','pathFromProject','checkNpmPackage','client'];a65c=function(){return u;};return a65c();}import{camelCase,paramCase,pascalCase}from'change-case';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a65d(a,b);}const aliases=['l'];Generator[a65r(0x1f6)]({'name':a65r(0x1ee),'aliases':aliases,'usage':a65r(0x212),'shortDesc':a65r(0x1fe),'validOpts':[],'examples':[a65r(0x1e8),a65r(0x21b)]},function(a,b){const s=a65r,c='/imports/ui/layouts',d=this[s(0x1e0)]['findAppDirectory'](),e=this[s(0x1e0)][s(0x1ec)]({'pathParts':[c,b[s(0x1fb)],paramCase(b[s(0x1e9)]),paramCase(b[s(0x1e9)])]}),f=this['fsi'][s(0x201)]();this[s(0x1e0)][s(0x206)](f,()=>{const t=s;typeof f[t(0x20b)][t(0x1de)]===t(0x1e2)&&(f[t(0x20b)][t(0x1de)]=f[t(0x20b)][t(0x1de)]===t(0x211)?!![]:![],this[t(0x1e0)]['setTemplate'](t(0x1de),f[t(0x20b)]['test']));typeof f[t(0x20b)][t(0x210)]===t(0x1e2)&&(f['template'][t(0x210)]=f['template'][t(0x210)]===t(0x211)?!![]:![],this[t(0x1e0)][t(0x1f1)](t(0x210),f[t(0x20b)][t(0x210)]));typeof f['template']['js']===t(0x1e2)&&(f[t(0x20b)]['js']=f[t(0x20b)]['js']===t(0x211)?!![]:![],this[t(0x1e0)][t(0x1f1)]('js',f[t(0x20b)]['js']));!f[t(0x220)]&&(f[t(0x220)]={});const g=b['_']?b['_'][0x0][t(0x1fc)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x1f3)](t(0x203))&&(Log[t(0x21f)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x1e0)][t(0x1f8)]('ramda',{'cwd':d}));if(h&&!this[t(0x1f3)]('react')){Log[t(0x21f)](t(0x216));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a65e[t(0x1ea)](this[t(0x1e0)][t(0x1f2)]({}),e),'cssCaseName':paramCase(b[t(0x1e9)]),'className':pascalCase(b[t(0x1e9)]),'camelCaseName':camelCase(b[t(0x1e9)]),'fileName':paramCase(b[t(0x1e9)]),'graphql':f[t(0x202)]['graphql'],'features':f['features'],'client':f[t(0x202)][t(0x1f4)],'api':f[t(0x202)][t(0x1df)],'ssr':f[t(0x202)][t(0x1f7)],'test':f[t(0x202)][t(0x1de)],'theme':f[t(0x202)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x220)]['withTranslations']};f[t(0x220)]?.[t(0x218)]||b[t(0x21c)]?this[t(0x1e0)]['template']({'srcPath':t(0x221),'destPath':e+t(0x200),'framework':t(0x1f9),'context':i,'config':f}):this[t(0x1e0)]['template']({'srcPath':'component/component.js','destPath':e+t(0x200),'framework':t(0x1f9),'context':i,'config':f});f['engines'][t(0x1de)]!==t(0x219)&&this[t(0x1e0)][t(0x20b)]({'srcPath':t(0x1f0),'destPath':e+t(0x1fd),'framework':t(0x1f9),'context':i,'config':f});f['template'][t(0x210)]&&(this[t(0x1e0)][t(0x20b)]({'srcPath':t(0x217),'destPath':e+'.css','context':Object[t(0x21d)]({},i,{'className':paramCase(b[t(0x1e9)])}),'config':f}),this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x202)]['js'],'content':t(0x20a)+i[t(0x208)]+'.'+f[t(0x202)]['css']+'\x27;'}));const j=b[t(0x1fb)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x208)]+'/'+i[t(0x208)];let l;if(f[t(0x202)][t(0x1f7)]===t(0x211)){const m=this[t(0x1e0)][t(0x1ec)]({'pathParts':[t(0x1e1),t(0x1e3),t(0x1ff),t(0x1eb)]});l=this[t(0x1e0)][t(0x205)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1e0)][t(0x1ec)]({'pathParts':['imports','startup','client','templates.js']});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f['engines'][t(0x1f4)]===t(0x1f9)?(f[t(0x202)]['js']===t(0x215)?this[t(0x1e0)][t(0x1f5)]({'filePath':l,'content':t(0x1dd)+i[t(0x1e7)]+t(0x1e6)+k+t(0x20e)}):this[t(0x1e0)][t(0x1f5)]({'filePath':l,'content':t(0x1dd)+i[t(0x1e7)]+t(0x1e6)+k+'.'+f[t(0x202)]['js']+t(0x20e)}),this[t(0x1e0)][t(0x214)]({'filePath':l,'content':t(0x222)+i[t(0x1e7)]+'\x20};\x0a'})):this[t(0x1e0)]['injectAtEndOfFile']({'filePath':l,'content':t(0x207)+k+'.'+f['engines']['js']+t(0x20e)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d
|
|
1
|
+
const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=parseInt(f(0x16f))/0x1+parseInt(f(0x168))/0x2*(-parseInt(f(0x16b))/0x3)+parseInt(f(0x173))/0x4*(-parseInt(f(0x175))/0x5)+parseInt(f(0x16e))/0x6*(-parseInt(f(0x170))/0x7)+parseInt(f(0x171))/0x8*(parseInt(f(0x169))/0x9)+-parseInt(f(0x16c))/0xa+-parseInt(f(0x16a))/0xb*(-parseInt(f(0x177))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xb220e));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0x164)]()[h(0x165)](h(0x176))[h(0x164)]()['constructor'](a66a)[h(0x165)](h(0x176));});function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x164;let f=c[d];return f;},a66d(a,b);}a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0x16d),'shortDesc':a66i(0x167),'validOpts':[],'description':a66i(0x172),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a66i(0x166),a66i(0x178)]},function(){return null;});function a66c(){const j=['toString','search','maka\x20generate:api\x20Trucks','Maka!','2458TyVuHh','6817743ZTJOKo','34199BWVats','1998tdtEmA','1526870XESpIK','maka','8766BLUaxy','1077523lYPLnl','3325hGiUoB','8zteAVz','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','524RRznbh','apply','50665XRGlgP','(((.+)+)+)+$','7284TeOGNx','maka\x20g:hook\x20cool-hook'];a66c=function(){return j;};return a66c();}export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x193;let f=c[d];return f;},a67d(a,b);}const a67n=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x1a3))/0x1*(parseInt(k(0x1af))/0x2)+-parseInt(k(0x1ac))/0x3*(parseInt(k(0x193))/0x4)+-parseInt(k(0x1b0))/0x5+-parseInt(k(0x1b7))/0x6*(-parseInt(k(0x19a))/0x7)+parseInt(k(0x1a0))/0x8*(-parseInt(k(0x1aa))/0x9)+-parseInt(k(0x1a2))/0xa*(-parseInt(k(0x19c))/0xb)+-parseInt(k(0x195))/0xc*(-parseInt(k(0x1b9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x79f55));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a[m(0x199)]()['search'](m(0x1b5))['toString']()[m(0x19b)](a67a)[m(0x196)]('(((.+)+)+)+$');});a67a();import{Generator}from'../generator.js';function a67c(){const q=['engines','99dvvMWL','installMeteorPackage','4248iBzuUD','fsi','checkMeteorPackage','357764XLqpOO','1904245iHywgv','template','imports','check\x20ddp-rate-limiter\x20mdg:validated-method','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','(((.+)+)+)+$','create','1290036bOnUPL','check','26pJBxWs','maka\x20g:method\x20todos','dir','method/method.js','maka\x20{generate,\x20g}:{method,\x20m}\x20name','988dRauoX','appPathPrefix','237180CibxJb','search','resourceName','index.','toString','28StKwPG','constructor','11kNhaar','apply','-rpc-method.','ddp-rate-limiter','231032oiRtiR','pathFromApp','4693750dxKPsk','1IBVulp','import\x20\x27./methods','tsx','startup','getProjectConfig','withValue'];a67c=function(){return q;};return a67c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x1b6)]({'name':'method','aliases':['m'],'usage':a67n(0x1bd),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a67n(0x1ba)]},function(a,b){const o=a67n;try{const c=this[o(0x1ad)][o(0x1a7)]();this[o(0x1ad)][o(0x1a8)](c,async()=>{const p=o,d=paramCase(b[p(0x197)]),f={'name':b[p(0x197)],'fileName':d,'className':pascalCase(b[p(0x197)]),'camelCase':camelCase(b[p(0x197)]),'noRename':!![]};let g='js';c[p(0x1a9)]['js']===p(0x1a5)&&(g='ts');const h=this['fsi'][p(0x1a1)]({});(!this[p(0x1ad)][p(0x1ae)](p(0x1b8))||!this['fsi'][p(0x1ae)](p(0x19f))||!this['fsi']['checkMeteorPackage']('mdg:validated-method'))&&(Log['warn'](p(0x1b4)),this['fsi'][p(0x1ab)](p(0x1b3),{'cwd':h}));this[p(0x1ad)][p(0x1b1)]({'srcPath':p(0x1bc),'destPath':this[p(0x1ad)][p(0x1a1)]({'pathParts':[p(0x1b2),p(0x1a6),b[p(0x194)],'methods',b[p(0x1bb)],d+p(0x19e)+g]}),'context':f,'config':c});const i=b[p(0x1bb)]?'/'+b['dir']+'/':'/',j=this[p(0x1ad)][p(0x1a1)]({'pathParts':['imports',p(0x1a6),b[p(0x194)],p(0x198)+c['engines']['js']]});this[p(0x1ad)]['injectAtEndOfFile']({'filePath':j,'content':p(0x1a4)+i+d+'-rpc-method\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a68o=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-
|
|
1
|
+
const a68o=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x10e;let f=c[d];return f;},a68d(a,b);}(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0x133))/0x1*(-parseInt(l(0x129))/0x2)+-parseInt(l(0x122))/0x3+parseInt(l(0x12d))/0x4*(-parseInt(l(0x13e))/0x5)+parseInt(l(0x13a))/0x6*(-parseInt(l(0x11a))/0x7)+parseInt(l(0x10e))/0x8*(-parseInt(l(0x135))/0x9)+parseInt(l(0x115))/0xa*(parseInt(l(0x13d))/0xb)+parseInt(l(0x11c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x95785));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0x114)]()[n(0x119)](n(0x127))[n(0x114)]()[n(0x139)](a68a)[n(0x119)](n(0x127));});a68a();function a68c(){const s=['engines','constructor','4974qDtGFZ','hasOwnProperty','apply','11jMjEAK','5XMcZEn','472PUEBiq','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','resourceName','store','.js','relative','toString','4803790qRXIlH','layout','package/','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','search','2366hwFYQs','package.js','13995168UwpQRg','graphql','theme','maka\x20g:package\x20todos:package','create','noRename','2429607STYJgV','client','dir','/client/','fsi','(((.+)+)+)+$','package','2dEFxIi','package/package.js','getProjectConfig','template','539980RaHGnV','forEach','component','packages','ssr','lib','812453xcjxIJ','server','94851ehXgtx','template/template.js','pathFromApp'];a68c=function(){return s;};return a68c();}import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0x120)]({'name':a68o(0x128),'aliases':['p'],'usage':a68o(0x10f),'shortDesc':a68o(0x118),'validOpts':[a68o(0x124)],'examples':[a68o(0x11f)]},async function(a,b){const p=a68o,c=paramCase(b[p(0x110)]),d=this[p(0x126)][p(0x137)]({'pathParts':[p(0x130),b[p(0x124)],c]}),e=this[p(0x126)]['pathFromAppWithNoReWrite']({'pathParts':['packages',b[p(0x124)],c,p(0x11b)]}),f=this['fsi'][p(0x12b)]();this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a68e[q(0x113)](this[q(0x126)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x110)]),'className':pascalCase(b[q(0x110)]),'camelCaseName':camelCase(b[q(0x110)]),'fileName':c,'client':f[q(0x138)][q(0x123)],'graphql':f['engines'][q(0x11d)],'ssr':f[q(0x138)][q(0x131)],'isComponent':b[q(0x13b)](q(0x12f)),'isLayout':b['hasOwnProperty'](q(0x116)),'isStore':b[q(0x13b)](q(0x111)),'features':f['features'],'noRename':!![],'theme':f[q(0x138)][q(0x11e)]};this[q(0x126)][q(0x12c)]({'srcPath':q(0x12a),'destPath':e,'context':g,'config':f}),g[q(0x121)]=![];const h=d+q(0x125)+c+q(0x112);this[q(0x126)][q(0x12c)]({'srcPath':q(0x136),'destPath':h,'context':g,'config':f});const i=[q(0x132),q(0x134),'tests/client','tests/server'];i[q(0x12e)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi'][r(0x12c)]({'srcPath':r(0x117)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x11b;let f=c[d];return f;},a69d(a,b);}const a69o=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=parseInt(m(0x146))/0x1*(parseInt(m(0x14c))/0x2)+parseInt(m(0x16b))/0x3*(parseInt(m(0x138))/0x4)+parseInt(m(0x121))/0x5+-parseInt(m(0x14b))/0x6*(parseInt(m(0x168))/0x7)+parseInt(m(0x12b))/0x8*(parseInt(m(0x169))/0x9)+parseInt(m(0x165))/0xa+-parseInt(m(0x159))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x1a340));function a69c(){const r=['import\x20\x27./','10146yDwfha','pathFromApp','lib','store','withTranslations','startup','test','675900iXiQYG','test/test.js','string','hook/hook.js','client','/imports/ui/pages','\x27;\x0a','component','maka\x20g:page\x20todos/todos-item','templates.js','38168fGjBST','Updating\x20npm\x20packages\x20...','imports','setTemplate','getProjectConfig','withHooks','tsx','fsi','template/template.css','toString','installNpmPackage','dir','vanilla','16BCXkjb','constructor','template','component/component.js','css','react','import\x20{\x20','search','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','ssr','hasOwnProperty','.html','engines','create','82728ddoRLh','injectAtBeginningOfFile','resourceName','checkNpmPackage','className','18RMJRAI','2LEFHbO','pathFromProject','withValue','ramda','.js','Generate\x20a\x20page.','theme','\x20}\x20from\x20\x27','injectAtEndOfFile','.app-tests.js','withHook','graphql','.css','1341197aWMPrE','features','fileName','relative','rewriteDestinationPathForEngine','assign','warn','template/template.html','html','export\x20{\x20','true','api','301340stgnXO','\x20};\x0a','page','286916uIjiSR','171zFsPqb'];a69c=function(){return r;};return a69c();}const a69b=(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;};}()),a69a=a69b(this,function(){const n=a69d;return a69a['toString']()['search']('(((.+)+)+)+$')[n(0x134)]()[n(0x139)](a69a)[n(0x13f)]('(((.+)+)+)+$');});a69a();import a69e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a69o(0x145)]({'name':a69o(0x167),'aliases':aliases,'usage':a69o(0x140),'shortDesc':a69o(0x151),'validOpts':[a69o(0x136),'withHook'],'examples':[a69o(0x129)]},function(a,b){const p=a69o,c=p(0x126),d=this[p(0x132)][p(0x11b)](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b[p(0x136)],paramCase(b[p(0x148)]),paramCase(b[p(0x148)])]}),f=this['fsi'][p(0x12f)]();this[p(0x132)][p(0x14e)](f,()=>{const q=p;typeof f[q(0x13a)][q(0x161)]==='string'&&(f[q(0x13a)][q(0x161)]=f['template']['html']===q(0x163)?!![]:![],this[q(0x132)][q(0x12e)](q(0x161),f[q(0x13a)][q(0x161)]));typeof f[q(0x13a)][q(0x120)]===q(0x123)&&(f['template']['test']=f[q(0x13a)][q(0x120)]===q(0x163)?!![]:![],this['fsi']['setTemplate']('test',f['template'][q(0x120)]));typeof f[q(0x13a)]['css']==='string'&&(f['template'][q(0x13c)]=f[q(0x13a)][q(0x13c)]===q(0x163)?!![]:![],this[q(0x132)]['setTemplate']('css',f[q(0x13a)][q(0x13c)]));typeof f[q(0x13a)]['js']===q(0x123)&&(f['template']['js']=f[q(0x13a)]['js']===q(0x163)?!![]:![],this[q(0x132)][q(0x12e)]('js',f[q(0x13a)]['js']));!f['features']&&(f[q(0x15a)]={});!b['root']&&!this[q(0x132)][q(0x149)](q(0x14f))&&(Log[q(0x15f)](q(0x12c)),this[q(0x132)][q(0x135)](q(0x14f),{'cwd':d}));const g={'name':pascalCase(b[q(0x148)]),'myPath':a69e[q(0x15c)](this['fsi'][q(0x14d)]({}),e),'cssCaseName':paramCase(b[q(0x148)]),'className':pascalCase(b[q(0x148)]),'camelCaseName':camelCase(b[q(0x148)]),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x144)][q(0x157)],'features':f['features'],'client':f[q(0x144)]['client'],'api':f[q(0x144)][q(0x164)],'ssr':f[q(0x144)][q(0x141)],'isStore':b['hasOwnProperty'](q(0x11d)),'isComponent':b[q(0x142)](q(0x128)),'isLayout':b['hasOwnProperty']('layout'),'withTranslations':f['features'][q(0x11e)],'test':f[q(0x144)][q(0x120)],'theme':f[q(0x144)][q(0x152)]};f[q(0x13a)]['html']&&this[q(0x132)]['template']({'srcPath':q(0x160),'destPath':e+q(0x143),'context':g,'config':f});f[q(0x15a)]?.[q(0x130)]||b[q(0x156)]?this[q(0x132)][q(0x13a)]({'srcPath':q(0x124),'destPath':e+q(0x150),'framework':'react','context':g,'config':f}):this[q(0x132)][q(0x13a)]({'srcPath':q(0x13b),'destPath':e+q(0x150),'framework':q(0x13d),'context':g,'config':f});f['engines'][q(0x120)]!=='none'&&this[q(0x132)]['template']({'srcPath':q(0x122),'destPath':e+q(0x155),'framework':q(0x13d),'context':g,'config':f});f[q(0x13a)][q(0x13c)]&&this[q(0x132)]['template']({'srcPath':q(0x133),'destPath':e+q(0x158),'context':Object[q(0x15e)]({},g,{'className':paramCase(b[q(0x148)])}),'config':f});f['engines'][q(0x125)]!==q(0x13d)&&f[q(0x144)][q(0x125)]!==q(0x137)?(f[q(0x13a)][q(0x13c)]&&this[q(0x132)][q(0x147)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[q(0x15b)]+'.'+f[q(0x144)][q(0x161)]+'\x27;\x0a'+'import\x20\x27./'+g[q(0x15b)]+'.'+f[q(0x144)][q(0x13c)]+'\x27;'}),!f[q(0x13a)][q(0x13c)]&&this[q(0x132)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x144)]['js'],'content':q(0x16a)+g[q(0x15b)]+'.'+f[q(0x144)][q(0x161)]+'\x27;'})):f[q(0x13a)][q(0x13c)]&&this[q(0x132)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':q(0x16a)+g[q(0x15b)]+'.'+f['engines'][q(0x13c)]+'\x27;'});const h=b[q(0x136)]?'/'+b['dir']+'/':'/',i=''+c+h+g[q(0x15b)]+'/'+g[q(0x15b)];let j;if(f[q(0x144)][q(0x141)]===q(0x163)){const k=this[q(0x132)][q(0x11b)]({'pathParts':[q(0x12d),q(0x11f),q(0x11c),q(0x12a)]});j=this[q(0x132)][q(0x15d)]({'pathParts':[k],'config':f});}else{const l=this[q(0x132)]['pathFromApp']({'pathParts':[q(0x12d),'startup',q(0x125),'templates.js']});j=this[q(0x132)][q(0x15d)]({'pathParts':[l],'config':f});}f[q(0x144)]['client']===q(0x13d)?(f[q(0x144)]['js']===q(0x131)?this[q(0x132)][q(0x147)]({'filePath':j,'content':q(0x13e)+g[q(0x14a)]+q(0x153)+i+q(0x127)}):this[q(0x132)][q(0x147)]({'filePath':j,'content':'import\x20{\x20'+g[q(0x14a)]+q(0x153)+i+'.'+f[q(0x144)]['js']+q(0x127)}),this['fsi'][q(0x154)]({'filePath':j,'content':q(0x162)+g[q(0x14a)]+q(0x166)})):this['fsi'][q(0x154)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f['engines']['js']+q(0x127)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d
|
|
1
|
+
const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=-parseInt(h(0x192))/0x1+parseInt(h(0x182))/0x2+-parseInt(h(0x189))/0x3+-parseInt(h(0x184))/0x4*(-parseInt(h(0x17d))/0x5)+parseInt(h(0x18f))/0x6+parseInt(h(0x186))/0x7*(parseInt(h(0x188))/0x8)+parseInt(h(0x190))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xb0cbd));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x18e)]()['search'](j(0x193))[j(0x18e)]()[j(0x18b)](a70a)[j(0x191)]('(((.+)+)+)+$');});a70a();function a70c(){const n=['rewriteDestinationPathForEngine','constructor','resourceName','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','toString','2092878EUEdgb','8452512JwEDgJ','search','1270016pDGEhu','(((.+)+)+)+$','apply','4565oXvFxa','publish/publish.','templateContent','maka\x20g:publish\x20todos','fsi','1440856HMULFd','tsx','4332mDFsBr','getProjectConfig','2617321VrrawH','withValue','8xnzqkE','4130754Dhqnjd'];a70c=function(){return n;};return a70c();}function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x17d;let f=c[d];return f;},a70d(a,b);}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a70k(0x18d),'validOpts':[],'examples':[a70k(0x180)]},async function(a,b){const l=a70k,c=this[l(0x181)][l(0x185)]();this[l(0x181)][l(0x187)](c,async()=>{const m=l,d={'name':b[m(0x18c)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c['engines']['js']===m(0x183)&&(e='ts');const f=this[m(0x181)][m(0x18a)]({'pathParts':['server/publish.'+c['engines']['js']]}),g=this[m(0x181)][m(0x17f)]({'srcPath':m(0x17e)+e,'context':d,'config':c});this['fsi']['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a71y=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d
|
|
1
|
+
function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x1df;let f=c[d];return f;},a71d(a,b);}const a71y=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=parseInt(v(0x20a))/0x1*(parseInt(v(0x221))/0x2)+-parseInt(v(0x1e3))/0x3*(parseInt(v(0x1f7))/0x4)+parseInt(v(0x1f2))/0x5+-parseInt(v(0x1e7))/0x6+-parseInt(v(0x1fb))/0x7*(-parseInt(v(0x20c))/0x8)+parseInt(v(0x21f))/0x9*(parseInt(v(0x21d))/0xa)+-parseInt(v(0x1ef))/0xb*(parseInt(v(0x1eb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x63155));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){const e=c[w(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a[x(0x217)]()[x(0x201)](x(0x1e6))['toString']()['constructor'](a71a)[x(0x201)](x(0x1e6));});a71a();import a71e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a71f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a71c(){const G=['7mRYbdO','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','templateName','injectAfterLineNumber','apply','true','search','engines','fsi','withValue','PrivateLayout','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','only','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','rewriteDestinationPathForEngine','1329JGAwCf','indexOf','3170296RWOjEX','findGenerator','getProjectConfig','templateContent','features','const\x20publicRoutes\x20=\x20(<>','error','readFileLines','route/route.js','lib','\x0a\x09\x09','toString','map','includes','maka\x20g:route\x20todosEdit\x20todos/:id/edit','client','filter','10wEeJaj','pathFromApp','5860557lJJpsT','routes.js','1158kriQsI','maka\x20g:route\x20todosIndex\x20todos','imports','withTranslations','startup','warn','create','page','join','3tRMDir','MasterLayout','length','(((.+)+)+)+$','2213970HeMljX','</Router>','private','react','252nRxMPp','injectAtEndOfFile','withHook','maka\x20g:route\x20lists/listIndex\x20lists','577973CbRJbw','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','config','2506930QwQbjG','invoke','vanilla','root','layout','1760376asZXVg','const\x20privateRoutes\x20=\x20(<>','/imports/ui/pages','toLowerCase'];a71c=function(){return G;};return a71c();}Generator[a71y(0x1e0)]({'name':'route','aliases':aliases,'validOpts':[a71y(0x1e9),a71y(0x1f6),a71y(0x207),'cwd',a71y(0x1f1),a71y(0x1f5),a71y(0x1ed)],'usage':a71y(0x206),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a71y(0x222),a71y(0x21a),a71y(0x208),a71y(0x1ee)]},function(a,b){const z=a71y;try{const c=this[z(0x203)][z(0x20e)]();this[z(0x203)][z(0x204)](c,async()=>{const A=z,d=b[A(0x1e9)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0x1e5)]>0x1&&(g='/'+a[A(0x21c)](function(l){return l!=='/';})[A(0x1e2)]('/')[A(0x1fa)]());f=camelCase(f);b[A(0x1f6)]&&(b['layout']=camelCase(b[A(0x1f6)]));const h=a71e[A(0x1e2)](A(0x1f9),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b['layout']||A(0x1e4),'templatePath':h,'templateName':pascalCase(f),'client':c['engines']['client'],'newForm':![],'withTranslations':c[A(0x210)][A(0x224)]};d&&(i[A(0x1f6)]=A(0x205));if(!b['root']){const l=a71f[A(0x20d)](A(0x1e1));l&&await l[A(0x1f3)](a,b);}let j,k;if(c[A(0x202)][A(0x21b)]===A(0x1ea)){if(c[A(0x202)]['ssr']===A(0x200)){const p=this['fsi'][A(0x21e)]({'pathParts':['imports',A(0x225),A(0x215),A(0x220)]});j=this['fsi'][A(0x209)]({'pathParts':[p],'config':c});}else{const q=this[A(0x203)][A(0x21e)]({'pathParts':['imports',A(0x225),A(0x21b),A(0x220)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c});}const m=this['fsi'][A(0x213)](j)[A(0x218)]((r,s)=>{const B=A;return r[B(0x219)](B(0x1fc))?s+0x1:null;})['filter'](r=>r!==null);let n=this[A(0x203)]['readFileLines'](j)[A(0x218)]((r,s)=>{return r['includes']('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})['filter'](r=>r!==null),o=this[A(0x203)][A(0x213)](j)[A(0x218)]((r,s)=>{const C=A;return r[C(0x219)](C(0x1f8))?s+0x1:null;})['filter'](r=>r!==null);n[A(0x1e5)]>0x0&&o['length']>0x0&&(i['newForm']=!![]);k=this['fsi']['templateContent']({'srcPath':A(0x214),'framework':A(0x1ea),'context':i,'config':c});if(n[A(0x1e5)]>0x0||o[A(0x1e5)]>0x0){this[A(0x203)][A(0x1fe)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x1e5)]>0x0)o=this[A(0x203)][A(0x213)](j)[A(0x218)]((r,s)=>{const D=A;return r['includes'](D(0x1f8))?s+0x1:null;})[A(0x21c)](r=>r!==null),this['fsi']['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i[A(0x1fd)]+'}','lineNumber':o[0x0]});else n[A(0x1e5)]>0x0?(n=this['fsi']['readFileLines'](j)['map']((r,s)=>{const E=A;return r[E(0x219)](E(0x211))?s+0x1:null;})[A(0x21c)](r=>r!==null),this['fsi'][A(0x1fe)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':n[0x0]})):Log[A(0x1df)](A(0x1f0)+j);}else{const r=this['fsi']['readFileLines'](j)['map'](u=>{const F=A;return u[F(0x219)]('\x22*\x22');}),s=r[A(0x20b)](!![])>-0x1,t=s?'<Route':A(0x1e8);this[A(0x203)]['injectIntoFile']({'filePath':j,'content':A(0x216)+k+A(0x216),'begin':'<Router','end':t});}}else{if(c[A(0x202)]['client']===A(0x1f4)){const u=this[A(0x203)][A(0x21e)]({'pathParts':[A(0x223),A(0x225),A(0x21b),'routes.js']});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c}),k=this[A(0x203)][A(0x20f)]({'srcPath':A(0x214),'context':i}),this['fsi'][A(0x1ec)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x212)](d);}});
|