@maka/maka-cli 5.0.0-beta.4 → 5.0.0-beta.6
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/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 +1 -2
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +1 -2
- package/bundle/obf/src/templates/react/kit/auth/provider/authentication-provider.js.jsx +23 -11
- package/bundle/obf/src/templates/react/kit/auth/provider/authentication-provider.js.tsx +23 -12
- package/bundle/obf/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.jsx +5 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.tsx +5 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/login/basic-login-page.js.jsx +6 -6
- package/bundle/obf/src/templates/react/kit/mui/auth/login/basic-login-page.js.tsx +7 -8
- package/bundle/obf/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.jsx +3 -2
- package/bundle/obf/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.tsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.jsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/register/basic-register-page.js.jsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/auth/register/basic-register-page.js.tsx +5 -4
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +4 -3
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +9 -7
- 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 a134o=a134d;(function(a,b){const l=a134d,c=a();while(!![]){try{const d=-parseInt(l(0x94))/0x1+-parseInt(l(0x8c))/0x2*(parseInt(l(0x92))/0x3)+-parseInt(l(0x8d))/0x4*(-parseInt(l(0xa3))/0x5)+parseInt(l(0xb0))/0x6*(parseInt(l(0x96))/0x7)+-parseInt(l(0xa1))/0x8*(parseInt(l(0xa5))/0x9)+-parseInt(l(0xa4))/0xa*(parseInt(l(0xb1))/0xb)+parseInt(l(0xb5))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xb41be));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a134d;if(c){const e=c[m(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const n=a134d;return a134a[n(0xa9)]()['search'](n(0x91))[n(0xa9)]()['constructor'](a134a)[n(0x9e)]('(((.+)+)+)+$');});a134a();import a134e from'path';function a134c(){const r=['store','features','theme','server','466VpvqBC','5589832pefKSp','/package.js','template/template.js','ssr','(((.+)+)+)+$','3057ftERbl','getMakaProjectConfig','473692pQNvco','resourceName','105zUuulC','hasOwnProperty','packages','pathFromAppWithNoReWrite','package','template','noRename','component','search','create','fsi','11552PUAUeF','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','5eFHnxs','10188440agMrCM','8856XLzJsw','apply','dir','lib','toString','.js','package/','engines','maka\x20g:package\x20todos:package','pathFromProject','package.js','308670SNObqu','11nNIyFa','withValue','pathFromApp','tests/server','20633424vvGmDA','graphql','layout','tests/client'];a134c=function(){return r;};return a134c();}function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0x86;let f=c[d];return f;},a134d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a134o(0x9f)]({'name':a134o(0x9a),'aliases':['p'],'usage':a134o(0xa2),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a134o(0xad)]},async function(a,b){const p=a134o,c=paramCase(b[p(0x95)]),d=this[p(0xa0)][p(0xb3)]({'pathParts':['packages',b[p(0xa7)],c]}),e=this[p(0xa0)][p(0x99)]({'pathParts':[p(0x98),b[p(0xa7)],c,p(0xaf)]}),f=this[p(0xa0)][p(0x93)]();await this[p(0xa0)][p(0xb2)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x95)]),'myPath':a134e['relative'](this[q(0xa0)][q(0xae)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x95)]),'camelCaseName':camelCase(b[q(0x95)]),'fileName':c,'client':f[q(0xac)]['client'],'graphql':f['engines'][q(0xb6)],'ssr':f[q(0xac)][q(0x90)],'isComponent':b[q(0x97)](q(0x9d)),'isLayout':b[q(0x97)](q(0x86)),'isStore':b['hasOwnProperty'](q(0x88)),'features':f[q(0x89)],'noRename':!![],'theme':f[q(0xac)][q(0x8a)]};await this['fsi'][q(0x9b)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x9c)]=![];const h=d+'/client/'+c+q(0xaa);await this[q(0xa0)][q(0x9b)]({'srcPath':q(0x8f),'destPath':h,'context':g,'config':f});const i=[q(0xa8),q(0x8b),q(0x87),q(0xb4)];for(const j of i){const k=d+'/'+j+'/'+c+q(0xaa);await this['fsi'][q(0x9b)]({'srcPath':q(0xab)+j+q(0x8e),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d
|
|
1
|
+
const a135u=a135d;(function(a,b){const r=a135d,c=a();while(!![]){try{const d=parseInt(r(0x1e5))/0x1+-parseInt(r(0x1b6))/0x2*(parseInt(r(0x1f6))/0x3)+parseInt(r(0x1f5))/0x4*(parseInt(r(0x1c9))/0x5)+-parseInt(r(0x1b0))/0x6+-parseInt(r(0x1bb))/0x7*(-parseInt(r(0x1d7))/0x8)+parseInt(r(0x1d0))/0x9*(-parseInt(r(0x1d2))/0xa)+-parseInt(r(0x1f7))/0xb*(-parseInt(r(0x1f2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xeb9d0));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a['toString']()['search'](t(0x1ed))[t(0x1b3)]()['constructor'](a135a)[t(0x1d5)](t(0x1ed));});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135c(){const x=['className','features','test','1490021eaDKeO','.css','private','import\x20\x27./','resourceName','template/template.html','withTranslations','page','(((.+)+)+)+$','injectAtBeginningOfFile','root','warn','injectIntoFile','9931668Iadoze','template','fileName','550184Yipmnb','2345358pdPsyL','11gJNHnq','/imports/ui/pages','component','checkNpmPackage','ssr','maka\x20g:page\x20todos/todos-item','test/test.js','lib','vanilla','client','startup','6136470vXTCRW','ramda','withValue','toString','includes','url','4lNYsvw','installNpmPackage','\x27;\x0a','hasOwnProperty','.app-tests.js','392LIUYcY','split','graphql','apply','dir','<Route\x20path=\x22*\x22','trim','css','theme','getMakaProjectConfig','replace','pathFromProject','routes.','replaceAll','20ovgApf','fsi','/>}/>\x0a','engines','error','setTemplate','.html','6670359msBHsu','assign','10AJATby','true','join','search','string','203528fATGvN','hook/hook.js','<Route\x20path=\x22','relative','layout','html','withHooks','store','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','react','.js'];a135c=function(){return x;};return a135c();}import{UsageError}from'../error.js';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x1af;let f=c[d];return f;},a135d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a135u(0x1ec),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a135u(0x1e7),'boolFlag':!![]},{'name':'url'}],'examples':[a135u(0x1fc)]},async function(a,b){const v=a135u,c=v(0x1f8),d=this['fsi']['findAppDirectory'](),e=b['resourceName'][v(0x1b4)](':')?b[v(0x1e9)][v(0x1bc)](':')[0x0]['trim']():b[v(0x1e9)][v(0x1c1)](),f=b[v(0x1bf)][v(0x1c8)]('/','_')+'_'+e['replaceAll']('/','_'),g=this[v(0x1ca)]['pathFromApp']({'pathParts':[c,b[v(0x1bf)],paramCase(f),paramCase(f)]}),h=this[v(0x1ca)][v(0x1c4)]();let i='';return await this['fsi'][v(0x1b2)](h,async()=>{const w=v;typeof h[w(0x1f3)][w(0x1dc)]===w(0x1d6)&&(h['template'][w(0x1dc)]=h[w(0x1f3)][w(0x1dc)]===w(0x1d3)?!![]:![],this[w(0x1ca)][w(0x1ce)](w(0x1dc),h[w(0x1f3)]['html']));typeof h[w(0x1f3)][w(0x1e4)]===w(0x1d6)&&(h[w(0x1f3)][w(0x1e4)]=h[w(0x1f3)][w(0x1e4)]===w(0x1d3)?!![]:![],this[w(0x1ca)]['setTemplate'](w(0x1e4),h[w(0x1f3)]['test']));typeof h[w(0x1f3)][w(0x1c2)]==='string'&&(h['template'][w(0x1c2)]=h[w(0x1f3)][w(0x1c2)]==='true'?!![]:![],this[w(0x1ca)][w(0x1ce)](w(0x1c2),h['template'][w(0x1c2)]));typeof h['template']['js']===w(0x1d6)&&(h['template']['js']=h[w(0x1f3)]['js']===w(0x1d3)?!![]:![],this[w(0x1ca)][w(0x1ce)]('js',h['template']['js']));!h['features']&&(h[w(0x1e3)]={});!b['root']&&!this[w(0x1ca)][w(0x1fa)](w(0x1b1))&&(Log[w(0x1f0)]('Updating\x20npm\x20packages\x20...'),this['fsi'][w(0x1b7)](w(0x1b1),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e[w(0x1da)](this[w(0x1ca)][w(0x1c6)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0x1cc)][w(0x1bd)],'features':h['features'],'client':h[w(0x1cc)][w(0x200)],'api':h[w(0x1cc)]['api'],'ssr':h['engines']['ssr'],'isStore':b[w(0x1b9)](w(0x1de)),'isComponent':b['hasOwnProperty'](w(0x1f9)),'isLayout':b[w(0x1b9)](w(0x1db)),'withTranslations':h[w(0x1e3)][w(0x1eb)],'test':h[w(0x1cc)][w(0x1e4)],'theme':h[w(0x1cc)][w(0x1c3)]};h[w(0x1f3)][w(0x1dc)]&&await this[w(0x1ca)][w(0x1f3)]({'srcPath':w(0x1ea),'destPath':g+w(0x1cf),'context':j,'config':h});h[w(0x1e3)]?.[w(0x1dd)]?await this['fsi']['template']({'srcPath':w(0x1d8),'destPath':g+'.js','framework':w(0x1e0),'context':j,'config':h}):await this[w(0x1ca)][w(0x1f3)]({'srcPath':'component/component.js','destPath':g+w(0x1e1),'framework':w(0x1e0),'context':j,'config':h});h[w(0x1cc)]['test']!=='none'&&await this['fsi']['template']({'srcPath':w(0x1fd),'destPath':g+w(0x1ba),'framework':w(0x1e0),'context':j,'config':h});h['template']['css']&&await this[w(0x1ca)][w(0x1f3)]({'srcPath':'template/template.css','destPath':g+w(0x1e6),'context':Object[w(0x1d1)]({},j,{'className':paramCase(b[w(0x1e9)])}),'config':h});h[w(0x1cc)][w(0x200)]!==w(0x1e0)&&h['engines']['client']!==w(0x1ff)?(h[w(0x1f3)][w(0x1c2)]&&await this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+j['fileName']+'.'+h['engines'][w(0x1dc)]+w(0x1b8)+w(0x1e8)+j[w(0x1f4)]+'.'+h['engines'][w(0x1c2)]+'\x27;'}),!h[w(0x1f3)][w(0x1c2)]&&await this[w(0x1ca)][w(0x1ee)]({'filePath':g+'.'+h['engines']['js'],'content':w(0x1e8)+j['fileName']+'.'+h[w(0x1cc)][w(0x1dc)]+'\x27;'})):h['template']['css']&&await this['fsi'][w(0x1ee)]({'filePath':g+'.'+h['engines']['js'],'content':w(0x1e8)+j['fileName']+'.'+h[w(0x1cc)][w(0x1c2)]+'\x27;'});const k=b[w(0x1bf)]?'/'+b[w(0x1bf)]+'/':'/';i=''+c+k+j[w(0x1f4)]+'/'+j[w(0x1f4)],await this[w(0x1ca)]['injectTemplateModule'](j[w(0x1e2)],h,i);if(!b[w(0x1ef)]){const l=b[w(0x1e7)]??![];if(!f){Log[w(0x1cd)](w(0x1df));throw new UsageError();}let m=b[w(0x1b5)]?b[w(0x1b5)]:'/'+b[w(0x1bf)][w(0x1c1)]()+'/'+b['resourceName'][w(0x1c1)]()[w(0x1c5)](/\\/g,'/')[w(0x1c5)](/\/+$/,'')['toLowerCase']();const n=b[w(0x1e9)]['indexOf'](':');n!==-0x1&&(m+='/'+b[w(0x1e9)]['substring'](0x0,n)[w(0x1c1)]());m['endsWith']('/')&&(m=m['slice'](0x0,-0x1));m=m[w(0x1c5)](/\/\//g,'/');const o=h[w(0x1cc)]['js'],p=h[w(0x1cc)][w(0x1fb)]===w(0x1d3)?w(0x1fe):w(0x200),q=a135e[w(0x1d4)](d,'imports',w(0x1af),p,w(0x1c7)+o);l?await this[w(0x1ca)][w(0x1f1)]({'filePath':q,'content':w(0x1d9)+m+'\x22\x20element={<Component.'+pascalCase(f)+'/>}/>\x0a','begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':['</Route>']}):await this[w(0x1ca)][w(0x1f1)]({'filePath':q,'content':w(0x1d9)+m+'\x22\x20element={<Component.'+pascalCase(f)+w(0x1cb),'begin':['<Route\x20index'],'end':[w(0x1c0)]});}}),i+'.'+h[v(0x1cc)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d
|
|
1
|
+
const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x147))/0x1*(parseInt(m(0x13f))/0x2)+parseInt(m(0x153))/0x3+-parseInt(m(0x150))/0x4*(parseInt(m(0x13c))/0x5)+parseInt(m(0x142))/0x6+-parseInt(m(0x156))/0x7+-parseInt(m(0x146))/0x8+-parseInt(m(0x13b))/0x9*(-parseInt(m(0x154))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x33322));function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x138;let f=c[d];return f;},a136d(a,b);}const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x149)]()[o(0x13a)]('(((.+)+)+)+$')['toString']()['constructor'](a136a)[o(0x13a)](o(0x152));});a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a136c(){const s=['server','engines','170972olHquI','withValue','(((.+)+)+)+$','1014525NsOiCt','8870DSWBVv','force','776552BZCOhN','publish/publish.js','dir','/imports/ui/','injectAtEndOfFile','baseDir','create','search','1593nmXOcw','25UGuwaK','fsi','apply','1018GXMJKP','startup','publish','2284488xdnBVh','resourceName','template','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','1694224BftQBB','255HtewUc','exit','toString','index.','pathFromApp','tsx','globalPublish'];a136c=function(){return s;};return a136c();}import{Log}from'../tools/log/log.class.js';Generator[a136p(0x139)]({'name':a136p(0x141),'aliases':['p'],'usage':a136p(0x145),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0x155),a136p(0x14d)],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const q=a136p;try{const c=b[q(0x155)]||![],d=b[q(0x138)]?q(0x159)+b[q(0x138)]:'/imports/startup/server/publications',f=this[q(0x13d)]['getMakaProjectConfig'](),g=paramCase(b[q(0x143)]),h=this[q(0x13d)][q(0x14b)]({'pathParts':[d,b['dir'],'',g]});let i='js';f[q(0x14f)]['js']===q(0x14c)&&(i='ts');await this[q(0x13d)][q(0x151)](f,async()=>{const r=q,l={'name':b[r(0x143)],'collection':pascalCase(b[r(0x143)]),'noRename':!![],'globalPublish':b[r(0x14d)]};await this['fsi'][r(0x144)]({'srcPath':r(0x157),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x13d)][q(0x14b)]({'pathParts':['imports',q(0x140),q(0x14e),b['appPathPrefix'],q(0x14a)+f[q(0x14f)]['js']]}),k=b[q(0x158)]?'/'+b[q(0x158)]+'/':'/';return await this['fsi'][q(0x15a)]({'filePath':j,'content':'import\x20\x27./publications'+k+g+'\x27;'}),h+'.'+i;}catch(l){Log['error'](l),process[q(0x148)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a137p=a137d;function a137c(){const s=['
|
|
1
|
+
const a137p=a137d;(function(a,b){const m=a137d,c=a();while(!![]){try{const d=-parseInt(m(0x1a6))/0x1*(parseInt(m(0x183))/0x2)+parseInt(m(0x1a4))/0x3+-parseInt(m(0x190))/0x4*(-parseInt(m(0x197))/0x5)+-parseInt(m(0x191))/0x6*(-parseInt(m(0x17a))/0x7)+parseInt(m(0x194))/0x8*(-parseInt(m(0x19b))/0x9)+-parseInt(m(0x199))/0xa+-parseInt(m(0x1a2))/0xb*(-parseInt(m(0x198))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x793bb));function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x177;let f=c[d];return f;},a137d(a,b);}function a137c(){const s=['getMakaProjectConfig','Scaffolding\x20for\x20a\x20Route.','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','<Route\x20element={<PrivateRoute\x20/>}>','2HUaTMB','<Route\x20path=\x22','toString','page','imports','engines','join','search','create','/>}/>\x0a','apply','pop','lib','3080968OxjxCH','106482AZVJKH','ssr','replace','329064xjXOVm','client','(((.+)+)+)+$','5QsRxqI','60gLBMdj','3618330zdTJHV','<Route\x20path=\x22*\x22','198WBPMep','injectIntoFile','findAppDirectory','error','startup','\x22\x20element={<Component.','fsi','1263856OtglHj','private','2839509HcjLPF','toLowerCase','545642TcIjnD','route','length','</Route>','7gKZdfP','resourceName','exit','<Route\x20index','routes.'];a137c=function(){return s;};return a137c();}const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0x185)]()[o(0x18a)](o(0x196))[o(0x185)]()['constructor'](a137a)[o(0x18a)](o(0x196));});a137a();import a137e from'path';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(0x18b)]({'name':'route','mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0x1a3),'boolFlag':!![]},{'name':a137p(0x177)},{'name':a137p(0x186)}],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20--path\x20/some/path\x20--page\x20<target-page>\x20','shortDesc':a137p(0x180),'examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0x1a1)][q(0x17f)](),d=this[q(0x1a1)][q(0x19d)]();await this[q(0x1a1)]['withValue'](c,async()=>{const r=q,f=b[r(0x1a3)]??![];let g=b[r(0x17b)]['split']('/')[r(0x18e)]();if(!g){Log[r(0x19e)](r(0x181));throw new UsageError();}g=pascalCase(g);let h=b[r(0x177)]?'/'+b[r(0x177)]:'/'+b[r(0x17b)]['replace'](/\\/g,'/')[r(0x1a5)]();a[r(0x178)]>0x1&&(h='/'+a['filter'](function(l){return l!=='/';})[r(0x189)]('/')[r(0x1a5)]());h=h[r(0x193)](/\/\//g,'/');const i=c[r(0x188)]['js'],j=c[r(0x192)]?r(0x18f):r(0x195),k=a137e[r(0x189)](d,r(0x187),r(0x19f),j,r(0x17e)+i);f?await this[r(0x1a1)][r(0x19c)]({'filePath':k,'content':r(0x184)+h+r(0x1a0)+g+r(0x18c),'begin':[r(0x182)],'end':[r(0x179)]}):await this[r(0x1a1)]['injectIntoFile']({'filePath':k,'content':'<Route\x20path=\x22'+h+'\x22\x20element={<Component.'+g+r(0x18c),'begin':[r(0x17d)],'end':[r(0x19a)]});});}catch(f){Log[q(0x19e)](f),process[q(0x17c)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a138m=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(0x202))/0x1+parseInt(j(0x1e7))/0x2+parseInt(j(0x1f1))/0x3+-parseInt(j(0x1ef))/0x4*(parseInt(j(0x204))/0x5)+-parseInt(j(0x1fd))/0x6+-parseInt(j(0x1e9))/0x7+parseInt(j(0x1f8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x95a39));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0x200)]()[l(0x1fa)](l(0x208))[l(0x200)]()[l(0x1f3)](a138a)[l(0x1fa)](l(0x208));});function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a138d(a,b);}a138a();function a138c(){const p=['1293951mUCSna','resourceName','constructor','Installing\x20winston','type','getMakaProjectConfig','pathFromApp','12069144hprnzi','checkNpmPackage','search','service','winston\x20setimmediate','5036460mGuZpJ','winston','error','toString','installNpmPackage','167865ciJMAH','fsi','155WBhdCH','create','logger','apply','(((.+)+)+)+$','368786MizVGQ','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','4368TmrExs','maka\x20{generate,\x20g}:{service}\x20<resource-name>','imports','svc','tsx','withValue','108292LCUpxO','startup'];a138c=function(){return p;};return a138c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a138m(0x205)]({'name':a138m(0x1fb),'aliases':[a138m(0x1ec)],'usage':a138m(0x1ea),'shortDesc':a138m(0x1e8),'requiredOpts':[{'name':a138m(0x1f5),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a138m;try{const c=this[n(0x203)][n(0x1f6)]();await this[n(0x203)][n(0x1ee)](c,async()=>{const o=n,d=this['fsi'][o(0x1f7)]({}),f=paramCase(b[o(0x1f2)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[o(0x1f5)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x1ed)&&(h='ts');if(b[o(0x1f5)]===o(0x206)){!this['fsi'][o(0x1f9)](o(0x1fe))&&await this['fsi'][o(0x201)](o(0x1fc),{'cwd':d,'msg':o(0x1f4)});const i=this[o(0x203)][o(0x1f7)]({'pathParts':[o(0x1eb),o(0x1f0),'lib','services',f+'.'+h]});await this[o(0x203)]['template']({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1ff)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a139d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0x137))/0x1+-parseInt(f(0x13b))/0x2*(-parseInt(f(0x139))/0x3)+parseInt(f(0x135))/0x4+-parseInt(f(0x136))/0x5*(-parseInt(f(0x140))/0x6)+-parseInt(f(0x138))/0x7*(-parseInt(f(0x13f))/0x8)+parseInt(f(0x13d))/0x9*(parseInt(f(0x132))/0xa)+parseInt(f(0x133))/0xb*(-parseInt(f(0x13a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x34dc2));function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0x132;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(0x141)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0x13c)]()[h(0x134)]('(((.+)+)+)+$')['toString']()[h(0x142)](a139a)[h(0x134)](h(0x13e));});a139a();import'./translation.js';function a139c(){var i=['9pKaoJu','(((.+)+)+)+$','81376YyelKL','42JwPGSC','apply','constructor','1121110SefHyL','22HGDtSK','search','335124jaTpZB','276635oCwKwi','126119MkrJJV','49bYQIdF','151482gWtZZJ','3385332cwOToj','10vxlUwA','toString'];a139c=function(){return i;};return a139c();}import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(
|
|
1
|
+
const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x14a))/0x1*(-parseInt(i(0x138))/0x2)+-parseInt(i(0x13f))/0x3*(-parseInt(i(0x149))/0x4)+-parseInt(i(0x140))/0x5+parseInt(i(0x148))/0x6*(-parseInt(i(0x13b))/0x7)+parseInt(i(0x137))/0x8+parseInt(i(0x145))/0x9*(parseInt(i(0x14b))/0xa)+-parseInt(i(0x156))/0xb*(parseInt(i(0x13d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xebfa8));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0x146)]()[k(0x153)]('(((.+)+)+)+$')['toString']()[k(0x155)](a140a)[k(0x153)]('(((.+)+)+)+$');});a140a();function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x136;let f=c[d];return f;},a140d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a140c(){const o=['openssl.conf','1023597ZwERGQ','toString','sslconfig','8888910IJNgwH','8izAGWN','859804aiOvge','70sUPDAJ','getGlobalConfig','apply','openssl/openssl.conf','_keys','Generate\x20a\x20new\x20openssl\x20config\x20file','getMakaProjectConfig','error','search','fsi','constructor','2233066azveHS','withValue','12778304cbtjtD','4zACzfS','join','maka\x20g:sslconfig\x20--env\x20dev','7fCqYCp','create','48JCikET','service','1056207rNJDUb','7785440cyGgxR','maka\x20{generate,\x20g}:sslconfig','template','env'];a140c=function(){return o;};return a140c();}import a140e from'path';Generator[a140l(0x13c)]({'name':a140l(0x147),'usage':a140l(0x141),'shortDesc':a140l(0x150),'noNeedResource':!![],'requiredOpts':[a140l(0x143)],'examples':[a140l(0x13a)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this['fsi'][m(0x151)](),d=await this[m(0x154)][m(0x14c)](),f=this['fsi']['getAppConfigPath'](b['env']),g=a140e[m(0x139)](f,m(0x14f),m(0x144));await this[m(0x154)][m(0x136)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this['fsi'][n(0x142)]({'srcPath':n(0x14e),'destPath':g,'framework':n(0x13e),'context':h,'config':c});});}catch(h){Log[m(0x152)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=parseInt(x(0xc3))/0x1+-parseInt(x(0xb2))/0x2*(parseInt(x(0xb3))/0x3)+-parseInt(x(0xbe))/0x4*(-parseInt(x(0xb4))/0x5)+-parseInt(x(0xb1))/0x6*(parseInt(x(0xa2))/0x7)+parseInt(x(0xb7))/0x8+-parseInt(x(0xab))/0x9*(-parseInt(x(0xa6))/0xa)+-parseInt(x(0xb0))/0xb*(parseInt(x(0xae))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xd9ca6));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 y=a141d;return a141a['toString']()[y(0xc8)](y(0x97))[y(0x96)]()['constructor'](a141a)[y(0xc8)](y(0x97));});a141a();function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x8d;let f=c[d];return f;},a141d(a,b);}import{Generator}from'../../generator.js';function a141c(){const C=['locales','lang','export\x20{\x20default\x20as\x20','injectAtEndOfFile','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:translation','true','i18n/i18n.js','features.withTranslations','29666YObptH','fsi','pathFromApp','injectAtBeginningOfFile','23670cdSPQO','Generate\x20a\x20new\x20locale\x20translation','i18n.js','i18n/locales.js','client','5463IxIOpz','service','getGlobalConfig','2104620xjxPWT','server','44EKBUDY','1362MbCXzS','2thkJgH','4535907GjsMVp','5mUzKQi','translations','Locale\x20already\x20defined:\x20','9735624lsotVk','getMakaProjectConfig','i18next\x20i18next-browser-languagedetector\x20react-i18next','lib','grep','import\x20\x27../lib/services/translations/i18n\x27;\x0a','translation','1130792umUgzs','findAppDirectory','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','engines','withValue','1131185NpmPXA','i18next','isFile','warn','index.js','search','imports','error','import\x20\x27../lib/services/translations/i18n\x27;','default\x20as\x20','installNpmPackage','maka\x20g:translation\x20--lang=en\x20(default)','checkNpmPackage','exit','readFileSync','appName','template','startup','.js','create','toString','(((.+)+)+)+$','ssr'];a141c=function(){return C;};return a141c();}import{Log}from'../../tools/log/log.class.js';import a141e from'fs';Generator[a141z(0x95)]({'name':a141z(0xbd),'usage':a141z(0x9e),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141z(0x9a),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141z(0xa7),'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':[a141z(0x8d),'maka\x20g:translation\x20--lang=fr','maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this['fsi'][A(0xb8)](),d=this['fsi'][A(0xad)](),f=this[A(0xa3)][A(0xbf)]();await this[A(0xa3)][A(0xc2)](c,async()=>{const B=A;try{!b[B(0x9a)]&&(b[B(0x9a)]='en');!b['root']&&!this['fsi'][B(0x8e)](B(0xc4))&&(Log[B(0xc6)](B(0xc0)),this[B(0xa3)][B(0xcd)](B(0xb9),{'cwd':f}),this[B(0xa3)]['setProjectConfig'](B(0xa1),!![]));const g=this[B(0xa3)]['pathFromApp']({'pathParts':[B(0xc9),B(0x93),B(0xaa),B(0xc7)]}),h=this['fsi'][B(0x9d)]({'pathParts':[g],'config':c}),i=this[B(0xa3)][B(0xbb)](a141e[B(0x90)](h)['toString'](),B(0xcb))[0x0]&&!![];if(c['engines'][B(0x98)]===B(0x9f)){!i&&this[B(0xa3)][B(0xa5)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[B(0xa3)]['pathFromApp']({'pathParts':[B(0xc9),B(0x93),B(0xaf),'index.js']}),u=this['fsi'][B(0x9d)]({'pathParts':[t],'config':c}),v=this['fsi'][B(0xbb)](a141e[B(0x90)](u)[B(0x96)](),B(0xcb))[0x0]&&!![];!v&&this[B(0xa3)][B(0xa5)]({'filePath':u,'content':B(0xbc)});}else!i&&this[B(0xa3)][B(0xa5)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[B(0x91)],'config':c},k=this[B(0xa3)][B(0xa4)]({'pathParts':[B(0xc9),B(0x93),B(0xba),'services','translations',B(0xa8)]}),l=this[B(0xa3)][B(0xc5)](this['fsi'][B(0x9d)]({'pathParts':[k],'config':c}));!l&&await this[B(0xa3)][B(0x92)]({'srcPath':B(0xa0),'destPath':k,'framework':B(0xac),'context':j,'config':c});const m=this[B(0xa3)][B(0xa4)]({'pathParts':[B(0xc9),B(0x93),'lib','services',B(0xb5),B(0x99),b['lang']+B(0x94)]}),n=this[B(0xa3)][B(0x9d)]({'pathParts':[m],'config':c}),o=this[B(0xa3)][B(0xc5)](n);!o?await this['fsi'][B(0x92)]({'srcPath':B(0xa9),'destPath':m,'framework':B(0xac),'context':j,'config':c}):Log['warn'](B(0xb6)+n);const p=this[B(0xa3)]['pathFromApp']({'pathParts':['imports',B(0x93),'lib','services',B(0xb5),'locales','index.'+c[B(0xc1)]['js']]}),q=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[B(0xa3)]['isFile'](q);!r&&await this['fsi']['template']({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this[B(0xa3)][B(0xbb)](a141e[B(0x90)](p)[B(0x96)](),B(0xcc)+b[B(0x9a)])[0x0]&&!![];!s?await this[B(0xa3)][B(0x9c)]({'filePath':p,'content':B(0x9b)+b[B(0x9a)]+'\x20}\x20from\x20\x27./'+b[B(0x9a)]+'\x27;'}):Log[B(0xc6)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[B(0xca)](w),process[B(0x8f)](0x1);}});}catch(g){Log[A(0xca)](g),process[A(0x8f)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a142c(){const n=['MAKA_COMMAND_PATH','--max-old-space-size=','search','dirname','floor','349558jGEvnB','env','slice','totalmem','camelizeKeys','(((.+)+)+)+$','775096OSeWNC','1900605AhfDQk','9isOFZi','105255pTpCOk','stringify','url','20BWoUAB','1199484DuspeO','2XdgMfB','TOOL_NODE_FLAGS','toString','parse','constructor','846368SnxMuo','5607590pFkiFW','apply','22XyXFBs','argv'];a142c=function(){return n;};return a142c();}const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0xc6))/0x1*(-parseInt(j(0xb7))/0x2)+parseInt(j(0xcf))/0x3*(parseInt(j(0xb5))/0x4)+parseInt(j(0xcd))/0x5+parseInt(j(0xb6))/0x6+parseInt(j(0xcc))/0x7+parseInt(j(0xbc))/0x8*(parseInt(j(0xce))/0x9)+parseInt(j(0xbd))/0xa*(-parseInt(j(0xbf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x30d58));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0xb9)]()['search'](l(0xcb))[l(0xb9)]()[l(0xbb)](a142a)[l(0xc3)]('(((.+)+)+)+$');});a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0xb5;let f=c[d];return f;},a142d(a,b);}import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a142m(0xd1)]),__dirname=a142g[a142m(0xc4)](__filename);global[a142m(0xc1)]=__dirname;const total_memory=a142f[a142m(0xc9)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142m(0xc5)](total_mem_in_mb),process[a142m(0xc7)][a142m(0xb8)]=a142m(0xc2)+total_mem_in_mb,process[a142m(0xc7)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process[a142m(0xc7)]['NODE_NO_WARNINGS']='1';const argv=a142e(process[a142m(0xc0)][a142m(0xc8)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0xba)](JSON[a142m(0xd0)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0xca)](deepCopyArgv);a142i['run'](args,opts);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { Meteor } from 'meteor/meteor';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import ReactDOM from 'react-dom/client';
|
|
5
|
-
import { browserHistory } from 'react-router';
|
|
6
5
|
<% if (config.engines.graphql === 'apollo') { %>
|
|
7
6
|
// Apollo Client configuration
|
|
8
7
|
import {
|
|
@@ -72,7 +71,7 @@ const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
|
72
71
|
<ApolloHooksProvider client={client}><% } %><% if (config.engines.theme === 'material') { %>
|
|
73
72
|
<ThemeProvider theme={theme}>
|
|
74
73
|
<CssBaseline /><% } %>
|
|
75
|
-
<AppRoutes
|
|
74
|
+
<AppRoutes /><% if (config.engines.theme === 'material') { %>
|
|
76
75
|
</ThemeProvider><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
77
76
|
</ApolloHooksProvider>
|
|
78
77
|
</ApolloProvider><% } %><% if (config.engines.ssr === 'true') { %>
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { Meteor } from 'meteor/meteor';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as ReactDOM from 'react-dom/client';
|
|
5
|
-
import { browserHistory } from 'react-router';
|
|
6
5
|
<% if (config.engines.graphql === 'apollo') { %>
|
|
7
6
|
// Apollo Client configuration
|
|
8
7
|
import {
|
|
@@ -73,7 +72,7 @@ const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
|
73
72
|
<ApolloHooksProvider client={client}><% } %><% if (config.engines.theme === 'material') { %>
|
|
74
73
|
<ThemeProvider theme={theme}>
|
|
75
74
|
<CssBaseline /><% } %>
|
|
76
|
-
<AppRoutes
|
|
75
|
+
<AppRoutes /><% if (config.engines.theme === 'material') { %>
|
|
77
76
|
</ThemeProvider><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
78
77
|
</ApolloHooksProvider>
|
|
79
78
|
</ApolloProvider><% } %><% if (config.engines.ssr === 'true') { %>
|
|
@@ -236,20 +236,32 @@ export const AuthProvider = ({ children, timeoutDuration = 3600000 }) => {
|
|
|
236
236
|
logoutTimer = setTimeout(logout, timeoutDuration);
|
|
237
237
|
};
|
|
238
238
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
setLoading(true);
|
|
244
|
-
const renewedUser = loginUserWithToken();
|
|
245
|
-
if (renewedUser) {
|
|
246
|
-
setCurrentUser(renewedUser);
|
|
239
|
+
const checkUserAndSetData = async () => {
|
|
240
|
+
if (currentUser) {
|
|
241
|
+
// Assuming currentUser is a promise, await it
|
|
242
|
+
const user = await currentUser;
|
|
247
243
|
setLogoutTimer();
|
|
248
|
-
fetchUserAuthorizations(
|
|
244
|
+
fetchUserAuthorizations(user);
|
|
249
245
|
} else {
|
|
250
|
-
|
|
246
|
+
setLoading(true);
|
|
247
|
+
try {
|
|
248
|
+
const renewedUser = await loginUserWithToken();
|
|
249
|
+
if (renewedUser) {
|
|
250
|
+
setCurrentUser(renewedUser);
|
|
251
|
+
setLogoutTimer();
|
|
252
|
+
fetchUserAuthorizations(renewedUser);
|
|
253
|
+
} else {
|
|
254
|
+
setUserAuthorizations([]);
|
|
255
|
+
}
|
|
256
|
+
} catch (error) {
|
|
257
|
+
setUserAuthorizations([]);
|
|
258
|
+
} finally {
|
|
259
|
+
setLoading(false);
|
|
260
|
+
}
|
|
251
261
|
}
|
|
252
|
-
}
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
checkUserAndSetData();
|
|
253
265
|
|
|
254
266
|
return () => {
|
|
255
267
|
clearTimeout(logoutTimer);
|
|
@@ -262,7 +262,7 @@ export const AuthProvider = ({ children, timeoutDuration = 3600000 }: AuthProvid
|
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
useEffect(() => {
|
|
265
|
-
let logoutTimer
|
|
265
|
+
let logoutTimer;
|
|
266
266
|
|
|
267
267
|
const setLogoutTimer = () => {
|
|
268
268
|
if (logoutTimer) {
|
|
@@ -271,21 +271,32 @@ export const AuthProvider = ({ children, timeoutDuration = 3600000 }: AuthProvid
|
|
|
271
271
|
logoutTimer = setTimeout(logout, timeoutDuration);
|
|
272
272
|
};
|
|
273
273
|
|
|
274
|
-
|
|
275
|
-
setLogoutTimer();
|
|
276
|
-
fetchUserAuthorizations(currentUser); // Fetch permissions when a user logs in
|
|
277
|
-
} else {
|
|
278
|
-
setLoading(true);
|
|
279
|
-
// attempt to re-authenticate the user
|
|
280
|
-
const renewedUser = loginUserWithToken();
|
|
274
|
+
const checkUserAndSetData = async () => {
|
|
281
275
|
if (currentUser) {
|
|
282
|
-
|
|
276
|
+
// Assuming currentUser is a promise, await it
|
|
277
|
+
const user = await currentUser;
|
|
283
278
|
setLogoutTimer();
|
|
284
|
-
fetchUserAuthorizations(
|
|
279
|
+
fetchUserAuthorizations(user);
|
|
285
280
|
} else {
|
|
286
|
-
|
|
281
|
+
setLoading(true);
|
|
282
|
+
try {
|
|
283
|
+
const renewedUser = await loginUserWithToken();
|
|
284
|
+
if (renewedUser) {
|
|
285
|
+
setCurrentUser(renewedUser);
|
|
286
|
+
setLogoutTimer();
|
|
287
|
+
fetchUserAuthorizations(renewedUser);
|
|
288
|
+
} else {
|
|
289
|
+
setUserAuthorizations([]);
|
|
290
|
+
}
|
|
291
|
+
} catch (error) {
|
|
292
|
+
setUserAuthorizations([]);
|
|
293
|
+
} finally {
|
|
294
|
+
setLoading(false);
|
|
295
|
+
}
|
|
287
296
|
}
|
|
288
|
-
}
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
checkUserAndSetData();
|
|
289
300
|
|
|
290
301
|
return () => {
|
|
291
302
|
clearTimeout(logoutTimer);
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { Container, Paper, Typography, TextField, Button } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicForgotPasswordPage = () => {
|
|
6
6
|
const { forgotPassword } = useContext(AuthContext);
|
|
7
|
+
const navigate = useNavigate();
|
|
8
|
+
|
|
7
9
|
const handleSubmit = async (event) => {
|
|
8
10
|
event.preventDefault();
|
|
9
11
|
const { email } = event.target;
|
|
10
12
|
await forgotPassword(email.value);
|
|
11
|
-
|
|
13
|
+
navigate('/');
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
return (
|
|
@@ -21,7 +23,7 @@ export const BasicForgotPasswordPage = () => {
|
|
|
21
23
|
<Button type="submit" fullWidth variant="contained" color="primary" style={{ margin: '20px 0' }}>
|
|
22
24
|
Send Password Reset Email
|
|
23
25
|
</Button>
|
|
24
|
-
<Button onClick={() =>
|
|
26
|
+
<Button onClick={() => navigate('/login')} fullWidth>
|
|
25
27
|
Back to Login
|
|
26
28
|
</Button>
|
|
27
29
|
</form>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { Container, Paper, Typography, TextField, Button } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicForgotPasswordPage = () => {
|
|
6
6
|
const { forgotPassword } = useContext(AuthContext);
|
|
7
|
+
const navigate = useNavigate();
|
|
8
|
+
|
|
7
9
|
const handleSubmit = async (event) => {
|
|
8
10
|
event.preventDefault();
|
|
9
11
|
const { email } = event.target;
|
|
10
12
|
await forgotPassword(email.value);
|
|
11
|
-
|
|
13
|
+
navigate('/');
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
return (
|
|
@@ -21,7 +23,7 @@ export const BasicForgotPasswordPage = () => {
|
|
|
21
23
|
<Button type="submit" fullWidth variant="contained" color="primary" style={{ margin: '20px 0' }}>
|
|
22
24
|
Send Password Reset Email
|
|
23
25
|
</Button>
|
|
24
|
-
<Button onClick={() =>
|
|
26
|
+
<Button onClick={() => navigate('/login')} fullWidth>
|
|
25
27
|
Back to Login
|
|
26
28
|
</Button>
|
|
27
29
|
</form>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import { Container, Paper, Typography, TextField, Button, Grid, Link } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicLoginPage = () => {
|
|
6
6
|
const { currentUser, login } = useContext(AuthContext);
|
|
7
|
-
|
|
7
|
+
const navigate = useNavigate();
|
|
8
8
|
useEffect(() => {
|
|
9
9
|
if (currentUser) {
|
|
10
|
-
|
|
10
|
+
navigate('/logout');
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ export const BasicLoginPage = () => {
|
|
|
17
17
|
const user = await login({ username: email.value, password: password.value });
|
|
18
18
|
|
|
19
19
|
if (user) {
|
|
20
|
-
|
|
20
|
+
navigate('/');
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -34,12 +34,12 @@ export const BasicLoginPage = () => {
|
|
|
34
34
|
</Button>
|
|
35
35
|
<Grid container>
|
|
36
36
|
<Grid item xs>
|
|
37
|
-
<Link href="#" onClick={() =>
|
|
37
|
+
<Link href="#" onClick={() => navigate('/forgot-password')} variant="body2">
|
|
38
38
|
Forgot password?
|
|
39
39
|
</Link>
|
|
40
40
|
</Grid>
|
|
41
41
|
<Grid item>
|
|
42
|
-
<Link href="#" onClick={() =>
|
|
42
|
+
<Link href="#" onClick={() => navigate('/register')} variant="body2">
|
|
43
43
|
Don't have an account? Sign Up
|
|
44
44
|
</Link>
|
|
45
45
|
</Grid>
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import { Container, Paper, Typography, TextField, Button, Grid, Link } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicLoginPage = () => {
|
|
6
6
|
const { currentUser, login } = useContext(AuthContext);
|
|
7
|
-
|
|
7
|
+
const navigate = useNavigate();
|
|
8
8
|
useEffect(() => {
|
|
9
9
|
if (currentUser) {
|
|
10
|
-
|
|
10
|
+
navigate('/logout');
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
const handleLogin = async (event: React.FormEvent<HTMLFormElement>) => {
|
|
14
|
+
const handleLogin = async (event) => {
|
|
16
15
|
event.preventDefault();
|
|
17
16
|
const { email, password } = event.target;
|
|
18
17
|
const user = await login({ username: email.value, password: password.value });
|
|
19
18
|
|
|
20
19
|
if (user) {
|
|
21
|
-
|
|
20
|
+
navigate('/');
|
|
22
21
|
}
|
|
23
22
|
};
|
|
24
23
|
|
|
@@ -35,12 +34,12 @@ export const BasicLoginPage = () => {
|
|
|
35
34
|
</Button>
|
|
36
35
|
<Grid container>
|
|
37
36
|
<Grid item xs>
|
|
38
|
-
<Link href="#" onClick={() =>
|
|
37
|
+
<Link href="#" onClick={() => navigate('/forgot-password')} variant="body2">
|
|
39
38
|
Forgot password?
|
|
40
39
|
</Link>
|
|
41
40
|
</Grid>
|
|
42
41
|
<Grid item>
|
|
43
|
-
<Link href="#" onClick={() =>
|
|
42
|
+
<Link href="#" onClick={() => navigate('/register')} variant="body2">
|
|
44
43
|
Don't have an account? Sign Up
|
|
45
44
|
</Link>
|
|
46
45
|
</Grid>
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { Container, Paper, Button, Typography } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicLogoutPage = () => {
|
|
6
6
|
const { logout } = useContext(AuthContext);
|
|
7
|
+
const navigate = useNavigate();
|
|
7
8
|
|
|
8
9
|
const handleLogout = async (event) => {
|
|
9
10
|
event.preventDefault();
|
|
10
11
|
await logout();
|
|
11
|
-
|
|
12
|
+
navigate('/');
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
return (
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { Container, Paper, Button, Typography } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
4
|
|
|
5
5
|
export const BasicLogoutPage = () => {
|
|
6
6
|
const { logout } = useContext(AuthContext);
|
|
7
|
+
const navigate = useNavigate();
|
|
7
8
|
|
|
8
|
-
const handleLogout = async (event
|
|
9
|
+
const handleLogout = async (event) => {
|
|
9
10
|
event.preventDefault();
|
|
10
11
|
await logout();
|
|
11
|
-
|
|
12
|
+
navigate('/');
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
return (
|