@maka/maka-cli 4.9.11 → 4.9.13
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 +4 -4
- package/bundle/obf/src/templates/meteor/api/api.js.ts +4 -3
- package/bundle/obf/src/templates/meteor/api/methods.js +8 -104
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +6 -103
- package/bundle/obf/src/templates/meteor/api/register-api.js +2 -15
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +2 -15
- 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
- package/bundle/obf/src/templates/meteor/api/fixtures.js +0 -23
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +0 -23
- package/bundle/obf/src/templates/meteor/api/publications.js +0 -31
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +0 -31
- package/bundle/obf/src/templates/react/component/component.js +0 -0
- package/bundle/obf/src/templates/react/component/component.js.ts +0 -0
- package/bundle/obf/src/templates/react/hook/hook.js +0 -1
- package/bundle/obf/src/templates/react/hook/hook.js.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115z=a115d;(function(a,b){const x=a115d,c=a();while(!![]){try{const d
|
|
1
|
+
const a115z=a115d;function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a115d(a,b);}(function(a,b){const x=a115d,c=a();while(!![]){try{const d=-parseInt(x(0x1f8))/0x1+-parseInt(x(0x1fa))/0x2*(-parseInt(x(0x1e1))/0x3)+-parseInt(x(0x1df))/0x4*(-parseInt(x(0x1f5))/0x5)+parseInt(x(0x1ee))/0x6+-parseInt(x(0x1ef))/0x7*(-parseInt(x(0x1db))/0x8)+-parseInt(x(0x1d8))/0x9+-parseInt(x(0x1cc))/0xa*(parseInt(x(0x1d6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x1a9f6));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(0x1d4)]()[y(0x1e3)]('(((.+)+)+)+$')['toString']()[y(0x1dd)](a115a)[y(0x1e3)]('(((.+)+)+)+$');});a115a();import{Generator}from'../../../generator.js';function a115c(){const D=['Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','17456MDhXxb','/imports/ui/','constructor','maka\x20g:k:m:f','12ysGOYj','log','3MVWBPZ','-hook\x22>','search','MATERIAL','findAppDirectory','pathFromApp','withValue','template','join','No\x20layouts\x20selected','/imports/startup/lib/templates','replaceAll','kit/mui/frame/drawers/','999246OSVHBH','112oijSkC','ssr','dir','getDirectories','<div\x20id=\x22','{this.props.children}','1295oaJxZL','\x20/>\x0a','error','1795QessqU','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','34266HsjqNu','fsi','true','react','getFiles','test','injectImport','{props.children}','length','jsx','{\x20this.props.children\x20}','injectIntoFile','checkMeteorPackage','Cleaning\x20up...','baseDir','basic-app-bar','checkbox','appName','maka\x20generate:kit:mui:frame','options','203310TfDeXM','engines','frame','{\x20props.children\x20}','create','injectTemplateModule','getMakaProjectConfig','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','toString','layouts','33qoEHVk','app-tests','427761wbMkZn','.js'];a115c=function(){return D;};return a115c();}import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a115e from'path';import a115f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a115z(0x1d0)]({'name':a115z(0x1ce),'aliases':['f'],'usage':a115z(0x1d3),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','validOpts':[a115z(0x1d5)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a115z(0x1e4)],'client':ClientEngines['REACT']},'examples':[a115z(0x1ca),a115z(0x1de)],'description':a115z(0x1f9)},async function(a,b){const A=a115z;try{const c=A(0x1c7),d='basic-drawer',f=this[A(0x1fb)][A(0x1d2)](),g=f[A(0x1cd)][A(0x1f0)]===A(0x1fc);await this[A(0x1fb)][A(0x1c4)]('session',{'shouldInstall':!![]});const h=this[A(0x1fb)][A(0x1e5)](),i=a115e['join'](h,'imports','ui',A(0x1d5)),j=this['fsi'][A(0x1f2)](i),k=await Actions[A(0x1cb)]({'type':A(0x1c8),'name':A(0x1d5),'message':A(0x1da),'choices':j});if(k[A(0x1d5)][A(0x1c0)]===0x0){Log[A(0x1f7)](A(0x1ea));return;}const l=b[A(0x1c6)]?A(0x1dc)+b[A(0x1c6)]:'/imports/ui/hooks',m=this[A(0x1fb)][A(0x1e6)]({'pathParts':[l,b[A(0x1f1)],paramCase(c),paramCase(c)]}),n=this[A(0x1fb)][A(0x1e6)]({'pathParts':[l,b['dir'],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[A(0x1c9)])[A(0x1ec)]('-','\x20')};await this[A(0x1fb)][A(0x1e7)](f,async()=>{const B=A;await this[B(0x1fb)][B(0x1e8)]({'srcPath':'kit/mui/frame/app-bars/'+c+B(0x1d9),'destPath':m+B(0x1d9),'framework':B(0x1fd),'context':o,'config':f,'force':![],'ignore':![]}),await this[B(0x1fb)][B(0x1e8)]({'srcPath':B(0x1ed)+d+'.js','destPath':n+B(0x1d9),'framework':B(0x1fd),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[A(0x1f1)]+'/'+c+'/'+c;await this[A(0x1fb)][A(0x1d1)](c,f,p);const q=''+l+b[A(0x1f1)]+'/'+d+'/'+d;await this[A(0x1fb)][A(0x1d1)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[A(0x1fb)][A(0x1fe)](a115e['join'](i,s),{'extensions':[A(0x1c1),'tsx'],'omit':[A(0x1d7),'tests',A(0x1bd)]});for(const u of t){const v=a115e[A(0x1e9)](i,s,u);await this[A(0x1fb)][A(0x1be)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?A(0x1eb):'/imports/startup/client/templates','isNamedExport':!![]}),await this[A(0x1fb)][A(0x1c3)]({'filePath':v,'content':'<'+pascalCase(c)+A(0x1f6),'begin':[A(0x1f3)+s+'\x22>',A(0x1f3)+s+A(0x1e2)],'end':[A(0x1f4),'{\x20this.props.children\x20}',A(0x1bf),A(0x1cf)]}),await this[A(0x1fb)][A(0x1be)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?A(0x1eb):'/imports/startup/client/templates','isNamedExport':!![]}),await this[A(0x1fb)][A(0x1c3)]({'filePath':v,'content':'<'+pascalCase(d)+A(0x1f6),'begin':[A(0x1f3)+s+'\x22>',A(0x1f3)+s+'-hook\x22>'],'end':['{this.props.children}',A(0x1c2),A(0x1bf),A(0x1cf)]});}}return!![];}catch(w){Log[A(0x1f7)](w);}},async function(){const C=a115z;console[C(0x1e0)](C(0x1c5));},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(0x19a))/0x1*(-parseInt(f(0x19d))/0x2)+-parseInt(f(0x1a0))/0x3*(-parseInt(f(0x19f))/0x4)+parseInt(f(0x199))/0x5*(parseInt(f(0x19b))/0x6)+parseInt(f(0x1a1))/0x7+-parseInt(f(0x1a9))/0x8+parseInt(f(0x1a5))/0x9+parseInt(f(0x197))/0xa*(-parseInt(f(0x1a3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x4acf5));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a116d;if(c){const e=c[g(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const h=a116d;return a116a[h(0x198)]()[h(0x19c)]('(((.+)+)+)+$')[h(0x198)]()[h(0x1a4)](a116a)['search'](h(0x19e));});a116a();function a116c(){const k=['9MNUMpD','1241723iJFFNu','create','11bUmcpY','constructor','3310965moDEXS','apply','NIE','Material-UI\x20Kit','158144GQnGif','maka\x20g:kit:m','mui','8963290xhPViy','toString','60rvsgZq','1TawsyX','75228hLwcMk','search','973662OdzPPE','(((.+)+)+)+$','53276kFTJRJ'];a116c=function(){return k;};return a116c();}function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x195;let f=c[d];return f;},a116d(a,b);}import{Generator}from'../../../generator.js';import a116e from'../kit.js';const MuiGen=Generator[a116i(0x1a2)]({'name':a116i(0x196),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a116i(0x1a8),'validOpts':[''],'isPro':![],'examples':[a116i(0x195)]},async function(){const j=a116i;throw j(0x1a7);},async function(){},a116e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117o=a117d;function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0xd1;let f=c[d];return f;},a117d(a,b);}(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0xd3))/0x1+parseInt(l(0xe7))/0x2*(parseInt(l(0xdb))/0x3)+parseInt(l(0xe5))/0x4*(-parseInt(l(0xe0))/0x5)+-parseInt(l(0xff))/0x6+parseInt(l(0xf9))/0x7*(parseInt(l(0xf4))/0x8)+-parseInt(l(0xd9))/0x9*(-parseInt(l(0x107))/0xa)+parseInt(l(0xf5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x9e09f));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0x104)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a[n(0xe2)]()[n(0xd5)](n(0x102))[n(0xe2)]()[n(0xfd)](a117a)['search'](n(0x102));});a117a();import a117e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a117c(){const r=['Scaffolding\x20for\x20a\x20React\x20Layout.','274kSdBLV','/imports/ui/layouts','ramda','import\x20\x27./','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','checkNpmPackage','string','relative','withValue','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','features','pathFromApp','8tpWoki','6812509HszSIx','test/test.js','setTemplate','findAppDirectory','1103858tqBcYT','graphql','fileName','split','constructor','.app-tests.js','933606VMhsXL','fsi','component/component.js','(((.+)+)+)+$','.js','apply','withTranslations','getMakaProjectConfig','260vmdOpG','installNpmPackage','api','dir','engines','create','true','css','none','pathFromProject','303659JJHsXA','warn','search','template','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','.css','413307BMoOUu','maka\x20g:layout\x20mobile/iPhone8','3789tnzWFK','theme','injectAtBeginningOfFile','assign','test','5SzyzoQ','layout','toString','resourceName','client','4149820MfcXQF'];a117c=function(){return r;};return a117c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a117o(0x10c)]({'name':a117o(0xe1),'aliases':aliases,'usage':a117o(0xd7),'shortDesc':a117o(0xe6),'validOpts':[],'examples':[a117o(0xda),'maka\x20g:l\x20web/safari']},async function(a,b){const p=a117o,c=p(0xe8),d=this[p(0x100)][p(0xf8)](),e=this[p(0x100)][p(0xf3)]({'pathParts':[c,b[p(0x10a)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this[p(0x100)][p(0x106)]();await this[p(0x100)][p(0xef)](f,async()=>{const q=p;typeof f[q(0xd6)][q(0xdf)]===q(0xed)&&(f[q(0xd6)][q(0xdf)]=f[q(0xd6)][q(0xdf)]===q(0x10d)?!![]:![],this[q(0x100)][q(0xf7)]('test',f[q(0xd6)][q(0xdf)]));typeof f[q(0xd6)][q(0x10e)]===q(0xed)&&(f[q(0xd6)]['css']=f['template']['css']===q(0x10d)?!![]:![],this[q(0x100)][q(0xf7)](q(0x10e),f[q(0xd6)][q(0x10e)]));typeof f[q(0xd6)]['js']===q(0xed)&&(f[q(0xd6)]['js']=f[q(0xd6)]['js']==='true'?!![]:![],this['fsi'][q(0xf7)]('js',f[q(0xd6)]['js']));!f['features']&&(f[q(0xf2)]={});const g=b['_']?b['_'][0x0][q(0xfc)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[q(0xec)]('ramda')&&(Log[q(0xd4)](q(0xf0)),this[q(0x100)][q(0x108)](q(0xe9),{'cwd':d}));if(h&&!this['checkNpmPackage'](q(0xf1))){Log['warn'](q(0xeb));return;}const i={'name':pascalCase(b[q(0xe3)]),'myPath':a117e[q(0xee)](this[q(0x100)][q(0xd2)]({}),e),'cssCaseName':paramCase(b[q(0xe3)]),'className':pascalCase(b[q(0xe3)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[q(0xe3)]),'graphql':f[q(0x10b)][q(0xfa)],'features':f[q(0xf2)],'client':f[q(0x10b)][q(0xe4)],'api':f[q(0x10b)][q(0x109)],'ssr':f['engines']['ssr'],'test':f[q(0x10b)][q(0xdf)],'theme':f[q(0x10b)][q(0xdc)],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0xf2)][q(0x105)]};f[q(0xf2)]?.['withHooks']||b['withHook']?await this[q(0x100)][q(0xd6)]({'srcPath':'hook/hook.js','destPath':e+q(0x103),'framework':q(0xf1),'context':i,'config':f}):await this[q(0x100)][q(0xd6)]({'srcPath':q(0x101),'destPath':e+q(0x103),'framework':q(0xf1),'context':i,'config':f});f[q(0x10b)]['test']!==q(0xd1)&&await this[q(0x100)][q(0xd6)]({'srcPath':q(0xf6),'destPath':e+q(0xfe),'framework':q(0xf1),'context':i,'config':f});f[q(0xd6)]['css']&&(await this[q(0x100)][q(0xd6)]({'srcPath':'template/template.css','destPath':e+q(0xd8),'context':Object[q(0xde)]({},i,{'className':paramCase(b[q(0xe3)])}),'config':f}),await this[q(0x100)][q(0xdd)]({'filePath':e+'.'+f['engines']['js'],'content':q(0xea)+i[q(0xfb)]+'.'+f['engines'][q(0x10e)]+'\x27;'}));const j=b['dir']?'/'+b[q(0x10a)]+'/':'/',k=''+c+j+i[q(0xfb)]+'/'+i['fileName'];await this[q(0x100)]['injectTemplateModule'](i['className'],f,k);});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118i=a118d;
|
|
1
|
+
const a118i=a118d;(function(a,b){const f=a118d,c=a();while(!![]){try{const d=-parseInt(f(0x1b1))/0x1+parseInt(f(0x1c3))/0x2+-parseInt(f(0x1c4))/0x3*(parseInt(f(0x1c1))/0x4)+parseInt(f(0x1bb))/0x5+parseInt(f(0x1bd))/0x6+-parseInt(f(0x1be))/0x7*(-parseInt(f(0x1b9))/0x8)+-parseInt(f(0x1b0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0xe9e51));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a118d;if(c){const e=c[g(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const h=a118d;return a118a[h(0x1b7)]()[h(0x1b3)](h(0x1b2))['toString']()['constructor'](a118a)[h(0x1b3)](h(0x1b2));});a118a();function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x1b0;let f=c[d];return f;},a118d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a118i(0x1b6),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a118i(0x1bf),'examples':[a118i(0x1b5),a118i(0x1c0),a118i(0x1bc),'maka\x20g:package\x20package:name',a118i(0x1b4),a118i(0x1b8),a118i(0x1ba)]},function(){});function a118c(){const j=['341332ZgUNjD','(((.+)+)+)+$','search','maka\x20g:route\x20todos/edit','maka\x20generate:scaffold\x20todos','maka\x20{generate,\x20g}:<generator>\x20<name>','toString','maka\x20g:api\x20trucks','8jaahxp','maka\x20g:dbc\x20geoserver\x20--type=pgsql','6279150abpeTV','maka\x20g:template\x20todos/todo_item','1890090iGrWlj','12017502bWAuFW','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:scaffold\x20todos','4035664xJjLSe','apply','3760820TQjhNg','3IRPIlZ','25737840FAqxvt'];a118c=function(){return j;};return a118c();}export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119m=a119d;(function(a,b){const j=a119d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
function a119c(){const p=['apply','871576UKYGkn','engines','1HzmSwD','withValue','fsi','template','(((.+)+)+)+$','index.','appPathPrefix','ddp-rate-limiter','pathFromApp','error','checkMeteorPackage','mdg:validated-method','startup','330792fzTowk','1547726asKgQH','maka:check','toString','imports','create','methods','method','resourceName','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','search','2515776VkmJmA','1737755mdvlYn','77vRzlVE','dir','8YcRvCE','708330FVFPbD','-rpc-method\x27;','-rpc-method.','tsx','6YCffUf','constructor','injectAtEndOfFile','3366486eFJQau'];a119c=function(){return p;};return a119c();}const a119m=a119d;(function(a,b){const j=a119d,c=a();while(!![]){try{const d=parseInt(j(0x1b0))/0x1*(parseInt(j(0x1be))/0x2)+parseInt(j(0x1a9))/0x3*(-parseInt(j(0x1ae))/0x4)+-parseInt(j(0x1a1))/0x5+parseInt(j(0x1a0))/0x6+-parseInt(j(0x1bd))/0x7+-parseInt(j(0x1a4))/0x8*(parseInt(j(0x1ac))/0x9)+-parseInt(j(0x1a5))/0xa*(-parseInt(j(0x1a2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x763f5));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a119d;if(c){const e=c[k(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const l=a119d;return a119a[l(0x1c0)]()[l(0x1c7)](l(0x1b4))['toString']()[l(0x1aa)](a119a)[l(0x1c7)](l(0x1b4));});a119a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a119d(a,b);}Generator[a119m(0x1c2)]({'name':a119m(0x1c4),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a119m(0x1c6),'validOpts':[a119m(0x1a3)],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a119m;try{const c=this['fsi']['getMakaProjectConfig']();await this[n(0x1b2)][n(0x1b1)](c,async()=>{const o=n,d=paramCase(b[o(0x1c5)]),f={'name':b[o(0x1c5)],'fileName':d,'className':pascalCase(b[o(0x1c5)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c['engines']['js']===o(0x1a8)&&(g='ts');await this[o(0x1b2)][o(0x1ba)]([o(0x1bf),o(0x1b7),o(0x1bb)],{'shouldInstall':!![]}),await this[o(0x1b2)][o(0x1b3)]({'srcPath':'method/method.js','destPath':this['fsi'][o(0x1b8)]({'pathParts':['imports',o(0x1bc),b['appPathPrefix'],o(0x1c3),b[o(0x1a3)],d+o(0x1a7)+g]}),'context':f,'config':c});const h=b[o(0x1a3)]?'/'+b['dir']+'/':'/',i=this[o(0x1b2)][o(0x1b8)]({'pathParts':[o(0x1c1),o(0x1bc),b[o(0x1b6)],o(0x1b5)+c[o(0x1af)]['js']]});await this['fsi'][o(0x1ab)]({'filePath':i,'content':'import\x20\x27./methods'+h+d+o(0x1a6)});});}catch(d){Log[n(0x1b9)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x122;let f=c[d];return f;},a120d(a,b);}const a120o=a120d;(function(a,b){const l=a120d,c=a();while(!![]){try{const d=parseInt(l(0x125))/0x1+-parseInt(l(0x143))/0x2*(parseInt(l(0x127))/0x3)+-parseInt(l(0x12e))/0x4+-parseInt(l(0x13b))/0x5+-parseInt(l(0x123))/0x6+parseInt(l(0x148))/0x7+parseInt(l(0x147))/0x8*(parseInt(l(0x135))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x8a742));function a120c(){const r=['toString','tests/client','3575415kpELat','getMakaProjectConfig','pathFromAppWithNoReWrite','package/','dir','withValue','create','package','262PTqmfL','component','fsi','search','568TeTDfN','331842mcQIjZ','layout','resourceName','template','graphql','5801490OgPNjj','package/package.js','312424ueuSQd','relative','8841XKQtKX','ssr','store','noRename','apply','.js','theme','2448672RHSguA','server','template/template.js','engines','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','/client/','hasOwnProperty','366021CuMULQ','constructor','packages','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html'];a120c=function(){return r;};return a120c();}const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a120d;if(c){const e=c[m(0x12b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const n=a120d;return a120a[n(0x139)]()[n(0x146)]('(((.+)+)+)+$')[n(0x139)]()[n(0x136)](a120a)['search']('(((.+)+)+)+$');});a120a();import a120e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a120o(0x141)]({'name':a120o(0x142),'aliases':['p'],'usage':a120o(0x132),'shortDesc':a120o(0x138),'validOpts':[a120o(0x13f)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a120o,c=paramCase(b['resourceName']),d=this[p(0x145)]['pathFromApp']({'pathParts':[p(0x137),b[p(0x13f)],c]}),e=this[p(0x145)][p(0x13d)]({'pathParts':[p(0x137),b['dir'],c,'package.js']}),f=this[p(0x145)][p(0x13c)]();await this[p(0x145)][p(0x140)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x14a)]),'myPath':a120e[q(0x126)](this[q(0x145)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x14a)]),'className':pascalCase(b[q(0x14a)]),'camelCaseName':camelCase(b[q(0x14a)]),'fileName':c,'client':f[q(0x131)]['client'],'graphql':f[q(0x131)][q(0x122)],'ssr':f[q(0x131)][q(0x128)],'isComponent':b[q(0x134)](q(0x144)),'isLayout':b[q(0x134)](q(0x149)),'isStore':b[q(0x134)](q(0x129)),'features':f['features'],'noRename':!![],'theme':f[q(0x131)][q(0x12d)]};await this['fsi'][q(0x14b)]({'srcPath':q(0x124),'destPath':e,'context':g,'config':f}),g[q(0x12a)]=![];const h=d+q(0x133)+c+q(0x12c);await this[q(0x145)][q(0x14b)]({'srcPath':q(0x130),'destPath':h,'context':g,'config':f});const i=['lib',q(0x12f),q(0x13a),'tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+q(0x12c);await this[q(0x145)]['template']({'srcPath':q(0x13e)+j+'/package.js','destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0x21b))/0x1*(-parseInt(j(0x22e))/0x2)+-parseInt(j(0x1f1))/0x3+-parseInt(j(0x211))/0x4+-parseInt(j(0x219))/0x5*(parseInt(j(0x233))/0x6)+-parseInt(j(0x212))/0x7*(-parseInt(j(0x1f6))/0x8)+parseInt(j(0x221))/0x9+parseInt(j(0x21c))/0xa*(parseInt(j(0x239))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xa3759));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0x20e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a[l(0x1fa)]()[l(0x223)](l(0x1f9))[l(0x1fa)]()[l(0x1fd)](a121a)[l(0x223)](l(0x1f9));});function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a121d(a,b);}a121a();function a121c(){const p=['(((.+)+)+)+$','toString','pages','fileName','constructor','test/test.js','withTranslations','installNpmPackage','fsi','warn','theme','checkNpmPackage','pathFromProject','maka\x20g:page\x20todos/todos-item','vanilla','import\x20\x27./','template/template.css','layout','\x27;\x0a','true','setTemplate','apply','route','Generate\x20a\x20page.','2431264EnFSYq','3850ieWFGc','/imports/ui/pages','none','relative','Updating\x20npm\x20packages\x20...','.js','template','5yVlvML','pathFromApp','239179biAgXD','130lOHJvj','graphql','withHook','getMakaProjectConfig','string','6774552NCfduL','css','search','features','html','dir','hook/hook.js','className','engines','ramda','injectTemplateModule','template/template.html','baseDir','6GJJgAp','react','components','test','create','1180158YNNJNg','component/component.js','page','withValue','component','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','1066285IauBOy','hasOwnProperty','193224nSxVHV','injectAtBeginningOfFile','api','resourceName','hooks','3536irCRdc','/imports/ui/','.app-tests.js'];a121c=function(){return p;};return a121c();}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';const aliases=['p'];Generator[a121m(0x232)]({'name':a121m(0x235),'aliases':aliases,'usage':a121m(0x238),'shortDesc':a121m(0x210),'validOpts':[{'name':'baseDir','values':[a121m(0x1f5),a121m(0x230),a121m(0x1fb),'layouts']},{'name':a121m(0x21e),'boolFlag':!![]}],'examples':[a121m(0x206)]},async function(a,b){const n=a121m,c=b[n(0x22d)]?n(0x1f7)+b[n(0x22d)]:n(0x213),d=this['fsi'][n(0x21a)](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b[n(0x226)],paramCase(b[n(0x1f4)]),paramCase(b[n(0x1f4)])]}),f=this['fsi'][n(0x21f)]();let g='';return await this[n(0x201)][n(0x236)](f,async()=>{const o=n;typeof f[o(0x218)]['html']==='string'&&(f['template'][o(0x225)]=f[o(0x218)][o(0x225)]==='true'?!![]:![],this[o(0x201)][o(0x20d)](o(0x225),f['template'][o(0x225)]));typeof f[o(0x218)]['test']===o(0x220)&&(f[o(0x218)][o(0x231)]=f[o(0x218)]['test']===o(0x20c)?!![]:![],this[o(0x201)][o(0x20d)](o(0x231),f[o(0x218)][o(0x231)]));typeof f[o(0x218)][o(0x222)]===o(0x220)&&(f[o(0x218)]['css']=f['template'][o(0x222)]==='true'?!![]:![],this['fsi']['setTemplate'](o(0x222),f['template'][o(0x222)]));typeof f['template']['js']===o(0x220)&&(f[o(0x218)]['js']=f['template']['js']===o(0x20c)?!![]:![],this[o(0x201)]['setTemplate']('js',f[o(0x218)]['js']));!f[o(0x224)]&&(f[o(0x224)]={});!b['root']&&!this[o(0x201)][o(0x204)](o(0x22a))&&(Log[o(0x202)](o(0x216)),this[o(0x201)][o(0x200)](o(0x22a),{'cwd':d}));const h={'name':pascalCase(b[o(0x1f4)]),'myPath':a121e[o(0x215)](this['fsi'][o(0x205)]({}),e),'cssCaseName':paramCase(b[o(0x1f4)]),'className':pascalCase(b[o(0x1f4)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x1f4)]),'graphql':f[o(0x229)][o(0x21d)],'features':f[o(0x224)],'client':f[o(0x229)]['client'],'api':f[o(0x229)][o(0x1f3)],'ssr':f[o(0x229)]['ssr'],'isStore':b[o(0x1f0)]('store'),'isComponent':b[o(0x1f0)](o(0x237)),'isLayout':b[o(0x1f0)](o(0x20a)),'withTranslations':f[o(0x224)][o(0x1ff)],'test':f['engines'][o(0x231)],'theme':f[o(0x229)][o(0x203)]};f[o(0x218)][o(0x225)]&&await this['fsi'][o(0x218)]({'srcPath':o(0x22c),'destPath':e+'.html','context':h,'config':f});f[o(0x224)]?.['withHooks']||b['withHook']?await this['fsi'][o(0x218)]({'srcPath':o(0x227),'destPath':e+'.js','framework':'react','context':h,'config':f}):await this[o(0x201)]['template']({'srcPath':o(0x234),'destPath':e+o(0x217),'framework':o(0x22f),'context':h,'config':f});f[o(0x229)][o(0x231)]!==o(0x214)&&await this[o(0x201)][o(0x218)]({'srcPath':o(0x1fe),'destPath':e+o(0x1f8),'framework':o(0x22f),'context':h,'config':f});f[o(0x218)][o(0x222)]&&await this[o(0x201)][o(0x218)]({'srcPath':o(0x209),'destPath':e+'.css','context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':f});f[o(0x229)]['client']!==o(0x22f)&&f['engines']['client']!==o(0x207)?(f[o(0x218)][o(0x222)]&&await this[o(0x201)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x229)]['js'],'content':o(0x208)+h[o(0x1fc)]+'.'+f[o(0x229)][o(0x225)]+o(0x20b)+'import\x20\x27./'+h['fileName']+'.'+f['engines'][o(0x222)]+'\x27;'}),!f[o(0x218)]['css']&&await this[o(0x201)][o(0x1f2)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x208)+h[o(0x1fc)]+'.'+f[o(0x229)][o(0x225)]+'\x27;'})):f[o(0x218)]['css']&&await this[o(0x201)][o(0x1f2)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x208)+h['fileName']+'.'+f[o(0x229)][o(0x222)]+'\x27;'});const i=b['dir']?'/'+b['dir']+'/':'/';g=''+c+i+h[o(0x1fc)]+'/'+h[o(0x1fc)],await this[o(0x201)][o(0x22b)](h[o(0x228)],f,g),!b['root']&&await a121f['processAndRunGenerator'](o(0x20f),[i+b[o(0x1f4)]],b);}),g+'.'+f[n(0x229)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a122k=a122d;
|
|
1
|
+
const a122k=a122d;(function(a,b){const h=a122d,c=a();while(!![]){try{const d=parseInt(h(0xad))/0x1*(-parseInt(h(0xa6))/0x2)+parseInt(h(0xac))/0x3+-parseInt(h(0x9f))/0x4+-parseInt(h(0xa5))/0x5*(parseInt(h(0x99))/0x6)+parseInt(h(0x9a))/0x7*(-parseInt(h(0x9d))/0x8)+-parseInt(h(0xa9))/0x9+-parseInt(h(0xaa))/0xa*(-parseInt(h(0xb1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x223e4));const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a122d;if(c){const e=c[i(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const j=a122d;return a122a[j(0xa7)]()[j(0xa2)](j(0xaf))[j(0xa7)]()[j(0xb0)](a122a)[j(0xa2)](j(0xaf));});function a122c(){const n=['maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','44454yrofLd','25vsBeHv','engines','(((.+)+)+)+$','constructor','225313MOognK','getMakaProjectConfig','maka\x20g:publish\x20todos','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','36jwDgyo','14tqjmhv','apply','publish','402328CRQntg','fsi','1103760wKOgUS','server/publish.','tsx','search','templateContent','resourceName','44985BwBFAi','7894RbKqKj','toString','rewriteDestinationPathForEngine','376209oJvEwN','340axXvgW'];a122c=function(){return n;};return a122c();}a122a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x98;let f=c[d];return f;},a122d(a,b);}Generator['create']({'name':a122k(0x9c),'aliases':['p'],'usage':a122k(0xab),'shortDesc':a122k(0x98),'validOpts':[],'examples':[a122k(0xb3)]},async function(a,b){const l=a122k,c=this[l(0x9e)][l(0xb2)]();await this['fsi']['withValue'](c,async()=>{const m=l,d={'name':b[m(0xa4)],'collection':paramCase(b[m(0xa4)]),'noRename':!![]};let e='js';c['engines']['js']===m(0xa1)&&(e='ts');const f=this[m(0x9e)][m(0xa8)]({'pathParts':[m(0xa0)+c[m(0xae)]['js']]}),g=this[m(0x9e)][m(0xa3)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});await this[m(0x9e)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123B=a123d;
|
|
1
|
+
const a123B=a123d;(function(a,b){const y=a123d,c=a();while(!![]){try{const d=parseInt(y(0x128))/0x1+parseInt(y(0x121))/0x2+parseInt(y(0x130))/0x3*(-parseInt(y(0x13e))/0x4)+-parseInt(y(0x14f))/0x5*(parseInt(y(0x149))/0x6)+parseInt(y(0x141))/0x7*(parseInt(y(0x117))/0x8)+-parseInt(y(0x123))/0x9*(-parseInt(y(0x150))/0xa)+parseInt(y(0x12d))/0xb*(-parseInt(y(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x6be5d));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a123d;if(c){const e=c[z(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const A=a123d;return a123a['toString']()[A(0x11b)](A(0x15a))[A(0x159)]()['constructor'](a123a)[A(0x11b)](A(0x15a));});a123a();function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x10d;let f=c[d];return f;},a123d(a,b);}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'];Generator[a123B(0x15b)]({'name':a123B(0x127),'aliases':aliases,'validOpts':['private',a123B(0x12b),'only','cwd','config',a123B(0x145),a123B(0x160),'url',a123B(0x13a)],'usage':a123B(0x122),'shortDesc':a123B(0x14b),'examples':[a123B(0x129),a123B(0x148),a123B(0x13f),a123B(0x153),'maka\x20g:route\x20pages/about']},async function(a,b){const C=a123B;try{const c=[C(0x118),C(0x113),C(0x137),'layouts'];if(b[C(0x13a)]&&!c['includes'](b[C(0x13a)])){Log[C(0x116)](C(0x11d)+b['baseDir']+'\x22'),Log[C(0x116)](C(0x14c)+c[C(0x12f)](',\x20'));throw new UsageError();}const d=this['fsi'][C(0x14a)]();await this['fsi']['withValue'](d,async()=>{const D=C,f=b[D(0x15d)]??![];let g=b[D(0x14e)][D(0x110)]('/')[D(0x120)]();if(!g){Log[D(0x116)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}g=pascalCase(g);let h='/'+b['resourceName'];a[D(0x11a)]>0x1&&(h='/'+a[D(0x12e)](function(n){return n!=='/';})['join']('/')[D(0x156)]());h=h['replace'](/\/\//g,'/');b[D(0x12b)]&&(b[D(0x12b)]=camelCase(b[D(0x12b)]));const i=b[D(0x13a)]?D(0x10f)+b[D(0x13a)]:'/imports/ui/pages',j=a123e['join'](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x12b)]||D(0x10e),'templatePath':j,'templateName':pascalCase(g),'client':d['engines']['client'],'newForm':![],'withTranslations':d['features'][D(0x15c)]};f&&(k[D(0x12b)]=D(0x14d));let l,m;if(d[D(0x12c)]['client']===D(0x13b)){if(d[D(0x12c)][D(0x136)]==='true'){const r=this['fsi']['pathFromApp']({'pathParts':[D(0x139),D(0x115),'lib','routes.js']});l=this[D(0x152)][D(0x132)]({'pathParts':[r],'config':d});}else{const s=this[D(0x152)][D(0x112)]({'pathParts':[D(0x139),D(0x115),D(0x135),D(0x144)]});l=this[D(0x152)][D(0x132)]({'pathParts':[s],'config':d});}const n=await this[D(0x152)][D(0x157)](l,g);if(n){Log[D(0x111)](D(0x155)+g+D(0x142));return;}else{const t=this[D(0x152)][D(0x151)](l);Log[D(0x147)]('Adding\x20route\x20'+g+D(0x134)+l[D(0x126)](t,''));}const o=this[D(0x152)]['readFileLines'](l)['map']((u,v)=>{const E=D;return u[E(0x11f)](E(0x13d))?v+0x1:null;})[D(0x12e)](u=>u!==null);let p=this[D(0x152)][D(0x15e)](l)[D(0x114)]((u,v)=>{const F=D;return u['includes'](F(0x131))?v+0x1:null;})[D(0x12e)](u=>u!==null),q=this['fsi']['readFileLines'](l)[D(0x114)]((u,v)=>{const G=D;return u[G(0x11f)](G(0x15f))?v+0x1:null;})[D(0x12e)](u=>u!==null);p[D(0x11a)]>0x0&&q[D(0x11a)]>0x0&&(k[D(0x138)]=!![]);m=this[D(0x152)]['templateContent']({'srcPath':D(0x12a),'framework':D(0x13b),'context':k,'config':d});if(p['length']>0x0||q['length']>0x0){this[D(0x152)][D(0x143)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x11a)]>0x0)q=this[D(0x152)][D(0x15e)](l)['map']((u,v)=>{const H=D;return u[H(0x11f)](H(0x15f))?v+0x1:null;})[D(0x12e)](u=>u!==null),this[D(0x152)][D(0x143)]({'filePath':l,'content':'\x09{'+k[D(0x11c)]+'}','lineNumber':q[0x0]});else p[D(0x11a)]>0x0?(p=this[D(0x152)][D(0x15e)](l)[D(0x114)]((u,v)=>{const I=D;return u[I(0x11f)](I(0x131))?v+0x1:null;})[D(0x12e)](u=>u!==null),this[D(0x152)][D(0x143)]({'filePath':l,'content':'\x09{'+k[D(0x11c)]+'}','lineNumber':p[0x0]})):Log[D(0x111)](D(0x119)+l);}else{const u=this['fsi'][D(0x15e)](l)[D(0x114)](x=>{const J=D;return x[J(0x11f)](J(0x154));}),v=u[D(0x133)](!![])>-0x1,w=v?D(0x158):'</Router>';await this['fsi'][D(0x10d)]({'filePath':l,'content':D(0x124)+m+D(0x124),'begin':D(0x11e),'end':w});}}else{if(d['engines'][D(0x135)]==='vanilla'){const x=this[D(0x152)][D(0x112)]({'pathParts':['imports',D(0x115),D(0x135),'routes.js']});l=this[D(0x152)][D(0x132)]({'pathParts':[x],'config':d}),m=this[D(0x152)][D(0x125)]({'srcPath':D(0x12a),'context':k}),await this[D(0x152)][D(0x140)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x116)](f);}});function a123c(){const K=['create','withTranslations','private','readFileLines','const\x20privateRoutes\x20=\x20(<>','withHook','injectIntoFile','MasterLayout','/imports/ui/','split','warn','pathFromApp','components','map','startup','error','2835400eGkUyg','hooks','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','length','search','templateName','Invalid\x20directory\x20option\x20\x22','<Router','includes','pop','1248626IvjXCO','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','153wBroeS','\x0a\x09\x09','templateContent','replace','route','335412AJTIZH','maka\x20g:route\x20todosIndex\x20todos','route/route.js','layout','engines','118261TOyELn','filter','join','18yKRicd','const\x20publicRoutes\x20=\x20(<>','rewriteDestinationPathForEngine','indexOf','\x20to\x20','client','ssr','pages','newForm','imports','baseDir','react','180qStCLB','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','174092TxGcNu','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','injectAtEndOfFile','7ACzQAO','\x20already\x20exists.\x20\x20Skipping.','injectAfterLineNumber','routes.js','root','apply','info','maka\x20g:route\x20todosEdit\x20todos/:id/edit','8628cigizn','getMakaProjectConfig','Scaffolding\x20for\x20a\x20Route.','Valid\x20options\x20are:\x20','PrivateLayout','resourceName','2335pUmnJt','130440YAWkgK','pathFromProject','fsi','maka\x20g:route\x20pages/lists/listIndex\x20lists','\x22*\x22','Route\x20','toLowerCase','fileContainsString','<Route','toString','(((.+)+)+)+$'];a123c=function(){return K;};return a123c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a124c(){const o=['maka\x20{generate,\x20g}:{service}\x20<resource-name>','100ZNiGph','160324aachNV','resourceName','logger','toString','checkNpmPackage','(((.+)+)+)+$','fsi','1oYyyFr','854715fMLzhm','816111PSGian','81tbNwVW','template','error','constructor','service/logger/logger.js','7AjRWGu','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','25974630fmBvAv','pathFromApp','installNpmPackage','maka\x20g:svc\x20service-logger\x20--type=logger','type','1146706zEohZA','7488072fqsQJc','winston\x20setimmediate','imports','6006102LUgMsM','withValue','svc','create','winston','tsx'];a124c=function(){return o;};return a124c();}const a124l=a124d;(function(a,b){const j=a124d,c=a();while(!![]){try{const d=-parseInt(j(0x1a6))/0x1*(-parseInt(j(0x193))/0x2)+parseInt(j(0x187))/0x3*(-parseInt(j(0x19f))/0x4)+-parseInt(j(0x185))/0x5+-parseInt(j(0x197))/0x6*(parseInt(j(0x18c))/0x7)+parseInt(j(0x194))/0x8+parseInt(j(0x186))/0x9*(-parseInt(j(0x19e))/0xa)+parseInt(j(0x18e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xad47b));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['toString']()['search'](k(0x1a4))[k(0x1a2)]()[k(0x18a)](a124a)['search'](k(0x1a4));});a124a();function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x185;let f=c[d];return f;},a124d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a124l(0x19a)]({'name':'service','aliases':[a124l(0x199)],'usage':a124l(0x19d),'shortDesc':a124l(0x18d),'requiredOpts':[{'name':a124l(0x192),'values':[a124l(0x1a1)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a124l(0x191)]},async function(a,b){const m=a124l;try{const c=this[m(0x1a5)]['getMakaProjectConfig']();await this[m(0x1a5)][m(0x198)](c,async()=>{const n=m,d=this['fsi']['pathFromApp']({}),f=paramCase(b[n(0x1a0)]),g={'name':pascalCase(b[n(0x1a0)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']===n(0x19c)&&(h='ts');if(b['type']===n(0x1a1)){!this['fsi'][n(0x1a3)](n(0x19b))&&await this['fsi'][n(0x190)](n(0x195),{'cwd':d,'msg':'Installing\x20winston'});const i=this[n(0x1a5)][n(0x18f)]({'pathParts':[n(0x196),'startup','lib','services',f+'.'+h]});await this[n(0x1a5)][n(0x188)]({'srcPath':n(0x18b),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x189)](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(0x72))/0x1*(parseInt(f(0x6b))/0x2)+parseInt(f(0x68))/0x3+-parseInt(f(0x73))/0x4+-parseInt(f(0x6d))/0x5+parseInt(f(0x6a))/0x6+-parseInt(f(0x70))/0x7+parseInt(f(0x6e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x2e390));var a125b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a125d;if(c){var e=c[g(0x71)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){var h=a125d;return a125a[h(0x6c)]()[h(0x6f)]('(((.+)+)+)+$')[h(0x6c)]()[h(0x69)](a125a)[h(0x6f)]('(((.+)+)+)+$');});function a125d(a,b){var c=a125c();return a125d=function(d,e){d=d-0x68;var f=c[d];return f;},a125d(a,b);}a125a();function a125c(){var i=['1364Quvwak','toString','1231685AiaLIu','3901000RGlwhi','search','263368qrdzhH','apply','173SVKqzV','988472ydfdiT','259389aGppIt','constructor','1585830EJFpHE'];a125c=function(){return i;};return a125c();}import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a126k=a126d;(function(a,b){const i=a126d,c=a();while(!![]){try{const d=-parseInt(i(0x186))/0x1+-parseInt(i(0x17a))/0x2*(parseInt(i(0x179))/0x3)+-parseInt(i(0x16b))/0x4+-parseInt(i(0x16f))/0x5+parseInt(i(0x171))/0x6+-parseInt(i(0x17b))/0x7*(-parseInt(i(0x16a))/0x8)+parseInt(i(0x169))/0x9*(parseInt(i(0x184))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xbd730));const a126b=(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;};}()),a126a=a126b(this,function(){const j=a126d;return a126a[j(0x185)]()['search'](j(0x17d))[j(0x185)]()[j(0x172)](a126a)[j(0x183)]('(((.+)+)+)+$');});function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x169;let f=c[d];return f;},a126d(a,b);}a126a();import{Generator}from'../../generator.js';function a126c(){const n=['942572LfsvaW','join','appName','env','6934010nSxhak','openssl.conf','3769548ZrsOCN','constructor','getMakaProjectConfig','fsi','withValue','maka\x20g:sslconfig\x20--env\x20dev','create','getGlobalConfig','3iciTAy','1053904TqmYQI','2068549PwhTPP','maka\x20{generate,\x20g}:sslconfig','(((.+)+)+)+$','Generate\x20a\x20new\x20openssl\x20config\x20file','service','openssl/openssl.conf','sslconfig','error','search','1297040fEqPsd','toString','1370688MiObnh','234nAlSuy','8MeFjLs'];a126c=function(){return n;};return a126c();}import{Log}from'../../tools/log/log.class.js';import a126e from'path';Generator[a126k(0x177)]({'name':a126k(0x181),'usage':a126k(0x17c),'shortDesc':a126k(0x17e),'noNeedResource':!![],'requiredOpts':[a126k(0x16e)],'examples':[a126k(0x176)],'validOpts':[]},async function(a,b){const l=a126k;try{const c=await this[l(0x174)][l(0x173)](),d=await this[l(0x174)][l(0x178)](),f=this['fsi']['getAppConfigPath'](b[l(0x16e)]),g=a126e[l(0x16c)](f,'_keys',l(0x170));await this[l(0x174)][l(0x175)](c,async()=>{const m=l,h={'app':d[m(0x16d)],'noRename':!![]};await this[m(0x174)]['template']({'srcPath':m(0x180),'destPath':g,'framework':m(0x17f),'context':h,'config':c});});}catch(h){Log[l(0x182)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127A=a127d;
|
|
1
|
+
const a127A=a127d;(function(a,b){const x=a127d,c=a();while(!![]){try{const d=-parseInt(x(0xd5))/0x1+parseInt(x(0xcf))/0x2*(parseInt(x(0xba))/0x3)+parseInt(x(0xd6))/0x4+parseInt(x(0xe1))/0x5*(-parseInt(x(0xbe))/0x6)+-parseInt(x(0xda))/0x7+-parseInt(x(0xb4))/0x8*(-parseInt(x(0xc9))/0x9)+parseInt(x(0xad))/0xa*(parseInt(x(0xaa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x2b49d));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a127d;if(c){const e=c[y(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const z=a127d;return a127a[z(0xa8)]()['search']('(((.+)+)+)+$')[z(0xa8)]()[z(0xc8)](a127a)[z(0xc1)](z(0xb5));});function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xa7;let f=c[d];return f;},a127d(a,b);}a127a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a127e from'fs';function a127c(){const D=['setProjectConfig','withValue','findAppDirectory','checkNpmPackage','\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','104064rYKvHq','270184vqlpSY','Generate\x20a\x20new\x20locale\x20translation','getGlobalConfig','lib','2005374hCDbhr','installNpmPackage','exit','startup','isFile','features.withTranslations','locales','5JzTLAz','translations','fsi','lang','template','i18n.js','injectAtBeginningOfFile','index.','appName','true','services','toString','import\x20\x27../lib/services/translations/i18n\x27;','11QiTwLJ','default\x20as\x20','export\x20{\x20default\x20as\x20','4280340hzZFkt','i18n/i18n.js','client','imports','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','error','maka\x20g:translation\x20--lang=de','24jNSiIk','(((.+)+)+)+$','apply','index.js','i18n/index.js','i18next','309AQmYTR','readFileSync','grep','pathFromApp','1121352Uqbtmr','server','injectAtEndOfFile','search','getMakaProjectConfig','create','maka\x20{generate,\x20g}:translation','import\x20\x27../lib/services/translations/i18n\x27;\x0a','\x20}\x20from\x20\x27./','warn','constructor','602298doXVrB','root','rewriteDestinationPathForEngine','service','engines','ssr','1134etaeBY'];a127c=function(){return D;};return a127c();}Generator[a127A(0xc3)]({'name':'translation','usage':a127A(0xc4),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a127A(0xd7),'description':a127A(0xd4),'examples':['maka\x20g:translation\x20--lang=en\x20(default)','maka\x20g:translation\x20--lang=fr',a127A(0xb3)],'validOpts':[]},async function(a,b){const B=a127A;try{const c=this['fsi'][B(0xc2)](),d=this[B(0xe3)][B(0xd8)](),f=this[B(0xe3)][B(0xd2)]();await this[B(0xe3)][B(0xd1)](c,async()=>{const C=B;try{!b[C(0xe4)]&&(b[C(0xe4)]='en');!b[C(0xca)]&&!this[C(0xe3)][C(0xd3)](C(0xb9))&&(Log['warn'](C(0xb1)),this['fsi'][C(0xdb)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0xe3)][C(0xd0)](C(0xdf),!![]));const g=this[C(0xe3)][C(0xbd)]({'pathParts':['imports',C(0xdd),C(0xaf),C(0xb7)]}),h=this[C(0xe3)][C(0xcb)]({'pathParts':[g],'config':c}),i=this[C(0xe3)][C(0xbc)](a127e['readFileSync'](h)[C(0xa8)](),C(0xa9))[0x0]&&!![];if(c[C(0xcd)][C(0xce)]===C(0xea)){!i&&this[C(0xe3)][C(0xe7)]({'filePath':h,'content':C(0xc5)});const t=this[C(0xe3)]['pathFromApp']({'pathParts':[C(0xb0),C(0xdd),C(0xbf),C(0xb7)]}),u=this['fsi'][C(0xcb)]({'pathParts':[t],'config':c}),v=this[C(0xe3)]['grep'](a127e[C(0xbb)](u)[C(0xa8)](),C(0xa9))[0x0]&&!![];!v&&this[C(0xe3)][C(0xe7)]({'filePath':u,'content':C(0xc5)});}else!i&&this['fsi'][C(0xe7)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0xe9)],'config':c},k=this[C(0xe3)]['pathFromApp']({'pathParts':[C(0xb0),'startup',C(0xd9),C(0xa7),C(0xe2),C(0xe6)]}),l=this[C(0xe3)][C(0xde)](this[C(0xe3)][C(0xcb)]({'pathParts':[k],'config':c}));!l&&await this[C(0xe3)][C(0xe5)]({'srcPath':C(0xae),'destPath':k,'framework':C(0xcc),'context':j,'config':c});const m=this[C(0xe3)][C(0xbd)]({'pathParts':['imports',C(0xdd),C(0xd9),'services','translations',C(0xe0),b[C(0xe4)]+'.js']}),n=this[C(0xe3)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0xe3)]['isFile'](n);!o?await this['fsi'][C(0xe5)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0xcc),'context':j,'config':c}):Log[C(0xc7)]('Locale\x20already\x20defined:\x20'+n);const p=this[C(0xe3)][C(0xbd)]({'pathParts':['imports',C(0xdd),'lib',C(0xa7),C(0xe2),C(0xe0),C(0xe8)+c[C(0xcd)]['js']]}),q=this[C(0xe3)][C(0xcb)]({'pathParts':[p],'config':c}),r=this[C(0xe3)][C(0xde)](q);!r&&await this[C(0xe3)][C(0xe5)]({'srcPath':C(0xb8),'destPath':p,'framework':C(0xcc),'context':j,'config':c});const s=this[C(0xe3)][C(0xbc)](a127e[C(0xbb)](p)[C(0xa8)](),C(0xab)+b[C(0xe4)])[0x0]&&!![];!s?await this[C(0xe3)][C(0xc0)]({'filePath':p,'content':C(0xac)+b[C(0xe4)]+C(0xc6)+b[C(0xe4)]+'\x27;'}):Log['warn']('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0xb2)](w),process[C(0xdc)](0x1);}});}catch(g){Log[B(0xb2)](g),process['exit'](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
|
|
1
|
+
const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=-parseInt(j(0x9b))/0x1*(-parseInt(j(0xb4))/0x2)+-parseInt(j(0xac))/0x3*(parseInt(j(0xa1))/0x4)+-parseInt(j(0x9d))/0x5+-parseInt(j(0xab))/0x6+-parseInt(j(0xa5))/0x7+parseInt(j(0xa2))/0x8+-parseInt(j(0xa3))/0x9*(-parseInt(j(0x9c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xc8b4e));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0xa9)]()[l(0x9e)](l(0xb1))['toString']()[l(0xa4)](a128a)[l(0x9e)](l(0xb1));});a128a();import a128e from'minimist';import a128f from'os';import a128g from'path';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x9b;let f=c[d];return f;},a128d(a,b);}import a128h from'humps';import a128i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';function a128c(){const n=['NODE_NO_WARNINGS','camelizeKeys','(((.+)+)+)+$','apply','TOOL_NODE_FLAGS','6ZGdlfg','105074oLCmDU','2220390IDNFwm','2587240rssyPK','search','env','totalmem','868CtjwCe','13096280bKKfZE','9PvTXJg','constructor','5107984kzNguf','run','argv','stringify','toString','MAKA_COMMAND_PATH','27426JlekUy','1389PynUNJ','BROWSERSLIST_IGNORE_OLD_DATA','dirname'];a128c=function(){return n;};return a128c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a128g[a128m(0xae)](__filename);global[a128m(0xaa)]=__dirname;const total_memory=a128f[a128m(0xa0)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a128m(0x9f)][a128m(0xb3)]='--max-old-space-size='+total_mem_in_mb,process[a128m(0x9f)][a128m(0xad)]='1',process[a128m(0x9f)][a128m(0xaf)]='1';const argv=a128e(process[a128m(0xa7)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a128m(0xa8)](argv));delete deepCopyArgv['_'];const opts=a128h[a128m(0xb0)](deepCopyArgv);a128i[a128m(0xa6)](args,opts);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Meteor } from 'meteor/meteor';
|
|
2
2
|
import MakaRest, { Codes } from 'meteor/maka:rest';
|
|
3
3
|
|
|
4
|
-
const <%= name %>
|
|
5
|
-
version: 'v1',
|
|
4
|
+
const <%= name %>Api = new MakaRest({
|
|
6
5
|
apiPath: '<%= fileName %>',
|
|
6
|
+
version: '<%= apiVersion %>',
|
|
7
7
|
prettyJson: Meteor.isDevelopment
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
<%= name %>
|
|
10
|
+
// maps to /api/<%= apiVersion %>/<%= fileName %>/status
|
|
11
|
+
<%= name %>Api.addRoute('status', {
|
|
12
12
|
get() {
|
|
13
13
|
return Codes.success200({ message: 'OK' });
|
|
14
14
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Meteor } from 'meteor/meteor';
|
|
2
2
|
import MakaRest, { Codes } from 'meteor/maka:rest';
|
|
3
3
|
|
|
4
|
-
const <%= name %>
|
|
5
|
-
version: 'v1',
|
|
4
|
+
const <%= name %>Api = new MakaRest({
|
|
6
5
|
apiPath: '<%= fileName %>',
|
|
6
|
+
version: '<%= apiVersion %>',
|
|
7
7
|
prettyJson: Meteor.isDevelopment
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// maps to /api/<%= apiVersion %>/<%= fileName %>/status
|
|
11
|
+
<%= name %>Api.addRoute('status', {
|
|
11
12
|
get() {
|
|
12
13
|
return Codes.success200({ message: 'OK' });
|
|
13
14
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { Meteor } from 'meteor/meteor';
|
|
2
2
|
import { ValidatedMethod } from 'meteor/mdg:validated-method';
|
|
3
3
|
import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
|
|
4
|
-
import { check, Match } from 'meteor/maka:check';
|
|
5
|
-
|
|
6
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
7
4
|
|
|
8
5
|
/**
|
|
9
6
|
* Using ValidatedMethod (maintained by MDG) is the best
|
|
@@ -12,113 +9,20 @@ import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
|
12
9
|
* calls from the client are properly handled.
|
|
13
10
|
*
|
|
14
11
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* @method
|
|
21
|
-
* @property { string } name String that defines the method.
|
|
22
|
-
* @property { function } validate Is run before the main execution.
|
|
23
|
-
* @property { function } run The main action that is executed.
|
|
24
|
-
*/
|
|
25
|
-
const insert<%= name %> = new ValidatedMethod({
|
|
26
|
-
name: '<%= fileName %>.insert',
|
|
27
|
-
validate(doc) {
|
|
28
|
-
check(doc, Object, 'while checking insert doc');
|
|
29
|
-
//check(this.userId, String, 'while validating user');
|
|
12
|
+
const <%= name %> = new ValidatedMethod({
|
|
13
|
+
name: '<%= fileName %>',
|
|
14
|
+
validate() {
|
|
15
|
+
// check(doc, Object, 'while checking insert doc');
|
|
16
|
+
// check(this.userId, String, 'while validating user');
|
|
30
17
|
},
|
|
31
|
-
run(
|
|
32
|
-
//return
|
|
18
|
+
run() {
|
|
19
|
+
//return null;
|
|
33
20
|
}
|
|
34
21
|
});
|
|
35
22
|
|
|
36
|
-
/**
|
|
37
|
-
* Client side find method.
|
|
38
|
-
*
|
|
39
|
-
* @memberof Server.<%= name %>
|
|
40
|
-
* @method
|
|
41
|
-
* @property { string } name String that defines the method.
|
|
42
|
-
* @property { function } validate Is run before the main execution.
|
|
43
|
-
* @property { function } run The main action that is executed.
|
|
44
|
-
*/
|
|
45
|
-
const find<%= name %> = new ValidatedMethod({
|
|
46
|
-
name: '<%= fileName %>.find',
|
|
47
|
-
validate(doc = {}) {
|
|
48
|
-
check(doc, Match.OneOf(String, Object), 'while checking find selector');
|
|
49
|
-
//check(this.userId, String, 'while validating user');
|
|
50
|
-
},
|
|
51
|
-
run(doc = {}) {
|
|
52
|
-
//return <%= name %>.find(doc).fetch();
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Client side findOne method.
|
|
58
|
-
*
|
|
59
|
-
* @memberof Server.<%= name %>
|
|
60
|
-
* @method
|
|
61
|
-
* @property { string } name String that defines the method.
|
|
62
|
-
* @property { function } validate Is run before the main execution.
|
|
63
|
-
* @property { function } run The main action that is executed.
|
|
64
|
-
*/
|
|
65
|
-
const findOne<%= name %> = new ValidatedMethod({
|
|
66
|
-
name: '<%= fileName %>.findOne',
|
|
67
|
-
validate(doc = {}) {
|
|
68
|
-
check(doc, Match.OneOf(String, Object), 'while checking findOne selector');
|
|
69
|
-
//check(this.userId, String, 'while validating user');
|
|
70
|
-
},
|
|
71
|
-
run(doc = {}) {
|
|
72
|
-
//return <%= name %>.findOne(doc);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Client side update method.
|
|
79
|
-
*
|
|
80
|
-
* @memberof Server.<%= name %>
|
|
81
|
-
* @method
|
|
82
|
-
* @property { string } name String that defines the method.
|
|
83
|
-
* @property { function } validate Is run before the main execution.
|
|
84
|
-
* @property { function } run The main action that is executed.
|
|
85
|
-
*/
|
|
86
|
-
const update<%= name %> = new ValidatedMethod({
|
|
87
|
-
name: '<%= fileName %>.update',
|
|
88
|
-
validate({_id, set}) {
|
|
89
|
-
if (typeof _id !== 'string' && typeof set !== 'object') throw 'Usage Error: Expecting signature { _id: <string>, set: <object> }';
|
|
90
|
-
check(_id, String, 'while checking _id selector');
|
|
91
|
-
check(set, Object, 'while checking update set object');
|
|
92
|
-
//check(this.userId, String, 'while validating user');
|
|
93
|
-
},
|
|
94
|
-
run({_id, set}) {
|
|
95
|
-
//return <%= name %>.update(_id, {$set: set});
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Client side remove method.
|
|
101
|
-
*
|
|
102
|
-
* @memberof Server.<%= name %>
|
|
103
|
-
* @method
|
|
104
|
-
* @property { string } name String that defines the method.
|
|
105
|
-
* @property { function } validate Is run before the main execution.
|
|
106
|
-
* @property { function } run The main action that is executed.
|
|
107
|
-
*/
|
|
108
|
-
const remove<%= name %> = new ValidatedMethod({
|
|
109
|
-
name: '<%= fileName %>.remove',
|
|
110
|
-
validate(_id) {
|
|
111
|
-
// NOTE: May want to use object removal, but dangerous!!!
|
|
112
|
-
check(_id, String, 'while checking remove _id selector');
|
|
113
|
-
//check(this.userId, String, 'while validating user');
|
|
114
|
-
},
|
|
115
|
-
run(_id) {
|
|
116
|
-
//return <%= name %>.remove(_id);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
23
|
|
|
120
24
|
const RATE_LIMITED_METHODS = [
|
|
121
|
-
|
|
25
|
+
<%= name %>
|
|
122
26
|
].map(value => value['name']);
|
|
123
27
|
|
|
124
28
|
if (Meteor.isServer) {
|