@maka/maka-cli 4.13.19 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +5 -4
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +5 -4
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +24 -43
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +25 -44
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +24 -43
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +25 -44
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +2 -2
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +2 -2
- package/bundle/obf/src/templates/react/component/component.js.jsx +4 -1
- package/bundle/obf/src/templates/react/component/component.js.tsx +4 -1
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +4 -2
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +4 -1
- package/bundle/obf/src/templates/react/route/route.js.jsx +2 -5
- package/bundle/obf/src/templates/react/route/route.js.tsx +2 -5
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a135u=a135d;function a135c(){const x=['apply','17068887mRxBcC','template/template.css','fsi','hook/hook.js','constructor','withValue','resourceName','theme','engines','Generate\x20a\x20page.','injectAtBeginningOfFile','slice','<Route\x20index','findAppDirectory','template','setTemplate','7253043vcSdtZ','includes','split','\x22\x20element={<Component.','graphql','react','565453NnDXqT','193422tMvDxI','warn','3047938vjWbeq','2300061jEMVmo','none','ramda','search','maka\x20g:page\x20todos/todos-item','<Route\x20element={<PrivateRoute\x20/>}>','withHooks','\x27;\x0a','</Route>','(((.+)+)+)+$','injectIntoFile','html','create','lib','assign','hasOwnProperty','routes.','checkNpmPackage','<Route\x20path=\x22','withTranslations','css','test/test.js','.html','90laTUvq','injectTemplateModule','client','import\x20\x27./','fileName','pathFromProject','private','string','endsWith','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','store','dir','6197125SxcHkN','205yuKHtr','substring','replaceAll','layout','8LVTYSm','features','component','api','getMakaProjectConfig','.js','true','replace','toLowerCase','toString','/>}/>\x0a','test','join','8alesRH','root','indexOf','trim','ssr'];a135c=function(){return x;};return a135c();}(function(a,b){const r=a135d,c=a();while(!![]){try{const d=parseInt(r(0x18c))/0x1+-parseInt(r(0x18f))/0x2+-parseInt(r(0x190))/0x3*(parseInt(r(0x170))/0x4)+-parseInt(r(0x1b4))/0x5*(-parseInt(r(0x18d))/0x6)+-parseInt(r(0x186))/0x7+parseInt(r(0x1b8))/0x8*(-parseInt(r(0x176))/0x9)+parseInt(r(0x1a7))/0xa*(parseInt(r(0x1b3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xec356));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a135d;if(c){const e=c[s(0x175)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const t=a135d;return a135a[t(0x16c)]()[t(0x193)](t(0x199))[t(0x16c)]()[t(0x17a)](a135a)[t(0x193)](t(0x199));});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x165;let f=c[d];return f;},a135d(a,b);}const aliases=['p'];Generator[a135u(0x19c)]({'name':'page','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a135u(0x17f),'validOpts':[{'name':a135u(0x1ad),'boolFlag':!![]}],'examples':[a135u(0x194)]},async function(a,b){const v=a135u,c='/imports/ui/pages',d=this[v(0x178)][v(0x183)](),e=b[v(0x17c)][v(0x187)](':')?b['resourceName'][v(0x188)](':')[0x0][v(0x173)]():b['resourceName'][v(0x173)](),f=b['dir']['replaceAll']('/','_')+'_'+e[v(0x1b6)]('/','_'),g=this[v(0x178)]['pathFromApp']({'pathParts':[c,b[v(0x1b2)],paramCase(f),paramCase(f)]}),h=this[v(0x178)][v(0x167)]();let i='';return await this[v(0x178)][v(0x17b)](h,async()=>{const w=v;typeof h['template']['html']==='string'&&(h[w(0x184)][w(0x19b)]=h['template'][w(0x19b)]==='true'?!![]:![],this[w(0x178)]['setTemplate'](w(0x19b),h[w(0x184)][w(0x19b)]));typeof h[w(0x184)][w(0x16e)]===w(0x1ae)&&(h[w(0x184)]['test']=h[w(0x184)][w(0x16e)]==='true'?!![]:![],this[w(0x178)][w(0x185)]('test',h[w(0x184)]['test']));typeof h['template'][w(0x1a4)]===w(0x1ae)&&(h['template'][w(0x1a4)]=h[w(0x184)][w(0x1a4)]==='true'?!![]:![],this['fsi'][w(0x185)](w(0x1a4),h[w(0x184)][w(0x1a4)]));typeof h['template']['js']===w(0x1ae)&&(h[w(0x184)]['js']=h[w(0x184)]['js']===w(0x169)?!![]:![],this[w(0x178)]['setTemplate']('js',h[w(0x184)]['js']));!h[w(0x1b9)]&&(h[w(0x1b9)]={});!b[w(0x171)]&&!this[w(0x178)][w(0x1a1)](w(0x192))&&(Log[w(0x18e)]('Updating\x20npm\x20packages\x20...'),this[w(0x178)]['installNpmPackage'](w(0x192),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a135e['relative'](this[w(0x178)][w(0x1ac)]({}),g),'cssCaseName':paramCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':paramCase(f),'graphql':h[w(0x17e)][w(0x18a)],'features':h['features'],'client':h[w(0x17e)]['client'],'api':h[w(0x17e)][w(0x166)],'ssr':h[w(0x17e)]['ssr'],'isStore':b[w(0x19f)](w(0x1b1)),'isComponent':b[w(0x19f)](w(0x165)),'isLayout':b['hasOwnProperty'](w(0x1b7)),'withTranslations':h['features'][w(0x1a3)],'test':h['engines']['test'],'theme':h[w(0x17e)][w(0x17d)]};h[w(0x184)][w(0x19b)]&&await this['fsi']['template']({'srcPath':'template/template.html','destPath':g+w(0x1a6),'context':j,'config':h});console['log'](h[w(0x1b9)]);h['features']?.[w(0x196)]?await this[w(0x178)][w(0x184)]({'srcPath':w(0x179),'destPath':g+w(0x168),'framework':w(0x18b),'context':j,'config':h}):await this['fsi'][w(0x184)]({'srcPath':'component/component.js','destPath':g+'.js','framework':w(0x18b),'context':j,'config':h});h['engines']['test']!==w(0x191)&&await this['fsi'][w(0x184)]({'srcPath':w(0x1a5),'destPath':g+'.app-tests.js','framework':'react','context':j,'config':h});h[w(0x184)][w(0x1a4)]&&await this[w(0x178)][w(0x184)]({'srcPath':w(0x177),'destPath':g+'.css','context':Object[w(0x19e)]({},j,{'className':paramCase(b[w(0x17c)])}),'config':h});h[w(0x17e)][w(0x1a9)]!=='react'&&h[w(0x17e)]['client']!=='vanilla'?(h[w(0x184)][w(0x1a4)]&&await this[w(0x178)][w(0x180)]({'filePath':g+'.'+h[w(0x17e)]['js'],'content':w(0x1aa)+j[w(0x1ab)]+'.'+h[w(0x17e)][w(0x19b)]+w(0x197)+'import\x20\x27./'+j[w(0x1ab)]+'.'+h[w(0x17e)][w(0x1a4)]+'\x27;'}),!h[w(0x184)][w(0x1a4)]&&await this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[w(0x17e)]['js'],'content':w(0x1aa)+j[w(0x1ab)]+'.'+h[w(0x17e)][w(0x19b)]+'\x27;'})):h['template'][w(0x1a4)]&&await this[w(0x178)][w(0x180)]({'filePath':g+'.'+h['engines']['js'],'content':w(0x1aa)+j[w(0x1ab)]+'.'+h['engines'][w(0x1a4)]+'\x27;'});const k=b[w(0x1b2)]?'/'+b['dir']+'/':'/';i=''+c+k+j[w(0x1ab)]+'/'+j[w(0x1ab)],await this[w(0x178)][w(0x1a8)](j['className'],h,i);if(!b[w(0x171)]){const l=b[w(0x1ad)]??![];if(!f){Log['error'](w(0x1b0));throw new UsageError();}let m='/'+b['dir'][w(0x173)]()+'/'+b[w(0x17c)][w(0x173)]()[w(0x16a)](/\\/g,'/')[w(0x16a)](/\/+$/,'')[w(0x16b)]();const n=b[w(0x17c)][w(0x172)](':');n!==-0x1&&(m+='/'+b[w(0x17c)][w(0x1b5)](0x0,n)['trim']());m[w(0x1af)]('/')&&(m=m[w(0x181)](0x0,-0x1));m=m[w(0x16a)](/\/\//g,'/');const o=h[w(0x17e)]['js'],p=h[w(0x17e)][w(0x174)]===w(0x169)?w(0x19d):w(0x1a9),q=a135e[w(0x16f)](d,'imports','startup',p,w(0x1a0)+o);l?await this[w(0x178)][w(0x19a)]({'filePath':q,'content':w(0x1a2)+m+w(0x189)+pascalCase(f)+w(0x16d),'begin':[w(0x195)],'end':[w(0x198)]}):await this[w(0x178)]['injectIntoFile']({'filePath':q,'content':w(0x1a2)+m+w(0x189)+pascalCase(f)+w(0x16d),'begin':[w(0x182)],'end':['<Route\x20path=\x22*\x22']});}}),i+'.'+h[v(0x17e)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a136o=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0xaa))/0x1*(-parseInt(m(0xa8))/0x2)+-parseInt(m(0xb7))/0x3*(-parseInt(m(0xba))/0x4)+-parseInt(m(0xb4))/0x5*(parseInt(m(0xc7))/0x6)+-parseInt(m(0xb0))/0x7+-parseInt(m(0xca))/0x8*(parseInt(m(0xbd))/0x9)+-parseInt(m(0xae))/0xa+parseInt(m(0xbf))/0xb*(parseInt(m(0xb6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x385ea));const a136b=(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;};}()),a136a=a136b(this,function(){const n=a136d;return a136a[n(0xc5)]()[n(0xc4)](n(0xb8))['toString']()['constructor'](a136a)['search'](n(0xb8));});a136a();import{paramCase,pascalCase}from'change-case';function a136c(){const r=['maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','dir','tsx','search','toString','baseDir','15036teqfNw','appPathPrefix','engines','1477736qEgFfF','server','569858RRfCiE','getMakaProjectConfig','1XAaWOi','withValue','imports','resourceName','2671990NezCcb','import\x20\x27./publications','2942877GfFKGj','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','error','publish','680eQFVCs','publish/publish.js','24RcBUkJ','92787lOKdML','(((.+)+)+)+$','startup','28xZzUpf','maka\x20g:publish\x20todos','fsi','18xGYHnu','pathFromApp','6200249tERYqh','create'];a136c=function(){return r;};return a136c();}import{Generator}from'../generator.js';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0xa8;let f=c[d];return f;},a136d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a136o(0xc0)]({'name':a136o(0xb3),'aliases':['p'],'usage':a136o(0xc1),'shortDesc':a136o(0xb1),'validOpts':['force','globalPublish'],'examples':[a136o(0xbb)]},async function(a,b){const p=a136o;try{const c=b['force']||![],d=b[p(0xc6)]?'/imports/ui/'+b[p(0xc6)]:'/imports/startup/server/publications',f=this['fsi'][p(0xa9)](),g=paramCase(b[p(0xad)]),h=this['fsi'][p(0xbe)]({'pathParts':[d,b[p(0xc2)],'',g]});let i='js';f[p(0xc9)]['js']===p(0xc3)&&(i='ts');await this[p(0xbc)][p(0xab)](f,async()=>{const q=p,l={'name':b[q(0xad)],'collection':pascalCase(b['resourceName']),'noRename':!![],'globalPublish':b['globalPublish']};await this[q(0xbc)]['template']({'srcPath':q(0xb5),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[p(0xbc)]['pathFromApp']({'pathParts':[p(0xac),p(0xb9),p(0xcb),b[p(0xc8)],'index.'+f[p(0xc9)]['js']]}),k=b['dir']?'/'+b[p(0xc2)]+'/':'/';return await this[p(0xbc)]['injectAtEndOfFile']({'filePath':j,'content':p(0xaf)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[p(0xb2)](l),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a137p=a137d;function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x1a7;let f=c[d];return f;},a137d(a,b);}(function(a,b){const m=a137d,c=a();while(!![]){try{const d=parseInt(m(0x1c8))/0x1+-parseInt(m(0x1cf))/0x2*(parseInt(m(0x1c1))/0x3)+-parseInt(m(0x1a7))/0x4+-parseInt(m(0x1a9))/0x5+-parseInt(m(0x1c7))/0x6+-parseInt(m(0x1c4))/0x7+parseInt(m(0x1ae))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xd31e2));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a137d;if(c){const e=c[n(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const o=a137d;return a137a[o(0x1ac)]()[o(0x1cb)](o(0x1ba))[o(0x1ac)]()[o(0x1b7)](a137a)[o(0x1cb)]('(((.+)+)+)+$');});a137a();import a137e from'path';import{Generator}from'../generator.js';function a137c(){const s=['(((.+)+)+)+$','pop','</Route>','imports','\x22\x20element={Component.','create','ssr','489rORHuI','lib','<Route\x20path=\x22*\x22','10973144qFVnNR','private','replace','8415036RclHwV','954416dFGNZS','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','engines','search','length','}/>\x0a','join','8062sidfVO','filter','startup','5840540CteTIF','page','4048340MDeVWJ','fsi','<Route\x20element={<PrivateRoute\x20/>}>','toString','maka\x20{generate,\x20g}:{route,\x20r}\x20--path\x20/some/path\x20--page\x20<target-page>\x20','46458208sfJgPL','getMakaProjectConfig','resourceName','route','apply','injectIntoFile','error','client','<Route\x20path=\x22','constructor','exit','withValue'];a137c=function(){return s;};return a137c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator[a137p(0x1bf)]({'name':a137p(0x1b1),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a137p(0x1c5),'boolFlag':!![]},{'name':'route'},{'name':a137p(0x1a8)}],'usage':a137p(0x1ad),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[]},async function(a,b){const q=a137p;try{const c=this[q(0x1aa)][q(0x1af)](),d=this['fsi']['findAppDirectory']();await this[q(0x1aa)][q(0x1b9)](c,async()=>{const r=q,f=b[r(0x1c5)]??![];let g=b[r(0x1b0)]['split']('/')[r(0x1bb)]();if(!g){Log[r(0x1b4)](r(0x1c9));throw new UsageError();}g=pascalCase(g);let h=b['route']?'/'+b[r(0x1b1)]:'/'+b[r(0x1b0)][r(0x1c6)](/\\/g,'/')['toLowerCase']();a[r(0x1cc)]>0x1&&(h='/'+a[r(0x1d0)](function(l){return l!=='/';})[r(0x1ce)]('/')['toLowerCase']());h=h[r(0x1c6)](/\/\//g,'/');const i=c[r(0x1ca)]['js'],j=c[r(0x1c0)]?r(0x1c2):r(0x1b5),k=a137e['join'](d,r(0x1bd),r(0x1d1),j,'routes.'+i);f?await this[r(0x1aa)][r(0x1b3)]({'filePath':k,'content':r(0x1b6)+h+r(0x1be)+g+r(0x1cd),'begin':[r(0x1ab)],'end':[r(0x1bc)]}):await this[r(0x1aa)][r(0x1b3)]({'filePath':k,'content':r(0x1b6)+h+'\x22\x20element={Component.'+g+'}/>\x0a','begin':['<Route\x20index'],'end':[r(0x1c3)]});});}catch(f){Log['error'](f),process[q(0x1b8)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a138m=a138d;(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0x1db))/0x1*(parseInt(j(0x1d6))/0x2)+parseInt(j(0x1dc))/0x3*(parseInt(j(0x1fd))/0x4)+-parseInt(j(0x1e1))/0x5*(parseInt(j(0x1d9))/0x6)+parseInt(j(0x1f7))/0x7*(parseInt(j(0x1f8))/0x8)+parseInt(j(0x1f2))/0x9*(parseInt(j(0x1fa))/0xa)+-parseInt(j(0x1da))/0xb*(parseInt(j(0x1dd))/0xc)+-parseInt(j(0x1eb))/0xd*(parseInt(j(0x1ea))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x76613));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a['toString']()[l(0x1d8)]('(((.+)+)+)+$')[l(0x1d7)]()[l(0x1de)](a138a)[l(0x1d8)]('(((.+)+)+)+$');});a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a138d(a,b);}Generator[a138m(0x1f9)]({'name':a138m(0x1f0),'aliases':[a138m(0x1fb)],'usage':a138m(0x1ee),'shortDesc':a138m(0x1fc),'requiredOpts':[{'name':a138m(0x1f3),'values':[a138m(0x1f1)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0x1ec)]},async function(a,b){const n=a138m;try{const c=this[n(0x1e4)][n(0x1f6)]();await this[n(0x1e4)]['withValue'](c,async()=>{const o=n,d=this['fsi'][o(0x1f4)]({}),f=paramCase(b[o(0x1e0)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0x1e0)]),'type':b[o(0x1f3)],'engine':c[o(0x1e6)]['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x1d5)&&(h='ts');if(b[o(0x1f3)]==='logger'){!this[o(0x1e4)][o(0x1ed)](o(0x1e7))&&await this[o(0x1e4)][o(0x1e9)](o(0x1e3),{'cwd':d,'msg':'Installing\x20winston'});const i=this[o(0x1e4)][o(0x1f4)]({'pathParts':[o(0x1ef),o(0x1e5),o(0x1d4),o(0x1e8),f+'.'+h]});await this[o(0x1e4)][o(0x1e2)]({'srcPath':o(0x1f5),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});function a138c(){const p=['407GUDWmy','59259zrLFkA','6LjZHYn','38436OzGage','constructor','apply','resourceName','215SVdNge','template','winston\x20setimmediate','fsi','startup','engines','winston','services','installNpmPackage','2022594OHdTTG','26HuHiTW','maka\x20g:svc\x20service-logger\x20--type=logger','checkNpmPackage','maka\x20{generate,\x20g}:{service}\x20<resource-name>','imports','service','logger','45OFRSAC','type','pathFromApp','service/logger/logger.js','getMakaProjectConfig','627053xVoogg','80JlUnUO','create','430gKxuHl','svc','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','1560376YVFxxr','lib','tsx','4PjXvlb','toString','search','92838OaCqyj'];a138c=function(){return p;};return a138c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a139d,c=a();while(!![]){try{var d=-parseInt(f(0xa5))/0x1+-parseInt(f(0x9d))/0x2*(-parseInt(f(0xa6))/0x3)+parseInt(f(0xa1))/0x4+parseInt(f(0x9e))/0x5*(parseInt(f(0xa7))/0x6)+-parseInt(f(0x9a))/0x7*(parseInt(f(0xa8))/0x8)+parseInt(f(0x9c))/0x9+-parseInt(f(0x9f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x210d6));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xa0)]()['search'](h(0x9b))[h(0xa0)]()[h(0xa4)](a139a)[h(0xa2)](h(0x9b));});a139a();import'./translation.js';function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0x9a;var f=c[d];return f;},a139d(a,b);}import'./openssl.js';function a139c(){var i=['4827220OdwzrF','toString','782936aQuODm','search','apply','constructor','12808Qcrnfj','879QXDToI','30gimhEE','112472HgWJxH','63yiJmRW','(((.+)+)+)+$','1803924TfSMbi','1182UaJWst','188110qVlVoL'];a139c=function(){return i;};return a139c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-
|
|
1
|
+
function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x111;let f=c[d];return f;},a140d(a,b);}const a140l=a140d;function a140c(){const o=['create','constructor','getAppConfigPath','42831cEHCgJ','openssl.conf','(((.+)+)+)+$','71195OwAVOt','fsi','env','toString','170QXXfXB','join','sslconfig','openssl/openssl.conf','576746KjqsMq','template','getMakaProjectConfig','withValue','service','search','error','getGlobalConfig','_keys','582qnDPqp','maka\x20g:sslconfig\x20--env\x20dev','8200489nAHWUY','8394JtHwOb','664zbkfHH','5053760BgYDst','apply','2swtpAD','Generate\x20a\x20new\x20openssl\x20config\x20file','30387dXcnvs'];a140c=function(){return o;};return a140c();}(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x111))/0x1*(parseInt(i(0x122))/0x2)+parseInt(i(0x12e))/0x3*(parseInt(i(0x12f))/0x4)+parseInt(i(0x11a))/0x5+parseInt(i(0x12b))/0x6*(parseInt(i(0x113))/0x7)+-parseInt(i(0x130))/0x8+parseInt(i(0x117))/0x9*(-parseInt(i(0x11e))/0xa)+parseInt(i(0x12d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x56e4a));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x131)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a[k(0x11d)]()[k(0x127)](k(0x119))['toString']()[k(0x115)](a140a)['search'](k(0x119));});a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator[a140l(0x114)]({'name':a140l(0x120),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a140l(0x112),'noNeedResource':!![],'requiredOpts':[a140l(0x11c)],'examples':[a140l(0x12c)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0x11b)][m(0x124)](),d=await this[m(0x11b)][m(0x129)](),f=this[m(0x11b)][m(0x116)](b[m(0x11c)]),g=a140e[m(0x11f)](f,m(0x12a),m(0x118));await this[m(0x11b)][m(0x125)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0x11b)][n(0x123)]({'srcPath':n(0x121),'destPath':g,'framework':n(0x126),'context':h,'config':c});});}catch(h){Log[m(0x128)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a141A=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d
|
|
1
|
+
const a141A=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=parseInt(x(0x70))/0x1+parseInt(x(0x71))/0x2*(parseInt(x(0x7d))/0x3)+parseInt(x(0x8b))/0x4*(parseInt(x(0x8a))/0x5)+parseInt(x(0x79))/0x6*(-parseInt(x(0x94))/0x7)+parseInt(x(0x85))/0x8+-parseInt(x(0xa6))/0x9*(-parseInt(x(0x80))/0xa)+-parseInt(x(0x9c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x92075));const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a141d;if(c){const e=c[y(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const z=a141d;return a141a[z(0x87)]()[z(0x6f)](z(0xb4))[z(0x87)]()[z(0x8f)](a141a)[z(0x6f)](z(0xb4));});function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x6e;let f=c[d];return f;},a141d(a,b);}a141a();function a141c(){const D=['190hXgUCc','template','import\x20\x27../lib/services/translations/i18n\x27;','maka\x20g:translation\x20--lang=en\x20(default)','setProjectConfig','328624JRqHEr','ssr','toString','pathFromApp','\x20}\x20from\x20\x27./','187715GrydQf','4XBrZvG','i18n.js','withValue','rewriteDestinationPathForEngine','constructor','readFileSync','imports','i18next','error','1631GlmhjY','translations','lib','true','getMakaProjectConfig','findAppDirectory','checkNpmPackage','fsi','13715856WOcrgk','getGlobalConfig','installNpmPackage','i18n/i18n.js','index.js','\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','export\x20{\x20default\x20as\x20','create','injectAtBeginningOfFile','client','524079zUfSNq','exit','locales','injectAtEndOfFile','translation','services','Locale\x20already\x20exported:\x20','maka\x20g:translation\x20--lang=fr','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','service','startup','index.','lang','appName','(((.+)+)+)+$','default\x20as\x20','Locale\x20already\x20defined:\x20','search','764327uRQSXu','594302cZPutY','server','grep','isFile','maka\x20g:translation\x20--lang=de','engines','apply','.js','10338GHsxhU','import\x20\x27../lib/services/translations/i18n\x27;\x0a','i18next\x20i18next-browser-languagedetector\x20react-i18next','root','3wrNAOE','i18n/locales.js','warn'];a141c=function(){return D;};return a141c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';Generator[a141A(0xa3)]({'name':a141A(0xaa),'usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141A(0xb2),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a141A(0xa1),'examples':[a141A(0x83),a141A(0xad),a141A(0x75)],'validOpts':[]},async function(a,b){const B=a141A;try{const c=this[B(0x9b)][B(0x98)](),d=this[B(0x9b)][B(0x9d)](),f=this['fsi'][B(0x99)]();await this[B(0x9b)][B(0x8d)](c,async()=>{const C=B;try{!b[C(0xb2)]&&(b['lang']='en');!b[C(0x7c)]&&!this[C(0x9b)][C(0x9a)](C(0x92))&&(Log['warn'](C(0xae)),this[C(0x9b)][C(0x9e)](C(0x7b),{'cwd':f}),this[C(0x9b)][C(0x84)]('features.withTranslations',!![]));const g=this[C(0x9b)][C(0x88)]({'pathParts':['imports',C(0xb0),C(0xa5),C(0xa0)]}),h=this[C(0x9b)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[C(0x9b)]['grep'](a141e[C(0x90)](h)[C(0x87)](),C(0x82))[0x0]&&!![];if(c[C(0x76)][C(0x86)]===C(0x97)){!i&&this[C(0x9b)][C(0xa4)]({'filePath':h,'content':C(0x7a)});const t=this[C(0x9b)][C(0x88)]({'pathParts':[C(0x91),C(0xb0),C(0x72),C(0xa0)]}),u=this[C(0x9b)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[C(0x9b)][C(0x73)](a141e[C(0x90)](u)[C(0x87)](),C(0x82))[0x0]&&!![];!v&&this[C(0x9b)]['injectAtBeginningOfFile']({'filePath':u,'content':C(0x7a)});}else!i&&this[C(0x9b)][C(0xa4)]({'filePath':h,'content':C(0x7a)});const j={'app':d[C(0xb3)],'config':c},k=this[C(0x9b)][C(0x88)]({'pathParts':['imports','startup',C(0x96),C(0xab),C(0x95),C(0x8c)]}),l=this[C(0x9b)][C(0x74)](this[C(0x9b)][C(0x8e)]({'pathParts':[k],'config':c}));!l&&await this[C(0x9b)][C(0x81)]({'srcPath':C(0x9f),'destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0x9b)][C(0x88)]({'pathParts':[C(0x91),C(0xb0),C(0x96),C(0xab),C(0x95),C(0xa8),b[C(0xb2)]+C(0x78)]}),n=this[C(0x9b)][C(0x8e)]({'pathParts':[m],'config':c}),o=this[C(0x9b)][C(0x74)](n);!o?await this[C(0x9b)][C(0x81)]({'srcPath':C(0x7e),'destPath':m,'framework':C(0xaf),'context':j,'config':c}):Log[C(0x7f)](C(0x6e)+n);const p=this['fsi'][C(0x88)]({'pathParts':[C(0x91),'startup','lib',C(0xab),'translations',C(0xa8),C(0xb1)+c['engines']['js']]}),q=this[C(0x9b)][C(0x8e)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0x74)](q);!r&&await this[C(0x9b)][C(0x81)]({'srcPath':'i18n/index.js','destPath':p,'framework':C(0xaf),'context':j,'config':c});const s=this['fsi'][C(0x73)](a141e[C(0x90)](p)['toString'](),C(0xb5)+b[C(0xb2)])[0x0]&&!![];!s?await this[C(0x9b)][C(0xa9)]({'filePath':p,'content':C(0xa2)+b[C(0xb2)]+C(0x89)+b[C(0xb2)]+'\x27;'}):Log[C(0x7f)](C(0xac)+p);}catch(w){Log[C(0x93)](w),process[C(0xa7)](0x1);}});}catch(g){Log[B(0x93)](g),process[B(0xa7)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a142l=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d
|
|
1
|
+
const a142l=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=parseInt(j(0x6f))/0x1+-parseInt(j(0x7d))/0x2*(parseInt(j(0x77))/0x3)+-parseInt(j(0x85))/0x4*(parseInt(j(0x76))/0x5)+-parseInt(j(0x87))/0x6+-parseInt(j(0x83))/0x7*(-parseInt(j(0x82))/0x8)+-parseInt(j(0x73))/0x9*(-parseInt(j(0x75))/0xa)+-parseInt(j(0x7a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xeb22c));const a142b=(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;};}()),a142a=a142b(this,function(){const k=a142d;return a142a['toString']()['search'](k(0x7b))[k(0x7f)]()[k(0x6e)](a142a)['search'](k(0x7b));});function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x6e;let f=c[d];return f;},a142d(a,b);}a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a142l(0x74)]),__dirname=a142g[a142l(0x81)](__filename);function a142c(){const m=['env','2952323QoTzDI','(((.+)+)+)+$','totalmem','518AVcDza','run','toString','slice','dirname','8OZRleV','8453963otjfJJ','MAKA_COMMAND_PATH','7610048fwDFyV','parse','1822002Xlrmbn','constructor','1141638SRUQOZ','floor','camelizeKeys','BROWSERSLIST_IGNORE_OLD_DATA','10678518zKOzQp','url','10dscCIK','5EXSEhO','1137SDxqog','NODE_NO_WARNINGS'];a142c=function(){return m;};return a142c();}global[a142l(0x84)]=__dirname;const total_memory=a142f[a142l(0x7c)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142l(0x70)](total_mem_in_mb),process[a142l(0x79)]['TOOL_NODE_FLAGS']='--max-old-space-size='+total_mem_in_mb,process[a142l(0x79)][a142l(0x72)]='1',process[a142l(0x79)][a142l(0x78)]='1';const argv=a142e(process['argv'][a142l(0x80)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142l(0x86)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a142h[a142l(0x71)](deepCopyArgv);a142i[a142l(0x7e)](args,opts);
|
|
@@ -37,12 +37,13 @@ const client = new ApolloClient({
|
|
|
37
37
|
dataIdFromObject: o => {o.id ? `${o.__typename}-${o.id}`: `${o.__typename}-${o.cursor}`},
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
|
-
<% } %><% if (config.engines.theme === 'material') {
|
|
40
|
+
<% } %><% if (config.engines.theme === 'material') {
|
|
41
|
+
import CssBaseline from '@mui/material/CssBaseline'; if (config.engines.ssr === 'true') { %>
|
|
41
42
|
import { ThemeProvider } from '@mui/material/styles';
|
|
43
|
+
import CssBaseline from '@mui/material/CssBaseline';
|
|
42
44
|
import { theme } from '../lib/index';<% } else { %>
|
|
43
45
|
// Material UI Theme config using default mui.
|
|
44
46
|
import { ThemeProvider, createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
45
|
-
import CssBaseline from '@mui/material/CssBaseline';
|
|
46
47
|
// https://mui.com/material-ui/customization/default-theme/
|
|
47
48
|
const newTheme = createTheme({
|
|
48
49
|
typography: {
|
|
@@ -64,7 +65,7 @@ const theme = responsiveFontSizes(newTheme);<% }} %>
|
|
|
64
65
|
import { BrowserRouter } from 'react-router-dom'
|
|
65
66
|
import { onPageLoad } from "meteor/server-render";
|
|
66
67
|
<% } %>
|
|
67
|
-
<% if (config.engines.ssr === 'true') { %>import
|
|
68
|
+
<% if (config.engines.ssr === 'true') { %>import AppRoutes from '../lib/routes';<% } else { %>import AppRoutes from './routes';<% } %>
|
|
68
69
|
|
|
69
70
|
const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
70
71
|
<BrowserRouter><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
@@ -72,7 +73,7 @@ const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
|
72
73
|
<ApolloHooksProvider client={client}><% } %><% if (config.engines.theme === 'material') { %>
|
|
73
74
|
<ThemeProvider theme={theme}>
|
|
74
75
|
<CssBaseline /><% } %>
|
|
75
|
-
<
|
|
76
|
+
<AppRoutes history={browserHistory}/><% if (config.engines.theme === 'material') { %>
|
|
76
77
|
</ThemeProvider><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
77
78
|
</ApolloHooksProvider>
|
|
78
79
|
</ApolloProvider><% } %><% if (config.engines.ssr === 'true') { %>
|
|
@@ -37,13 +37,14 @@ const client = new ApolloClient({
|
|
|
37
37
|
dataIdFromObject: o => {o.id ? `${o.__typename}-${o.id}`: `${o.__typename}-${o.cursor}`},
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
|
-
<% } %><% if (config.engines.theme === 'material') {
|
|
40
|
+
<% } %><% if (config.engines.theme === 'material') {
|
|
41
|
+
import CssBaseline from '@mui/material/CssBaseline'; if (config.engines.ssr === 'true') { %>
|
|
41
42
|
import { ThemeProvider } from '@mui/material/styles';
|
|
43
|
+
import CssBaseline from '@mui/material/CssBaseline';
|
|
42
44
|
import { theme } from '../lib/index';<% } else { %>
|
|
43
45
|
// Material UI Theme config using default mui.
|
|
44
46
|
// https://mui.com/material-ui/customization/default-theme/
|
|
45
47
|
import { ThemeProvider, createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
46
|
-
import CssBaseline from '@mui/material/CssBaseline';
|
|
47
48
|
// https://mui.com/material-ui/customization/default-theme/
|
|
48
49
|
const newTheme = createTheme({
|
|
49
50
|
typography: {
|
|
@@ -65,7 +66,7 @@ const theme = responsiveFontSizes(newTheme);<% }} %>
|
|
|
65
66
|
import { BrowserRouter } from 'react-router-dom'
|
|
66
67
|
import { onPageLoad } from "meteor/server-render";
|
|
67
68
|
<% } %>
|
|
68
|
-
<% if (config.engines.ssr === 'true') { %>import
|
|
69
|
+
<% if (config.engines.ssr === 'true') { %>import AppRoutes from '../lib/routes';<% } else { %>import AppRoutes from './routes';<% } %>
|
|
69
70
|
|
|
70
71
|
const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
71
72
|
<BrowserRouter><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
@@ -73,7 +74,7 @@ const App = () => (<% if (config.engines.ssr === 'true') { %>
|
|
|
73
74
|
<ApolloHooksProvider client={client}><% } %><% if (config.engines.theme === 'material') { %>
|
|
74
75
|
<ThemeProvider theme={theme}>
|
|
75
76
|
<CssBaseline /><% } %>
|
|
76
|
-
<
|
|
77
|
+
<AppRoutes history={browserHistory}/><% if (config.engines.theme === 'material') { %>
|
|
77
78
|
</ThemeProvider><% } %><% if (config.engines.graphql === 'apollo') { %>
|
|
78
79
|
</ApolloHooksProvider>
|
|
79
80
|
</ApolloProvider><% } %><% if (config.engines.ssr === 'true') { %>
|
|
@@ -1,49 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Router, Route,
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The React Router client side routing definitions.
|
|
6
|
-
* @namespace Client.Routes
|
|
7
|
-
* @desc This is the main definition for the react router.
|
|
8
|
-
*/
|
|
9
|
-
|
|
2
|
+
import { BrowserRouter as Router, Routes, Route, Navigate, Outlet } from 'react-router-dom';
|
|
10
3
|
import * as Component from './templates';
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<Router history={ history }>
|
|
35
|
-
{privateRoutes}
|
|
36
|
-
{publicRoutes}
|
|
37
|
-
</Router>
|
|
38
|
-
);
|
|
39
|
-
const PublicRoutes = ({ history }) => (
|
|
40
|
-
<Router history={ history }>
|
|
41
|
-
{publicRoutes}
|
|
5
|
+
// Dummy authentication function
|
|
6
|
+
const useAuth = () => {
|
|
7
|
+
const user = { loggedIn: false }; // Toggle `loggedIn` to simulate auth status
|
|
8
|
+
return { user };
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// Private route wrapper
|
|
12
|
+
const PrivateRoute = () => {
|
|
13
|
+
const { user } = useAuth();
|
|
14
|
+
return user.loggedIn ? <Outlet/> : <Navigate to="/login" />;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const AppRoutes = () => (
|
|
18
|
+
<Router>
|
|
19
|
+
<Routes>
|
|
20
|
+
<Route path="/" element={<Component.MainLayout />}>
|
|
21
|
+
<Route index element={<Component.Home />} />
|
|
22
|
+
<Route path="*" element={<Component.NotFound />} />
|
|
23
|
+
<Route element={<PrivateRoute />}>
|
|
24
|
+
</Route>
|
|
25
|
+
</Route>
|
|
26
|
+
</Routes>
|
|
42
27
|
</Router>
|
|
43
28
|
);
|
|
44
|
-
const Routes = ({ history }) => {
|
|
45
|
-
let currentUser = null;
|
|
46
|
-
return (currentUser) ? <PrivateRoutes history={history}/> : <PublicRoutes history={history}/>
|
|
47
|
-
}
|
|
48
29
|
|
|
49
|
-
export default
|
|
30
|
+
export default AppRoutes;
|
|
@@ -1,49 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Router, Route,
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The React Router client side routing definitions.
|
|
6
|
-
* @namespace Client.Routes
|
|
7
|
-
* @desc This is the main definition for the react router.
|
|
8
|
-
*/
|
|
9
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BrowserRouter as Router, Routes, Route, Navigate, Outlet } from 'react-router-dom';
|
|
10
3
|
import * as Component from './templates';
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<Router history={ history }>
|
|
35
|
-
{privateRoutes}
|
|
36
|
-
{publicRoutes}
|
|
37
|
-
</Router>
|
|
38
|
-
);
|
|
39
|
-
const PublicRoutes = ({ history }) => (
|
|
40
|
-
<Router history={ history }>
|
|
41
|
-
{publicRoutes}
|
|
5
|
+
// Dummy authentication function
|
|
6
|
+
const useAuth = () => {
|
|
7
|
+
const user = { loggedIn: false }; // Toggle `loggedIn` to simulate auth status
|
|
8
|
+
return { user };
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// Private route wrapper
|
|
12
|
+
const PrivateRoute = () => {
|
|
13
|
+
const { user } = useAuth();
|
|
14
|
+
return user.loggedIn ? <Outlet/> : <Navigate to="/login" />;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const AppRoutes = () => (
|
|
18
|
+
<Router>
|
|
19
|
+
<Routes>
|
|
20
|
+
<Route path="/" element={<Component.MainLayout />}>
|
|
21
|
+
<Route index element={<Component.Home />} />
|
|
22
|
+
<Route path="*" element={<Component.NotFound />} />
|
|
23
|
+
<Route element={<PrivateRoute />}>
|
|
24
|
+
</Route>
|
|
25
|
+
</Route>
|
|
26
|
+
</Routes>
|
|
42
27
|
</Router>
|
|
43
28
|
);
|
|
44
|
-
const Routes = ({ history }) => {
|
|
45
|
-
let currentUser = null;
|
|
46
|
-
return (currentUser) ? <PrivateRoutes history={history}/> : <PublicRoutes history={history}/>
|
|
47
|
-
}
|
|
48
29
|
|
|
49
|
-
export default
|
|
30
|
+
export default AppRoutes;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @namespace Common */<% if (config.engines.theme === 'material' && config.engines.ssr === 'true') { %>
|
|
2
2
|
// Material UI Theme config using roboto typefont and default mui.
|
|
3
3
|
import { createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
4
|
-
import CssBaseline from '@mui/material/CssBaseline';
|
|
5
4
|
// https://mui.com/material-ui/customization/default-theme/
|
|
6
5
|
const newTheme = createTheme({
|
|
7
6
|
typography: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @namespace Common */<% if (config.engines.theme === 'material' && config.engines.ssr === 'true') { %>
|
|
2
2
|
// Material UI Theme config using roboto typefont and default mui.
|
|
3
3
|
import { createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
4
|
-
import CssBaseline from '@mui/material/CssBaseline';
|
|
5
4
|
// https://mui.com/material-ui/customization/default-theme/
|
|
6
5
|
const newTheme = createTheme({
|
|
7
6
|
typography: {
|
|
@@ -1,49 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Router, Route,
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The React Router client and server side routing definitions.
|
|
6
|
-
* @namespace Common.Routes
|
|
7
|
-
* @desc This is the main definition for the react router.
|
|
8
|
-
*/
|
|
9
|
-
|
|
2
|
+
import { BrowserRouter as Router, Routes, Route, Navigate, Outlet } from 'react-router-dom';
|
|
10
3
|
import * as Component from './templates';
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<Router history={ history }>
|
|
35
|
-
{privateRoutes}
|
|
36
|
-
{publicRoutes}
|
|
37
|
-
</Router>
|
|
38
|
-
);
|
|
39
|
-
const PublicRoutes = ({ history }) => (
|
|
40
|
-
<Router history={ history }>
|
|
41
|
-
{publicRoutes}
|
|
5
|
+
// Dummy authentication function
|
|
6
|
+
const useAuth = () => {
|
|
7
|
+
const user = { loggedIn: false }; // Toggle `loggedIn` to simulate auth status
|
|
8
|
+
return { user };
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// Private route wrapper
|
|
12
|
+
const PrivateRoute = () => {
|
|
13
|
+
const { user } = useAuth();
|
|
14
|
+
return user.loggedIn ? <Outlet/> : <Navigate to="/login" />;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const AppRoutes = () => (
|
|
18
|
+
<Router>
|
|
19
|
+
<Routes>
|
|
20
|
+
<Route path="/" element={<Component.MainLayout />}>
|
|
21
|
+
<Route index element={<Component.Home />} />
|
|
22
|
+
<Route path="*" element={<Component.NotFound />} />
|
|
23
|
+
<Route element={<PrivateRoute />}>
|
|
24
|
+
</Route>
|
|
25
|
+
</Route>
|
|
26
|
+
</Routes>
|
|
42
27
|
</Router>
|
|
43
28
|
);
|
|
44
|
-
const Routes = ({ history }) => {
|
|
45
|
-
let currentUser = null;
|
|
46
|
-
return (currentUser) ? <PrivateRoutes history={history}/> : <PublicRoutes history={history}/>
|
|
47
|
-
}
|
|
48
29
|
|
|
49
|
-
export default
|
|
30
|
+
export default AppRoutes;
|