@maka/maka-cli 5.0.22 → 5.0.25
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 +53 -55
- 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/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 +6 -6
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +6 -6
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +8 -10
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +8 -10
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +1 -1
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +56 -56
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +2 -2
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +2 -2
- package/bundle/obf/src/templates/react/kit/auth/service/meteor-auth-service.js.jsx +2 -2
- 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/cfg/cfg.class.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/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.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/eslint.config.js +19 -0
- package/package.json +53 -55
- package/maka-tar-6.2.1.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const a132n=a132d;
|
|
1
|
+
const a132n=a132d;(function(a,b){const k=a132d,c=a();while(!![]){try{const d=parseInt(k(0xf5))/0x1+parseInt(k(0xfb))/0x2*(parseInt(k(0xfd))/0x3)+-parseInt(k(0x10c))/0x4*(-parseInt(k(0x101))/0x5)+-parseInt(k(0xf4))/0x6*(-parseInt(k(0x106))/0x7)+-parseInt(k(0x103))/0x8*(parseInt(k(0xfa))/0x9)+-parseInt(k(0x10f))/0xa*(parseInt(k(0x115))/0xb)+-parseInt(k(0x111))/0xc*(parseInt(k(0x108))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x3f483));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a132d;if(c){const e=c[l(0xf8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const m=a132d;return a132a[m(0x100)]()[m(0x104)](m(0x10b))[m(0x100)]()[m(0xfe)](a132a)[m(0x104)](m(0x10b));});a132a();import{Generator}from'../generator.js';function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0xf0;let f=c[d];return f;},a132d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a132n(0xf0)]({'name':a132n(0x113),'aliases':['m'],'usage':a132n(0x105),'checkWhere':!![],'shortDesc':a132n(0x107),'validOpts':['dir'],'examples':[a132n(0xf9)]},async function(a,b){const o=a132n;try{const c=this[o(0x114)],d=b[o(0x112)]?'/'+b['dir']+'/':'/',f=kebabCase(b['resourceName']),g={'name':b[o(0x10d)],'fileName':f,'className':pascalCase(b[o(0x10d)]),'camelCase':camelCase(b[o(0x10d)]),'noRename':!![]};let h='js';c[o(0x10a)]['js']==='tsx'&&(h='ts');await this[o(0xff)][o(0x118)]([o(0xf6),'ddp-rate-limiter',o(0xf3)],{'shouldInstall':!![]}),await this['scaffold']['template']({'srcPath':o(0x102),'destPath':this['scaffold']['pathFromApp']({'pathParts':[o(0xf2),'startup',b[o(0x117)],o(0x109),d,f+'-rpc-method.'+h]}),'context':g,'config':c});const i=this['scaffold'][o(0x10e)]({'pathParts':[o(0xf2),o(0xf7),b['appPathPrefix'],o(0xfc)+c[o(0x10a)]['js']]});await this['scaffold'][o(0xf1)]({'filePath':i,'content':o(0x110)+d+f+'-rpc-method\x27;'});}catch(j){Log[o(0x116)](j);}});function a132c(){const p=['3830387MvVejk','error','appPathPrefix','checkMeteorPackage','create','injectAtEndOfFile','imports','mdg:validated-method','12EyniuP','339451ySyfeE','maka:check','startup','apply','maka\x20g:method\x20todos','54iWvhAi','8516hBLGnz','index.','312AOeGaR','constructor','pkg','toString','5jYLdTc','method/method.js','214720DltuZy','search','maka\x20{generate,\x20g}:{method,\x20m}\x20name','1622922eqbkna','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','8762923GdBORt','methods','engines','(((.+)+)+)+$','786224WfEedP','resourceName','pathFromApp','10BLXwQD','import\x20\x27./methods','12IEsGsi','dir','method','projectConfig'];a132c=function(){return p;};return a132c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a133p=a133d;
|
|
1
|
+
const a133p=a133d;(function(a,b){const m=a133d,c=a();while(!![]){try{const d=parseInt(m(0xa8))/0x1+parseInt(m(0xa5))/0x2*(parseInt(m(0x94))/0x3)+-parseInt(m(0x9f))/0x4+-parseInt(m(0x98))/0x5+parseInt(m(0xaf))/0x6+-parseInt(m(0x9c))/0x7*(parseInt(m(0x9a))/0x8)+parseInt(m(0xb6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x1b183));function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x91;let f=c[d];return f;},a133d(a,b);}const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a133d;if(c){const e=c[n(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const o=a133d;return a133a['toString']()['search'](o(0xba))[o(0xa3)]()['constructor'](a133a)['search'](o(0xba));});function a133c(){const r=['package','resourceName','855420ykgdLH','store','fsi','lib','toString','template/template.js','4BWuuXo','relative','package/','69907QskFNv','server','ssr','/client/','.js','dir','maka\x20g:package\x20todos:package','1001388aWBGgt','client','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','features','hasOwnProperty','apply','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','2337003FRaGyz','theme','package.js','template','(((.+)+)+)+$','graphql','engines','scaffold','findProjectDirectory','component','49935ZpyItN','create','projectConfig','packages','911645OTquGc','pathFromApp','60264oIJZCv','tests/client','21GnzXqE'];a133c=function(){return r;};return a133c();}a133a();import a133e from'path';import{Generator}from'../generator.js';import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a133p(0x95)]({'name':a133p(0x9d),'aliases':['p'],'usage':a133p(0xb5),'shortDesc':a133p(0xb1),'validOpts':[a133p(0xad)],'examples':[a133p(0xae)]},async function(a,b){const q=a133p,c=kebabCase(b[q(0x9e)]),d=b[q(0xad)]?'/'+b[q(0xad)]+'/':'/',e=this[q(0x91)][q(0x99)]({'pathParts':[q(0x97),d,c]}),f=this[q(0x91)]['pathFromAppWithNoReWrite']({'pathParts':['packages',d,c,q(0xb8)]}),g=this[q(0x96)],h={'name':kebabCase(b['resourceName']),'myPath':a133e[q(0xa6)](this[q(0xa1)][q(0x92)](),e),'cssCaseName':kebabCase(b[q(0x9e)]),'className':pascalCase(b[q(0x9e)]),'camelCaseName':camelCase(b[q(0x9e)]),'fileName':c,'client':g[q(0xbc)][q(0xb0)],'graphql':g[q(0xbc)][q(0xbb)],'ssr':g['engines'][q(0xaa)],'isComponent':b[q(0xb3)](q(0x93)),'isLayout':b[q(0xb3)]('layout'),'isStore':b['hasOwnProperty'](q(0xa0)),'features':g[q(0xb2)],'noRename':!![],'theme':g[q(0xbc)][q(0xb7)]};await this['scaffold'][q(0xb9)]({'srcPath':'package/package.js','destPath':f,'context':h,'config':g}),h['noRename']=![];const i=e+q(0xab)+c+'.js';await this[q(0x91)][q(0xb9)]({'srcPath':q(0xa4),'destPath':i,'context':h,'config':g});const j=[q(0xa2),q(0xa9),q(0x9b),'tests/server'];for(const k of j){const l=e+'/'+k+'/'+c+q(0xac);await this[q(0x91)][q(0xb9)]({'srcPath':q(0xa7)+k+'/package.js','destPath':l,'context':h,'config':g});}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a134u=a134d;(function(a,b){const r=a134d,c=a();while(!![]){try{const d=parseInt(r(0x1ec))/0x1*(parseInt(r(0x21b))/0x2)+parseInt(r(0x21a))/0x3*(-parseInt(r(0x1e8))/0x4)+parseInt(r(0x216))/0x5+-parseInt(r(0x1f7))/0x6*(-parseInt(r(0x1d6))/0x7)+-parseInt(r(0x201))/0x8*(parseInt(r(0x1ed))/0x9)+-parseInt(r(0x212))/0xa+parseInt(r(0x211))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x98977));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a134d;if(c){const e=c[s(0x20d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const t=a134d;return a134a['toString']()['search'](t(0x1f8))[t(0x1e9)]()[t(0x1fb)](a134a)[t(0x1e6)](t(0x1f8));});a134a();import a134e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,kebabCase,pascalCase}from'change-case';const aliases=['p'];function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a134d(a,b);}function a134c(){const w=['3kozsYu','48vxoofX','scaffold','pkg','ssr','fsi','<Route\x20path=\x22*\x22','features','dir','.html','error','.js','html','findProjectDirectory','page','1198904TiIjpb','/>}/>\x0a','/imports/ui/pages','import\x20\x27./','resourceName','warn','root','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','cfg','injectAtBeginningOfFile','react','split','findAppDirectory','meteor','component/component.js','installNpmPackage','search','endsWith','2968928ouNIRA','toString','lib','url','37574xDWWJB','1044azDSGJ','trim','startup','component','\x22\x20element={<Component.','replace','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','hook/hook.js','ramda','includes','30fVpjld','(((.+)+)+)+$','relative','hasOwnProperty','constructor','engines','injectIntoFile','indexOf','private','toLowerCase','52024BCiWuM','fileName','projectConfig','css','store','string','test/test.js','replaceAll','vanilla','slice','\x27;\x0a','imports','apply','substring','setTemplate','client','14021469FZUmGF','9148140Gtzpqy','</Route>','<Route\x20path=\x22','join','17970DYGWST','test','template','.css'];a134c=function(){return w;};return a134c();}Generator['create']({'name':a134u(0x1d5),'aliases':aliases,'usage':a134u(0x1dd),'shortDesc':'Generate\x20a\x20page.','mustBeInMakaProject':!![],'validOpts':[{'name':a134u(0x1ff),'boolFlag':!![]},{'name':a134u(0x1eb)}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const v=a134u,c=v(0x1d8),d=this[v(0x21f)][v(0x1e2)](),e=b['resourceName'][v(0x1f6)](':')?b['resourceName'][v(0x1e1)](':')[0x0][v(0x1ee)]():b[v(0x1da)][v(0x1ee)](),f=b['dir'][v(0x208)]('/','_')+'_'+e[v(0x208)]('/','_'),g=this[v(0x21c)]['pathFromApp']({'pathParts':[c,b[v(0x222)],kebabCase(f),kebabCase(f)]}),h=this[v(0x203)];let i='';typeof h[v(0x218)][v(0x226)]==='string'&&this[v(0x1de)][v(0x20f)](v(0x226),h[v(0x218)][v(0x226)]);typeof h[v(0x218)][v(0x217)]===v(0x206)&&this[v(0x1de)][v(0x20f)]('test',h[v(0x218)][v(0x217)]);typeof h['template'][v(0x204)]===v(0x206)&&this[v(0x1de)]['setTemplate'](v(0x204),h[v(0x218)]['css']);typeof h[v(0x218)]['js']===v(0x206)&&this[v(0x1de)][v(0x20f)]('js',h[v(0x218)]['js']);!b[v(0x1dc)]&&!this[v(0x21d)]['checkNpmPackage'](v(0x1f5))&&(Log[v(0x1db)]('Updating\x20npm\x20packages\x20...'),this['pkg'][v(0x1e5)]('ramda',{'cwd':d}));const j={'name':pascalCase(f),'myPath':a134e[v(0x1f9)](this[v(0x21f)][v(0x1d4)](),g),'cssCaseName':kebabCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':kebabCase(f),'graphql':h[v(0x1fc)]['graphql'],'features':h[v(0x221)],'client':h[v(0x1fc)][v(0x210)],'api':h['engines']['api'],'ssr':h[v(0x1fc)][v(0x21e)],'isStore':b['hasOwnProperty'](v(0x205)),'isComponent':b[v(0x1fa)](v(0x1f0)),'isLayout':b[v(0x1fa)]('layout'),'withTranslations':h[v(0x221)]['withTranslations'],'test':h[v(0x1fc)]['test'],'theme':h['engines']['theme']};h['template'][v(0x226)]&&await this[v(0x21c)][v(0x218)]({'srcPath':'template/template.html','destPath':g+v(0x223),'context':j,'config':h});h[v(0x221)]?.['withHooks']?await this['scaffold'][v(0x218)]({'srcPath':v(0x1f4),'destPath':g+v(0x225),'framework':v(0x1e0),'context':j,'config':h}):await this['scaffold'][v(0x218)]({'srcPath':v(0x1e4),'destPath':g+'.js','framework':v(0x1e0),'context':j,'config':h});h[v(0x1fc)][v(0x217)]!=='none'&&await this[v(0x21c)]['template']({'srcPath':v(0x207),'destPath':g+'.app-tests.js','framework':'react','context':j,'config':h});h[v(0x218)][v(0x204)]&&await this[v(0x21c)][v(0x218)]({'srcPath':'template/template.css','destPath':g+v(0x219),'context':Object['assign']({},j,{'className':kebabCase(b[v(0x1da)])}),'config':h});h[v(0x1fc)]['client']!==v(0x1e0)&&h[v(0x1fc)][v(0x210)]!==v(0x209)?(h[v(0x218)][v(0x204)]&&await this[v(0x21c)][v(0x1df)]({'filePath':g+'.'+h[v(0x1fc)]['js'],'content':v(0x1d9)+j[v(0x202)]+'.'+h[v(0x1fc)][v(0x226)]+v(0x20b)+'import\x20\x27./'+j[v(0x202)]+'.'+h[v(0x1fc)]['css']+'\x27;'}),!h[v(0x218)]['css']&&await this[v(0x21c)][v(0x1df)]({'filePath':g+'.'+h[v(0x1fc)]['js'],'content':'import\x20\x27./'+j[v(0x202)]+'.'+h[v(0x1fc)][v(0x226)]+'\x27;'})):h[v(0x218)][v(0x204)]&&await this[v(0x21c)][v(0x1df)]({'filePath':g+'.'+h[v(0x1fc)]['js'],'content':v(0x1d9)+j[v(0x202)]+'.'+h['engines'][v(0x204)]+'\x27;'});const k=b[v(0x222)]?'/'+b[v(0x222)]+'/':'/';i=''+c+k+j['fileName']+'/'+j[v(0x202)],await this[v(0x21c)]['injectTemplateModule'](j['className'],h,i);if(!b[v(0x1dc)]){const l=b[v(0x1ff)]??![];if(!f){Log[v(0x224)](v(0x1f3));throw new UsageError();}let m=b[v(0x1eb)]?b[v(0x1eb)]:'/'+b[v(0x222)][v(0x1ee)]()+'/'+b[v(0x1da)][v(0x1ee)]()[v(0x1f2)](/\\/g,'/')['replace'](/\/+$/,'')[v(0x200)]();const n=b[v(0x1da)][v(0x1fe)](':');n!==-0x1&&(m+='/'+b[v(0x1da)][v(0x20e)](0x0,n)[v(0x1ee)]());m[v(0x1e7)]('/')&&(m=m[v(0x20a)](0x0,-0x1));m=m['replace'](/\/\//g,'/');const o=h[v(0x1fc)]['js'],p=h[v(0x1fc)][v(0x21e)]===v(0x1e3)?v(0x1ea):v(0x210),q=a134e[v(0x215)](d,v(0x20c),v(0x1ef),p,'routes.'+o);l?await this['scaffold'][v(0x1fd)]({'filePath':q,'content':v(0x214)+m+v(0x1f1)+pascalCase(f)+v(0x1d7),'begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':[v(0x213)]}):await this[v(0x21c)][v(0x1fd)]({'filePath':q,'content':'<Route\x20path=\x22'+m+v(0x1f1)+pascalCase(f)+'/>}/>\x0a','begin':['<Route\x20index'],'end':[v(0x220)]});}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a135r=a135d;function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0xbd;let f=c[d];return f;},a135d(a,b);}(function(a,b){const o=a135d,c=a();while(!![]){try{const d=parseInt(o(0xbf))/0x1*(-parseInt(o(0xcb))/0x2)+-parseInt(o(0xd3))/0x3*(-parseInt(o(0xd0))/0x4)+-parseInt(o(0xce))/0x5+-parseInt(o(0xc4))/0x6*(parseInt(o(0xc6))/0x7)+-parseInt(o(0xc2))/0x8*(-parseInt(o(0xde))/0x9)+-parseInt(o(0xc0))/0xa*(-parseInt(o(0xc8))/0xb)+-parseInt(o(0xd8))/0xc*(parseInt(o(0xbe))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x4b39c));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a135d;if(c){const e=c[p(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const q=a135d;return a135a['toString']()[q(0xd6)](q(0xd1))[q(0xe3)]()[q(0xcf)](a135a)[q(0xd6)](q(0xd1));});function a135c(){const t=['1510797OJwKdE','publish/publish.js','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','search','import\x20\x27./publications','36dpkBhG','resourceName','globalPublish','tsx','exit','injectAtEndOfFile','4022037MVQxop','apply','/imports/startup/server/publications','create','engines','toString','pathFromApp','1576653XHFCCR','3bzJXef','5151910uREfFO','force','8eUpYYt','publish','6PJrCPj','server','3944213aEcYbD','template','11CqFZik','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','appPathPrefix','35426EaisiK','maka\x20g:publish\x20todos','dir','885590JRIQaM','constructor','4ZrAmVg','(((.+)+)+)+$','startup'];a135c=function(){return t;};return a135c();}a135a();import{kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a135r(0xe1)]({'name':a135r(0xc3),'aliases':['p'],'usage':a135r(0xd5),'shortDesc':a135r(0xc9),'validOpts':[a135r(0xc1)],'requiredOpts':[a135r(0xda)],'mustBeInMakaProject':!![],'examples':[a135r(0xcc)]},async function(a,b){const s=a135r;try{const {projectConfig:c,scaffold:d}=this,f=b[s(0xc1)]||![],g=s(0xe0),h=kebabCase(b[s(0xd9)]),i=d[s(0xbd)]({'pathParts':[g,b[s(0xcd)],'',h]});let j='js';c[s(0xe2)]['js']===s(0xdb)&&(j='ts');const k={'name':b[s(0xd9)],'collection':pascalCase(b[s(0xd9)]),'noRename':!![],'globalPublish':b[s(0xda)]};await d[s(0xc7)]({'srcPath':s(0xd4),'destPath':i+'.'+j,'context':k,'config':c,'force':f});const l=d['pathFromApp']({'pathParts':['imports',s(0xd2),s(0xc5),b[s(0xca)],'index.'+c[s(0xe2)]['js']]}),m=b[s(0xcd)]?'/'+b[s(0xcd)]+'/':'/';await d[s(0xdd)]({'filePath':l,'content':s(0xd7)+m+h+'\x27;'});}catch(n){Log['error'](n),process[s(0xdc)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a136r=a136d;(function(a,b){const o=a136d,c=a();while(!![]){try{const d
|
|
1
|
+
const a136r=a136d;function a136c(){const t=['/>}/>\x0a','864530Pzujei','2185336MCSKbH','</Route>','search','create','startup','constructor','findAppDirectory','resourceName','14445574WjQzVG','filter','injectIntoFile','ssr','toLowerCase','private','51222JSVTaD','replace','532833qdXcBq','25895kqETuz','\x22\x20element={<Component.','routes.','<Route\x20path=\x22','<Route\x20path=\x22*\x22','117640lRbOOH','toString','route','join','9xdIYYU','length','320wAMapB','engines','split','50FIBocP','error','apply','12AtltWf','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','none','Scaffolding\x20for\x20a\x20Route.','imports','maka\x20{generate,\x20g}:{route,\x20r}','pop','client','(((.+)+)+)+$'];a136c=function(){return t;};return a136c();}(function(a,b){const o=a136d,c=a();while(!![]){try{const d=parseInt(o(0x16c))/0x1+-parseInt(o(0x175))/0x2*(parseInt(o(0x164))/0x3)+parseInt(o(0x172))/0x4*(-parseInt(o(0x167))/0x5)+parseInt(o(0x14b))/0x6*(-parseInt(o(0x166))/0x7)+parseInt(o(0x156))/0x8*(-parseInt(o(0x170))/0x9)+parseInt(o(0x155))/0xa+parseInt(o(0x15e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x3d380));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a136d;if(c){const e=c[p(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const q=a136d;return a136a[q(0x16d)]()[q(0x158)](q(0x153))[q(0x16d)]()[q(0x15b)](a136a)[q(0x158)](q(0x153));});a136a();import a136e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x14a;let f=c[d];return f;},a136d(a,b);}import{pascalCase}from'change-case';const aliases=['r'];Generator[a136r(0x159)]({'name':a136r(0x16e),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a136r(0x163),'boolFlag':!![]},{'name':a136r(0x16e)}],'usage':a136r(0x150),'shortDesc':a136r(0x14e),'examples':[]},async function(a,b){const s=a136r,{fsi:c,scaffold:d,projectConfig:f}=this;try{const g=c[s(0x15c)](),h=b[s(0x163)]??![];let i=b[s(0x15d)][s(0x174)]('/')[s(0x151)]();if(!i){Log[s(0x176)](s(0x14c));throw new UsageError();}i=pascalCase(i);let j=b['route']?'/'+b[s(0x16e)]:'/'+b[s(0x15d)][s(0x165)](/\\/g,'/')[s(0x162)]();a[s(0x171)]>0x1&&(j='/'+a[s(0x15f)](function(n){return n!=='/';})['join']('/')['toLowerCase']());j=j[s(0x165)](/\/\//g,'/');const k=f[s(0x173)]['js'],l=f[s(0x173)][s(0x161)]!==s(0x14d)?'lib':s(0x152),m=a136e[s(0x16f)](g,s(0x14f),s(0x15a),l,s(0x169)+k);h?await d[s(0x160)]({'filePath':m,'content':s(0x16a)+j+s(0x168)+i+s(0x154),'begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':[s(0x157)]}):await d[s(0x160)]({'filePath':m,'content':s(0x16a)+j+s(0x168)+i+s(0x154),'begin':['<Route\x20index'],'end':[s(0x16b)]});}catch(n){Log[s(0x176)](n),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-
|
|
1
|
+
const a137r=a137d;function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x77;let f=c[d];return f;},a137d(a,b);}(function(a,b){const o=a137d,c=a();while(!![]){try{const d=-parseInt(o(0x90))/0x1*(-parseInt(o(0x78))/0x2)+-parseInt(o(0x8d))/0x3+parseInt(o(0x77))/0x4*(-parseInt(o(0x7f))/0x5)+parseInt(o(0x87))/0x6*(parseInt(o(0x8f))/0x7)+-parseInt(o(0x83))/0x8*(-parseInt(o(0x99))/0x9)+parseInt(o(0x89))/0xa*(parseInt(o(0x93))/0xb)+-parseInt(o(0x98))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xaf8e4));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a137d;if(c){const e=c[p(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const q=a137d;return a137a[q(0x97)]()[q(0x80)](q(0x84))[q(0x97)]()[q(0x86)](a137a)[q(0x80)](q(0x84));});a137a();import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a137c(){const t=['engines','checkNpmPackage','winston\x20setimmediate','2844114mfiKQC','tsx','8899646ZJVYho','4UJbxiS','installNpmPackage','type','44BjrSYV','service','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','svc','toString','12954072avLlrY','36OpFTIC','4810088NxPIHr','655056SaKbQK','winston','create','service/logger/logger.js','projectConfig','apply','logger','5SmDpwG','search','lib','pathFromApp','2470312rlfjPk','(((.+)+)+)+$','resourceName','constructor','6yBfhEo','maka\x20g:svc\x20service-logger\x20--type=logger','331240kxxWwD'];a137c=function(){return t;};return a137c();}Generator[a137r(0x7a)]({'name':a137r(0x94),'aliases':[a137r(0x96)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a137r(0x95),'requiredOpts':[{'name':a137r(0x92),'values':[a137r(0x7e)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a137r(0x88)]},async function(a,b){const s=a137r,{cfg:c,fsi:d,pkg:f,scaffold:g}=this;try{const h=this[s(0x7c)],i=d['findAppDirectory'](),j=kebabCase(b[s(0x85)]),k={'name':pascalCase(b[s(0x85)]),'fileName':j,'camelCase':camelCase(b[s(0x85)]),'type':b['type'],'engine':h[s(0x8a)]['js'],'noRename':!![]};let l='js';h[s(0x8a)]['js']===s(0x8e)&&(l='ts');if(b['type']===s(0x7e)){!f[s(0x8b)](s(0x79))&&await f[s(0x91)](s(0x8c),{'cwd':i,'msg':'Installing\x20winston'});const m=g[s(0x82)]({'pathParts':['imports','startup',s(0x81),'services',j+'.'+l]});await g['template']({'srcPath':s(0x7b),'destPath':m,'context':k,'config':h});}}catch(n){Log['error'](n);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a138d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a138c(){var h=['535996ZtsXxz','toString','417738MUyCSE','(((.+)+)+)+$','7KhCcmm','search','2748JnPIlZ','2175291cisBJI','6uyVDth','constructor','9220Aayxvn','361808rlCZOt','5gLqMeR','14HEaAaj','6622pASxbZ','1770100zHsvMK'];a138c=function(){return h;};return a138c();}(function(a,b){var f=a138d,c=a();while(!![]){try{var d=parseInt(f(0x110))/0x1*(-parseInt(f(0x106))/0x2)+parseInt(f(0x104))/0x3*(parseInt(f(0x10c))/0x4)+parseInt(f(0x108))/0x5*(-parseInt(f(0x10e))/0x6)+parseInt(f(0x109))/0x7*(parseInt(f(0x107))/0x8)+parseInt(f(0x103))/0x9+-parseInt(f(0x10b))/0xa+-parseInt(f(0x10a))/0xb*(parseInt(f(0x102))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x2cc5c));function a138d(a,b){var c=a138c();return a138d=function(d,e){d=d-0x102;var f=c[d];return f;},a138d(a,b);}var a138b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){var g=a138d;return a138a[g(0x10d)]()[g(0x111)](g(0x10f))[g(0x10d)]()[g(0x105)](a138a)[g(0x111)](g(0x10f));});a138a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139l=a139d;(function(a,b){const i=a139d,c=a();while(!![]){try{const d=parseInt(i(0x1db))/0x1+-parseInt(i(0x1e2))/0x2*(parseInt(i(0x1ed))/0x3)+-parseInt(i(0x1eb))/0x4+parseInt(i(0x1d4))/0x5+-parseInt(i(0x1d8))/0x6+parseInt(i(0x1e1))/0x7*(-parseInt(i(0x1d3))/0x8)+parseInt(i(0x1ea))/0x9*(parseInt(i(0x1ec))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x317d6));function a139c(){const n=['error','maka\x20g:sslconfig\x20--env\x20dev','getMakaProjectConfig','constructor','openssl.conf','7BReiNV','32254cHqpNX','service','join','apply','scaffold','appName','search','cfg','3083391xcvqgb','338244MeIxPs','20tUPjWa','33YxxZrL','sslconfig','1977424rCYGlo','777895vAQBgP','toString','getAppConfigPath','template','1284030TJHJBK','_keys','(((.+)+)+)+$','85074bKMEZo'];a139c=function(){return n;};return a139c();}const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a139d;if(c){const e=c[j(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const k=a139d;return a139a[k(0x1d5)]()[k(0x1e8)](k(0x1da))[k(0x1d5)]()[k(0x1df)](a139a)[k(0x1e8)]('(((.+)+)+)+$');});a139a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a139e from'path';function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a139d(a,b);}Generator['create']({'name':a139l(0x1ee),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','resourceNameRequired':![],'requiredOpts':['env'],'examples':[a139l(0x1dd)],'validOpts':[]},async function(a,b){const m=a139l;try{const c=this[m(0x1e9)][m(0x1de)](),d=this['cfg'][m(0x1d6)](b['env']),f=a139e[m(0x1e4)](d,m(0x1d9),m(0x1e0)),g={'app':c[m(0x1e7)],'noRename':!![]};await this[m(0x1e6)][m(0x1d7)]({'srcPath':'openssl/openssl.conf','destPath':f,'framework':m(0x1e3),'context':g,'config':c});}catch(h){Log[m(0x1dc)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140D=a140d;(function(a,b){const A=a140d,c=a();while(!![]){try{const d=-parseInt(A(
|
|
1
|
+
const a140D=a140d;function a140c(){const F=['installNpmPackage','4942410EVexiw','i18next\x20i18next-browser-languagedetector\x20react-i18next','apply','280482COkTfy','constructor','setProjectConfig','import\x20\x27../lib/services/translations/i18n\x27;\x0a','lang','search','lib','locales','Locale\x20already\x20exported:\x20','services','findAppDirectory','2097305faVyic','injectAtEndOfFile','engines','server','Locale\x20already\x20defined:\x20','1682823iuUPhL','imports','translation','toString','index.js','maka\x20g:translation\x20--lang=en\x20(default)','2JZMYqx','export\x20{\x20default\x20as\x20','11649834cewUsh','translations','root','i18n/index.js','default\x20as\x20','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','meteor','error','10jMtcWV','warn','template','rewriteDestinationPathForEngine','isFile','checkNpmPackage','scaffold','Generate\x20a\x20new\x20locale\x20translation','\x20}\x20from\x20\x27./','grep','import\x20\x27../lib/services/translations/i18n\x27;','startup','injectAtBeginningOfFile','(((.+)+)+)+$','readFileSync','ssr','maka\x20{generate,\x20g}:translation','pathFromApp','service','i18n.js','create','maka\x20g:translation\x20--lang=de','3452888rRJUdO','1862068etMXBS'];a140c=function(){return F;};return a140c();}(function(a,b){const A=a140d,c=a();while(!![]){try{const d=-parseInt(A(0x11a))/0x1+-parseInt(A(0xf4))/0x2*(parseInt(A(0x12a))/0x3)+-parseInt(A(0x115))/0x4*(parseInt(A(0xfe))/0x5)+parseInt(A(0x117))/0x6+-parseInt(A(0x125))/0x7+parseInt(A(0x114))/0x8+parseInt(A(0xf6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x74a04));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a140d;if(c){const e=c[B(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const C=a140d;return a140a['toString']()[C(0x11f)]('(((.+)+)+)+$')[C(0x12d)]()[C(0x11b)](a140a)['search'](C(0x10b));});a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'fs';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0xf2;let f=c[d];return f;},a140d(a,b);}Generator[a140D(0x112)]({'name':a140D(0x12c),'usage':a140D(0x10e),'aliases':['t'],'resourceNameRequired':![],'requiredOpts':[{'name':a140D(0x11e),'boolFlag':![],'regex':/^[a-z]{2}$/}],'mustBeInMakaProject':!![],'shortDesc':a140D(0x105),'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':[a140D(0xf3),'maka\x20g:translation\x20--lang=fr',a140D(0x113)],'validOpts':[]},async function(a,b){const E=a140D;try{const {fsi:c,scaffold:d,pkg:f,cfg:g,projectConfig:h}=this,i=c[E(0x124)]();!b[E(0x11e)]&&(b['lang']='en');!b[E(0xf8)]&&!f[E(0x103)]('i18next')&&(Log[E(0xff)](E(0xfb)),f[E(0x116)](E(0x118),{'cwd':i}),g[E(0x11c)]('features.withTranslations',!![]));const j=d['pathFromApp']({'pathParts':[E(0x12b),E(0x109),'client',E(0xf2)]}),k=d[E(0x101)]({'pathParts':[j],'config':h}),l=c[E(0x107)](a140e['readFileSync'](k)[E(0x12d)](),E(0x108))[0x0]&&!![];if(h['engines'][E(0x10d)]===E(0xfc)){!l&&d[E(0x10a)]({'filePath':k,'content':E(0x11d)});const w=d[E(0x10f)]({'pathParts':[E(0x12b),E(0x109),E(0x128),'index.js']}),x=d['rewriteDestinationPathForEngine']({'pathParts':[w],'config':h}),y=c[E(0x107)](a140e['readFileSync'](x)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!y&&d['injectAtBeginningOfFile']({'filePath':x,'content':E(0x11d)});}else!l&&d[E(0x10a)]({'filePath':k,'content':E(0x11d)});const m={'app':h['appName'],'config':h},n=d[E(0x10f)]({'pathParts':[E(0x12b),E(0x109),E(0x120),E(0x123),E(0xf7),E(0x111)]}),o=c[E(0x102)](d[E(0x101)]({'pathParts':[n],'config':h}));!o&&await d[E(0x100)]({'srcPath':'i18n/i18n.js','destPath':n,'framework':E(0x110),'context':m,'config':h});const p=d['pathFromApp']({'pathParts':[E(0x12b),E(0x109),E(0x120),E(0x123),'translations',E(0x121),b[E(0x11e)]+'.js']}),q=d[E(0x101)]({'pathParts':[p],'config':h}),r=c[E(0x102)](q);!r?await this[E(0x104)][E(0x100)]({'srcPath':'i18n/locales.js','destPath':p,'framework':E(0x110),'context':m,'config':h}):Log[E(0xff)](E(0x129)+q);const s=d[E(0x10f)]({'pathParts':[E(0x12b),E(0x109),E(0x120),'services',E(0xf7),E(0x121),'index.'+h[E(0x127)]['js']]}),t=d[E(0x101)]({'pathParts':[s],'config':h}),u=c[E(0x102)](t);!u&&await d[E(0x100)]({'srcPath':E(0xf9),'destPath':s,'framework':E(0x110),'context':m,'config':h});const v=c[E(0x107)](a140e[E(0x10c)](s)[E(0x12d)](),E(0xfa)+b['lang'])[0x0]&&!![];!v?await d[E(0x126)]({'filePath':s,'content':E(0xf5)+b[E(0x11e)]+E(0x106)+b[E(0x11e)]+'\x27;'}):Log[E(0xff)](E(0x122)+s);}catch(z){Log[E(0xfd)](z),process['exit'](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141l=a141d;function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x1f2;let f=c[d];return f;},a141d(a,b);}(function(a,b){const j=a141d,c=a();while(!![]){try{const d=parseInt(j(0x1fd))/0x1*(parseInt(j(0x1fe))/0x2)+-parseInt(j(0x1fb))/0x3*(parseInt(j(0x201))/0x4)+-parseInt(j(0x1f4))/0x5*(parseInt(j(0x1f2))/0x6)+parseInt(j(0x1f8))/0x7+parseInt(j(0x205))/0x8+parseInt(j(0x1fc))/0x9+parseInt(j(0x203))/0xa*(-parseInt(j(0x1f9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x82551));const a141b=(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;};}()),a141a=a141b(this,function(){const k=a141d;return a141a['toString']()[k(0x207)](k(0x1f7))['toString']()[k(0x1f3)](a141a)[k(0x207)](k(0x1f7));});a141a();import a141e from'minimist';import a141f from'os';import a141g from'path';import a141h from'humps';import a141i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';function a141c(){const m=['11346COlsSw','constructor','1835lMqoXo','url','slice','(((.+)+)+)+$','6321812uKsfgp','22bLuKSH','BROWSERSLIST_IGNORE_OLD_DATA','1683qIsmoV','4776318UCisFb','1lzPvut','631208BCDNKl','dirname','camelizeKeys','4616cfhFvf','MAKA_COMMAND_PATH','2142830AQUdsX','NODE_NO_WARNINGS','4435008NFzCEX','run','search','env','parse'];a141c=function(){return m;};return a141c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a141l(0x1f5)]),__dirname=a141g[a141l(0x1ff)](__filename);global[a141l(0x202)]=__dirname;const total_memory=a141f['totalmem'](),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['env']['TOOL_NODE_FLAGS']='--max-old-space-size='+total_mem_in_mb,process[a141l(0x208)][a141l(0x1fa)]='1',process[a141l(0x208)][a141l(0x204)]='1';const argv=a141e(process['argv'][a141l(0x1f6)](0x2)),args=argv['_'],deepCopyArgv=JSON[a141l(0x209)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a141h[a141l(0x200)](deepCopyArgv);a141i[a141l(0x206)](args,opts);
|
|
@@ -37,7 +37,7 @@ const client = new ApolloClient({
|
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
39
|
<% } %><% if (config.engines.theme === 'material') { %>
|
|
40
|
-
import CssBaseline from '@mui/material/CssBaseline'; <% if (config.engines.ssr === '
|
|
40
|
+
import CssBaseline from '@mui/material/CssBaseline'; <% if (config.engines.ssr === 'meteor') { %>
|
|
41
41
|
import { ThemeProvider } from '@mui/material/styles';
|
|
42
42
|
import { theme } from '../lib/index';<% } else { %>
|
|
43
43
|
// Material UI Theme config using default mui.
|
|
@@ -58,14 +58,14 @@ const newTheme = createTheme({
|
|
|
58
58
|
},
|
|
59
59
|
});
|
|
60
60
|
const theme = responsiveFontSizes(newTheme);<% }} %>
|
|
61
|
-
<% if (config.engines.ssr === '
|
|
61
|
+
<% if (config.engines.ssr === 'meteor') { %>
|
|
62
62
|
// Server Side Rendering sink and router classifier.
|
|
63
63
|
import { BrowserRouter } from 'react-router-dom'
|
|
64
64
|
import { onPageLoad } from "meteor/server-render";
|
|
65
65
|
<% } %>
|
|
66
|
-
<% if (config.engines.ssr === '
|
|
66
|
+
<% if (config.engines.ssr === 'meteor') { %>import AppRoutes from '../lib/routes';<% } else { %>import AppRoutes from './routes';<% } %>
|
|
67
67
|
|
|
68
|
-
const App = () => (<% if (config.engines.ssr === '
|
|
68
|
+
const App = () => (<% if (config.engines.ssr === 'meteor') { %>
|
|
69
69
|
<BrowserRouter><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
70
70
|
<ApolloProvider client={client}>
|
|
71
71
|
<ApolloHooksProvider client={client}><% } %><% if (config.engines.theme === 'material') { %>
|
|
@@ -74,11 +74,11 @@ const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
|
74
74
|
<AppRoutes /><% if (config.engines.theme === 'material') { %>
|
|
75
75
|
</ThemeProvider><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
76
76
|
</ApolloHooksProvider>
|
|
77
|
-
</ApolloProvider><% } %><% if (config.engines.ssr === '
|
|
77
|
+
</ApolloProvider><% } %><% if (config.engines.ssr === 'meteor') { %>
|
|
78
78
|
</BrowserRouter><% } %>
|
|
79
79
|
);
|
|
80
80
|
|
|
81
|
-
const startApp = () => {<% if (config.engines.ssr === '
|
|
81
|
+
const startApp = () => {<% if (config.engines.ssr === 'meteor') { %>
|
|
82
82
|
onPageLoad(() => {
|
|
83
83
|
ReactDOM.hydrateRoot(document.getElementById('app'), <App />);
|
|
84
84
|
});<% } else { %>
|
|
@@ -37,7 +37,7 @@ const client = new ApolloClient({
|
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
39
|
<% } %><% if (config.engines.theme === 'material') { %>
|
|
40
|
-
import CssBaseline from '@mui/material/CssBaseline'; <% if (config.engines.ssr === '
|
|
40
|
+
import CssBaseline from '@mui/material/CssBaseline'; <% if (config.engines.ssr === 'meteor') { %>
|
|
41
41
|
import { ThemeProvider } from '@mui/material/styles';
|
|
42
42
|
import { theme } from '../lib/index';<% } else { %>
|
|
43
43
|
// Material UI Theme config using default mui.
|
|
@@ -59,14 +59,14 @@ const newTheme = createTheme({
|
|
|
59
59
|
},
|
|
60
60
|
});
|
|
61
61
|
const theme = responsiveFontSizes(newTheme);<% }} %>
|
|
62
|
-
<% if (config.engines.ssr === '
|
|
62
|
+
<% if (config.engines.ssr === 'meteor') { %>
|
|
63
63
|
// Server Side Rendering sink and router classifier.
|
|
64
64
|
import { BrowserRouter } from 'react-router-dom'
|
|
65
|
-
import { onPageLoad } from
|
|
65
|
+
import { onPageLoad } from 'meteor/server-render';
|
|
66
66
|
<% } %>
|
|
67
67
|
<% if (config.engines.ssr === 'true') { %>import AppRoutes from '../lib/routes';<% } else { %>import AppRoutes from './routes';<% } %>
|
|
68
68
|
|
|
69
|
-
const App = () => (<% if (config.engines.ssr === '
|
|
69
|
+
const App = () => (<% if (config.engines.ssr === 'meteor') { %>
|
|
70
70
|
<BrowserRouter><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
71
71
|
<ApolloProvider client={client}>
|
|
72
72
|
<ApolloHooksProvider client={client}><% } %><% if (config.engines.theme === 'material') { %>
|
|
@@ -75,11 +75,11 @@ const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
|
75
75
|
<AppRoutes /><% if (config.engines.theme === 'material') { %>
|
|
76
76
|
</ThemeProvider><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
77
77
|
</ApolloHooksProvider>
|
|
78
|
-
</ApolloProvider><% } %><% if (config.engines.ssr === '
|
|
78
|
+
</ApolloProvider><% } %><% if (config.engines.ssr === 'meteor') { %>
|
|
79
79
|
</BrowserRouter><% } %>
|
|
80
80
|
);
|
|
81
81
|
|
|
82
|
-
const startApp = () => {<% if (config.engines.ssr === '
|
|
82
|
+
const startApp = () => {<% if (config.engines.ssr === 'meteor') { %>
|
|
83
83
|
onPageLoad(() => {
|
|
84
84
|
ReactDOM.hydrateRoot(document.getElementById('app'), <App />);
|
|
85
85
|
});<% } else { %>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Routes, Route, Navigate, Outlet } from 'react-router-dom';
|
|
3
3
|
import * as Component from './templates';
|
|
4
4
|
|
|
5
5
|
// Dummy authentication function
|
|
@@ -15,16 +15,14 @@ const PrivateRoute = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const AppRoutes = () => (
|
|
18
|
-
<
|
|
19
|
-
<
|
|
20
|
-
<Route
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<Route element={<PrivateRoute />}>
|
|
24
|
-
</Route>
|
|
18
|
+
<Routes>
|
|
19
|
+
<Route path="/" element={<Component.MainLayout />}>
|
|
20
|
+
<Route index element={<Component.Home />} />
|
|
21
|
+
<Route path="*" element={<Component.NotFound />} />
|
|
22
|
+
<Route element={<PrivateRoute />}>
|
|
25
23
|
</Route>
|
|
26
|
-
</
|
|
27
|
-
</
|
|
24
|
+
</Route>
|
|
25
|
+
</Routes>
|
|
28
26
|
);
|
|
29
27
|
|
|
30
28
|
export default AppRoutes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Routes, Route, Navigate, Outlet } from 'react-router-dom';
|
|
3
3
|
import * as Component from './templates';
|
|
4
4
|
|
|
5
5
|
// Dummy authentication function
|
|
@@ -15,16 +15,14 @@ const PrivateRoute = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const AppRoutes = () => (
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
<Route
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<Route element={<PrivateRoute />}>
|
|
24
|
-
</Route>
|
|
18
|
+
<>
|
|
19
|
+
<Route path="/" element={<Component.MainLayout />}>
|
|
20
|
+
<Route index element={<Component.Home />} />
|
|
21
|
+
<Route path="*" element={<Component.NotFound />} />
|
|
22
|
+
<Route element={<PrivateRoute />}>
|
|
25
23
|
</Route>
|
|
26
|
-
</
|
|
27
|
-
|
|
24
|
+
</Route>
|
|
25
|
+
</>
|
|
28
26
|
);
|
|
29
27
|
|
|
30
28
|
export default AppRoutes;
|
|
@@ -62,7 +62,7 @@ import AppRoutes from '../lib/routes';
|
|
|
62
62
|
import React from 'react';
|
|
63
63
|
import { renderToStaticMarkup } from 'react-dom/server';
|
|
64
64
|
import { onPageLoad } from 'meteor/server-render';
|
|
65
|
-
import { StaticRouter } from 'react-router-dom';
|
|
65
|
+
import { StaticRouter } from 'react-router-dom/server';
|
|
66
66
|
import { createMemoryHistory } from 'history';
|
|
67
67
|
<% if (config.engines.graphql === 'apollo') { %>
|
|
68
68
|
import { createMeteorNetworkInterface, meteorClientConfig } from 'meteor/apollo';
|
|
@@ -62,7 +62,7 @@ import AppRoutes from '../lib/routes';
|
|
|
62
62
|
import * as React from 'react';
|
|
63
63
|
import { renderToStaticMarkup } from 'react-dom/server';
|
|
64
64
|
import { onPageLoad } from 'meteor/server-render';
|
|
65
|
-
import { StaticRouter } from 'react-router-dom';
|
|
65
|
+
import { StaticRouter } from 'react-router-dom/server';
|
|
66
66
|
import { createMemoryHistory } from 'history';
|
|
67
67
|
<% if (config.engines.graphql === 'apollo') { %>
|
|
68
68
|
import { createMeteorNetworkInterface, meteorClientConfig } from 'meteor/apollo';
|