@maka/maka-cli 4.0.88 → 4.1.0
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/dist/command.js +1 -1
- package/dist/commands/_index.js +1 -1
- package/dist/commands/aws/_index.js +1 -1
- package/dist/commands/aws/aws.command.js +1 -1
- package/dist/commands/aws/ci.sub.cmd.js +1 -1
- package/dist/commands/aws/ckp.sub.cmd.js +1 -1
- package/dist/commands/aws/csg.sub.cmd.js +1 -1
- package/dist/commands/aws/di.sub.cmd.js +1 -1
- package/dist/commands/aws/dks.sub.cmd.js +1 -1
- package/dist/commands/aws/rbi.sub.cmd.js +1 -1
- package/dist/commands/aws/sth.sub.cmd.js +1 -1
- package/dist/commands/aws/ti.sub.cmd.js +1 -1
- package/dist/commands/build/_index.js +1 -1
- package/dist/commands/build/build.js +1 -1
- package/dist/commands/build/docker.sub.cmd.js +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/debug.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/game/_index.js +1 -1
- package/dist/commands/game/battleship.sub.cmd.js +1 -1
- package/dist/commands/game/play.command.js +1 -1
- package/dist/commands/game/pong.sub.cmd.js +1 -1
- package/dist/commands/game/snake.sub.cmd.js +1 -1
- package/dist/commands/game/tetris.sub.cmd.js +1 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/get/_index.js +1 -1
- package/dist/commands/get/get.command.js +1 -1
- package/dist/commands/get/global.sub.cmd.js +1 -1
- package/dist/commands/get/local.sub.cmd.js +1 -1
- package/dist/commands/help.js +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/jsdoc.js +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logs.js +1 -1
- package/dist/commands/maka.cmd.js +1 -1
- package/dist/commands/murder.js +1 -1
- package/dist/commands/reconfig.js +1 -1
- package/dist/commands/run.js +1 -1
- package/dist/commands/set/_index.js +1 -1
- package/dist/commands/set/global.sub.cmd.js +1 -1
- package/dist/commands/set/local.sub.cmd.js +1 -1
- package/dist/commands/set/set.command.js +1 -1
- package/dist/commands/ssh.js +1 -1
- package/dist/commands/ssl.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/error.js +1 -1
- package/dist/generator.js +1 -1
- package/dist/generators/_index.js +1 -1
- package/dist/generators/api.js +1 -1
- package/dist/generators/collection.js +1 -1
- package/dist/generators/component.js +1 -1
- package/dist/generators/config.js +1 -1
- package/dist/generators/dbc.js +1 -1
- package/dist/generators/dockerfile.js +1 -1
- package/dist/generators/hook.js +1 -1
- package/dist/generators/kit.js +1 -1
- package/dist/generators/layout.js +1 -1
- package/dist/generators/maka.gen.js +1 -1
- package/dist/generators/methods.js +1 -1
- package/dist/generators/package.js +1 -1
- package/dist/generators/page.js +1 -1
- package/dist/generators/publish.js +1 -1
- package/dist/generators/route.js +1 -1
- package/dist/generators/scaffold.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/generators/services/_index.js +1 -0
- package/dist/generators/services/translation.js +1 -0
- package/dist/maka.js +1 -1
- package/dist/templates/meteor/app/imports/startup/client/index.js.jsx +2 -1
- package/dist/templates/meteor/app/imports/startup/client/index.js.tsx +2 -1
- package/dist/templates/meteor/app/imports/startup/lib/index.js.jsx +1 -0
- package/dist/templates/meteor/app/imports/startup/lib/index.js.tsx +1 -0
- package/dist/templates/react/component/component.js.jsx +7 -4
- package/dist/templates/react/component/component.js.tsx +8 -5
- package/dist/templates/react/hook/hook.js.jsx +6 -3
- package/dist/templates/react/hook/hook.js.tsx +5 -3
- package/dist/templates/service/i18n/i18n.js +33 -0
- package/dist/templates/service/i18n/i18n.js.ts +33 -0
- package/dist/templates/service/i18n/index.js +0 -0
- package/dist/templates/service/i18n/index.js.jsx +0 -0
- package/dist/templates/service/i18n/locales.js +3 -0
- package/dist/templates/service/i18n/locales.js.ts +3 -0
- package/dist/tool.js +1 -1
- package/dist/tools/actions/actions.class.js +1 -1
- package/dist/tools/actions/actions.test.js +1 -1
- package/dist/tools/aws/aws.class.js +1 -1
- package/dist/tools/aws/aws.interfaces.js +1 -1
- package/dist/tools/docker/docker.class.js +1 -1
- package/dist/tools/docker/docker.interfaces.js +1 -1
- package/dist/tools/fsi/fsi.class.js +1 -1
- package/dist/tools/fsi/fsi.interfaces.js +1 -1
- package/dist/tools/https/https.class.js +1 -1
- package/dist/tools/https/https.interface.js +1 -1
- package/dist/tools/log/log.class.js +1 -1
- package/dist/tools/log/log.interfaces.js +1 -1
- package/dist/tools/spawn-async/spawn-async.class.js +1 -1
- package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/dist/tools/ssh/ssh.class.js +1 -1
- package/dist/tools/ssh/ssh.interfaces.js +1 -1
- package/dist/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/dist/generators/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56F=a56d;(function(a,b){const C=a56d,c=a();while(!![]){try{const d
|
|
1
|
+
const a56F=a56d;function a56c(){const O=['then','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','injectAtEndOfFile','throw','IsulI','template','css','@apollo/client','done','__awaiter','1UbkwZb','apply','test','react','constructor','setTemplate','449110kSIZwR','25UufYQI','nDYpG','\x27;\x0a','14360lysYPo','9rRbxJv','KLMeQ','hook/hook.js','fsi','import\x20{\x20','lib','create','oVGou','imports','injectAtBeginningOfFile','search','value','576426JPbrRi','rewriteDestinationPathForEngine','3zADcsF','RAGWV','resourceName','relative','templates.js','theme','className','tsx','7322010srhNKs','3048196eSZJQE','\x20}\x20from\x20\x27','error','4806494ZxPCxh','pathFromApp','installNpmPackage','@apollo/client\x20isomorphic-fetch','.js','import\x20\x27./','withValue','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','.app-tests.js','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','\x20};\x0a','next','graphql','ywQtI','12748452sgxOdu','mLSdF','(((.+)+)+)+$','features','template/template.css','Rhotu','true','engines','withTranslations','startup','import\x20\x27','apollo','thnjx','dir','1799Mhfmcm','client','getProjectConfig','toString','maka\x20g:hook\x20cool-hook','checkNpmPackage','CgFjd','qRdby','fileName','export\x20{\x20','hook','pathFromProject','warn','string'];a56c=function(){return O;};return a56c();}(function(a,b){const C=a56d,c=a();while(!![]){try{const d=parseInt(C(0x131))/0x1*(parseInt(C(0x137))/0x2)+-parseInt(C(0x14a))/0x3*(parseInt(C(0x153))/0x4)+parseInt(C(0x138))/0x5*(parseInt(C(0x148))/0x6)+-parseInt(C(0x119))/0x7*(-parseInt(C(0x13b))/0x8)+-parseInt(C(0x13c))/0x9*(-parseInt(C(0x152))/0xa)+parseInt(C(0x156))/0xb+-parseInt(C(0x10b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x7cbf0));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const D=a56d;if(c){if(D(0x143)!==D(0x143))try{i(j['next'](k));}catch(f){m(f);}else{const f=c[D(0x132)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const E=a56d;return a56a['toString']()[E(0x146)](E(0x10d))[E(0x11c)]()[E(0x135)](a56a)[E(0x146)](E(0x10d));});a56a();function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0xfd;let f=c[d];return f;},a56d(a,b);}var __awaiter=this&&this[a56F(0x130)]||function(a,b,c,d){function e(f){const G=a56d;if(G(0x11f)!==G(0x13d))return f instanceof c?f:new c(function(g){if('tSooE'!=='ZthJJ')g(f);else{const i=g?function(){const H=a56d;if(i){const u=q[H(0x132)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}});else{const h=d['apply'](e,arguments);return f=null,h;}}return new(c||(c=Promise))(function(f,g){const L=a56d;function h(k){const I=a56d;if('FzNwD'==='SImXd')d(e[I(0x108)](f));else try{j(d[I(0x108)](k));}catch(m){g(m);}}function i(k){const J=a56d;if(J(0x10a)===J(0x10a))try{J(0x10c)===J(0x120)?this[J(0x13f)][J(0x129)]({'filePath':d,'content':J(0x115)+e+'.'+f[J(0x112)]['js']+J(0x13a)}):j(d[J(0x12a)](k));}catch(m){g(m);}else h[J(0x12f)]?i(j['value']):k(l[J(0x147)])[J(0x127)](m,n);}function j(k){const K=a56d;K(0x14b)===K(0x12b)?this[K(0x13f)]['injectAtBeginningOfFile']({'filePath':e,'content':K(0x140)+f[K(0x150)]+K(0x154)+g+'.'+h['engines']['js']+K(0x13a)}):k[K(0x12f)]?f(k['value']):e(k[K(0x147)])[K(0x127)](h,i);}j((d=d[L(0x132)](a,b||[]))[L(0x108)]());});};import a56B 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[a56F(0x142)]({'name':a56F(0x123),'aliases':['h'],'checkWhere':![],'usage':a56F(0x103),'description':a56F(0x128),'examples':[a56F(0x11d)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const M=a56d;try{const c=this[M(0x13f)][M(0x11e)](M(0x134));if(!c){Log[M(0x155)](M(0x105));throw new UsageError();}const d=this[M(0x13f)]['pathFromApp'](b),f='/imports/ui/hooks',g=this[M(0x13f)][M(0xfd)]({'pathParts':[f,b[M(0x118)],paramCase(b[M(0x14c)]),paramCase(b[M(0x14c)])]}),h=yield this[M(0x13f)][M(0x11b)]();this[M(0x13f)][M(0x102)](h,()=>__awaiter(this,void 0x0,void 0x0,function*(){const N=M;typeof h[N(0x12c)][N(0x12d)]===N(0x126)&&(h[N(0x12c)][N(0x12d)]=h['template'][N(0x12d)]===N(0x111)?!![]:![],this[N(0x13f)][N(0x136)](N(0x12d),h[N(0x12c)]['css']));h[N(0x112)][N(0x109)]===N(0x116)&&!this['checkNpmPackage'](N(0x12e))&&(Log[N(0x125)](N(0x106)),yield this[N(0x13f)][N(0xfe)](N(0xff),{'cwd':d}));const i={'cssCaseName':paramCase(b[N(0x14c)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b['resourceName']),'graphql':h[N(0x112)]['graphql'],'theme':h[N(0x112)][N(0x14f)],'features':h[N(0x10e)],'myPath':a56B[N(0x14d)](this['fsi'][N(0x124)]({}),g),'fileName':paramCase(b[N(0x14c)]),'isComponent':![],'isLayout':![],'withTranslations':h[N(0x10e)][N(0x113)]};this['fsi'][N(0x12c)]({'srcPath':N(0x13e),'destPath':g+N(0x100),'context':i,'config':h,'framework':N(0x134)});h[N(0x12c)][N(0x12d)]&&(this[N(0x13f)]['template']({'srcPath':N(0x10f),'destPath':g+'.css','context':Object['assign']({},i,{'className':i['cssCaseName']}),'config':h}),this[N(0x13f)][N(0x145)]({'filePath':g+'.'+h[N(0x112)]['js'],'content':N(0x101)+i['fileName']+'.'+h['engines'][N(0x12d)]+'\x27;'}));h[N(0x112)][N(0x133)]!=='none'&&this[N(0x13f)]['template']({'srcPath':'test/test.js','destPath':g+N(0x104),'framework':N(0x134),'context':i,'config':h});const j=b[N(0x118)]?'/'+b[N(0x118)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[N(0x121)];let l;if(h[N(0x112)]['ssr']===N(0x111)){const m=this[N(0x13f)][N(0xfd)]({'pathParts':[N(0x144),N(0x114),N(0x141),'templates.js']});l=this['fsi'][N(0x149)]({'pathParts':[m],'config':h});}else{const n=this[N(0x13f)][N(0xfd)]({'pathParts':[N(0x144),N(0x114),'client',N(0x14e)]});l=this[N(0x13f)][N(0x149)]({'pathParts':[n],'config':h});}if(h[N(0x112)][N(0x11a)]===N(0x134)){if(h['engines']['js']===N(0x151))this[N(0x13f)][N(0x145)]({'filePath':l,'content':'import\x20{\x20'+i[N(0x150)]+N(0x154)+k+N(0x13a)});else{if('GDKRT'!==N(0x110))this[N(0x13f)][N(0x145)]({'filePath':l,'content':N(0x140)+i[N(0x150)]+N(0x154)+k+'.'+h[N(0x112)]['js']+N(0x13a)});else return f instanceof g?h:new i(function(p){p(k);});}this['fsi']['injectAtEndOfFile']({'filePath':l,'content':N(0x122)+i[N(0x150)]+N(0x107)});}else this[N(0x13f)][N(0x129)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h[N(0x112)]['js']+N(0x13a)});}));}catch(i){M(0x117)!==M(0x139)?Log['error'](i):(d[M(0x12c)][M(0x12d)]=i[M(0x12c)][M(0x12d)]==='true'?!![]:![],this[M(0x13f)][M(0x136)](M(0x12d),f[M(0x12c)][M(0x12d)]));}});});
|
package/dist/generators/kit.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57N=a57d;(function(a,b){const G=a57d,c=a();while(!![]){try{const d=-parseInt(G(0x89))/0x1*(-parseInt(G(0x6f))/0x2)+parseInt(G(0x9a))/0x3+parseInt(G(0x97))/0x4*(-parseInt(G(0x71))/0x5)+-parseInt(G(0x79))/0x6*(parseInt(G(0x73))/0x7)+parseInt(G(0x70))/0x8*(-parseInt(G(0x94))/0x9)+parseInt(G(0x6c))/0xa*(parseInt(G(0x75))/0xb)+-parseInt(G(0x92))/0xc*(parseInt(G(0x76))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xedb73));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a57d;if(H(0x90)===H(0x90)){if(c){if(H(0x7e)===H(0x7e)){const e=c['apply'](b,arguments);return c=null,e;}else try{i(j['throw'](k));}catch(g){m(g);}}}else{const h={'name':n(o[H(0x7d)]),'fileName':p(q['resourceName']),'camelCase':r(s['resourceName']),'type':t[H(0x81)],'engine':u[H(0x8d)]['js'],'noRename':!![]};let i=[H(0x86),H(0x93)];if(i['indexOf'](h[H(0x81)])<0x0){let j=h[H(0x81)]?h[H(0x81)]:H(0x7c);A[H(0x99)]('Invalid\x20type\x20'+j+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}w[H(0x81)]===H(0x7b)&&B[H(0x6d)](H(0x95)),y[H(0x81)]===H(0x93)&&C[H(0x6d)](H(0x95));}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const I=a57d;return a57a[I(0x6a)]()[I(0x74)](I(0x83))[I(0x6a)]()['constructor'](a57a)[I(0x74)](I(0x83));});a57a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const M=a57d;function h(k){const J=a57d;try{if('NzMrw'===J(0x87))j(d[J(0x8f)](k));else{if(e){const m=i[J(0x82)](j,arguments);return k=null,m;}}}catch(m){g(m);}}function i(k){const K=a57d;try{j(d['throw'](k));}catch(l){if(K(0x7a)!==K(0x72))g(l);else try{i(j['next'](k));}catch(o){m(o);}}}function j(k){const L=a57d;L(0x8a)===L(0x8a)?k[L(0x84)]?f(k[L(0x7f)]):e(k['value'])['then'](h,i):c(d);}j((d=d[M(0x82)](a,b||[]))['next']());});};function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x6a;let f=c[d];return f;},a57d(a,b);}function a57c(){const Q=['NzMrw','indexOf','1KaLNXR','LUsMz','kXIVZ','fsi','engines','uNOrV','next','roGmY','withValue','12ydCjbp','login','10258263dDnObR','NIE','maka\x20g:kit\x20--type=map','6204kOdwAp','OHlQp','error','4896630ZHOapw','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map','toString','Invalid\x20type\x20','10034900waOtld','notice','getProjectConfig','3219046zWKlqZ','8HQxZMj','160GyXwgk','sazwA','7105357TxumqR','search','11gdpeKG','13871650MuMklQ','create','OBjBl','6VIljSP','BwXfG','map','(blank)','resourceName','YKeMR','value','kit','type','apply','(((.+)+)+)+$','done','XnfYb','leaflet-map'];a57c=function(){return Q;};return a57c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a57N(0x77)]({'name':a57N(0x80),'aliases':['k'],'usage':a57N(0x9b),'description':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','examples':[a57N(0x96),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const O=a57d;if(O(0x78)==='OBjBl')try{const c=this[O(0x8c)][O(0x6e)]();this['fsi'][O(0x91)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const P=O;if(P(0x98)!==P(0x85)){const d={'name':pascalCase(b[P(0x7d)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[P(0x7d)]),'type':b['type'],'engine':c[P(0x8d)]['js'],'noRename':!![]};let f=[P(0x86),'login'];if(f[P(0x88)](d[P(0x81)])<0x0){if(P(0x8b)==='kXIVZ'){let g=d[P(0x81)]?d[P(0x81)]:P(0x7c);Log[P(0x99)](P(0x6b)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}else b[P(0x6d)](P(0x95));}b[P(0x81)]===P(0x7b)&&(P(0x8e)!==P(0x8e)?c(d):Log[P(0x6d)](P(0x95))),b[P(0x81)]==='login'&&Log[P(0x6d)](P(0x95));}else d(e['throw'](f));}));}catch(d){Log[O(0x99)](d);}else h[O(0x84)]?i(j[O(0x7f)]):k(l[O(0x7f)])['then'](m,n);});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a58G=a58d;(function(a,b){const C=a58d,c=a();while(!![]){try{const d=-parseInt(C(
|
|
1
|
+
const a58G=a58d;(function(a,b){const C=a58d,c=a();while(!![]){try{const d=-parseInt(C(0x190))/0x1+-parseInt(C(0x15d))/0x2*(-parseInt(C(0x19b))/0x3)+-parseInt(C(0x15e))/0x4*(-parseInt(C(0x19a))/0x5)+-parseInt(C(0x164))/0x6+-parseInt(C(0x158))/0x7*(parseInt(C(0x191))/0x8)+-parseInt(C(0x15c))/0x9+parseInt(C(0x16f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x8a755));const a58b=(function(){let a=!![];return function(b,c){const D=a58d;if(D(0x15f)==='CTbrL'){const d=a?function(){const E=D;if(c){const e=c[E(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else b['features']={};};}()),a58a=a58b(this,function(){const F=a58d;return a58a[F(0x15a)]()[F(0x185)]('(((.+)+)+)+$')['toString']()[F(0x1a9)](a58a)[F(0x185)]('(((.+)+)+)+$');});a58a();import a58B from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x158;let f=c[d];return f;},a58d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a58c(){const K=['Kfkkp','.css','string','test','\x20};\x0a','lib','2905yzTYtn','2344143knkcEv','create','warn','import\x20\x27./','css','relative','pathFromProject','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','imports','FjwiM','includes','react','engines','none','constructor','7APxmpY','tsx','toString','template','4376718Bsjsni','2zppIsa','2172vtgYWD','CTbrL','fsi','lxwlH','\x20}\x20from\x20\x27','maka\x20g:l\x20web/safari','2377212mGUDPQ','test/test.js','assign','injectAtBeginningOfFile','export\x20{\x20','(((.+)+)+)+$','resourceName','theme','GKyTC','btSSG','LuiLs','14460050rpUSne','.js','setTemplate','Generate\x20scaffolding\x20for\x20a\x20React\x20Layout.','templates.js','apply','pathFromApp','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','layout','installNpmPackage','/imports/ui/layouts','api','className','true','injectAtEndOfFile','client','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','import\x20{\x20','ramda','withTranslations','rewriteDestinationPathForEngine','template/template.css','search','\x27;\x0a','fileName','ZmbKv','jFZbg','dir','component/component.js','features','startup','ssr','withHooks','1023806dELlbd','555472TeheER','SLNCL','graphql'];a58c=function(){return K;};return a58c();}const aliases=['l'];Generator[a58G(0x19c)]({'name':a58G(0x177),'aliases':aliases,'usage':a58G(0x17f),'description':a58G(0x172),'examples':['maka\x20g:layout\x20mobile/iPhone8',a58G(0x163)]},function(a,b){const H=a58G;let c=H(0x179);const d=this[H(0x160)]['findAppDirectory'](),e=this[H(0x160)]['pathFromApp']({'pathParts':[c,b[H(0x18a)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this['fsi']['getProjectConfig']();this['fsi']['withValue'](f,()=>{const I=H;var g;if(typeof f[I(0x15b)][I(0x197)]===I(0x196)){if('KIZYQ'!=='KIZYQ'){const o=g?function(){const J=I;if(o){const u=q[J(0x174)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}else f[I(0x15b)][I(0x197)]=f[I(0x15b)][I(0x197)]===I(0x17c)?!![]:![],this[I(0x160)][I(0x171)](I(0x197),f[I(0x15b)][I(0x197)]);}typeof f[I(0x15b)][I(0x19f)]===I(0x196)&&(f[I(0x15b)][I(0x19f)]=f['template'][I(0x19f)]===I(0x17c)?!![]:![],this['fsi'][I(0x171)](I(0x19f),f['template']['css']));if(typeof f[I(0x15b)]['js']==='string'){if(I(0x161)!==I(0x1a4))f[I(0x15b)]['js']=f['template']['js']===I(0x17c)?!![]:![],this[I(0x160)][I(0x171)]('js',f[I(0x15b)]['js']);else return c[I(0x15a)]()[I(0x185)](I(0x169))['toString']()[I(0x1a9)](d)[I(0x185)](I(0x169));}!f[I(0x18c)]&&(I(0x16e)===I(0x192)?(this[I(0x160)][I(0x15b)]({'srcPath':I(0x184),'destPath':k+I(0x195),'context':l[I(0x166)]({},m,{'className':n(o[I(0x16a)])}),'config':p}),this[I(0x160)][I(0x167)]({'filePath':q+'.'+r[I(0x1a7)]['js'],'content':I(0x19e)+s[I(0x187)]+'.'+t[I(0x1a7)][I(0x19f)]+'\x27;'})):f[I(0x18c)]={});const h=b['_']?b['_'][0x0]['split'](':')[0x1]:![];let i=b['_']&&aliases[I(0x1a5)](h);i&&!this['checkNpmPackage'](I(0x181))&&(Log[I(0x19d)](I(0x1a2)),this[I(0x160)][I(0x178)]('ramda',{'cwd':d}));if(i&&!this['checkNpmPackage'](I(0x1a6))){Log[I(0x19d)](I(0x176));return;}var j={'name':pascalCase(b[I(0x16a)]),'myPath':a58B[I(0x1a0)](this[I(0x160)][I(0x1a1)]({}),e),'cssCaseName':paramCase(b[I(0x16a)]),'className':pascalCase(b[I(0x16a)]),'camelCaseName':camelCase(b[I(0x16a)]),'fileName':paramCase(b[I(0x16a)]),'graphql':f[I(0x1a7)][I(0x193)],'features':f[I(0x18c)],'client':f[I(0x1a7)][I(0x17e)],'api':f['engines'][I(0x17a)],'ssr':f[I(0x1a7)][I(0x18e)],'test':f[I(0x1a7)][I(0x197)],'theme':f['engines'][I(0x16b)],'isComponent':![],'isLayout':!![],'withTranslations':f[I(0x18c)][I(0x182)]};if(((g=f[I(0x18c)])===null||g===void 0x0?void 0x0:g[I(0x18f)])||b['withHook']){if('DfHHZ'===I(0x16c)){const r=this[I(0x160)][I(0x175)]({'pathParts':['imports',I(0x18d),I(0x199),I(0x173)]});c=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else this['fsi']['template']({'srcPath':'hook/hook.js','destPath':e+I(0x170),'framework':I(0x1a6),'context':j,'config':f});}else this['fsi'][I(0x15b)]({'srcPath':I(0x18b),'destPath':e+'.js','framework':I(0x1a6),'context':j,'config':f});f[I(0x1a7)][I(0x197)]!==I(0x1a8)&&(I(0x189)===I(0x188)?this['fsi'][I(0x15b)]({'srcPath':'hook/hook.js','destPath':d+'.js','framework':I(0x1a6),'context':e,'config':f}):this[I(0x160)][I(0x15b)]({'srcPath':I(0x165),'destPath':e+'.app-tests.js','framework':I(0x1a6),'context':j,'config':f}));f[I(0x15b)]['css']&&(this[I(0x160)][I(0x15b)]({'srcPath':I(0x184),'destPath':e+I(0x195),'context':Object[I(0x166)]({},j,{'className':paramCase(b['resourceName'])}),'config':f}),this[I(0x160)][I(0x167)]({'filePath':e+'.'+f[I(0x1a7)]['js'],'content':'import\x20\x27./'+j[I(0x187)]+'.'+f['engines'][I(0x19f)]+'\x27;'}));const k=b[I(0x18a)]?'/'+b[I(0x18a)]+'/':'/',l=''+c+k+j[I(0x187)]+'/'+j[I(0x187)];let m;if(f[I(0x1a7)][I(0x18e)]==='true'){const s=this[I(0x160)][I(0x175)]({'pathParts':[I(0x1a3),I(0x18d),I(0x199),I(0x173)]});m=this[I(0x160)][I(0x183)]({'pathParts':[s],'config':f});}else{const t=this[I(0x160)][I(0x175)]({'pathParts':[I(0x1a3),I(0x18d),I(0x17e),I(0x173)]});m=this[I(0x160)][I(0x183)]({'pathParts':[t],'config':f});}if(f['engines'][I(0x17e)]==='react'){if(f[I(0x1a7)]['js']===I(0x159)){if('btSSG'===I(0x16d))this[I(0x160)][I(0x167)]({'filePath':m,'content':'import\x20{\x20'+j[I(0x17b)]+I(0x162)+l+I(0x186)});else{if(e){const v=i[I(0x174)](j,arguments);return k=null,v;}}}else'mQHCP'!=='WjkkR'?this[I(0x160)][I(0x167)]({'filePath':m,'content':I(0x180)+j[I(0x17b)]+'\x20}\x20from\x20\x27'+l+'.'+f[I(0x1a7)]['js']+I(0x186)}):this[I(0x160)][I(0x15b)]({'srcPath':I(0x18b),'destPath':d+I(0x170),'framework':'react','context':e,'config':f});this[I(0x160)]['injectAtEndOfFile']({'filePath':m,'content':I(0x168)+j['className']+I(0x198)});}else I(0x194)!=='PPanV'?this[I(0x160)][I(0x17d)]({'filePath':m,'content':'import\x20\x27'+l+'.'+f['engines']['js']+I(0x186)}):this[I(0x160)]['injectAtBeginningOfFile']({'filePath':d,'content':'import\x20{\x20'+e['className']+'\x20}\x20from\x20\x27'+f+I(0x186)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59x=a59d;function a59c(){const y=['14552kjXVNh','apply','5679UeApkK','12593180IOTOAl','8008548ezXuAu','search','4ACyRAu','\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','maka\x20g:hook\x20cool-hook','constructor','10044195XsZvpV','(((.+)+)+)+$','320AKTylR','maka\x20generate:api\x20Trucks','8061hHcMVm','maka','toString','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','102673VyKKJs','6791590UZMMUb'];a59c=function(){return y;};return a59c();}(function(a,b){const u=a59d,c=a();while(!![]){try{const d=parseInt(u(0x1f8))/0x1*(-parseInt(u(0x1ec))/0x2)+-parseInt(u(0x1f4))/0x3*(parseInt(u(0x1f2))/0x4)+parseInt(u(0x1f9))/0x5+-parseInt(u(0x1ea))/0x6+parseInt(u(0x1f0))/0x7+parseInt(u(0x1fa))/0x8*(parseInt(u(0x1fc))/0x9)+-parseInt(u(0x1fd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xe2392));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a59d;if(c){const e=c[v(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const w=a59d;return a59a['toString']()[w(0x1eb)](w(0x1f1))[w(0x1f6)]()[w(0x1ef)](a59a)[w(0x1eb)](w(0x1f1));});a59a();import{Generator}from'../generator.js';function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a59d(a,b);}const MakaGen=new Generator({'name':a59x(0x1f5),'description':a59x(0x1ed),'usage':a59x(0x1f7),'examples':[a59x(0x1f3),a59x(0x1ee)]},function(){});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a60ah=a60d;(function(a,b){const aa=a60d,c=a();while(!![]){try{const d=parseInt(aa(0x166))/0x1*(parseInt(aa(0x17a))/0x2)+-parseInt(aa(0x14c))/0x3*(-parseInt(aa(0x15d))/0x4)+-parseInt(aa(0x13a))/0x5*(-parseInt(aa(0x15e))/0x6)+-parseInt(aa(0x176))/0x7*(parseInt(aa(0x170))/0x8)+-parseInt(aa(0x177))/0x9+-parseInt(aa(0x168))/0xa+-parseInt(aa(0x163))/0xb*(-parseInt(aa(0x144))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x9e0a2));function a60c(){const ak=['4174vkpRuF','50ldvJoX','ikGSW','throw','search','vgVOB','sKLCZ','fqoLl','qONFa','then','check','2984424qqSJDR','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','method/method.js','pathFromApp','dir','resourceName','startup','engines','45ChOpYR','appPathPrefix','-rpc-method\x27;','maka\x20g:method\x20todos','getProjectConfig','maka\x20{generate,\x20g}:{method,\x20m}\x20name','WiMRc','-rpc-method.','checkMeteorPackage','next','Generate\x20scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','tsx','index.','fsi','methods','CPVPe','warn','262284rQCuQQ','40206DRRfmS','installMeteorPackage','imports','toString','FDLNb','22BIvmmK','ECgCD','done','417KDIZIb','import\x20\x27./methods','2923070dWaRdb','check\x20ddp-rate-limiter\x20mdg:validated-method','apply','value','KnPwJ','NLwIF','error','ddp-rate-limiter','17128noHOfe','injectAtEndOfFile','vEGHR','(((.+)+)+)+$','method','withValue','3731DICpaI','3037212ORzsZB','KSBdR','mdg:validated-method'];a60c=function(){return ak;};return a60c();}const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const ab=a60d;if('oaPrb'!==ab(0x178)){if(c){if(ab(0x16d)===ab(0x172))c[ab(0x15c)](ab(0x145)),this[ab(0x159)][ab(0x15f)](ab(0x169),{'cwd':d});else{const f=c[ab(0x16a)](b,arguments);return c=null,f;}}}else c(d);}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const ac=a60d;return a60a[ac(0x161)]()['search'](ac(0x173))[ac(0x161)]()['constructor'](a60a)[ac(0x13d)]('(((.+)+)+)+$');});a60a();function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x13a;let f=c[d];return f;},a60d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const ag=a60d;function h(k){const ad=a60d;try{if(ad(0x162)!==ad(0x15b))j(d[ad(0x155)](k));else{if(e){const m=i[ad(0x16a)](j,arguments);return k=null,m;}}}catch(m){g(m);}}function i(k){const ae=a60d;if('ikGSW'===ae(0x13b))try{j(d[ae(0x13c)](k));}catch(l){g(l);}else c(d);}function j(k){const af=a60d;if('WhLrh'!==af(0x13e))k[af(0x165)]?f(k[af(0x16b)]):e(k['value'])[af(0x142)](h,i);else{const m=q(r[af(0x149)]),n={'name':s['resourceName'],'fileName':m,'className':t(u[af(0x149)]),'camelCase':v(w[af(0x149)]),'noRename':!![]};let o='js';x['engines']['js']===af(0x157)&&(o='ts');const p=this[af(0x159)]['pathFromApp']({});(!this[af(0x159)][af(0x154)](af(0x143))||!this[af(0x159)][af(0x154)](af(0x16f))||!this[af(0x159)][af(0x154)](af(0x179)))&&(G[af(0x15c)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[af(0x159)][af(0x15f)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':p}));this[af(0x159)]['template']({'srcPath':af(0x146),'destPath':this[af(0x159)]['pathFromApp']({'pathParts':[af(0x160),'startup',z[af(0x14d)],af(0x15a),A[af(0x148)],m+af(0x153)+o]}),'context':n,'config':B});const q=C['dir']?'/'+D[af(0x148)]+'/':'/',r=this[af(0x159)][af(0x147)]({'pathParts':[af(0x160),af(0x14a),E['appPathPrefix'],'index.'+F[af(0x14b)]['js']]});this[af(0x159)][af(0x171)]({'filePath':r,'content':af(0x167)+q+m+af(0x14e)});}}j((d=d['apply'](a,b||[]))[ag(0x155)]());});};import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a60ah(0x174),'aliases':['m'],'usage':a60ah(0x151),'checkWhere':!![],'description':a60ah(0x156),'examples':[a60ah(0x14f)]},function(a,b){const ai=a60ah;try{if(ai(0x13f)!==ai(0x16c)){const c=this['fsi'][ai(0x150)]();this[ai(0x159)][ai(0x175)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const aj=ai;if(aj(0x140)!==aj(0x141)){const d=paramCase(b['resourceName']),f={'name':b[aj(0x149)],'fileName':d,'className':pascalCase(b[aj(0x149)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[aj(0x14b)]['js']===aj(0x157)&&(aj(0x164)===aj(0x164)?g='ts':d(e[aj(0x13c)](f)));const h=this[aj(0x159)]['pathFromApp']({});(!this[aj(0x159)]['checkMeteorPackage'](aj(0x143))||!this[aj(0x159)][aj(0x154)](aj(0x16f))||!this[aj(0x159)][aj(0x154)](aj(0x179)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[aj(0x159)][aj(0x15f)](aj(0x169),{'cwd':h}));this[aj(0x159)]['template']({'srcPath':aj(0x146),'destPath':this[aj(0x159)]['pathFromApp']({'pathParts':['imports','startup',b[aj(0x14d)],'methods',b[aj(0x148)],d+aj(0x153)+g]}),'context':f,'config':c});const i=b[aj(0x148)]?'/'+b[aj(0x148)]+'/':'/',j=this[aj(0x159)][aj(0x147)]({'pathParts':[aj(0x160),'startup',b['appPathPrefix'],aj(0x158)+c['engines']['js']]});this[aj(0x159)][aj(0x171)]({'filePath':j,'content':aj(0x167)+i+d+'-rpc-method\x27;'});}else try{i(j[aj(0x155)](k));}catch(m){m(m);}}));}else try{i(j['throw'](k));}catch(f){m(f);}}catch(f){ai(0x152)!=='WiMRc'?c(d):Log[ai(0x16e)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61aF=a61d;(function(a,b){const ay=a61d,c=a();while(!![]){try{const d=parseInt(ay(0x20c))/0x1+-parseInt(ay(0x1f5))/0x2+parseInt(ay(0x206))/0x3*(-parseInt(ay(0x1dd))/0x4)+parseInt(ay(0x1db))/0x5*(-parseInt(ay(0x1d6))/0x6)+parseInt(ay(0x1e1))/0x7+parseInt(ay(0x1de))/0x8*(parseInt(ay(0x1cb))/0x9)+-parseInt(ay(0x1eb))/0xa*(parseInt(ay(0x1e7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xbe08a));const a61b=(function(){let a=!![];return function(b,c){const az=a61d;if(az(0x20e)===az(0x1d3))h[az(0x1f0)]?i(j[az(0x207)]):k(l[az(0x207)])[az(0x205)](m,n);else{const e=a?function(){const aA=az;if(aA(0x1e6)!=='YPWld')return s(this,void 0x0,void 0x0,function*(){const aB=aA,a5=K(L[aB(0x204)]),a6=this[aB(0x1f1)][aB(0x1f2)]({'pathParts':[aB(0x20a),M[aB(0x1e3)],a5]}),a7=this[aB(0x1f1)][aB(0x1d8)]({'pathParts':[aB(0x20a),N[aB(0x1e3)],a5,aB(0x1fa)]}),a8=this[aB(0x1f1)][aB(0x1ea)]();this[aB(0x1f1)][aB(0x1fb)](a8,()=>a5(this,void 0x0,void 0x0,function*(){const aC=aB,at={'name':ae(af['resourceName']),'myPath':ag[aC(0x1fe)](this[aC(0x1f1)][aC(0x1ee)]({}),a6),'cssCaseName':ah(ai['resourceName']),'className':aj(ak[aC(0x204)]),'camelCaseName':al(am[aC(0x204)]),'fileName':a5,'client':a8['engines'][aC(0x20d)],'graphql':a8[aC(0x1d1)][aC(0x209)],'ssr':a8['engines'][aC(0x203)],'isComponent':an['hasOwnProperty'](aC(0x1d4)),'isLayout':ao[aC(0x1da)](aC(0x1e2)),'isStore':ap[aC(0x1da)]('store'),'features':a8['features'],'noRename':!![],'theme':a8[aC(0x1d1)]['theme']};this[aC(0x1f1)][aC(0x1cf)]({'srcPath':aC(0x1e4),'destPath':a7,'context':at,'config':a8}),at[aC(0x1e5)]=![];const au=a6+aC(0x1d5)+a5+aC(0x1f4);this[aC(0x1f1)][aC(0x1cf)]({'srcPath':aC(0x1d7),'destPath':au,'context':at,'config':a8});const av=[aC(0x1cc),'server',aC(0x1df),aC(0x1ff)];av['forEach'](aw=>{const aD=aC,ax=a6+'/'+aw+'/'+a5+aD(0x1f4);this[aD(0x1f1)]['template']({'srcPath':aD(0x1dc)+aw+aD(0x1e9),'destPath':ax,'context':at,'config':a8});});}));});else{if(c){const g=c[aA(0x1ec)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a61a=a61b(this,function(){const aE=a61d;return a61a[aE(0x1f8)]()[aE(0x1ed)]('(((.+)+)+)+$')[aE(0x1f8)]()[aE(0x1d0)](a61a)[aE(0x1ed)](aE(0x1ef));});a61a();function a61c(){const aO=['store','toString','server','package.js','withValue','rSIVG','uexrf','relative','tests/server','__awaiter','theme','package','ssr','resourceName','then','7407cAzbcq','value','create','graphql','packages','throw','1552233XvvSxT','client','nCiSq','90NmIiZV','lib','features','QwfQF','template','constructor','engines','aVgwu','xDXnu','component','/client/','6UAGZpu','template/template.js','pathFromAppWithNoReWrite','forEach','hasOwnProperty','7754440BmHqJq','package/','20VTCddG','605656qjcPDa','tests/client','next','4679332iMpYER','layout','dir','package/package.js','noRename','YPWld','11cmMpJM','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','/package.js','getProjectConfig','1074370IGjgls','apply','search','pathFromProject','(((.+)+)+)+$','done','fsi','pathFromApp','tNGgv','.js','1057462hjHOAX','bxHxu'];a61c=function(){return aO;};return a61c();}var __awaiter=this&&this[a61aF(0x200)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const aI=a61d;function h(k){const aG=a61d;try{j(d[aG(0x1e0)](k));}catch(l){if(aG(0x1fc)===aG(0x1fc))g(l);else try{i(j[aG(0x20b)](k));}catch(o){m(o);}}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const aH=a61d;aH(0x1d2)==='aVgwu'?k[aH(0x1f0)]?f(k[aH(0x207)]):e(k['value'])[aH(0x205)](h,i):c(d);}j((d=d['apply'](a,b||[]))[aI(0x1e0)]());});};import a61av from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a61d(a,b);}Generator[a61aF(0x208)]({'name':a61aF(0x202),'aliases':['p'],'usage':a61aF(0x1e8),'description':'Generate\x20scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','examples':['maka\x20g:package\x20todos:package']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aJ=a61d;if(aJ(0x1f3)!==aJ(0x1f6)){const c=paramCase(b[aJ(0x204)]),d=this['fsi']['pathFromApp']({'pathParts':[aJ(0x20a),b[aJ(0x1e3)],c]}),e=this['fsi']['pathFromAppWithNoReWrite']({'pathParts':[aJ(0x20a),b[aJ(0x1e3)],c,'package.js']}),f=this[aJ(0x1f1)][aJ(0x1ea)]();this[aJ(0x1f1)][aJ(0x1fb)](f,()=>__awaiter(this,void 0x0,void 0x0,function*(){const aK=aJ;if(aK(0x1fd)!=='uexrf'){const h=g+'/'+h+'/'+i+aK(0x1f4);this[aK(0x1f1)][aK(0x1cf)]({'srcPath':aK(0x1dc)+j+'/package.js','destPath':h,'context':k,'config':l});}else{const h={'name':paramCase(b[aK(0x204)]),'myPath':a61av[aK(0x1fe)](this[aK(0x1f1)][aK(0x1ee)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[aK(0x204)]),'camelCaseName':camelCase(b[aK(0x204)]),'fileName':c,'client':f[aK(0x1d1)]['client'],'graphql':f[aK(0x1d1)][aK(0x209)],'ssr':f['engines'][aK(0x203)],'isComponent':b[aK(0x1da)](aK(0x1d4)),'isLayout':b[aK(0x1da)](aK(0x1e2)),'isStore':b[aK(0x1da)](aK(0x1f7)),'features':f[aK(0x1cd)],'noRename':!![],'theme':f[aK(0x1d1)][aK(0x201)]};this['fsi'][aK(0x1cf)]({'srcPath':aK(0x1e4),'destPath':e,'context':h,'config':f}),h[aK(0x1e5)]=![];const i=d+aK(0x1d5)+c+aK(0x1f4);this['fsi'][aK(0x1cf)]({'srcPath':aK(0x1d7),'destPath':i,'context':h,'config':f});const j=[aK(0x1cc),aK(0x1f9),aK(0x1df),'tests/server'];j[aK(0x1d9)](k=>{const aL=aK;if(aL(0x1ce)===aL(0x1ce)){const l=d+'/'+k+'/'+c+'.js';this['fsi']['template']({'srcPath':aL(0x1dc)+k+'/package.js','destPath':l,'context':h,'config':f});}else c(d);});}}));}else{const h=r(s[aJ(0x204)]),i=this[aJ(0x1f1)][aJ(0x1f2)]({'pathParts':[aJ(0x20a),t[aJ(0x1e3)],h]}),j=this['fsi'][aJ(0x1d8)]({'pathParts':['packages',u[aJ(0x1e3)],h,aJ(0x1fa)]}),k=this[aJ(0x1f1)][aJ(0x1ea)]();this[aJ(0x1f1)][aJ(0x1fb)](k,()=>h(this,void 0x0,void 0x0,function*(){const aM=aJ,aa={'name':V(W[aM(0x204)]),'myPath':X['relative'](this[aM(0x1f1)][aM(0x1ee)]({}),i),'cssCaseName':Y(Z[aM(0x204)]),'className':a0(a1[aM(0x204)]),'camelCaseName':a2(a3[aM(0x204)]),'fileName':h,'client':k['engines'][aM(0x20d)],'graphql':k['engines'][aM(0x209)],'ssr':k[aM(0x1d1)][aM(0x203)],'isComponent':a4[aM(0x1da)](aM(0x1d4)),'isLayout':a5[aM(0x1da)]('layout'),'isStore':a6['hasOwnProperty']('store'),'features':k['features'],'noRename':!![],'theme':k[aM(0x1d1)][aM(0x201)]};this['fsi'][aM(0x1cf)]({'srcPath':aM(0x1e4),'destPath':j,'context':aa,'config':k}),aa[aM(0x1e5)]=![];const ab=i+aM(0x1d5)+h+'.js';this[aM(0x1f1)][aM(0x1cf)]({'srcPath':aM(0x1d7),'destPath':ab,'context':aa,'config':k});const ac=[aM(0x1cc),'server',aM(0x1df),aM(0x1ff)];ac[aM(0x1d9)](ad=>{const aN=aM,ae=i+'/'+ad+'/'+h+aN(0x1f4);this[aN(0x1f1)]['template']({'srcPath':aN(0x1dc)+ad+aN(0x1e9),'destPath':ae,'context':aa,'config':k});});}));}});});
|
package/dist/generators/page.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62N=a62d;function a62c(){const R=['18747487KzkrXR','export\x20{\x20','1170nPEYuN','injectAtBeginningOfFile','pathFromProject','theme','true','create','3734550oRzUjh','GplFe','\x20}\x20from\x20\x27','graphql','Generate\x20a\x20page.','HKDmu','\x20};\x0a','ssr','vSyWg','templates.js','api','OAIhi','rqWAU','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','import\x20{\x20','lbfWj','pathFromApp','react','Updating\x20npm\x20packages\x20...','test/test.js','KxmVW','resourceName','client','\x27;\x0a','withHook','1192936MfDKrN','injectAtEndOfFile','CayQJ','hook/hook.js','LHROh','withTranslations','page','none','fsi','.html','html','(((.+)+)+)+$','hasOwnProperty','vanilla','component/component.js','root','css','oUFnt','toString','features','3517914HgrUIR','import\x20\x27./','template/template.html','PXQKr','9MmgUjv','9OmlIbq','import\x20\x27','fileName','1roDlsQ','ramda','setTemplate','tsx','.app-tests.js','store','.css','string','1976900fVyYnT','search','maka\x20g:page\x20todos/todos-item','template','2311128ZjzYNY','36463FNNJgB','.js','DLAAl','lib','className','ggkAL','layout','imports','getProjectConfig','apply','pwbNW','dir','component','test','engines','installNpmPackage'];a62c=function(){return R;};return a62c();}(function(a,b){const J=a62d,c=a();while(!![]){try{const d=parseInt(J(0xab))/0x1*(parseInt(J(0xa3))/0x2)+-parseInt(J(0xa7))/0x3*(-parseInt(J(0xb7))/0x4)+parseInt(J(0xb3))/0x5+-parseInt(J(0xca))/0x6*(parseInt(J(0xb8))/0x7)+parseInt(J(0xe9))/0x8*(parseInt(J(0xa8))/0x9)+-parseInt(J(0xd0))/0xa+-parseInt(J(0xc8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0xe64a9));const a62b=(function(){let a=!![];return function(b,c){const K=a62d;if(K(0xdf)===K(0xdf)){const d=a?function(){const L=K;if(c){if(L(0xbd)!==L(0xba)){const e=c[L(0xc1)](b,arguments);return c=null,e;}else return c['toString']()[L(0xb4)](L(0x9a))[L(0xa1)]()['constructor'](d)['search'](L(0x9a));}}:function(){};return a=![],d;}else this[K(0x97)]['template']({'srcPath':K(0x9d),'destPath':d+K(0xb9),'framework':K(0xe1),'context':e,'config':f});};}()),a62a=a62b(this,function(){const M=a62d;return a62a[M(0xa1)]()[M(0xb4)](M(0x9a))[M(0xa1)]()['constructor'](a62a)[M(0xb4)](M(0x9a));});a62a();function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x97;let f=c[d];return f;},a62d(a,b);}import a62I 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[a62N(0xcf)]({'name':a62N(0xef),'aliases':aliases,'usage':a62N(0xdd),'description':a62N(0xd4),'examples':[a62N(0xb5)]},function(a,b){const O=a62N;let c='/imports/ui/pages';const d=this[O(0x97)][O(0xe0)](b),e=this[O(0x97)][O(0xe0)]({'pathParts':[c,b['dir'],paramCase(b[O(0xe5)]),paramCase(b['resourceName'])]}),f=this[O(0x97)][O(0xc0)]();this['fsi']['withValue'](f,()=>{const P=O;if(P(0xa0)!==P(0xd8)){var g;typeof f[P(0xb6)][P(0x99)]===P(0xb2)&&(f['template']['html']=f[P(0xb6)][P(0x99)]===P(0xce)?!![]:![],this[P(0x97)][P(0xad)](P(0x99),f['template'][P(0x99)]));typeof f['template'][P(0xc5)]===P(0xb2)&&(P(0xa6)==='wtvAb'?this[P(0x97)]['template']({'srcPath':P(0xec),'destPath':d+P(0xb9),'framework':P(0xe1),'context':e,'config':f}):(f[P(0xb6)]['test']=f[P(0xb6)]['test']===P(0xce)?!![]:![],this[P(0x97)][P(0xad)](P(0xc5),f['template']['test'])));typeof f['template'][P(0x9f)]==='string'&&(f[P(0xb6)]['css']=f[P(0xb6)]['css']===P(0xce)?!![]:![],this['fsi'][P(0xad)](P(0x9f),f[P(0xb6)][P(0x9f)]));typeof f[P(0xb6)]['js']===P(0xb2)&&(f['template']['js']=f['template']['js']===P(0xce)?!![]:![],this[P(0x97)][P(0xad)]('js',f[P(0xb6)]['js']));!f[P(0xa2)]&&(f[P(0xa2)]={});!b[P(0x9e)]&&!this[P(0x97)]['checkNpmPackage'](P(0xac))&&(Log['warn'](P(0xe2)),this[P(0x97)][P(0xc7)](P(0xac),{'cwd':d}));const h={'name':pascalCase(b[P(0xe5)]),'myPath':a62I['relative'](this[P(0x97)][P(0xcc)]({}),e),'cssCaseName':paramCase(b[P(0xe5)]),'className':pascalCase(b[P(0xe5)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f[P(0xc6)][P(0xd3)],'features':f['features'],'client':f['engines']['client'],'api':f[P(0xc6)][P(0xda)],'ssr':f[P(0xc6)][P(0xd7)],'isStore':b['hasOwnProperty'](P(0xb0)),'isComponent':b[P(0x9b)](P(0xc4)),'isLayout':b['hasOwnProperty'](P(0xbe)),'withTranslations':f[P(0xa2)][P(0xee)],'test':f['engines'][P(0xc5)],'theme':f['engines'][P(0xcd)]};f[P(0xb6)]['html']&&(P(0xc2)==='pwbNW'?this[P(0x97)][P(0xb6)]({'srcPath':P(0xa5),'destPath':e+P(0x98),'context':h,'config':f}):this[P(0x97)][P(0xcb)]({'filePath':g+'.'+h['engines']['js'],'content':P(0xa4)+i[P(0xaa)]+'.'+j[P(0xc6)][P(0x99)]+P(0xe7)+P(0xa4)+k[P(0xaa)]+'.'+l[P(0xc6)][P(0x9f)]+'\x27;'}));if(((g=f[P(0xa2)])===null||g===void 0x0?void 0x0:g['withHooks'])||b[P(0xe8)]){if(P(0xd5)===P(0xd5))this[P(0x97)][P(0xb6)]({'srcPath':P(0xec),'destPath':e+'.js','framework':P(0xe1),'context':h,'config':f});else{if(e){const o=i[P(0xc1)](j,arguments);return k=null,o;}}}else this['fsi'][P(0xb6)]({'srcPath':'component/component.js','destPath':e+'.js','framework':P(0xe1),'context':h,'config':f});f[P(0xc6)][P(0xc5)]!==P(0xf0)&&this[P(0x97)][P(0xb6)]({'srcPath':P(0xe3),'destPath':e+P(0xaf),'framework':P(0xe1),'context':h,'config':f});f['template']['css']&&this[P(0x97)][P(0xb6)]({'srcPath':'template/template.css','destPath':e+P(0xb1),'context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':f});f['engines']['client']!==P(0xe1)&&f[P(0xc6)][P(0xe6)]!==P(0x9c)?P(0xe4)==='BYzsH'?(k[P(0xc6)]['js']==='tsx'?this['fsi'][P(0xcb)]({'filePath':u,'content':P(0xde)+v[P(0xbc)]+P(0xd2)+w+'\x27;\x0a'}):this[P(0x97)]['injectAtBeginningOfFile']({'filePath':x,'content':P(0xde)+y[P(0xbc)]+P(0xd2)+z+'.'+A[P(0xc6)]['js']+P(0xe7)}),this[P(0x97)][P(0xea)]({'filePath':s,'content':'export\x20{\x20'+t[P(0xbc)]+P(0xd6)})):(f[P(0xb6)]['css']&&this[P(0x97)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[P(0xc6)]['js'],'content':P(0xa4)+h['fileName']+'.'+f['engines'][P(0x99)]+'\x27;\x0a'+'import\x20\x27./'+h['fileName']+'.'+f[P(0xc6)][P(0x9f)]+'\x27;'}),!f[P(0xb6)][P(0x9f)]&&this[P(0x97)][P(0xcb)]({'filePath':e+'.'+f[P(0xc6)]['js'],'content':'import\x20\x27./'+h[P(0xaa)]+'.'+f['engines'][P(0x99)]+'\x27;'})):f['template']['css']&&this[P(0x97)][P(0xcb)]({'filePath':e+'.'+f['engines']['js'],'content':P(0xa4)+h[P(0xaa)]+'.'+f[P(0xc6)][P(0x9f)]+'\x27;'});const i=b[P(0xc3)]?'/'+b[P(0xc3)]+'/':'/',j=''+c+i+h[P(0xaa)]+'/'+h[P(0xaa)];let k;if(f['engines'][P(0xd7)]===P(0xce)){const p=this['fsi'][P(0xe0)]({'pathParts':[P(0xbf),'startup',P(0xbb),P(0xd9)]});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':f});}else{if(P(0xed)!==P(0xdc)){const q=this[P(0x97)][P(0xe0)]({'pathParts':[P(0xbf),'startup',P(0xe6),'templates.js']});k=this[P(0x97)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':f});}else{const s=g?function(){const Q=P;if(s){const u=q[Q(0xc1)](r,arguments);return s=null,u;}}:function(){};return l=![],s;}}if(f['engines'][P(0xe6)]===P(0xe1)){if('cxBpY'===P(0xd1)){const t=d[P(0xc1)](e,arguments);return f=null,t;}else f[P(0xc6)]['js']===P(0xae)?P(0xdb)==='JidZU'?this[P(0x97)]['template']({'srcPath':P(0xa5),'destPath':d+P(0x98),'context':e,'config':f}):this[P(0x97)][P(0xcb)]({'filePath':k,'content':P(0xde)+h[P(0xbc)]+P(0xd2)+j+P(0xe7)}):P(0xeb)===P(0xeb)?this['fsi'][P(0xcb)]({'filePath':k,'content':P(0xde)+h[P(0xbc)]+'\x20}\x20from\x20\x27'+j+'.'+f[P(0xc6)]['js']+P(0xe7)}):(d['template']['js']=e[P(0xb6)]['js']===P(0xce)?!![]:![],this[P(0x97)][P(0xad)]('js',f[P(0xb6)]['js'])),this['fsi'][P(0xea)]({'filePath':k,'content':P(0xc9)+h[P(0xbc)]+P(0xd6)});}else this[P(0x97)][P(0xea)]({'filePath':k,'content':P(0xa9)+j+'.'+f[P(0xc6)]['js']+P(0xe7)});}else this[P(0x97)][P(0xcb)]({'filePath':e+'.'+f[P(0xc6)]['js'],'content':'import\x20\x27./'+g[P(0xaa)]+'.'+h[P(0xc6)][P(0x9f)]+'\x27;'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a63C=a63d;function
|
|
1
|
+
const a63C=a63d;function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x13b;let f=c[d];return f;},a63d(a,b);}function a63c(){const K=['apply','templateContent','search','Generate\x20scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','engines','injectAtEndOfFile','fsi','(((.+)+)+)+$','DowXp','8tylTAJ','2228745fBXqVc','publish/publish.','yIAXq','pZMKo','1107058QRpHug','DAPif','rewriteDestinationPathForEngine','constructor','40mPeSwS','197549qHGibd','LvJau','5322208tePHAh','pxIcm','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','create','GOFAp','tsx','6079997SOAEDr','pmygE','throw','value','umbEJ','7skxyst','1648407sQkJxS','maka\x20g:publish\x20todos','__awaiter','next','1124685HgoaAW','then','6YCJCYR','publish','toString'];a63c=function(){return K;};return a63c();}(function(a,b){const z=a63d,c=a();while(!![]){try{const d=parseInt(z(0x159))/0x1+parseInt(z(0x154))/0x2+-parseInt(z(0x13d))/0x3*(parseInt(z(0x14f))/0x4)+-parseInt(z(0x150))/0x5*(parseInt(z(0x143))/0x6)+-parseInt(z(0x13c))/0x7*(parseInt(z(0x15b))/0x8)+-parseInt(z(0x141))/0x9+parseInt(z(0x158))/0xa*(parseInt(z(0x161))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x99172));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a63d;if(c){const e=c[A(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const B=a63d;return a63a[B(0x145)]()['search'](B(0x14d))[B(0x145)]()[B(0x157)](a63a)[B(0x148)](B(0x14d));});a63a();var __awaiter=this&&this[a63C(0x13f)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const H=a63d;function h(k){const D=a63d;if(D(0x153)!==D(0x153))return f instanceof g?h:new i(function(m){m(k);});else try{j(d[D(0x140)](k));}catch(m){if(D(0x15c)===D(0x14e)){if(m){const o=i['apply'](j,arguments);return k=null,o;}}else g(m);}}function i(k){const E=a63d;try{if(E(0x162)==='pyHXe'){const n=g?function(){const F=E;if(n){const u=q[F(0x146)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else j(d[E(0x163)](k));}catch(m){g(m);}}function j(k){const G=a63d;G(0x155)!==G(0x152)?k['done']?f(k[G(0x164)]):e(k[G(0x164)])[G(0x142)](h,i):d(e['next'](f));}j((d=d[H(0x146)](a,b||[]))[H(0x140)]());});};import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a63C(0x15e)]({'name':a63C(0x144),'aliases':['p'],'usage':a63C(0x15d),'description':a63C(0x149),'examples':[a63C(0x13e)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const I=a63d;if(I(0x15a)!==I(0x15a)){const d=d[I(0x146)](e,arguments);return f=null,d;}else{const d=this[I(0x14c)]['getProjectConfig']();this[I(0x14c)]['withValue'](d,()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=I,e={'name':b['resourceName'],'collection':paramCase(b['resourceName']),'noRename':!![]};let f='js';if(d[J(0x14a)]['js']===J(0x160)){if(J(0x13b)!==J(0x15f))f='ts';else try{i(j[J(0x163)](k));}catch(j){m(j);}}const g=this['fsi'][J(0x156)]({'pathParts':['server/publish.'+d[J(0x14a)]['js']]}),h=this[J(0x14c)][J(0x147)]({'srcPath':J(0x151)+f,'context':e,'config':d});this[J(0x14c)][J(0x14b)]({'filePath':g,'content':'\x0a'+h});}));}});});
|
package/dist/generators/route.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64N=a64d;(function(a,b){const D=a64d,c=a();while(!![]){try{const d=-parseInt(D(0x228))/0x1*(-parseInt(D(0x20b))/0x2)+-parseInt(D(0x210))/0x3*(-parseInt(D(0x1ef))/0x4)+-parseInt(D(0x1f5))/0x5*(parseInt(D(0x1f4))/0x6)+parseInt(D(0x20c))/0x7+parseInt(D(0x230))/0x8+-parseInt(D(0x224))/0x9*(parseInt(D(0x221))/0xa)+-parseInt(D(0x232))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x7953b));const a64b=(function(){let a=!![];return function(b,c){const E=a64d;if(E(0x1fd)===E(0x208))return f instanceof g?h:new i(function(m){m(k);});else{const e=a?function(){const F=E;if(c){const f=c[F(0x1e6)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a64a=a64b(this,function(){const G=a64d;return a64a['toString']()[G(0x223)]('(((.+)+)+)+$')['toString']()[G(0x1eb)](a64a)[G(0x223)]('(((.+)+)+)+$');});a64a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const H=a64d;if('lsZsp'!==H(0x207))f=this[H(0x227)][H(0x202)](g)['map']((m,n)=>{const I=H;return m[I(0x217)]('const\x20publicRoutes\x20=\x20(<>')?n+0x1:null;})[H(0x1f1)](l=>l!==null),this[H(0x227)][H(0x1f8)]({'filePath':h,'content':'\x09{'+i[H(0x200)]+'}','lineNumber':j[0x0]});else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const M=a64d;function h(k){const J=a64d;try{if(J(0x1f7)!==J(0x1f7))return b!=='/';else j(d[J(0x1fc)](k));}catch(m){'AdgxY'===J(0x203)?g(m):c='/'+d[J(0x1f1)](function(o){return o!=='/';})[J(0x214)]('/')[J(0x235)]();}}function i(k){const K=a64d;try{if(K(0x22d)===K(0x22d))j(d[K(0x1e9)](k));else try{i(j[K(0x1e9)](k));}catch(m){m(m);}}catch(m){g(m);}}function j(k){const L=a64d;k['done']?f(k[L(0x209)]):e(k['value'])[L(0x1ec)](h,i);}j((d=d[M(0x1e6)](a,b||[]))[M(0x1fc)]());});};import a64u from'path';import{Generator}from'../generator.js';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a64d(a,b);}import{Log}from'../tools/log/log.class.js';function a64c(){const W=['toLowerCase','startup','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','const\x20publicRoutes\x20=\x20(<>','only','OdGpC','\x0a\x09\x09','const\x20privateRoutes\x20=\x20(<>','ctZcL','private','withTranslations','apply','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','Generate\x20scaffolding\x20for\x20a\x20Route.','throw','maka\x20g:route\x20lists/listIndex\x20lists','constructor','then','imports','indexOf','2737904TuwEwe','getProjectConfig','filter','map','vanilla','1056102FVUMnk','5davzKm','templateContent','QSDpb','injectAfterLineNumber','MasterLayout','injectIntoFile','injectAtEndOfFile','next','SDqyq','qNMBa','JLKbs','templateName','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','readFileLines','AdgxY','VhdMU','\x22*\x22','layout','lsZsp','VOOak','value','withValue','33910cgmxBX','6416263RZdTIH','route/route.js','route','<Router','3fVOdVt','puCsS','error','length','join','invoke','config','includes','create','PrivateLayout','routes.js','lib','newForm','react','/imports/ui/pages','CnWNW','client','70wYNaYR','rewriteDestinationPathForEngine','search','877806JzWkYX','pathFromApp','YSQby','fsi','32YgHeMc','engines','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','NtQLB','findGenerator','wDHkH','SMyYr','warn','6145504HzITwn','maka\x20g:route\x20todosIndex\x20todos','17117353CzpqZa','SHrVT','root'];a64c=function(){return W;};return a64c();}import a64v from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a64N(0x218)]({'name':a64N(0x20e),'aliases':aliases,'validOpts':[a64N(0x1e4),a64N(0x206),a64N(0x1df),'cwd',a64N(0x216),'root','withHook'],'usage':a64N(0x201),'description':a64N(0x1e8),'examples':[a64N(0x231),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a64N(0x1e7),a64N(0x1ea)]},function(a,b){const O=a64N;try{const c=this[O(0x227)][O(0x1f0)]();this[O(0x227)][O(0x20a)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const P=O;var d;let f=(d=b[P(0x1e4)])!==null&&d!==void 0x0?d:![],g=paramCase(a[0x0]),h='/'+g;a[P(0x213)]>0x1&&('puCsS'!==P(0x211)?c[P(0x212)](d):h='/'+a[P(0x1f1)](function(n){return n!=='/';})[P(0x214)]('/')[P(0x235)]());g=camelCase(g);b[P(0x206)]&&(P(0x233)!==P(0x1fe)?b[P(0x206)]=camelCase(b[P(0x206)]):c[P(0x22f)](P(0x22a)+d));let i=a64u[P(0x214)](P(0x21e),g,g),j={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[P(0x206)]||P(0x1f9),'templatePath':i,'templateName':pascalCase(g),'client':c['engines'][P(0x220)],'newForm':![],'withTranslations':c['features'][P(0x1e5)]};f&&(j[P(0x206)]=P(0x219));if(!b[P(0x234)]){const o=a64v[P(0x22c)]('page');o&&(yield o[P(0x215)](a,b));}let k,l;if(c[P(0x229)][P(0x220)]===P(0x21d)){if(P(0x204)===P(0x22e))b['newForm']=!![];else{if(c['engines']['ssr']==='true'){const t=this['fsi'][P(0x225)]({'pathParts':[P(0x1ed),P(0x1dc),P(0x21b),'routes.js']});k=this[P(0x227)][P(0x222)]({'pathParts':[t],'config':c});}else{const u=this['fsi'][P(0x225)]({'pathParts':['imports',P(0x1dc),P(0x220),'routes.js']});k=this[P(0x227)][P(0x222)]({'pathParts':[u],'config':c});}let q=this['fsi']['readFileLines'](k)[P(0x1f2)]((v,w)=>{const Q=P;return v[Q(0x217)](Q(0x1dd))?w+0x1:null;})[P(0x1f1)](v=>v!==null),r=this[P(0x227)][P(0x202)](k)['map']((v,w)=>{const R=P;return v[R(0x217)](R(0x1de))?w+0x1:null;})[P(0x1f1)](v=>v!==null),s=this[P(0x227)][P(0x202)](k)[P(0x1f2)]((v,w)=>{const S=P;return S(0x1e3)!==S(0x1e3)?c[S(0x217)]('const\x20publicRoutes\x20=\x20(<>')?d+0x1:null:v[S(0x217)](S(0x1e2))?w+0x1:null;})[P(0x1f1)](v=>v!==null);if(r[P(0x213)]>0x0&&s[P(0x213)]>0x0){if(P(0x1e0)===P(0x1e0))j[P(0x21c)]=!![];else{const w=this[P(0x227)][P(0x225)]({'pathParts':['imports',P(0x1dc),'client',P(0x21a)]});c=this[P(0x227)][P(0x222)]({'pathParts':[w],'config':d});}}l=this[P(0x227)][P(0x1f6)]({'srcPath':'route/route.js','framework':P(0x21d),'context':j,'config':c});if(r[P(0x213)]>0x0||s[P(0x213)]>0x0){this[P(0x227)][P(0x1f8)]({'filePath':k,'content':l,'lineNumber':q[0x0]});if(f&&s[P(0x213)]>0x0){if(P(0x21f)!==P(0x1ff))s=this[P(0x227)][P(0x202)](k)['map']((w,x)=>{const T=P;return w[T(0x217)](T(0x1e2))?x+0x1:null;})[P(0x1f1)](w=>w!==null),this[P(0x227)]['injectAfterLineNumber']({'filePath':k,'content':'\x09{'+j[P(0x200)]+'}','lineNumber':s[0x0]});else return c[P(0x217)](P(0x1dd))?d+0x1:null;}else r['length']>0x0?(r=this[P(0x227)]['readFileLines'](k)['map']((x,y)=>{const U=P;if('IsGcR'!=='IsGcR')b[U(0x206)]='PrivateLayout';else return x[U(0x217)](U(0x1de))?y+0x1:null;})[P(0x1f1)](x=>x!==null),this['fsi']['injectAfterLineNumber']({'filePath':k,'content':'\x09{'+j[P(0x200)]+'}','lineNumber':r[0x0]})):Log[P(0x22f)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+k);}else{let x=this[P(0x227)]['readFileLines'](k)[P(0x1f2)](A=>{const V=P;if('NtQLB'!==V(0x22b)){const C=this[V(0x227)][V(0x225)]({'pathParts':[V(0x1ed),'startup','lib',V(0x21a)]});c=this['fsi'][V(0x222)]({'pathParts':[C],'config':d});}else return A[V(0x217)](V(0x205));}),y=x[P(0x1ee)](!![])>-0x1,z=y?'<Route':'</Router>';this[P(0x227)][P(0x1fa)]({'filePath':k,'content':'\x0a\x09\x09'+l+P(0x1e1),'begin':P(0x20f),'end':z});}}}else{if(c[P(0x229)][P(0x220)]===P(0x1f3)){const A=this[P(0x227)][P(0x225)]({'pathParts':[P(0x1ed),P(0x1dc),P(0x220),'routes.js']});k=this[P(0x227)][P(0x222)]({'pathParts':[A],'config':c}),l=this[P(0x227)]['templateContent']({'srcPath':P(0x20d),'context':j}),this['fsi'][P(0x1fb)]({'filePath':k,'content':'\x0a'+l});}}}));}catch(d){if(O(0x226)!==O(0x226))return c[O(0x217)](O(0x1e2))?d+0x1:null;else Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65y=a65d;
|
|
1
|
+
const a65y=a65d;(function(a,b){const v=a65d,c=a();while(!![]){try{const d=parseInt(v(0x95))/0x1*(parseInt(v(0x99))/0x2)+parseInt(v(0x90))/0x3*(parseInt(v(0x94))/0x4)+parseInt(v(0x9b))/0x5*(-parseInt(v(0x88))/0x6)+parseInt(v(0x8d))/0x7+parseInt(v(0x8b))/0x8*(parseInt(v(0x8f))/0x9)+parseInt(v(0x8e))/0xa+-parseInt(v(0x89))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x77115));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a65d;if(w(0x96)===w(0x96)){if(c){const e=c[w(0x9c)](b,arguments);return c=null,e;}}else{const g=g?function(){if(g){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],g;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const x=a65d;return a65a[x(0xa0)]()[x(0xa7)]('(((.+)+)+)+$')[x(0xa0)]()[x(0xa1)](a65a)[x(0xa7)](x(0x8c));});a65a();function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x86;let f=c[d];return f;},a65d(a,b);}var __awaiter=this&&this[a65y(0x87)]||function(a,b,c,d){function e(f){const z=a65d;return z(0x92)!==z(0x92)?c['toString']()[z(0xa7)](z(0x8c))[z(0xa0)]()[z(0xa1)](d)['search'](z(0x8c)):f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const D=a65d;function h(k){const A=a65d;if(A(0x86)!=='BkJOU')try{i(j[A(0x9a)](k));}catch(m){m(m);}else try{j(d['next'](k));}catch(m){g(m);}}function i(k){const B=a65d;if(B(0xa2)!=='jwnEK'){if(e){const m=i['apply'](j,arguments);return k=null,m;}}else try{j(d['throw'](k));}catch(m){g(m);}}function j(k){const C=a65d;if('cxFMg'!=='erezD')k[C(0xa8)]?f(k[C(0x9d)]):e(k['value'])[C(0xa3)](h,i);else try{i(j['next'](k));}catch(m){m(m);}}j((d=d[D(0x9c)](a,b||[]))[D(0x93)]());});};import a65u from'../generators/maka.gen.js';function a65c(){const F=['TBTMY','Generate\x20scaffolding\x20for\x20a\x20resource.','maka\x20g:scaffold\x20todos','search','done','BkJOU','__awaiter','6vdrQNl','18256722CBBAOl','findGenerator','17112FxfTsm','(((.+)+)+)+$','5633677akPIaP','5830100belrAJ','918bJwOhr','15hNGohx','maka\x20{generate,\x20g}:{scaffold,\x20s}\x20[path/]<name>','uDftw','next','288296wcIiUc','130441xPSlnh','nJWwW','api','scaffold','10XmADYx','throw','2355855CFLvAa','apply','value','invoke','page','toString','constructor','jwnEK','then'];a65c=function(){return F;};return a65c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a65y(0x98),'usage':a65y(0x91),'description':a65y(0xa5),'examples':[a65y(0xa6)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a65d;try{const c=a65u[E(0x8a)]('route');c&&(yield c[E(0x9e)](a,b));const d=a65u['findGenerator'](E(0x9f));d&&(yield d[E(0x9e)](a,b));const f=a65u[E(0x8a)](E(0x97));f&&(yield f[E(0x9e)](a,b));}catch(g){E(0xa4)!=='TBTMY'?d(g[E(0x93)](f)):Log['error'](g);}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x1df;let f=c[d];return f;},a66d(a,b);}const a66E=a66d;(function(a,b){const B=a66d,c=a();while(!![]){try{const d=parseInt(B(0x206))/0x1+parseInt(B(0x225))/0x2+-parseInt(B(0x1f8))/0x3*(-parseInt(B(0x1e6))/0x4)+-parseInt(B(0x203))/0x5+parseInt(B(0x1e4))/0x6+parseInt(B(0x210))/0x7+-parseInt(B(0x207))/0x8*(parseInt(B(0x21b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x3c5a9));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a66d;if(C(0x1ef)===C(0x1fb)){let f=d[C(0x22d)]?e[C(0x22d)]:'(blank)';f[C(0x219)](C(0x1fc)+f+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument.\x20\x20Usage:');return;}else{if(c){if(C(0x1fd)!==C(0x212)){const f=c[C(0x22f)](b,arguments);return c=null,f;}else c(d);}}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const D=a66d;return a66a['toString']()[D(0x1e0)](D(0x22a))[D(0x227)]()[D(0x1f7)](a66a)[D(0x1e0)](D(0x22a));});a66a();var __awaiter=this&&this[a66E(0x200)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const I=a66d;function h(k){const F=a66d;try{j(d['next'](k));}catch(l){if(F(0x202)!==F(0x223))g(l);else return c['toString']()[F(0x1e0)](F(0x22a))[F(0x227)]()['constructor'](d)[F(0x1e0)](F(0x22a));}}function i(k){const G=a66d;try{G(0x220)!=='bsyna'?h[G(0x1ea)]?i(j['value']):k(l[G(0x21e)])[G(0x201)](m,n):j(d['throw'](k));}catch(m){G(0x226)===G(0x1df)?c(d):g(m);}}function j(k){const H=a66d;if(H(0x215)===H(0x1e1))return f instanceof g?h:new i(function(m){m(k);});else k[H(0x1ea)]?f(k[H(0x21e)]):e(k[H(0x21e)])[H(0x201)](h,i);}j((d=d[I(0x22f)](a,b||[]))['next']());});};import{camelCase,paramCase,pascalCase}from'change-case';import a66u from'../generators/maka.gen.js';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator['create']({'name':'service','aliases':['svc'],'usage':a66E(0x22e),'description':a66E(0x1ff),'examples':[a66E(0x1e3)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const J=a66d;try{if(J(0x1e9)===J(0x1e9)){const c=this[J(0x21f)]['getProjectConfig']();this[J(0x21f)]['withValue'](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const K=J;if(K(0x1f1)!=='kukbe'){const d=this[K(0x21f)]['pathFromApp']({}),f=paramCase(b['resourceName']),g=paramCase(b[K(0x218)]);if(!b['type']){if(K(0x21c)===K(0x222))d(e[K(0x20c)](f));else{const l={'type':K(0x22b),'name':K(0x214),'message':'Service\x20Type','choices':[{'name':K(0x204),'value':K(0x1f0)}]},{serviceAnswer:m}=yield Actions[K(0x1ec)](l);m&&(K(0x1f6)!=='ZltMK'?b[K(0x22d)]=m:c[K(0x219)](d));}}const h={'name':pascalCase(b[K(0x218)]),'fileName':f,'camelCase':camelCase(b[K(0x218)]),'type':b[K(0x22d)],'engine':c[K(0x1f3)]['js'],'noRename':!![]};let i='js';c[K(0x1f3)]['js']==='tsx'&&(K(0x1ed)!==K(0x1ed)?c[K(0x22d)]=d:i='ts');let j=[K(0x1f0)];if(j[K(0x1fa)](h[K(0x22d)])<0x0){let p=h[K(0x22d)]?h['type']:'(blank)';Log[K(0x219)]('Invalid\x20type\x20'+p+K(0x1ee));return;}if(b['type']==='logger'){if('DvqqF'!==K(0x20d))d(e[K(0x217)](f));else{!this['fsi'][K(0x1f5)](K(0x1e8))&&(Log[K(0x20b)](K(0x1f2)),yield this[K(0x21f)]['installNpmPackage'](K(0x224),{'cwd':d}));if(!this[K(0x21f)][K(0x1e2)](K(0x1eb))){if(K(0x211)===K(0x211))Log['notice'](K(0x208)),yield this[K(0x21f)][K(0x209)](K(0x1eb),{'cwd':d});else{const z=g?function(){const L=K;if(z){const A=q[L(0x22f)](r,arguments);return s=null,A;}}:function(){};return l=![],z;}}let r=this[K(0x21f)][K(0x1fe)]({'pathParts':['imports','startup',K(0x20a),K(0x213),f+'.'+i]});this[K(0x21f)][K(0x216)]({'srcPath':K(0x21a),'destPath':r,'context':h,'config':c});const s=a66u[K(0x21d)](K(0x20f));s&&(yield s[K(0x228)]([g],{'where':K(0x1f4),'appPathPrefix':'lib','dir':''}));let t=this[K(0x21f)][K(0x1e5)]({'pathParts':[r]});const u=this['fsi'][K(0x1e5)]({'pathParts':[K(0x229)]});this[K(0x21f)][K(0x1f9)]({'filePath':t,'content':K(0x20e)+u+'\x27;'});let v=this[K(0x21f)][K(0x1fe)]({'pathParts':[K(0x22c),'startup','lib',K(0x213),'logger-transports.'+i]});this[K(0x21f)][K(0x216)]({'srcPath':K(0x1e7),'destPath':v,'context':h,'config':c});let w=this['fsi']['rewriteDestinationPathForType']({'pathParts':[v]});const x=this[K(0x21f)]['rewriteDestinationPathForType']({'pathParts':[K(0x221)]});this[K(0x21f)][K(0x1f9)]({'filePath':w,'content':K(0x205)+x+'\x27;'});}}}else try{i(j['throw'](k));}catch(A){m(A);}}));}else b='ts';}catch(f){Log[J(0x219)](f);}});});function a66c(){const M=['rewriteDestinationPathForType','472nnMzAu','service/logger/transports.js','winston','FJSPT','done','mongo','options','sOrZF',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument.\x20\x20Usage:','YpTUg','logger','kggxc','Verifying\x20npm\x20package\x20requirements:\x20winston\x20...','engines','both','checkNpmPackage','ysJDM','constructor','8295AbBzEJ','injectAtBeginningOfFile','indexOf','eyrWa','Invalid\x20type\x20','znrFF','pathFromApp','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','__awaiter','then','GtEdL','1879140foYyEe','Winston\x20Logger','import\x20Logs\x20from\x20\x27','303463cNnvsl','8zhmddb','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','installMeteorPackage','lib','warn','next','DvqqF','import\x20{\x20MongoTransport\x20}\x20from\x20\x27','collection','639205KQieBO','FdzPU','riCNa','services','serviceAnswer','HKIZu','template','throw','resourceName','error','service/logger/logger.js','2312406zkRHgM','DeXlW','findGenerator','value','fsi','bsyna','/imports/startup/lib/collections/logs','znLyp','OTSDu','winston\x20winston-transport\x20setimmediate','241594RYPCeX','blwmX','toString','invoke','/imports/startup/lib/services/logger-transports','(((.+)+)+)+$','list','imports','type','maka\x20{generate,\x20g}:{service}\x20<service-name>\x20--type=logger','apply','miEjT','search','ZnpwL','checkMeteorPackage','maka\x20g:s\x20Logger\x20--type=logger','228756qIoSQt'];a66c=function(){return M;};return a66c();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){var u=a67d,c=a();while(!![]){try{var d=parseInt(u(0xa8))/0x1+parseInt(u(0xa3))/0x2+parseInt(u(0x9f))/0x3*(-parseInt(u(0xa5))/0x4)+parseInt(u(0xa7))/0x5+-parseInt(u(0x9e))/0x6*(parseInt(u(0xa6))/0x7)+-parseInt(u(0xa9))/0x8*(parseInt(u(0x9c))/0x9)+-parseInt(u(0xa0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xb28af));function a67c(){var w=['953928aNpZAw','8mIIDDc','10287441vBrphT','(((.+)+)+)+$','25062dtWCGT','45sGqLgu','4371080xPaWYN','search','constructor','2485600dBTVVe','toString','4308kTWCDp','1442WjfHlK','4956785bpFTnF'];a67c=function(){return w;};return a67c();}var a67b=(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;};}()),a67a=a67b(this,function(){var v=a67d;return a67a[v(0xa4)]()['search'](v(0x9d))['toString']()[v(0xa2)](a67a)[v(0xa1)]('(((.+)+)+)+$');});function a67d(a,b){var c=a67c();return a67d=function(d,e){d=d-0x9c;var f=c[d];return f;},a67d(a,b);}a67a();import'./translation.js';
|