@maka/maka-cli 4.5.47 → 4.5.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.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/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/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
|
|
1
|
+
const a97p=a97d;(function(a,b){const n=a97d,c=a();while(!![]){try{const d=parseInt(n(0x1ba))/0x1+parseInt(n(0x1d0))/0x2*(-parseInt(n(0x1d7))/0x3)+-parseInt(n(0x1a2))/0x4*(-parseInt(n(0x1bf))/0x5)+-parseInt(n(0x1ad))/0x6*(parseInt(n(0x1e9))/0x7)+parseInt(n(0x1d5))/0x8+-parseInt(n(0x1ae))/0x9*(parseInt(n(0x1d6))/0xa)+-parseInt(n(0x1bd))/0xb*(-parseInt(n(0x1d9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x2f31c));const a97b=(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;};}()),a97a=a97b(this,function(){const o=a97d;return a97a[o(0x1a7)]()[o(0x1b7)]('(((.+)+)+)+$')[o(0x1a7)]()[o(0x1e6)](a97a)['search'](o(0x1a3));});a97a();import a97e from'path';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a97d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a97p(0x1c7)];Generator[a97p(0x1b8)]({'name':a97p(0x1df),'aliases':aliases,'usage':a97p(0x1a8),'shortDesc':a97p(0x1d8),'validOpts':[{'name':'baseDir','values':[a97p(0x1de),'components',a97p(0x1c9),a97p(0x1b1)]}],'examples':[a97p(0x1bb)]},async function(a,b){const q=a97p;try{const c=this[q(0x1ea)][q(0x1d2)](),d=b[q(0x1c3)]?q(0x1eb)+b[q(0x1c3)]:q(0x1c5),f=this[q(0x1ea)][q(0x1cc)]({'pathParts':[d,b['dir'],paramCase(b[q(0x1e1)]),paramCase(b[q(0x1e1)])]}),g=await this[q(0x1ea)]['getProjectConfig']();this[q(0x1ea)][q(0x1aa)](g,async()=>{const r=q;typeof g[r(0x1a1)][r(0x1d4)]===r(0x1a9)&&(g[r(0x1a1)][r(0x1d4)]=g['template'][r(0x1d4)]===r(0x1e3)?!![]:![],this[r(0x1ea)][r(0x1dc)](r(0x1d4),g['template'][r(0x1d4)]));typeof g[r(0x1a1)][r(0x1da)]===r(0x1a9)&&(g[r(0x1a1)][r(0x1da)]=g['template']['css']===r(0x1e3)?!![]:![],this[r(0x1ea)]['setTemplate'](r(0x1da),g[r(0x1a1)][r(0x1da)]));typeof g[r(0x1a1)]['js']===r(0x1a9)&&(g[r(0x1a1)]['js']=g[r(0x1a1)]['js']===r(0x1e3)?!![]:![],this[r(0x1ea)][r(0x1dc)]('js',g['template']['js']));!g[r(0x1c0)]&&(g[r(0x1c0)]={});!b[r(0x1ca)]&&!this[r(0x1ea)]['checkNpmPackage'](r(0x1d1))&&(Log[r(0x1b4)](r(0x1dd)),await this[r(0x1ea)][r(0x1ec)](r(0x1d1),{'cwd':c}));if(!b['root']&&!this[r(0x1ea)][r(0x1cf)](r(0x1ce))){Log['error'](r(0x1a6));return;}const h={'name':pascalCase(b[r(0x1e1)]),'myPath':a97e[r(0x1e0)](this[r(0x1ea)][r(0x1af)]({}),f),'cssCaseName':paramCase(b[r(0x1e1)]),'className':pascalCase(b[r(0x1e1)]),'camelCaseName':camelCase(b[r(0x1e1)]),'fileName':paramCase(b['resourceName']),'graphql':g[r(0x1ab)][r(0x1e4)],'features':g['features'],'client':g[r(0x1ab)][r(0x1b3)],'api':g[r(0x1ab)][r(0x1a5)],'ssr':g[r(0x1ab)][r(0x1e7)],'test':g[r(0x1ab)][r(0x1d4)],'theme':g[r(0x1ab)][r(0x1b5)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0x1c0)][r(0x1b9)]};this[r(0x1ea)][r(0x1a1)]({'srcPath':r(0x1a4),'destPath':f+'.js','context':h,'framework':r(0x1ce),'config':g});g['engines'][r(0x1d4)]!=='none'&&this[r(0x1ea)][r(0x1a1)]({'srcPath':'test/test.js','destPath':f+r(0x1b2),'context':h,'framework':r(0x1ce),'config':g});g[r(0x1a1)]['css']&&(this['fsi']['template']({'srcPath':r(0x1a0),'destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b[r(0x1e1)])}),'config':g}),this[r(0x1ea)][r(0x1db)]({'filePath':f+'.'+g[r(0x1ab)]['js'],'content':'import\x20\x27./'+h[r(0x1be)]+'.'+g[r(0x1ab)][r(0x1da)]+'\x27;'}));const i=b[r(0x1e5)]?'/'+b[r(0x1e5)]+'/':'/',j=''+d+i+h[r(0x1cb)]+'/'+h[r(0x1cb)];let k;if(g[r(0x1ab)]['ssr']===r(0x1e3)){const l=this[r(0x1ea)][r(0x1cc)]({'pathParts':[r(0x1cd),'startup','lib','templates.js']});k=this[r(0x1ea)][r(0x1c1)]({'pathParts':[l],'config':g});}else{const m=this[r(0x1ea)][r(0x1cc)]({'pathParts':[r(0x1cd),r(0x1d3),r(0x1b3),r(0x1e2)]});k=this[r(0x1ea)][r(0x1c1)]({'pathParts':[m],'config':g});}g[r(0x1ab)][r(0x1b3)]===r(0x1ce)||g['engines']['client']===r(0x1b0)?(g[r(0x1ab)]['js']===r(0x1c4)?this[r(0x1ea)][r(0x1db)]({'filePath':k,'content':r(0x1ac)+h['className']+'\x20}\x20from\x20\x27'+j+r(0x1c6)}):this['fsi'][r(0x1db)]({'filePath':k,'content':r(0x1ac)+h[r(0x1b6)]+r(0x1e8)+j+'.'+g[r(0x1ab)]['js']+r(0x1c6)}),this['fsi'][r(0x1c8)]({'filePath':k,'content':r(0x1bc)+h[r(0x1b6)]+'\x20};\x0a'})):this[r(0x1ea)][r(0x1c8)]({'filePath':k,'content':'import\x20\x27'+j+'.'+g[r(0x1ab)]['js']+'\x27;\x0a'});});}catch(h){Log[q(0x1c2)](h);}});function a97c(){const s=['cssCaseName','623410JshBLI','features','rewriteDestinationPathForEngine','error','baseDir','tsx','/imports/ui/components','\x27;\x0a','comp','injectAtEndOfFile','pages','root','fileName','pathFromApp','imports','react','checkNpmPackage','57774IFdyBc','ramda','findAppDirectory','startup','test','1859088RlQahh','517500XFdSWJ','39VGEIMh','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','7325916gYmSlw','css','injectAtBeginningOfFile','setTemplate','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','hooks','component','relative','resourceName','templates.js','true','graphql','dir','constructor','ssr','\x20}\x20from\x20\x27','7WxjJDw','fsi','/imports/ui/','installNpmPackage','template/template.css','template','12hqTpQD','(((.+)+)+)+$','component/component.js','api','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','toString','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','string','withValue','engines','import\x20{\x20','2142492xWlobt','63vsXmoq','pathFromProject','reflux','layouts','.tests.js','client','warn','theme','className','search','create','withTranslations','71246pzPMic','maka\x20g:comp\x20todos/todos-item','export\x20{\x20','11ShdJHt'];a97c=function(){return s;};return a97c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x103))/0x1+parseInt(h(0xfe))/0x2+-parseInt(h(0x10f))/0x3*(parseInt(h(0x112))/0x4)+-parseInt(h(0x118))/0x5+parseInt(h(0x106))/0x6+-parseInt(h(0x115))/0x7*(parseInt(h(0x11a))/0x8)+-parseInt(h(0x10b))/0x9*(-parseInt(h(0x108))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xc5b78));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0xff)]()[j(0x113)](j(0x102))[j(0xff)]()[j(0x10c)](a98a)[j(0x113)](j(0x102));});a98a();function a98c(){const n=['config/process.env','(((.+)+)+)+$','1510244kqKXue','appName','template','7875894KzttZb','fsi','36170dfEeHe','settings.json','withValue','234Sidmxt','constructor','isDocker','getProjectConfig','35511MELYkO','process.env','pathFromProject','284tsVMtx','search','config/settings.json','14suvtRd','production','create','2540580nCdJjc','config','3989272zHledd','dev','resourceName','Generate\x20configuration\x20settings.','maka\x20g:config\x20production','477548UDXFzB','toString','apply'];a98c=function(){return n;};return a98c();}import{Generator}from'../generator.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xfa;let f=c[d];return f;},a98d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98k(0x117)]({'name':a98k(0x119),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a98k(0xfc),'validOpts':[a98k(0x10d)],'examples':[a98k(0xfd)]},function(a,b){const l=a98k,c=this['fsi'][l(0x10e)]();this[l(0x107)][l(0x10a)](c,async()=>{const m=l,d={'app':c[m(0x104)],'appFileCase':paramCase(c[m(0x104)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0xfb)]),'userName':'ubuntu','isDocker':b['isDocker']};let e=b[m(0xfb)];if(e===m(0xfa))e='development';else e==='prod'&&(e=m(0x116));const f=this[m(0x107)]['pathFromProject']({'pathParts':[m(0x119),e,m(0x109)]});this[m(0x107)][m(0x105)]({'srcPath':m(0x114),'destPath':f,'context':d,'config':c});if(!b[m(0x10d)]){const g=this['fsi'][m(0x111)]({'pathParts':[m(0x119),e,m(0x110)]});this[m(0x107)][m(0x105)]({'srcPath':m(0x101),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a99m=a99d;(function(a,b){const j=a99d,c=a();while(!![]){try{const d=-parseInt(j(0x116))/0x1*(-parseInt(j(0xfa))/0x2)+parseInt(j(0x114))/0x3+parseInt(j(0xfc))/0x4+parseInt(j(0x11a))/0x5+-parseInt(j(0x119))/0x6*(parseInt(j(0xfe))/0x7)+parseInt(j(0x11e))/0x8*(parseInt(j(0x110))/0x9)+parseInt(j(0x129))/0xa*(-parseInt(j(0x103))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xdf855));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a99d;if(c){const e=c[k(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a[l(0x109)]()[l(0x121)](l(0x120))[l(0x109)]()[l(0x108)](a99a)[l(0x121)](l(0x120));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xf8;let f=c[d];return f;},a99d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99c(){const p=['sqlite','better-sqlite3','-dbc.','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','withValue','15264010beEKAN','fsi','index.','resourceName','startup','error','2xpnKmN','dbc/conn.js','1097632GuvItP','warn','49kzTxjy','checkNpmPackage','register-','dbc/config.js','server','11kSYoWA','pathFromApp','tsx','injectAtEndOfFile','-dbc\x27;','constructor','toString','template','installNpmPackage','apply','maka\x20g:dbc\x20todos\x20--type=sqlite','mssql','create','18cmyobp','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','imports','conn.','2223717oLUbDn','dbc','341631TZmZGh','maka\x20g:dbc\x20azure\x20--type=mssql','pgsql','320316uIPbvC','5379950nbONSh','config.','engines','dir','1529504tzrPuX','maka\x20g:dbc\x20geoserver\x20--type=pgsql','(((.+)+)+)+$','search','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','type'];a99c=function(){return p;};return a99c();}Generator[a99m(0x10f)]({'name':a99m(0x115),'usage':a99m(0x122),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':['dir'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a99m(0x123),'values':[a99m(0x118),'mssql',a99m(0x124)]}],'examples':[a99m(0x11f),a99m(0x117),a99m(0x10d)]},async function(a,b){const n=a99m;try{const c=await this[n(0x12a)]['getProjectConfig'](),d=this[n(0x12a)][n(0x104)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[n(0x12c)]),'fileName':paramCase(b[n(0x12c)]),'camelCase':camelCase(b['resourceName']),'type':b[n(0x123)],'engine':c[n(0x11c)]['js'],'noRename':!![]};this[n(0x12a)][n(0x128)](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0x105)&&(h='ts');b[o(0x123)]===o(0x118)&&!this[o(0x12a)][o(0xff)]('pg')&&(Log['warn'](o(0x127)),await this['fsi'][o(0x10b)]('pg',{'cwd':d}));b[o(0x123)]==='mssql'&&!this[o(0x12a)]['checkNpmPackage']('mssql')&&(Log[o(0xfd)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x12a)][o(0x10b)](o(0x10e),{'cwd':d}));b[o(0x123)]==='sqlite'&&!this[o(0x12a)]['checkNpmPackage']('better-sqlite3')&&(Log[o(0xfd)](o(0x111)),await this[o(0x12a)]['installNpmPackage'](o(0x125),{'cwd':d}));await this[o(0x12a)][o(0x10a)]({'srcPath':o(0x101),'destPath':this['fsi'][o(0x104)]({'pathParts':[o(0x112),o(0xf8),o(0x102),o(0x115),b[o(0x11d)],f,o(0x11b)+h]}),'context':g,'config':c}),await this[o(0x12a)]['template']({'srcPath':o(0xfb),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x112),o(0xf8),o(0x102),o(0x115),b['dir'],f,o(0x113)+h]}),'context':g,'config':c}),await this['fsi'][o(0x10a)]({'srcPath':'dbc/register-dbc.js','destPath':this[o(0x12a)][o(0x104)]({'pathParts':[o(0x112),o(0xf8),o(0x102),o(0x100)+f+o(0x126)+h]}),'context':g,'config':c});const i=this[o(0x12a)][o(0x104)]({'pathParts':[o(0x112),o(0xf8),'server',o(0x12b)+c[o(0x11c)]['js']]});this[o(0x12a)][o(0x106)]({'filePath':i,'content':'import\x20\x27./register-'+f+o(0x107)});});}catch(h){Log[n(0xf9)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100i=a100d;
|
|
1
|
+
const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=-parseInt(f(0x100))/0x1+-parseInt(f(0xfc))/0x2*(parseInt(f(0x114))/0x3)+parseInt(f(0x113))/0x4+-parseInt(f(0x10b))/0x5+-parseInt(f(0xff))/0x6+parseInt(f(0x10f))/0x7+-parseInt(f(0x10a))/0x8*(-parseInt(f(0x115))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x2ec43));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x116)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a['toString']()[h(0x103)](h(0x107))[h(0xfb)]()[h(0x117)](a100a)['search'](h(0x107));});a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xf9;let f=c[d];return f;},a100d(a,b);}function a100c(){const l=['constructor','app','build','withValue','toString','174986UPvLtW','maka\x20g:dockerfile','dockerfile','1769112TZsvMd','12229vxDXtX','error','Dockerfile','search','Generate\x20an\x20updated\x20dockerfile','getProjectConfig','getGlobalConfig','(((.+)+)+)+$','docker/Dockerfile','create','44248tqimmD','254185DhtjVo','app.tar.gz','template','fsi','642222DRqCIy','isFile','join','appName','1207424snIYLh','3EQkDUX','396wNloOV','apply'];a100c=function(){return l;};return a100c();}Generator[a100i(0x109)]({'name':a100i(0xfe),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a100i(0x104),'validOpts':[],'noResource':!![],'examples':[a100i(0xfd)]},async function(){const j=a100i;try{const a=await this[j(0x10e)][j(0x105)](),b=await this['fsi'][j(0x106)](),c=this[j(0x10e)]['findProjectDirectory']();this[j(0x10e)][j(0xfa)](a,async()=>{const k=j,d={'app':b[k(0x112)],'config':a,'appPath':a100e[k(0x111)](c,k(0x118)),'bundlePath':a100e[k(0x111)](c,k(0xf9),k(0x10c)),'useCert':this[k(0x10e)][k(0x110)](b['cert'])};this[k(0x10e)][k(0x10d)]({'srcPath':k(0x108),'destPath':a100e['join'](c,k(0x102)),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x101)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d
|
|
1
|
+
const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=-parseInt(o(0x1a7))/0x1*(parseInt(o(0x1e1))/0x2)+parseInt(o(0x1c7))/0x3*(parseInt(o(0x1d9))/0x4)+parseInt(o(0x1a5))/0x5+-parseInt(o(0x1d0))/0x6*(-parseInt(o(0x1e2))/0x7)+-parseInt(o(0x1b5))/0x8+-parseInt(o(0x1ca))/0x9*(parseInt(o(0x1c5))/0xa)+parseInt(o(0x1bf))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x2b891));function a101c(){const u=['4MvBYZy','fileName','search','withTranslations','hooks','hook/hook.js','injectAtEndOfFile','notice','2wdJHvX','7NSpklp','.app-tests.js','ssr','checkNpmPackage','startup','pathFromApp','client','true','rewriteDestinationPathForEngine','constructor','components','installNpmPackage','\x20};\x0a','setTemplate','error','146660sxhxNn','withValue','288710IDvBQc','(((.+)+)+)+$','template/template.css','resourceName','template','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','engines','lib','fsi','baseDir','toString','className','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','react','1376160UGUxWj','features','import\x20\x27./','layouts','import\x20{\x20','pages','\x27;\x0a','injectAtBeginningOfFile','.js','\x20hook...','5226243yzHeFH','apollo','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','tsx','@apollo/client\x20isomorphic-fetch','.css','589910AZLPEi','warn','374277eYqXih','Creating\x20','pathFromProject','18CuxbXw','test','hook','templates.js','import\x20\x27','dir','766974umQxbt','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','theme','@apollo/client','test/test.js','/imports/ui/hooks','imports','apply','css'];a101c=function(){return u;};return a101c();}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a101d;if(c){const e=c[p(0x1d7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a['toString']()[q(0x1db)](q(0x1a8))[q(0x1b1)]()[q(0x19f)](a101a)[q(0x1db)]('(((.+)+)+)+$');});a101a();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x19d;let f=c[d];return f;},a101d(a,b);}import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a101r(0x1cc),'aliases':['h'],'checkWhere':![],'usage':a101r(0x1b3),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a101r(0x1b0),'values':[a101r(0x1dd),a101r(0x1a0),a101r(0x1ba),a101r(0x1b8)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a101r(0x1c1)},async function(a,b){const s=a101r;Log[s(0x1e0)](s(0x1c8)+b[s(0x1aa)]+s(0x1be));try{const c=this[s(0x1af)][s(0x1e5)](s(0x1b4));if(!c){Log['error'](s(0x1d1));throw new UsageError();}const d=this[s(0x1af)]['pathFromApp'](b),f=b[s(0x1b0)]?'/imports/ui/'+b[s(0x1b0)]:s(0x1d5),g=this[s(0x1af)][s(0x1e7)]({'pathParts':[f,b[s(0x1cf)],paramCase(b[s(0x1aa)]),paramCase(b[s(0x1aa)])]}),h=await this[s(0x1af)]['getProjectConfig']();this[s(0x1af)][s(0x1a6)](h,async()=>{const t=s;typeof h[t(0x1ab)][t(0x1d8)]==='string'&&(h['template'][t(0x1d8)]=h['template'][t(0x1d8)]===t(0x19d)?!![]:![],this[t(0x1af)][t(0x1a3)](t(0x1d8),h[t(0x1ab)]['css']));h[t(0x1ad)]['graphql']===t(0x1c0)&&!this[t(0x1af)][t(0x1e5)](t(0x1d3))&&(Log[t(0x1c6)](t(0x1ac)),await this['fsi'][t(0x1a1)](t(0x1c3),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1aa)]),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[t(0x1aa)]),'name':pascalCase(b[t(0x1aa)]),'graphql':h[t(0x1ad)]['graphql'],'theme':h[t(0x1ad)][t(0x1d2)],'features':h[t(0x1b6)],'myPath':a101e['relative'](this['fsi'][t(0x1c9)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h['features'][t(0x1dc)]};this[t(0x1af)][t(0x1ab)]({'srcPath':t(0x1de),'destPath':g+t(0x1bd),'context':i,'config':h,'framework':t(0x1b4)});h['template'][t(0x1d8)]&&(this[t(0x1af)][t(0x1ab)]({'srcPath':t(0x1a9),'destPath':g+t(0x1c4),'context':Object['assign']({},i,{'className':i['cssCaseName']}),'config':h}),this[t(0x1af)][t(0x1bc)]({'filePath':g+'.'+h[t(0x1ad)]['js'],'content':t(0x1b7)+i[t(0x1da)]+'.'+h[t(0x1ad)]['css']+'\x27;'}));h['engines'][t(0x1cb)]!=='none'&&this['fsi']['template']({'srcPath':t(0x1d4),'destPath':g+t(0x1e3),'framework':t(0x1b4),'context':i,'config':h});const j=b[t(0x1cf)]?'/'+b[t(0x1cf)]+'/':'/',k=''+f+j+i[t(0x1da)]+'/'+i[t(0x1da)];let l;if(h[t(0x1ad)][t(0x1e4)]==='true'){const m=this['fsi'][t(0x1e7)]({'pathParts':[t(0x1d6),t(0x1e6),t(0x1ae),t(0x1cd)]});l=this[t(0x1af)][t(0x19e)]({'pathParts':[m],'config':h});}else{const n=this[t(0x1af)][t(0x1e7)]({'pathParts':[t(0x1d6),t(0x1e6),t(0x1e8),t(0x1cd)]});l=this[t(0x1af)][t(0x19e)]({'pathParts':[n],'config':h});}h[t(0x1ad)]['client']===t(0x1b4)?(h[t(0x1ad)]['js']===t(0x1c2)?this[t(0x1af)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0x1b2)]+'\x20}\x20from\x20\x27'+k+t(0x1bb)}):this[t(0x1af)][t(0x1bc)]({'filePath':l,'content':t(0x1b9)+i[t(0x1b2)]+'\x20}\x20from\x20\x27'+k+'.'+h['engines']['js']+'\x27;\x0a'}),this[t(0x1af)][t(0x1df)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x1b2)]+t(0x1a2)})):this[t(0x1af)][t(0x1df)]({'filePath':l,'content':t(0x1ce)+k+'.'+h[t(0x1ad)]['js']+t(0x1bb)});});}catch(i){Log[s(0x1a4)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x126))/0x1*(-parseInt(h(0x112))/0x2)+parseInt(h(0x124))/0x3+-parseInt(h(0x12e))/0x4+-parseInt(h(0x12f))/0x5*(parseInt(h(0x110))/0x6)+-parseInt(h(0x123))/0x7*(parseInt(h(0x11f))/0x8)+-parseInt(h(0x11e))/0x9*(-parseInt(h(0x121))/0xa)+parseInt(h(0x12d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x82897));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const i=a102d;return a102a[i(0x115)]()[i(0x111)](i(0x11b))[i(0x115)]()['constructor'](a102a)[i(0x111)](i(0x11b));});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-0x110;let f=c[d];return f;},a102d(a,b);}function a102c(){const m=['2438172OvkGDm','3472728XCZtOf','1361320brXOXj','(blank)','maka\x20g:kit\x20--type=map','6PZvxwL','search','12UzPriO','type','engines','toString',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','kit','error','fsi','withValue','(((.+)+)+)+$','indexOf','resourceName','873qwzilP','10264IuhFQY','getProjectConfig','76270EMvtZj','leaflet-map','553lThQNV','2593623EZZQXW','NIE','8255gMbYkt','map','maka\x20g:k\x20city-map\x20--type=leaflet-map','notice','login','create','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.'];a102c=function(){return m;};return a102c();}Generator[a102j(0x12b)]({'name':a102j(0x117),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':a102j(0x12c),'validOpts':[a102j(0x113)],'examples':[a102j(0x131),a102j(0x128)]},async function(a,b){const k=a102j;try{const c=this[k(0x119)][k(0x120)]();this[k(0x119)][k(0x11a)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x11d)]),'fileName':paramCase(b[l(0x11d)]),'camelCase':camelCase(b[l(0x11d)]),'type':b['type'],'engine':c[l(0x114)]['js'],'noRename':!![]},f=[l(0x122),'login'];if(f[l(0x11c)](d[l(0x113)])<0x0){const g=d[l(0x113)]?d[l(0x113)]:l(0x130);Log[l(0x118)]('Invalid\x20type\x20'+g+l(0x116));return;}b[l(0x113)]===l(0x127)&&Log['notice']('NIE'),b[l(0x113)]===l(0x12a)&&Log[l(0x129)](l(0x125));});}catch(d){Log[k(0x118)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103r=a103d;function a103c(){const u=['17HtzogM','.js','pathFromApp','2295720BxNgdj','3730565XgLTai','react','component/component.js','\x20};\x0a','16zwELmu','assign','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','warn','pathFromProject','import\x20\x27','none','14106ByciVF','layout','\x27;\x0a','true','constructor','44378DgoxDI','search','import\x20{\x20','resourceName','injectAtBeginningOfFile','maka\x20g:layout\x20mobile/iPhone8','3526968MtQbqX','client','test/test.js','lib','withHooks','injectAtEndOfFile','import\x20\x27./','maka\x20g:l\x20web/safari','features','fsi','test','imports','tsx','toString','ramda','string','checkNpmPackage','className','dir','210skOSap','1660241yaoLlv','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','engines','.css','css','templates.js','4349340LWFPkG','withValue','apply','graphql','fileName','ssr','Scaffolding\x20for\x20a\x20React\x20Layout.','(((.+)+)+)+$','installNpmPackage','rewriteDestinationPathForEngine','hook/hook.js','2051ujOURd','create','template','setTemplate','split','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','api'];a103c=function(){return u;};return a103c();}function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x153;let f=c[d];return f;},a103d(a,b);}(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x198))/0x1*(-parseInt(o(0x166))/0x2)+parseInt(o(0x155))/0x3+parseInt(o(0x16c))/0x4+parseInt(o(0x156))/0x5+parseInt(o(0x161))/0x6*(parseInt(o(0x191))/0x7)+-parseInt(o(0x15a))/0x8*(-parseInt(o(0x186))/0x9)+-parseInt(o(0x17f))/0xa*(parseInt(o(0x180))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x7a7be));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x188)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a[q(0x179)]()[q(0x167)](q(0x18d))[q(0x179)]()[q(0x165)](a103a)[q(0x167)](q(0x18d));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a103r(0x192)]({'name':a103r(0x162),'aliases':aliases,'usage':a103r(0x196),'shortDesc':a103r(0x18c),'validOpts':[],'examples':[a103r(0x16b),a103r(0x173)]},function(a,b){const s=a103r,c='/imports/ui/layouts',d=this['fsi']['findAppDirectory'](),e=this[s(0x175)][s(0x154)]({'pathParts':[c,b[s(0x17e)],paramCase(b[s(0x169)]),paramCase(b[s(0x169)])]}),f=this[s(0x175)]['getProjectConfig']();this[s(0x175)][s(0x187)](f,()=>{const t=s;typeof f[t(0x193)]['test']===t(0x17b)&&(f[t(0x193)]['test']=f['template'][t(0x176)]==='true'?!![]:![],this['fsi'][t(0x194)](t(0x176),f[t(0x193)][t(0x176)]));typeof f[t(0x193)]['css']===t(0x17b)&&(f['template'][t(0x184)]=f['template'][t(0x184)]===t(0x164)?!![]:![],this[t(0x175)][t(0x194)]('css',f[t(0x193)][t(0x184)]));typeof f['template']['js']===t(0x17b)&&(f[t(0x193)]['js']=f[t(0x193)]['js']==='true'?!![]:![],this['fsi']['setTemplate']('js',f[t(0x193)]['js']));!f['features']&&(f[t(0x174)]={});const g=b['_']?b['_'][0x0][t(0x195)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x17c)](t(0x17a))&&(Log[t(0x15d)](t(0x181)),this[t(0x175)][t(0x18e)](t(0x17a),{'cwd':d}));if(h&&!this[t(0x17c)](t(0x157))){Log[t(0x15d)](t(0x15c));return;}const i={'name':pascalCase(b[t(0x169)]),'myPath':a103e['relative'](this['fsi'][t(0x15e)]({}),e),'cssCaseName':paramCase(b[t(0x169)]),'className':pascalCase(b[t(0x169)]),'camelCaseName':camelCase(b[t(0x169)]),'fileName':paramCase(b[t(0x169)]),'graphql':f[t(0x182)][t(0x189)],'features':f[t(0x174)],'client':f[t(0x182)][t(0x16d)],'api':f[t(0x182)][t(0x197)],'ssr':f['engines'][t(0x18b)],'test':f[t(0x182)][t(0x176)],'theme':f['engines']['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x174)]['withTranslations']};f[t(0x174)]?.[t(0x170)]||b['withHook']?this[t(0x175)][t(0x193)]({'srcPath':t(0x190),'destPath':e+t(0x153),'framework':t(0x157),'context':i,'config':f}):this[t(0x175)][t(0x193)]({'srcPath':t(0x158),'destPath':e+t(0x153),'framework':t(0x157),'context':i,'config':f});f[t(0x182)][t(0x176)]!==t(0x160)&&this[t(0x175)]['template']({'srcPath':t(0x16e),'destPath':e+'.app-tests.js','framework':t(0x157),'context':i,'config':f});f[t(0x193)][t(0x184)]&&(this[t(0x175)][t(0x193)]({'srcPath':'template/template.css','destPath':e+t(0x183),'context':Object[t(0x15b)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x175)][t(0x16a)]({'filePath':e+'.'+f[t(0x182)]['js'],'content':t(0x172)+i[t(0x18a)]+'.'+f[t(0x182)][t(0x184)]+'\x27;'}));const j=b[t(0x17e)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x18a)]+'/'+i[t(0x18a)];let l;if(f[t(0x182)][t(0x18b)]===t(0x164)){const m=this['fsi'][t(0x154)]({'pathParts':[t(0x177),'startup',t(0x16f),t(0x185)]});l=this[t(0x175)][t(0x18f)]({'pathParts':[m],'config':f});}else{const n=this[t(0x175)][t(0x154)]({'pathParts':['imports','startup','client','templates.js']});l=this[t(0x175)][t(0x18f)]({'pathParts':[n],'config':f});}f[t(0x182)]['client']===t(0x157)?(f['engines']['js']===t(0x178)?this[t(0x175)][t(0x16a)]({'filePath':l,'content':t(0x168)+i[t(0x17d)]+'\x20}\x20from\x20\x27'+k+t(0x163)}):this[t(0x175)][t(0x16a)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x17d)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x182)]['js']+'\x27;\x0a'}),this[t(0x175)][t(0x171)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x17d)]+t(0x159)})):this[t(0x175)][t(0x171)]({'filePath':l,'content':t(0x15f)+k+'.'+f[t(0x182)]['js']+t(0x163)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x86))/0x1+-parseInt(f(0x85))/0x2+-parseInt(f(0x7f))/0x3+-parseInt(f(0x88))/0x4+parseInt(f(0x89))/0x5*(parseInt(f(0x7c))/0x6)+-parseInt(f(0x7d))/0x7*(parseInt(f(0x8c))/0x8)+-parseInt(f(0x8a))/0x9*(-parseInt(f(0x83))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xcb7c0));function a104c(){const j=['81msrHtH','apply','2139992WBLkcM','\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','18876NVqauT','21JEvrEF','search','1128627QLxUgy','toString','(((.+)+)+)+$','maka\x20generate:api\x20Trucks','2844070hqtPuw','maka\x20g:hook\x20cool-hook','1795792IhHkLa','17718qtMcsT','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','2872284VvWkjA','1670ZauqwV'];a104c=function(){return j;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x7b;let f=c[d];return f;},a104d(a,b);}const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a['toString']()[h(0x7e)](h(0x81))[h(0x80)]()['constructor'](a104a)['search']('(((.+)+)+)+$');});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':'Maka!','validOpts':[],'description':a104i(0x7b),'usage':a104i(0x87),'examples':[a104i(0x82),a104i(0x84)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(
|
|
1
|
+
function a105c(){const q=['123092kfcaUv','imports','6029cLyRVZ','template','checkMeteorPackage','toString','apply','engines','mdg:validated-method','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','constructor','startup','(((.+)+)+)+$','fsi','check\x20ddp-rate-limiter\x20mdg:validated-method','118089ydjSDy','2376VUNyjk','1715506ttmnaz','getProjectConfig','pathFromApp','424740xnRkGx','injectAtEndOfFile','5RqSGiM','1401306gOxrkQ','dir','resourceName','methods','370bALqlq','3VWhmts','index.','method/method.js','check','143PQAQtF','maka\x20{generate,\x20g}:{method,\x20m}\x20name','search','122emOgGu','5999zrafct','error'];a105c=function(){return q;};return a105c();}const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x164))/0x1*(-parseInt(k(0x15f))/0x2)+parseInt(k(0x158))/0x3*(-parseInt(k(0x162))/0x4)+-parseInt(k(0x178))/0x5*(parseInt(k(0x179))/0x6)+-parseInt(k(0x160))/0x7*(-parseInt(k(0x172))/0x8)+parseInt(k(0x171))/0x9*(parseInt(k(0x157))/0xa)+parseInt(k(0x15c))/0xb*(-parseInt(k(0x176))/0xc)+-parseInt(k(0x173))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x3d5da));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x167)]()['search'](m(0x16e))[m(0x167)]()[m(0x16c)](a105a)[m(0x15e)]('(((.+)+)+)+$');});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x155;let f=c[d];return f;},a105d(a,b);}a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'method','aliases':['m'],'usage':a105n(0x15d),'checkWhere':!![],'shortDesc':a105n(0x16b),'validOpts':[a105n(0x17a)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a105n;try{const c=this[o(0x16f)][o(0x174)]();this['fsi']['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x155)]),f={'name':b[p(0x155)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[p(0x155)]),'noRename':!![]};let g='js';c[p(0x169)]['js']==='tsx'&&(g='ts');const h=this[p(0x16f)]['pathFromApp']({});(!this[p(0x16f)]['checkMeteorPackage'](p(0x15b))||!this[p(0x16f)][p(0x166)]('ddp-rate-limiter')||!this[p(0x16f)][p(0x166)](p(0x16a)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this['fsi']['installMeteorPackage'](p(0x170),{'cwd':h}));this[p(0x16f)][p(0x165)]({'srcPath':p(0x15a),'destPath':this[p(0x16f)][p(0x175)]({'pathParts':[p(0x163),p(0x16d),b['appPathPrefix'],p(0x156),b['dir'],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x17a)]?'/'+b[p(0x17a)]+'/':'/',j=this[p(0x16f)][p(0x175)]({'pathParts':[p(0x163),p(0x16d),b['appPathPrefix'],p(0x159)+c[p(0x169)]['js']]});this[p(0x16f)][p(0x177)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x161)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0x195))/0x1+-parseInt(l(0x1a3))/0x2*(-parseInt(l(0x1b1))/0x3)+parseInt(l(0x1ac))/0x4*(-parseInt(l(0x1a6))/0x5)+parseInt(l(0x194))/0x6*(parseInt(l(0x1b5))/0x7)+-parseInt(l(0x1af))/0x8*(parseInt(l(0x1b0))/0x9)+-parseInt(l(0x196))/0xa*(parseInt(l(0x197))/0xb)+parseInt(l(0x19f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xd102b));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x1a1)]()[n(0x19a)](n(0x19d))[n(0x1a1)]()[n(0x1b2)](a106a)[n(0x19a)]('(((.+)+)+)+$');});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x18e;let f=c[d];return f;},a106d(a,b);}import a106e from'path';function a106c(){const s=['6494859zIDvFt','618246POCAhL','constructor','maka\x20g:package\x20todos:package','pathFromProject','1141EvNntk','.js','relative','dir','tests/client','package','store','hasOwnProperty','lib','pathFromApp','fsi','tests/server','/package.js','3954TxAVZR','253196FbDclf','290OqpBkg','174977awSESJ','engines','template','search','package/','features','(((.+)+)+)+$','server','17464164wrYmzO','template/template.js','toString','ssr','8KllocO','client','package/package.js','30365LljeoX','noRename','packages','graphql','apply','resourceName','396jjjzhu','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','package.js','8Zhjwrq'];a106c=function(){return s;};return a106c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a106o(0x1ba),'aliases':['p'],'usage':a106o(0x1ad),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a106o(0x1b8)],'examples':[a106o(0x1b3)]},async function(a,b){const p=a106o,c=paramCase(b[p(0x1ab)]),d=this['fsi'][p(0x190)]({'pathParts':[p(0x1a8),b[p(0x1b8)],c]}),e=this[p(0x191)]['pathFromAppWithNoReWrite']({'pathParts':[p(0x1a8),b[p(0x1b8)],c,p(0x1ae)]}),f=this[p(0x191)]['getProjectConfig']();this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1ab)]),'myPath':a106e[q(0x1b7)](this[q(0x191)][q(0x1b4)]({}),d),'cssCaseName':paramCase(b[q(0x1ab)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f['engines'][q(0x1a4)],'graphql':f[q(0x198)][q(0x1a9)],'ssr':f[q(0x198)][q(0x1a2)],'isComponent':b[q(0x18e)]('component'),'isLayout':b[q(0x18e)]('layout'),'isStore':b['hasOwnProperty'](q(0x1bb)),'features':f[q(0x19c)],'noRename':!![],'theme':f['engines']['theme']};this[q(0x191)][q(0x199)]({'srcPath':q(0x1a5),'destPath':e,'context':g,'config':f}),g[q(0x1a7)]=![];const h=d+'/client/'+c+q(0x1b6);this[q(0x191)][q(0x199)]({'srcPath':q(0x1a0),'destPath':h,'context':g,'config':f});const i=[q(0x18f),q(0x19e),q(0x1b9),q(0x192)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x1b6);this[r(0x191)]['template']({'srcPath':r(0x19b)+j+r(0x193),'destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107p=a107d;(function(a,b){const m=a107d,c=a();while(!![]){try{const d=parseInt(m(0x129))/0x1*(-parseInt(m(0xe7))/0x2)+parseInt(m(0x12e))/0x3+parseInt(m(0x127))/0x4+parseInt(m(0x117))/0x5+-parseInt(m(0x113))/0x6*(-parseInt(m(0xe8))/0x7)+parseInt(m(0xed))/0x8*(-parseInt(m(0x11f))/0x9)+parseInt(m(0xff))/0xa*(-parseInt(m(0x106))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xbfd09));function a107c(){const s=['tsx','471306TkpUve','withTranslations','setTemplate','checkNpmPackage','component','store','pathFromProject','(((.+)+)+)+$','installNpmPackage','theme','react','graphql','resourceName','7194IBDEaB','engines','import\x20\x27','template/template.html','2190695cZgujf','ssr','features','withHook','apply','className','true','layouts','270423lMSOxR','/imports/ui/','startup','injectAtBeginningOfFile','/imports/ui/pages','root','warn','export\x20{\x20','2660836FpHDdk','api','14rsgWTY','\x20};\x0a','import\x20{\x20','template/template.css','component/component.js','257106OJOGoB','hasOwnProperty','injectAtEndOfFile','import\x20\x27./','dir','test/test.js','client','rewriteDestinationPathForEngine','3964plghBR','3661cVApOc','pathFromApp','css','baseDir','template','16RdokLa','components','.js','string','toString','page','templates.js','.app-tests.js','ramda','.css','test','fsi','html','\x20}\x20from\x20\x27','getProjectConfig','maka\x20g:page\x20todos/todos-item','search','assign','220OegjQH','layout','fileName','\x27;\x0a','pages','create'];a107c=function(){return s;};return a107c();}function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xe7;let f=c[d];return f;},a107d(a,b);}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a107d;if(c){const e=c[n(0x11b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const o=a107d;return a107a[o(0xf1)]()[o(0xfd)]('(((.+)+)+)+$')[o(0xf1)]()['constructor'](a107a)[o(0xfd)](o(0x10d));});a107a();import a107e 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[a107p(0x104)]({'name':a107p(0xf2),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a107p(0xeb),'values':['hooks',a107p(0xee),a107p(0x103),a107p(0x11e)]},{'name':a107p(0x11a),'boolFlag':!![]}],'examples':[a107p(0xfc)]},function(a,b){const q=a107p,c=b[q(0xeb)]?q(0x120)+b[q(0xeb)]:q(0x123),d=this[q(0xf8)]['pathFromApp'](b),e=this[q(0xf8)][q(0xe9)]({'pathParts':[c,b[q(0x132)],paramCase(b[q(0x112)]),paramCase(b[q(0x112)])]}),f=this[q(0xf8)][q(0xfb)]();this[q(0xf8)]['withValue'](f,()=>{const r=q;typeof f[r(0xec)][r(0xf9)]==='string'&&(f[r(0xec)]['html']=f[r(0xec)][r(0xf9)]===r(0x11d)?!![]:![],this[r(0xf8)][r(0x108)](r(0xf9),f[r(0xec)][r(0xf9)]));typeof f['template'][r(0xf7)]===r(0xf0)&&(f['template'][r(0xf7)]=f[r(0xec)]['test']===r(0x11d)?!![]:![],this[r(0xf8)]['setTemplate'](r(0xf7),f[r(0xec)][r(0xf7)]));typeof f[r(0xec)][r(0xea)]===r(0xf0)&&(f[r(0xec)]['css']=f['template'][r(0xea)]===r(0x11d)?!![]:![],this['fsi']['setTemplate'](r(0xea),f[r(0xec)]['css']));typeof f[r(0xec)]['js']===r(0xf0)&&(f[r(0xec)]['js']=f[r(0xec)]['js']===r(0x11d)?!![]:![],this['fsi'][r(0x108)]('js',f[r(0xec)]['js']));!f[r(0x119)]&&(f[r(0x119)]={});!b[r(0x124)]&&!this[r(0xf8)][r(0x109)](r(0xf5))&&(Log[r(0x125)]('Updating\x20npm\x20packages\x20...'),this[r(0xf8)][r(0x10e)](r(0xf5),{'cwd':d}));const g={'name':pascalCase(b[r(0x112)]),'myPath':a107e['relative'](this[r(0xf8)][r(0x10c)]({}),e),'cssCaseName':paramCase(b[r(0x112)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x112)]),'graphql':f[r(0x114)][r(0x111)],'features':f[r(0x119)],'client':f[r(0x114)][r(0x134)],'api':f[r(0x114)][r(0x128)],'ssr':f[r(0x114)][r(0x118)],'isStore':b['hasOwnProperty'](r(0x10b)),'isComponent':b['hasOwnProperty'](r(0x10a)),'isLayout':b[r(0x12f)](r(0x100)),'withTranslations':f[r(0x119)][r(0x107)],'test':f[r(0x114)][r(0xf7)],'theme':f[r(0x114)][r(0x10f)]};f[r(0xec)][r(0xf9)]&&this[r(0xf8)][r(0xec)]({'srcPath':r(0x116),'destPath':e+'.html','context':g,'config':f});f[r(0x119)]?.['withHooks']||b[r(0x11a)]?this['fsi'][r(0xec)]({'srcPath':'hook/hook.js','destPath':e+'.js','framework':r(0x110),'context':g,'config':f}):this[r(0xf8)]['template']({'srcPath':r(0x12d),'destPath':e+r(0xef),'framework':'react','context':g,'config':f});f[r(0x114)][r(0xf7)]!=='none'&&this[r(0xf8)][r(0xec)]({'srcPath':r(0x133),'destPath':e+r(0xf4),'framework':r(0x110),'context':g,'config':f});f[r(0xec)][r(0xea)]&&this['fsi'][r(0xec)]({'srcPath':r(0x12c),'destPath':e+r(0xf6),'context':Object[r(0xfe)]({},g,{'className':paramCase(b[r(0x112)])}),'config':f});f[r(0x114)][r(0x134)]!==r(0x110)&&f['engines'][r(0x134)]!=='vanilla'?(f[r(0xec)]['css']&&this['fsi'][r(0x122)]({'filePath':e+'.'+f[r(0x114)]['js'],'content':'import\x20\x27./'+g[r(0x101)]+'.'+f['engines'][r(0xf9)]+r(0x102)+r(0x131)+g[r(0x101)]+'.'+f[r(0x114)]['css']+'\x27;'}),!f[r(0xec)][r(0xea)]&&this[r(0xf8)][r(0x122)]({'filePath':e+'.'+f[r(0x114)]['js'],'content':r(0x131)+g['fileName']+'.'+f[r(0x114)][r(0xf9)]+'\x27;'})):f[r(0xec)][r(0xea)]&&this[r(0xf8)][r(0x122)]({'filePath':e+'.'+f[r(0x114)]['js'],'content':'import\x20\x27./'+g[r(0x101)]+'.'+f[r(0x114)][r(0xea)]+'\x27;'});const h=b[r(0x132)]?'/'+b[r(0x132)]+'/':'/',i=''+c+h+g['fileName']+'/'+g[r(0x101)];let j;if(f[r(0x114)][r(0x118)]===r(0x11d)){const k=this[r(0xf8)][r(0xe9)]({'pathParts':['imports',r(0x121),'lib',r(0xf3)]});j=this[r(0xf8)][r(0x135)]({'pathParts':[k],'config':f});}else{const l=this[r(0xf8)][r(0xe9)]({'pathParts':['imports','startup',r(0x134),'templates.js']});j=this[r(0xf8)][r(0x135)]({'pathParts':[l],'config':f});}f[r(0x114)][r(0x134)]==='react'?(f[r(0x114)]['js']===r(0x105)?this[r(0xf8)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x12b)+g[r(0x11c)]+r(0xfa)+i+r(0x102)}):this[r(0xf8)][r(0x122)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x11c)]+r(0xfa)+i+'.'+f['engines']['js']+r(0x102)}),this['fsi']['injectAtEndOfFile']({'filePath':j,'content':r(0x126)+g[r(0x11c)]+r(0x12a)})):this[r(0xf8)][r(0x130)]({'filePath':j,'content':r(0x115)+i+'.'+f['engines']['js']+r(0x102)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=-parseInt(h(0x13c))/0x1+parseInt(h(0x12a))/0x2+-parseInt(h(0x135))/0x3+parseInt(h(0x130))/0x4+-parseInt(h(0x124))/0x5*(parseInt(h(0x125))/0x6)+parseInt(h(0x132))/0x7*(parseInt(h(0x137))/0x8)+-parseInt(h(0x136))/0x9*(parseInt(h(0x133))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xe4644));function a108c(){const n=['4708504ALQvYW','resourceName','7BAbWnm','10oiUKjU','maka\x20g:publish\x20todos','5042178cHJtWC','1945359LLmcgs','7978872kslmmF','engines','fsi','withValue','publish/publish.','536121xMOWqc','getProjectConfig','constructor','injectAtEndOfFile','5DyoqpR','1995834cRxiLF','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','(((.+)+)+)+$','templateContent','toString','3053288MHlfyY','search','rewriteDestinationPathForEngine','apply','create','publish'];a108c=function(){return n;};return a108c();}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a['toString']()[j(0x12b)]('(((.+)+)+)+$')[j(0x129)]()[j(0x122)](a108a)[j(0x12b)](j(0x127));});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x122;let f=c[d];return f;},a108d(a,b);}a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a108k(0x12e)]({'name':a108k(0x12f),'aliases':['p'],'usage':a108k(0x126),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a108k(0x134)]},async function(a,b){const l=a108k,c=this['fsi'][l(0x13d)]();this[l(0x139)][l(0x13a)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x131)]),'noRename':!![]};let e='js';c[m(0x138)]['js']==='tsx'&&(e='ts');const f=this['fsi'][m(0x12c)]({'pathParts':['server/publish.'+c[m(0x138)]['js']]}),g=this[m(0x139)][m(0x128)]({'srcPath':m(0x13b)+e,'context':d,'config':c});this[m(0x139)][m(0x123)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a109c(){const I=['
|
|
1
|
+
function a109c(){const I=['imports','constructor','templateContent','pathFromApp','\x22*\x22','28323NfpJNp','PrivateLayout','98474paSTEl','5383DTPBmM','layout','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','MasterLayout','includes','baseDir','page','2090gWTMMY','(((.+)+)+)+$','templateName','error','routes.js','maka\x20g:route\x20todosEdit\x20todos/:id/edit','findGenerator','505578NgEHgE','route','ssr','apply','resourceName','Scaffolding\x20for\x20a\x20Route.','readFileLines','invoke','engines','6xlvgJN','react','injectIntoFile','private','<Router','4atjYuE','371235oduJrO','filter','const\x20publicRoutes\x20=\x20(<>','length','dir','rewriteDestinationPathForEngine','hooks','pages','vanilla','route/route.js','cwd','Valid\x20options\x20are:\x20','url','layouts','components','startup','config','warn','client','true','withValue','fsi','</Router>','getProjectConfig','features','1921408gCYFDZ','indexOf','const\x20privateRoutes\x20=\x20(<>','only','Invalid\x20directory\x20option\x20\x22','map','\x0a\x09\x09','injectAfterLineNumber','create','1823105VvVFFn','/imports/ui/pages','toString','toLowerCase','<Route','root','join','search'];a109c=function(){return I;};return a109c();}const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0xc2))/0x1+parseInt(x(0xa4))/0x2+-parseInt(x(0xb3))/0x3+parseInt(x(0xc1))/0x4*(-parseInt(x(0x95))/0x5)+-parseInt(x(0xbc))/0x6*(parseInt(x(0xa5))/0x7)+-parseInt(x(0x8c))/0x8+parseInt(x(0xa2))/0x9*(parseInt(x(0xac))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x4a3e7));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x97)]()[z(0x9c)](z(0xad))[z(0x97)]()[z(0x9e)](a109a)[z(0x9c)](z(0xad));});a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x82;let f=c[d];return f;},a109d(a,b);}import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0x94)]({'name':a109A(0xb4),'aliases':aliases,'validOpts':[a109A(0xbf),'layout',a109A(0x8f),a109A(0xcc),a109A(0x83),a109A(0x9a),'withHook',a109A(0xce),a109A(0xaa)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a109A(0xb8),'examples':['maka\x20g:route\x20todosIndex\x20todos',a109A(0xb1),a109A(0xa7),'maka\x20g:route\x20pages/lists/listIndex\x20lists','maka\x20g:route\x20pages/about']},function(a,b){const B=a109A;try{const c=[B(0xc8),B(0xd0),B(0xc9),B(0xcf)];if(b['baseDir']&&!c['includes'](b[B(0xaa)])){Log[B(0xaf)](B(0x90)+b['baseDir']+'\x22'),Log[B(0xaf)](B(0xcd)+c[B(0x9b)](',\x20'));throw new UsageError();}const d=this[B(0x88)][B(0x8a)]();this[B(0x88)][B(0x87)](d,async()=>{const C=B,f=b[C(0xbf)]??![];let g=paramCase(b[C(0xb7)]),h='/'+g;a[C(0xc5)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[C(0x9b)]('/')[C(0x98)]());g=camelCase(g);b[C(0xa6)]&&(b[C(0xa6)]=camelCase(b[C(0xa6)]));const i=b[C(0xaa)]?'/imports/ui/'+b[C(0xaa)]:C(0x96),j=a109e[C(0x9b)](i,b[C(0xc6)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xa6)]||C(0xa8),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0xbb)][C(0x85)],'newForm':![],'withTranslations':d[C(0x8b)]['withTranslations']};f&&(k['layout']=C(0xa3));if(!b[C(0x9a)]){const n=a109f[C(0xb2)](C(0xab));n&&await n[C(0xba)](a,b);}let l,m;if(d[C(0xbb)]['client']===C(0xbd)){if(d[C(0xbb)][C(0xb5)]===C(0x86)){const r=this[C(0x88)][C(0xa0)]({'pathParts':[C(0x9d),'startup','lib',C(0xb0)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this[C(0x88)][C(0xa0)]({'pathParts':[C(0x9d),'startup',C(0x85),C(0xb0)]});l=this['fsi'][C(0xc7)]({'pathParts':[s],'config':d});}const o=this[C(0x88)][C(0xb9)](l)[C(0x91)]((t,u)=>{const D=C;return t[D(0xa9)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?u+0x1:null;})[C(0xc3)](t=>t!==null);let p=this[C(0x88)][C(0xb9)](l)[C(0x91)]((t,u)=>{const E=C;return t[E(0xa9)](E(0xc4))?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0x88)][C(0xb9)](l)[C(0x91)]((t,u)=>{const F=C;return t['includes'](F(0x8e))?u+0x1:null;})['filter'](t=>t!==null);p['length']>0x0&&q[C(0xc5)]>0x0&&(k['newForm']=!![]);m=this[C(0x88)][C(0x9f)]({'srcPath':C(0xcb),'framework':'react','context':k,'config':d});if(p[C(0xc5)]>0x0||q[C(0xc5)]>0x0){this[C(0x88)][C(0x93)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[C(0x88)]['readFileLines'](l)[C(0x91)]((t,u)=>{const G=C;return t[G(0xa9)](G(0x8e))?u+0x1:null;})[C(0xc3)](t=>t!==null),this[C(0x88)][C(0x93)]({'filePath':l,'content':'\x09{'+k[C(0xae)]+'}','lineNumber':q[0x0]});else p[C(0xc5)]>0x0?(p=this[C(0x88)]['readFileLines'](l)[C(0x91)]((t,u)=>{return t['includes']('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})[C(0xc3)](t=>t!==null),this[C(0x88)][C(0x93)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log[C(0x84)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const t=this['fsi'][C(0xb9)](l)['map'](w=>{const H=C;return w[H(0xa9)](H(0xa1));}),u=t[C(0x8d)](!![])>-0x1,v=u?C(0x99):C(0x89);this[C(0x88)][C(0xbe)]({'filePath':l,'content':C(0x92)+m+C(0x92),'begin':C(0xc0),'end':v});}}else{if(d[C(0xbb)][C(0x85)]===C(0xca)){const w=this[C(0x88)][C(0xa0)]({'pathParts':['imports',C(0x82),C(0x85),C(0xb0)]});l=this[C(0x88)][C(0xc7)]({'pathParts':[w],'config':d}),m=this['fsi']['templateContent']({'srcPath':'route/route.js','context':k}),this[C(0x88)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0xaf)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x16a;let f=c[d];return f;},a110d(a,b);}const a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=-parseInt(j(0x16b))/0x1*(-parseInt(j(0x189))/0x2)+parseInt(j(0x17c))/0x3*(-parseInt(j(0x18d))/0x4)+-parseInt(j(0x16a))/0x5+parseInt(j(0x177))/0x6*(-parseInt(j(0x185))/0x7)+parseInt(j(0x178))/0x8+parseInt(j(0x186))/0x9*(parseInt(j(0x188))/0xa)+-parseInt(j(0x18a))/0xb*(-parseInt(j(0x18b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xb65a5));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0x176)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0x16e)]()[l(0x18e)](l(0x184))[l(0x16e)]()[l(0x190)](a110a)[l(0x18e)](l(0x184));});a110a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a110c(){const p=['248853vcdonk','checkNpmPackage','resourceName','Installing\x20winston','logger','winston\x20setimmediate','startup','pathFromApp','(((.+)+)+)+$','8561paVkjL','9CFfWnN','services','8112070xuuVKa','2kyEFBM','1023mAwjwh','107448ikabOA','type','16nPgbRB','search','tsx','constructor','4529885PoDNer','703049oaArZI','service','error','toString','template','getProjectConfig','lib','fsi','installNpmPackage','engines','create','apply','5574kNwMIk','6191096PDLxDW','service/logger/logger.js','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','svc'];a110c=function(){return p;};return a110c();}import{Log}from'../tools/log/log.class.js';Generator[a110m(0x175)]({'name':a110m(0x16c),'aliases':[a110m(0x17b)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a110m(0x17a),'requiredOpts':[{'name':a110m(0x18c),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a110m;try{const c=this['fsi'][n(0x170)]();this[n(0x172)]['withValue'](c,async()=>{const o=n,d=this[o(0x172)][o(0x183)]({}),f=paramCase(b[o(0x17e)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[o(0x174)]['js'],'noRename':!![]};let h='js';c[o(0x174)]['js']===o(0x18f)&&(h='ts');if(b['type']===o(0x180)){!this[o(0x172)][o(0x17d)]('winston')&&await this[o(0x172)][o(0x173)](o(0x181),{'cwd':d,'msg':o(0x17f)});const i=this[o(0x172)][o(0x183)]({'pathParts':['imports',o(0x182),o(0x171),o(0x187),f+'.'+h]});this['fsi'][o(0x16f)]({'srcPath':o(0x179),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x16d)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a111d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0x1e0))/0x1*(parseInt(f(0x1d5))/0x2)+parseInt(f(0x1d8))/0x3+parseInt(f(0x1df))/0x4+parseInt(f(0x1d6))/0x5+parseInt(f(0x1e1))/0x6*(parseInt(f(0x1da))/0x7)+parseInt(f(0x1dd))/0x8*(-parseInt(f(0x1e2))/0x9)+-parseInt(f(0x1db))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xe10a3));function a111c(){var i=['4980687PFDacz','(((.+)+)+)+$','329rlRryR','21781670hlJGXY','toString','2616784jgEoqA','apply','775284rVzBEk','5zsjNwP','48612LDszBT','9kVkzLj','160620ZllWHr','3953170POGhLi','search'];a111c=function(){return i;};return a111c();}var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a['toString']()[h(0x1d7)](h(0x1d9))[h(0x1dc)]()['constructor'](a111a)[h(0x1d7)](h(0x1d9));});a111a();function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x1d5;var f=c[d];return f;},a111d(a,b);}import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112l=a112d;(function(a,b){const i=a112d,c=a();while(!![]){try{const d=parseInt(i(0xa7))/0x1*(parseInt(i(0xb5))/0x2)+-parseInt(i(0x9f))/0x3*(parseInt(i(0xb9))/0x4)+parseInt(i(0xa0))/0x5*(-parseInt(i(0xb6))/0x6)+parseInt(i(0xa5))/0x7+parseInt(i(0xbb))/0x8*(-parseInt(i(0xad))/0x9)+parseInt(i(0xac))/0xa+-parseInt(i(0xb4))/0xb*(parseInt(i(0xb1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x9a6a9));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a112d;if(c){const e=c[j(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const k=a112d;return a112a[k(0xb2)]()['search'](k(0x9d))[k(0xb2)]()[k(0xb8)](a112a)[k(0x9c)](k(0x9d));});a112a();import{Generator}from'../../generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x9b;let f=c[d];return f;},a112d(a,b);}function a112c(){const o=['maka\x20g:sslconfig\x20--env\x20dev','12QkZryg','toString','join','1947781aQiFUT','10364FzQNco','6raHsUw','appName','constructor','4SADEHl','sslconfig','8exUBgS','fsi','search','(((.+)+)+)+$','getConfigPath','35157LUnewP','695965PzNXqg','error','apply','openssl.conf','getProjectConfig','5594743BbGFhx','create','52nbpphG','template','withValue','openssl/openssl.conf','env','7467900yYlIGp','7695279bBPxgu','service','_keys'];a112c=function(){return o;};return a112c();}import{Log}from'../../tools/log/log.class.js';import a112e from'path';Generator[a112l(0xa6)]({'name':a112l(0xba),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':[a112l(0xab)],'examples':[a112l(0xb0)],'validOpts':[a112l(0xab)]},async function(a,b){const m=a112l;try{const c=await this[m(0x9b)][m(0xa4)](),d=await this[m(0x9b)]['getGlobalConfig'](),f=this[m(0x9b)][m(0x9e)](b[m(0xab)]),g=a112e[m(0xb3)](f,m(0xaf),m(0xa3));await this[m(0x9b)][m(0xa9)](c,async()=>{const n=m,h={'app':d[n(0xb7)],'noRename':!![]};await this[n(0x9b)][n(0xa8)]({'srcPath':n(0xaa),'destPath':g,'framework':n(0xae),'context':h,'config':c});});}catch(h){Log[m(0xa1)](h);}});
|