@maka/maka-cli 4.7.9 → 4.7.11
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/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/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/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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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/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/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/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/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/project/gitignore +1 -0
- package/bundle/obf/src/templates/meteor/project/package.json +20 -0
- 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
|
+
function a97c(){const E=['forEach','10BQGSAB','root','where','push','function','bright','minArgLength','getGlobalConfig','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','209445SoVirY','DARK','call','Location','Too\x20few\x20arguments','_generators','server','exit','Generator\x20not\x20found','invoke','Too\x20few\x20options','join','client','1420776BbvysO','There\x20is\x20no\x20Meteor\x20application\x20here','setColorMode','includes','mustHaveMeteorInstalled','requiredEngines','pallet','validateMakaProject','743877apzwdd','length','Too\x20many\x20options','minOptsLength','validateMakaSubscription','Generator\x20format\x20is\x20incorrect','Generator\x20','noNeedResource','chdir','232976WgbxSb','39208bIPuLx','bind','toString','keys','options','No\x20resource\x20name\x20specified','(((.+)+)+)+$','create','slice','2817155qJGpza','\x20not\x20found','dir','Both','help','colLocAnswer','replace','handleGenerateError','7kZSCTR','resourceName','74ewmpCq','Description','fsi','cwd','tableList','Name','processAndRunGenerator','pop','Generator\x20requires\x20a\x20name','81XcBWRh','appPathPrefix','_handler','Generator.create\x20requires\x20a\x20handler\x20function!','validateEngines','Client','addGenerator','Generators:','5099pPqgzD','listGenerators','light','assign','number','LIGHT','validateMeteorInstall','mustBeInMakaProject','search','error','checkWhere','validateParams','map','notice','both','maxOptsLength','shortDesc','name'];a97c=function(){return E;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x146;let f=c[d];return f;},a97d(a,b);}const a97t=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=-parseInt(q(0x19b))/0x1*(-parseInt(q(0x18a))/0x2)+-parseInt(q(0x16d))/0x3+-parseInt(q(0x177))/0x4+-parseInt(q(0x158))/0x5+-parseInt(q(0x165))/0x6*(-parseInt(q(0x188))/0x7)+parseInt(q(0x176))/0x8*(parseInt(q(0x193))/0x9)+parseInt(q(0x14f))/0xa*(-parseInt(q(0x180))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x202da));const a97b=(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;};}()),a97a=a97b(this,function(){const r=a97d;return a97a[r(0x179)]()[r(0x1a3)](r(0x17d))[r(0x179)]()['constructor'](a97a)['search']('(((.+)+)+)+$');});a97a();import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';async function inside(a='.',b){const s=a97d,c=process[s(0x18d)]();let d=null;try{process[s(0x175)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a97t(0x17b)];['_generators'];constructor(a,b){const u=a97t;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[u(0x14d)])throw new Error(u(0x192));if(typeof b!=='function')throw new Error('Generator\x20requires\x20a\x20handler\x20function');this['_generators']=[],this[u(0x17b)]=Object[u(0x19e)]({},a),this[u(0x14d)]=this[u(0x17b)][u(0x14d)],this['_handler']=b[u(0x178)](this);}static[a97t(0x17e)](a,b,c){const v=a97t;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==v(0x153))throw new Error(v(0x196));const d=new Generator(a,b);return c=c||a97g,Object[v(0x19e)](d,{'parent':c?.[v(0x17b)]?.[v(0x14d)]}),c[v(0x199)](d),d;}['addGenerator'](a){const w=a97t;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators'][w(0x152)](a);}async[a97t(0x190)](a,b=[],c={}){const x=a97t;let d;try{const f=a?.['split'](':');if(!f||f[x(0x16e)]===0x0)throw x(0x172);let g=this[x(0x15d)],h;for(const i of f){h=g['find'](j=>j['match'](i));if(!h)throw x(0x173)+i+x(0x181);await this[x(0x171)](h),g=h[x(0x15d)];}if(h)d=await h[x(0x161)](b,c);else throw x(0x160);}catch(j){Log['error'](j);}return d;}async[a97t(0x161)](a,b){const y=a97t,c=a[y(0x17f)]();b[y(0x189)]=c[0x0];try{const d=await this[y(0x18c)][y(0x156)](),f=d[y(0x16b)]===y(0x19d)?ColorMode[y(0x1a0)]:ColorMode[y(0x159)];Log[y(0x167)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[y(0x16e)]===0x0&&this[y(0x15d)][y(0x16e)]>=0x0,h=b[y(0x184)]||b['h'];if(g&&h){if(this['_generators'][y(0x16e)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][y(0x1a2)]){const i=this[y(0x16c)]();if(!i)throw new MustBeInProjectError();}if(this['options'][y(0x169)]){const j=this[y(0x1a1)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[y(0x17b)]['minArgLength']===y(0x19f)){if(a[y(0x16e)]<this[y(0x17b)][y(0x155)]){Log[y(0x1a4)](y(0x15c));throw new UsageError();}}if(typeof this[y(0x17b)]['maxArgLength']===y(0x19f)){if(a[y(0x16e)]>this[y(0x17b)]['maxArgLength']){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options'][y(0x170)]==='number'){if(Object[y(0x17a)](b)[y(0x16e)]<this[y(0x17b)][y(0x170)]){Log[y(0x1a4)](y(0x162));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===y(0x19f)){if(Object[y(0x17a)](b)[y(0x16e)]>=this[y(0x17b)][y(0x14b)]){Log[y(0x1a4)](y(0x16f));throw new UsageError();}}}this[y(0x17b)]['requiredEngines']&&this[y(0x197)](this['options'][y(0x16a)]);await this[y(0x147)](a,b,this[y(0x17b)]);if(!b[y(0x189)]&&!this[y(0x17b)][y(0x174)]){Log[y(0x1a4)](y(0x17c));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[y(0x187)](k),process[y(0x15f)](0x1);}return await inside(b[y(0x18d)],async()=>{const z=y;try{if(!b[z(0x150)]&&!this[z(0x18c)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b['resourceName']?.[z(0x186)](/\\/g,'/')['split']('/');!b[z(0x182)]&&(l?.['length']>0x1?(b[z(0x189)]=l[z(0x191)](),c[0x0]=b[z(0x189)],b[z(0x182)]=l[z(0x148)](m=>{return paramCase(m);})[z(0x163)](a97e['sep'])):b[z(0x182)]='');if(this[z(0x17b)][z(0x146)]){if(!b[z(0x151)]){const n={'type':'list','name':z(0x185),'message':z(0x15b),'choices':[{'name':z(0x198),'value':z(0x164)},{'name':'Server','value':'server'},{'name':z(0x183),'value':z(0x14a)}]},{colLocAnswer:o}=await Actions[z(0x17b)](n);o?b['where']=o:b[z(0x151)]=z(0x14a);}const m=[z(0x14a),z(0x164),z(0x15e)];if(!m[z(0x168)](b[z(0x151)])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[z(0x151)]){case z(0x14a):b[z(0x194)]='lib';break;case'server':b['appPathPrefix']='server';break;case z(0x164):b[z(0x194)]=z(0x164);break;default:b[z(0x194)]='';}}return await this[z(0x195)][z(0x15a)](this,c,b);}catch(p){this['handleGenerateError'](p);}});}[a97t(0x19c)](){const A=a97t;this[A(0x18e)](this[A(0x15d)]);}[a97t(0x187)](a){const B=a97t,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[B(0x17b)];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[B(0x149)](B(0x19a)),this[B(0x18e)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[B(0x1a4)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[B(0x1a4)](B(0x157)),Log[B(0x149)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log['error'](B(0x166));}}}[a97t(0x18e)](a){const C=a97t,b=new a97f({});b['push']([C(0x18f),'Alias',C(0x18b)]),a['sort']()[C(0x14e)](c=>{const D=C;b['push']([c[D(0x14d)],c['aliases'](),c[D(0x14c)]()]);}),Log[C(0x154)](b['toString']());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0xa3))/0x1+-parseInt(f(0xa6))/0x2*(-parseInt(f(0x9d))/0x3)+-parseInt(f(0x9e))/0x4*(-parseInt(f(0xa4))/0x5)+parseInt(f(0x9c))/0x6*(-parseInt(f(0x9b))/0x7)+-parseInt(f(0xa0))/0x8+-parseInt(f(0xa2))/0x9+-parseInt(f(0xa7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xc3d8b));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x9a)]()[h(0x99)](h(0x9f))[h(0x9a)]()[h(0xa1)](a98a)[h(0x99)](h(0x9f));});function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x99;var f=c[d];return f;},a98d(a,b);}a98a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';function a98c(){var i=['8206090jwQJzD','search','toString','4130462fAtAlG','6orSkuT','771981iIynKu','8rqbvOZ','(((.+)+)+)+$','914400dMCmgc','constructor','8320851eiXRqD','1295998RVIhDL','1672670anziIc','apply','10kZpLpw'];a98c=function(){return i;};return a98c();}import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99x=a99d;function a99c(){const A=['typeDefs.','api/api.js','apollo','injectIntoFile','maka:check','6940EuJhPQ','dir','create','Fixtures','constructor','982072PflrrV','server','6231258gAGjsa','2629XjykKq','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','/graphql/typeDefs','rpc-methods.','const','template','1996AiHBzH','2wgbqVV','rest','.app-tests.','import\x20\x27./register-','\x27;\x0a','none','resolvers.','18ARMblg','imports','startup','includes','1729616CCEHoR','graphql','2095731fgEttn','publications.','search','91310lauVNv','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','withPubs','ddp-rate-limiter','fixtures.','api','Resolvers\x20}\x20from\x20\x27','resolverList.push(','-api.','api/typeDefs.js','Resolvers);\x0a\x0a','\x0aimport\x20{\x20resolvers\x20as\x20','if\x20\x5c(typeList','engines','462961XOEIkR','GraphQL','injectAtBeginningOfFile','api/resolvers.js','api/methods.js','/imports/api','pathFromApp','test','length','api/publications.js','API\x20boundaries\x20to\x20create','withFixtures','withRest','No\x20API\x20boundaries\x20selected','checkbox','RPC\x20(Methods)','withMethods','exit','Publications','mdg:validated-method','withGql','processAndRunGenerator','resourceName','index.','error','-api\x27;','collection','toString','TypeDefs\x20}\x20from\x20\x27','options','withValue','maka:rest','push','/graphql/resolvers','TypeDefs);\x0a','injectAtEndOfFile','fsi','apply','typeList.push(','(((.+)+)+)+$','checkMeteorPackage'];a99c=function(){return A;};return a99c();}(function(a,b){const u=a99d,c=a();while(!![]){try{const d=-parseInt(u(0x16c))/0x1*(parseInt(u(0x14e))/0x2)+-parseInt(u(0x15b))/0x3+-parseInt(u(0x14d))/0x4*(parseInt(u(0x19a))/0x5)+-parseInt(u(0x155))/0x6*(parseInt(u(0x159))/0x7)+parseInt(u(0x19f))/0x8+parseInt(u(0x1a1))/0x9+parseInt(u(0x15e))/0xa*(parseInt(u(0x1a2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x62260));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0x187)]()[w(0x15d)]('(((.+)+)+)+$')[w(0x187)]()[w(0x19e)](a99a)[w(0x15d)](w(0x193));});a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x14c;let f=c[d];return f;},a99d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99x(0x19c)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a99x(0x1a3),'validOpts':[a99x(0x19b)],'examples':['maka\x20g:api\x20Todos'],'description':a99x(0x15f)},async function(a,b){const y=a99x;try{const c=this['fsi']['getMakaProjectConfig'](),d=[{'name':y(0x17b),'value':y(0x17c)},{'name':y(0x19d),'value':y(0x177)},{'name':y(0x17e),'value':y(0x160)}];c[y(0x16b)][y(0x163)]===y(0x14f)&&d[y(0x18c)]({'name':'REST\x20API','value':y(0x178)});c[y(0x16b)]['graphql']===y(0x197)&&d[y(0x18c)]({'name':y(0x16d),'value':'withGql'});const f={'type':y(0x17a),'name':'apiAnswers','message':y(0x176),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x189)](f);g[y(0x174)]===0x0&&(Log[y(0x184)](y(0x179)),process[y(0x17d)](0x1)),await this[y(0x190)][y(0x18a)](c,async()=>{const z=y,h=b[z(0x182)],i=paramCase(h),j=camelCase(h),k=b[z(0x19b)]?'/'+b[z(0x19b)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0x16b)][z(0x163)],'graphql':c[z(0x16b)]['graphql'],'test':c['engines'][z(0x173)],'noRename':!![],'withPubs':g[z(0x158)](z(0x160)),'withFixtures':g[z(0x158)]('withFixtures'),'withMethods':g['includes'](z(0x17c)),'withRest':g['includes']('withRest')};let m='js';c[z(0x16b)]['js']==='tsx'&&(m='ts');await this[z(0x190)][z(0x194)]([z(0x18b),z(0x199),z(0x161),z(0x17f),'mongo'],{'shouldInstall':!![]}),await a99e[z(0x181)](z(0x186),[i],{'config':c,'where':z(0x1a0)});c['engines'][z(0x163)]===z(0x14f)&&(l['withRest']&&await this[z(0x190)][z(0x14c)]({'srcPath':z(0x196),'destPath':this['fsi'][z(0x172)]({'pathParts':['imports',z(0x163),b[z(0x19b)],i,'rest-api.'+m]}),'context':l,'config':c}));l[z(0x17c)]&&await this[z(0x190)]['template']({'srcPath':z(0x170),'destPath':this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x163),b[z(0x19b)],i,z(0x1a5)+m]}),'context':l,'config':c});l[z(0x177)]&&await this[z(0x190)][z(0x14c)]({'srcPath':'api/fixtures.js','destPath':this['fsi'][z(0x172)]({'pathParts':[z(0x156),z(0x163),b[z(0x19b)],i,z(0x162)+m]}),'context':l,'config':c});c['engines'][z(0x173)]!==z(0x153)&&this[z(0x190)]['template']({'srcPath':'api/tests.js','destPath':this[z(0x190)]['pathFromApp']({'pathParts':[z(0x156),'api',b[z(0x19b)],i,i+z(0x150)+m]}),'context':l,'config':c});l['withPubs']&&await this[z(0x190)][z(0x14c)]({'srcPath':z(0x175),'destPath':this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x163),b[z(0x19b)],i,z(0x15c)+m]}),'context':l,'config':c});if(c[z(0x16b)][z(0x15a)]===z(0x197)){if(g[z(0x158)](z(0x180))){const o=this[z(0x190)]['pathFromApp']({'pathParts':['imports',z(0x157),z(0x1a0),z(0x183)+c[z(0x16b)]['js']]}),p=this[z(0x190)]['rewriteDestinationPathForEngine']({'pathParts':[o],'config':c}),q=this['fsi'][z(0x172)]({'pathParts':['imports',z(0x163),b['dir'],i,z(0x15a),z(0x195)+m]}),r=z(0x171)+k+i+z(0x1a4);this[z(0x190)][z(0x14c)]({'srcPath':z(0x167),'destPath':q,'context':l,'config':c}),await this[z(0x190)][z(0x16e)]({'filePath':p,'content':'import\x20{\x20typeDefs\x20as\x20'+j+z(0x188)+r+z(0x152)}),await this['fsi'][z(0x198)]({'filePath':p,'content':z(0x192)+j+z(0x18e),'begin':z(0x1a6),'end':z(0x16a)});const s=this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x163),b[z(0x19b)],i,z(0x15a),z(0x154)+m]}),t=z(0x171)+k+i+z(0x18d);await this[z(0x190)][z(0x14c)]({'srcPath':z(0x16f),'destPath':s,'context':l,'config':c}),await this[z(0x190)]['injectAtBeginningOfFile']({'filePath':p,'content':z(0x169)+j+z(0x164)+t+'\x27;'}),await this[z(0x190)][z(0x198)]({'filePath':p,'content':z(0x165)+j+z(0x168),'begin':z(0x1a6),'end':'if\x20\x5c(typeList'});}}await this[z(0x190)][z(0x14c)]({'srcPath':'api/register-api.js','destPath':this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x157),z(0x1a0),'register-'+i+z(0x166)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x157),z(0x1a0),'index.'+c[z(0x16b)]['js']]});await this[z(0x190)][z(0x18f)]({'filePath':n,'content':z(0x151)+i+z(0x185)});});}catch(h){console['error'](h),process[y(0x17d)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d
|
|
1
|
+
const a100m=a100d;function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x184;let f=c[d];return f;},a100d(a,b);}function a100c(){const p=['constructor','collections','apply','index.','toString','maka\x20g:collection\x20todos','385768FAfdkf','template','mongo','import\x20\x27./collections','where','maka:check','dir','test','654839FHsbZZ','withValue','collection/tests.js','checkMeteorPackage','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','fsi','imports','startup','appPathPrefix','517052LeEgRy','3589320lqhdQA','resourceName','engines','search','(((.+)+)+)+$','col','3946124PPxxdB','tsx','getMakaProjectConfig','4251384dGqFGE','collection/collection.js','12tsYgTD','pathFromApp','10NBBlte','45422jNyIfB'];a100c=function(){return p;};return a100c();}(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x1a8))/0x1+parseInt(j(0x199))/0x2*(parseInt(j(0x196))/0x3)+-parseInt(j(0x18a))/0x4*(-parseInt(j(0x198))/0x5)+-parseInt(j(0x18b))/0x6+-parseInt(j(0x191))/0x7+parseInt(j(0x1a0))/0x8+parseInt(j(0x194))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x58966));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x19e)]()['search'](l(0x18f))[l(0x19e)]()[l(0x19a)](a100a)[l(0x18e)]('(((.+)+)+)+$');});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'collection','aliases':[a100m(0x190)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a100m(0x185),'validOpts':[a100m(0x1a6),'where'],'description':'\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','examples':[a100m(0x19f)]},async function(a,b){const n=a100m;try{const c=this[n(0x186)][n(0x193)]();await this['fsi'][n(0x1a9)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':pascalCase(b[o(0x18c)]),'collectionName':pascalCase(b[o(0x18c)]),'fileName':d,'where':b[o(0x1a4)],'test':c[o(0x18d)][o(0x1a7)],'noRename':!![]};let g='js';c[o(0x18d)]['js']===o(0x192)&&(g='ts');await this['fsi'][o(0x184)]([o(0x1a2),o(0x1a5)],{'shouldInstall':!![]}),await this[o(0x186)][o(0x1a1)]({'srcPath':o(0x195),'destPath':this[o(0x186)]['pathFromApp']({'pathParts':[o(0x187),o(0x188),b[o(0x189)],o(0x19b),b[o(0x1a6)],d+'.'+g]}),'context':f,'config':c});c['engines'][o(0x1a7)]!=='none'&&await this[o(0x186)][o(0x1a1)]({'srcPath':o(0x1aa),'destPath':this[o(0x186)][o(0x197)]({'pathParts':[o(0x187),'startup',b['appPathPrefix'],o(0x19b),b['dir'],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[o(0x1a6)]?'/'+b['dir']+'/':'/',i=this[o(0x186)][o(0x197)]({'pathParts':[o(0x187),o(0x188),b[o(0x189)],o(0x19d)+c[o(0x18d)]['js']]});await this[o(0x186)]['injectAtEndOfFile']({'filePath':i,'content':o(0x1a3)+h+d+'\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a101m=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=-parseInt(k(0x18d))/0x1+parseInt(k(0x18f))/0x2*(parseInt(k(0x172))/0x3)+-parseInt(k(0x177))/0x4*(-parseInt(k(0x16d))/0x5)+parseInt(k(0x163))/0x6*(parseInt(k(0x19c))/0x7)+parseInt(k(0x192))/0x8*(parseInt(k(0x17d))/0x9)+parseInt(k(0x17f))/0xa*(parseInt(k(0x18c))/0xb)+-parseInt(k(0x176))/0xc*(parseInt(k(0x169))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x19ada));const a101b=(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;};}()),a101a=a101b(this,function(){const l=a101d;return a101a['toString']()[l(0x17b)](l(0x161))[l(0x16b)]()[l(0x185)](a101a)['search'](l(0x161));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x15c;let f=c[d];return f;},a101d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];function a101c(){const p=['relative','client','api','withValue','theme','fileName','/imports/ui/components','ramda','component','18648fPPpXg','import\x20\x27./','withTranslations','.tests.js','.js','setTemplate','checkNpmPackage','(((.+)+)+)+$','installNpmPackage','18yOEijC','test/test.js','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','layouts','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','create','625599GJJaIT','getMakaProjectConfig','toString','template','26260CDNGtp','component/component.js','baseDir','pathFromProject','true','72255FLcqYF','resourceName','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','36WCwRve','48zQzmRt','error','dir','engines','search','test','25983eSbNol','css','530NgBBos','features','fsi','ssr','react','components','constructor','warn','hooks','graphql','maka\x20g:comp\x20todos/todos-item','assign','className','26279XsdNHU','141675yuwONv','pathFromApp','12nFPQSN','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','pages','136HthRxu'];a101c=function(){return p;};return a101c();}Generator[a101m(0x168)]({'name':a101m(0x19b),'aliases':aliases,'usage':a101m(0x165),'shortDesc':a101m(0x190),'validOpts':[{'name':a101m(0x16f),'values':[a101m(0x187),a101m(0x184),a101m(0x191),a101m(0x166)]}],'examples':[a101m(0x189)]},async function(a,b){const n=a101m;try{const c=this[n(0x181)]['findAppDirectory'](),d=b[n(0x16f)]?'/imports/ui/'+b[n(0x16f)]:n(0x199),f=this[n(0x181)][n(0x18e)]({'pathParts':[d,b[n(0x179)],paramCase(b['resourceName']),paramCase(b[n(0x173)])]}),g=await this[n(0x181)][n(0x16a)]();await this[n(0x181)][n(0x196)](g,async()=>{const o=n;typeof g['template'][o(0x17c)]===o(0x174)&&(g['template'][o(0x17c)]=g['template']['test']===o(0x171)?!![]:![],this[o(0x181)]['setTemplate'](o(0x17c),g[o(0x16c)]['test']));typeof g['template'][o(0x17e)]===o(0x174)&&(g['template'][o(0x17e)]=g['template'][o(0x17e)]==='true'?!![]:![],this['fsi'][o(0x15f)](o(0x17e),g[o(0x16c)][o(0x17e)]));typeof g['template']['js']==='string'&&(g[o(0x16c)]['js']=g[o(0x16c)]['js']===o(0x171)?!![]:![],this[o(0x181)][o(0x15f)]('js',g[o(0x16c)]['js']));!g[o(0x180)]&&(g[o(0x180)]={});!b['root']&&!this['fsi']['checkNpmPackage']('ramda')&&(Log[o(0x186)](o(0x167)),await this['fsi'][o(0x162)](o(0x19a),{'cwd':c}));if(!b['root']&&!this[o(0x181)][o(0x160)](o(0x183))){Log[o(0x178)](o(0x175));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[o(0x193)](this['fsi'][o(0x170)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[o(0x173)]),'fileName':paramCase(b['resourceName']),'graphql':g['engines'][o(0x188)],'features':g['features'],'client':g[o(0x17a)][o(0x194)],'api':g['engines'][o(0x195)],'ssr':g['engines'][o(0x182)],'test':g[o(0x17a)]['test'],'theme':g[o(0x17a)][o(0x197)],'isLayout':![],'isComponent':!![],'withTranslations':g[o(0x180)][o(0x15c)]};await this['fsi'][o(0x16c)]({'srcPath':o(0x16e),'destPath':f+o(0x15e),'context':h,'framework':o(0x183),'config':g});g[o(0x17a)][o(0x17c)]!=='none'&&await this[o(0x181)][o(0x16c)]({'srcPath':o(0x164),'destPath':f+o(0x15d),'context':h,'framework':o(0x183),'config':g});g[o(0x16c)]['css']&&(await this[o(0x181)][o(0x16c)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[o(0x18a)]({},h,{'className':paramCase(b[o(0x173)])}),'config':g}),await this[o(0x181)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[o(0x17a)]['js'],'content':o(0x19d)+h['cssCaseName']+'.'+g[o(0x17a)][o(0x17e)]+'\x27;'}));const i=b[o(0x179)]?'/'+b[o(0x179)]+'/':'/',j=''+d+i+h[o(0x198)]+'/'+h['fileName'];await this[o(0x181)]['injectTemplateModule'](h[o(0x18b)],g,j);});}catch(h){Log[n(0x178)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x1a7))/0x1+-parseInt(h(0x1ab))/0x2*(-parseInt(h(0x1b5))/0x3)+parseInt(h(0x1b4))/0x4+-parseInt(h(0x1c2))/0x5+parseInt(h(0x1bf))/0x6+parseInt(h(0x1aa))/0x7*(parseInt(h(0x1a9))/0x8)+-parseInt(h(0x1bd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x89380));const a102b=(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;};}()),a102a=a102b(this,function(){const i=a102d;return a102a[i(0x1bb)]()[i(0x1a4)](i(0x1b6))['toString']()[i(0x1c0)](a102a)[i(0x1a4)](i(0x1b6));});function a102c(){const m=['(((.+)+)+)+$','ubuntu','pathFromProject','maka\x20{generate,\x20g}:{config}\x20<name>','config/process.env','toString','config/settings.json','1636533DrTRgf','resourceName','688872mPjqQs','constructor','config','3766090bMcovk','Generate\x20configuration\x20settings.','search','maka\x20g:config\x20production','settings.json','839981PGtgIH','fsi','488BZnaNI','83363izodgc','4fVwfkj','getMakaProjectConfig','prod','dev','isDocker','production','development','withValue','template','2239820ARxCxM','1403802usByNR'];a102c=function(){return m;};return a102c();}a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a102d(a,b);}Generator['create']({'name':a102j(0x1c1),'usage':a102j(0x1b9),'shortDesc':a102j(0x1a3),'validOpts':[a102j(0x1af)],'examples':[a102j(0x1a5)]},async function(a,b){const k=a102j,c=this[k(0x1a8)][k(0x1ac)]();await this[k(0x1a8)][k(0x1b2)](c,async()=>{const l=k,d={'app':c['appName'],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[l(0x1be)]),'fileName':paramCase(b[l(0x1be)]),'camelCase':camelCase(b[l(0x1be)]),'userName':l(0x1b7),'isDocker':b[l(0x1af)]};let e=b['resourceName'];if(e===l(0x1ae))e=l(0x1b1);else e===l(0x1ad)&&(e=l(0x1b0));const f=this[l(0x1a8)][l(0x1b8)]({'pathParts':[l(0x1c1),e,l(0x1a6)]});await this[l(0x1a8)][l(0x1b3)]({'srcPath':l(0x1bc),'destPath':f,'context':d,'config':c});if(!b[l(0x1af)]){const g=this[l(0x1a8)][l(0x1b8)]({'pathParts':[l(0x1c1),e,'process.env']});await this[l(0x1a8)]['template']({'srcPath':l(0x1ba),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x154))/0x1*(parseInt(j(0x14e))/0x2)+parseInt(j(0x131))/0x3+parseInt(j(0x15a))/0x4+parseInt(j(0x159))/0x5+parseInt(j(0x141))/0x6+-parseInt(j(0x13f))/0x7+-parseInt(j(0x14a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xd4fa0));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x14c)]()[l(0x132)](l(0x142))[l(0x14c)]()[l(0x140)](a103a)[l(0x132)](l(0x142));});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x12e;let f=c[d];return f;},a103d(a,b);}function a103c(){const p=['search','engines','warn','dir','injectAtEndOfFile','dbc/conn.js','config.','import\x20\x27./register-','pathFromApp','-dbc\x27;','conn.','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','checkNpmPackage','4355561MPUQks','constructor','1387482rvmTHw','(((.+)+)+)+$','maka\x20g:dbc\x20geoserver\x20--type=pgsql','dbc/register-dbc.js','error','sqlite','register-','resourceName','mssql','17270024OGrkEB','create','toString','type','4TCNeHm','installNpmPackage','maka\x20g:dbc\x20todos\x20--type=sqlite','server','tsx','getMakaProjectConfig','387557UmCTYN','dbc','maka\x20g:dbc\x20azure\x20--type=mssql','pgsql','-dbc.','8272425iAOvWQ','5732488HsvTsB','startup','imports','fsi','withValue','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','apply','template','3328764xAJeSa'];a103c=function(){return p;};return a103c();}import{Log}from'../tools/log/log.class.js';Generator[a103m(0x14b)]({'name':'dbc','usage':a103m(0x12e),'shortDesc':a103m(0x15f),'validOpts':[a103m(0x135)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x14d),'values':[a103m(0x157),a103m(0x149),'sqlite']}],'examples':[a103m(0x143),a103m(0x156),a103m(0x150)]},async function(a,b){const n=a103m;try{const c=await this[n(0x15d)][n(0x153)](),d=this[n(0x15d)][n(0x13a)]({}),f=paramCase(b[n(0x148)]),g={'name':pascalCase(b[n(0x148)]),'fileName':paramCase(b[n(0x148)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[n(0x133)]['js'],'noRename':!![]};await this[n(0x15d)][n(0x15e)](c,async()=>{const o=n;let h='js';c[o(0x133)]['js']===o(0x152)&&(h='ts');b['type']==='pgsql'&&!this[o(0x15d)][o(0x13e)]('pg')&&(Log[o(0x134)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][o(0x14f)]('pg',{'cwd':d}));b[o(0x14d)]==='mssql'&&!this[o(0x15d)][o(0x13e)](o(0x149))&&(Log['warn'](o(0x13d)),await this[o(0x15d)][o(0x14f)](o(0x149),{'cwd':d}));b['type']===o(0x146)&&!this[o(0x15d)]['checkNpmPackage']('better-sqlite3')&&(Log[o(0x134)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0x15d)]['installNpmPackage']('better-sqlite3',{'cwd':d}));await this['fsi'][o(0x130)]({'srcPath':'dbc/config.js','destPath':this[o(0x15d)][o(0x13a)]({'pathParts':[o(0x15c),'startup','server',o(0x155),b[o(0x135)],f,o(0x138)+h]}),'context':g,'config':c}),await this[o(0x15d)]['template']({'srcPath':o(0x137),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x15c),o(0x15b),'server',o(0x155),b['dir'],f,o(0x13c)+h]}),'context':g,'config':c}),await this[o(0x15d)][o(0x130)]({'srcPath':o(0x144),'destPath':this[o(0x15d)][o(0x13a)]({'pathParts':[o(0x15c),'startup',o(0x151),o(0x147)+f+o(0x158)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x13a)]({'pathParts':[o(0x15c),o(0x15b),o(0x151),'index.'+c[o(0x133)]['js']]});await this[o(0x15d)][o(0x136)]({'filePath':i,'content':o(0x139)+f+o(0x13b)});});}catch(h){Log[n(0x145)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d
|
|
1
|
+
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x1b4))/0x1+-parseInt(f(0x1ac))/0x2*(-parseInt(f(0x1c4))/0x3)+parseInt(f(0x1c5))/0x4+parseInt(f(0x1b5))/0x5+-parseInt(f(0x1b0))/0x6+parseInt(f(0x1c7))/0x7*(-parseInt(f(0x1b6))/0x8)+-parseInt(f(0x1b7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x834cd));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1ca)]()[h(0x1c0)]('(((.+)+)+)+$')[h(0x1ca)]()['constructor'](a104a)[h(0x1c0)](h(0x1b3));});a104a();function a104c(){const l=['(((.+)+)+)+$','249015ZKSkFR','5257815peNnQM','6312SweIUj','18973908TTypqn','findProjectDirectory','create','service','template','app','getMakaProjectConfig','Dockerfile','app.tar.gz','search','error','docker/Dockerfile','fsi','3606UGVfwg','3711024UqlIVn','apply','308FCUkFv','cert','Generate\x20an\x20updated\x20dockerfile','toString','maka\x20{generate,\x20g}:dockerfile','maka\x20g:dockerfile','getGlobalConfig','1084odwCUg','isFile','withValue','join','1194510XluoDQ','appName','dockerfile'];a104c=function(){return l;};return a104c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a104d(a,b);}import a104e from'path';Generator[a104i(0x1b9)]({'name':a104i(0x1b2),'usage':a104i(0x1cb),'shortDesc':a104i(0x1c9),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x1aa)]},async function(){const j=a104i;try{const a=await this[j(0x1c3)][j(0x1bd)](),b=await this['fsi'][j(0x1ab)](),c=this[j(0x1c3)][j(0x1b8)]();await this[j(0x1c3)][j(0x1ae)](a,async()=>{const k=j,d={'app':b[k(0x1b1)],'config':a,'appPath':a104e['join'](c,k(0x1bc)),'bundlePath':a104e['join'](c,'build',k(0x1bf)),'useCert':this['fsi'][k(0x1ad)](b[k(0x1c8)])};await this[k(0x1c3)][k(0x1bb)]({'srcPath':k(0x1c2),'destPath':a104e[k(0x1af)](c,k(0x1be)),'framework':k(0x1ba),'context':d,'config':a});});}catch(d){Log[j(0x1c1)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x208))/0x1*(-parseInt(l(0x216))/0x2)+parseInt(l(0x1f0))/0x3*(parseInt(l(0x1ef))/0x4)+-parseInt(l(0x226))/0x5*(parseInt(l(0x224))/0x6)+parseInt(l(0x227))/0x7*(parseInt(l(0x1f2))/0x8)+parseInt(l(0x219))/0x9*(-parseInt(l(0x1fe))/0xa)+-parseInt(l(0x1f7))/0xb+parseInt(l(0x1fd))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x5ca80));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x228)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a['toString']()[n(0x1f4)](n(0x20e))[n(0x211)]()['constructor'](a105a)[n(0x1f4)](n(0x20e));});a105a();import a105e from'path';function a105c(){const r=['@apollo/client\x20isomorphic-fetch','hook/hook.js','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','graphql','fileName','import\x20\x27./','installNpmPackage','1279dndBsK','getMakaProjectConfig','true','.app-tests.js','pathFromApp','assign','(((.+)+)+)+$','warn','setTemplate','toString','template','engines','injectTemplateModule','template/template.css','926wMUwlk','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\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','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','9fFHIYk','maka\x20g:hook\x20cool-hook','none','react','relative','@apollo/client','test','apollo','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','layouts','string','4186074iwhPft','dir','5CCoGNe','7ARodMt','apply','.js','fsi','/imports/ui/','injectAtBeginningOfFile','test/test.js','hook','withTranslations','resourceName','4CkcnBV','773037KIRpWe','pathFromProject','588736EKnQWQ','components','search','force','Creating\x20','5459949RuiWxd','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','notice','error','create','theme','8312964ilWfwc','426370LxngaH','css','checkNpmPackage'];a105c=function(){return r;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a105d(a,b);}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105o(0x1fb)]({'name':a105o(0x1ec),'aliases':['h'],'checkWhere':![],'usage':a105o(0x218),'shortDesc':a105o(0x1f8),'validOpts':[{'name':'baseDir','values':['hooks',a105o(0x1f3),'pages',a105o(0x222)]},{'name':a105o(0x1f5),'boolFlag':!![]}],'examples':[a105o(0x21a)],'description':a105o(0x217)},async function(a,b){const p=a105o;Log[p(0x1f9)](p(0x1f6)+b[p(0x1ee)]+'\x20hook...');try{const c=this['fsi'][p(0x200)](p(0x21c));if(!c){Log[p(0x1fa)](p(0x221));throw new UsageError();}const d=this[p(0x1e8)]['pathFromApp'](b),f=b['baseDir']?p(0x1e9)+b['baseDir']:'/imports/ui/hooks',g=this['fsi'][p(0x20c)]({'pathParts':[f,b['dir'],paramCase(b['resourceName']),paramCase(b[p(0x1ee)])]}),h=await this[p(0x1e8)][p(0x209)]();await this[p(0x1e8)]['withValue'](h,async()=>{const q=p;typeof h[q(0x212)][q(0x1ff)]===q(0x223)&&(h[q(0x212)][q(0x1ff)]=h[q(0x212)][q(0x1ff)]===q(0x20a)?!![]:![],this[q(0x1e8)][q(0x210)](q(0x1ff),h['template'][q(0x1ff)]));h['engines']['graphql']===q(0x220)&&!this[q(0x1e8)][q(0x200)](q(0x21e))&&(Log[q(0x20f)](q(0x203)),await this['fsi'][q(0x207)](q(0x201),{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x1ee)]),'camelCaseName':camelCase(b[q(0x1ee)]),'className':pascalCase(b[q(0x1ee)]),'name':pascalCase(b[q(0x1ee)]),'graphql':h['engines'][q(0x204)],'theme':h['engines'][q(0x1fc)],'features':h['features'],'myPath':a105e[q(0x21d)](this[q(0x1e8)][q(0x1f1)]({}),g),'fileName':paramCase(b[q(0x1ee)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][q(0x1ed)]};await this[q(0x1e8)][q(0x212)]({'srcPath':q(0x202),'destPath':g+q(0x229),'context':i,'config':h,'framework':q(0x21c),'force':b['force']});h['template'][q(0x1ff)]&&(await this[q(0x1e8)][q(0x212)]({'srcPath':q(0x215),'destPath':g+'.css','context':Object[q(0x20d)]({},i,{'className':i['cssCaseName']}),'config':h,'force':b['force']}),await this['fsi'][q(0x1ea)]({'filePath':g+'.'+h[q(0x213)]['js'],'content':q(0x206)+i['fileName']+'.'+h[q(0x213)][q(0x1ff)]+'\x27;'}));h['engines'][q(0x21f)]!==q(0x21b)&&await this[q(0x1e8)][q(0x212)]({'srcPath':q(0x1eb),'destPath':g+q(0x20b),'framework':q(0x21c),'context':i,'config':h,'force':b[q(0x1f5)]});const j=b[q(0x225)]?'/'+b[q(0x225)]+'/':'/',k=''+f+j+i[q(0x205)]+'/'+i[q(0x205)];await this[q(0x1e8)][q(0x214)](i['className'],h,k);});}catch(i){Log[p(0x1fa)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x1e5))/0x1*(-parseInt(f(0x1ef))/0x2)+parseInt(f(0x1e6))/0x3*(-parseInt(f(0x1ec))/0x4)+-parseInt(f(0x1e3))/0x5+-parseInt(f(0x1eb))/0x6+parseInt(f(0x1ea))/0x7*(-parseInt(f(0x1ed))/0x8)+parseInt(f(0x1e9))/0x9*(-parseInt(f(0x1ee))/0xa)+parseInt(f(0x1e7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xc4d27));function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x1e2;var f=c[d];return f;},a106d(a,b);}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x1e2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()[h(0x1f0)]('(((.+)+)+)+$')[h(0x1e8)]()[h(0x1e4)](a106a)[h(0x1f0)]('(((.+)+)+)+$');});a106a();import'./kit.js';import'./mui/_index.js';function a106c(){var i=['2084NQTeld','8IHMxmg','90150HKfPfB','2ZoLdAx','search','apply','5103690mIcOnI','constructor','834580waKWHv','1719UUZHLq','39423615YGXlnZ','toString','297tUItHP','8555428tmwxWb','4640352fYqxlO'];a106c=function(){return i;};return a106c();}import'./esri/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x152;var f=c[d];return f;},a107d(a,b);}(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0x15d))/0x1*(-parseInt(f(0x15c))/0x2)+-parseInt(f(0x15e))/0x3*(parseInt(f(0x158))/0x4)+-parseInt(f(0x160))/0x5*(-parseInt(f(0x154))/0x6)+parseInt(f(0x156))/0x7*(parseInt(f(0x157))/0x8)+-parseInt(f(0x153))/0x9+-parseInt(f(0x161))/0xa+-parseInt(f(0x155))/0xb*(-parseInt(f(0x15a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xc9e55));function a107c(){var i=['8033570NwSbWS','search','toString','1914948hKLEJH','714GRzlXn','11aPddTD','371YtYbhR','10232DJRORH','4794360VTaMfx','apply','38935956snkUtt','constructor','8wEHJaU','169377Soiprx','3GMuPDS','(((.+)+)+)+$','17090mtLJpZ'];a107c=function(){return i;};return a107c();}var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0x152)]()[h(0x162)](h(0x15f))['toString']()[h(0x15b)](a107a)[h(0x162)](h(0x15f));});a107a();import'./esri.generator.js';import'./map.esri.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
function a108c(){const j=['apply','65891APeLKJ','search','1781442aAXgrY','9093492cIFChd','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','55KdkVha','4103824tGGGgJ','1285179zkmIHd','383164vGpsGs','(((.+)+)+)+$','constructor','maka\x20g:kit:e','esri','toString','\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','2812586AvVoqk','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>'];a108c=function(){return j;};return a108c();}const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0x178))/0x1+parseInt(f(0x17a))/0x2+parseInt(f(0x17f))/0x3+-parseInt(f(0x180))/0x4*(parseInt(f(0x17d))/0x5)+parseInt(f(0x17b))/0x6+-parseInt(f(0x175))/0x7+-parseInt(f(0x17e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xc3648));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x173)]()[h(0x179)](h(0x181))[h(0x173)]()[h(0x182)](a108a)[h(0x179)]('(((.+)+)+)+$');});a108a();import{Generator}from'../../../generator.js';import a108e from'../kit.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x172;let f=c[d];return f;},a108d(a,b);}const EsriGen=Generator['create']({'name':a108i(0x172),'aliases':['e'],'usage':a108i(0x176),'noNeedResource':!![],'shortDesc':a108i(0x17c),'validOpts':[''],'isPro':!![],'examples':[a108i(0x183)],'description':a108i(0x174)},async function(){throw'NIE';},a108e);export default EsriGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109s=a109d;(function(a,b){const p=a109d,c=a();while(!![]){try{const d=parseInt(p(
|
|
1
|
+
function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xae;let f=c[d];return f;},a109d(a,b);}const a109s=a109d;(function(a,b){const p=a109d,c=a();while(!![]){try{const d=parseInt(p(0xd0))/0x1*(-parseInt(p(0xca))/0x2)+parseInt(p(0xaf))/0x3+-parseInt(p(0xc3))/0x4+-parseInt(p(0xd8))/0x5+-parseInt(p(0xbd))/0x6*(parseInt(p(0xd3))/0x7)+-parseInt(p(0xb6))/0x8+parseInt(p(0xc8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xced11));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a109d;if(c){const e=c[q(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const r=a109d;return a109a['toString']()[r(0xcf)](r(0xc7))[r(0xb5)]()[r(0xc9)](a109a)[r(0xcf)]('(((.+)+)+)+$');});a109a();function a109c(){const v=['esri-loader','5425MvitQK','error','findProjectDirectory','baseDir','processAndRunGenerator','2388800IfREsT','/imports/ui/hooks','withValue','apply','checkNpmPackage','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','FALSE','create','REACT','getMakaProjectConfig','1143264FkwtDt','</div>','dir','/imports/startup/lib/templates','<div\x20id=\x22map-component\x22>','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','toString','6956808WOPByr','pathFromApp','\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','appName','/imports/ui/','/imports/startup/client/templates','injectImport','10434bEEVXH','injectTemplateModule','@esri/react-arcgis','page','map','exit','4444832zHTOgu','true','<div\x20id=\x22map-hook\x22>','replaceAll','(((.+)+)+)+$','51116625dTJxlJ','constructor','2ViBSac','fsi','.js','bright','ssr','search','1407298zdlYeU','injectIntoFile'];a109c=function(){return v;};return a109c();}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a109e from'./esri.generator.js';import a109f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a109s(0xdf)]({'name':a109s(0xc1),'aliases':['m'],'usage':a109s(0xb4),'shortDesc':'Generate\x20an\x20Esri\x20map\x20component','validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a109s(0xe0)],'ssr':SsrEngines[a109s(0xde)]},'description':a109s(0xb8)},async function(a,b){const t=a109s;try{Log[t(0xcd)]('Generating\x20a\x20map\x20component');const c='basic-map';await this[t(0xcb)][t(0xdc)]([t(0xbf),t(0xd2)],{'shouldInstall':!![]});const d=this[t(0xcb)][t(0xd5)](),f=this['fsi'][t(0xae)](),g=f['engines'][t(0xce)]===t(0xc4),h=await a109f[t(0xd7)](t(0xc0),[t(0xc1)],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0xb9)])[t(0xc6)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0xd6)]?t(0xba)+b['baseDir']:t(0xd9),k=this['fsi'][t(0xb7)]({'pathParts':[j,b[t(0xb1)],paramCase(c),paramCase(c)]});this[t(0xcb)][t(0xda)](f,async()=>{const u=t;this['fsi']['template']({'srcPath':'kit/esri/map/'+c+u(0xcc),'destPath':k+u(0xcc),'framework':'react','context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0xb1)]+'/'+c+'/'+c;await this[t(0xcb)][t(0xbe)](c,f,l);const m=h['split']('/'),n=this[t(0xcb)]['pathFromApp']({'pathParts':m});await this['fsi'][t(0xbc)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0xb2):t(0xbb),'isNamedExport':!![]}),await this[t(0xcb)][t(0xd1)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0xdd),'begin':[t(0xc5),t(0xb3)],'end':[t(0xb0)],'replace':!![]});}catch(o){Log[t(0xd4)](o),process[t(0xc2)](0x1);}},a109e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110i=a110d;function a110c(){const j=['2248FkEmUw','maka\x20g:k','1221pbUhHe','(((.+)+)+)+$','88TSXPHE','5945052RAjtKi','50452hYNDqV','122775Htgunn','7671797DCHGDz','maka\x20{generate,\x20g}:{kit}\x20<name>','create','2317050WFeOZI','toString','maka\x20g:kit','138FBxofT','constructor','8dWiypV','apply','1309990AQuciF','search','15zzXcIF','kit'];a110c=function(){return j;};return a110c();}function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x147;let f=c[d];return f;},a110d(a,b);}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x15c))/0x1*(parseInt(f(0x14e))/0x2)+-parseInt(f(0x14a))/0x3*(parseInt(f(0x148))/0x4)+parseInt(f(0x14f))/0x5*(-parseInt(f(0x156))/0x6)+parseInt(f(0x150))/0x7+-parseInt(f(0x158))/0x8*(-parseInt(f(0x153))/0x9)+-parseInt(f(0x15a))/0xa*(-parseInt(f(0x14c))/0xb)+-parseInt(f(0x14d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xb3397));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x154)]()[h(0x15b)](h(0x14b))['toString']()[h(0x157)](a110a)['search'](h(0x14b));});a110a();import{Generator}from'../../generator.js';const KitGen=Generator[a110i(0x152)]({'name':a110i(0x147),'aliases':['k'],'usage':a110i(0x151),'shortDesc':'Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a110i(0x155),a110i(0x149)]},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0x172))/0x1+parseInt(f(0x16b))/0x2*(parseInt(f(0x16e))/0x3)+-parseInt(f(0x170))/0x4+parseInt(f(0x167))/0x5*(parseInt(f(0x169))/0x6)+-parseInt(f(0x16d))/0x7*(-parseInt(f(0x16f))/0x8)+parseInt(f(0x173))/0x9+-parseInt(f(0x168))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xbaa36));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x16c)]()[h(0x16a)](h(0x165))[h(0x16c)]()[h(0x171)](a111a)[h(0x16a)](h(0x165));});a111a();import'./mui.generator.js';function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x165;var f=c[d];return f;},a111d(a,b);}import'./frame.mui.gen.js';function a111c(){var i=['291136dneqoa','258908sXaCHA','constructor','894874JJUJFY','6025203SmSFbL','(((.+)+)+)+$','apply','1540445nyvqdm','18830080rBnLCD','6pbfqwt','search','43518qBHlsZ','toString','217LBZFyD','207TNeaat'];a111c=function(){return i;};return a111c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112A=a112d;function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-
|
|
1
|
+
const a112A=a112d;function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xd6;let f=c[d];return f;},a112d(a,b);}(function(a,b){const x=a112d,c=a();while(!![]){try{const d=-parseInt(x(0xfc))/0x1*(-parseInt(x(0xf8))/0x2)+-parseInt(x(0xf1))/0x3+parseInt(x(0xe6))/0x4*(-parseInt(x(0x104))/0x5)+-parseInt(x(0xf2))/0x6+-parseInt(x(0x106))/0x7+parseInt(x(0xd7))/0x8+parseInt(x(0xe0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x3ad1d));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a112d;if(c){const e=c[y(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const z=a112d;return a112a[z(0xe1)]()['search'](z(0xd8))[z(0xe1)]()['constructor'](a112a)['search'](z(0xd8));});a112a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a112e from'path';import a112f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a112c(){const D=['\x20/>\x0a','injectTemplateModule','tsx','{props.children}','injectIntoFile','2323945gywoCn','engines','2584981rAcUxv','session','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','layouts','appName','dir','fsi','findAppDirectory','react','basic-drawer','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','baseDir','checkbox','withValue','-component\x22>','1624200sRwYxX','(((.+)+)+)+$','jsx','{\x20props.children\x20}','maka\x20g:k:m:f','/imports/startup/client/templates','app-tests','template','kit/mui/frame/drawers/','7742286GHwHvR','toString','apply','basic-app-bar','No\x20layouts\x20selected','maka\x20generate:kit:mui:frame','4AXYbjE','kit/mui/frame/app-bars/','frame','true','/imports/ui/hooks','{this.props.children}','REACT','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','error','create','checkMeteorPackage','114618SqBmec','219450eohbMf','join','.js','getDirectories','/imports/startup/lib/templates','<div\x20id=\x22','2746VEeXmd','{\x20this.props.children\x20}','/imports/ui/','injectImport','63bKeKcE','-hook\x22>','replaceAll'];a112c=function(){return D;};return a112c();}Generator[a112A(0xef)]({'name':a112A(0xe8),'aliases':['f'],'usage':'maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','shortDesc':a112A(0x108),'validOpts':[a112A(0x109)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a112A(0xec)]},'examples':[a112A(0xe5),a112A(0xdb)],'description':a112A(0xed)},async function(a,b){const B=a112A;try{const c=B(0xe3),d=B(0x10f),f=this[B(0x10c)]['getMakaProjectConfig'](),g=f[B(0x105)]['ssr']===B(0xe9);await this[B(0x10c)][B(0xf0)](B(0x107),{'shouldInstall':!![]});const h=this['fsi'][B(0x10d)](),i=a112e[B(0xf3)](h,'imports','ui','layouts'),j=this['fsi'][B(0xf5)](i),k=await Actions['options']({'type':B(0x112),'name':'layouts','message':B(0x110),'choices':j});if(k[B(0x109)]['length']===0x0){Log[B(0xee)](B(0xe4));return;}const l=b[B(0x111)]?B(0xfa)+b['baseDir']:B(0xea),m=this['fsi']['pathFromApp']({'pathParts':[l,b[B(0x10b)],paramCase(c),paramCase(c)]}),n=this[B(0x10c)]['pathFromApp']({'pathParts':[l,b[B(0x10b)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0x10a)])[B(0xfe)]('-','\x20')};await this[B(0x10c)][B(0x113)](f,async()=>{const C=B;await this[C(0x10c)][C(0xde)]({'srcPath':C(0xe7)+c+'.js','destPath':m+C(0xf4),'framework':'react','context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x10c)][C(0xde)]({'srcPath':C(0xdf)+d+C(0xf4),'destPath':n+'.js','framework':C(0x10e),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0x10b)]+'/'+c+'/'+c;await this[B(0x10c)][B(0x100)](c,f,p);const q=''+l+b['dir']+'/'+d+'/'+d;await this['fsi']['injectTemplateModule'](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0x10c)]['getFiles'](a112e['join'](i,s),{'extensions':[B(0xd9),B(0x101)],'omit':[B(0xdd),'tests','test']});for(const u of t){const v=a112e[B(0xf3)](i,s,u);await this[B(0x10c)][B(0xfb)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':B(0xdc),'isNamedExport':!![]}),await this['fsi'][B(0x103)]({'filePath':v,'content':'<'+pascalCase(c)+'\x20/>\x0a','begin':['<div\x20id=\x22'+s+B(0xd6),B(0xf7)+s+B(0xfd)],'end':[B(0xeb),B(0xf9),B(0x102),B(0xda)]}),await this[B(0x10c)][B(0xfb)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0xf6):B(0xdc),'isNamedExport':!![]}),await this[B(0x10c)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(d)+B(0xff),'begin':[B(0xf7)+s+B(0xd6),B(0xf7)+s+B(0xfd)],'end':[B(0xeb),B(0xf9),B(0x102),B(0xda)]});}}}catch(w){Log[B(0xee)](w);}},a112f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113i=a113d;function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-
|
|
1
|
+
const a113i=a113d;function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x10b;let f=c[d];return f;},a113d(a,b);}(function(a,b){const f=a113d,c=a();while(!![]){try{const d=-parseInt(f(0x11d))/0x1*(parseInt(f(0x11e))/0x2)+parseInt(f(0x11c))/0x3*(parseInt(f(0x118))/0x4)+parseInt(f(0x117))/0x5*(-parseInt(f(0x115))/0x6)+-parseInt(f(0x10e))/0x7*(-parseInt(f(0x111))/0x8)+parseInt(f(0x11a))/0x9*(parseInt(f(0x112))/0xa)+-parseInt(f(0x10b))/0xb*(-parseInt(f(0x10c))/0xc)+-parseInt(f(0x10f))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x2326c));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a[h(0x11b)]()[h(0x116)](h(0x113))['toString']()[h(0x110)](a113a)['search'](h(0x113));});a113a();import{Generator}from'../../../generator.js';import a113e from'../kit.js';function a113c(){const k=['constructor','1768HFqcSl','10lDoLTq','(((.+)+)+)+$','apply','138XHuFsX','search','30695dXfOKN','24DoOHfq','NIE','508509yqThax','toString','86511HdArOe','2pvOckY','256678PioudM','55lNROaV','218172rbyhSf','Material-UI\x20Kit','8981cgsIgO','807508pVuJNx'];a113c=function(){return k;};return a113c();}const MuiGen=Generator['create']({'name':'mui','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a113i(0x10d),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:m']},async function(){const j=a113i;throw j(0x119);},a113e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d
|
|
1
|
+
const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0x1a7))/0x1+parseInt(l(0x1ab))/0x2+-parseInt(l(0x1c3))/0x3*(-parseInt(l(0x1c5))/0x4)+parseInt(l(0x1a3))/0x5+-parseInt(l(0x1cb))/0x6*(parseInt(l(0x19d))/0x7)+-parseInt(l(0x1b5))/0x8+-parseInt(l(0x1bc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xc458f));function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x193;let f=c[d];return f;},a114d(a,b);}function a114c(){const r=['css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','ramda','search','pathFromProject','1723203MucHdF','checkNpmPackage','8WKRneV','setTemplate','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','injectTemplateModule','pathFromApp','create','6jPzpmt','fsi','api','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','features','engines','resourceName','template/template.css','(((.+)+)+)+$','withValue','maka\x20g:layout\x20mobile/iPhone8','template','104069qhikWb','/imports/ui/layouts','injectAtBeginningOfFile','.app-tests.js','string','hook/hook.js','5738635WvncMj','getMakaProjectConfig','true','withHook','705481iKdMND','ssr','.css','toString','1512534PvbkCE','client','maka\x20g:l\x20web/safari','layout','constructor','fileName','apply','dir','withTranslations','react','7658896crYleZ','className','none','.js','graphql','relative','assign','17836281YGOVTB','test'];a114c=function(){return r;};return a114c();}const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a[n(0x1aa)]()[n(0x1c1)](n(0x199))[n(0x1aa)]()[n(0x1af)](a114a)[n(0x1c1)](n(0x199));});a114a();import a114e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a114o(0x1ca)]({'name':a114o(0x1ae),'aliases':aliases,'usage':a114o(0x1c7),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a114o(0x19b),a114o(0x1ad)]},async function(a,b){const p=a114o,c=p(0x19e),d=this[p(0x1cc)]['findAppDirectory'](),e=this['fsi'][p(0x1c9)]({'pathParts':[c,b[p(0x1b2)],paramCase(b[p(0x197)]),paramCase(b[p(0x197)])]}),f=this['fsi'][p(0x1a4)]();await this[p(0x1cc)][p(0x19a)](f,async()=>{const q=p;typeof f['template'][q(0x1bd)]==='string'&&(f[q(0x19c)][q(0x1bd)]=f['template'][q(0x1bd)]===q(0x1a5)?!![]:![],this[q(0x1cc)][q(0x1c6)](q(0x1bd),f[q(0x19c)]['test']));typeof f['template'][q(0x1be)]===q(0x1a1)&&(f[q(0x19c)][q(0x1be)]=f[q(0x19c)]['css']===q(0x1a5)?!![]:![],this[q(0x1cc)]['setTemplate'](q(0x1be),f[q(0x19c)][q(0x1be)]));typeof f[q(0x19c)]['js']===q(0x1a1)&&(f[q(0x19c)]['js']=f[q(0x19c)]['js']===q(0x1a5)?!![]:![],this[q(0x1cc)][q(0x1c6)]('js',f['template']['js']));!f[q(0x195)]&&(f[q(0x195)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[q(0x1c4)](q(0x1c0))&&(Log['warn'](q(0x194)),this['fsi']['installNpmPackage']('ramda',{'cwd':d}));if(h&&!this[q(0x1c4)](q(0x1b4))){Log['warn'](q(0x1bf));return;}const i={'name':pascalCase(b[q(0x197)]),'myPath':a114e[q(0x1ba)](this[q(0x1cc)][q(0x1c2)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x197)]),'camelCaseName':camelCase(b[q(0x197)]),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x196)][q(0x1b9)],'features':f[q(0x195)],'client':f['engines'][q(0x1ac)],'api':f[q(0x196)][q(0x193)],'ssr':f['engines'][q(0x1a8)],'test':f[q(0x196)][q(0x1bd)],'theme':f[q(0x196)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][q(0x1b3)]};f[q(0x195)]?.['withHooks']||b[q(0x1a6)]?await this['fsi'][q(0x19c)]({'srcPath':q(0x1a2),'destPath':e+'.js','framework':'react','context':i,'config':f}):await this[q(0x1cc)][q(0x19c)]({'srcPath':'component/component.js','destPath':e+q(0x1b8),'framework':'react','context':i,'config':f});f[q(0x196)][q(0x1bd)]!==q(0x1b7)&&await this[q(0x1cc)]['template']({'srcPath':'test/test.js','destPath':e+q(0x1a0),'framework':'react','context':i,'config':f});f[q(0x19c)][q(0x1be)]&&(await this[q(0x1cc)]['template']({'srcPath':q(0x198),'destPath':e+q(0x1a9),'context':Object[q(0x1bb)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),await this[q(0x1cc)][q(0x19f)]({'filePath':e+'.'+f[q(0x196)]['js'],'content':'import\x20\x27./'+i[q(0x1b0)]+'.'+f[q(0x196)][q(0x1be)]+'\x27;'}));const j=b[q(0x1b2)]?'/'+b['dir']+'/':'/',k=''+c+j+i['fileName']+'/'+i[q(0x1b0)];await this[q(0x1cc)][q(0x1c8)](i[q(0x1b6)],f,k);});});
|