@maka/maka-cli 4.5.25 → 4.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/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/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/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/templates/react/hook/hook.js.jsx +1 -1
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/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 a95k=a95d;(function(a,b){const h=a95d,c=a();while(!![]){try{const d
|
|
1
|
+
const a95k=a95d;function a95c(){const n=['constructor','647328bztQad','1554fVTWAz','settings.json','12662wFgJUc','appName','apply','24JmbSAZ','754640DttWLd','resourceName','fsi','maka\x20g:config\x20production','toString','ubuntu','7428UXBxVT','(((.+)+)+)+$','template','development','pathFromProject','getProjectConfig','isDocker','config','1118530wolCFn','search','config/process.env','616428pnmUAn','804576KSUeET'];a95c=function(){return n;};return a95c();}(function(a,b){const h=a95d,c=a();while(!![]){try{const d=parseInt(h(0xf1))/0x1*(-parseInt(h(0xee))/0x2)+parseInt(h(0xe9))/0x3+parseInt(h(0xf2))/0x4+parseInt(h(0xe5))/0x5+parseInt(h(0xf8))/0x6*(-parseInt(h(0xec))/0x7)+-parseInt(h(0xeb))/0x8+parseInt(h(0xe8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x3aeca));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a95d;if(c){const e=c[i(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const j=a95d;return a95a[j(0xf6)]()[j(0xe6)](j(0xde))[j(0xf6)]()[j(0xea)](a95a)[j(0xe6)](j(0xde));});a95a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xde;let f=c[d];return f;},a95d(a,b);}Generator['create']({'name':a95k(0xe4),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':'Generate\x20configuration\x20settings.','validOpts':['isDocker'],'examples':[a95k(0xf5)]},function(a,b){const l=a95k,c=this[l(0xf4)][l(0xe2)]();this[l(0xf4)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0xef)],'appFileCase':paramCase(c[m(0xef)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0xf3)]),'camelCase':camelCase(b[m(0xf3)]),'userName':m(0xf7),'isDocker':b[m(0xe3)]};let e=a[0x0];if(e==='dev')e=m(0xe0);else e==='prod'&&(e='production');const f=this[m(0xf4)]['pathFromProject']({'pathParts':[m(0xe4),e,m(0xed)]});this['fsi'][m(0xdf)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0xe3)]){const g=this['fsi'][m(0xe1)]({'pathParts':['config',e,'process.env']});this[m(0xf4)][m(0xdf)]({'srcPath':m(0xe7),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a96q=a96d;(function(a,b){const n=a96d,c=a();while(!![]){try{const d
|
|
1
|
+
function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x7c;let f=c[d];return f;},a96d(a,b);}const a96q=a96d;(function(a,b){const n=a96d,c=a();while(!![]){try{const d=parseInt(n(0x88))/0x1*(-parseInt(n(0x91))/0x2)+-parseInt(n(0xb5))/0x3+parseInt(n(0x8c))/0x4*(parseInt(n(0x83))/0x5)+-parseInt(n(0x98))/0x6+-parseInt(n(0x97))/0x7*(-parseInt(n(0xa5))/0x8)+parseInt(n(0xa0))/0x9+parseInt(n(0x7e))/0xa*(parseInt(n(0xa6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xa7676));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a96d;if(c){const e=c[o(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const p=a96d;return a96a['toString']()[p(0x82)]('(((.+)+)+)+$')[p(0xa3)]()['constructor'](a96a)['search'](p(0xa4));});a96a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a96c(){const t=['284FQcPxr','startup','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','getProjectConfig','Invalid\x20type\x20','46jlujYK','dbAnswer','tsx','dbc/register-dbc.js','server','register-','3355919nsvnXJ','3464544rhNCWv','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','resourceName','config.','template','apply','error','1735344OuLula','maka\x20g:dbc\x20todos\x20--type=sqlite','pathFromApp','toString','(((.+)+)+)+$','8zmqviP','14369663upLFin','-dbc\x27;','better-sqlite3','options','(blank)','-dbc.','injectAtEndOfFile','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','withValue','imports','MS\x20SQL','fsi','warn','dbc','create','1587936oreIoL','type','pgsql','10kDskBG','sqlite','DB\x20Driver','installNpmPackage','search','6025VIRRWW','mssql','PostgreSQL','checkNpmPackage','engines','11813RhTMuQ','dir','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','dbc/config.js'];a96c=function(){return t;};return a96c();}Generator[a96q(0xb4)]({'name':a96q(0xb3),'usage':a96q(0xad),'shortDesc':a96q(0x8a),'validOpts':[a96q(0x7c),a96q(0x89)],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20g:dbc\x20azure\x20--type=mssql',a96q(0xa1)]},async function(a,b){const r=a96q;try{const c=await this[r(0xb1)][r(0x8f)](),d=this[r(0xb1)][r(0xa2)]({}),f=paramCase(b[r(0x9b)]);if(!b[r(0x7c)]){const h={'type':'list','name':r(0x92),'message':r(0x80),'choices':[{'name':r(0x85),'value':r(0x7d)},{'name':r(0xb0),'value':r(0x84)}]},{dbAnswer:i}=await Actions[r(0xa9)](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0x9b)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0x9b)]),'type':b['type'],'engine':c[r(0x87)]['js'],'noRename':!![]};this[r(0xb1)][r(0xae)](c,async()=>{const s=r;let j='js';c[s(0x87)]['js']===s(0x93)&&(j='ts');const k=[s(0x84),s(0x7d)];if(k['indexOf'](g[s(0x7c)])<0x0){const m=g[s(0x7c)]?g[s(0x7c)]:s(0xaa);Log[s(0x9f)](s(0x90)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x7c)]===s(0x7d)&&!this[s(0xb1)][s(0x86)]('pg')&&(Log[s(0xb2)](s(0x9a)),await this[s(0xb1)]['installNpmPackage']('pg',{'cwd':d}));b[s(0x7c)]===s(0x84)&&!this[s(0xb1)][s(0x86)](s(0x84))&&(Log[s(0xb2)](s(0x8e)),await this[s(0xb1)][s(0x81)](s(0x84),{'cwd':d}));b['type']===s(0x7f)&&!this['fsi'][s(0x86)](s(0xa8))&&(Log['warn'](s(0x99)),await this[s(0xb1)][s(0x81)](s(0xa8),{'cwd':d}));this[s(0xb1)][s(0x9d)]({'srcPath':s(0x8b),'destPath':this['fsi'][s(0xa2)]({'pathParts':[s(0xaf),s(0x8d),'server','dbc',b['dir'],f,s(0x9c)+j]}),'context':g,'config':c}),this[s(0xb1)][s(0x9d)]({'srcPath':'dbc/conn.js','destPath':this[s(0xb1)][s(0xa2)]({'pathParts':[s(0xaf),s(0x8d),s(0x95),s(0xb3),b[s(0x89)],f,'conn.'+j]}),'context':g,'config':c}),this['fsi'][s(0x9d)]({'srcPath':s(0x94),'destPath':this['fsi']['pathFromApp']({'pathParts':['imports',s(0x8d),'server',s(0x96)+f+s(0xab)+j]}),'context':g,'config':c});const l=this[s(0xb1)][s(0xa2)]({'pathParts':[s(0xaf),'startup','server','index.'+c[s(0x87)]['js']]});this['fsi'][s(0xac)]({'filePath':l,'content':'import\x20\x27./register-'+f+s(0xa7)});});}catch(j){Log[r(0x9f)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97i=a97d;(function(a,b){const f=a97d,c=a();while(!![]){try{const d
|
|
1
|
+
const a97i=a97d;(function(a,b){const f=a97d,c=a();while(!![]){try{const d=parseInt(f(0x193))/0x1+-parseInt(f(0x192))/0x2*(-parseInt(f(0x19c))/0x3)+-parseInt(f(0x197))/0x4*(-parseInt(f(0x198))/0x5)+parseInt(f(0x1a3))/0x6*(parseInt(f(0x18a))/0x7)+-parseInt(f(0x185))/0x8*(-parseInt(f(0x19e))/0x9)+-parseInt(f(0x18b))/0xa+parseInt(f(0x187))/0xb*(-parseInt(f(0x186))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xd0b69));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a97d;if(c){const e=c[g(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const h=a97d;return a97a[h(0x199)]()['search']('(((.+)+)+)+$')[h(0x199)]()[h(0x18e)](a97a)[h(0x188)](h(0x183));});a97a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a97e from'path';Generator[a97i(0x18c)]({'name':a97i(0x191),'usage':a97i(0x196),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a97i(0x189)]},async function(){const j=a97i;try{const a=await this['fsi']['getProjectConfig'](),b=await this[j(0x184)]['getGlobalConfig'](),c=this[j(0x184)]['findProjectDirectory']();this['fsi']['withValue'](a,async()=>{const k=j,d={'app':b[k(0x194)],'config':a,'appPath':a97e[k(0x1a1)](c,k(0x19f)),'bundlePath':a97e[k(0x1a1)](c,'build',k(0x195)),'useCert':this[k(0x184)][k(0x1a2)](b[k(0x190)])};this['fsi'][k(0x1a0)]({'srcPath':k(0x18f),'destPath':a97e[k(0x1a1)](c,k(0x19b)),'framework':k(0x18d),'context':d,'config':a});});}catch(d){Log[j(0x19a)](d);}});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x183;let f=c[d];return f;},a97d(a,b);}function a97c(){const l=['Dockerfile','2565ItkBJT','apply','100944tWpcrV','app','template','join','isFile','12vfLOKa','(((.+)+)+)+$','fsi','128tHXDEB','9794628iGBBmM','55LCnfWr','search','maka\x20g:dockerfile','3997826uyXoeh','2831400ZzkYap','create','service','constructor','docker/Dockerfile','cert','dockerfile','3966CsUgYT','1319289yzliHw','appName','app.tar.gz','maka\x20{generate,\x20g}:dockerfile','13476IqBjCb','1310lXnkKY','toString','error'];a97c=function(){return l;};return a97c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98q=a98d;
|
|
1
|
+
const a98q=a98d;(function(a,b){const o=a98d,c=a();while(!![]){try{const d=-parseInt(o(0xd3))/0x1*(parseInt(o(0xe1))/0x2)+-parseInt(o(0xbc))/0x3+parseInt(o(0xba))/0x4*(-parseInt(o(0xbd))/0x5)+-parseInt(o(0xca))/0x6+-parseInt(o(0xc5))/0x7*(parseInt(o(0xa8))/0x8)+-parseInt(o(0xcf))/0x9+parseInt(o(0xdc))/0xa*(parseInt(o(0xc0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x195d7));const a98b=(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;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0xb7)]()['search']('(((.+)+)+)+$')[p(0xb7)]()[p(0xac)](a98a)[p(0xa9)](p(0xe2));});function a98c(){const t=['fileName','constructor','error','rewriteDestinationPathForEngine','cssCaseName','assign','string','\x20};\x0a','.js','theme','pathFromApp','templates.js','toString','getProjectConfig','startup','4848VrwtmL','true','52677uCoIDy','330vqIpuy','engines','.css','11iNQEsi','setTemplate','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','import\x20\x27','test','1995epgweY','css','withValue','className','ssr','999432ZVEvQE','installNpmPackage','tsx','warn','pathFromProject','1386765pgXcVs','imports','checkNpmPackage','template','15MbuqFh','@apollo/client','.app-tests.js','maka\x20g:hook\x20cool-hook','injectAtBeginningOfFile','\x27;\x0a','import\x20\x27./','apollo','hook/hook.js','8308180mFGkMq','test/test.js','client','dir','fsi','26152AKIVAa','(((.+)+)+)+$','export\x20{\x20','resourceName','none','import\x20{\x20','graphql','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','/imports/ui/hooks','injectAtEndOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','3160GLeNhY','search','react'];a98c=function(){return t;};return a98c();}function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xa7;let f=c[d];return f;},a98d(a,b);}a98a();import a98e 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['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a98q(0xc2),'shortDesc':a98q(0xe9),'validOpts':['dir'],'examples':[a98q(0xd6)]},async function(a,b){const r=a98q;try{const c=this[r(0xe0)][r(0xd1)](r(0xaa));if(!c){Log['error'](r(0xe8));throw new UsageError();}const d=this[r(0xe0)][r(0xb5)](b),f=r(0xea),g=this['fsi'][r(0xb5)]({'pathParts':[f,b[r(0xdf)],paramCase(b['resourceName']),paramCase(b[r(0xe4)])]}),h=await this['fsi'][r(0xb8)]();this['fsi'][r(0xc7)](h,async()=>{const s=r;typeof h[s(0xd2)][s(0xc6)]===s(0xb1)&&(h['template'][s(0xc6)]=h[s(0xd2)][s(0xc6)]===s(0xbb)?!![]:![],this[s(0xe0)][s(0xc1)](s(0xc6),h['template']['css']));h[s(0xbe)]['graphql']===s(0xda)&&!this[s(0xd1)](s(0xd4))&&(Log[s(0xcd)](s(0xa7)),await this['fsi'][s(0xcb)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[s(0xe4)]),'className':pascalCase(b[s(0xe4)]),'name':pascalCase(b[s(0xe4)]),'graphql':h[s(0xbe)][s(0xe7)],'theme':h[s(0xbe)][s(0xb4)],'features':h['features'],'myPath':a98e['relative'](this[s(0xe0)][s(0xce)]({}),g),'fileName':paramCase(b[s(0xe4)]),'isComponent':![],'isLayout':![],'withTranslations':h['features']['withTranslations']};this['fsi'][s(0xd2)]({'srcPath':s(0xdb),'destPath':g+s(0xb3),'context':i,'config':h,'framework':s(0xaa)});h[s(0xd2)]['css']&&(this[s(0xe0)][s(0xd2)]({'srcPath':'template/template.css','destPath':g+s(0xbf),'context':Object[s(0xb0)]({},i,{'className':i[s(0xaf)]}),'config':h}),this[s(0xe0)][s(0xd7)]({'filePath':g+'.'+h[s(0xbe)]['js'],'content':s(0xd9)+i[s(0xab)]+'.'+h[s(0xbe)][s(0xc6)]+'\x27;'}));h[s(0xbe)][s(0xc4)]!==s(0xe5)&&this[s(0xe0)]['template']({'srcPath':s(0xdd),'destPath':g+s(0xd5),'framework':s(0xaa),'context':i,'config':h});const j=b[s(0xdf)]?'/'+b[s(0xdf)]+'/':'/',k=''+f+j+i[s(0xab)]+'/'+i[s(0xab)];let l;if(h[s(0xbe)][s(0xc9)]===s(0xbb)){const m=this[s(0xe0)][s(0xb5)]({'pathParts':[s(0xd0),'startup','lib',s(0xb6)]});l=this['fsi'][s(0xae)]({'pathParts':[m],'config':h});}else{const n=this[s(0xe0)]['pathFromApp']({'pathParts':[s(0xd0),s(0xb9),s(0xde),s(0xb6)]});l=this[s(0xe0)][s(0xae)]({'pathParts':[n],'config':h});}h[s(0xbe)][s(0xde)]==='react'?(h[s(0xbe)]['js']===s(0xcc)?this['fsi']['injectAtBeginningOfFile']({'filePath':l,'content':s(0xe6)+i[s(0xc8)]+'\x20}\x20from\x20\x27'+k+'\x27;\x0a'}):this[s(0xe0)]['injectAtBeginningOfFile']({'filePath':l,'content':s(0xe6)+i[s(0xc8)]+'\x20}\x20from\x20\x27'+k+'.'+h[s(0xbe)]['js']+s(0xd8)}),this[s(0xe0)][s(0xeb)]({'filePath':l,'content':s(0xe3)+i[s(0xc8)]+s(0xb2)})):this[s(0xe0)][s(0xeb)]({'filePath':l,'content':s(0xc3)+k+'.'+h[s(0xbe)]['js']+s(0xd8)});});}catch(i){Log[r(0xad)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99k=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-
|
|
1
|
+
const a99k=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x6f;let f=c[d];return f;},a99d(a,b);}(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x80))/0x1+-parseInt(h(0x87))/0x2+-parseInt(h(0x71))/0x3+-parseInt(h(0x77))/0x4+parseInt(h(0x83))/0x5*(-parseInt(h(0x73))/0x6)+parseInt(h(0x86))/0x7+-parseInt(h(0x8a))/0x8*(-parseInt(h(0x76))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x8b664));function a99c(){const n=['5740308JghcLl','354344xpxZbO','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','13367320ZUfOYT','notice','type','error','toString','2261307PnOZsT','create','45636HSzxey','withValue','login','9SCGeiA','1553232tmXDTP','resourceName','fsi','map','maka\x20g:k\x20city-map\x20--type=leaflet-map','(blank)','getProjectConfig','engines','apply','228324vELkQo','constructor','Invalid\x20type\x20','545hgdCrY','leaflet-map','maka\x20g:kit\x20--type=map'];a99c=function(){return n;};return a99c();}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a['toString']()['search'](j(0x88))[j(0x70)]()[j(0x81)](a99a)['search'](j(0x88));});a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0x72)]({'name':'kit','aliases':['k'],'usage':a99k(0x89),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a99k(0x8c)],'examples':[a99k(0x85),a99k(0x7b)]},async function(a,b){const l=a99k;try{const c=this[l(0x79)][l(0x7d)]();this['fsi'][l(0x74)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x78)]),'fileName':paramCase(b[m(0x78)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0x8c)],'engine':c[m(0x7e)]['js'],'noRename':!![]},f=[m(0x84),m(0x75)];if(f['indexOf'](d['type'])<0x0){const g=d[m(0x8c)]?d['type']:m(0x7c);Log[m(0x6f)](m(0x82)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0x8c)]===m(0x7a)&&Log[m(0x8b)]('NIE'),b['type']===m(0x75)&&Log[m(0x8b)]('NIE');});}catch(d){Log[l(0x6f)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100r=a100d;(function(a,b){const o=a100d,c=a();while(!![]){try{const d=parseInt(o(0xa4))/0x1+-parseInt(o(0xb6))/0x2*(parseInt(o(0xaf))/0x3)+parseInt(o(0xb3))/0x4+parseInt(o(0xca))/0x5+-parseInt(o(0x95))/0x6*(-parseInt(o(0x9b))/0x7)+-parseInt(o(0xa7))/0x8*(-parseInt(o(0xc9))/0x9)+-parseInt(o(0xab))/0xa*(parseInt(o(0xae))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x3fa23));function a100c(){const u=['test/test.js','test','toString','\x20}\x20from\x20\x27','layout','react','import\x20\x27./','pathFromApp','withHooks','6LXJmPG','.css','template/template.css','rewriteDestinationPathForEngine','none','engines','1813217IZvTRd','installNpmPackage','dir','features','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','withTranslations','export\x20{\x20','css','.js','255347tgeIzv','ramda','resourceName','28856lcvsMy','split','tsx','imports','1067290VxmrId','hook/hook.js','\x27;\x0a','77llyGYr','81NBGhYg','client','constructor','pathFromProject','206616ZOkgWY','withValue','injectAtEndOfFile','11404yweWAO','.app-tests.js','graphql','maka\x20g:l\x20web/safari','import\x20{\x20','withHook','className','string','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','true','checkNpmPackage','relative','template','setTemplate','apply','create','injectAtBeginningOfFile','Scaffolding\x20for\x20a\x20React\x20Layout.','findAppDirectory','1269vYKuOz','435405UoyqHH','component/component.js','templates.js','getProjectConfig','fsi','search','startup'];a100c=function(){return u;};return a100c();}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a100d;if(c){const e=c[p(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const q=a100d;return a100a['toString']()[q(0xcf)]('(((.+)+)+)+$')[q(0xd3)]()[q(0xb1)](a100a)['search']('(((.+)+)+)+$');});a100a();import a100e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x91;let f=c[d];return f;},a100d(a,b);}Generator[a100r(0xc5)]({'name':a100r(0xd5),'aliases':aliases,'usage':a100r(0x9f),'shortDesc':a100r(0xc7),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8',a100r(0xb9)]},function(a,b){const s=a100r,c='/imports/ui/layouts',d=this[s(0xce)][s(0xc8)](),e=this['fsi'][s(0x93)]({'pathParts':[c,b[s(0x9d)],paramCase(b[s(0xa6)]),paramCase(b[s(0xa6)])]}),f=this['fsi'][s(0xcd)]();this[s(0xce)][s(0xb4)](f,()=>{const t=s;typeof f[t(0xc2)][t(0xd2)]===t(0xbd)&&(f[t(0xc2)][t(0xd2)]=f[t(0xc2)]['test']==='true'?!![]:![],this[t(0xce)][t(0xc3)](t(0xd2),f['template'][t(0xd2)]));typeof f['template']['css']==='string'&&(f[t(0xc2)][t(0xa2)]=f['template'][t(0xa2)]===t(0xbf)?!![]:![],this['fsi'][t(0xc3)](t(0xa2),f[t(0xc2)][t(0xa2)]));typeof f[t(0xc2)]['js']===t(0xbd)&&(f[t(0xc2)]['js']=f[t(0xc2)]['js']===t(0xbf)?!![]:![],this[t(0xce)][t(0xc3)]('js',f[t(0xc2)]['js']));!f[t(0x9e)]&&(f[t(0x9e)]={});const g=b['_']?b['_'][0x0][t(0xa8)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](t(0xa5))&&(Log['warn'](t(0xbe)),this['fsi'][t(0x9c)](t(0xa5),{'cwd':d}));if(h&&!this[t(0xc0)]('react')){Log['warn']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0xa6)]),'myPath':a100e[t(0xc1)](this['fsi'][t(0xb2)]({}),e),'cssCaseName':paramCase(b[t(0xa6)]),'className':pascalCase(b[t(0xa6)]),'camelCaseName':camelCase(b[t(0xa6)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x9a)][t(0xb8)],'features':f[t(0x9e)],'client':f[t(0x9a)][t(0xb0)],'api':f[t(0x9a)]['api'],'ssr':f['engines']['ssr'],'test':f[t(0x9a)][t(0xd2)],'theme':f['engines']['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][t(0xa0)]};f['features']?.[t(0x94)]||b[t(0xbb)]?this[t(0xce)]['template']({'srcPath':t(0xac),'destPath':e+t(0xa3),'framework':t(0x91),'context':i,'config':f}):this[t(0xce)][t(0xc2)]({'srcPath':t(0xcb),'destPath':e+t(0xa3),'framework':'react','context':i,'config':f});f[t(0x9a)][t(0xd2)]!==t(0x99)&&this['fsi'][t(0xc2)]({'srcPath':t(0xd1),'destPath':e+t(0xb7),'framework':t(0x91),'context':i,'config':f});f['template'][t(0xa2)]&&(this[t(0xce)][t(0xc2)]({'srcPath':t(0x97),'destPath':e+t(0x96),'context':Object['assign']({},i,{'className':paramCase(b[t(0xa6)])}),'config':f}),this['fsi'][t(0xc6)]({'filePath':e+'.'+f[t(0x9a)]['js'],'content':t(0x92)+i['fileName']+'.'+f[t(0x9a)][t(0xa2)]+'\x27;'}));const j=b[t(0x9d)]?'/'+b[t(0x9d)]+'/':'/',k=''+c+j+i['fileName']+'/'+i['fileName'];let l;if(f[t(0x9a)]['ssr']==='true'){const m=this[t(0xce)]['pathFromApp']({'pathParts':[t(0xaa),t(0xd0),'lib','templates.js']});l=this[t(0xce)][t(0x98)]({'pathParts':[m],'config':f});}else{const n=this[t(0xce)][t(0x93)]({'pathParts':[t(0xaa),'startup',t(0xb0),t(0xcc)]});l=this[t(0xce)][t(0x98)]({'pathParts':[n],'config':f});}f[t(0x9a)]['client']===t(0x91)?(f['engines']['js']===t(0xa9)?this[t(0xce)][t(0xc6)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xbc)]+t(0xd4)+k+'\x27;\x0a'}):this[t(0xce)][t(0xc6)]({'filePath':l,'content':t(0xba)+i[t(0xbc)]+t(0xd4)+k+'.'+f[t(0x9a)]['js']+t(0xad)}),this[t(0xce)][t(0xb5)]({'filePath':l,'content':t(0xa1)+i['className']+'\x20};\x0a'})):this[t(0xce)][t(0xb5)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x9a)]['js']+t(0xad)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0x8b))/0x1+parseInt(f(0x8e))/0x2+parseInt(f(0x87))/0x3*(-parseInt(f(0x89))/0x4)+-parseInt(f(0x90))/0x5*(-parseInt(f(0x81))/0x6)+-parseInt(f(0x83))/0x7*(-parseInt(f(0x8c))/0x8)+-parseInt(f(0x86))/0x9+parseInt(f(0x8d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x887bc));function a101c(){const j=['300935ZUbQBu','9096pEgwaM','800670VRBwVO','11010amjMYS','apply','3560oXAYSw','maka\x20g:hook\x20cool-hook','constructor','(((.+)+)+)+$','toString','8742SJrHGm','\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','1757JDAYCV','maka','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','1696536iKBMsl','9VQDqKu','Maka!','479824fimuRr','search'];a101c=function(){return j;};return a101c();}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x8f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x80)]()[h(0x8a)](h(0x7f))[h(0x80)]()[h(0x7e)](a101a)[h(0x8a)]('(((.+)+)+)+$');});a101a();import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x7e;let f=c[d];return f;},a101d(a,b);}const MakaGen=new Generator({'name':a101i(0x84),'shortDesc':a101i(0x88),'validOpts':[],'description':a101i(0x82),'usage':a101i(0x85),'examples':['maka\x20generate:api\x20Trucks',a101i(0x91)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a102n=a102d;(function(a,b){const k=a102d,c=a();while(!![]){try{const d
|
|
1
|
+
const a102n=a102d;(function(a,b){const k=a102d,c=a();while(!![]){try{const d=parseInt(k(0xe0))/0x1+-parseInt(k(0xea))/0x2+-parseInt(k(0xde))/0x3*(-parseInt(k(0xe8))/0x4)+-parseInt(k(0xf3))/0x5+-parseInt(k(0xf4))/0x6+-parseInt(k(0xf6))/0x7*(-parseInt(k(0xec))/0x8)+parseInt(k(0xdb))/0x9*(parseInt(k(0xf5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x9cfd2));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a102d;if(c){const e=c[l(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const m=a102d;return a102a[m(0xfc)]()[m(0xf1)]('(((.+)+)+)+$')[m(0xfc)]()[m(0xe3)](a102a)['search'](m(0xf2));});function a102c(){const q=['constructor','ddp-rate-limiter','maka\x20g:method\x20todos','dir','method','4cITbkH','resourceName','2263968KeOnqx','appPathPrefix','2024YDeoyi','pathFromApp','methods','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','template','search','(((.+)+)+)+$','1623180NRDXLw','212352qDwdWD','36060QDIYXf','18508cNezYU','fsi','-rpc-method.','engines','apply','imports','toString','create','check\x20ddp-rate-limiter\x20mdg:validated-method','installMeteorPackage','3330pQOSBG','checkMeteorPackage','maka\x20{generate,\x20g}:{method,\x20m}\x20name','221817hsFaUF','import\x20\x27./methods','57947BxjVno','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','withValue'];a102c=function(){return q;};return a102c();}a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0xd9;let f=c[d];return f;},a102d(a,b);}Generator[a102n(0xfd)]({'name':a102n(0xe7),'aliases':['m'],'usage':a102n(0xdd),'checkWhere':!![],'shortDesc':a102n(0xef),'validOpts':[a102n(0xe6)],'examples':[a102n(0xe5)]},function(a,b){const o=a102n;try{const c=this['fsi']['getProjectConfig']();this['fsi'][o(0xe2)](c,async()=>{const p=o,d=paramCase(b[p(0xe9)]),f={'name':b[p(0xe9)],'fileName':d,'className':pascalCase(b[p(0xe9)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0xf9)]['js']==='tsx'&&(g='ts');const h=this[p(0xf7)][p(0xed)]({});(!this[p(0xf7)][p(0xdc)]('check')||!this[p(0xf7)]['checkMeteorPackage'](p(0xe4))||!this['fsi']['checkMeteorPackage']('mdg:validated-method'))&&(Log['warn'](p(0xe1)),this[p(0xf7)][p(0xda)](p(0xd9),{'cwd':h}));this[p(0xf7)][p(0xf0)]({'srcPath':'method/method.js','destPath':this[p(0xf7)]['pathFromApp']({'pathParts':[p(0xfb),'startup',b[p(0xeb)],p(0xee),b[p(0xe6)],d+p(0xf8)+g]}),'context':f,'config':c});const i=b[p(0xe6)]?'/'+b['dir']+'/':'/',j=this['fsi'][p(0xed)]({'pathParts':['imports','startup',b['appPathPrefix'],'index.'+c[p(0xf9)]['js']]});this[p(0xf7)]['injectAtEndOfFile']({'filePath':j,'content':p(0xdf)+i+d+'-rpc-method\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103n=a103d;
|
|
1
|
+
const a103n=a103d;(function(a,b){const l=a103d,c=a();while(!![]){try{const d=-parseInt(l(0xac))/0x1*(parseInt(l(0x93))/0x2)+-parseInt(l(0x94))/0x3+parseInt(l(0x9f))/0x4*(-parseInt(l(0x99))/0x5)+-parseInt(l(0x7d))/0x6*(-parseInt(l(0x86))/0x7)+parseInt(l(0xa4))/0x8+-parseInt(l(0x87))/0x9+-parseInt(l(0x95))/0xa*(-parseInt(l(0x90))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xcbae7));const a103b=(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;};}()),a103a=a103b(this,function(){const m=a103d;return a103a[m(0x85)]()[m(0xa2)](m(0xa8))[m(0x85)]()[m(0x80)](a103a)[m(0xa2)](m(0xa8));});function a103c(){const r=['2580360jyVUvo','34630updCaB','/package.js','template/template.js','engines','166245iAzekX','tests/server','create','forEach','graphql','relative','160xwLvkY','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','layout','search','fsi','9444264YCNisR','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','template','resourceName','(((.+)+)+)+$','pathFromApp','pathFromAppWithNoReWrite','lib','7RGeHHA','6MaBXWO','withValue','/client/','constructor','packages','component','package','dir','toString','161021JSreQX','6728751OtzGFf','hasOwnProperty','pathFromProject','noRename','package/package.js','server','client','features','.js','10505uDEKoA','package.js','package/','211058QseIOA'];a103c=function(){return r;};return a103c();}a103a();import a103e from'path';import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x7d;let f=c[d];return f;},a103d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103n(0x9b)]({'name':a103n(0x83),'aliases':['p'],'usage':a103n(0xa5),'shortDesc':a103n(0xa0),'validOpts':[a103n(0x84)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const o=a103n,c=paramCase(b['resourceName']),d=this[o(0xa3)][o(0xa9)]({'pathParts':[o(0x81),b[o(0x84)],c]}),e=this['fsi'][o(0xaa)]({'pathParts':['packages',b[o(0x84)],c,o(0x91)]}),f=this[o(0xa3)]['getProjectConfig']();this[o(0xa3)][o(0x7e)](f,async()=>{const p=o,g={'name':paramCase(b[p(0xa7)]),'myPath':a103e[p(0x9e)](this['fsi'][p(0x89)]({}),d),'cssCaseName':paramCase(b[p(0xa7)]),'className':pascalCase(b[p(0xa7)]),'camelCaseName':camelCase(b[p(0xa7)]),'fileName':c,'client':f[p(0x98)][p(0x8d)],'graphql':f['engines'][p(0x9d)],'ssr':f[p(0x98)]['ssr'],'isComponent':b[p(0x88)](p(0x82)),'isLayout':b[p(0x88)](p(0xa1)),'isStore':b[p(0x88)]('store'),'features':f[p(0x8e)],'noRename':!![],'theme':f[p(0x98)]['theme']};this[p(0xa3)][p(0xa6)]({'srcPath':p(0x8b),'destPath':e,'context':g,'config':f}),g[p(0x8a)]=![];const h=d+p(0x7f)+c+p(0x8f);this[p(0xa3)][p(0xa6)]({'srcPath':p(0x97),'destPath':h,'context':g,'config':f});const i=[p(0xab),p(0x8c),'tests/client',p(0x9a)];i[p(0x9c)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x8f);this[q(0xa3)]['template']({'srcPath':q(0x92)+j+q(0x96),'destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a104o=a104d;(function(a,b){const m=a104d,c=a();while(!![]){try{const d=-parseInt(m(0x12e))/0x1*(parseInt(m(0x10f))/0x2)+parseInt(m(0x10d))/0x3+-parseInt(m(0xfd))/0x4*(-parseInt(m(0x111))/0x5)+-parseInt(m(0xf3))/0x6+-parseInt(m(0x123))/0x7*(-parseInt(m(0x105))/0x8)+parseInt(m(0xf4))/0x9*(parseInt(m(0x103))/0xa)+parseInt(m(0x125))/0xb*(parseInt(m(0x113))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x62839));function a104c(){const r=['5McuwuY','templates.js','6024wBpyRI','.html','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','injectAtEndOfFile','component','string','setTemplate','injectAtBeginningOfFile','pathFromApp','withHooks','graphql','theme','className','imports','installNpmPackage','.css','9730UKJWNp','withValue','8107rVjPYP','true','test','hasOwnProperty','client','withHook','/imports/ui/pages','import\x20\x27./','withTranslations','146GeKUTl','rewriteDestinationPathForEngine','toString','\x20};\x0a','search','Updating\x20npm\x20packages\x20...','store','fileName','ramda','vanilla','react','engines','ssr','\x27;\x0a','create','dir','1137330FqBnAO','2095083lzxpID','startup','template/template.html','.js','none','lib','\x20}\x20from\x20\x27','relative','html','883836YVEraY','warn','pathFromProject','css','checkNpmPackage','template','10rlQnNX','resourceName','2704zwZvcc','Generate\x20a\x20page.','fsi','page','template/template.css','features','import\x20\x27','export\x20{\x20','149904TxzxfS','constructor','10280uKdIna','import\x20{\x20'];a104c=function(){return r;};return a104c();}const a104b=(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;};}()),a104a=a104b(this,function(){const n=a104d;return a104a[n(0x130)]()[n(0x132)]('(((.+)+)+)+$')['toString']()[n(0x10e)](a104a)[n(0x132)]('(((.+)+)+)+$');});a104a();import a104e 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'];function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xe8;let f=c[d];return f;},a104d(a,b);}Generator[a104o(0xf1)]({'name':a104o(0x108),'aliases':aliases,'usage':a104o(0x115),'shortDesc':a104o(0x106),'validOpts':[a104o(0xf2),'withHook'],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const p=a104o,c=p(0x12b),d=this['fsi'][p(0x11b)](b),e=this[p(0x107)][p(0x11b)]({'pathParts':[c,b[p(0xf2)],paramCase(b[p(0x104)]),paramCase(b[p(0x104)])]}),f=this[p(0x107)]['getProjectConfig']();this[p(0x107)][p(0x124)](f,()=>{const q=p;typeof f[q(0x102)][q(0xfc)]===q(0x118)&&(f[q(0x102)][q(0xfc)]=f[q(0x102)][q(0xfc)]===q(0x126)?!![]:![],this[q(0x107)][q(0x119)]('html',f[q(0x102)][q(0xfc)]));typeof f[q(0x102)][q(0x127)]===q(0x118)&&(f[q(0x102)][q(0x127)]=f[q(0x102)][q(0x127)]===q(0x126)?!![]:![],this[q(0x107)][q(0x119)](q(0x127),f['template'][q(0x127)]));typeof f['template']['css']===q(0x118)&&(f[q(0x102)][q(0x100)]=f[q(0x102)]['css']===q(0x126)?!![]:![],this[q(0x107)][q(0x119)](q(0x100),f[q(0x102)][q(0x100)]));typeof f[q(0x102)]['js']===q(0x118)&&(f[q(0x102)]['js']=f[q(0x102)]['js']===q(0x126)?!![]:![],this[q(0x107)][q(0x119)]('js',f['template']['js']));!f[q(0x10a)]&&(f[q(0x10a)]={});!b['root']&&!this[q(0x107)][q(0x101)](q(0xeb))&&(Log[q(0xfe)](q(0xe8)),this[q(0x107)][q(0x121)](q(0xeb),{'cwd':d}));const g={'name':pascalCase(b[q(0x104)]),'myPath':a104e[q(0xfb)](this[q(0x107)][q(0xff)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x104)]),'camelCaseName':camelCase(b[q(0x104)]),'fileName':paramCase(b[q(0x104)]),'graphql':f[q(0xee)][q(0x11d)],'features':f['features'],'client':f[q(0xee)]['client'],'api':f[q(0xee)]['api'],'ssr':f['engines'][q(0xef)],'isStore':b[q(0x128)](q(0xe9)),'isComponent':b[q(0x128)](q(0x117)),'isLayout':b['hasOwnProperty']('layout'),'withTranslations':f[q(0x10a)][q(0x12d)],'test':f[q(0xee)][q(0x127)],'theme':f[q(0xee)][q(0x11e)]};f['template'][q(0xfc)]&&this[q(0x107)][q(0x102)]({'srcPath':q(0xf6),'destPath':e+q(0x114),'context':g,'config':f});f['features']?.[q(0x11c)]||b[q(0x12a)]?this[q(0x107)][q(0x102)]({'srcPath':'hook/hook.js','destPath':e+q(0xf7),'framework':q(0xed),'context':g,'config':f}):this[q(0x107)][q(0x102)]({'srcPath':'component/component.js','destPath':e+q(0xf7),'framework':q(0xed),'context':g,'config':f});f['engines'][q(0x127)]!==q(0xf8)&&this[q(0x107)][q(0x102)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':'react','context':g,'config':f});f[q(0x102)][q(0x100)]&&this['fsi']['template']({'srcPath':q(0x109),'destPath':e+q(0x122),'context':Object['assign']({},g,{'className':paramCase(b[q(0x104)])}),'config':f});f[q(0xee)][q(0x129)]!==q(0xed)&&f[q(0xee)][q(0x129)]!==q(0xec)?(f[q(0x102)][q(0x100)]&&this[q(0x107)][q(0x11a)]({'filePath':e+'.'+f[q(0xee)]['js'],'content':'import\x20\x27./'+g[q(0xea)]+'.'+f['engines'][q(0xfc)]+'\x27;\x0a'+q(0x12c)+g[q(0xea)]+'.'+f[q(0xee)][q(0x100)]+'\x27;'}),!f['template'][q(0x100)]&&this[q(0x107)][q(0x11a)]({'filePath':e+'.'+f[q(0xee)]['js'],'content':q(0x12c)+g['fileName']+'.'+f['engines'][q(0xfc)]+'\x27;'})):f[q(0x102)][q(0x100)]&&this[q(0x107)][q(0x11a)]({'filePath':e+'.'+f[q(0xee)]['js'],'content':q(0x12c)+g[q(0xea)]+'.'+f['engines']['css']+'\x27;'});const h=b['dir']?'/'+b[q(0xf2)]+'/':'/',i=''+c+h+g[q(0xea)]+'/'+g[q(0xea)];let j;if(f[q(0xee)][q(0xef)]===q(0x126)){const k=this[q(0x107)]['pathFromApp']({'pathParts':[q(0x120),q(0xf5),q(0xf9),q(0x112)]});j=this[q(0x107)][q(0x12f)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][q(0x11b)]({'pathParts':[q(0x120),q(0xf5),q(0x129),'templates.js']});j=this[q(0x107)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f['engines'][q(0x129)]===q(0xed)?(f[q(0xee)]['js']==='tsx'?this['fsi'][q(0x11a)]({'filePath':j,'content':q(0x110)+g[q(0x11f)]+'\x20}\x20from\x20\x27'+i+q(0xf0)}):this[q(0x107)]['injectAtBeginningOfFile']({'filePath':j,'content':q(0x110)+g['className']+q(0xfa)+i+'.'+f['engines']['js']+'\x27;\x0a'}),this[q(0x107)][q(0x116)]({'filePath':j,'content':q(0x10c)+g[q(0x11f)]+q(0x131)})):this[q(0x107)][q(0x116)]({'filePath':j,'content':q(0x10b)+i+'.'+f[q(0xee)]['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a105k=a105d;function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x168;let f=c[d];return f;},a105d(a,b);}(function(a,b){const h=a105d,c=a();while(!![]){try{const d=parseInt(h(0x16c))/0x1*(parseInt(h(0x175))/0x2)+-parseInt(h(0x184))/0x3*(-parseInt(h(0x179))/0x4)+-parseInt(h(0x170))/0x5*(-parseInt(h(0x17c))/0x6)+-parseInt(h(0x181))/0x7*(-parseInt(h(0x17e))/0x8)+parseInt(h(0x176))/0x9*(-parseInt(h(0x174))/0xa)+parseInt(h(0x16a))/0xb*(parseInt(h(0x16e))/0xc)+-parseInt(h(0x178))/0xd*(parseInt(h(0x180))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x3cf17));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a105d;if(c){const e=c[i(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const j=a105d;return a105a[j(0x17b)]()[j(0x17a)](j(0x17d))[j(0x17b)]()['constructor'](a105a)[j(0x17a)](j(0x17d));});a105a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a105c(){const n=['engines','9560paLHcN','create','server/publish.','templateContent','2307450FfXPGW','572eilJEm','9PCqwvI','apply','3809YYomTO','332152iqccAo','search','toString','1434FOPtif','(((.+)+)+)+$','8kDpnvq','fsi','50638dCvMBE','1322538WfsSqZ','resourceName','publish/publish.','12yMVCuj','getProjectConfig','rewriteDestinationPathForEngine','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','5137ytBsnn','maka\x20g:publish\x20todos','1033mZVpLI','injectAtEndOfFile','6852rtSTNz'];a105c=function(){return n;};return a105c();}Generator[a105k(0x171)]({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a105k(0x169),'validOpts':[],'examples':[a105k(0x16b)]},async function(a,b){const l=a105k,c=this[l(0x17f)][l(0x185)]();this[l(0x17f)]['withValue'](c,async()=>{const m=l,d={'name':b[m(0x182)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x16f)]['js']==='tsx'&&(e='ts');const f=this['fsi'][m(0x168)]({'pathParts':[m(0x172)+c[m(0x16f)]['js']]}),g=this[m(0x17f)][m(0x173)]({'srcPath':m(0x183)+e,'context':d,'config':c});this[m(0x17f)][m(0x16d)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x6b;let f=c[d];return f;},a106d(a,b);}const a106x=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0x6b))/0x1*(parseInt(v(0x77))/0x2)+parseInt(v(0x9a))/0x3*(-parseInt(v(0x7c))/0x4)+parseInt(v(0x9b))/0x5*(-parseInt(v(0xa6))/0x6)+-parseInt(v(0xa1))/0x7*(-parseInt(v(0xa2))/0x8)+-parseInt(v(0x79))/0x9*(parseInt(v(0xa5))/0xa)+parseInt(v(0x9f))/0xb*(parseInt(v(0xaf))/0xc)+parseInt(v(0x95))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x4e56e));const a106b=(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;};}()),a106a=a106b(this,function(){const w=a106d;return a106a['toString']()['search'](w(0x91))[w(0x6c)]()[w(0x6d)](a106a)[w(0x7b)](w(0x91));});a106a();import a106e from'path';function a106c(){const G=['root','newForm','true','maka\x20g:route\x20lists/listIndex\x20lists','cwd','length','routes.js','(((.+)+)+)+$','filter','only','engines','3496207DvYFNt','indexOf','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','pathFromApp','\x0a\x09\x09','15JaqWsb','70PdzYII','map','readFileLines','const\x20publicRoutes\x20=\x20(<>','6567363dDNNuR','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','2695pWGyni','8344szYbUE','config','ssr','44510TazDSL','167640VzezTf','fsi','private','injectAtEndOfFile','findGenerator','injectIntoFile','vanilla','features','startup','12fYKQLW','PrivateLayout','includes','invoke','8093TamriS','toString','constructor','lib','warn','MasterLayout','error','imports','url','\x22*\x22','route','templateContent','124pUkGYy','layout','900opFEhU','create','search','489724pojLMc','const\x20privateRoutes\x20=\x20(<>','withTranslations','maka\x20g:route\x20todosEdit\x20todos/:id/edit','react','injectAfterLineNumber','getProjectConfig','toLowerCase','/imports/ui/pages','rewriteDestinationPathForEngine','route/route.js','maka\x20g:route\x20todosIndex\x20todos','client','</Router>'];a106c=function(){return G;};return a106c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a106f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a106x(0x7a)]({'name':a106x(0x75),'aliases':aliases,'validOpts':[a106x(0xa8),'layout',a106x(0x93),a106x(0x8e),a106x(0xa3),a106x(0x8a),'withHook',a106x(0x73)],'usage':a106x(0x97),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a106x(0x87),a106x(0x7f),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a106x(0x8d)]},function(a,b){const y=a106x;try{const c=this[y(0xa7)][y(0x82)]();this['fsi']['withValue'](c,async()=>{const z=y,d=b[z(0xa8)]??![];let f=paramCase(a[0x0]),g='/'+f;a['length']>0x1&&(g='/'+a[z(0x92)](function(l){return l!=='/';})['join']('/')[z(0x83)]());f=camelCase(f);b[z(0x78)]&&(b[z(0x78)]=camelCase(b[z(0x78)]));const h=a106e['join'](z(0x84),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[z(0x78)]||z(0x70),'templatePath':h,'templateName':pascalCase(f),'client':c[z(0x94)][z(0x88)],'newForm':![],'withTranslations':c[z(0xad)][z(0x7e)]};d&&(i[z(0x78)]=z(0xb0));if(!b[z(0x8a)]){const l=a106f[z(0xaa)]('page');l&&await l[z(0xb2)](a,b);}let j,k;if(c[z(0x94)][z(0x88)]==='react'){if(c[z(0x94)][z(0xa4)]===z(0x8c)){const p=this['fsi'][z(0x98)]({'pathParts':['imports','startup',z(0x6e),z(0x90)]});j=this[z(0xa7)][z(0x85)]({'pathParts':[p],'config':c});}else{const q=this[z(0xa7)]['pathFromApp']({'pathParts':[z(0x72),z(0xae),z(0x88),z(0x90)]});j=this['fsi'][z(0x85)]({'pathParts':[q],'config':c});}const m=this[z(0xa7)]['readFileLines'](j)[z(0x9c)]((r,s)=>{const A=z;return r[A(0xb1)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?s+0x1:null;})[z(0x92)](r=>r!==null);let n=this[z(0xa7)][z(0x9d)](j)['map']((r,s)=>{const B=z;return r['includes'](B(0x9e))?s+0x1:null;})[z(0x92)](r=>r!==null),o=this[z(0xa7)]['readFileLines'](j)[z(0x9c)]((r,s)=>{const C=z;return r[C(0xb1)](C(0x7d))?s+0x1:null;})['filter'](r=>r!==null);n[z(0x8f)]>0x0&&o['length']>0x0&&(i[z(0x8b)]=!![]);k=this[z(0xa7)][z(0x76)]({'srcPath':'route/route.js','framework':z(0x80),'context':i,'config':c});if(n[z(0x8f)]>0x0||o[z(0x8f)]>0x0){this[z(0xa7)]['injectAfterLineNumber']({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[z(0x8f)]>0x0)o=this[z(0xa7)][z(0x9d)](j)[z(0x9c)]((r,s)=>{const D=z;return r['includes'](D(0x7d))?s+0x1:null;})[z(0x92)](r=>r!==null),this[z(0xa7)][z(0x81)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':o[0x0]});else n[z(0x8f)]>0x0?(n=this[z(0xa7)][z(0x9d)](j)[z(0x9c)]((r,s)=>{const E=z;return r[E(0xb1)](E(0x9e))?s+0x1:null;})[z(0x92)](r=>r!==null),this[z(0xa7)][z(0x81)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':n[0x0]})):Log[z(0x6f)](z(0xa0)+j);}else{const r=this[z(0xa7)][z(0x9d)](j)[z(0x9c)](u=>{const F=z;return u[F(0xb1)](F(0x74));}),s=r[z(0x96)](!![])>-0x1,t=s?'<Route':z(0x89);this['fsi'][z(0xab)]({'filePath':j,'content':z(0x99)+k+z(0x99),'begin':'<Router','end':t});}}else{if(c[z(0x94)][z(0x88)]===z(0xac)){const u=this[z(0xa7)][z(0x98)]({'pathParts':['imports','startup',z(0x88),'routes.js']});j=this[z(0xa7)][z(0x85)]({'pathParts':[u],'config':c}),k=this['fsi'][z(0x76)]({'srcPath':z(0x86),'context':i}),this[z(0xa7)][z(0xa9)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[y(0x71)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d
|
|
1
|
+
const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=-parseInt(j(0x172))/0x1+parseInt(j(0x162))/0x2*(parseInt(j(0x176))/0x3)+parseInt(j(0x16c))/0x4+-parseInt(j(0x170))/0x5*(-parseInt(j(0x184))/0x6)+parseInt(j(0x17c))/0x7+parseInt(j(0x16e))/0x8*(parseInt(j(0x16b))/0x9)+parseInt(j(0x17f))/0xa*(-parseInt(j(0x166))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xeba5f));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a[l(0x168)]()[l(0x16a)]('(((.+)+)+)+$')['toString']()[l(0x178)](a107a)[l(0x16a)](l(0x165));});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x161;let f=c[d];return f;},a107d(a,b);}a107a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a107c(){const p=['create','engines','15BuAnli','checkNpmPackage','constructor','type','winston','pathFromApp','11293408iVcPLj','installNpmPackage','template','10zPLBNz','services','withValue','resourceName','logger','7842kPXchV','maka\x20{generate,\x20g}:{service}\x20[service-type]','lib','service','imports','1358VYjdIy','fsi','error','(((.+)+)+)+$','20060843vYYvFy','service/logger/logger.js','toString','tsx','search','1089HakCqj','5097408DniiRq','apply','848OMJHpa','winston\x20setimmediate','1405dawiOi','getProjectConfig','482256IuRIqk','svc'];a107c=function(){return p;};return a107c();}import{Log}from'../tools/log/log.class.js';Generator[a107m(0x174)]({'name':a107m(0x187),'aliases':[a107m(0x173)],'usage':a107m(0x185),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','validOpts':[a107m(0x179)],'validArgs':[a107m(0x183)],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},async function(a,b){const n=a107m;try{const c=this[n(0x163)][n(0x171)]();this['fsi'][n(0x181)](c,async()=>{const o=n,d=this[o(0x163)][o(0x17b)]({}),f=paramCase(b[o(0x182)]),g={'name':pascalCase(b[o(0x182)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':a[0x0],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[o(0x175)]['js']===o(0x169)&&(h='ts');if(a[0x0]===o(0x183)){!this[o(0x163)][o(0x177)](o(0x17a))&&await this['fsi'][o(0x17d)](o(0x16f),{'cwd':d,'msg':'Installing\x20winston'});const i=this['fsi']['pathFromApp']({'pathParts':[o(0x161),'startup',o(0x186),o(0x180),f+'.'+h]});this[o(0x163)][o(0x17e)]({'srcPath':o(0x167),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x164)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x16a))/0x1*(parseInt(f(0x168))/0x2)+parseInt(f(0x171))/0x3*(-parseInt(f(0x170))/0x4)+-parseInt(f(0x172))/0x5+parseInt(f(0x16c))/0x6+-parseInt(f(0x165))/0x7*(-parseInt(f(0x166))/0x8)+-parseInt(f(0x167))/0x9*(-parseInt(f(0x173))/0xa)+parseInt(f(0x164))/0xb*(parseInt(f(0x16f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xc0aae));function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x164;var f=c[d];return f;},a108d(a,b);}function a108c(){var h=['9pgxOfs','2ehUfQc','toString','1200172Zmmkph','constructor','6383472krIWDC','(((.+)+)+)+$','search','12UFVwfd','79508IZqNJH','174zOumXl','5107575ekqEDa','2401910ecLQep','16216805krMSZX','63eOmIyY','1231432qlKsQE'];a108c=function(){return h;};return a108c();}var a108b=(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;};}()),a108a=a108b(this,function(){var g=a108d;return a108a[g(0x169)]()[g(0x16e)](g(0x16d))[g(0x169)]()[g(0x16b)](a108a)['search'](g(0x16d));});a108a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a109k=a109d;(function(a,b){const i=a109d,c=a();while(!![]){try{const d=-parseInt(i(0xe1))/0x1+parseInt(i(0xe4))/0x2*(parseInt(i(0xe7))/0x3)+-parseInt(i(0xd4))/0x4*(parseInt(i(0xe8))/0x5)+-parseInt(i(0xd0))/0x6*(parseInt(i(0xd8))/0x7)+parseInt(i(0xe6))/0x8+parseInt(i(0xe9))/0x9+parseInt(i(0xd9))/0xa*(parseInt(i(0xd3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xb10b7));const a109b=(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;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0xd1)]()[j(0xe5)](j(0xce))['toString']()['constructor'](a109a)[j(0xe5)]('(((.+)+)+)+$');});a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xce;let f=c[d];return f;},a109d(a,b);}import{Generator}from'../../generator.js';function a109c(){const n=['appName','openssl.conf','Generate\x20a\x20new\x20openssl\x20config\x20file','463064ynOKce','10RhfRqa','withValue','openssl/openssl.conf','_keys','maka\x20{generate,\x20g}:sslconfig','template','join','env','1441656WxClwA','getGlobalConfig','error','788TUlCDT','search','1428976voGuDN','2388OYnkxV','2895985JjNYuQ','12532716OOBnAc','fsi','sslconfig','(((.+)+)+)+$','getConfigPath','24SroAUT','toString','create','18755693MmXnaf','8jgMVrg'];a109c=function(){return n;};return a109c();}import{Log}from'../../tools/log/log.class.js';import a109e from'path';Generator[a109k(0xd2)]({'name':a109k(0xeb),'usage':a109k(0xdd),'shortDesc':a109k(0xd7),'noResource':!![],'requiredOpts':[a109k(0xe0)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[a109k(0xe0)]},async function(a,b){const l=a109k;try{const c=await this['fsi']['getProjectConfig'](),d=await this[l(0xea)][l(0xe2)](),f=this[l(0xea)][l(0xcf)](b[l(0xe0)]),g=a109e[l(0xdf)](f,l(0xdc),l(0xd6));await this['fsi'][l(0xda)](c,async()=>{const m=l,h={'app':d[m(0xd5)],'noRename':!![]};await this[m(0xea)][m(0xde)]({'srcPath':m(0xdb),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[l(0xe3)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110A=a110d;(function(a,b){const x=a110d,c=a();while(!![]){try{const d
|
|
1
|
+
const a110A=a110d;(function(a,b){const x=a110d,c=a();while(!![]){try{const d=-parseInt(x(0xe3))/0x1+parseInt(x(0x118))/0x2*(-parseInt(x(0x11d))/0x3)+parseInt(x(0x119))/0x4+parseInt(x(0xe5))/0x5+-parseInt(x(0xff))/0x6*(-parseInt(x(0x11e))/0x7)+parseInt(x(0x121))/0x8+parseInt(x(0xe7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x95e63));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a110d;if(c){const e=c[y(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const z=a110d;return a110a['toString']()[z(0xe6)](z(0x107))['toString']()[z(0x10e)](a110a)['search'](z(0x107));});a110a();import{Generator}from'../../generator.js';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xe2;let f=c[d];return f;},a110d(a,b);}import{Log}from'../../tools/log/log.class.js';import a110e from'fs';function a110c(){const D=['fsi','services','Generate\x20a\x20new\x20locale\x20translation','maka\x20g:translation\x20--lang=en\x20(default)','grep','appName','isFile','1278GWjZom','toString','import\x20\x27../lib/services/translations/i18n\x27;','exit','findAppDirectory','i18n/i18n.js','warn','lang','(((.+)+)+)+$','root','export\x20{\x20default\x20as\x20','injectAtEndOfFile','translations','index.js','index.','constructor','i18next','translation','maka\x20{generate,\x20g}:translation\x20--lang=<language>','true','\x20}\x20from\x20\x27./','injectAtBeginningOfFile','service','import\x20\x27../lib/services/translations/i18n\x27;\x0a','setProjectConfig','1701746EyETlz','1309808XMJZZS','rewriteDestinationPathForEngine','template','client','3FvSTcQ','37653faInRh','maka\x20g:translation\x20--lang=fr','pathFromApp','1530368OscbZM','readFileSync','create','.js','i18n.js','595586zGGobw','maka\x20g:translation\x20--lang=de','1475045RdLQjr','search','908658NLLZdp','apply','startup','lib','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','i18next\x20i18next-browser-languagedetector\x20react-i18next','locales','features.withTranslations','i18n/locales.js','error','ssr','Locale\x20already\x20exported:\x20','getProjectConfig','server','imports','i18n','engines'];a110c=function(){return D;};return a110c();}Generator[a110A(0x123)]({'name':a110A(0x110),'usage':a110A(0x111),'aliases':[a110A(0xf6)],'shortDesc':a110A(0xfa),'noResource':!![],'examples':[a110A(0xfb),a110A(0x11f),a110A(0xe4)],'validOpts':[a110A(0x106)]},function(a,b){const B=a110A;try{const c=this[B(0xf8)][B(0xf3)](),d=this[B(0xf8)]['getGlobalConfig'](),f=this[B(0xf8)][B(0x103)]();this[B(0xf8)]['withValue'](c,()=>{const C=B;try{!b[C(0x106)]&&(b[C(0x106)]='en');!b[C(0x108)]&&!this['fsi']['checkNpmPackage'](C(0x10f))&&(Log[C(0x105)](C(0xeb)),this[C(0xf8)]['installNpmPackage'](C(0xec),{'cwd':f}),this[C(0xf8)][C(0x117)](C(0xee),!![]));const g=this[C(0xf8)][C(0x120)]({'pathParts':[C(0xf5),C(0xe9),C(0x11c),C(0x10c)]}),h=this[C(0xf8)][C(0x11a)]({'pathParts':[g],'config':c}),i=this['fsi']['grep'](a110e[C(0x122)](h)[C(0x100)](),C(0x101))[0x0]&&!![];if(c[C(0xf7)][C(0xf1)]===C(0x112)){!i&&this['fsi'][C(0x114)]({'filePath':h,'content':C(0x116)});const t=this[C(0xf8)][C(0x120)]({'pathParts':[C(0xf5),C(0xe9),C(0xf4),C(0x10c)]}),u=this[C(0xf8)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi']['grep'](a110e['readFileSync'](u)[C(0x100)](),C(0x101))[0x0]&&!![];!v&&this[C(0xf8)][C(0x114)]({'filePath':u,'content':C(0x116)});}else!i&&this[C(0xf8)][C(0x114)]({'filePath':h,'content':C(0x116)});const j={'app':d[C(0xfd)],'config':c},k=this[C(0xf8)]['pathFromApp']({'pathParts':[C(0xf5),C(0xe9),C(0xea),C(0xf9),C(0x10b),C(0xe2)]}),l=this[C(0xf8)][C(0xfe)](this[C(0xf8)][C(0x11a)]({'pathParts':[k],'config':c}));!l&&this[C(0xf8)]['template']({'srcPath':C(0x104),'destPath':k,'framework':'service','context':j,'config':c});const m=this['fsi']['pathFromApp']({'pathParts':['imports',C(0xe9),'lib',C(0xf9),'translations',C(0xed),b['lang']+C(0x124)]}),n=this[C(0xf8)][C(0x11a)]({'pathParts':[m],'config':c}),o=this[C(0xf8)]['isFile'](n);!o?this[C(0xf8)][C(0x11b)]({'srcPath':C(0xef),'destPath':m,'framework':C(0x115),'context':j,'config':c}):Log[C(0x105)]('Locale\x20already\x20defined:\x20'+n);const p=this['fsi'][C(0x120)]({'pathParts':['imports','startup',C(0xea),'services',C(0x10b),C(0xed),C(0x10d)+c['engines']['js']]}),q=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0xf8)][C(0xfe)](q);!r&&this[C(0xf8)]['template']({'srcPath':'i18n/index.js','destPath':p,'framework':C(0x115),'context':j,'config':c});const s=this[C(0xf8)][C(0xfc)](a110e[C(0x122)](p)[C(0x100)](),'default\x20as\x20'+b[C(0x106)])[0x0]&&!![];!s?this[C(0xf8)][C(0x10a)]({'filePath':p,'content':C(0x109)+b[C(0x106)]+C(0x113)+b['lang']+'\x27;'}):Log[C(0x105)](C(0xf2)+p);}catch(w){Log[C(0xf0)](w),process[C(0x102)](0x1);}});}catch(g){Log['error'](g),process[B(0x102)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111m=a111d;(function(a,b){const j=a111d,c=a();while(!![]){try{const d=parseInt(j(0xde))/0x1+-parseInt(j(0xe3))/0x2+parseInt(j(0xed))/0x3*(parseInt(j(0xeb))/0x4)+-parseInt(j(0xdd))/0x5+-parseInt(j(0xe9))/0x6*(-parseInt(j(0xf1))/0x7)+parseInt(j(0xe4))/0x8+-parseInt(j(0xdc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xa54ef));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a111d;if(c){const e=c[k(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const l=a111d;return a111a[l(0xe5)]()[l(0xda)](l(0xef))[l(0xe5)]()[l(0xf2)](a111a)['search'](l(0xef));});a111a();import a111e from'minimist';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0xda;let f=c[d];return f;},a111d(a,b);}function a111c(){const n=['totalmem','(((.+)+)+)+$','--max-old-space-size=','658PFqJWE','constructor','search','apply','14708061ZWqgNW','269695wktiYQ','652932wMjkzV','TOOL_NODE_FLAGS','env','MAKA_COMMAND_PATH','slice','582380tAFYIq','2222448mUDxiH','toString','dirname','url','parse','84414YnmlGS','argv','84892BBGJBR','floor','57JTLAoS'];a111c=function(){return n;};return a111c();}import a111f from'os';import a111g from'path';import a111h from'humps';import a111i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a111m(0xe7)]),__dirname=a111g[a111m(0xe6)](__filename);global[a111m(0xe1)]=__dirname;const total_memory=a111f[a111m(0xee)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a111m(0xec)](total_mem_in_mb),process[a111m(0xe0)][a111m(0xdf)]=a111m(0xf0)+total_mem_in_mb,process[a111m(0xe0)]['BROWSERSLIST_IGNORE_OLD_DATA']='1';const argv=a111e(process[a111m(0xea)][a111m(0xe2)](0x2)),args=argv['_'],deepCopyArgv=JSON[a111m(0xe8)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a111h['camelizeKeys'](deepCopyArgv);a111i['run'](args,opts);
|
|
@@ -11,7 +11,7 @@ function <%= className %>(props) {
|
|
|
11
11
|
const userId = Meteor.userId();
|
|
12
12
|
return { userId }
|
|
13
13
|
});*/<% if(graphql === 'apollo') { %>
|
|
14
|
-
//const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (
|
|
14
|
+
//const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (withTranslations) { %>
|
|
15
15
|
const { t } = useTranslation();<% } %>
|
|
16
16
|
|
|
17
17
|
return (
|
|
@@ -10,7 +10,7 @@ function <%= className %>(props) {
|
|
|
10
10
|
const userId = Meteor.userId();
|
|
11
11
|
return { userId }
|
|
12
12
|
});*/<% if(graphql === 'apollo') { %>
|
|
13
|
-
// const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (
|
|
13
|
+
// const { loading, error, data } = useQuery(gql`query Todos { todos }`, { variables: {/* input */} }); <% } %><% if (withTranslations) { %>
|
|
14
14
|
const { t } = useTranslation();<% } %>
|
|
15
15
|
|
|
16
16
|
return (
|