@maka/maka-cli 5.0.13 → 5.0.14
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 +2 -3
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -0
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -0
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -0
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -0
- 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 +2 -3
- package/bundle/obf/src/commands/patreon.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113m=a113d;(function(a,b){const j=a113d,c=a();while(!![]){try{const d=-parseInt(j(0x186))/0x1+parseInt(j(0x185))/0x2+-parseInt(j(0x18b))/0x3*(parseInt(j(0x190))/0x4)+parseInt(j(0x17c))/0x5*(-parseInt(j(0x187))/0x6)+-parseInt(j(0x177))/0x7+parseInt(j(0x18c))/0x8*(-parseInt(j(0x18e))/0x9)+parseInt(j(0x184))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x84571));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a113d;if(c){const e=c[k(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const l=a113d;return a113a[l(0x16c)]()[l(0x188)]('(((.+)+)+)+$')[l(0x16c)]()[l(0x175)](a113a)[l(0x188)](l(0x191));});function a113c(){const o=['35INSWNm','fsi','pm2.config.js','config','config/process.env','development','appName','config/settings.json','36327200DHXuTR','35400syKOKd','342134miVPHd','746904AkXzCD','search','prod','local','521067scnAmm','37792WqVsKb','dev','1143KQGYAr','template','8tkeZzq','(((.+)+)+)+$','production','toString','maka\x20g:config\x20production','cfg','resourceName','scaffold','apply','config/pm2.config.js','ubuntu','error','constructor','getMakaProjectConfig','6632549UZVWiR','settings.json','isDocker','pathFromProject','maka\x20{generate,\x20g}:{config}\x20<name>'];a113c=function(){return o;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x16c;let f=c[d];return f;},a113d(a,b);}a113a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'config','usage':a113m(0x17b),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':['isDocker'],'examples':[a113m(0x16d)]},async function(a,b){const n=a113m;try{const c=await this[n(0x16e)][n(0x176)](),d={'app':c['appName'],'appFileCase':paramCase(c[n(0x182)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[n(0x16f)]),'camelCase':camelCase(b[n(0x16f)]),'userName':n(0x173),'isDocker':b[n(0x179)]};let e=b[n(0x16f)];if(e===n(0x18d))e=n(0x181);else e===n(0x189)&&(e=n(0x192));const f=this['fsi'][n(0x17a)]({'pathParts':[n(0x17f),e,n(0x178)]});await this[n(0x170)][n(0x18f)]({'srcPath':n(0x183),'destPath':f,'context':d,'config':c});if(e!==n(0x18a)){const g=this[n(0x17d)][n(0x17a)]({'pathParts':[n(0x17f),e,n(0x17e)]});await this[n(0x170)][n(0x18f)]({'srcPath':n(0x172),'destPath':g,'context':{'app':c[n(0x182)],'isDocker':b[n(0x179)]||![]},'config':c});}if(e===n(0x18a)){const h=this[n(0x17d)]['pathFromProject']({'pathParts':[n(0x17f),e,'process.env']});await this[n(0x170)][n(0x18f)]({'srcPath':n(0x180),'destPath':h,'context':d,'config':c});}}catch(i){Log[n(0x174)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114n=a114d;function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x1be;let f=c[d];return f;},a114d(a,b);}(function(a,b){const k=a114d,c=a();while(!![]){try{const d=-parseInt(k(0x1e1))/0x1+-parseInt(k(0x1c4))/0x2+parseInt(k(0x1e3))/0x3*(-parseInt(k(0x1cd))/0x4)+-parseInt(k(0x1ce))/0x5+-parseInt(k(0x1c8))/0x6+parseInt(k(0x1bf))/0x7*(-parseInt(k(0x1d1))/0x8)+parseInt(k(0x1d2))/0x9*(parseInt(k(0x1c7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x402c1));function a114c(){const p=['101322SltVJw','startup','dir','search','pkg','getMakaProjectConfig','toString','1811887nftqwQ','checkNpmPackage','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','register-','pgsql','360294WTwdTR','injectAtEndOfFile','maka\x20g:dbc\x20geoserver\x20--type=pgsql','270oVleTP','1381152UbplEC','scaffold','pathFromApp','create','apply','12Scsbce','1422810PsUFlj','cfg','error','8HPatHp','456444oDvbUd','mssql','type','dbc','tsx','imports','index.','import\x20\x27./register-','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','(((.+)+)+)+$','sqlite','template','engines','dbc/config.js','resourceName','51419naeQSI','server'];a114c=function(){return p;};return a114c();}const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a114d;if(c){const e=c[l(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const m=a114d;return a114a[m(0x1be)]()['search'](m(0x1db))[m(0x1be)]()['constructor'](a114a)[m(0x1e6)](m(0x1db));});a114a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a114n(0x1cb)]({'name':a114n(0x1d5),'usage':a114n(0x1c1),'shortDesc':a114n(0x1da),'validOpts':[a114n(0x1e5)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a114n(0x1d4),'values':[a114n(0x1c3),'mssql',a114n(0x1dc)]}],'examples':[a114n(0x1c6),'maka\x20g:dbc\x20azure\x20--type=mssql','maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const o=a114n;try{const c=await this[o(0x1cf)][o(0x1e8)](),d=paramCase(b['resourceName']),f={'name':pascalCase(b[o(0x1e0)]),'fileName':paramCase(b[o(0x1e0)]),'camelCase':camelCase(b[o(0x1e0)]),'type':b['type'],'engine':c[o(0x1de)]['js'],'noRename':!![]},g=b['dir']?'/'+b[o(0x1e5)]+'/':'/';let h='js';c[o(0x1de)]['js']===o(0x1d6)&&(h='ts');b[o(0x1d4)]==='pgsql'&&await this[o(0x1e7)][o(0x1c0)]('pg',{'shouldInstall':!![]});b[o(0x1d4)]==='mssql'&&await this[o(0x1e7)]['checkNpmPackage'](o(0x1d3),{'shouldInstall':!![]});b['type']==='sqlite'&&await this[o(0x1e7)][o(0x1c0)]('better-sqlite3',{'shouldInstall':!![]});await this[o(0x1c9)][o(0x1dd)]({'srcPath':o(0x1df),'destPath':this[o(0x1c9)][o(0x1ca)]({'pathParts':['imports',o(0x1e4),o(0x1e2),'dbc',g,d,'config.'+h]}),'context':f,'config':c}),await this[o(0x1c9)]['template']({'srcPath':'dbc/conn.js','destPath':this[o(0x1c9)][o(0x1ca)]({'pathParts':['imports',o(0x1e4),o(0x1e2),'dbc',g,d,'conn.'+h]}),'context':f,'config':c}),await this[o(0x1c9)][o(0x1dd)]({'srcPath':'dbc/register-dbc.js','destPath':this[o(0x1c9)]['pathFromApp']({'pathParts':[o(0x1d7),o(0x1e4),o(0x1e2),o(0x1c2)+d+'-dbc.'+h]}),'context':f,'config':c});const i=this[o(0x1c9)][o(0x1ca)]({'pathParts':[o(0x1d7),o(0x1e4),'server',o(0x1d8)+c[o(0x1de)]['js']]});await this[o(0x1c9)][o(0x1c5)]({'filePath':i,'content':o(0x1d9)+d+'-dbc\x27;'});}catch(j){Log[o(0x1d0)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115l=a115d;(function(a,b){const i=a115d,c=a();while(!![]){try{const d=parseInt(i(0xfc))/0x1*(parseInt(i(0xf6))/0x2)+-parseInt(i(0x102))/0x3+-parseInt(i(0xef))/0x4*(parseInt(i(0x101))/0x5)+parseInt(i(0x106))/0x6*(parseInt(i(0xf4))/0x7)+-parseInt(i(0x10a))/0x8*(-parseInt(i(0x10b))/0x9)+parseInt(i(0x107))/0xa*(parseInt(i(0x109))/0xb)+parseInt(i(0xf8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xab5e3));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a115d;if(c){const e=c[j(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const k=a115d;return a115a[k(0xec)]()['search'](k(0xfe))[k(0xec)]()[k(0xf0)](a115a)[k(0x100)](k(0xfe));});function a115c(){const n=['Dockerfile','1039008aMCaMA','template','findProjectDirectory','cfg','31997BMaBBG','fsi','(((.+)+)+)+$','apply','search','1427740gzXMPJ','1492836lQoTvf','join','build','app','22278pblhCH','150XdlyQA','isFile','288057hmkcBA','136ytjyzm','981kWrEPI','service','appName','Generate\x20an\x20updated\x20dockerfile','toString','dockerfile','getGlobalConfig','8paGfGf','constructor','force','docker/Dockerfile','scaffold','1526IRWiYE','error','30oSUfRg'];a115c=function(){return n;};return a115c();}a115a();function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xeb;let f=c[d];return f;},a115d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a115e from'path';Generator['create']({'name':a115l(0xed),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a115l(0xeb),'validOpts':[{'name':a115l(0xf1),'boolFlag':!![]}],'noNeedResource':!![],'examples':['maka\x20g:dockerfile']},async function(a,b){const m=a115l;try{const c=await this[m(0xfb)]['getMakaProjectConfig'](),d=await this[m(0xfb)][m(0xee)](),f=this[m(0xfd)][m(0xfa)](),g={'app':c[m(0x10d)],'config':c,'appPath':a115e[m(0x103)](f,m(0x105)),'bundlePath':a115e['join'](f,m(0x104),'app.tar.gz'),'useCert':d['cert']?this[m(0xfd)][m(0x108)](d['cert']):![]};await this[m(0xf3)][m(0xf9)]({'srcPath':m(0xf2),'destPath':a115e['join'](f,m(0xf7)),'framework':m(0x10c),'context':g,'config':c,'force':b[m(0xf1)]});}catch(h){Log[m(0xf5)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116n=a116d;(function(a,b){const l=a116d,c=a();while(!![]){try{const d=-parseInt(l(0xce))/0x1*(parseInt(l(0xc4))/0x2)+parseInt(l(0xd1))/0x3+-parseInt(l(0xb7))/0x4*(-parseInt(l(0xc2))/0x5)+parseInt(l(0xd8))/0x6*(-parseInt(l(0xd5))/0x7)+parseInt(l(0xb2))/0x8+-parseInt(l(0xb8))/0x9*(-parseInt(l(0xca))/0xa)+parseInt(l(0xd4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xe4b71));const a116b=(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;};}()),a116a=a116b(this,function(){const m=a116d;return a116a['toString']()['search'](m(0xcf))[m(0xbc)]()[m(0xbb)](a116a)[m(0xc7)](m(0xcf));});a116a();import a116e from'path';import{paramCase,pascalCase,camelCase}from'change-case';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0xa5;let f=c[d];return f;},a116d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a116c(){const p=['pkg','string','.app-tests.js','none','theme','70CaOEDE','import\x20\x27./','16358NiqYrQ','@apollo/client','cssCaseName','search','injectTemplateModule','findProjectDirectory','20AsWAcU','.js','resourceName','maka\x20g:hook\x20cool-hook','163slkhLB','(((.+)+)+)+$','graphql','2416848jDDYDH','setTemplate','dir','2364032dbQJfG','52913TEprjl','react','pages','1374pzCZRo','assign','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','scaffold','hook','engines','notice','force','apollo','layouts','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','fileName','relative','features','template','@apollo/client\x20isomorphic-fetch','6225672FoMSco','injectAtBeginningOfFile','baseDir','css','fsi','368892nLYitK','4100157dXvNug','components','test/test.js','constructor','toString'];a116c=function(){return p;};return a116c();}Generator['create']({'name':a116n(0xa6),'aliases':['h'],'checkWhere':![],'usage':a116n(0xda),'shortDesc':a116n(0xac),'validOpts':[{'name':a116n(0xb4),'values':['hooks',a116n(0xb9),a116n(0xd7),a116n(0xab)]},{'name':a116n(0xa9),'boolFlag':!![]}],'examples':[a116n(0xcd)],'description':'\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20'},async function(a,b){const o=a116n;Log[o(0xa8)]('Creating\x20'+b['resourceName']+'\x20hook...');try{await this[o(0xbd)]['checkNpmPackage']('react',{'shouldInstall':!![]});const c=this['fsi']['findAppDirectory'](),d=b[o(0xb4)]?'/imports/ui/'+b[o(0xb4)]:'/imports/ui/components',f=this[o(0xa5)]['pathFromApp']({'pathParts':[d,b['dir'],paramCase(b[o(0xcc)]),paramCase(b['resourceName'])]}),g=await this['cfg']['getMakaProjectConfig']();typeof g['template'][o(0xb5)]===o(0xbe)&&this['cfg'][o(0xd2)](o(0xb5),g['template']['css']);g[o(0xa7)][o(0xd0)]===o(0xaa)&&!this[o(0xbd)]['checkNpmPackage'](o(0xc5))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[o(0xbd)]['installNpmPackage'](o(0xb1),{'cwd':c}));const h={'cssCaseName':paramCase(b[o(0xcc)]),'camelCaseName':camelCase(b[o(0xcc)]),'className':pascalCase(b[o(0xcc)]),'name':pascalCase(b['resourceName']),'graphql':g[o(0xa7)][o(0xd0)],'theme':g[o(0xa7)][o(0xc1)],'features':g['features'],'myPath':a116e[o(0xae)](this[o(0xb6)][o(0xc9)](),f),'fileName':paramCase(b[o(0xcc)]),'isComponent':![],'isLayout':![],'withTranslations':g[o(0xaf)]['withTranslations']};await this['scaffold'][o(0xb0)]({'srcPath':'hook/hook.js','destPath':f+o(0xcb),'context':h,'config':g,'framework':'react','force':b['force']});g['template'][o(0xb5)]&&(await this[o(0xa5)][o(0xb0)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[o(0xd9)]({},h,{'className':h[o(0xc6)]}),'config':g,'force':b[o(0xa9)]}),await this[o(0xa5)][o(0xb3)]({'filePath':f+'.'+g[o(0xa7)]['js'],'content':o(0xc3)+h['fileName']+'.'+g[o(0xa7)][o(0xb5)]+'\x27;'}));g[o(0xa7)]['test']!==o(0xc0)&&await this[o(0xa5)][o(0xb0)]({'srcPath':o(0xba),'destPath':f+o(0xbf),'framework':o(0xd6),'context':h,'config':g,'force':b[o(0xa9)]});const i=b['dir']?'/'+b[o(0xd3)]+'/':'/',j=''+d+i+h[o(0xad)]+'/'+h[o(0xad)];await this[o(0xa5)][o(0xc8)](h['className'],g,j);}catch(k){Log['error'](k);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a117d,c=a();while(!![]){try{var d=parseInt(f(0xff))/0x1*(-parseInt(f(0xf8))/0x2)+-parseInt(f(0xfb))/0x3+-parseInt(f(0xf6))/0x4+parseInt(f(0xf1))/0x5*(parseInt(f(0xf3))/0x6)+-parseInt(f(0xfc))/0x7*(parseInt(f(0x100))/0x8)+-parseInt(f(0xf5))/0x9+-parseInt(f(0xfa))/0xa*(-parseInt(f(0xf4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xcbf3b));var a117b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a117d;if(c){var e=c[g(0xf2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){var h=a117d;return a117a[h(0xf9)]()[h(0xf7)](h(0xfe))['toString']()[h(0xfd)](a117a)[h(0xf7)](h(0xfe));});function a117d(a,b){var c=a117c();return a117d=function(d,e){d=d-0xf1;var f=c[d];return f;},a117d(a,b);}a117a();import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';import'./auth/_index.js';function a117c(){var i=['search','384312rsBbix','toString','3421670dLBdBM','672615bYYZmB','416675GaEDuJ','constructor','(((.+)+)+)+$','1qHaCvi','112pheorJ','1700210OArFoy','apply','18LxoWly','88uiJINY','129042ikXotV','6632104TfICAg'];a117c=function(){return i;};return a117c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x12c;var f=c[d];return f;},a118d(a,b);}(function(a,b){var f=a118d,c=a();while(!![]){try{var d=-parseInt(f(0x138))/0x1+parseInt(f(0x137))/0x2*(parseInt(f(0x12d))/0x3)+parseInt(f(0x134))/0x4+-parseInt(f(0x131))/0x5*(-parseInt(f(0x13a))/0x6)+-parseInt(f(0x133))/0x7*(parseInt(f(0x13b))/0x8)+parseInt(f(0x136))/0x9*(-parseInt(f(0x12f))/0xa)+parseInt(f(0x132))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x19da3));var a118b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a118d;if(c){var e=c[g(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){var h=a118d;return a118a[h(0x130)]()['search'](h(0x135))['toString']()[h(0x12c)](a118a)[h(0x12e)](h(0x135));});a118a();import'./auth.generator.js';function a118c(){var i=['6czCzpW','search','868520FLWyWf','toString','208495SrXDAM','480744ChUaIq','310037tROTcn','553700rqBgNc','(((.+)+)+)+$','18mFjiQq','115436nJzZTR','140475TViOsQ','apply','24SkOWoz','8GuZELa','constructor'];a118c=function(){return i;};return a118c();}import'./provider.auth.gen.js';import'./basic-meteor.auth.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119i=a119d;function a119c(){const k=['auth','create','Starting\x20point\x20for\x20generating\x20an\x20Auth\x20Provider','apply','126hGJtUZ','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x20\x20','444670WQZlWb','1562472WcwMwy','3790647PmSkTH','20BOQTEw','242118QnBiUS','97101GbmQoU','search','(((.+)+)+)+$','maka\x20g:kit:a','54887myLLVz','87669idStXM','toString','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:<kit-name>','NIE'];a119c=function(){return k;};return a119c();}(function(a,b){const f=a119d,c=a();while(!![]){try{const d=parseInt(f(0x19b))/0x1+parseInt(f(0x1a9))/0x2+parseInt(f(0x196))/0x3*(parseInt(f(0x1a8))/0x4)+-parseInt(f(0x1a5))/0x5+-parseInt(f(0x1a3))/0x6*(-parseInt(f(0x19a))/0x7)+parseInt(f(0x1a6))/0x8+-parseInt(f(0x1a7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x35d00));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a119d;if(c){const e=c[g(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const h=a119d;return a119a[h(0x19c)]()[h(0x197)](h(0x198))[h(0x19c)]()['constructor'](a119a)[h(0x197)](h(0x198));});a119a();import{Generator}from'../../../generator.js';import a119e from'../kit.js';const AuthGen=Generator[a119i(0x1a0)]({'name':a119i(0x19f),'aliases':['a'],'usage':a119i(0x19d),'noNeedResource':!![],'shortDesc':a119i(0x1a1),'validOpts':[''],'isPro':!![],'examples':[a119i(0x199)],'description':a119i(0x1a4)},async function(){const j=a119i;throw j(0x19e);},async function(){},a119e);function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x196;let f=c[d];return f;},a119d(a,b);}export default AuthGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120q=a120d;(function(a,b){const o=a120d,c=a();while(!![]){try{const d=-parseInt(o(0x147))/0x1*(-parseInt(o(0x162))/0x2)+-parseInt(o(0x14e))/0x3*(-parseInt(o(0x172))/0x4)+-parseInt(o(0x16b))/0x5*(-parseInt(o(0x16c))/0x6)+-parseInt(o(0x171))/0x7+-parseInt(o(0x16a))/0x8*(-parseInt(o(0x186))/0x9)+-parseInt(o(0x151))/0xa*(parseInt(o(0x174))/0xb)+-parseInt(o(0x187))/0xc*(parseInt(o(0x14b))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x46b31));const a120b=(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;};}()),a120a=a120b(this,function(){const p=a120d;return a120a[p(0x146)]()['search'](p(0x164))[p(0x146)]()[p(0x142)](a120a)[p(0x17a)](p(0x164));});a120a();import{Generator}from'../../../generator.js';function a120c(){const s=['443748hHMDKk','processAndRunGenerator','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','Accounts','true','2733577gbxYDF','4ZySpuI','engines','11wUUaxs','pkg','ssr','force','startup','alanning:roles','search','scaffold','/imports/startup/lib/authentication-service','Meteor.publish','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.resetPasswordWithToken(token,\x20password);\x0a\x20\x20\x20\x20\x20\x20','injectIntoFile','publish','/imports/startup/client/authentication-service','imports','meteor','pathFromApp','meteor/meteor','807516JgzImp','6979524ptpfqh','fsi','constructor','meteor/accounts-base','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20start\x20by\x20generating\x20your\x20auth\x20provider\x20and\x20context,\x20and\x20then\x20setup\x20Meteor\x20Accounts\x0a\x20\x20\x20\x20to\x20handle\x20authentication\x20and\x20authorization.\x0a\x20\x20','error','toString','3191IIZLyQ','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','const\x20resetPasswordWithToken','auth/roles','13VKBvfb','injectIntoCodeBlock','server','824523XOHItB','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20useTracker(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.isClient)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.user()\x20&&\x20!currentUser)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20setCurrentUser(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fetchUserAuthorizations(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a\x20\x20\x20\x20\x20\x20','3516610trcyxw','authentication-service','create','getMakaProjectConfig','const\x20registerNewUser','\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateUser(username,\x20password);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','.js','const\x20sendForgotPasswordEmail','meteor/maka:react-tracker','const\x20authenticateToken','const\x20deauthenticateUser','findProjectDirectory','/imports/startup/client','template','Meteor','\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateToken();\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','react','326oHOUZT','kit/auth/service/meteor-auth-service.js','(((.+)+)+)+$','injectImport','\x0a\x20\x20\x20\x20\x20\x20WebAppInternals.setInlineScriptsAllowed(false);\x0a\x0a\x20\x20\x20\x20\x20\x20Accounts.urls.resetPassword\x20=\x20function\x20(token)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.absoluteUrl(\x27reset-password/\x27\x20+\x20token);\x0a\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20','useTracker','REACT','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','40XkmGXk','25KcPtVA'];a120c=function(){return s;};return a120c();}import{Log}from'../../../tools/log/log.class.js';import a120e from'./auth.generator.js';import a120f from'../../../generators/maka.gen.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x142;let f=c[d];return f;},a120d(a,b);}import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a120q(0x153)]({'name':a120q(0x183),'aliases':['m'],'usage':a120q(0x16e),'shortDesc':a120q(0x148),'validOpts':['force'],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a120q(0x168)]},'description':a120q(0x144)},async function(a,b){const r=a120q;try{const c=b[r(0x177)]||![];await this[r(0x175)]['checkMeteorPackage'](['accounts-password',r(0x179)],{'shouldInstall':!![]});const d=this[r(0x188)][r(0x15c)](),f=await this['cfg'][r(0x154)](),g=f[r(0x173)][r(0x176)]===r(0x170);await a120f[r(0x16d)]('kit:auth:provider',[],{'force':c,'cwd':d,'config':f});const h=await a120f[r(0x16d)](r(0x180),[r(0x14a)],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?'/imports/startup/lib':r(0x15d),j=this[r(0x17b)]['pathFromApp']({'pathParts':[i,'','',r(0x152)]});await this['scaffold'][r(0x15e)]({'srcPath':r(0x163),'destPath':j+r(0x157),'framework':r(0x161),'context':{},'config':f,'force':c,'ignore':![]});const k=this[r(0x17b)][r(0x184)]({'pathParts':[i,'','','authentication-provider']}),l=f['engines']['js'];await this['scaffold'][r(0x165)]({'filePath':k+'.'+l,'importName':'AuthService','modulePath':g?r(0x17c):r(0x181),'isNamedExport':![]}),await this[r(0x17b)][r(0x14c)]({'filePath':k+'.'+l,'content':r(0x156),'begin':'const\x20authenticateUser','replace':!![]}),await this[r(0x17b)][r(0x14c)]({'filePath':k+'.'+l,'content':r(0x160),'begin':r(0x15a),'replace':!![]}),await this[r(0x17b)][r(0x14c)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20const\x20authorizations\x20=\x20await\x20AuthService.getUserAuthorizations(user.id);\x0a\x20\x20\x20\x20\x20\x20return\x20authorizations;\x0a\x20\x20\x20\x20\x20\x20','begin':'const\x20getUserAuthorizations','replace':!![]}),await this[r(0x17b)][r(0x14c)]({'filePath':k+'.'+l,'content':r(0x14f),'begin':r(0x15b),'replace':!![]}),await this[r(0x17b)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':r(0x169),'begin':r(0x158),'replace':!![]}),await this[r(0x17b)][r(0x14c)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','begin':r(0x155),'replace':!![]}),await this['scaffold'][r(0x14c)]({'filePath':k+'.'+l,'content':r(0x17e),'begin':r(0x149),'replace':!![]});g&&(await this[r(0x17b)][r(0x165)]({'filePath':k+'.'+l,'importName':r(0x167),'modulePath':r(0x159),'isNamedExport':!![]}),await this[r(0x17b)][r(0x17f)]({'filePath':k+'.'+l,'content':r(0x150),'begin':'export\x20const\x20AuthProvider','end':'return\x20\x5c('}));await this[r(0x17b)]['injectImport']({'filePath':h,'importName':r(0x15f),'modulePath':r(0x185),'isNamedExport':!![],'injectAtStart':!![]}),await this['scaffold'][r(0x14c)]({'filePath':h,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20If\x20logged\x20in,\x20return\x20documents\x20owned\x20by\x20this\x20user.\x20Otherwise\x20return\x20nothing.\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(this.userId)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.roleAssignment.find({\x20\x27user._id\x27:\x20this.userId\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20[];\x0a\x20\x20\x20\x20\x20\x20','begin':r(0x17d),'replace':!![]});const m=this[r(0x17b)][r(0x184)]({'pathParts':[r(0x182),r(0x178),r(0x14d),'index']});await this[r(0x17b)]['injectImport']({'filePath':m+'.'+l,'importName':r(0x16f),'modulePath':r(0x143),'isNamedExport':!![]}),await this[r(0x17b)][r(0x14c)]({'filePath':m+'.'+l,'content':r(0x166),'begin':'Meteor.startup','replace':!![]});}catch(n){Log[r(0x145)](n),process['exit'](0x1);}},async function(){},a120e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121w=a121d;function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x10b;let f=c[d];return f;},a121d(a,b);}(function(a,b){const u=a121d,c=a();while(!![]){try{const d=parseInt(u(0x118))/0x1+-parseInt(u(0x139))/0x2+parseInt(u(0x12c))/0x3+-parseInt(u(0x13b))/0x4+-parseInt(u(0x11a))/0x5+-parseInt(u(0x137))/0x6*(parseInt(u(0x131))/0x7)+-parseInt(u(0x12f))/0x8*(-parseInt(u(0x12e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x4b246));const a121b=(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;};}()),a121a=a121b(this,function(){const v=a121d;return a121a[v(0x111)]()[v(0x12d)]('(((.+)+)+)+$')[v(0x111)]()[v(0x112)](a121a)[v(0x12d)](v(0x10f));});a121a();function a121c(){const y=['<AuthProvider>','replaceAll','template','engines','create','pathFromApp','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','Creating\x20an\x20AuthProvider\x20and\x20AuthContext','split','function\x20useAuth','appName','injectIntoCodeBlock','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x0a\x20\x20\x20\x20It\x20will\x20also\x20update\x20your\x20Routes\x20file\x20to\x20include\x20the\x20AuthProvider\x20and\x20Context.\x0a\x20\x20\x20\x20for\x20navigation\x20checking.\x0a\x20\x20','<AppRoutes\x20/>','/imports/startup/lib','scaffold','provider','1518336UPfJnT','search','9kjWFvS','6023768zuVuam','injectImport','742HkLudx','/routes','injectAroundString','/imports/startup/lib/authentication-provider','AuthContext','REACT','2778zsVWGE','react','362792jisgut','</AuthProvider>','1272128jtuYBc','true','cfg','const\x20useAuth','/imports/startup/client/index','(((.+)+)+)+$','getMakaProjectConfig','toString','constructor','authentication-provider','/imports/startup/client/authentication-provider','useContext','/imports/startup/server/index','force','150842XAYhrI','.js','2768185ngthnw'];a121c=function(){return y;};return a121c();}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a121e from'./auth.generator.js';import{headerCase}from'change-case';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a121w(0x11f)]({'name':a121w(0x12b),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','shortDesc':a121w(0x121),'validOpts':[a121w(0x117)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a121w(0x136)]},'description':a121w(0x127)},async function(a,b){const x=a121w;try{const c=b['force']||![];Log['bright'](x(0x122));const d=await this[x(0x10c)][x(0x110)](),f=d[x(0x11e)]['ssr']===x(0x10b),g={'name':headerCase(d[x(0x125)])[x(0x11c)]('-','\x20')},h=f?x(0x129):'/imports/startup/client',i=this[x(0x12a)]['pathFromApp']({'pathParts':[h,'','',x(0x113)]});await this['scaffold'][x(0x11d)]({'srcPath':'kit/auth/provider/authentication-provider.js','destPath':i+x(0x119),'framework':x(0x138),'context':g,'config':d,'force':c,'ignore':![]});const j=d['engines']['js'],k=h+x(0x132),l=k[x(0x123)]('/'),m=this[x(0x12a)]['pathFromApp']({'pathParts':l});await this[x(0x12a)][x(0x130)]({'filePath':m+'.'+j,'importName':x(0x135),'modulePath':f?x(0x134):x(0x114),'isNamedExport':!![]}),await this[x(0x12a)]['injectImport']({'filePath':m+'.'+j,'importName':x(0x115),'modulePath':'react','isNamedExport':!![],'injectAtStart':!![]}),await this['scaffold'][x(0x126)]({'filePath':m+'.'+j,'content':'\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useContext(AuthContext);\x0a\x20\x20\x20\x20\x20\x20return\x20{\x20currentUser,\x20loading\x20};\x0a\x20\x20\x20\x20\x20\x20','begin':[x(0x10d),x(0x124)],'replace':!![]}),await this['scaffold'][x(0x126)]({'filePath':m+'.'+j,'content':'\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useAuth();\x0a\x20\x20\x20\x20\x20\x20if\x20(loading)\x20return\x20<div>Loading...</div>;\x0a\x20\x20\x20\x20\x20\x20return\x20(currentUser)\x20?\x20<Outlet/>\x20:\x20<Navigate\x20to=\x22/login\x22\x20/>;\x0a\x20\x20\x20\x20\x20\x20','begin':['const\x20PrivateRoute'],'replace':!![]});const n=x(0x10e),o=n[x(0x123)]('/'),p=this[x(0x12a)][x(0x120)]({'pathParts':o});await this[x(0x12a)][x(0x130)]({'filePath':p+'.'+j,'importName':'AuthProvider','modulePath':f?x(0x134):x(0x114),'isNamedExport':!![]}),await this['scaffold'][x(0x133)]({'filePath':p+'.'+j,'aboveContent':x(0x11b),'belowContent':'</AuthProvider>','targetString':x(0x128),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q=x(0x116),r=q['split']('/'),s=this[x(0x12a)]['pathFromApp']({'pathParts':r});await this[x(0x12a)][x(0x130)]({'filePath':s+'.'+j,'importName':'AuthProvider','modulePath':f?x(0x134):x(0x114),'isNamedExport':!![]}),await this[x(0x12a)][x(0x133)]({'filePath':s+'.'+j,'aboveContent':x(0x11b),'belowContent':x(0x13a),'targetString':x(0x128),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log['error'](t),process['exit'](0x1);}},async function(){},a121e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0x1c8))/0x1+parseInt(f(0x1c3))/0x2*(parseInt(f(0x1c9))/0x3)+-parseInt(f(0x1c0))/0x4+-parseInt(f(0x1c2))/0x5+-parseInt(f(0x1c6))/0x6*(-parseInt(f(0x1cb))/0x7)+-parseInt(f(0x1ce))/0x8*(-parseInt(f(0x1cc))/0x9)+parseInt(f(0x1cd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xa82a7));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0x1ca)]()[h(0x1c4)](h(0x1c5))['toString']()[h(0x1c1)](a122a)[h(0x1c4)](h(0x1c5));});a122a();function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x1c0;var f=c[d];return f;},a122d(a,b);}import'./esri.generator.js';import'./map.esri.gen.js';function a122c(){var i=['430503CZzkdU','3080631feReMg','toString','1074451izjZBI','1741041fGIbsJ','866290TDIVlx','40lqUTOD','2685292huPigG','constructor','6523085BDQRRM','2fQjPCI','search','(((.+)+)+)+$','6ewCTia','apply'];a122c=function(){return i;};return a122c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123i=a123d;(function(a,b){const f=a123d,c=a();while(!![]){try{const d=parseInt(f(0x122))/0x1*(-parseInt(f(0x133))/0x2)+-parseInt(f(0x127))/0x3*(-parseInt(f(0x123))/0x4)+parseInt(f(0x12d))/0x5+parseInt(f(0x12a))/0x6+parseInt(f(0x126))/0x7+-parseInt(f(0x128))/0x8+parseInt(f(0x12b))/0x9*(parseInt(f(0x12f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x2a839));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a123d;if(c){const e=c[g(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const h=a123d;return a123a[h(0x132)]()[h(0x131)](h(0x130))[h(0x132)]()[h(0x125)](a123a)[h(0x131)](h(0x130));});a123a();import{Generator}from'../../../generator.js';import a123e from'../kit.js';function a123c(){const k=['constructor','322105uBFGUL','3kntrxS','1170752GiGQNQ','maka\x20g:kit:e','1083378feYpUy','9tQGgnm','apply','159585YYpgOD','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','993390GmNtnP','(((.+)+)+)+$','search','toString','2VGgcMN','esri','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','122434QwtFyU','340324bUxaBk','/foo/bar'];a123c=function(){return k;};return a123c();}const EsriGen=Generator['create']({'name':a123i(0x134),'aliases':['e'],'usage':a123i(0x121),'noNeedResource':!![],'shortDesc':a123i(0x12e),'validOpts':[''],'isPro':!![],'examples':[a123i(0x129)],'description':'\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20kit\x20for\x20Esri\x20Maps.\x20Starting\x20with\x20a\x20basic\x20map,\x0a\x20\x20\x20\x20but\x20with\x20the\x20ability\x20to\x20add\x20more\x20components\x20to\x20the\x20kit.\x0a\x20\x20'},async function(){const j=a123i;return{'success':!![],'message':'Esri\x20Kit\x20generated\x20successfully','details':{'filesCreated':[j(0x124)],'filesUpdated':['/foo']}};},async function(){},a123e);function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x121;let f=c[d];return f;},a123d(a,b);}export default EsriGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124s=a124d;(function(a,b){const p=a124d,c=a();while(!![]){try{const d=parseInt(p(0xcf))/0x1+parseInt(p(0xca))/0x2+parseInt(p(0xc0))/0x3+-parseInt(p(0xd4))/0x4*(parseInt(p(0xc2))/0x5)+-parseInt(p(0xb1))/0x6+-parseInt(p(0xb3))/0x7+-parseInt(p(0xc3))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x79f7e));function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0xa2;let f=c[d];return f;},a124d(a,b);}const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a124d;if(c){const e=c[q(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const r=a124d;return a124a['toString']()['search'](r(0xc5))[r(0xcb)]()['constructor'](a124a)['search'](r(0xc5));});a124a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a124e from'./esri.generator.js';import a124f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a124s(0xa6)]({'name':a124s(0xc9),'aliases':['m'],'usage':a124s(0xb8),'shortDesc':a124s(0xb7),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a124s(0xbd)],'ssr':SsrEngines[a124s(0xb5)]},'description':a124s(0xa2)},async function(a,b){const t=a124s;try{Log[t(0xba)](t(0xb9));const c=t(0xab);await this[t(0xc4)]['checkNpmPackage'](['@esri/react-arcgis',t(0xc7)],{'shouldInstall':!![]});const d=this[t(0xbb)][t(0xaf)](),f=await this[t(0xd0)][t(0xa8)](),g=f[t(0xd3)]['ssr']===t(0xb2),h=await a124f[t(0xa9)](t(0xbf),[t(0xc9)],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0xb0)])[t(0xac)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0xc6)]?t(0xd2)+b[t(0xc6)]:t(0xb4),k=this['scaffold']['pathFromApp']({'pathParts':[j,b['dir'],paramCase(c),paramCase(c)]});await this[t(0xaa)][t(0xae)]({'srcPath':t(0xd1)+c+t(0xbc),'destPath':k+'.js','framework':'react','context':i,'config':f,'force':![],'ignore':![]});const l=''+j+b[t(0xc1)]+'/'+c+'/'+c;await this['scaffold']['injectTemplateModule'](c,f,l);const m=h[t(0xbe)]('/'),n=this[t(0xaa)][t(0xa3)]({'pathParts':m});await this['scaffold'][t(0xa5)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0xcd):t(0xa4),'isNamedExport':!![]}),await this[t(0xaa)][t(0xce)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0xa7),'begin':[t(0xc8),t(0xc8)],'end':[t(0xcc)],'replace':!![]});}catch(o){Log[t(0xad)](o),process[t(0xb6)](0x1);}},async function(){},a124e);function a124c(){const u=['error','template','findProjectDirectory','appName','987024ZogUTZ','true','6205374lXziGL','/imports/ui/hooks','FALSE','exit','Generate\x20an\x20Esri\x20map\x20component','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','Generating\x20a\x20map\x20component','bright','fsi','.js','REACT','split','page','2546745Razoal','dir','29825HKhujz','1925032tuOsaF','pkg','(((.+)+)+)+$','baseDir','esri-loader','<div\x20id=\x22map\x22>','map','1657042yZApKC','toString','</div>','/imports/startup/lib/templates','injectIntoFile','119726zUNXKq','cfg','kit/esri/map/','/imports/ui/','engines','4ryXGgN','apply','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20map\x20component\x20in\x20the\x20/imports/ui/hooks\x20directory.\x0a\x0a\x20\x20\x20\x20It\x27ll\x20also\x20create\x20a\x20page\x20component\x20in\x20the\x20/imports/ui/pages/map\x20directory.\x0a\x0a\x20\x20\x20\x20The\x20map\x20component\x20will\x20be\x20named\x20\x27BasicMap\x27\x20by\x20default.\x0a\x0a\x20\x20','pathFromApp','/imports/startup/client/templates','injectImport','create','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','getMakaProjectConfig','processAndRunGenerator','scaffold','basic-map','replaceAll'];a124c=function(){return u;};return a124c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125i=a125d;(function(a,b){const f=a125d,c=a();while(!![]){try{const d=parseInt(f(0xa1))/0x1*(-parseInt(f(0x9a))/0x2)+parseInt(f(0xaf))/0x3*(-parseInt(f(0xa6))/0x4)+parseInt(f(0x9b))/0x5*(-parseInt(f(0xab))/0x6)+-parseInt(f(0xa4))/0x7+parseInt(f(0xa3))/0x8*(parseInt(f(0xa8))/0x9)+parseInt(f(0xb0))/0xa*(parseInt(f(0xac))/0xb)+parseInt(f(0x9c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x9f8ea));function a125c(){const j=['308722oUCByj','1735eXphuo','20199972QFCICK','constructor','maka\x20{generate,\x20g}:{kit}\x20<name>','(((.+)+)+)+$','toString','1CwlQTz','maka\x20g:kit','389192GZOdyV','5211948Llmhkx','apply','2892yuCqAG','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','117PXZDJv','create','kit','11106PRjRFO','5134789gJcFyv','search','maka\x20g:k','2439OPGtSd','10OKOiPb'];a125c=function(){return j;};return a125c();}function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x9a;let f=c[d];return f;},a125d(a,b);}const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a125d;if(c){const e=c[g(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const h=a125d;return a125a[h(0xa0)]()[h(0xad)](h(0x9f))[h(0xa0)]()[h(0x9d)](a125a)[h(0xad)](h(0x9f));});a125a();import{Generator}from'../../generator.js';const KitGen=Generator[a125i(0xa9)]({'name':a125i(0xaa),'aliases':['k'],'usage':a125i(0x9e),'shortDesc':a125i(0xa7),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a125i(0xa2),a125i(0xae)]},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
function a126d(a,b){var c=a126c();return a126d=function(d,e){d=d-0x18d;var f=c[d];return f;},a126d(a,b);}(function(a,b){var f=a126d,c=a();while(!![]){try{var d=parseInt(f(0x190))/0x1*(parseInt(f(0x191))/0x2)+parseInt(f(0x19b))/0x3*(parseInt(f(0x198))/0x4)+parseInt(f(0x197))/0x5+-parseInt(f(0x19a))/0x6*(parseInt(f(0x193))/0x7)+parseInt(f(0x195))/0x8*(parseInt(f(0x19d))/0x9)+parseInt(f(0x18e))/0xa*(-parseInt(f(0x192))/0xb)+parseInt(f(0x194))/0xc*(-parseInt(f(0x18f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x22a3a));var a126b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){var g=a126d;return a126a[g(0x18d)]()[g(0x199)](g(0x196))[g(0x18d)]()[g(0x19c)](a126a)[g(0x199)](g(0x196));});a126a();function a126c(){var h=['22314lGNOyJ','177DGGSdi','constructor','873nhaleA','toString','90TNPnUg','64831ZASxth','1ZWepIH','12170qszvlf','237171agPCOh','483gGfwsx','60gKrvIz','13544TzcTSU','(((.+)+)+)+$','1386845YHHPbP','11512JLMJRH','search'];a126c=function(){return h;};return a126c();}import'./mui.generator.js';import'./frame.mui.gen.js';import'./auth.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127J=a127d;(function(a,b){const G=a127d,c=a();while(!![]){try{const d=-parseInt(G(0x1e5))/0x1+-parseInt(G(0x20b))/0x2*(-parseInt(G(0x1d4))/0x3)+parseInt(G(0x1dc))/0x4*(parseInt(G(0x200))/0x5)+-parseInt(G(0x1e6))/0x6*(-parseInt(G(0x213))/0x7)+-parseInt(G(0x1f5))/0x8+-parseInt(G(0x1ec))/0x9+-parseInt(G(0x1db))/0xa*(-parseInt(G(0x202))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x58422));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a127d;if(c){const e=c[H(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const I=a127d;return a127a[I(0x1e2)]()[I(0x1f7)](I(0x1cd))[I(0x1e2)]()[I(0x1df)](a127a)[I(0x1f7)](I(0x1cd));});a127a();import{Generator}from'../../../generator.js';function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a127d(a,b);}import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a127e from'../../../generators/maka.gen.js';function a127c(){const M=['1741648LwDCvV','force','search','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','processAndRunGenerator','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','split','Cleaning\x20up...','appName','.js','Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','10dAuoLo','login','566962XpOcpj','injectImport','/imports/startup/client/authentication-provider','Meteor\x20Accounts','basic-forgot-password-page','/imports/startup/lib/authentication-provider','ssr','register','dir','4dotEfJ','kit:auth:meteor','cfg','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','basic-password-reset-page','getMakaProjectConfig','AuthContext','kit/mui/auth/register/','7beXTyX','scaffold','route','basic-login-page','(((.+)+)+)+$','fsi','apply','basic-logout-page','/imports/ui/','replaceAll','custom','751911dbqXFr','layouts','kit/mui/auth/password-reset/','meteor','injectTemplateModule','true','kit/mui/auth/logout/','60FGtOhY','737092IjqvGS','kit/mui/auth/login/','log','constructor','list','maka\x20generate:kit:mui:frame','toString','kit:auth:provider','react','457611HUpEpT','657714gDiKvR','findProjectDirectory','/imports/ui/pages/auth','engines','kit/mui/auth/forgot-password/','auth','2266812OFtUrU','template','pathFromApp','baseDir','logout','basic-register-page','create','authType','error'];a127c=function(){return M;};return a127c();}import a127f from'./mui.generator.js';import{paramCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a127J(0x1f2)]({'name':a127J(0x1eb),'aliases':['a'],'usage':a127J(0x1f8),'shortDesc':a127J(0x1ff),'validOpts':[a127J(0x1d5),'force'],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines['REACT']},'examples':[a127J(0x1e1),'maka\x20g:k:m:f'],'description':a127J(0x20e)},async function(a,b){const K=a127J;try{const c=b[K(0x1f6)]||![],d=this[K(0x1ce)][K(0x1e7)](),f=await this[K(0x20d)][K(0x210)](),{authType:g}=await Actions['options']({'type':K(0x1e0),'name':K(0x1f3),'message':K(0x1fa),'choices':[{'name':K(0x205),'value':'meteor'},{'name':'Custom\x20(roll\x20your\x20own)','value':K(0x1d3)}]}),h=K(0x1cc),i=K(0x1d0),j=K(0x1f1),k=K(0x20f),l=K(0x206),m=b[K(0x1ef)]?K(0x1d1)+b['baseDir']:K(0x1e8),n=this[K(0x214)]['pathFromApp']({'pathParts':[m,b['dir'],paramCase(h),paramCase(h)]}),o=this[K(0x214)][K(0x1ee)]({'pathParts':[m,b[K(0x20a)],paramCase(i),paramCase(i)]}),p=this[K(0x214)][K(0x1ee)]({'pathParts':[m,b[K(0x20a)],paramCase(j),paramCase(j)]}),q=this[K(0x214)]['pathFromApp']({'pathParts':[m,b[K(0x20a)],paramCase(k),paramCase(k)]}),r=this[K(0x214)][K(0x1ee)]({'pathParts':[m,b[K(0x20a)],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[K(0x1fd)])[K(0x1d2)]('-','\x20')};await this[K(0x214)]['template']({'srcPath':K(0x1dd)+h+K(0x1fe),'destPath':n+K(0x1fe),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this['scaffold'][K(0x1ed)]({'srcPath':K(0x1da)+i+K(0x1fe),'destPath':o+'.js','framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x214)][K(0x1ed)]({'srcPath':K(0x212)+j+K(0x1fe),'destPath':p+K(0x1fe),'framework':K(0x1e4),'context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x214)]['template']({'srcPath':K(0x1d6)+k+'.js','destPath':q+K(0x1fe),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x214)][K(0x1ed)]({'srcPath':K(0x1ea)+l+K(0x1fe),'destPath':r+K(0x1fe),'framework':K(0x1e4),'context':s,'config':f,'force':c,'ignore':![]});const t=''+m+b[K(0x20a)]+'/'+h+'/'+h;await this[K(0x214)][K(0x1d8)](h,f,t);const u=''+m+b['dir']+'/'+i+'/'+i;await this[K(0x214)][K(0x1d8)](i,f,u);const v=''+m+b[K(0x20a)]+'/'+j+'/'+j;await this[K(0x214)][K(0x1d8)](j,f,v);const w=''+m+b[K(0x20a)]+'/'+k+'/'+k;await this[K(0x214)]['injectTemplateModule'](k,f,w);const x=''+m+b[K(0x20a)]+'/'+l+'/'+l;await this[K(0x214)][K(0x1d8)](l,f,x),await a127e['processAndRunGenerator'](K(0x1cb),[K(0x1cc)],{'route':K(0x201),'cwd':d,'config':f}),await a127e[K(0x1f9)](K(0x1cb),[K(0x1d0)],{'route':K(0x1f0),'private':!![],'cwd':d,'config':f}),await a127e[K(0x1f9)]('route',[K(0x1f1)],{'route':K(0x209),'cwd':d,'config':f}),await a127e[K(0x1f9)](K(0x1cb),['basic-password-reset-page'],{'route':'reset-password/:token','cwd':d,'config':f}),await a127e[K(0x1f9)](K(0x1cb),[K(0x206)],{'route':'forgot-password','cwd':d,'config':f});g===K(0x1d7)&&await a127e[K(0x1f9)](K(0x20c),[],{'force':c,'cwd':d,'config':f});g===K(0x1d3)&&await a127e['processAndRunGenerator'](K(0x1e3),[],{'force':c,'cwd':d,'config':f});const y=f[K(0x1e9)][K(0x208)]===K(0x1d9),z=f['engines']['js'],A=this['scaffold'][K(0x1ee)]({'pathParts':t[K(0x1fb)]('/')});await this[K(0x214)][K(0x203)]({'filePath':A+'.'+z,'importName':'AuthContext','modulePath':y?K(0x207):K(0x204),'isNamedExport':!![]});const B=this[K(0x214)][K(0x1ee)]({'pathParts':u[K(0x1fb)]('/')});await this[K(0x214)][K(0x203)]({'filePath':B+'.'+z,'importName':K(0x211),'modulePath':y?K(0x207):K(0x204),'isNamedExport':!![]});const C=this[K(0x214)][K(0x1ee)]({'pathParts':v['split']('/')});await this[K(0x214)][K(0x203)]({'filePath':C+'.'+z,'importName':K(0x211),'modulePath':y?K(0x207):'/imports/startup/client/authentication-provider','isNamedExport':!![]});const D=this['scaffold']['pathFromApp']({'pathParts':w[K(0x1fb)]('/')});await this[K(0x214)][K(0x203)]({'filePath':D+'.'+z,'importName':K(0x211),'modulePath':y?K(0x207):K(0x204),'isNamedExport':!![]});const E=this[K(0x214)][K(0x1ee)]({'pathParts':x[K(0x1fb)]('/')});await this[K(0x214)][K(0x203)]({'filePath':E+'.'+z,'importName':K(0x211),'modulePath':y?'/imports/startup/lib/authentication-provider':'/imports/startup/client/authentication-provider','isNamedExport':!![]});}catch(F){Log[K(0x1f4)](F);}},async function(){const L=a127J;console[L(0x1de)](L(0x1fc));},a127f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128D=a128d;(function(a,b){const B=a128d,c=a();while(!![]){try{const d=parseInt(B(0xf5))/0x1+parseInt(B(0x106))/0x2*(parseInt(B(0xe4))/0x3)+-parseInt(B(0xf1))/0x4*(-parseInt(B(0x127))/0x5)+-parseInt(B(0xfb))/0x6*(-parseInt(B(0x12a))/0x7)+-parseInt(B(0x126))/0x8*(parseInt(B(0xe8))/0x9)+parseInt(B(0x114))/0xa+-parseInt(B(0xea))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x63cc7));const a128b=(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;};}()),a128a=a128b(this,function(){const C=a128d;return a128a[C(0x11a)]()[C(0xe7)]('(((.+)+)+)+$')[C(0x11a)]()[C(0xe6)](a128a)[C(0xe7)](C(0x111));});a128a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a128c(){const G=['force','/imports/ui/components','298206cQhnSj','tsx','join','layouts','tests','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','1184952rBKCUe','appName','getFiles','jsx','test','react','app-tests','@mui/material/Container','error','true','ssr','6fcDCeu','/imports/startup/lib/templates','kit/mui/frame/drawers/','maka\x20generate:kit:mui:frame','<div\x20id=\x22','<Box\x20style={{\x20display:\x20\x27flex\x27,\x20flexDirection:\x20\x27column\x27,\x20minHeight:\x20\x27calc(100vh\x20-\x20157px)\x27\x20}}>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Container\x20component=\x22main\x22>','Cleaning\x20up...','MATERIAL','<Outlet\x20/>','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20frame\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','@mui/material/Box','(((.+)+)+)+$','checkbox','</div>','3704230pkzbto','imports','/imports/ui/','findAppDirectory','\x20/>\x0a','injectAroundString','toString','dir','basic-drawer','length','basic-sticky-footer','Box','kit/mui/frame/footers/','frame','No\x20layouts\x20selected','injectImport','scaffold','maka:react-tracker','24DKJBly','5nzOmAE','injectIntoFile','replaceAll','14hUYAxY','kit/mui/frame/app-bars/','create','basic-app-bar','<Outlet/>','Container','getMakaProjectConfig','fsi','757641HupzyA','/imports/startup/client/templates','constructor','search','37899KzAsWY','-hook\x22>','18782335KnLmxZ','pathFromApp','pkg','.js','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','template','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f}','1230556uzxNXV','baseDir'];a128c=function(){return G;};return a128c();}import a128e from'path';import a128f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xdd;let f=c[d];return f;},a128d(a,b);}import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a128D(0xde)]({'name':a128D(0x121),'aliases':['f'],'usage':a128D(0xf0),'shortDesc':a128D(0xee),'validOpts':[a128D(0xf8),a128D(0xf2),'dir',a128D(0xf3)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a128D(0x10d)],'client':ClientEngines['REACT']},'examples':[a128D(0x109),'maka\x20g:k:m:f'],'description':a128D(0x10f)},async function(a,b){const E=a128D;try{const c=b['force']||![],d=E(0xdf),f=E(0x11c),g=E(0x11e),h=await this['cfg'][E(0xe2)](),i=h['engines'][E(0x105)]===E(0x104);await this[E(0xec)]['checkMeteorPackage'](['session',E(0x125)],{'shouldInstall':!![]});const j=this['fsi'][E(0x117)](),k=a128e[E(0xf7)](j,E(0x115),'ui',E(0xf8)),l=this[E(0xe3)]['getDirectories'](k),m=await Actions['options']({'type':E(0x112),'name':'layouts','message':E(0xfa),'choices':l});if(m[E(0xf8)][E(0x11d)]===0x0){Log[E(0x103)](E(0x122));return;}const n=b[E(0xf2)]?E(0x116)+b[E(0xf2)]:E(0xf4),o=this[E(0x124)]['pathFromApp']({'pathParts':[n,b[E(0x11b)],paramCase(d),paramCase(d)]}),p=this['scaffold'][E(0xeb)]({'pathParts':[n,b[E(0x11b)],paramCase(f),paramCase(f)]}),q=this['scaffold'][E(0xeb)]({'pathParts':[n,b['dir'],paramCase(g),paramCase(g)]}),r={'name':headerCase(h[E(0xfc)])[E(0x129)]('-','\x20')};await this[E(0x124)]['template']({'srcPath':E(0xdd)+d+'.js','destPath':o+'.js','framework':'react','context':r,'config':h,'force':c,'ignore':![]}),await this[E(0x124)][E(0xef)]({'srcPath':E(0x108)+f+'.js','destPath':p+E(0xed),'framework':E(0x100),'context':r,'config':h,'force':c,'ignore':![]}),await this[E(0x124)][E(0xef)]({'srcPath':E(0x120)+g+E(0xed),'destPath':q+E(0xed),'framework':E(0x100),'context':r,'config':h,'force':c,'ignore':![]});const s=''+n+b[E(0x11b)]+'/'+d+'/'+d;await this[E(0x124)]['injectTemplateModule'](d,h,s);const t=''+n+b[E(0x11b)]+'/'+f+'/'+f;await this[E(0x124)]['injectTemplateModule'](f,h,t);const u=''+n+b[E(0x11b)]+'/'+g+'/'+g;await this[E(0x124)]['injectTemplateModule'](g,h,u);const {layouts:v}=m;for(const w of v){const x=this[E(0xe3)][E(0xfd)](a128e[E(0xf7)](k,w),{'extensions':[E(0xfe),E(0xf6)],'omit':[E(0x101),E(0xf9),E(0xff)]});for(const y of x){const z=a128e[E(0xf7)](k,w,y);await this['scaffold'][E(0x123)]({'filePath':z,'importName':E(0x11f),'modulePath':E(0x110),'isNamedExport':![]}),await this[E(0x124)][E(0x123)]({'filePath':z,'importName':E(0xe1),'modulePath':E(0x102),'isNamedExport':![]}),await this[E(0x124)][E(0x123)]({'filePath':z,'importName':pascalCase(d),'modulePath':i?'/imports/startup/lib/templates':E(0xe5),'isNamedExport':!![]}),await this[E(0x124)][E(0x128)]({'filePath':z,'content':'<'+pascalCase(d)+E(0x118),'begin':[E(0x10a)+w+'\x22>',E(0x10a)+w+E(0xe9)],'end':[E(0xe0),'<Outlet\x20/>']}),await this['scaffold'][E(0x123)]({'filePath':z,'importName':pascalCase(f),'modulePath':i?E(0x107):E(0xe5),'isNamedExport':!![]}),await this[E(0x124)][E(0x128)]({'filePath':z,'content':'<'+pascalCase(f)+E(0x118),'begin':[E(0x10a)+w+'\x22>',E(0x10a)+w+E(0xe9)],'end':['<Outlet/>','<Outlet\x20/>']}),await this[E(0x124)]['injectIntoFile']({'filePath':z,'content':'<'+pascalCase(g)+E(0x118),'begin':[E(0xe0),E(0x10e)],'end':[E(0x113)]}),await this['scaffold'][E(0x123)]({'filePath':z,'importName':pascalCase(g),'modulePath':i?E(0x107):E(0xe5),'isNamedExport':!![]}),await this[E(0x124)][E(0x119)]({'filePath':z,'aboveContent':E(0x10b),'belowContent':'</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','targetString':[E(0xe0),'<Outlet\x20/>'],'targetIndentAdjustment':0x6});}}}catch(A){Log[E(0x103)](A);}},async function(){const F=a128D;console['log'](F(0x10c));},a128f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a129i=a129d;(function(a,b){const g=a129d,c=a();while(!![]){try{const d=-parseInt(g(0x1c3))/0x1+-parseInt(g(0x1b3))/0x2*(-parseInt(g(0x1d4))/0x3)+parseInt(g(0x1c6))/0x4+-parseInt(g(0x1c2))/0x5*(parseInt(g(0x1cb))/0x6)+-parseInt(g(0x1d0))/0x7+-parseInt(g(0x1be))/0x8+parseInt(g(0x1b6))/0x9*(parseInt(g(0x1b7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x827e4));const a129b=(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;};}()),a129a=a129b(this,function(){const h=a129d;return a129a['toString']()[h(0x1bf)](h(0x1d5))[h(0x1bc)]()['constructor'](a129a)[h(0x1bf)](h(0x1d5));});a129a();function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a129d(a,b);}import{Generator}from'../../../generator.js';import{Actions}from'../../../tools/actions/actions.class.js';function a129c(){const k=['Material-UI\x20Kit','18sIpLHL','mui','Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!','auth','Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','5967598AEAOcU','fsi','getMakaProjectConfig','maka\x20g:kit:m','774AnGxlr','(((.+)+)+)+$','frame','7066QZollj','create','info','63XyfFhw','1325870kProov','kit:mui:auth','No\x20MUI\x20kits\x20selected.\x20Exiting.','Auth\x20workflow\x20(login,\x20logout,\x20etc.)','cfg','toString','kit:mui:frame','3768384nFrMyP','search','notice','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','712870eEhfSQ','96068BKyoWr','options','processAndRunGenerator','2168916ezPEDY','kitChoices','includes','checkbox'];a129c=function(){return k;};return a129c();}import{Log}from'../../../tools/log/log.class.js';import a129e from'../../../generators/maka.gen.js';import a129f from'../kit.js';const MuiGen=Generator[a129i(0x1b4)]({'name':a129i(0x1cc),'aliases':['m'],'usage':a129i(0x1c1),'noNeedResource':!![],'shortDesc':a129i(0x1ca),'validOpts':[''],'isPro':!![],'examples':[a129i(0x1d3)]},async function(){const j=a129i;Log[j(0x1b5)](j(0x1cd)),Log[j(0x1c0)]('\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&####%&@@@@@@@@@@@@@@@@@@@&&%###&@@@@@@&%###%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#(((((##%&&@@@@@@@@@&&%%#(((((#&@@@@@&#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((#%&&@&&%##(((((((((#&@@@@&&#((##%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((((((#((((((((((((((#&@@@@@&%&&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#%%%%##((((((((#%%&%#((((#&@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@&&%###%%&@@@@&#((((#&@@@@@@@@&&&&@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@@@&#((((#&@@@@@&%#(((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@&%##((((#&@@@@&%#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&%#(((#&&@@@@@@@@@&&%##(((((((#%&@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@&%#%&@@@@@@@@&#((((((((##%&@@@@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((%&@@@@@@@@@&%#((((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((#%%&@@&&%##((((((((#%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@&%%#((((((((##((((((((##%&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&%##(((((((((##%&@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&%##(#%&&@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a\x0a\x20\x20This\x20generator\x20will\x20help\x20you\x20add\x20MUI\x20to\x20your\x20project.\x0a\x20\x20Choose\x20from\x20a\x20selection\x20of\x20premade\x20MUI\x20components.\x0a\x20\x20');const {kitChoices:a}=await Actions[j(0x1c4)]({'type':j(0x1c9),'name':j(0x1c7),'message':j(0x1cf),'choices':[{'name':'Header,\x20Footer,\x20and\x20Drawer','value':j(0x1b2)},{'name':j(0x1ba),'value':j(0x1ce)}]}),b=this[j(0x1d1)]['findProjectDirectory'](),c=this[j(0x1bb)][j(0x1d2)]();a['includes']('frame')&&await a129e[j(0x1c5)](j(0x1bd),[],{'force':!![],'cwd':b,'config':c});a[j(0x1c8)]('auth')&&await a129e['processAndRunGenerator'](j(0x1b8),[],{'force':!![],'cwd':b,'config':c});if(a['length']===0x0){Log[j(0x1b5)](j(0x1b9));return;}},async function(){},a129f);export default MuiGen;
|