@maka/maka-cli 4.13.20 → 5.0.0-beta.2
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/cecr.sub.cmd.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/decr.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/lecr.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/profile.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/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.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/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.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/auth.mui.gen.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/app/imports/startup/client/index.js.jsx +5 -4
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +5 -4
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +24 -43
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +25 -44
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +24 -43
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +25 -44
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +2 -2
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +2 -2
- package/bundle/obf/src/templates/react/component/component.js.jsx +4 -1
- package/bundle/obf/src/templates/react/component/component.js.tsx +4 -1
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +4 -2
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +4 -1
- package/bundle/obf/src/templates/react/route/route.js.jsx +2 -5
- package/bundle/obf/src/templates/react/route/route.js.tsx +2 -5
- 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
|
+
const a133m=a133d;function a133c(){const p=['7szVnNz','checkMeteorPackage','imports','6654JnXxYX','index.','tsx','266DNKrrW','ddp-rate-limiter','940556SKcsgq','injectAtEndOfFile','370305hyAIpE','appPathPrefix','getMakaProjectConfig','-rpc-method\x27;','mdg:validated-method','12mNTRmi','2622822GSfjrI','maka\x20g:method\x20todos','toString','5122216kirnqy','dir','template','maka:check','pathFromApp','withValue','engines','5TnYNhs','9zEpkfn','maka\x20{generate,\x20g}:{method,\x20m}\x20name','resourceName','create','fsi','655790iXOvpQ','startup','method/method.js','18476777PPMTDM','import\x20\x27./methods','(((.+)+)+)+$','apply','method'];a133c=function(){return p;};return a133c();}(function(a,b){const j=a133d,c=a();while(!![]){try{const d=-parseInt(j(0x7f))/0x1*(-parseInt(j(0xa4))/0x2)+-parseInt(j(0x83))/0x3+parseInt(j(0x81))/0x4+-parseInt(j(0x93))/0x5*(-parseInt(j(0x89))/0x6)+-parseInt(j(0xa1))/0x7*(-parseInt(j(0x8c))/0x8)+-parseInt(j(0x94))/0x9*(-parseInt(j(0x99))/0xa)+parseInt(j(0x9c))/0xb*(-parseInt(j(0x88))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x704c4));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a[l(0x8b)]()['search'](l(0x9e))[l(0x8b)]()['constructor'](a133a)['search'](l(0x9e));});a133a();function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x7d;let f=c[d];return f;},a133d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a133m(0x97)]({'name':a133m(0xa0),'aliases':['m'],'usage':a133m(0x95),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a133m(0x8d)],'examples':[a133m(0x8a)]},async function(a,b){const n=a133m;try{const c=this[n(0x98)][n(0x85)]();await this[n(0x98)][n(0x91)](c,async()=>{const o=n,d=paramCase(b[o(0x96)]),f={'name':b[o(0x96)],'fileName':d,'className':pascalCase(b[o(0x96)]),'camelCase':camelCase(b[o(0x96)]),'noRename':!![]};let g='js';c[o(0x92)]['js']===o(0x7e)&&(g='ts');await this[o(0x98)][o(0xa2)]([o(0x8f),o(0x80),o(0x87)],{'shouldInstall':!![]}),await this[o(0x98)][o(0x8e)]({'srcPath':o(0x9b),'destPath':this['fsi'][o(0x90)]({'pathParts':['imports',o(0x9a),b[o(0x84)],'methods',b[o(0x8d)],d+'-rpc-method.'+g]}),'context':f,'config':c});const h=b[o(0x8d)]?'/'+b[o(0x8d)]+'/':'/',i=this[o(0x98)][o(0x90)]({'pathParts':[o(0xa3),o(0x9a),b['appPathPrefix'],o(0x7d)+c[o(0x92)]['js']]});await this['fsi'][o(0x82)]({'filePath':i,'content':o(0x9d)+h+d+o(0x86)});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d
|
|
1
|
+
const a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d=-parseInt(l(0x1c2))/0x1+-parseInt(l(0x1c0))/0x2+-parseInt(l(0x1a0))/0x3+parseInt(l(0x19b))/0x4*(-parseInt(l(0x1bf))/0x5)+parseInt(l(0x1a8))/0x6*(-parseInt(l(0x1b1))/0x7)+-parseInt(l(0x19e))/0x8*(parseInt(l(0x1ab))/0x9)+parseInt(l(0x1b5))/0xa*(parseInt(l(0x1a1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x22f74));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a['toString']()['search'](n(0x1a6))[n(0x19c)]()[n(0x1ba)](a134a)[n(0x1b7)]('(((.+)+)+)+$');});a134a();import a134e from'path';function a134c(){const r=['pathFromApp','350883dBgRQh','583wswstl','component','pathFromProject','package.js','hasOwnProperty','(((.+)+)+)+$','dir','2052NSVpLv','tests/client','/package.js','27xutNjK','resourceName','pathFromAppWithNoReWrite','relative','package/package.js','theme','1995tKVWWK','features','noRename','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','149830xjUwwM','fsi','search','template','packages','constructor','engines','store','maka\x20g:package\x20todos:package','.js','125nycexR','107214fButkA','lib','162037PTiYjk','package','package/','layout','26548gLkcWI','toString','apply','146344KIiEcG'];a134c=function(){return r;};return a134c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x198;let f=c[d];return f;},a134d(a,b);}Generator['create']({'name':a134o(0x198),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a134o(0x1b4),'validOpts':[a134o(0x1a7)],'examples':[a134o(0x1bd)]},async function(a,b){const p=a134o,c=paramCase(b[p(0x1ac)]),d=this['fsi'][p(0x19f)]({'pathParts':[p(0x1b9),b[p(0x1a7)],c]}),e=this['fsi'][p(0x1ad)]({'pathParts':[p(0x1b9),b[p(0x1a7)],c,p(0x1a4)]}),f=this[p(0x1b6)]['getMakaProjectConfig']();await this[p(0x1b6)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1ac)]),'myPath':a134e[q(0x1ae)](this[q(0x1b6)][q(0x1a3)]({}),d),'cssCaseName':paramCase(b[q(0x1ac)]),'className':pascalCase(b[q(0x1ac)]),'camelCaseName':camelCase(b[q(0x1ac)]),'fileName':c,'client':f['engines']['client'],'graphql':f[q(0x1bb)]['graphql'],'ssr':f['engines']['ssr'],'isComponent':b[q(0x1a5)](q(0x1a2)),'isLayout':b[q(0x1a5)](q(0x19a)),'isStore':b[q(0x1a5)](q(0x1bc)),'features':f[q(0x1b2)],'noRename':!![],'theme':f['engines'][q(0x1b0)]};await this['fsi']['template']({'srcPath':q(0x1af),'destPath':e,'context':g,'config':f}),g[q(0x1b3)]=![];const h=d+'/client/'+c+'.js';await this[q(0x1b6)][q(0x1b8)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0x1c1),'server',q(0x1a9),'tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+q(0x1be);await this[q(0x1b6)][q(0x1b8)]({'srcPath':q(0x199)+j+q(0x1aa),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a135u=a135d;function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x6b;let f=c[d];return f;},a135d(a,b);}(function(a,b){const r=a135d,c=a();while(!![]){try{const d=parseInt(r(0xbf))/0x1+-parseInt(r(0x9b))/0x2+parseInt(r(0xbb))/0x3+-parseInt(r(0x8d))/0x4+-parseInt(r(0x84))/0x5+parseInt(r(0xa1))/0x6+parseInt(r(0x92))/0x7*(parseInt(r(0x90))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x3dbd1));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a['toString']()['search'](t(0xbe))['toString']()[t(0x9a)](a135a)[t(0xaf)](t(0xbe));});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135c(){const x=['none','layout','react','string','test/test.js','css','setTemplate','injectAtBeginningOfFile','component/component.js','.js','444174yAJlUb','log','routes.','(((.+)+)+)+$','341026DmZtja','true','resourceName','substring','replaceAll','replace','.app-tests.js','hasOwnProperty','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','dir','toLowerCase','\x22\x20element={<Component.','pathFromProject','graphql','page','engines','trim','client','checkNpmPackage','apply','className','template/template.html','split','<Route\x20path=\x22','relative','private','2313820cHlMaX','theme','create','fileName','component','slice','template/template.css','html','ramda','497552SQHpyH','Generate\x20a\x20page.','pathFromApp','746288fxknZE','injectIntoFile','28KpDpXN','installNpmPackage','<Route\x20index','ssr','test','hook/hook.js','/imports/ui/pages','vanilla','constructor','285832WTUImm','template','lib','fsi','root','features','724326mlPTGm','<Route\x20element={<PrivateRoute\x20/>}>','endsWith','warn','<Route\x20path=\x22*\x22','indexOf','/>}/>\x0a','imports','\x27;\x0a','findAppDirectory','.css','.html','assign','import\x20\x27./','search','store'];a135c=function(){return x;};return a135c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135u(0x86)]({'name':a135u(0x78),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a135u(0x8e),'validOpts':[{'name':a135u(0x83),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const v=a135u,c=v(0x98),d=this[v(0x9e)][v(0xaa)](),e=b['resourceName']['includes'](':')?b['resourceName'][v(0x80)](':')[0x0][v(0x7a)]():b[v(0x6c)]['trim'](),f=b[v(0x73)][v(0x6e)]('/','_')+'_'+e[v(0x6e)]('/','_'),g=this[v(0x9e)][v(0x8f)]({'pathParts':[c,b[v(0x73)],paramCase(f),paramCase(f)]}),h=this['fsi']['getMakaProjectConfig']();let i='';return await this[v(0x9e)]['withValue'](h,async()=>{const w=v;typeof h['template'][w(0x8b)]==='string'&&(h[w(0x9c)][w(0x8b)]=h[w(0x9c)]['html']===w(0x6b)?!![]:![],this[w(0x9e)][w(0xb7)](w(0x8b),h['template']['html']));typeof h[w(0x9c)][w(0x96)]==='string'&&(h[w(0x9c)][w(0x96)]=h[w(0x9c)][w(0x96)]===w(0x6b)?!![]:![],this[w(0x9e)][w(0xb7)](w(0x96),h[w(0x9c)][w(0x96)]));typeof h[w(0x9c)][w(0xb6)]===w(0xb4)&&(h[w(0x9c)]['css']=h[w(0x9c)][w(0xb6)]===w(0x6b)?!![]:![],this[w(0x9e)][w(0xb7)](w(0xb6),h['template'][w(0xb6)]));typeof h[w(0x9c)]['js']===w(0xb4)&&(h[w(0x9c)]['js']=h['template']['js']===w(0x6b)?!![]:![],this[w(0x9e)][w(0xb7)]('js',h['template']['js']));!h[w(0xa0)]&&(h[w(0xa0)]={});!b[w(0x9f)]&&!this[w(0x9e)][w(0x7c)](w(0x8c))&&(Log[w(0xa4)]('Updating\x20npm\x20packages\x20...'),this[w(0x9e)][w(0x93)](w(0x8c),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x82)](this['fsi'][w(0x76)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h['engines'][w(0x77)],'features':h[w(0xa0)],'client':h[w(0x79)][w(0x7b)],'api':h[w(0x79)]['api'],'ssr':h['engines'][w(0x95)],'isStore':b[w(0x71)](w(0xb0)),'isComponent':b[w(0x71)](w(0x88)),'isLayout':b[w(0x71)](w(0xb2)),'withTranslations':h[w(0xa0)]['withTranslations'],'test':h['engines']['test'],'theme':h[w(0x79)][w(0x85)]};h['template'][w(0x8b)]&&await this[w(0x9e)][w(0x9c)]({'srcPath':w(0x7f),'destPath':g+w(0xac),'context':j,'config':h});console[w(0xbc)](h[w(0xa0)]);h['features']?.['withHooks']?await this['fsi']['template']({'srcPath':w(0x97),'destPath':g+w(0xba),'framework':w(0xb3),'context':j,'config':h}):await this[w(0x9e)][w(0x9c)]({'srcPath':w(0xb9),'destPath':g+w(0xba),'framework':w(0xb3),'context':j,'config':h});h[w(0x79)][w(0x96)]!==w(0xb1)&&await this[w(0x9e)][w(0x9c)]({'srcPath':w(0xb5),'destPath':g+w(0x70),'framework':w(0xb3),'context':j,'config':h});h[w(0x9c)]['css']&&await this[w(0x9e)]['template']({'srcPath':w(0x8a),'destPath':g+w(0xab),'context':Object[w(0xad)]({},j,{'className':paramCase(b['resourceName'])}),'config':h});h[w(0x79)][w(0x7b)]!==w(0xb3)&&h[w(0x79)]['client']!==w(0x99)?(h[w(0x9c)]['css']&&await this[w(0x9e)][w(0xb8)]({'filePath':g+'.'+h[w(0x79)]['js'],'content':'import\x20\x27./'+j['fileName']+'.'+h['engines'][w(0x8b)]+w(0xa9)+w(0xae)+j['fileName']+'.'+h['engines']['css']+'\x27;'}),!h[w(0x9c)][w(0xb6)]&&await this[w(0x9e)][w(0xb8)]({'filePath':g+'.'+h[w(0x79)]['js'],'content':w(0xae)+j[w(0x87)]+'.'+h['engines'][w(0x8b)]+'\x27;'})):h[w(0x9c)]['css']&&await this[w(0x9e)][w(0xb8)]({'filePath':g+'.'+h[w(0x79)]['js'],'content':'import\x20\x27./'+j['fileName']+'.'+h[w(0x79)][w(0xb6)]+'\x27;'});const k=b[w(0x73)]?'/'+b[w(0x73)]+'/':'/';i=''+c+k+j[w(0x87)]+'/'+j[w(0x87)],await this[w(0x9e)]['injectTemplateModule'](j[w(0x7e)],h,i);if(!b[w(0x9f)]){const l=b[w(0x83)]??![];if(!f){Log['error'](w(0x72));throw new UsageError();}let m='/'+b['dir'][w(0x7a)]()+'/'+b[w(0x6c)][w(0x7a)]()['replace'](/\\/g,'/')[w(0x6f)](/\/+$/,'')[w(0x74)]();const n=b[w(0x6c)][w(0xa6)](':');n!==-0x1&&(m+='/'+b['resourceName'][w(0x6d)](0x0,n)[w(0x7a)]());m[w(0xa3)]('/')&&(m=m[w(0x89)](0x0,-0x1));m=m[w(0x6f)](/\/\//g,'/');const o=h[w(0x79)]['js'],p=h[w(0x79)][w(0x95)]===w(0x6b)?w(0x9d):'client',q=a135e['join'](d,w(0xa8),'startup',p,w(0xbd)+o);l?await this[w(0x9e)][w(0x91)]({'filePath':q,'content':w(0x81)+m+'\x22\x20element={<Component.'+pascalCase(f)+w(0xa7),'begin':[w(0xa2)],'end':['</Route>']}):await this[w(0x9e)][w(0x91)]({'filePath':q,'content':w(0x81)+m+w(0x75)+pascalCase(f)+'/>}/>\x0a','begin':[w(0x94)],'end':[w(0xa5)]});}}),i+'.'+h['engines']['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d
|
|
1
|
+
function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0xdb;let f=c[d];return f;},a136d(a,b);}const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0xe8))/0x1*(-parseInt(m(0xdb))/0x2)+-parseInt(m(0xe0))/0x3+-parseInt(m(0xe1))/0x4+parseInt(m(0xf5))/0x5+-parseInt(m(0xe7))/0x6+parseInt(m(0xfd))/0x7*(parseInt(m(0xe2))/0x8)+parseInt(m(0xdc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x6377b));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a['toString']()[o(0xf3)](o(0xde))['toString']()['constructor'](a136a)[o(0xf3)](o(0xde));});function a136c(){const s=['engines','error','baseDir','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','import\x20\x27./publications','apply','create','force','search','/imports/ui/','933350xOPkqE','withValue','startup','appPathPrefix','injectAtEndOfFile','fsi','template','publish','10003ZXaDXt','2bNNvsW','6601527qVOzxP','getMakaProjectConfig','(((.+)+)+)+$','tsx','21486CkeSNL','2865684JKYijk','1192GDWoJr','publish/publish.js','imports','resourceName','index.','166626SnfCfs','25679jNJjuI','pathFromApp','dir'];a136c=function(){return s;};return a136c();}a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a136p(0xf1)]({'name':a136p(0xfc),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a136p(0xee),'validOpts':[a136p(0xf2),'globalPublish'],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const q=a136p;try{const c=b['force']||![],d=b[q(0xed)]?q(0xf4)+b[q(0xed)]:'/imports/startup/server/publications',f=this[q(0xfa)][q(0xdd)](),g=paramCase(b[q(0xe5)]),h=this[q(0xfa)][q(0xe9)]({'pathParts':[d,b[q(0xea)],'',g]});let i='js';f[q(0xeb)]['js']===q(0xdf)&&(i='ts');await this[q(0xfa)][q(0xf6)](f,async()=>{const r=q,l={'name':b[r(0xe5)],'collection':pascalCase(b[r(0xe5)]),'noRename':!![],'globalPublish':b['globalPublish']};await this['fsi'][r(0xfb)]({'srcPath':r(0xe3),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0xfa)]['pathFromApp']({'pathParts':[q(0xe4),q(0xf7),'server',b[q(0xf8)],q(0xe6)+f[q(0xeb)]['js']]}),k=b[q(0xea)]?'/'+b['dir']+'/':'/';return await this[q(0xfa)][q(0xf9)]({'filePath':j,'content':q(0xef)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0xec)](l),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a137p=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=parseInt(m(0xdd))/0x1*(-parseInt(m(0xcf))/0x2)+parseInt(m(0xdc))/0x3*(parseInt(m(0xcb))/0x4)+parseInt(m(0xeb))/0x5*(-parseInt(m(0xc0))/0x6)+-parseInt(m(0xf3))/0x7*(parseInt(m(0xce))/0x8)+-parseInt(m(0xd3))/0x9*(parseInt(m(0xf1))/0xa)+-parseInt(m(0xc1))/0xb*(-parseInt(m(0xe8))/0xc)+-parseInt(m(0xc6))/0xd*(-parseInt(m(0xe6))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x9f658));function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0xbf;let f=c[d];return f;},a137d(a,b);}const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0xc3)]()[o(0xf0)](o(0xe9))[o(0xc3)]()[o(0xca)](a137a)[o(0xf0)]('(((.+)+)+)+$');});a137a();import a137e from'path';function a137c(){const s=['3068xResns','startup','resourceName','256SBzpKn','2213102vrJocI','}/>\x0a','routes.','pop','45IflWmJ','length','fsi','join','withValue','route','client','findAppDirectory','exit','1773cvoStO','1gXZBPv','toLowerCase','split','maka\x20{generate,\x20g}:{route,\x20r}\x20--path\x20/some/path\x20--page\x20<target-page>\x20','injectIntoFile','\x22\x20element={Component.','replace','ssr','apply','238UTAYnT','engines','15170988pKotQV','(((.+)+)+)+$','page','156785urXRAC','<Route\x20element={<PrivateRoute\x20/>}>','<Route\x20path=\x22*\x22','create','Scaffolding\x20for\x20a\x20Route.','search','502480hcSkVG','getMakaProjectConfig','27174ZBEgsp','error','120EsSFEv','11QNwkGe','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','toString','imports','private','798733DoqiPH','filter','<Route\x20path=\x22','lib','constructor'];a137c=function(){return s;};return a137c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator[a137p(0xee)]({'name':a137p(0xd8),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':'private','boolFlag':!![]},{'name':'route'},{'name':a137p(0xea)}],'usage':a137p(0xe0),'shortDesc':a137p(0xef),'examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0xd5)][q(0xf2)](),d=this[q(0xd5)][q(0xda)]();await this[q(0xd5)][q(0xd7)](c,async()=>{const r=q,f=b[r(0xc5)]??![];let g=b[r(0xcd)][r(0xdf)]('/')[r(0xd2)]();if(!g){Log[r(0xbf)](r(0xc2));throw new UsageError();}g=pascalCase(g);let h=b[r(0xd8)]?'/'+b[r(0xd8)]:'/'+b[r(0xcd)][r(0xe3)](/\\/g,'/')[r(0xde)]();a[r(0xd4)]>0x1&&(h='/'+a[r(0xc7)](function(l){return l!=='/';})[r(0xd6)]('/')[r(0xde)]());h=h[r(0xe3)](/\/\//g,'/');const i=c[r(0xe7)]['js'],j=c[r(0xe4)]?r(0xc9):r(0xd9),k=a137e['join'](d,r(0xc4),r(0xcc),j,r(0xd1)+i);f?await this['fsi'][r(0xe1)]({'filePath':k,'content':r(0xc8)+h+r(0xe2)+g+'}/>\x0a','begin':[r(0xec)],'end':['</Route>']}):await this['fsi'][r(0xe1)]({'filePath':k,'content':r(0xc8)+h+r(0xe2)+g+r(0xd0),'begin':['<Route\x20index'],'end':[r(0xed)]});});}catch(f){Log[q(0xbf)](f),process[q(0xdb)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a138m=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a138m=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(0x147))/0x1+parseInt(j(0x151))/0x2*(parseInt(j(0x14c))/0x3)+-parseInt(j(0x13b))/0x4*(parseInt(j(0x136))/0x5)+-parseInt(j(0x144))/0x6*(-parseInt(j(0x13c))/0x7)+-parseInt(j(0x14a))/0x8+-parseInt(j(0x133))/0x9+-parseInt(j(0x13a))/0xa*(-parseInt(j(0x12e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0xed344));function a138c(){const p=['services','checkNpmPackage','1508924UVDUUr','error','toString','7042848nhjcdR','pathFromApp','13143AaNjBF','service/logger/logger.js','search','installNpmPackage','type','46crJSFL','getMakaProjectConfig','6382002kqQTXO','winston\x20setimmediate','Installing\x20winston','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','fsi','9684945rQWceQ','imports','engines','160765PUXwSq','apply','startup','service','50dDQvTn','208uZMGRD','7yRxvTR','logger','lib','constructor','create','svc','resourceName','(((.+)+)+)+$','536448YwKPKi'];a138c=function(){return p;};return a138c();}function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x12e;let f=c[d];return f;},a138d(a,b);}const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a['toString']()['search']('(((.+)+)+)+$')[l(0x149)]()[l(0x13f)](a138a)[l(0x14e)](l(0x143));});a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a138m(0x140)]({'name':a138m(0x139),'aliases':[a138m(0x141)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a138m(0x131),'requiredOpts':[{'name':a138m(0x150),'values':[a138m(0x13d)]}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a138m;try{const c=this[n(0x132)][n(0x152)]();await this[n(0x132)]['withValue'](c,async()=>{const o=n,d=this['fsi'][o(0x14b)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x142)]),'fileName':f,'camelCase':camelCase(b[o(0x142)]),'type':b['type'],'engine':c[o(0x135)]['js'],'noRename':!![]};let h='js';c[o(0x135)]['js']==='tsx'&&(h='ts');if(b[o(0x150)]==='logger'){!this[o(0x132)][o(0x146)]('winston')&&await this[o(0x132)][o(0x14f)](o(0x12f),{'cwd':d,'msg':o(0x130)});const i=this['fsi'][o(0x14b)]({'pathParts':[o(0x134),o(0x138),o(0x13e),o(0x145),f+'.'+h]});await this[o(0x132)]['template']({'srcPath':o(0x14d),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x148)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(0xb3))/0x1*(-parseInt(f(0xb2))/0x2)+parseInt(f(0xb0))/0x3+parseInt(f(0xad))/0x4+-parseInt(f(0xaa))/0x5*(parseInt(f(0xb5))/0x6)+-parseInt(f(0xb6))/0x7+-parseInt(f(0xae))/0x8+-parseInt(f(0xac))/0x9*(-parseInt(f(0xab))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xea30b));function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xa9;var f=c[d];return f;},a139d(a,b);}var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xb4)]()[h(0xa9)](h(0xaf))[h(0xb4)]()['constructor'](a139a)[h(0xa9)]('(((.+)+)+)+$');});a139a();import'./translation.js';import'./openssl.js';function a139c(){var i=['6094936lYeUdo','3083040JmNohU','(((.+)+)+)+$','2520018upvdjw','apply','46zWXkeS','22859OPKPas','toString','6DuDAPG','3080098yKItWC','search','5196935AcYfsc','70WoaVqP','1267767NUaPOO'];a139c=function(){return i;};return a139c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d
|
|
1
|
+
const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=parseInt(i(0xc1))/0x1+parseInt(i(0xb6))/0x2+parseInt(i(0xb4))/0x3+parseInt(i(0xca))/0x4+parseInt(i(0xb8))/0x5*(parseInt(i(0xb9))/0x6)+-parseInt(i(0xc5))/0x7+-parseInt(i(0xbe))/0x8*(parseInt(i(0xc9))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x8ad42));function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0xb0;let f=c[d];return f;},a140d(a,b);}const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0xc4)]()[k(0xb0)](k(0xb2))[k(0xc4)]()[k(0xc3)](a140a)['search']('(((.+)+)+)+$');});a140a();import{Generator}from'../../generator.js';function a140c(){const o=['846838bWSlNv','error','2210vRlcIr','12498keKOsL','join','apply','sslconfig','Generate\x20a\x20new\x20openssl\x20config\x20file','28416dAHJxC','fsi','getAppConfigPath','309786fdslRh','maka\x20{generate,\x20g}:sslconfig','constructor','toString','4815909oGZfGO','create','_keys','env','5877zoZgmD','3550456kOBFzj','search','openssl/openssl.conf','(((.+)+)+)+$','getMakaProjectConfig','3103740UOjAZP','maka\x20g:sslconfig\x20--env\x20dev'];a140c=function(){return o;};return a140c();}import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator[a140l(0xc6)]({'name':a140l(0xbc),'usage':a140l(0xc2),'shortDesc':a140l(0xbd),'noNeedResource':!![],'requiredOpts':[a140l(0xc8)],'examples':[a140l(0xb5)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0xbf)][m(0xb3)](),d=await this['fsi']['getGlobalConfig'](),f=this[m(0xbf)][m(0xc0)](b[m(0xc8)]),g=a140e[m(0xba)](f,m(0xc7),'openssl.conf');await this['fsi']['withValue'](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0xbf)]['template']({'srcPath':n(0xb1),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0xb7)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141A=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0xb1))/0x1*(parseInt(x(0x92))/0x2)+parseInt(x(0xaf))/0x3*(parseInt(x(0x94))/0x4)+parseInt(x(0x84))/0x5*(parseInt(x(0x8e))/0x6)+parseInt(x(0x83))/0x7+-parseInt(x(0x9e))/0x8+parseInt(x(0xb6))/0x9*(-parseInt(x(0x9d))/0xa)+-parseInt(x(0x93))/0xb*(parseInt(x(0xb9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x6c79c));function a141c(){const D=['Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','services','imports','pathFromApp','lang','maka\x20{generate,\x20g}:translation','locales','translation','root','i18n/index.js','getMakaProjectConfig','search','Locale\x20already\x20exported:\x20','startup','3670051SUNbbA','5XKDzgE','toString','checkNpmPackage','isFile','client','features.withTranslations','fsi','import\x20\x27../lib/services/translations/i18n\x27;\x0a','readFileSync','i18next\x20i18next-browser-languagedetector\x20react-i18next','2539464kVyVbm','setProjectConfig','ssr','maka\x20g:translation\x20--lang=en\x20(default)','2AOknog','33kzUksJ','1720tdpEKQ','create','findAppDirectory','engines','Generate\x20a\x20new\x20locale\x20translation','default\x20as\x20','injectAtEndOfFile','i18n.js','index.js','3486430WpfOlI','888024JdxYeK','maka\x20g:translation\x20--lang=de','rewriteDestinationPathForEngine','.js','error','injectAtBeginningOfFile','import\x20\x27../lib/services/translations/i18n\x27;','server','withValue','service','index.','export\x20{\x20default\x20as\x20','exit','i18n/locales.js','translations','constructor','apply','2598igzdWx','template','330806eiIKQP','Locale\x20already\x20defined:\x20','grep','(((.+)+)+)+$','true','9GjwBej','appName','warn','340596UPeOHm','lib'];a141c=function(){return D;};return a141c();}const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a141d;if(c){const e=c[y(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const z=a141d;return a141a[z(0x85)]()[z(0xc6)](z(0xb4))[z(0x85)]()[z(0xad)](a141a)[z(0xc6)]('(((.+)+)+)+$');});a141a();function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x81;let f=c[d];return f;},a141d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';Generator[a141A(0x95)]({'name':a141A(0xc2),'usage':a141A(0xc0),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141A(0xbf),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141A(0x98),'description':'\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','examples':[a141A(0x91),'maka\x20g:translation\x20--lang=fr',a141A(0x9f)],'validOpts':[]},async function(a,b){const B=a141A;try{const c=this[B(0x8a)][B(0xc5)](),d=this[B(0x8a)]['getGlobalConfig'](),f=this[B(0x8a)][B(0x96)]();await this[B(0x8a)][B(0xa6)](c,async()=>{const C=B;try{!b[C(0xbf)]&&(b[C(0xbf)]='en');!b[C(0xc3)]&&!this[C(0x8a)][C(0x86)]('i18next')&&(Log[C(0xb8)](C(0xbb)),this[C(0x8a)]['installNpmPackage'](C(0x8d),{'cwd':f}),this[C(0x8a)][C(0x8f)](C(0x89),!![]));const g=this[C(0x8a)][C(0xbe)]({'pathParts':[C(0xbd),C(0x82),C(0x88),C(0x9c)]}),h=this[C(0x8a)][C(0xa0)]({'pathParts':[g],'config':c}),i=this[C(0x8a)][C(0xb3)](a141e[C(0x8c)](h)[C(0x85)](),C(0xa4))[0x0]&&!![];if(c[C(0x97)][C(0x90)]===C(0xb5)){!i&&this['fsi']['injectAtBeginningOfFile']({'filePath':h,'content':C(0x8b)});const t=this[C(0x8a)][C(0xbe)]({'pathParts':['imports',C(0x82),C(0xa5),C(0x9c)]}),u=this[C(0x8a)][C(0xa0)]({'pathParts':[t],'config':c}),v=this[C(0x8a)][C(0xb3)](a141e[C(0x8c)](u)[C(0x85)](),C(0xa4))[0x0]&&!![];!v&&this['fsi'][C(0xa3)]({'filePath':u,'content':C(0x8b)});}else!i&&this[C(0x8a)][C(0xa3)]({'filePath':h,'content':C(0x8b)});const j={'app':d[C(0xb7)],'config':c},k=this['fsi'][C(0xbe)]({'pathParts':[C(0xbd),C(0x82),C(0xba),C(0xbc),C(0xac),C(0x9b)]}),l=this[C(0x8a)][C(0x87)](this[C(0x8a)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[C(0x8a)]['template']({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0xa7),'context':j,'config':c});const m=this[C(0x8a)][C(0xbe)]({'pathParts':[C(0xbd),C(0x82),C(0xba),C(0xbc),C(0xac),C(0xc1),b[C(0xbf)]+C(0xa1)]}),n=this[C(0x8a)][C(0xa0)]({'pathParts':[m],'config':c}),o=this[C(0x8a)]['isFile'](n);!o?await this[C(0x8a)][C(0xb0)]({'srcPath':C(0xab),'destPath':m,'framework':C(0xa7),'context':j,'config':c}):Log['warn'](C(0xb2)+n);const p=this[C(0x8a)]['pathFromApp']({'pathParts':['imports',C(0x82),C(0xba),C(0xbc),C(0xac),C(0xc1),C(0xa8)+c[C(0x97)]['js']]}),q=this['fsi'][C(0xa0)]({'pathParts':[p],'config':c}),r=this[C(0x8a)][C(0x87)](q);!r&&await this[C(0x8a)][C(0xb0)]({'srcPath':C(0xc4),'destPath':p,'framework':C(0xa7),'context':j,'config':c});const s=this[C(0x8a)][C(0xb3)](a141e[C(0x8c)](p)[C(0x85)](),C(0x99)+b[C(0xbf)])[0x0]&&!![];!s?await this[C(0x8a)][C(0x9a)]({'filePath':p,'content':C(0xa9)+b[C(0xbf)]+'\x20}\x20from\x20\x27./'+b[C(0xbf)]+'\x27;'}):Log[C(0xb8)](C(0x81)+p);}catch(w){Log[C(0xa2)](w),process[C(0xaa)](0x1);}});}catch(g){Log[B(0xa2)](g),process[B(0xaa)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a142c(){const n=['(((.+)+)+)+$','8VCnGmy','14601213qLVbjH','36TXRsKG','BROWSERSLIST_IGNORE_OLD_DATA','TOOL_NODE_FLAGS','40AyMPXA','4562YwDnxb','511WYjgGv','apply','run','toString','--max-old-space-size=','NODE_NO_WARNINGS','10052900BCipnH','camelizeKeys','3666005pzFAXG','2044062ADqCVh','6XOqGda','stringify','env','url','floor','1099371yrfJpS','7332105hEfLKC','constructor','parse'];a142c=function(){return n;};return a142c();}const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x1f8))/0x1*(parseInt(j(0x1f7))/0x2)+parseInt(j(0x201))/0x3*(parseInt(j(0x20c))/0x4)+parseInt(j(0x200))/0x5*(-parseInt(j(0x202))/0x6)+-parseInt(j(0x207))/0x7*(-parseInt(j(0x1f6))/0x8)+parseInt(j(0x20d))/0x9+parseInt(j(0x1fe))/0xa+-parseInt(j(0x208))/0xb*(parseInt(j(0x1f3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xd626b));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a['toString']()['search'](l(0x20b))[l(0x1fb)]()[l(0x209)](a142a)['search'](l(0x20b));});a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a142d(a,b);}import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a142m(0x205)]),__dirname=a142g['dirname'](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a142f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0x206)](total_mem_in_mb),process[a142m(0x204)][a142m(0x1f5)]=a142m(0x1fc)+total_mem_in_mb,process['env'][a142m(0x1f4)]='1',process[a142m(0x204)][a142m(0x1fd)]='1';const argv=a142e(process['argv']['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0x20a)](JSON[a142m(0x203)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0x1ff)](deepCopyArgv);a142i[a142m(0x1fa)](args,opts);
|
|
@@ -37,12 +37,13 @@ const client = new ApolloClient({
|
|
|
37
37
|
dataIdFromObject: o => {o.id ? `${o.__typename}-${o.id}`: `${o.__typename}-${o.cursor}`},
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
|
-
<% } %><% if (config.engines.theme === 'material') {
|
|
40
|
+
<% } %><% if (config.engines.theme === 'material') {
|
|
41
|
+
import CssBaseline from '@mui/material/CssBaseline'; if (config.engines.ssr === 'true') { %>
|
|
41
42
|
import { ThemeProvider } from '@mui/material/styles';
|
|
43
|
+
import CssBaseline from '@mui/material/CssBaseline';
|
|
42
44
|
import { theme } from '../lib/index';<% } else { %>
|
|
43
45
|
// Material UI Theme config using default mui.
|
|
44
46
|
import { ThemeProvider, createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
45
|
-
import CssBaseline from '@mui/material/CssBaseline';
|
|
46
47
|
// https://mui.com/material-ui/customization/default-theme/
|
|
47
48
|
const newTheme = createTheme({
|
|
48
49
|
typography: {
|
|
@@ -64,7 +65,7 @@ const theme = responsiveFontSizes(newTheme);<% }} %>
|
|
|
64
65
|
import { BrowserRouter } from 'react-router-dom'
|
|
65
66
|
import { onPageLoad } from "meteor/server-render";
|
|
66
67
|
<% } %>
|
|
67
|
-
<% if (config.engines.ssr === 'true') { %>import
|
|
68
|
+
<% if (config.engines.ssr === 'true') { %>import AppRoutes from '../lib/routes';<% } else { %>import AppRoutes from './routes';<% } %>
|
|
68
69
|
|
|
69
70
|
const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
70
71
|
<BrowserRouter><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
@@ -72,7 +73,7 @@ const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
|
72
73
|
<ApolloHooksProvider client={client}><% } %><% if (config.engines.theme === 'material') { %>
|
|
73
74
|
<ThemeProvider theme={theme}>
|
|
74
75
|
<CssBaseline /><% } %>
|
|
75
|
-
<
|
|
76
|
+
<AppRoutes history={browserHistory}/><% if (config.engines.theme === 'material') { %>
|
|
76
77
|
</ThemeProvider><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
77
78
|
</ApolloHooksProvider>
|
|
78
79
|
</ApolloProvider><% } %><% if (config.engines.ssr === 'true') { %>
|
|
@@ -37,13 +37,14 @@ const client = new ApolloClient({
|
|
|
37
37
|
dataIdFromObject: o => {o.id ? `${o.__typename}-${o.id}`: `${o.__typename}-${o.cursor}`},
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
|
-
<% } %><% if (config.engines.theme === 'material') {
|
|
40
|
+
<% } %><% if (config.engines.theme === 'material') {
|
|
41
|
+
import CssBaseline from '@mui/material/CssBaseline'; if (config.engines.ssr === 'true') { %>
|
|
41
42
|
import { ThemeProvider } from '@mui/material/styles';
|
|
43
|
+
import CssBaseline from '@mui/material/CssBaseline';
|
|
42
44
|
import { theme } from '../lib/index';<% } else { %>
|
|
43
45
|
// Material UI Theme config using default mui.
|
|
44
46
|
// https://mui.com/material-ui/customization/default-theme/
|
|
45
47
|
import { ThemeProvider, createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
46
|
-
import CssBaseline from '@mui/material/CssBaseline';
|
|
47
48
|
// https://mui.com/material-ui/customization/default-theme/
|
|
48
49
|
const newTheme = createTheme({
|
|
49
50
|
typography: {
|
|
@@ -65,7 +66,7 @@ const theme = responsiveFontSizes(newTheme);<% }} %>
|
|
|
65
66
|
import { BrowserRouter } from 'react-router-dom'
|
|
66
67
|
import { onPageLoad } from "meteor/server-render";
|
|
67
68
|
<% } %>
|
|
68
|
-
<% if (config.engines.ssr === 'true') { %>import
|
|
69
|
+
<% if (config.engines.ssr === 'true') { %>import AppRoutes from '../lib/routes';<% } else { %>import AppRoutes from './routes';<% } %>
|
|
69
70
|
|
|
70
71
|
const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
71
72
|
<BrowserRouter><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
@@ -73,7 +74,7 @@ const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
|
73
74
|
<ApolloHooksProvider client={client}><% } %><% if (config.engines.theme === 'material') { %>
|
|
74
75
|
<ThemeProvider theme={theme}>
|
|
75
76
|
<CssBaseline /><% } %>
|
|
76
|
-
<
|
|
77
|
+
<AppRoutes history={browserHistory}/><% if (config.engines.theme === 'material') { %>
|
|
77
78
|
</ThemeProvider><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
78
79
|
</ApolloHooksProvider>
|
|
79
80
|
</ApolloProvider><% } %><% if (config.engines.ssr === 'true') { %>
|
|
@@ -1,49 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Router, Route,
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The React Router client side routing definitions.
|
|
6
|
-
* @namespace Client.Routes
|
|
7
|
-
* @desc This is the main definition for the react router.
|
|
8
|
-
*/
|
|
9
|
-
|
|
2
|
+
import { BrowserRouter as Router, Routes, Route, Navigate, Outlet } from 'react-router-dom';
|
|
10
3
|
import * as Component from './templates';
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<Router history={ history }>
|
|
35
|
-
{privateRoutes}
|
|
36
|
-
{publicRoutes}
|
|
37
|
-
</Router>
|
|
38
|
-
);
|
|
39
|
-
const PublicRoutes = ({ history }) => (
|
|
40
|
-
<Router history={ history }>
|
|
41
|
-
{publicRoutes}
|
|
5
|
+
// Dummy authentication function
|
|
6
|
+
const useAuth = () => {
|
|
7
|
+
const user = { loggedIn: false }; // Toggle `loggedIn` to simulate auth status
|
|
8
|
+
return { user };
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// Private route wrapper
|
|
12
|
+
const PrivateRoute = () => {
|
|
13
|
+
const { user } = useAuth();
|
|
14
|
+
return user.loggedIn ? <Outlet/> : <Navigate to="/login" />;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const AppRoutes = () => (
|
|
18
|
+
<Router>
|
|
19
|
+
<Routes>
|
|
20
|
+
<Route path="/" element={<Component.MainLayout />}>
|
|
21
|
+
<Route index element={<Component.Home />} />
|
|
22
|
+
<Route path="*" element={<Component.NotFound />} />
|
|
23
|
+
<Route element={<PrivateRoute />}>
|
|
24
|
+
</Route>
|
|
25
|
+
</Route>
|
|
26
|
+
</Routes>
|
|
42
27
|
</Router>
|
|
43
28
|
);
|
|
44
|
-
const Routes = ({ history }) => {
|
|
45
|
-
let currentUser = null;
|
|
46
|
-
return (currentUser) ? <PrivateRoutes history={history}/> : <PublicRoutes history={history}/>
|
|
47
|
-
}
|
|
48
29
|
|
|
49
|
-
export default
|
|
30
|
+
export default AppRoutes;
|
|
@@ -1,49 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Router, Route,
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The React Router client side routing definitions.
|
|
6
|
-
* @namespace Client.Routes
|
|
7
|
-
* @desc This is the main definition for the react router.
|
|
8
|
-
*/
|
|
9
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BrowserRouter as Router, Routes, Route, Navigate, Outlet } from 'react-router-dom';
|
|
10
3
|
import * as Component from './templates';
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<Router history={ history }>
|
|
35
|
-
{privateRoutes}
|
|
36
|
-
{publicRoutes}
|
|
37
|
-
</Router>
|
|
38
|
-
);
|
|
39
|
-
const PublicRoutes = ({ history }) => (
|
|
40
|
-
<Router history={ history }>
|
|
41
|
-
{publicRoutes}
|
|
5
|
+
// Dummy authentication function
|
|
6
|
+
const useAuth = () => {
|
|
7
|
+
const user = { loggedIn: false }; // Toggle `loggedIn` to simulate auth status
|
|
8
|
+
return { user };
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// Private route wrapper
|
|
12
|
+
const PrivateRoute = () => {
|
|
13
|
+
const { user } = useAuth();
|
|
14
|
+
return user.loggedIn ? <Outlet/> : <Navigate to="/login" />;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const AppRoutes = () => (
|
|
18
|
+
<Router>
|
|
19
|
+
<Routes>
|
|
20
|
+
<Route path="/" element={<Component.MainLayout />}>
|
|
21
|
+
<Route index element={<Component.Home />} />
|
|
22
|
+
<Route path="*" element={<Component.NotFound />} />
|
|
23
|
+
<Route element={<PrivateRoute />}>
|
|
24
|
+
</Route>
|
|
25
|
+
</Route>
|
|
26
|
+
</Routes>
|
|
42
27
|
</Router>
|
|
43
28
|
);
|
|
44
|
-
const Routes = ({ history }) => {
|
|
45
|
-
let currentUser = null;
|
|
46
|
-
return (currentUser) ? <PrivateRoutes history={history}/> : <PublicRoutes history={history}/>
|
|
47
|
-
}
|
|
48
29
|
|
|
49
|
-
export default
|
|
30
|
+
export default AppRoutes;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @namespace Common */<% if (config.engines.theme === 'material' && config.engines.ssr === 'true') { %>
|
|
2
2
|
// Material UI Theme config using roboto typefont and default mui.
|
|
3
3
|
import { createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
4
|
-
import CssBaseline from '@mui/material/CssBaseline';
|
|
5
4
|
// https://mui.com/material-ui/customization/default-theme/
|
|
6
5
|
const newTheme = createTheme({
|
|
7
6
|
typography: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @namespace Common */<% if (config.engines.theme === 'material' && config.engines.ssr === 'true') { %>
|
|
2
2
|
// Material UI Theme config using roboto typefont and default mui.
|
|
3
3
|
import { createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
4
|
-
import CssBaseline from '@mui/material/CssBaseline';
|
|
5
4
|
// https://mui.com/material-ui/customization/default-theme/
|
|
6
5
|
const newTheme = createTheme({
|
|
7
6
|
typography: {
|