@maka/maka-cli 4.9.15 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.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/register.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/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/api/methods.js +1 -1
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/api/tests.js +0 -1
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +2 -7
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +2 -7
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +4 -5
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +4 -5
- package/bundle/obf/src/templates/react/component/component.js.jsx +2 -14
- package/bundle/obf/src/templates/react/component/component.js.tsx +2 -13
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +2 -9
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +2 -10
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x1b0;let f=c[d];return f;},a115d(a,b);}const a115z=a115d;(function(a,b){const x=a115d,c=a();while(!![]){try{const d=-parseInt(x(0x1d7))/0x1*(parseInt(x(0x1df))/0x2)+-parseInt(x(0x1cb))/0x3*(parseInt(x(0x1ed))/0x4)+parseInt(x(0x1c2))/0x5*(-parseInt(x(0x1c0))/0x6)+parseInt(x(0x1ce))/0x7+-parseInt(x(0x1da))/0x8+parseInt(x(0x1dc))/0x9+parseInt(x(0x1e6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xae7f7));const a115b=(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;};}()),a115a=a115b(this,function(){const y=a115d;return a115a[y(0x1ec)]()[y(0x1c5)](y(0x1b3))['toString']()[y(0x1bf)](a115a)[y(0x1c5)]('(((.+)+)+)+$');});a115a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a115e from'path';function a115c(){const D=['imports','withValue','getFiles','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','layouts','tests','3172530OnyYOQ','options','error','{props.children}','template','.js','toString','1272xmJrwD','injectImport','{this.props.children}','findAppDirectory','fsi','true','(((.+)+)+)+$','log','MATERIAL','/imports/ui/hooks','basic-drawer','maka\x20g:k:m:f','baseDir','ssr','<div\x20id=\x22','kit/mui/frame/drawers/','jsx','appName','constructor','36SPUIzU','basic-app-bar','308445SKaimT','\x20/>\x0a','test','search','checkbox','injectIntoFile','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','-hook\x22>','/imports/startup/lib/templates','1938cEhVlm','No\x20layouts\x20selected','react','2420838dXVaLM','checkMeteorPackage','injectTemplateModule','maka\x20generate:kit:mui:frame','dir','kit/mui/frame/app-bars/','create','replaceAll','{\x20this.props.children\x20}','7PjGUjB','pathFromApp','join','301752qVKtLW','frame','11757690YbMJSO','app-tests','{\x20props.children\x20}','183278GJtiIe'];a115c=function(){return D;};return a115c();}import a115f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a115z(0x1d4)]({'name':a115z(0x1db),'aliases':['f'],'usage':'maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','shortDesc':'Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','validOpts':[a115z(0x1e4)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a115z(0x1b5)],'client':ClientEngines['REACT']},'examples':[a115z(0x1d1),a115z(0x1b8)],'description':a115z(0x1e3)},async function(a,b){const A=a115z;try{const c=A(0x1c1),d=A(0x1b7),f=this[A(0x1b1)]['getMakaProjectConfig'](),g=f['engines'][A(0x1ba)]===A(0x1b2);await this[A(0x1b1)][A(0x1cf)]('session',{'shouldInstall':!![]});const h=this[A(0x1b1)][A(0x1b0)](),i=a115e[A(0x1d9)](h,A(0x1e0),'ui',A(0x1e4)),j=this[A(0x1b1)]['getDirectories'](i),k=await Actions[A(0x1e7)]({'type':A(0x1c6),'name':'layouts','message':A(0x1c8),'choices':j});if(k[A(0x1e4)]['length']===0x0){Log[A(0x1e8)](A(0x1cc));return;}const l=b['baseDir']?'/imports/ui/'+b[A(0x1b9)]:A(0x1b6),m=this['fsi'][A(0x1d8)]({'pathParts':[l,b[A(0x1d2)],paramCase(c),paramCase(c)]}),n=this[A(0x1b1)]['pathFromApp']({'pathParts':[l,b[A(0x1d2)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[A(0x1be)])[A(0x1d5)]('-','\x20')};await this[A(0x1b1)][A(0x1e1)](f,async()=>{const B=A;await this['fsi'][B(0x1ea)]({'srcPath':B(0x1d3)+c+B(0x1eb),'destPath':m+B(0x1eb),'framework':B(0x1cd),'context':o,'config':f,'force':![],'ignore':![]}),await this['fsi']['template']({'srcPath':B(0x1bc)+d+'.js','destPath':n+B(0x1eb),'framework':B(0x1cd),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b['dir']+'/'+c+'/'+c;await this[A(0x1b1)][A(0x1d0)](c,f,p);const q=''+l+b[A(0x1d2)]+'/'+d+'/'+d;await this[A(0x1b1)][A(0x1d0)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[A(0x1b1)][A(0x1e2)](a115e[A(0x1d9)](i,s),{'extensions':[A(0x1bd),'tsx'],'omit':[A(0x1dd),A(0x1e5),A(0x1c4)]});for(const u of t){const v=a115e['join'](i,s,u);await this[A(0x1b1)][A(0x1ee)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?A(0x1ca):'/imports/startup/client/templates','isNamedExport':!![]}),await this['fsi'][A(0x1c7)]({'filePath':v,'content':'<'+pascalCase(c)+A(0x1c3),'begin':[A(0x1bb)+s+'\x22>',A(0x1bb)+s+A(0x1c9)],'end':[A(0x1ef),A(0x1d6),A(0x1e9),A(0x1de)]}),await this[A(0x1b1)][A(0x1ee)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?A(0x1ca):'/imports/startup/client/templates','isNamedExport':!![]}),await this[A(0x1b1)][A(0x1c7)]({'filePath':v,'content':'<'+pascalCase(d)+A(0x1c3),'begin':[A(0x1bb)+s+'\x22>','<div\x20id=\x22'+s+A(0x1c9)],'end':['{this.props.children}','{\x20this.props.children\x20}',A(0x1e9),A(0x1de)]});}}return!![];}catch(w){Log[A(0x1e8)](w);}},async function(){const C=a115z;console[C(0x1b4)]('Cleaning\x20up...');},a115f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116i=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a116i=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d=parseInt(f(0x16a))/0x1+parseInt(f(0x168))/0x2*(-parseInt(f(0x15c))/0x3)+parseInt(f(0x169))/0x4+-parseInt(f(0x164))/0x5*(parseInt(f(0x15f))/0x6)+parseInt(f(0x161))/0x7+-parseInt(f(0x163))/0x8*(-parseInt(f(0x167))/0x9)+-parseInt(f(0x15d))/0xa*(parseInt(f(0x165))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xd6553));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a116d;if(c){const e=c[g(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const h=a116d;return a116a[h(0x162)]()['search']('(((.+)+)+)+$')[h(0x162)]()[h(0x15a)](a116a)['search']('(((.+)+)+)+$');});a116a();import{Generator}from'../../../generator.js';import a116e from'../kit.js';const MuiGen=Generator[a116i(0x15e)]({'name':a116i(0x166),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':'Material-UI\x20Kit','validOpts':[''],'isPro':![],'examples':['maka\x20g:kit:m']},async function(){const j=a116i;throw j(0x160);},async function(){},a116e);export default MuiGen;function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x15a;let f=c[d];return f;},a116d(a,b);}function a116c(){const k=['2187520qWQPtY','create','44796XdTgAN','NIE','9435048VkGlgv','toString','1885264Qqkkia','245KlIXUP','11pHddHw','mui','18SjxiPy','12152UIlDgk','1115372VMhYiC','160426Jcseon','constructor','apply','393CuTBQS'];a116c=function(){return k;};return a116c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117n=a117d;
|
|
1
|
+
const a117n=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=parseInt(l(0x209))/0x1*(-parseInt(l(0x1f8))/0x2)+-parseInt(l(0x1e2))/0x3*(parseInt(l(0x1ed))/0x4)+-parseInt(l(0x20c))/0x5+-parseInt(l(0x1fe))/0x6*(-parseInt(l(0x1de))/0x7)+parseInt(l(0x1e9))/0x8*(parseInt(l(0x20e))/0x9)+parseInt(l(0x1ef))/0xa+parseInt(l(0x1e6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xe3d65));const a117b=(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;};}()),a117a=a117b(this,function(){const m=a117d;return a117a['toString']()['search'](m(0x1df))[m(0x208)]()[m(0x1dd)](a117a)[m(0x1f0)](m(0x1df));});a117a();import a117e from'path';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a117d(a,b);}import{Generator}from'../generator.js';function a117c(){const q=['dir','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','css','import\x20\x27./','client','.css','checkNpmPackage','true','api','toString','1HRFpoF','pathFromProject','Scaffolding\x20for\x20a\x20React\x20Layout.','8643760jmlALr','test/test.js','4014UqlRHm','withValue','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','includes','maka\x20g:layout\x20mobile/iPhone8','template','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','fileName','injectAtBeginningOfFile','test','constructor','4511794yxVPiI','(((.+)+)+)+$','getMakaProjectConfig','hook/hook.js','3FJldAG','resourceName','.js','assign','13131965fcpLsX','withHook','react','16080VCqEGe','warn','fsi','injectTemplateModule','412948vZfLZG','string','18340290BIRtmO','search','theme','ramda','relative','features','.app-tests.js','maka\x20g:l\x20web/safari','split','3607272AyMOvZ','setTemplate','template/template.css','engines','withHooks','create','6RJBkgG'];a117c=function(){return q;};return a117c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a117n(0x1fd)]({'name':'layout','aliases':aliases,'usage':a117n(0x210),'shortDesc':a117n(0x20b),'validOpts':[],'examples':[a117n(0x212),a117n(0x1f6)]},async function(a,b){const o=a117n,c='/imports/ui/layouts',d=this['fsi']['findAppDirectory'](),e=this[o(0x1eb)]['pathFromApp']({'pathParts':[c,b[o(0x1ff)],paramCase(b[o(0x1e3)]),paramCase(b[o(0x1e3)])]}),f=this[o(0x1eb)][o(0x1e0)]();await this[o(0x1eb)][o(0x20f)](f,async()=>{const p=o;typeof f[p(0x213)][p(0x217)]==='string'&&(f[p(0x213)][p(0x217)]=f[p(0x213)]['test']===p(0x206)?!![]:![],this['fsi']['setTemplate'](p(0x217),f['template']['test']));typeof f[p(0x213)]['css']===p(0x1ee)&&(f[p(0x213)]['css']=f[p(0x213)]['css']==='true'?!![]:![],this[p(0x1eb)]['setTemplate'](p(0x201),f[p(0x213)][p(0x201)]));typeof f[p(0x213)]['js']===p(0x1ee)&&(f[p(0x213)]['js']=f[p(0x213)]['js']===p(0x206)?!![]:![],this[p(0x1eb)][p(0x1f9)]('js',f[p(0x213)]['js']));!f[p(0x1f4)]&&(f[p(0x1f4)]={});const g=b['_']?b['_'][0x0][p(0x1f7)](':')[0x1]:![],h=b['_']&&aliases[p(0x211)](g);h&&!this[p(0x205)]('ramda')&&(Log[p(0x1ea)](p(0x200)),this['fsi']['installNpmPackage'](p(0x1f2),{'cwd':d}));if(h&&!this[p(0x205)]('react')){Log[p(0x1ea)](p(0x214));return;}const i={'name':pascalCase(b[p(0x1e3)]),'myPath':a117e[p(0x1f3)](this['fsi'][p(0x20a)]({}),e),'cssCaseName':paramCase(b[p(0x1e3)]),'className':pascalCase(b[p(0x1e3)]),'camelCaseName':camelCase(b[p(0x1e3)]),'fileName':paramCase(b[p(0x1e3)]),'graphql':f[p(0x1fb)]['graphql'],'features':f[p(0x1f4)],'client':f['engines'][p(0x203)],'api':f['engines'][p(0x207)],'ssr':f[p(0x1fb)]['ssr'],'test':f[p(0x1fb)]['test'],'theme':f[p(0x1fb)][p(0x1f1)],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0x1f4)]['withTranslations']};f[p(0x1f4)]?.[p(0x1fc)]||b[p(0x1e7)]?await this['fsi'][p(0x213)]({'srcPath':p(0x1e1),'destPath':e+p(0x1e4),'framework':p(0x1e8),'context':i,'config':f}):await this[p(0x1eb)]['template']({'srcPath':'component/component.js','destPath':e+p(0x1e4),'framework':p(0x1e8),'context':i,'config':f});f['engines'][p(0x217)]!=='none'&&await this['fsi'][p(0x213)]({'srcPath':p(0x20d),'destPath':e+p(0x1f5),'framework':p(0x1e8),'context':i,'config':f});f[p(0x213)]['css']&&(await this[p(0x1eb)][p(0x213)]({'srcPath':p(0x1fa),'destPath':e+p(0x204),'context':Object[p(0x1e5)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),await this['fsi'][p(0x216)]({'filePath':e+'.'+f[p(0x1fb)]['js'],'content':p(0x202)+i['fileName']+'.'+f[p(0x1fb)][p(0x201)]+'\x27;'}));const j=b[p(0x1ff)]?'/'+b['dir']+'/':'/',k=''+c+j+i[p(0x215)]+'/'+i[p(0x215)];await this[p(0x1eb)][p(0x1ec)](i['className'],f,k);});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a118c(){const i=['238353bEYMCn','maka\x20g:template\x20todos/todo_item','maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20generate:scaffold\x20todos','search','maka\x20g:route\x20todos/edit','567cUXBNw','287193gxaQRX','1146ixfZjZ','5110362mNnjFU','maka\x20g:scaffold\x20todos','469524IFhMGI','(((.+)+)+)+$','610AgOSLS','maka\x20{generate,\x20g}:<generator>\x20<name>','3875570bNqATR','44384DPVqzZ','maka\x20g:api\x20trucks','Scaffold\x20various\x20parts\x20of\x20your\x20application','generate','4jiiBhM','maka\x20g:package\x20package:name'];a118c=function(){return i;};return a118c();}const a118h=a118d;(function(a,b){const f=a118d,c=a();while(!![]){try{const d=parseInt(f(0x1c1))/0x1*(parseInt(f(0x1ce))/0x2)+parseInt(f(0x1ba))/0x3+-parseInt(f(0x1c5))/0x4+-parseInt(f(0x1c7))/0x5*(-parseInt(f(0x1c2))/0x6)+-parseInt(f(0x1c0))/0x7*(parseInt(f(0x1ca))/0x8)+parseInt(f(0x1c3))/0x9+-parseInt(f(0x1c9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x46f47));const a118b=(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;};}()),a118a=a118b(this,function(){const g=a118d;return a118a['toString']()[g(0x1be)](g(0x1c6))['toString']()['constructor'](a118a)[g(0x1be)]('(((.+)+)+)+$');});a118a();import{Generator}from'../generator.js';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x1b9;let f=c[d];return f;},a118d(a,b);}const MakaGen=new Generator({'name':a118h(0x1cd),'aliases':['g'],'usage':a118h(0x1c8),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a118h(0x1cc),'examples':[a118h(0x1bd),a118h(0x1c4),a118h(0x1bb),a118h(0x1b9),a118h(0x1bf),a118h(0x1cb),a118h(0x1bc)]},function(){});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119m=a119d;
|
|
1
|
+
const a119m=a119d;(function(a,b){const j=a119d,c=a();while(!![]){try{const d=parseInt(j(0x162))/0x1*(parseInt(j(0x16f))/0x2)+-parseInt(j(0x15c))/0x3+parseInt(j(0x15a))/0x4+-parseInt(j(0x153))/0x5+-parseInt(j(0x159))/0x6+-parseInt(j(0x175))/0x7+parseInt(j(0x174))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x4c3dd));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a119d;if(c){const e=c[k(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const l=a119d;return a119a[l(0x166)]()[l(0x164)](l(0x173))[l(0x166)]()[l(0x169)](a119a)[l(0x164)](l(0x173));});a119a();function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x153;let f=c[d];return f;},a119d(a,b);}function a119c(){const p=['engines','constructor','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','dir','appPathPrefix','imports','pathFromApp','2rkHXBC','fsi','withValue','checkMeteorPackage','(((.+)+)+)+$','10595752ZtSGff','179277TRnqxF','tsx','2866650xuPNFg','-rpc-method\x27;','ddp-rate-limiter','method/method.js','injectAtEndOfFile','resourceName','940902oyLikv','430616rlrySB','maka\x20{generate,\x20g}:{method,\x20m}\x20name','1799655TGiphc','apply','template','index.','methods','method','235805Uldasx','mdg:validated-method','search','startup','toString','import\x20\x27./methods'];a119c=function(){return p;};return a119c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a119m(0x161),'aliases':['m'],'usage':a119m(0x15b),'checkWhere':!![],'shortDesc':a119m(0x16a),'validOpts':['dir'],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a119m;try{const c=this['fsi']['getMakaProjectConfig']();await this['fsi'][n(0x171)](c,async()=>{const o=n,d=paramCase(b[o(0x158)]),f={'name':b[o(0x158)],'fileName':d,'className':pascalCase(b[o(0x158)]),'camelCase':camelCase(b[o(0x158)]),'noRename':!![]};let g='js';c['engines']['js']===o(0x176)&&(g='ts');await this['fsi'][o(0x172)](['maka:check',o(0x155),o(0x163)],{'shouldInstall':!![]}),await this[o(0x170)][o(0x15e)]({'srcPath':o(0x156),'destPath':this['fsi'][o(0x16e)]({'pathParts':[o(0x16d),o(0x165),b[o(0x16c)],o(0x160),b[o(0x16b)],d+'-rpc-method.'+g]}),'context':f,'config':c});const h=b[o(0x16b)]?'/'+b[o(0x16b)]+'/':'/',i=this[o(0x170)][o(0x16e)]({'pathParts':[o(0x16d),o(0x165),b[o(0x16c)],o(0x15f)+c[o(0x168)]['js']]});await this[o(0x170)][o(0x157)]({'filePath':i,'content':o(0x167)+h+d+o(0x154)});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120o=a120d;(function(a,b){const l=a120d,c=a();while(!![]){try{const d=parseInt(l(0x106))/0x1+-parseInt(l(0x108))/0x2+-parseInt(l(0x10f))/0x3*(parseInt(l(0x124))/0x4)+parseInt(l(0x109))/0x5+parseInt(l(0x110))/0x6*(parseInt(l(0x120))/0x7)+parseInt(l(0x117))/0x8*(parseInt(l(0x115))/0x9)+parseInt(l(0x11d))/0xa*(parseInt(l(0x102))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x422a2));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a120d;if(c){const e=c[m(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const n=a120d;return a120a[n(0x10e)]()['search'](n(0x119))[n(0x10e)]()[n(0x11a)](a120a)[n(0x129)](n(0x119));});a120a();import a120e from'path';import{Generator}from'../generator.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0xff;let f=c[d];return f;},a120d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a120o(0x105)]({'name':a120o(0x128),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a120o(0x104),'validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a120o,c=paramCase(b[p(0x114)]),d=this[p(0xff)][p(0x103)]({'pathParts':[p(0x126),b['dir'],c]}),e=this[p(0xff)][p(0x113)]({'pathParts':[p(0x126),b[p(0x10b)],c,'package.js']}),f=this[p(0xff)][p(0x112)]();await this[p(0xff)][p(0x100)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x114)]),'myPath':a120e['relative'](this['fsi'][q(0x122)]({}),d),'cssCaseName':paramCase(b[q(0x114)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x114)]),'fileName':c,'client':f['engines'][q(0x11e)],'graphql':f[q(0x11c)]['graphql'],'ssr':f[q(0x11c)]['ssr'],'isComponent':b[q(0x11f)](q(0x10c)),'isLayout':b[q(0x11f)](q(0x111)),'isStore':b[q(0x11f)]('store'),'features':f[q(0x121)],'noRename':!![],'theme':f['engines'][q(0x10a)]};await this[q(0xff)][q(0x127)]({'srcPath':q(0x10d),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0x101)+c+q(0x123);await this['fsi'][q(0x127)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0x125),q(0x116),'tests/client','tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+q(0x123);await this['fsi']['template']({'srcPath':q(0x11b)+j+q(0x107),'destPath':k,'context':g,'config':f});}});});function a120c(){const r=['dir','component','package/package.js','toString','145980FrAGAL','12gxcyUj','layout','getMakaProjectConfig','pathFromAppWithNoReWrite','resourceName','54WpIKhy','server','284808wcMCSv','apply','(((.+)+)+)+$','constructor','package/','engines','10CiVYDv','client','hasOwnProperty','478954AHyFPp','features','pathFromProject','.js','32wDWbjD','lib','packages','template','package','search','fsi','withValue','/client/','286154DQrShM','pathFromApp','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','create','226279gBprmJ','/package.js','306228KKllMR','1053305KuKGCi','theme'];a120c=function(){return r;};return a120c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=-parseInt(j(0x80))/0x1+-parseInt(j(0xaa))/0x2+parseInt(j(0x90))/0x3+-parseInt(j(0x8b))/0x4*(-parseInt(j(0xab))/0x5)+parseInt(j(0x9c))/0x6+parseInt(j(0xa7))/0x7+-parseInt(j(0xa2))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x85eea));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a[l(0x86)]()[l(0x7c)]('(((.+)+)+)+$')[l(0x86)]()[l(0x85)](a121a)['search']('(((.+)+)+)+$');});a121a();import a121e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a121f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x75;let f=c[d];return f;},a121d(a,b);}const aliases=['p'];Generator[a121m(0xaf)]({'name':a121m(0xa8),'aliases':aliases,'usage':a121m(0xac),'shortDesc':a121m(0xb4),'validOpts':[{'name':a121m(0x89),'values':['hooks',a121m(0x7e),a121m(0x7a),a121m(0xa9)]},{'name':'withHook','boolFlag':!![]}],'examples':[a121m(0x76)]},async function(a,b){const n=a121m,c=b[n(0x89)]?'/imports/ui/'+b[n(0x89)]:n(0x87),d=this['fsi'][n(0xb0)](b),e=this[n(0xb3)][n(0xb0)]({'pathParts':[c,b[n(0x98)],paramCase(b['resourceName']),paramCase(b[n(0x77)])]}),f=this['fsi'][n(0xa4)]();let g='';return await this[n(0xb3)][n(0xa0)](f,async()=>{const o=n;typeof f[o(0xbb)]['html']===o(0x78)&&(f[o(0xbb)][o(0xae)]=f[o(0xbb)][o(0xae)]===o(0x8c)?!![]:![],this[o(0xb3)][o(0xb1)](o(0xae),f[o(0xbb)]['html']));typeof f[o(0xbb)][o(0x8a)]==='string'&&(f['template'][o(0x8a)]=f[o(0xbb)]['test']===o(0x8c)?!![]:![],this['fsi'][o(0xb1)](o(0x8a),f[o(0xbb)][o(0x8a)]));typeof f['template']['css']===o(0x78)&&(f['template'][o(0xa5)]=f[o(0xbb)]['css']===o(0x8c)?!![]:![],this['fsi']['setTemplate'](o(0xa5),f['template'][o(0xa5)]));typeof f['template']['js']===o(0x78)&&(f['template']['js']=f['template']['js']==='true'?!![]:![],this['fsi'][o(0xb1)]('js',f[o(0xbb)]['js']));!f[o(0xb6)]&&(f[o(0xb6)]={});!b[o(0x97)]&&!this[o(0xb3)][o(0x9f)]('ramda')&&(Log[o(0x96)](o(0x83)),this[o(0xb3)][o(0x93)]('ramda',{'cwd':d}));const h={'name':pascalCase(b['resourceName']),'myPath':a121e[o(0x9b)](this[o(0xb3)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[o(0x77)]),'className':pascalCase(b[o(0x77)]),'camelCaseName':camelCase(b[o(0x77)]),'fileName':paramCase(b[o(0x77)]),'graphql':f[o(0xa6)]['graphql'],'features':f[o(0xb6)],'client':f['engines'][o(0x88)],'api':f['engines'][o(0xa1)],'ssr':f[o(0xa6)][o(0x7b)],'isStore':b[o(0x91)](o(0x8f)),'isComponent':b['hasOwnProperty'](o(0xb5)),'isLayout':b[o(0x91)](o(0x94)),'withTranslations':f[o(0xb6)][o(0xb9)],'test':f[o(0xa6)][o(0x8a)],'theme':f['engines'][o(0x99)]};f[o(0xbb)][o(0xae)]&&await this[o(0xb3)]['template']({'srcPath':'template/template.html','destPath':e+o(0x8d),'context':h,'config':f});f['features']?.[o(0x82)]||b[o(0x81)]?await this[o(0xb3)][o(0xbb)]({'srcPath':o(0x75),'destPath':e+o(0x79),'framework':o(0x9a),'context':h,'config':f}):await this[o(0xb3)]['template']({'srcPath':'component/component.js','destPath':e+o(0x79),'framework':o(0x9a),'context':h,'config':f});f[o(0xa6)][o(0x8a)]!==o(0x95)&&await this[o(0xb3)][o(0xbb)]({'srcPath':o(0xad),'destPath':e+o(0x7d),'framework':o(0x9a),'context':h,'config':f});f[o(0xbb)][o(0xa5)]&&await this[o(0xb3)][o(0xbb)]({'srcPath':'template/template.css','destPath':e+o(0x84),'context':Object[o(0x8e)]({},h,{'className':paramCase(b[o(0x77)])}),'config':f});f[o(0xa6)][o(0x88)]!==o(0x9a)&&f[o(0xa6)][o(0x88)]!==o(0xba)?(f['template'][o(0xa5)]&&await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0xa6)]['js'],'content':'import\x20\x27./'+h[o(0x9d)]+'.'+f[o(0xa6)][o(0xae)]+o(0x92)+o(0xb7)+h[o(0x9d)]+'.'+f['engines'][o(0xa5)]+'\x27;'}),!f[o(0xbb)]['css']&&await this[o(0xb3)][o(0xb2)]({'filePath':e+'.'+f[o(0xa6)]['js'],'content':o(0xb7)+h['fileName']+'.'+f[o(0xa6)][o(0xae)]+'\x27;'})):f[o(0xbb)][o(0xa5)]&&await this['fsi'][o(0xb2)]({'filePath':e+'.'+f[o(0xa6)]['js'],'content':o(0xb7)+h[o(0x9d)]+'.'+f['engines'][o(0xa5)]+'\x27;'});const i=b['dir']?'/'+b[o(0x98)]+'/':'/';g=''+c+i+h[o(0x9d)]+'/'+h[o(0x9d)],await this[o(0xb3)][o(0xb8)](h[o(0x7f)],f,g),!b['root']&&await a121f[o(0xbc)](o(0x9e),[i+b[o(0x77)]],b);}),g+'.'+f['engines']['js'];});function a121c(){const p=['test/test.js','html','create','pathFromApp','setTemplate','injectAtBeginningOfFile','fsi','Generate\x20a\x20page.','component','features','import\x20\x27./','injectTemplateModule','withTranslations','vanilla','template','processAndRunGenerator','hook/hook.js','maka\x20g:page\x20todos/todos-item','resourceName','string','.js','pages','ssr','search','.app-tests.js','components','className','694120GDhrdi','withHook','withHooks','Updating\x20npm\x20packages\x20...','.css','constructor','toString','/imports/ui/pages','client','baseDir','test','243972yxzTQM','true','.html','assign','store','1933362VaXnpD','hasOwnProperty','\x27;\x0a','installNpmPackage','layout','none','warn','root','dir','theme','react','relative','4882230Eyqjml','fileName','route','checkNpmPackage','withValue','api','5182840nFyMke','apply','getMakaProjectConfig','css','engines','6880916kTzvXB','page','layouts','1467130ewULKN','15LPlYup','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>'];a121c=function(){return p;};return a121c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a122k=a122d;(function(a,b){const h=a122d,c=a();while(!![]){try{const d=parseInt(h(0x1b5))/0x1*(parseInt(h(0x1be))/0x2)+-parseInt(h(0x1b7))/0x3+-parseInt(h(0x1c0))/0x4+-parseInt(h(0x1cb))/0x5*(parseInt(h(0x1b6))/0x6)+parseInt(h(0x1bc))/0x7+-parseInt(h(0x1c4))/0x8*(parseInt(h(0x1c3))/0x9)+parseInt(h(0x1c9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x4dafd));const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a122d;if(c){const e=c[i(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const j=a122d;return a122a['toString']()[j(0x1c2)]('(((.+)+)+)+$')[j(0x1b9)]()[j(0x1bd)](a122a)[j(0x1c2)]('(((.+)+)+)+$');});a122a();function a122c(){const n=['tsx','fsi','7945490jZrCjy','publish/publish.','15BpPQgm','maka\x20g:publish\x20todos','server/publish.','templateContent','45bQFmsx','757098axqknw','1072362XKWmMi','apply','toString','resourceName','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','4380054gyQpfY','constructor','14706Wahgbv','rewriteDestinationPathForEngine','352448KDSbzf','engines','search','144198xcapNJ','304pmSzvc','publish','injectAtEndOfFile'];a122c=function(){return n;};return a122c();}import{paramCase}from'change-case';import{Generator}from'../generator.js';function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a122d(a,b);}Generator['create']({'name':a122k(0x1c5),'aliases':['p'],'usage':a122k(0x1bb),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a122k(0x1cc)]},async function(a,b){const l=a122k,c=this[l(0x1c8)]['getMakaProjectConfig']();await this[l(0x1c8)]['withValue'](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x1ba)]),'noRename':!![]};let e='js';c[m(0x1c1)]['js']===m(0x1c7)&&(e='ts');const f=this[m(0x1c8)][m(0x1bf)]({'pathParts':[m(0x1cd)+c[m(0x1c1)]['js']]}),g=this[m(0x1c8)][m(0x1b4)]({'srcPath':m(0x1ca)+e,'context':d,'config':c});await this[m(0x1c8)][m(0x1c6)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123A=a123d;(function(a,b){const y=a123d,c=a();while(!![]){try{const d=-parseInt(y(0x1bb))/0x1*(parseInt(y(0x1b4))/0x2)+-parseInt(y(0x1c3))/0x3+-parseInt(y(0x187))/0x4+parseInt(y(0x1c8))/0x5+-parseInt(y(0x196))/0x6*(parseInt(y(0x1a7))/0x7)+-parseInt(y(0x1cf))/0x8*(-parseInt(y(0x1a2))/0x9)+parseInt(y(0x19d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x691ad));function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x183;let f=c[d];return f;},a123d(a,b);}const a123b=(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;};}()),a123a=a123b(this,function(){const z=a123d;return a123a[z(0x1ba)]()[z(0x1b1)](z(0x186))['toString']()[z(0x1a6)](a123a)[z(0x1b1)](z(0x186));});a123a();import a123e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a123c(){const I=['resourceName','react','/imports/ui/pages','components','<Route','replace','21708010XtxAeH','\x0a\x09\x09','create','newForm','length','252621ygMqbu','lib','maka\x20g:route\x20todosIndex\x20todos','\x22*\x22','constructor','2149JflvoB','client','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','injectIntoFile','imports','dir','Scaffolding\x20for\x20a\x20Route.','\x20to\x20','route','Invalid\x20directory\x20option\x20\x22','search','features','indexOf','986CKkfwQ','const\x20privateRoutes\x20=\x20(<>','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','includes','MasterLayout','pathFromApp','toString','729fdtYFh','ssr','maka\x20g:route\x20pages/lists/listIndex\x20lists','join','rewriteDestinationPathForEngine','const\x20publicRoutes\x20=\x20(<>','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','baseDir','2438121nkupDm','withHook','error','injectAfterLineNumber','vanilla','2198430gNzKOi','readFileLines','pathFromProject','split','engines','injectAtEndOfFile','private','80vdfVdI','templateContent','fsi','warn','</Router>','route/route.js','pop','layouts','info','(((.+)+)+)+$','2662644RgFBGl','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','layout','routes.js','\x20already\x20exists.\x20\x20Skipping.','pages','Route\x20','map','filter','templateName','Adding\x20route\x20','<Router','startup','config','fileContainsString','12174fimEQg'];a123c=function(){return I;};return a123c();}Generator[a123A(0x19f)]({'name':a123A(0x1af),'aliases':aliases,'validOpts':[a123A(0x1ce),a123A(0x189),'only','cwd',a123A(0x194),'root',a123A(0x1c4),'url',a123A(0x1c2)],'usage':a123A(0x1c1),'shortDesc':a123A(0x1ad),'examples':[a123A(0x1a4),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a123A(0x1b6),a123A(0x1bd),'maka\x20g:route\x20pages/about']},async function(a,b){const B=a123A;try{const c=['hooks',B(0x19a),B(0x18c),B(0x184)];if(b[B(0x1c2)]&&!c['includes'](b[B(0x1c2)])){Log[B(0x1c5)](B(0x1b0)+b[B(0x1c2)]+'\x22'),Log[B(0x1c5)]('Valid\x20options\x20are:\x20'+c[B(0x1be)](',\x20'));throw new UsageError();}const d=this[B(0x1d1)]['getMakaProjectConfig']();await this[B(0x1d1)]['withValue'](d,async()=>{const C=B,f=b[C(0x1ce)]??![];let g=b['resourceName'][C(0x1cb)]('/')[C(0x183)]();if(!g){Log['error'](C(0x188));throw new UsageError();}g=pascalCase(g);let h='/'+b[C(0x197)];a[C(0x1a1)]>0x1&&(h='/'+a[C(0x18f)](function(n){return n!=='/';})['join']('/')['toLowerCase']());h=h['replace'](/\/\//g,'/');b[C(0x189)]&&(b['layout']=camelCase(b[C(0x189)]));const i=b[C(0x1c2)]?'/imports/ui/'+b['baseDir']:C(0x199),j=a123e['join'](i,b[C(0x1ac)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||C(0x1b8),'templatePath':j,'templateName':pascalCase(g),'client':d['engines'][C(0x1a8)],'newForm':![],'withTranslations':d[C(0x1b2)]['withTranslations']};f&&(k['layout']='PrivateLayout');let l,m;if(d[C(0x1cc)][C(0x1a8)]===C(0x198)){if(d[C(0x1cc)][C(0x1bc)]==='true'){const r=this[C(0x1d1)][C(0x1b9)]({'pathParts':[C(0x1ab),C(0x193),C(0x1a3),C(0x18a)]});l=this[C(0x1d1)][C(0x1bf)]({'pathParts':[r],'config':d});}else{const s=this['fsi'][C(0x1b9)]({'pathParts':[C(0x1ab),'startup','client',C(0x18a)]});l=this[C(0x1d1)][C(0x1bf)]({'pathParts':[s],'config':d});}const n=await this[C(0x1d1)][C(0x195)](l,g);if(n){Log[C(0x1d2)](C(0x18d)+g+C(0x18b));return;}else{const t=this[C(0x1d1)][C(0x1ca)](l);Log[C(0x185)](C(0x191)+g+C(0x1ae)+l[C(0x19c)](t,''));}const o=this['fsi']['readFileLines'](l)[C(0x18e)]((u,v)=>{return u['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})['filter'](u=>u!==null);let p=this[C(0x1d1)][C(0x1c9)](l)[C(0x18e)]((u,v)=>{const D=C;return u[D(0x1b7)](D(0x1c0))?v+0x1:null;})[C(0x18f)](u=>u!==null),q=this[C(0x1d1)][C(0x1c9)](l)[C(0x18e)]((u,v)=>{const E=C;return u[E(0x1b7)](E(0x1b5))?v+0x1:null;})[C(0x18f)](u=>u!==null);p[C(0x1a1)]>0x0&&q['length']>0x0&&(k[C(0x1a0)]=!![]);m=this[C(0x1d1)][C(0x1d0)]({'srcPath':C(0x1d4),'framework':C(0x198),'context':k,'config':d});if(p[C(0x1a1)]>0x0||q['length']>0x0){this[C(0x1d1)][C(0x1c6)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x1a1)]>0x0)q=this[C(0x1d1)][C(0x1c9)](l)[C(0x18e)]((u,v)=>{const F=C;return u['includes'](F(0x1b5))?v+0x1:null;})[C(0x18f)](u=>u!==null),this[C(0x1d1)][C(0x1c6)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[C(0x1a1)]>0x0?(p=this[C(0x1d1)][C(0x1c9)](l)[C(0x18e)]((u,v)=>{const G=C;return u[G(0x1b7)](G(0x1c0))?v+0x1:null;})[C(0x18f)](u=>u!==null),this[C(0x1d1)][C(0x1c6)]({'filePath':l,'content':'\x09{'+k[C(0x190)]+'}','lineNumber':p[0x0]})):Log[C(0x1d2)](C(0x1a9)+l);}else{const u=this['fsi'][C(0x1c9)](l)[C(0x18e)](x=>{const H=C;return x[H(0x1b7)](H(0x1a5));}),v=u[C(0x1b3)](!![])>-0x1,w=v?C(0x19b):C(0x1d3);await this[C(0x1d1)][C(0x1aa)]({'filePath':l,'content':C(0x19e)+m+'\x0a\x09\x09','begin':C(0x192),'end':w});}}else{if(d[C(0x1cc)][C(0x1a8)]===C(0x1c7)){const x=this[C(0x1d1)][C(0x1b9)]({'pathParts':['imports',C(0x193),C(0x1a8),C(0x18a)]});l=this[C(0x1d1)][C(0x1bf)]({'pathParts':[x],'config':d}),m=this[C(0x1d1)][C(0x1d0)]({'srcPath':C(0x1d4),'context':k}),await this[C(0x1d1)][C(0x1cd)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x1c5)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124l=a124d;(function(a,b){const j=a124d,c=a();while(!![]){try{const d=parseInt(j(0x209))/0x1+-parseInt(j(0x201))/0x2*(parseInt(j(0x203))/0x3)+-parseInt(j(0x1f6))/0x4+parseInt(j(0x1fb))/0x5*(-parseInt(j(0x1f3))/0x6)+parseInt(j(0x1eb))/0x7+parseInt(j(0x1ee))/0x8+parseInt(j(0x1ff))/0x9*(parseInt(j(0x1f2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xb4cf2));const a124b=(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;};}()),a124a=a124b(this,function(){const k=a124d;return a124a[k(0x20a)]()[k(0x200)](k(0x1e7))[k(0x20a)]()[k(0x208)](a124a)[k(0x200)](k(0x1e7));});function a124c(){const o=['winston\x20setimmediate','fsi','services','6459138rTTPNY','pathFromApp','type','2358152aeNnsm','maka\x20g:svc\x20service-logger\x20--type=logger','resourceName','lib','9830oGJcel','174yHguYC','withValue','checkNpmPackage','1038480ERJukd','service','engines','Installing\x20winston','logger','108065yMqpNX','service/logger/logger.js','svc','template','7299rggYau','search','1106pIRKPq','create','2883vEfQOV','maka\x20{generate,\x20g}:{service}\x20<resource-name>','installNpmPackage','winston','getMakaProjectConfig','constructor','143708IzYDbN','toString','tsx','(((.+)+)+)+$'];a124c=function(){return o;};return a124c();}a124a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a124d(a,b);}Generator[a124l(0x202)]({'name':a124l(0x1f7),'aliases':[a124l(0x1fd)],'usage':a124l(0x204),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a124l(0x1ed),'values':[a124l(0x1fa)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a124l(0x1ef)]},async function(a,b){const m=a124l;try{const c=this[m(0x1e9)][m(0x207)]();await this[m(0x1e9)][m(0x1f4)](c,async()=>{const n=m,d=this[n(0x1e9)][n(0x1ec)]({}),f=paramCase(b[n(0x1f0)]),g={'name':pascalCase(b[n(0x1f0)]),'fileName':f,'camelCase':camelCase(b[n(0x1f0)]),'type':b[n(0x1ed)],'engine':c[n(0x1f8)]['js'],'noRename':!![]};let h='js';c[n(0x1f8)]['js']===n(0x20b)&&(h='ts');if(b['type']===n(0x1fa)){!this[n(0x1e9)][n(0x1f5)](n(0x206))&&await this[n(0x1e9)][n(0x205)](n(0x1e8),{'cwd':d,'msg':n(0x1f9)});const i=this[n(0x1e9)][n(0x1ec)]({'pathParts':['imports','startup',n(0x1f1),n(0x1ea),f+'.'+h]});await this[n(0x1e9)][n(0x1fe)]({'srcPath':n(0x1fc),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a125d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a125d,c=a();while(!![]){try{var d=parseInt(f(0x18f))/0x1+-parseInt(f(0x19b))/0x2+parseInt(f(0x18e))/0x3*(parseInt(f(0x19a))/0x4)+-parseInt(f(0x191))/0x5+-parseInt(f(0x197))/0x6+parseInt(f(0x192))/0x7*(-parseInt(f(0x195))/0x8)+parseInt(f(0x190))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xad4cb));function a125d(a,b){var c=a125c();return a125d=function(d,e){d=d-0x18e;var f=c[d];return f;},a125d(a,b);}var a125b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a125d;if(c){var e=c[g(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){var h=a125d;return a125a[h(0x196)]()[h(0x193)](h(0x199))[h(0x196)]()[h(0x198)](a125a)[h(0x193)](h(0x199));});a125a();import'./translation.js';import'./openssl.js';function a125c(){var i=['2061064exwNxS','toString','2843760BXvdwT','constructor','(((.+)+)+)+$','4OHAOmb','1195032gPECzZ','322086eLvWKx','139943DOCxvD','24389928UyaXvM','4591765VpQJyd','7adrZiz','search','apply'];a125c=function(){return i;};return a125c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126l=a126d;(function(a,b){const i=a126d,c=a();while(!![]){try{const d=-parseInt(i(
|
|
1
|
+
const a126l=a126d;(function(a,b){const i=a126d,c=a();while(!![]){try{const d=-parseInt(i(0x8e))/0x1*(-parseInt(i(0x8a))/0x2)+-parseInt(i(0x89))/0x3*(parseInt(i(0x7e))/0x4)+parseInt(i(0x76))/0x5*(-parseInt(i(0x73))/0x6)+parseInt(i(0x74))/0x7*(parseInt(i(0x81))/0x8)+-parseInt(i(0x85))/0x9*(-parseInt(i(0x84))/0xa)+-parseInt(i(0x72))/0xb+-parseInt(i(0x7d))/0xc*(-parseInt(i(0x7a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xef99b));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a126d;if(c){const e=c[j(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const k=a126d;return a126a['toString']()[k(0x7f)]('(((.+)+)+)+$')[k(0x8f)]()[k(0x87)](a126a)[k(0x7f)](k(0x8c));});function a126c(){const o=['219683ubimZB','toString','maka\x20g:sslconfig\x20--env\x20dev','withValue','Generate\x20a\x20new\x20openssl\x20config\x20file','2436104FxhESf','4254AXlrIj','1057KfgjAu','sslconfig','10065ssCYRi','apply','join','openssl.conf','10695269pNlKXH','openssl/openssl.conf','error','12KAJqYH','671208bMGfBa','search','env','34824UEQAuL','appName','getMakaProjectConfig','32780hehaER','2412YKENgm','template','constructor','getGlobalConfig','3FHRsZa','4QuDpYr','maka\x20{generate,\x20g}:sslconfig','(((.+)+)+)+$','fsi'];a126c=function(){return o;};return a126c();}a126a();function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x71;let f=c[d];return f;},a126d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a126e from'path';Generator['create']({'name':a126l(0x75),'usage':a126l(0x8b),'shortDesc':a126l(0x71),'noNeedResource':!![],'requiredOpts':['env'],'examples':[a126l(0x90)],'validOpts':[]},async function(a,b){const m=a126l;try{const c=await this[m(0x8d)][m(0x83)](),d=await this['fsi'][m(0x88)](),f=this['fsi']['getAppConfigPath'](b[m(0x80)]),g=a126e[m(0x78)](f,'_keys',m(0x79));await this['fsi'][m(0x91)](c,async()=>{const n=m,h={'app':d[n(0x82)],'noRename':!![]};await this['fsi'][n(0x86)]({'srcPath':n(0x7b),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0x7c)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a127A=a127d;(function(a,b){const x=a127d,c=a();while(!![]){try{const d=parseInt(x(0x149))/0x1*(-parseInt(x(0x171))/0x2)+parseInt(x(0x13f))/0x3*(parseInt(x(0x16f))/0x4)+-parseInt(x(0x179))/0x5*(-parseInt(x(0x145))/0x6)+-parseInt(x(0x143))/0x7+-parseInt(x(0x16a))/0x8*(parseInt(x(0x175))/0x9)+parseInt(x(0x181))/0xa*(-parseInt(x(0x14c))/0xb)+parseInt(x(0x162))/0xc*(parseInt(x(0x144))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x6b755));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a127d;if(c){const e=c[y(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const z=a127d;return a127a[z(0x151)]()['search'](z(0x168))[z(0x151)]()[z(0x155)](a127a)[z(0x170)](z(0x168));});function a127c(){const D=['installNpmPackage','i18n/index.js','getMakaProjectConfig','template','service','6330CiZsim','engines','import\x20\x27../lib/services/translations/i18n\x27;\x0a','injectAtBeginningOfFile','lib','default\x20as\x20','.js','3RKTfcE','fsi','i18next\x20i18next-browser-languagedetector\x20react-i18next','import\x20\x27../lib/services/translations/i18n\x27;','3172813pUdQoQ','328055GMrlUG','3317874puxMHS','maka\x20{generate,\x20g}:translation','exit','isFile','4204brkXVw','translations','true','13145pxzCnb','warn','checkNpmPackage','i18next','setProjectConfig','toString','apply','getGlobalConfig','Locale\x20already\x20exported:\x20','constructor','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','startup','i18n.js','Generate\x20a\x20new\x20locale\x20translation','create','pathFromApp','client','imports','grep','translation','maka\x20g:translation\x20--lang=fr','Locale\x20already\x20defined:\x20','960XQARuH','error','export\x20{\x20default\x20as\x20','i18n/i18n.js','services','appName','(((.+)+)+)+$','readFileSync','35816BlaUjN','ssr','i18n/locales.js','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','injectAtEndOfFile','376276GUokKH','search','166thWZPJ','features.withTranslations','lang','locales','1341PlHRRX','index.js','rewriteDestinationPathForEngine','server','5fqwmas','maka\x20g:translation\x20--lang=en\x20(default)','findAppDirectory'];a127c=function(){return D;};return a127c();}a127a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a127e from'fs';function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x13e;let f=c[d];return f;},a127d(a,b);}Generator[a127A(0x15a)]({'name':a127A(0x15f),'usage':a127A(0x146),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a127A(0x173),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a127A(0x159),'description':a127A(0x156),'examples':[a127A(0x17a),a127A(0x160),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const B=a127A;try{const c=this[B(0x140)][B(0x17e)](),d=this[B(0x140)][B(0x153)](),f=this['fsi'][B(0x17b)]();await this[B(0x140)]['withValue'](c,async()=>{const C=B;try{!b['lang']&&(b[C(0x173)]='en');!b['root']&&!this[C(0x140)][C(0x14e)](C(0x14f))&&(Log[C(0x14d)](C(0x16d)),this[C(0x140)][C(0x17c)](C(0x141),{'cwd':f}),this[C(0x140)][C(0x150)](C(0x172),!![]));const g=this[C(0x140)]['pathFromApp']({'pathParts':[C(0x15d),'startup',C(0x15c),C(0x176)]}),h=this[C(0x140)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[C(0x140)][C(0x15e)](a127e['readFileSync'](h)[C(0x151)](),C(0x142))[0x0]&&!![];if(c[C(0x182)][C(0x16b)]===C(0x14b)){!i&&this[C(0x140)][C(0x184)]({'filePath':h,'content':C(0x183)});const t=this[C(0x140)][C(0x15b)]({'pathParts':['imports','startup',C(0x178),C(0x176)]}),u=this['fsi'][C(0x177)]({'pathParts':[t],'config':c}),v=this[C(0x140)][C(0x15e)](a127e['readFileSync'](u)[C(0x151)](),C(0x142))[0x0]&&!![];!v&&this[C(0x140)][C(0x184)]({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this['fsi'][C(0x184)]({'filePath':h,'content':C(0x183)});const j={'app':d[C(0x167)],'config':c},k=this[C(0x140)][C(0x15b)]({'pathParts':[C(0x15d),C(0x157),C(0x185),C(0x166),C(0x14a),C(0x158)]}),l=this[C(0x140)][C(0x148)](this[C(0x140)][C(0x177)]({'pathParts':[k],'config':c}));!l&&await this['fsi']['template']({'srcPath':C(0x165),'destPath':k,'framework':C(0x180),'context':j,'config':c});const m=this[C(0x140)][C(0x15b)]({'pathParts':[C(0x15d),C(0x157),C(0x185),C(0x166),C(0x14a),'locales',b[C(0x173)]+C(0x13e)]}),n=this[C(0x140)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0x140)]['isFile'](n);!o?await this[C(0x140)]['template']({'srcPath':C(0x16c),'destPath':m,'framework':C(0x180),'context':j,'config':c}):Log[C(0x14d)](C(0x161)+n);const p=this['fsi'][C(0x15b)]({'pathParts':[C(0x15d),'startup',C(0x185),C(0x166),C(0x14a),C(0x174),'index.'+c[C(0x182)]['js']]}),q=this[C(0x140)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0x140)][C(0x148)](q);!r&&await this[C(0x140)][C(0x17f)]({'srcPath':C(0x17d),'destPath':p,'framework':C(0x180),'context':j,'config':c});const s=this[C(0x140)][C(0x15e)](a127e[C(0x169)](p)[C(0x151)](),C(0x186)+b['lang'])[0x0]&&!![];!s?await this['fsi'][C(0x16e)]({'filePath':p,'content':C(0x164)+b[C(0x173)]+'\x20}\x20from\x20\x27./'+b['lang']+'\x27;'}):Log['warn'](C(0x154)+p);}catch(w){Log[C(0x163)](w),process[C(0x147)](0x1);}});}catch(g){Log[B(0x163)](g),process[B(0x147)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a128m=a128d;function a128c(){const n=['40mHoWDg','floor','env','10175600oXzJRb','NODE_NO_WARNINGS','(((.+)+)+)+$','236FtQpvy','--max-old-space-size=','parse','stringify','toString','camelizeKeys','apply','396315XPdFDm','slice','6wCsfmf','1370060hhpMvO','search','url','constructor','TOOL_NODE_FLAGS','5132URCEnr','855468ygwMiJ','argv','1388870jhPzGY','3922445pQpgzF'];a128c=function(){return n;};return a128c();}(function(a,b){const j=a128d,c=a();while(!![]){try{const d=parseInt(j(0x1c7))/0x1*(-parseInt(j(0x1b8))/0x2)+-parseInt(j(0x1c8))/0x3+-parseInt(j(0x1c2))/0x4+parseInt(j(0x1cb))/0x5*(parseInt(j(0x1c1))/0x6)+-parseInt(j(0x1ca))/0x7+parseInt(j(0x1b2))/0x8*(parseInt(j(0x1bf))/0x9)+parseInt(j(0x1b5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x902e7));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0x1bc)]()[l(0x1c3)](l(0x1b7))[l(0x1bc)]()[l(0x1c5)](a128a)[l(0x1c3)]('(((.+)+)+)+$');});a128a();import a128e from'minimist';import a128f from'os';import a128g from'path';import a128h from'humps';import a128i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a128m(0x1c4)]),__dirname=a128g['dirname'](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a128f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a128d(a,b);}total_mem_in_mb=Math[a128m(0x1b3)](total_mem_in_mb),process['env'][a128m(0x1c6)]=a128m(0x1b9)+total_mem_in_mb,process[a128m(0x1b4)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process[a128m(0x1b4)][a128m(0x1b6)]='1';const argv=a128e(process[a128m(0x1c9)][a128m(0x1c0)](0x2)),args=argv['_'],deepCopyArgv=JSON[a128m(0x1ba)](JSON[a128m(0x1bb)](argv));delete deepCopyArgv['_'];const opts=a128h[a128m(0x1bd)](deepCopyArgv);a128i['run'](args,opts);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* eslint-env jasmine */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* eslint-env jasmine */
|
|
@@ -3,7 +3,6 @@ import { Meteor } from 'meteor/meteor';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import ReactDOM from 'react-dom/client';
|
|
5
5
|
import { browserHistory } from 'react-router';
|
|
6
|
-
import { withTracker } from 'meteor/react-meteor-data';
|
|
7
6
|
<% if (config.engines.graphql === 'apollo') { %>
|
|
8
7
|
// Apollo Client configuration
|
|
9
8
|
import {
|
|
@@ -81,16 +80,12 @@ const App = ({ user }) => (<% if (config.engines.ssr === 'true') { %>
|
|
|
81
80
|
</BrowserRouter><% } %>
|
|
82
81
|
);
|
|
83
82
|
|
|
84
|
-
const AppContainer = withTracker(() => {
|
|
85
|
-
return (Meteor.isClient && Meteor.user) ? { user: (Meteor.user()) ? Meteor.user() : {} } : { user: false };
|
|
86
|
-
})(App);
|
|
87
|
-
|
|
88
83
|
const startApp = () => {<% if (config.engines.ssr === 'true') { %>
|
|
89
84
|
onPageLoad(sink => {
|
|
90
|
-
ReactDOM.hydrateRoot(document.getElementById('app'), <
|
|
85
|
+
ReactDOM.hydrateRoot(document.getElementById('app'), <App />);
|
|
91
86
|
});<% } else { %>
|
|
92
87
|
const root = ReactDOM.createRoot(document.getElementById('app'));
|
|
93
|
-
root.render(<
|
|
88
|
+
root.render(<App />);<% } %>
|
|
94
89
|
}
|
|
95
90
|
|
|
96
91
|
const enableServiceWorker = Meteor.settings.public.enableServiceWorker;
|
|
@@ -3,7 +3,6 @@ import { Meteor } from 'meteor/meteor';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as ReactDOM from 'react-dom/client';
|
|
5
5
|
import { browserHistory } from 'react-router';
|
|
6
|
-
import { withTracker } from 'meteor/react-meteor-data';
|
|
7
6
|
<% if (config.engines.graphql === 'apollo') { %>
|
|
8
7
|
// Apollo Client configuration
|
|
9
8
|
import {
|
|
@@ -82,16 +81,12 @@ const App = ({ user }) => (<% if (config.engines.ssr === 'true') { %>
|
|
|
82
81
|
</BrowserRouter><% } %>
|
|
83
82
|
);
|
|
84
83
|
|
|
85
|
-
const AppContainer = withTracker(() => {
|
|
86
|
-
return (Meteor.isClient && Meteor.user) ? { user: (Meteor.user()) ? Meteor.user() : {} } : { user: false };
|
|
87
|
-
})(App);
|
|
88
|
-
|
|
89
84
|
const startApp = () => {<% if (config.engines.ssr === 'true') { %>
|
|
90
85
|
onPageLoad(sink => {
|
|
91
|
-
ReactDOM.hydrateRoot(document.getElementById('app'), <
|
|
86
|
+
ReactDOM.hydrateRoot(document.getElementById('app'), <App />);
|
|
92
87
|
});<% } else { %>
|
|
93
88
|
const root = ReactDOM.createRoot(document.getElementById('app'));
|
|
94
|
-
root.render(<
|
|
89
|
+
root.render(<App />);<% } %>
|
|
95
90
|
}
|
|
96
91
|
|
|
97
92
|
const enableServiceWorker = Meteor.settings.public.enableServiceWorker;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import bodyParser from 'body-parser';
|
|
1
2
|
import { Meteor } from 'meteor/meteor';
|
|
2
3
|
import { WebAppInternals } from "meteor/webapp";
|
|
3
4
|
Meteor.startup(() => {
|
|
@@ -6,7 +7,6 @@ Meteor.startup(() => {
|
|
|
6
7
|
<% if (config.engines.graphql === 'apollo') { %>
|
|
7
8
|
import { ApolloServer } from '@apollo/server';
|
|
8
9
|
import { WebApp } from 'meteor/webapp';
|
|
9
|
-
import { getUser } from 'meteor/apollo';
|
|
10
10
|
import { mergeTypeDefs, mergeResolvers } from '@graphql-tools/merge';
|
|
11
11
|
import {
|
|
12
12
|
ApolloServerPluginLandingPageGraphQLPlayground
|
|
@@ -28,7 +28,7 @@ if (typeList.length > 0 && resolverList.length > 0) {
|
|
|
28
28
|
},
|
|
29
29
|
cache: 'bounded',
|
|
30
30
|
formatError: (err) => {
|
|
31
|
-
if (Meteor.isProduction
|
|
31
|
+
if (Meteor.isProduction) {
|
|
32
32
|
// Don't give specific errors to the client
|
|
33
33
|
sysLogger.error(err);
|
|
34
34
|
err.message = err.extensions.code; // eslint-disable-line no-param-reassign
|
|
@@ -46,10 +46,9 @@ if (typeList.length > 0 && resolverList.length > 0) {
|
|
|
46
46
|
await server.start();
|
|
47
47
|
expressApp.use(
|
|
48
48
|
'/graphql',
|
|
49
|
+
bodyParser.json({ limit: '50mb' }),
|
|
49
50
|
expressMiddleware(server, {
|
|
50
|
-
context: async ({ req }) => ({
|
|
51
|
-
user: await getUser(req.headers.authorization) || await getUser(req.headers['x-auth-token']) || {},
|
|
52
|
-
}),
|
|
51
|
+
context: async ({ req }) => ({ token: req.headers.authorization })
|
|
53
52
|
}),
|
|
54
53
|
);
|
|
55
54
|
WebApp.connectHandlers.use(expressApp);
|