@maka/maka-cli 4.8.10 → 4.8.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 +2 -2
- 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/package.json +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/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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97v=a97d;(function(a,b){const r=a97d,c=a();while(!![]){try{const d=-parseInt(r(0x1f4))/0x1*(parseInt(r(0x1d9))/0x2)+parseInt(r(0x214))/0x3*(parseInt(r(0x1e0))/0x4)+-parseInt(r(0x1fb))/0x5+parseInt(r(0x1c6))/0x6*(parseInt(r(0x1a7))/0x7)+parseInt(r(0x220))/0x8*(parseInt(r(0x1b1))/0x9)+parseInt(r(0x1b3))/0xa+parseInt(r(0x207))/0xb*(parseInt(r(0x1bb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x37f2f));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a97d;if(c){const e=c[s(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const t=a97d;return a97a['toString']()[t(0x1fa)](t(0x1d5))[t(0x1c7)]()[t(0x210)](a97a)[t(0x1fa)](t(0x1d5));});a97a();function a97c(){const N=['bright','tableList','message','match','writeFileSync','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','help','maxOptsLength','params','410615HCsoWo','processAndRunGenerator','slice','chdir','root','generatorName','search','2210545zZaJVu','addGenerator\x20requires\x20a\x20Generator\x20instance','history.json','appPathPrefix','minOptsLength','list','findProjectDirectory','options','invoke','readHistory','aliases','join','7535uEJTiQ','_handler','\x20generator.\x20Skipping\x20undo.','Generator\x20requires\x20a\x20name','exit','addGenerator','error','push','find','constructor','assign','mustHaveMeteorInstalled','opts','3HhqBVP','validateMakaProject','setColorMode','getGlobalConfig','fsi','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','Alias','where','checkWhere','Generators:','Server','pathFromProject','8XBqroL','keys','_undoHandler','shortDesc','findGeneratorByName','function','mustBeInMakaProject','Generator\x20format\x20is\x20incorrect','map','client','size','No\x20resource\x20name\x20specified','writeHistory','notice','21DOnLtJ','validateMeteorInstall','Both','handleGenerateError','Generator\x20','includes','shift','pop','maxArgLength','length','1316772IWWzrn','stringify','3184530nLSoNl','create','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Too\x20few\x20options','Description','.maka','_historyFilePath','5244XaaRpt','validateMakaSubscription','noNeedResource','resourceName','dir','Nothing\x20to\x20undo.','Too\x20few\x20arguments','No\x20undo\x20handler\x20defined\x20for\x20','deepen','Please\x20run\x20\x22maka\x20install\x20meteor\x22','LIGHT','463998ooVSWK','toString','lib','split','Location','sort','Too\x20many\x20arguments','warn','addToHistory','name','Too\x20many\x20options','Generator.create\x20requires\x20a\x20handler\x20function!','server','both','call','(((.+)+)+)+$','number','readFileSync','\x20not\x20found','2DhLOHr','apply','requiredEngines','forEach','details','bind','cwd','343144gKRTTt','localeCompare','minArgLength','colLocAnswer','existsSync','Generator\x20requires\x20a\x20handler\x20function','getHistoryFileSize','_genTransactionId','_generators','validateEngines','statSync'];a97c=function(){return N;};return a97c();}import a97e from'path';import a97f from'fs';import a97g from'cli-table';import{v4 as a97h}from'uuid';import{paramCase}from'change-case';import a97i 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='';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a97d(a,b);}const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const u=a97d,c=process[u(0x1df)]();let d=null;try{process[u(0x1f7)](a),d=await b();}finally{process[u(0x1f7)](c);}return d;}export class Generator extends Tool{[a97v(0x202)];['_generators'];[a97v(0x1ba)];[a97v(0x222)];[a97v(0x1e7)];constructor(a,b,c){const w=a97v;super();if(!a)throw new Error(w(0x1b6));if(!a['name'])throw new Error(w(0x20a));if(typeof b!==w(0x225))throw new Error(w(0x1e5));this['_generators']=[],this[w(0x202)]=Object[w(0x211)]({},a),this[w(0x1cf)]=this[w(0x202)][w(0x1cf)],this[w(0x208)]=b['bind'](this);try{this[w(0x1ba)]=this[w(0x218)][w(0x21f)]({'pathParts':[w(0x1b9),w(0x1fd)]})||a97e[w(0x206)]('.',w(0x1b9),w(0x1fd));}catch(d){Log[w(0x20d)](d);}c&&(this['_undoHandler']=c[w(0x1de)](this));}[a97v(0x1e6)](){const x=a97v;if(a97f[x(0x1e4)](this[x(0x1ba)])){const a=a97f[x(0x1ea)](this[x(0x1ba)]);return a[x(0x1a3)];}return 0x0;}[a97v(0x204)](){const y=a97v;if(!a97f[y(0x1e4)](this[y(0x1ba)]))return[];return JSON['parse'](a97f[y(0x1d7)](this[y(0x1ba)],'utf-8'));}[a97v(0x1a5)](a){const z=a97v;this[z(0x1ba)]&&!a97f[z(0x1e4)](this[z(0x1ba)])&&a97f[z(0x1ef)](this[z(0x1ba)],JSON[z(0x1b2)]([])),a97f[z(0x1ef)](this[z(0x1ba)],JSON[z(0x1b2)](a,null,0x2));}[a97v(0x1ce)](a){const A=a97v;try{a?.['params']?.[A(0x213)]['config']&&delete a[A(0x1f3)][A(0x213)]['config'];const b=this[A(0x204)](),c={'generatorName':this[A(0x1cf)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x20e)](c);const d=Buffer['from'](JSON[A(0x1b2)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0x1b0)]>0x0){b[A(0x1ad)]();}this[A(0x1a5)](b);}catch(f){Log[A(0x20d)](f);}}static[a97v(0x1b4)](a,b,c,d){const B=a97v;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(B(0x1d1));const e=new Generator(a,b);return c&&(e[B(0x222)]=c['bind'](e)),d=d||a97i,Object[B(0x211)](e,{'parent':d?.[B(0x202)]?.[B(0x1cf)]}),d[B(0x20c)](e),e;}async['undo'](){const C=a97v,a=this[C(0x204)](),b=a[C(0x1ae)]();if(!b){Log[C(0x1cd)](C(0x1c0));return;}const c=this['findGeneratorByName'](b[C(0x1f9)]);if(!c){Log[C(0x20d)]('Generator\x20'+b[C(0x1f9)]+'\x20not\x20found.\x20Cannot\x20undo.');return;}c[C(0x222)]?(await c['_undoHandler'](b[C(0x1dd)]),this[C(0x1a5)](a)):Log[C(0x1cd)](C(0x1c2)+b[C(0x1f9)]+C(0x209));}[a97v(0x20c)](a){const D=a97v;if(!(a instanceof Generator))throw new Error(D(0x1fc));this[D(0x1e8)][D(0x20e)](a);}async[a97v(0x1f5)](a,b=[],c={}){const E=a97v;let d;try{const f=a?.['split'](':');if(!f||f[E(0x1b0)]===0x0)throw E(0x227);let g=this['_generators'],h;for(const i of f){h=g[E(0x20f)](j=>j[E(0x1ee)](i));if(!h)throw E(0x1ab)+i+E(0x1d8);await this[E(0x1bc)](h),g=h[E(0x1e8)];}if(h)d=await h[E(0x203)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x20d)](j);}return d;}[a97v(0x224)](a){const F=a97v,b=a?.[F(0x1c9)](':');if(!b||b[F(0x1b0)]===0x0)return Log[F(0x20d)](F(0x227)),null;let c=this[F(0x1e8)],d;for(const e of b){d=c['find'](f=>f[F(0x1ee)](e));if(!d)return Log[F(0x20d)](F(0x1ab)+e+F(0x1d8)),null;c=d[F(0x1e8)];}return d||null;}async['invoke'](a,b){const G=a97v,c=a[G(0x1f6)]();b['resourceName']=c[0x0];try{const d=await this['fsi'][G(0x217)](),f=d['pallet']==='light'?ColorMode[G(0x1c5)]:ColorMode['DARK'];Log[G(0x216)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[G(0x1b0)]===0x0&&this[G(0x1e8)][G(0x1b0)]>=0x0,h=b[G(0x1f1)]||b['h'];if(g&&h){if(this['_generators'][G(0x1b0)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x202)][G(0x226)]){const i=this[G(0x215)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x202)][G(0x212)]){const j=this[G(0x1a8)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][G(0x1e2)]===G(0x1d6)){if(a[G(0x1b0)]<this['options'][G(0x1e2)]){Log[G(0x20d)](G(0x1c1));throw new UsageError();}}if(typeof this[G(0x202)]['maxArgLength']===G(0x1d6)){if(a['length']>this[G(0x202)][G(0x1af)]){Log[G(0x20d)](G(0x1cc));throw new UsageError();}}if(typeof this[G(0x202)][G(0x1ff)]===G(0x1d6)){if(Object[G(0x221)](b)[G(0x1b0)]<this[G(0x202)][G(0x1ff)]){Log[G(0x20d)](G(0x1b7));throw new UsageError();}}if(typeof this[G(0x202)][G(0x1f2)]==='number'){if(Object['keys'](b)[G(0x1b0)]>=this[G(0x202)][G(0x1f2)]){Log[G(0x20d)](G(0x1d0));throw new UsageError();}}}this[G(0x202)][G(0x1db)]&&this[G(0x1e9)](this['options'][G(0x1db)]);await this['validateParams'](a,b,this[G(0x202)]);if(!b[G(0x1be)]&&!this['options'][G(0x1bd)]){Log[G(0x20d)](G(0x1a4));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x1aa)](k),process[G(0x20b)](0x1);}return await inside(b['cwd'],async()=>{const H=G;try{if(!b[H(0x1f8)]&&!this[H(0x218)][H(0x201)]())throw new MustBeInProjectError();const l=b[H(0x1be)]?.['replace'](/\\/g,'/')['split']('/');!b[H(0x1bf)]&&(l?.['length']>0x1?(b['resourceName']=l[H(0x1ae)](),c[0x0]=b[H(0x1be)],b[H(0x1bf)]=l[H(0x1a1)](n=>{return paramCase(n);})['join'](a97e['sep'])):b['dir']='');if(this['options'][H(0x21c)]){if(!b[H(0x21b)]){const o={'type':H(0x200),'name':H(0x1e3),'message':H(0x1ca),'choices':[{'name':'Client','value':'client'},{'name':H(0x21e),'value':H(0x1d2)},{'name':H(0x1a9),'value':'both'}]},{colLocAnswer:p}=await Actions[H(0x202)](o);p?b['where']=p:b[H(0x21b)]=H(0x1d3);}const n=[H(0x1d3),H(0x1a2),'server'];if(!n[H(0x1ac)](b[H(0x21b)])){Log['error'](H(0x219));throw new UsageError();}switch(b['where']){case H(0x1d3):b['appPathPrefix']=H(0x1c8);break;case'server':b[H(0x1fe)]=H(0x1d2);break;case'client':b[H(0x1fe)]=H(0x1a2);break;default:b[H(0x1fe)]='';}}const m=await this['_handler'][H(0x1d4)](this,c,b);return this['addToHistory']({'params':{'args':c,'opts':this['fsi'][H(0x1c3)](b)},'success':m?.['success'],'message':m?.[H(0x1ed)],'details':m?.[H(0x1dd)]}),m;}catch(q){this[H(0x1aa)](q);}});}['listGenerators'](){const I=a97v;this[I(0x1ec)](this[I(0x1e8)]);}['handleGenerateError'](a){const J=a97v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0x1a6)](J(0x21d)),this[J(0x1ec)](this[J(0x1e8)]);else{if(a instanceof MustBeInProjectError)Log[J(0x20d)](J(0x1b5));else{if(a instanceof NoMeteorFoundError)Log[J(0x20d)](J(0x1f0)),Log[J(0x1a6)](J(0x1c4));else a instanceof NoMeteorAppFoundError&&Log[J(0x20d)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}['tableList'](a){const K=a97v,b=new a97g({});b[K(0x20e)](['Name',K(0x21a),K(0x1b8)]),a[K(0x1cb)]((c,d)=>{const L=K;return c[L(0x1cf)][L(0x1e1)](d['name']);})[K(0x1dc)](c=>{const M=K;b[M(0x20e)]([c[M(0x1cf)],c[M(0x205)](),c[M(0x223)]()]);}),Log[K(0x1eb)](b['toString']());}}
|
|
1
|
+
const a97u=a97d;function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x183;let f=c[d];return f;},a97d(a,b);}(function(a,b){const r=a97d,c=a();while(!![]){try{const d=-parseInt(r(0x1d4))/0x1*(parseInt(r(0x1ed))/0x2)+-parseInt(r(0x199))/0x3*(-parseInt(r(0x201))/0x4)+-parseInt(r(0x1f3))/0x5*(-parseInt(r(0x204))/0x6)+parseInt(r(0x1a9))/0x7+parseInt(r(0x1e8))/0x8+parseInt(r(0x1ef))/0x9*(parseInt(r(0x1c4))/0xa)+-parseInt(r(0x1c9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x8de29));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 s=a97d;return a97a[s(0x1b0)]()[s(0x1bd)]('(((.+)+)+)+$')[s(0x1b0)]()[s(0x185)](a97a)[s(0x1bd)](s(0x1f9));});a97a();import a97e from'path';import a97f from'fs';import a97g from'cli-table';import{v4 as a97h}from'uuid';import{paramCase}from'change-case';import a97i 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='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const t=a97d,c=process[t(0x197)]();let d=null;try{process[t(0x200)](a),d=await b();}finally{process[t(0x200)](c);}return d;}export class Generator extends Tool{[a97u(0x1c7)];[a97u(0x196)];[a97u(0x1fd)];[a97u(0x1b9)];[a97u(0x1d5)];constructor(a,b,c){const v=a97u;super();if(!a)throw new Error(v(0x1cf));if(!a[v(0x205)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0x1a4))throw new Error(v(0x1e7));this[v(0x196)]=[],this[v(0x1c7)]=Object['assign']({},a),this[v(0x205)]=this[v(0x1c7)][v(0x205)],this[v(0x1b2)]=b[v(0x187)](this);try{this[v(0x1fd)]=this[v(0x1d9)][v(0x1d6)]({'pathParts':[v(0x1ea),v(0x1f4)]})||a97e[v(0x1a0)]('.',v(0x1ea),v(0x1f4));}catch(d){Log[v(0x1af)](d);}c&&(this[v(0x1b9)]=c[v(0x187)](this));}['getHistoryFileSize'](){const w=a97u;if(a97f['existsSync'](this[w(0x1fd)])){const a=a97f['statSync'](this[w(0x1fd)]);return a[w(0x1aa)];}return 0x0;}[a97u(0x1e3)](){const x=a97u;if(!a97f[x(0x1e4)](this['_historyFilePath']))return[];return JSON[x(0x183)](a97f[x(0x18e)](this['_historyFilePath'],x(0x1fa)));}['writeHistory'](a){const y=a97u;this[y(0x1fd)]&&!a97f[y(0x1e4)](this['_historyFilePath'])&&a97f[y(0x1cb)](this[y(0x1fd)],JSON[y(0x1eb)]([])),a97f[y(0x1cb)](this[y(0x1fd)],JSON[y(0x1eb)](a,null,0x2));}['addToHistory'](a){const z=a97u;try{a?.[z(0x1a1)]?.[z(0x198)]['config']&&delete a[z(0x1a1)][z(0x198)][z(0x1c5)];const b=this[z(0x1e3)](),c={'generatorName':this['name'],'transactionId':TRANSACTION_ID,'details':a};b[z(0x1b4)](c);const d=Buffer['from'](JSON[z(0x1eb)](b))[z(0x1b7)];while(d>MAX_HISTORY_SIZE&&b[z(0x1b7)]>0x0){b[z(0x18b)]();}this['writeHistory'](b);}catch(f){Log[z(0x1af)](f);}}static[a97u(0x1f7)](a,b,c,d){const A=a97u;if(!a)throw new Error(A(0x194));if(typeof b!=='function')throw new Error(A(0x18a));const e=new Generator(a,b);return c&&(e[A(0x1b9)]=c[A(0x187)](e)),d=d||a97i,Object['assign'](e,{'parent':d?.[A(0x1c7)]?.[A(0x205)]}),d[A(0x1b3)](e),e;}async[a97u(0x19e)](){const B=a97u,a=this['readHistory'](),b=a['pop']();if(!b){Log[B(0x1c8)](B(0x1df));return;}const c=this['findGeneratorByName'](b['generatorName']);if(!c){Log[B(0x1af)](B(0x1f5)+b[B(0x195)]+B(0x184));return;}c[B(0x1b9)]?(await c[B(0x1b9)](b[B(0x202)]),this[B(0x1e1)](a)):Log[B(0x1c8)](B(0x1a5)+b['generatorName']+'\x20generator.\x20Skipping\x20undo.');}[a97u(0x1b3)](a){const C=a97u;if(!(a instanceof Generator))throw new Error(C(0x1b1));this['_generators'][C(0x1b4)](a);}async[a97u(0x1bb)](a,b=[],c={}){const D=a97u;let d;try{const f=a?.[D(0x188)](':');if(!f||f[D(0x1b7)]===0x0)throw D(0x1f0);let g=this[D(0x196)],h;for(const i of f){h=g[D(0x191)](j=>j[D(0x1d7)](i));if(!h)throw D(0x1f5)+i+D(0x186);await this['validateMakaSubscription'](h),g=h[D(0x196)];}if(h)d=await h[D(0x1db)](b,c);else throw D(0x18c);}catch(j){Log[D(0x1af)](j);}return d;}['findGeneratorByName'](a){const E=a97u,b=a?.[E(0x188)](':');if(!b||b[E(0x1b7)]===0x0)return Log[E(0x1af)](E(0x1f0)),null;let c=this[E(0x196)],d;for(const e of b){d=c[E(0x191)](f=>f['match'](e));if(!d)return Log['error'](E(0x1f5)+e+E(0x186)),null;c=d[E(0x196)];}return d||null;}async[a97u(0x1db)](a,b){const F=a97u,c=a['slice']();b[F(0x1f2)]=c[0x0];try{const d=await this[F(0x1d9)][F(0x1be)](),f=d[F(0x1dc)]===F(0x1e2)?ColorMode[F(0x1ee)]:ColorMode[F(0x19d)];Log['setColorMode'](f),await this[F(0x18f)](this);const g=a[0x0]===_prevGen||a[F(0x1b7)]===0x0&&this[F(0x196)][F(0x1b7)]>=0x0,h=b[F(0x18d)]||b['h'];if(g&&h){if(this[F(0x196)][F(0x1b7)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x1c7)][F(0x1ab)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this[F(0x1c7)][F(0x1cd)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x1c7)]['minArgLength']==='number'){if(a[F(0x1b7)]<this['options'][F(0x1e6)]){Log[F(0x1af)](F(0x192));throw new UsageError();}}if(typeof this[F(0x1c7)][F(0x1ac)]===F(0x1da)){if(a['length']>this[F(0x1c7)]['maxArgLength']){Log[F(0x1af)](F(0x1ba));throw new UsageError();}}if(typeof this['options'][F(0x1cc)]===F(0x1da)){if(Object[F(0x1e0)](b)['length']<this[F(0x1c7)][F(0x1cc)]){Log[F(0x1af)](F(0x1c2));throw new UsageError();}}if(typeof this['options'][F(0x1ff)]===F(0x1da)){if(Object[F(0x1e0)](b)[F(0x1b7)]>=this[F(0x1c7)]['maxOptsLength']){Log['error']('Too\x20many\x20options');throw new UsageError();}}}this[F(0x1c7)][F(0x1e5)]&&this[F(0x1ad)](this[F(0x1c7)]['requiredEngines']);await this[F(0x1ce)](a,b,this[F(0x1c7)]);if(!b[F(0x1f2)]&&!this['options'][F(0x1a7)]){Log[F(0x1af)](F(0x206));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process[F(0x1c0)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0x203)]&&!this['fsi'][G(0x1d2)]())throw new MustBeInProjectError();const l=b['resourceName']?.[G(0x1c6)](/\\/g,'/')[G(0x188)]('/');!b['dir']&&(l?.[G(0x1b7)]>0x1?(b[G(0x1f2)]=l[G(0x1ec)](),c[0x0]=b['resourceName'],b[G(0x1d8)]=l[G(0x1de)](n=>{return paramCase(n);})[G(0x1a0)](a97e[G(0x19b)])):b[G(0x1d8)]='');if(this[G(0x1c7)][G(0x19f)]){if(!b[G(0x1a6)]){const o={'type':'list','name':'colLocAnswer','message':'Location','choices':[{'name':G(0x1f6),'value':G(0x1d3)},{'name':G(0x1ca),'value':G(0x1f1)},{'name':G(0x1c3),'value':'both'}]},{colLocAnswer:p}=await Actions[G(0x1c7)](o);p?b[G(0x1a6)]=p:b[G(0x1a6)]=G(0x1bf);}const n=[G(0x1bf),'client','server'];if(!n[G(0x1b6)](b[G(0x1a6)])){Log['error'](G(0x193));throw new UsageError();}switch(b[G(0x1a6)]){case'both':b[G(0x1a3)]=G(0x1b5);break;case G(0x1f1):b[G(0x1a3)]='server';break;case'client':b[G(0x1a3)]=G(0x1d3);break;default:b[G(0x1a3)]='';}}const m=await this[G(0x1b2)]['call'](this,c,b);return this[G(0x1c1)]({'params':{'args':c,'opts':this[G(0x1d9)]['deepen'](b)},'success':m?.[G(0x1a8)],'message':m?.[G(0x1fe)],'details':m?.[G(0x202)]}),m;}catch(q){this['handleGenerateError'](q);}});}['listGenerators'](){const H=a97u;this[H(0x189)](this[H(0x196)]);}['handleGenerateError'](a){const I=a97u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[I(0x1c7)];Log[I(0x1a2)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[I(0x1d0)](I(0x1fb)),this[I(0x189)](this[I(0x196)]);else{if(a instanceof MustBeInProjectError)Log['error'](I(0x19c));else{if(a instanceof NoMeteorFoundError)Log[I(0x1af)](I(0x1b8)),Log[I(0x1d0)](I(0x1bc));else a instanceof NoMeteorAppFoundError&&Log[I(0x1af)](I(0x1f8));}}}[a97u(0x189)](a){const J=a97u,b=new a97g({});b[J(0x1b4)]([J(0x1fc),'Alias',J(0x1d1)]),a[J(0x19a)]((c,d)=>{const K=J;return c[K(0x205)]['localeCompare'](d[K(0x205)]);})[J(0x1ae)](c=>{const L=J;b[L(0x1b4)]([c[L(0x205)],c[L(0x190)](),c[L(0x1dd)]()]);}),Log[J(0x1e9)](b[J(0x1b0)]());}}function a97c(){const M=['appPathPrefix','function','No\x20undo\x20handler\x20defined\x20for\x20','where','noNeedResource','success','1730106FLMwAL','size','mustBeInMakaProject','maxArgLength','validateEngines','forEach','error','toString','addGenerator\x20requires\x20a\x20Generator\x20instance','_handler','addGenerator','push','lib','includes','length','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','_undoHandler','Too\x20many\x20arguments','processAndRunGenerator','Please\x20run\x20\x22maka\x20install\x20meteor\x22','search','getGlobalConfig','both','exit','addToHistory','Too\x20few\x20options','Both','16540ToGMEJ','config','replace','options','warn','8018340GAZMpq','Server','writeFileSync','minOptsLength','mustHaveMeteorInstalled','validateParams','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','notice','Description','findProjectDirectory','client','1BdEpCW','_genTransactionId','pathFromProject','match','dir','fsi','number','invoke','pallet','shortDesc','map','Nothing\x20to\x20undo.','keys','writeHistory','light','readHistory','existsSync','requiredEngines','minArgLength','Generator\x20requires\x20a\x20handler\x20function','4397696nbRJWx','bright','.maka','stringify','pop','2283004svJlFY','LIGHT','3681aoNRCs','Generator\x20format\x20is\x20incorrect','server','resourceName','35erBTXS','history.json','Generator\x20','Client','create','There\x20is\x20no\x20Meteor\x20application\x20here','(((.+)+)+)+$','utf-8','Generators:','Name','_historyFilePath','message','maxOptsLength','chdir','4GhnWpJ','details','root','266694OGmPBs','name','No\x20resource\x20name\x20specified','parse','\x20not\x20found.\x20Cannot\x20undo.','constructor','\x20not\x20found','bind','split','tableList','Generator.create\x20requires\x20a\x20handler\x20function!','shift','Generator\x20not\x20found','help','readFileSync','validateMakaSubscription','aliases','find','Too\x20few\x20arguments','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','Generator.create\x20requires\x20some\x20options!','generatorName','_generators','cwd','opts','2001312JubKMj','sort','sep','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','DARK','undo','checkWhere','join','params','usage'];a97c=function(){return M;};return a97c();}
|
|
@@ -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(0x10c))/0x1+-parseInt(f(0x111))/0x2+parseInt(f(0x10a))/0x3+parseInt(f(0x10b))/0x4*(parseInt(f(0x108))/0x5)+parseInt(f(0x114))/0x6*(-parseInt(f(0x10d))/0x7)+parseInt(f(0x107))/0x8+parseInt(f(0x113))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x9b5d5));function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x107;var f=c[d];return f;},a98d(a,b);}var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x112)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a['toString']()['search'](h(0x10f))[h(0x10e)]()[h(0x110)](a98a)[h(0x109)](h(0x10f));});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';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';function a98c(){var i=['apply','4427703dUYnRx','4416KjeoMT','2580504pjAnQM','5CtJTRK','search','1522998LzHjdu','1102604dkneWr','616496YgSodu','11739cbkVCa','toString','(((.+)+)+)+$','constructor','687396wrXxbv'];a98c=function(){return i;};return a98c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99x=a99d;
|
|
1
|
+
const a99x=a99d;function a99c(){const A=['typeDefs.','mongo','dir','810TbXCsw','rest-api.','/graphql/typeDefs','toString','index.','api/api.js','39JRlOzD','170wiMWUu','apollo','60hzGgbL','test','rest','5529411xDadCE','api/typeDefs.js','api/tests.js','processAndRunGenerator','\x0aimport\x20{\x20resolvers\x20as\x20','register-','maka\x20g:api\x20Todos','none','4808342KaSKQy','length','withRest','/imports/api','Resolvers);\x0a\x0a','ddp-rate-limiter','engines','20321HJNUOV','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','resolverList.push(','114598IUrunS','const','injectAtBeginningOfFile','withFixtures','checkMeteorPackage','imports','API\x20boundaries\x20to\x20create','apiAnswers','withPubs','GraphQL','TypeDefs);\x0a','collection','api/fixtures.js','template','push','if\x20\x5c(typeList','pathFromApp','REST\x20API','145708tPpqMi','api','withMethods','(((.+)+)+)+$','tsx','error','api/register-api.js','1090258kNiPyN','RPC\x20(Methods)','exit','injectAtEndOfFile','api/publications.js','options','includes','withValue','mdg:validated-method','resolvers.','105688AzmsLZ','graphql','startup','apply','publications.','-api\x27;','fsi','fixtures.','withGql','typeList.push(','api/methods.js','\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','create','server','rpc-methods.','import\x20\x27./register-','rewriteDestinationPathForEngine','api/resolvers.js'];a99c=function(){return A;};return a99c();}(function(a,b){const u=a99d,c=a();while(!![]){try{const d=-parseInt(u(0x165))/0x1+-parseInt(u(0x1a2))/0x2*(-parseInt(u(0x18a))/0x3)+parseInt(u(0x1b4))/0x4*(-parseInt(u(0x18b))/0x5)+parseInt(u(0x184))/0x6*(parseInt(u(0x19f))/0x7)+-parseInt(u(0x16f))/0x8+-parseInt(u(0x190))/0x9+parseInt(u(0x18d))/0xa*(parseInt(u(0x198))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xc4156));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0x187)]()['search'](w(0x161))[w(0x187)]()['constructor'](a99a)['search'](w(0x161));});function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x15f;let f=c[d];return f;},a99d(a,b);}a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99x(0x17b)]({'name':a99x(0x15f),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a99x(0x1a0),'validOpts':[a99x(0x183)],'examples':[a99x(0x196)],'description':a99x(0x17a)},async function(a,b){const y=a99x;try{const c=this['fsi']['getMakaProjectConfig'](),d=[{'name':y(0x166),'value':y(0x160)},{'name':'Fixtures','value':y(0x1a5)},{'name':'Publications','value':y(0x1aa)}];c[y(0x19e)]['api']===y(0x18f)&&d[y(0x1b0)]({'name':y(0x1b3),'value':'withRest'});c[y(0x19e)][y(0x170)]===y(0x18c)&&d['push']({'name':y(0x1ab),'value':y(0x177)});const f={'type':'checkbox','name':y(0x1a9),'message':y(0x1a8),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x16a)](f);g[y(0x199)]===0x0&&(Log['error']('No\x20API\x20boundaries\x20selected'),process[y(0x167)](0x1)),await this[y(0x175)][y(0x16c)](c,async()=>{const z=y,h=b['resourceName'],i=paramCase(h),j=camelCase(h),k=b[z(0x183)]?'/'+b[z(0x183)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0x19e)]['api'],'graphql':c['engines']['graphql'],'test':c[z(0x19e)][z(0x18e)],'noRename':!![],'withPubs':g[z(0x16b)](z(0x1aa)),'withFixtures':g['includes']('withFixtures'),'withMethods':g[z(0x16b)](z(0x160)),'withRest':g[z(0x16b)](z(0x19a))};let m='js';c[z(0x19e)]['js']===z(0x162)&&(m='ts');await this['fsi'][z(0x1a6)](['maka:rest','maka:check',z(0x19d),z(0x16d),z(0x182)],{'shouldInstall':!![]}),await a99e[z(0x193)](z(0x1ad),[i],{'config':c,'where':z(0x17c)});c['engines'][z(0x15f)]===z(0x18f)&&(l[z(0x19a)]&&await this[z(0x175)][z(0x1af)]({'srcPath':z(0x189),'destPath':this[z(0x175)][z(0x1b2)]({'pathParts':[z(0x1a7),z(0x15f),b[z(0x183)],i,z(0x185)+m]}),'context':l,'config':c}));l[z(0x160)]&&await this[z(0x175)][z(0x1af)]({'srcPath':z(0x179),'destPath':this[z(0x175)][z(0x1b2)]({'pathParts':[z(0x1a7),'api',b[z(0x183)],i,z(0x17d)+m]}),'context':l,'config':c});l['withFixtures']&&await this[z(0x175)][z(0x1af)]({'srcPath':z(0x1ae),'destPath':this['fsi'][z(0x1b2)]({'pathParts':[z(0x1a7),z(0x15f),b[z(0x183)],i,z(0x176)+m]}),'context':l,'config':c});c[z(0x19e)][z(0x18e)]!==z(0x197)&&this[z(0x175)][z(0x1af)]({'srcPath':z(0x192),'destPath':this['fsi'][z(0x1b2)]({'pathParts':[z(0x1a7),z(0x15f),b[z(0x183)],i,i+'.app-tests.'+m]}),'context':l,'config':c});l[z(0x1aa)]&&await this[z(0x175)][z(0x1af)]({'srcPath':z(0x169),'destPath':this['fsi']['pathFromApp']({'pathParts':[z(0x1a7),z(0x15f),b['dir'],i,z(0x173)+m]}),'context':l,'config':c});if(c[z(0x19e)][z(0x170)]===z(0x18c)){if(g[z(0x16b)]('withGql')){const o=this[z(0x175)][z(0x1b2)]({'pathParts':[z(0x1a7),'startup',z(0x17c),'index.'+c[z(0x19e)]['js']]}),p=this[z(0x175)][z(0x17f)]({'pathParts':[o],'config':c}),q=this[z(0x175)][z(0x1b2)]({'pathParts':['imports',z(0x15f),b[z(0x183)],i,z(0x170),z(0x181)+m]}),r=z(0x19b)+k+i+z(0x186);this['fsi']['template']({'srcPath':z(0x191),'destPath':q,'context':l,'config':c}),await this[z(0x175)]['injectAtBeginningOfFile']({'filePath':p,'content':'import\x20{\x20typeDefs\x20as\x20'+j+'TypeDefs\x20}\x20from\x20\x27'+r+'\x27;\x0a'}),await this[z(0x175)]['injectIntoFile']({'filePath':p,'content':z(0x178)+j+z(0x1ac),'begin':z(0x1a3),'end':'if\x20\x5c(typeList'});const s=this[z(0x175)]['pathFromApp']({'pathParts':[z(0x1a7),z(0x15f),b[z(0x183)],i,z(0x170),z(0x16e)+m]}),t=z(0x19b)+k+i+'/graphql/resolvers';await this[z(0x175)][z(0x1af)]({'srcPath':z(0x180),'destPath':s,'context':l,'config':c}),await this[z(0x175)][z(0x1a4)]({'filePath':p,'content':z(0x194)+j+'Resolvers\x20}\x20from\x20\x27'+t+'\x27;'}),await this[z(0x175)]['injectIntoFile']({'filePath':p,'content':z(0x1a1)+j+z(0x19c),'begin':z(0x1a3),'end':z(0x1b1)});}}await this[z(0x175)][z(0x1af)]({'srcPath':z(0x164),'destPath':this[z(0x175)]['pathFromApp']({'pathParts':[z(0x1a7),z(0x171),z(0x17c),z(0x195)+i+'-api.'+m]}),'context':l,'config':c,'force':!![]});const n=this['fsi'][z(0x1b2)]({'pathParts':[z(0x1a7),z(0x171),z(0x17c),z(0x188)+c['engines']['js']]});await this[z(0x175)][z(0x168)]({'filePath':n,'content':z(0x17e)+i+z(0x174)});});}catch(h){console[y(0x163)](h),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x193))/0x1*(-parseInt(j(0x18b))/0x2)+-parseInt(j(0x1a6))/0x3+parseInt(j(0x19d))/0x4+-parseInt(j(0x19a))/0x5+-parseInt(j(0x189))/0x6+-parseInt(j(0x1a0))/0x7+parseInt(j(0x18d))/0x8*(parseInt(j(0x1a2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x9f26b));function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x186;let f=c[d];return f;},a100d(a,b);}const a100b=(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;};}()),a100a=a100b(this,function(){const k=a100d;return a100a['toString']()[k(0x19c)](k(0x186))['toString']()[k(0x1a3)](a100a)['search'](k(0x186));});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100c(){const o=['1050516qnnAsE','imports','6TxYXde','startup','1394528gHZWWY','appPathPrefix','resourceName','withValue','getMakaProjectConfig','import\x20\x27./collections','369841VmrkSo','\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','injectAtEndOfFile','fsi','maka\x20g:collection\x20todos','none','test','2560260IkhkDy','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','search','4510408mZnxyL','mongo','checkMeteorPackage','8140531rZZSFW','index.','153TazbiR','constructor','where','engines','1438491RkXZhS','tsx','dir','pathFromApp','col','maka:check','collection','error','(((.+)+)+)+$','collections','collection/tests.js'];a100c=function(){return o;};return a100c();}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a100l(0x1ac),'aliases':[a100l(0x1aa)],'usage':a100l(0x19b),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a100l(0x1a8),'where'],'description':a100l(0x194),'examples':[a100l(0x197)]},async function(a,b){const m=a100l;try{const c=this[m(0x196)][m(0x191)]();await this[m(0x196)][m(0x190)](c,async()=>{const n=m,d=paramCase(b[n(0x18f)]),f={'name':pascalCase(b[n(0x18f)]),'collectionName':pascalCase(b[n(0x18f)]),'fileName':d,'where':b[n(0x1a4)],'test':c[n(0x1a5)]['test'],'noRename':!![]};let g='js';c[n(0x1a5)]['js']===n(0x1a7)&&(g='ts');await this[n(0x196)][n(0x19f)]([n(0x19e),n(0x1ab)],{'shouldInstall':!![]}),await this['fsi']['template']({'srcPath':'collection/collection.js','destPath':this[n(0x196)][n(0x1a9)]({'pathParts':[n(0x18a),n(0x18c),b[n(0x18e)],'collections',b[n(0x1a8)],d+'.'+g]}),'context':f,'config':c});c[n(0x1a5)][n(0x199)]!==n(0x198)&&await this[n(0x196)]['template']({'srcPath':n(0x188),'destPath':this['fsi'][n(0x1a9)]({'pathParts':[n(0x18a),n(0x18c),b[n(0x18e)],n(0x187),b[n(0x1a8)],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[n(0x1a8)]?'/'+b[n(0x1a8)]+'/':'/',i=this['fsi'][n(0x1a9)]({'pathParts':[n(0x18a),n(0x18c),b[n(0x18e)],n(0x1a1)+c[n(0x1a5)]['js']]});await this[n(0x196)][n(0x195)]({'filePath':i,'content':n(0x192)+h+d+'\x27;'});});}catch(d){Log[m(0x1ad)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101m=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x1c5))/0x1*(parseInt(k(0x1db))/0x2)+-parseInt(k(0x1d5))/0x3+-parseInt(k(0x1b1))/0x4+-parseInt(k(0x1b0))/0x5+parseInt(k(0x1c3))/0x6+-parseInt(k(0x1bf))/0x7*(parseInt(k(0x1af))/0x8)+parseInt(k(0x1bd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xc71b3));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[l(0x1d0)]()[l(0x1d7)](l(0x1c4))[l(0x1d0)]()['constructor'](a101a)[l(0x1d7)]('(((.+)+)+)+$');});a101a();function a101c(){const p=['setTemplate','features','test/test.js','145358TUkNIb','pathFromProject','baseDir','fileName','dir','import\x20\x27./','/imports/ui/','string','fsi','relative','withTranslations','getMakaProjectConfig','components','pages','checkNpmPackage','cssCaseName','assign','template','24vdqNEl','8016450QUaslM','2295996PQBMHo','className','api','error','hooks','layouts','none','client','css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','component','/imports/ui/components','26977851jWSqhE','resourceName','349069nrjqtF','ssr','graphql','engines','2015430eyBIse','(((.+)+)+)+$','10MyBveM','ramda','component/component.js','withValue','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','root','injectTemplateModule','installNpmPackage','maka\x20g:comp\x20todos/todos-item','.js','template/template.css','toString','findAppDirectory','true','comp','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','2753415OTjHIh','test','search'];a101c=function(){return p;};return a101c();}import a101e from'path';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a101d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a101m(0x1d3)];Generator['create']({'name':a101m(0x1bb),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a101m(0x1c9),'validOpts':[{'name':a101m(0x1dd),'values':[a101m(0x1b5),a101m(0x1e7),a101m(0x1aa),a101m(0x1b6)]}],'examples':[a101m(0x1cd)]},async function(a,b){const n=a101m;try{const c=this[n(0x1e3)][n(0x1d1)](),d=b[n(0x1dd)]?n(0x1e1)+b['baseDir']:n(0x1bc),f=this['fsi']['pathFromApp']({'pathParts':[d,b[n(0x1df)],paramCase(b[n(0x1be)]),paramCase(b[n(0x1be)])]}),g=await this[n(0x1e3)][n(0x1e6)]();await this[n(0x1e3)][n(0x1c8)](g,async()=>{const o=n;typeof g[o(0x1ae)][o(0x1d6)]===o(0x1e2)&&(g[o(0x1ae)][o(0x1d6)]=g[o(0x1ae)]['test']===o(0x1d2)?!![]:![],this[o(0x1e3)]['setTemplate'](o(0x1d6),g[o(0x1ae)]['test']));typeof g[o(0x1ae)][o(0x1b9)]===o(0x1e2)&&(g[o(0x1ae)][o(0x1b9)]=g['template'][o(0x1b9)]===o(0x1d2)?!![]:![],this[o(0x1e3)][o(0x1d8)](o(0x1b9),g['template']['css']));typeof g[o(0x1ae)]['js']==='string'&&(g[o(0x1ae)]['js']=g[o(0x1ae)]['js']==='true'?!![]:![],this[o(0x1e3)][o(0x1d8)]('js',g['template']['js']));!g[o(0x1d9)]&&(g[o(0x1d9)]={});!b['root']&&!this[o(0x1e3)][o(0x1ab)](o(0x1c6))&&(Log['warn'](o(0x1d4)),await this[o(0x1e3)][o(0x1cc)]('ramda',{'cwd':c}));if(!b[o(0x1ca)]&&!this[o(0x1e3)][o(0x1ab)]('react')){Log[o(0x1b4)](o(0x1ba));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[o(0x1e4)](this[o(0x1e3)][o(0x1dc)]({}),f),'cssCaseName':paramCase(b[o(0x1be)]),'className':pascalCase(b[o(0x1be)]),'camelCaseName':camelCase(b[o(0x1be)]),'fileName':paramCase(b['resourceName']),'graphql':g[o(0x1c2)][o(0x1c1)],'features':g[o(0x1d9)],'client':g[o(0x1c2)][o(0x1b8)],'api':g[o(0x1c2)][o(0x1b3)],'ssr':g[o(0x1c2)][o(0x1c0)],'test':g[o(0x1c2)]['test'],'theme':g['engines']['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[o(0x1d9)][o(0x1e5)]};await this[o(0x1e3)]['template']({'srcPath':o(0x1c7),'destPath':f+o(0x1ce),'context':h,'framework':'react','config':g});g[o(0x1c2)][o(0x1d6)]!==o(0x1b7)&&await this['fsi']['template']({'srcPath':o(0x1da),'destPath':f+'.tests.js','context':h,'framework':'react','config':g});g[o(0x1ae)]['css']&&(await this[o(0x1e3)]['template']({'srcPath':o(0x1cf),'destPath':f+'.css','context':Object[o(0x1ad)]({},h,{'className':paramCase(b[o(0x1be)])}),'config':g}),await this[o(0x1e3)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[o(0x1c2)]['js'],'content':o(0x1e0)+h[o(0x1ac)]+'.'+g['engines'][o(0x1b9)]+'\x27;'}));const i=b['dir']?'/'+b[o(0x1df)]+'/':'/',j=''+d+i+h[o(0x1de)]+'/'+h[o(0x1de)];await this[o(0x1e3)][o(0x1cb)](h[o(0x1b2)],g,j);});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d
|
|
1
|
+
const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x15e))/0x1+parseInt(h(0x15f))/0x2*(-parseInt(h(0x16e))/0x3)+parseInt(h(0x16b))/0x4+-parseInt(h(0x16f))/0x5+-parseInt(h(0x163))/0x6*(-parseInt(h(0x16d))/0x7)+parseInt(h(0x158))/0x8+-parseInt(h(0x160))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x502f6));function a102c(){const m=['ubuntu','search','toString','493176mgTXQl','2ZKncec','7665066RoKlYC','appName','template','294rqitZq','pathFromProject','create','config','process.env','production','prod','withValue','2447264eFtQcK','config/settings.json','75719YVSkKa','1864911lMHYfV','351540PVyBfz','(((.+)+)+)+$','constructor','Generate\x20configuration\x20settings.','fsi','isDocker','1896256hiCbmy','resourceName','config/process.env'];a102c=function(){return m;};return a102c();}function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x155;let f=c[d];return f;},a102d(a,b);}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(0x15d)]()[i(0x15c)]('(((.+)+)+)+$')[i(0x15d)]()[i(0x171)](a102a)[i(0x15c)](i(0x170));});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102j(0x165)]({'name':'config','usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a102j(0x155),'validOpts':['isDocker'],'examples':['maka\x20g:config\x20production']},async function(a,b){const k=a102j,c=this['fsi']['getMakaProjectConfig']();await this[k(0x156)][k(0x16a)](c,async()=>{const l=k,d={'app':c[l(0x161)],'appFileCase':paramCase(c[l(0x161)]),'name':pascalCase(b[l(0x159)]),'fileName':paramCase(b[l(0x159)]),'camelCase':camelCase(b[l(0x159)]),'userName':l(0x15b),'isDocker':b[l(0x157)]};let e=b[l(0x159)];if(e==='dev')e='development';else e===l(0x169)&&(e=l(0x168));const f=this['fsi'][l(0x164)]({'pathParts':[l(0x166),e,'settings.json']});await this[l(0x156)][l(0x162)]({'srcPath':l(0x16c),'destPath':f,'context':d,'config':c});if(!b[l(0x157)]){const g=this[l(0x156)][l(0x164)]({'pathParts':[l(0x166),e,l(0x167)]});await this[l(0x156)][l(0x162)]({'srcPath':l(0x15a),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0x1a5))/0x1*(parseInt(j(0x1a2))/0x2)+-parseInt(j(0x19a))/0x3+-parseInt(j(0x1a4))/0x4*(parseInt(j(0x1b2))/0x5)+parseInt(j(0x1ba))/0x6*(parseInt(j(0x1a9))/0x7)+parseInt(j(0x18f))/0x8+parseInt(j(0x191))/0x9+-parseInt(j(0x190))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x601ae));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x1a3)]()['search']('(((.+)+)+)+$')[l(0x1a3)]()[l(0x1bf)](a103a)[l(0x1ad)](l(0x19c));});a103a();function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x18d;let f=c[d];return f;},a103d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const p=['injectAtEndOfFile','2152456LOKLQi','3283280xTllSZ','6904359MHJXAH','pathFromApp','imports','conn.','dbc','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','getMakaProjectConfig','config.','template','2215497KkuqMF','sqlite','(((.+)+)+)+$','checkNpmPackage','pgsql','withValue','mssql','type','2YEfixs','toString','10492OiCYUa','283893UnkutQ','maka\x20g:dbc\x20todos\x20--type=sqlite','dbc/register-dbc.js','dir','2176069BzqvyR','startup','dbc/conn.js','-dbc.','search','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','resourceName','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','325OoZRpg','warn','register-','server','error','fsi','create','installNpmPackage','6ZUIvUG','engines','better-sqlite3','maka\x20g:dbc\x20geoserver\x20--type=pgsql','index.','constructor','apply'];a103c=function(){return p;};return a103c();}Generator[a103m(0x1b8)]({'name':a103m(0x195),'usage':a103m(0x1af),'shortDesc':a103m(0x1ae),'validOpts':[a103m(0x1a8)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a103m(0x19e),a103m(0x1a0),a103m(0x19b)]}],'examples':[a103m(0x1bd),'maka\x20g:dbc\x20azure\x20--type=mssql',a103m(0x1a6)]},async function(a,b){const n=a103m;try{const c=await this[n(0x1b7)][n(0x197)](),d=this['fsi'][n(0x192)]({}),f=paramCase(b[n(0x1b0)]),g={'name':pascalCase(b[n(0x1b0)]),'fileName':paramCase(b[n(0x1b0)]),'camelCase':camelCase(b['resourceName']),'type':b[n(0x1a1)],'engine':c[n(0x1bb)]['js'],'noRename':!![]};await this[n(0x1b7)][n(0x19f)](c,async()=>{const o=n;let h='js';c['engines']['js']==='tsx'&&(h='ts');b[o(0x1a1)]==='pgsql'&&!this[o(0x1b7)][o(0x19d)]('pg')&&(Log[o(0x1b3)](o(0x1b1)),await this[o(0x1b7)][o(0x1b9)]('pg',{'cwd':d}));b[o(0x1a1)]==='mssql'&&!this['fsi'][o(0x19d)](o(0x1a0))&&(Log['warn'](o(0x196)),await this[o(0x1b7)]['installNpmPackage'](o(0x1a0),{'cwd':d}));b[o(0x1a1)]===o(0x19b)&&!this[o(0x1b7)][o(0x19d)](o(0x1bc))&&(Log[o(0x1b3)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0x1b7)]['installNpmPackage'](o(0x1bc),{'cwd':d}));await this[o(0x1b7)][o(0x199)]({'srcPath':'dbc/config.js','destPath':this[o(0x1b7)][o(0x192)]({'pathParts':['imports','startup',o(0x1b5),o(0x195),b[o(0x1a8)],f,o(0x198)+h]}),'context':g,'config':c}),await this[o(0x1b7)][o(0x199)]({'srcPath':o(0x1ab),'destPath':this['fsi'][o(0x192)]({'pathParts':['imports',o(0x1aa),o(0x1b5),o(0x195),b[o(0x1a8)],f,o(0x194)+h]}),'context':g,'config':c}),await this[o(0x1b7)][o(0x199)]({'srcPath':o(0x1a7),'destPath':this['fsi'][o(0x192)]({'pathParts':[o(0x193),o(0x1aa),o(0x1b5),o(0x1b4)+f+o(0x1ac)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x192)]({'pathParts':[o(0x193),o(0x1aa),'server',o(0x1be)+c[o(0x1bb)]['js']]});await this[o(0x1b7)][o(0x18e)]({'filePath':i,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(h){Log[n(0x1b6)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x1cf))/0x1*(parseInt(f(0x1c7))/0x2)+parseInt(f(0x1c4))/0x3*(-parseInt(f(0x1d3))/0x4)+parseInt(f(0x1bd))/0x5*(parseInt(f(0x1ca))/0x6)+parseInt(f(0x1c6))/0x7*(-parseInt(f(0x1c9))/0x8)+parseInt(f(0x1cd))/0x9*(-parseInt(f(0x1c8))/0xa)+parseInt(f(0x1c2))/0xb+parseInt(f(0x1d2))/0xc*(parseInt(f(0x1cb))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x7330a));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1d0)]()[h(0x1d1)](h(0x1c3))[h(0x1d0)]()[h(0x1bb)](a104a)[h(0x1d1)](h(0x1c3));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';function a104c(){const l=['2WrsziZ','8892710WwMqOy','24xoPvYY','36zBFmZx','25142UJrqUn','Generate\x20an\x20updated\x20dockerfile','9zEipRT','fsi','214870pWflba','toString','search','6024ziDpHr','652SMFxWG','findProjectDirectory','service','appName','apply','app.tar.gz','maka\x20{generate,\x20g}:dockerfile','constructor','getMakaProjectConfig','644945Qwqomt','dockerfile','join','app','docker/Dockerfile','893123wmumhb','(((.+)+)+)+$','4527oZBbpS','cert','1012221nqsvVn'];a104c=function(){return l;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a104d(a,b);}Generator['create']({'name':a104i(0x1be),'usage':a104i(0x1ba),'shortDesc':a104i(0x1cc),'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a104i;try{const a=await this[j(0x1ce)][j(0x1bc)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0x1ce)][j(0x1b5)]();await this['fsi']['withValue'](a,async()=>{const k=j,d={'app':b[k(0x1b7)],'config':a,'appPath':a104e['join'](c,k(0x1c0)),'bundlePath':a104e[k(0x1bf)](c,'build',k(0x1b9)),'useCert':this[k(0x1ce)]['isFile'](b[k(0x1c5)])};await this['fsi']['template']({'srcPath':k(0x1c1),'destPath':a104e[k(0x1bf)](c,'Dockerfile'),'framework':k(0x1b6),'context':d,'config':a});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105o=a105d;function a105c(){const r=['
|
|
1
|
+
const a105o=a105d;function a105c(){const r=['3366711fqeMkq','dir','(((.+)+)+)+$','string','template','14958dSwsAu','.css','create','358883ditiyq','pathFromProject','className','react','notice','setTemplate','withTranslations','maka\x20g:hook\x20cool-hook','11821270swdnGv','toString','@apollo/client','122xDZoDJ','pages','apply','test/test.js','4xnpBRE','graphql','/imports/ui/','pathFromApp','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','24JqKLzg','\x20hook...','cssCaseName','resourceName','engines','constructor','error','baseDir','injectAtBeginningOfFile','\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','hooks','withValue','warn','features','976621SPFjUp','true','css','hook','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','checkNpmPackage','relative','1788906XjQGPP','563285oEYiYd','installNpmPackage','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','test','theme','template/template.css','.js','hook/hook.js','force','fsi','none'];a105c=function(){return r;};return a105c();}(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0xc5))/0x1+-parseInt(l(0xae))/0x2*(parseInt(l(0xa0))/0x3)+-parseInt(l(0xb2))/0x4*(-parseInt(l(0xce))/0x5)+-parseInt(l(0xcd))/0x6+-parseInt(l(0xa3))/0x7+-parseInt(l(0xb7))/0x8*(-parseInt(l(0x9b))/0x9)+parseInt(l(0xab))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xc0192));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0xac)]()['search']('(((.+)+)+)+$')['toString']()[n(0xbc)](a105a)['search'](n(0x9d));});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x91;let f=c[d];return f;},a105d(a,b);}import{UsageError}from'../error.js';Generator[a105o(0xa2)]({'name':a105o(0xc8),'aliases':['h'],'checkWhere':![],'usage':a105o(0xca),'shortDesc':a105o(0xc9),'validOpts':[{'name':a105o(0xbe),'values':[a105o(0xc1),'components',a105o(0xaf),'layouts']},{'name':a105o(0x98),'boolFlag':!![]}],'examples':[a105o(0xaa)],'description':a105o(0xc0)},async function(a,b){const p=a105o;Log[p(0xa7)]('Creating\x20'+b[p(0xba)]+p(0xb8));try{const c=this[p(0x99)][p(0xcb)](p(0xa6));if(!c){Log[p(0xbd)](p(0x92));throw new UsageError();}const d=this[p(0x99)]['pathFromApp'](b),f=b[p(0xbe)]?p(0xb4)+b['baseDir']:'/imports/ui/hooks',g=this['fsi'][p(0xb5)]({'pathParts':[f,b[p(0x9c)],paramCase(b[p(0xba)]),paramCase(b[p(0xba)])]}),h=await this[p(0x99)]['getMakaProjectConfig']();await this[p(0x99)][p(0xc2)](h,async()=>{const q=p;typeof h['template'][q(0xc7)]===q(0x9e)&&(h[q(0x9f)][q(0xc7)]=h[q(0x9f)][q(0xc7)]===q(0xc6)?!![]:![],this['fsi'][q(0xa8)](q(0xc7),h['template']['css']));h[q(0xbb)][q(0xb3)]==='apollo'&&!this[q(0x99)][q(0xcb)](q(0xad))&&(Log[q(0xc3)](q(0xb6)),await this[q(0x99)][q(0x91)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0xba)]),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b['resourceName']),'name':pascalCase(b[q(0xba)]),'graphql':h[q(0xbb)][q(0xb3)],'theme':h[q(0xbb)][q(0x94)],'features':h[q(0xc4)],'myPath':a105e[q(0xcc)](this[q(0x99)][q(0xa4)]({}),g),'fileName':paramCase(b[q(0xba)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][q(0xa9)]};await this['fsi']['template']({'srcPath':q(0x97),'destPath':g+q(0x96),'context':i,'config':h,'framework':q(0xa6),'force':b[q(0x98)]});h[q(0x9f)][q(0xc7)]&&(await this[q(0x99)][q(0x9f)]({'srcPath':q(0x95),'destPath':g+q(0xa1),'context':Object['assign']({},i,{'className':i[q(0xb9)]}),'config':h,'force':b[q(0x98)]}),await this[q(0x99)][q(0xbf)]({'filePath':g+'.'+h[q(0xbb)]['js'],'content':'import\x20\x27./'+i['fileName']+'.'+h[q(0xbb)]['css']+'\x27;'}));h[q(0xbb)][q(0x93)]!==q(0x9a)&&await this[q(0x99)][q(0x9f)]({'srcPath':q(0xb1),'destPath':g+'.app-tests.js','framework':q(0xa6),'context':i,'config':h,'force':b[q(0x98)]});const j=b[q(0x9c)]?'/'+b[q(0x9c)]+'/':'/',k=''+f+j+i['fileName']+'/'+i['fileName'];await this['fsi']['injectTemplateModule'](i[q(0xa5)],h,k);});}catch(i){Log[p(0xbd)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a106d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x113))/0x1*(parseInt(f(0x112))/0x2)+-parseInt(f(0x11a))/0x3*(-parseInt(f(0x11c))/0x4)+parseInt(f(0x118))/0x5*(-parseInt(f(0x11b))/0x6)+-parseInt(f(0x117))/0x7+-parseInt(f(0x114))/0x8+-parseInt(f(0x119))/0x9+parseInt(f(0x11d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xc92a0));var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x116)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a[h(0x115)]()[h(0x111)]('(((.+)+)+)+$')['toString']()[h(0x110)](a106a)[h(0x111)]('(((.+)+)+)+$');});a106a();import'./kit.js';function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x110;var f=c[d];return f;},a106d(a,b);}function a106c(){var i=['search','178172GUpwpP','5FSzNZe','8804688LgBCCh','toString','apply','8092735TSIKmN','3345220pBSWxp','8851941tWePnE','3kCSDyK','12wZrpoC','5705204MsuRrQ','44214250VxUhBk','constructor'];a106c=function(){return i;};return a106c();}import'./mui/_index.js';import'./esri/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0xe9))/0x1+parseInt(f(0xee))/0x2+parseInt(f(0xed))/0x3+-parseInt(f(0xea))/0x4+parseInt(f(0xe5))/0x5*(parseInt(f(0xe8))/0x6)+parseInt(f(0xeb))/0x7+-parseInt(f(0xe6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x832a0));function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0xe5;var f=c[d];return f;},a107d(a,b);}function a107c(){var i=['5070387jKwIAH','apply','2114670LCYysj','1740796TVhuKn','(((.+)+)+)+$','constructor','15DKwzqj','18492648odmNIN','toString','2009904iAkpOx','257841rYGHtm','2854372ZpwBSp'];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(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0xe7)]()['search'](h(0xef))[h(0xe7)]()[h(0xf0)](a107a)['search']('(((.+)+)+)+$');});a107a();import'./esri.generator.js';import'./map.esri.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x8a;let f=c[d];return f;},a108d(a,b);}const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0x99))/0x1*(parseInt(f(0x97))/0x2)+parseInt(f(0x8f))/0x3*(-parseInt(f(0x9b))/0x4)+-parseInt(f(0x90))/0x5+parseInt(f(0x8b))/0x6*(parseInt(f(0x9f))/0x7)+-parseInt(f(0x92))/0x8+-parseInt(f(0x8e))/0x9+-parseInt(f(0x94))/0xa*(-parseInt(f(0x95))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x7a791));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x98)]()['search'](h(0x93))['toString']()[h(0x9a)](a108a)[h(0x8d)]('(((.+)+)+)+$');});a108a();function a108c(){const k=['/foo','6dEdTba','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','search','280485iOfnNp','471hEhVzH','3071310FTlWrw','\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','5352136FDrGOE','(((.+)+)+)+$','37540leHsOI','8008gXTfBA','esri','1808998PCjEKw','toString','1qaHiIU','constructor','1748pdrAlZ','apply','create','Esri\x20Kit\x20generated\x20successfully','394023UaTanp'];a108c=function(){return k;};return a108c();}import{Generator}from'../../../generator.js';import a108e from'../kit.js';const EsriGen=Generator[a108i(0x9d)]({'name':a108i(0x96),'aliases':['e'],'usage':a108i(0x8c),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20Esri\x20Maps','validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:e'],'description':a108i(0x91)},async function(){const j=a108i;return{'success':!![],'message':j(0x9e),'details':{'filesCreated':['/foo/bar'],'filesUpdated':[j(0x8a)]}};},async function(){},a108e);export default EsriGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109s=a109d;(function(a,b){const p=a109d,c=a();while(!![]){try{const d
|
|
1
|
+
const a109s=a109d;(function(a,b){const p=a109d,c=a();while(!![]){try{const d=parseInt(p(0x1e8))/0x1*(parseInt(p(0x1f1))/0x2)+-parseInt(p(0x1d9))/0x3*(parseInt(p(0x1cd))/0x4)+parseInt(p(0x1e2))/0x5+parseInt(p(0x1db))/0x6+-parseInt(p(0x1e4))/0x7+-parseInt(p(0x1dd))/0x8+-parseInt(p(0x1fd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x32703));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a109d;if(c){const e=c[q(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const r=a109d;return a109a['toString']()[r(0x1f4)]('(((.+)+)+)+$')['toString']()['constructor'](a109a)[r(0x1f4)](r(0x1dc));});function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a109d(a,b);}a109a();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';function a109c(){const v=['6163MxtDTY','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','injectTemplateModule','withValue','/imports/startup/client/templates','REACT','\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','FALSE','apply','114tFkluo','map','bright','search','create','exit','pathFromApp','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','template','ssr','findProjectDirectory','injectImport','3328380HupBLf','fsi','/imports/ui/hooks','react','getMakaProjectConfig','44nCRpIO','checkNpmPackage','dir','split','basic-map','replaceAll','page','appName','kit/esri/map/','<div\x20id=\x22map-component\x22>','baseDir','processAndRunGenerator','31167pBzDiQ','/imports/ui/','1993716WOVFWD','(((.+)+)+)+$','484336IoRCZw','injectIntoFile','.js','</div>','true','2019335BqiJvV','Generating\x20a\x20map\x20component','2353456NOcdLB','/imports/startup/lib/templates','esri-loader','Generate\x20an\x20Esri\x20map\x20component'];a109c=function(){return v;};return a109c();}Generator[a109s(0x1f5)]({'name':a109s(0x1f2),'aliases':['m'],'usage':a109s(0x1e9),'shortDesc':a109s(0x1e7),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a109s(0x1ed)],'ssr':SsrEngines[a109s(0x1ef)]},'description':a109s(0x1ee)},async function(a,b){const t=a109s;try{Log[t(0x1f3)](t(0x1e3));const c=t(0x1d1);await this['fsi'][t(0x1ce)](['@esri/react-arcgis',t(0x1e6)],{'shouldInstall':!![]});const d=this['fsi'][t(0x1fb)](),f=this[t(0x1fe)][t(0x1cc)](),g=f['engines'][t(0x1fa)]===t(0x1e1),h=await a109f[t(0x1d8)](t(0x1d3),['map'],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0x1d4)])[t(0x1d2)]('-','\x20'),'componentName':pascalCase(c)},j=b['baseDir']?t(0x1da)+b[t(0x1d7)]:t(0x1ca),k=this[t(0x1fe)][t(0x1f7)]({'pathParts':[j,b[t(0x1cf)],paramCase(c),paramCase(c)]});this[t(0x1fe)][t(0x1eb)](f,async()=>{const u=t;this[u(0x1fe)][u(0x1f9)]({'srcPath':u(0x1d5)+c+u(0x1df),'destPath':k+u(0x1df),'framework':u(0x1cb),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0x1cf)]+'/'+c+'/'+c;await this['fsi'][t(0x1ea)](c,f,l);const m=h[t(0x1d0)]('/'),n=this[t(0x1fe)]['pathFromApp']({'pathParts':m});await this['fsi'][t(0x1fc)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0x1e5):t(0x1ec),'isNamedExport':!![]}),await this['fsi'][t(0x1de)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x1f8),'begin':['<div\x20id=\x22map-hook\x22>',t(0x1d6)],'end':[t(0x1e0)],'replace':!![]});}catch(o){Log['error'](o),process[t(0x1f6)](0x1);}},async function(){},a109e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d
|
|
1
|
+
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0xaa))/0x1*(parseInt(f(0x97))/0x2)+parseInt(f(0xa1))/0x3+-parseInt(f(0xab))/0x4*(parseInt(f(0x9a))/0x5)+-parseInt(f(0xa4))/0x6*(-parseInt(f(0x9d))/0x7)+parseInt(f(0xa7))/0x8*(parseInt(f(0xa8))/0x9)+-parseInt(f(0xa5))/0xa*(-parseInt(f(0x98))/0xb)+-parseInt(f(0xa3))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xef280));function a110c(){const j=['2SytAOr','4600684fzXWyP','(((.+)+)+)+$','4480985ZRrvbU','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:k','3024ogJJyX','constructor','maka\x20g:kit','create','5328273MAektB','apply','60152256UpgDAN','23682UlEXFX','30ONAIVu','kit','12680ZFFRvU','10953uXZePl','maka\x20{generate,\x20g}:{kit}\x20<name>','223597sKxRfg','4WzuTZP','search'];a110c=function(){return j;};return a110c();}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a['toString']()[h(0x96)](h(0x99))['toString']()[h(0x9e)](a110a)['search'](h(0x99));});a110a();function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x96;let f=c[d];return f;},a110d(a,b);}import{Generator}from'../../generator.js';const KitGen=Generator[a110i(0xa0)]({'name':a110i(0xa6),'aliases':['k'],'usage':a110i(0xa9),'shortDesc':a110i(0x9b),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a110i(0x9f),a110i(0x9c)]},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0x1c4))/0x1*(parseInt(f(0x1c6))/0x2)+-parseInt(f(0x1bd))/0x3+-parseInt(f(0x1be))/0x4+-parseInt(f(0x1c7))/0x5*(parseInt(f(0x1c0))/0x6)+-parseInt(f(0x1cb))/0x7*(parseInt(f(0x1bf))/0x8)+parseInt(f(0x1c2))/0x9*(-parseInt(f(0x1c1))/0xa)+-parseInt(f(0x1c5))/0xb*(-parseInt(f(0x1ca))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xd1d18));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x1bb)]()['search']('(((.+)+)+)+$')['toString']()[h(0x1bc)](a111a)[h(0x1c9)](h(0x1c3));});function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x1bb;var f=c[d];return f;},a111d(a,b);}a111a();import'./mui.generator.js';import'./frame.mui.gen.js';function a111c(){var i=['apply','search','132iznngW','2884DiUBgN','toString','constructor','4823205CopCGI','4142736IhdiSE','4976LSVomB','54mOJsDJ','10PeuDJL','7985403GVoPZl','(((.+)+)+)+$','1539661jEWCNJ','3757171qBuSzn','2bdjVrf','361370fOdEdY'];a111c=function(){return i;};return a111c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112A=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d=-parseInt(x(0x177))/0x1*(parseInt(x(0x17e))/0x2)+-parseInt(x(0x18e))/0x3*(parseInt(x(0x1a9))/0x4)+-parseInt(x(0x176))/0x5+-parseInt(x(0x1a3))/0x6+parseInt(x(0x182))/0x7*(parseInt(x(0x192))/0x8)+parseInt(x(0x172))/0x9*(parseInt(x(0x19c))/0xa)+-parseInt(x(0x193))/0xb*(-parseInt(x(0x18d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x683c6));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a112d;if(c){const e=c[y(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const z=a112d;return a112a['toString']()[z(0x180)](z(0x1a0))[z(0x195)]()[z(0x178)](a112a)['search'](z(0x1a0));});a112a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a112c(){const D=['1000664ZaSnBR','basic-app-bar','.js','No\x20layouts\x20selected','{this.props.children}','fsi','MATERIAL','injectIntoFile','{\x20props.children\x20}','withValue','getMakaProjectConfig','24yoqSWp','2068377lhzxhk','length','error','app-tests','40oAvnFS','7020761YnFcYh','layouts','toString','injectImport','join','\x20/>\x0a','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','dir','REACT','170YsICml','tests','/imports/ui/hooks','imports','(((.+)+)+)+$','<div\x20id=\x22','tsx','2643594hgCYSX','{\x20this.props.children\x20}','create','getDirectories','findAppDirectory','/imports/startup/client/templates','4DBNuYW','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','pathFromApp','getFiles','{props.children}','jsx','test','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','session','injectTemplateModule','true','209601pHULNE','template','/imports/ui/','replaceAll','3718345IKeIrQ','86498jrsSYr','constructor','ssr','react','-component\x22>','apply','checkMeteorPackage','2AgPvPe','baseDir','search','options'];a112c=function(){return D;};return a112c();}import a112e from'path';import a112f from'./mui.generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x168;let f=c[d];return f;},a112d(a,b);}import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a112A(0x1a5)]({'name':'frame','aliases':['f'],'usage':'maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','shortDesc':a112A(0x168),'validOpts':[a112A(0x194)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a112A(0x188)],'client':ClientEngines[a112A(0x19b)]},'examples':['maka\x20generate:kit:mui:frame','maka\x20g:k:m:f'],'description':a112A(0x16e)},async function(a,b){const B=a112A;try{const c=B(0x183),d='basic-drawer',f=this[B(0x187)][B(0x18c)](),g=f['engines'][B(0x179)]===B(0x171);await this[B(0x187)][B(0x17d)](B(0x16f),{'shouldInstall':!![]});const h=this[B(0x187)][B(0x1a7)](),i=a112e[B(0x197)](h,B(0x19f),'ui',B(0x194)),j=this[B(0x187)][B(0x1a6)](i),k=await Actions[B(0x181)]({'type':'checkbox','name':B(0x194),'message':B(0x199),'choices':j});if(k['layouts'][B(0x18f)]===0x0){Log['error'](B(0x185));return;}const l=b[B(0x17f)]?B(0x174)+b[B(0x17f)]:B(0x19e),m=this[B(0x187)][B(0x169)]({'pathParts':[l,b['dir'],paramCase(c),paramCase(c)]}),n=this[B(0x187)]['pathFromApp']({'pathParts':[l,b[B(0x19a)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f['appName'])[B(0x175)]('-','\x20')};await this[B(0x187)][B(0x18b)](f,async()=>{const C=B;await this[C(0x187)][C(0x173)]({'srcPath':'kit/mui/frame/app-bars/'+c+C(0x184),'destPath':m+'.js','framework':C(0x17a),'context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x187)]['template']({'srcPath':'kit/mui/frame/drawers/'+d+'.js','destPath':n+C(0x184),'framework':C(0x17a),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0x19a)]+'/'+c+'/'+c;await this[B(0x187)][B(0x170)](c,f,p);const q=''+l+b[B(0x19a)]+'/'+d+'/'+d;await this[B(0x187)]['injectTemplateModule'](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0x187)][B(0x16a)](a112e['join'](i,s),{'extensions':[B(0x16c),B(0x1a2)],'omit':[B(0x191),B(0x19d),B(0x16d)]});for(const u of t){const v=a112e[B(0x197)](i,s,u);await this[B(0x187)][B(0x196)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':'/imports/startup/client/templates','isNamedExport':!![]}),await this['fsi'][B(0x189)]({'filePath':v,'content':'<'+pascalCase(c)+B(0x198),'begin':[B(0x1a1)+s+B(0x17b),B(0x1a1)+s+'-hook\x22>'],'end':[B(0x186),B(0x1a4),B(0x16b),'{\x20props.children\x20}']}),await this[B(0x187)][B(0x196)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?'/imports/startup/lib/templates':B(0x1a8),'isNamedExport':!![]}),await this[B(0x187)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(d)+B(0x198),'begin':['<div\x20id=\x22'+s+B(0x17b),B(0x1a1)+s+'-hook\x22>'],'end':[B(0x186),B(0x1a4),'{props.children}',B(0x18a)]});}}}catch(w){Log[B(0x190)](w);}},async function(){},a112f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113i=a113d;
|
|
1
|
+
const a113i=a113d;(function(a,b){const f=a113d,c=a();while(!![]){try{const d=parseInt(f(0x19a))/0x1+-parseInt(f(0x190))/0x2*(parseInt(f(0x196))/0x3)+-parseInt(f(0x188))/0x4+-parseInt(f(0x193))/0x5+-parseInt(f(0x191))/0x6*(-parseInt(f(0x19d))/0x7)+parseInt(f(0x19b))/0x8*(parseInt(f(0x18e))/0x9)+-parseInt(f(0x195))/0xa*(-parseInt(f(0x18c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x49246));function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x188;let f=c[d];return f;},a113d(a,b);}const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0x192)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a[h(0x19c)]()[h(0x194)]('(((.+)+)+)+$')[h(0x19c)]()[h(0x197)](a113a)[h(0x194)](h(0x18d));});a113a();import{Generator}from'../../../generator.js';function a113c(){const k=['10ORdRov','453SUlskp','constructor','Material-UI\x20Kit','NIE','524857CQPURr','16SBtYKg','toString','61229iwJRhp','1966824KaaqfR','maka\x20g:kit:m','mui','create','1743577PeVwbm','(((.+)+)+)+$','1549089vhYFbm','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','1598CSjNjQ','96xerIVN','apply','1278065xEYBmy','search'];a113c=function(){return k;};return a113c();}import a113e from'../kit.js';const MuiGen=Generator[a113i(0x18b)]({'name':a113i(0x18a),'aliases':['m'],'usage':a113i(0x18f),'noNeedResource':!![],'shortDesc':a113i(0x198),'validOpts':[''],'isPro':![],'examples':[a113i(0x189)]},async function(){const j=a113i;throw j(0x199);},async function(){},a113e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114n=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=-parseInt(l(0xd7))/0x1+-parseInt(l(0x104))/0x2+-parseInt(l(0xfb))/0x3*(-parseInt(l(0xdb))/0x4)+parseInt(l(0xf8))/0x5+-parseInt(l(0xdf))/0x6*(-parseInt(l(0xf6))/0x7)+-parseInt(l(0xf5))/0x8*(parseInt(l(0xea))/0x9)+-parseInt(l(0x10d))/0xa*(-parseInt(l(0x10e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x62631));const a114b=(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;};}()),a114a=a114b(this,function(){const m=a114d;return a114a[m(0xec)]()[m(0xe3)]('(((.+)+)+)+$')[m(0xec)]()[m(0xff)](a114a)[m(0xe3)](m(0x10a));});a114a();import a114e from'path';import{Generator}from'../generator.js';function a114c(){const q=['layout','import\x20\x27./','fsi','.app-tests.js','template/template.css','fileName','815928aOxUfJ','119gQWdHE','.js','882585TnRMGf','findAppDirectory','checkNpmPackage','3OAwolG','engines','Scaffolding\x20for\x20a\x20React\x20Layout.','true','constructor','installNpmPackage','api','test','react','1057330MMcAJW','resourceName','maka\x20g:l\x20web/safari','theme','getMakaProjectConfig','graphql','(((.+)+)+)+$','withValue','client','18498290Yilysh','11tAGGuW','split','maka\x20g:layout\x20mobile/iPhone8','793043RdkhLR','relative','warn','injectAtBeginningOfFile','1299036jztoyF','features','setTemplate','className','30894xURDda','ssr','withHook','template','search','dir','none','ramda','assign','hook/hook.js','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','63WLgYTX','/imports/ui/layouts','toString','css','withTranslations'];a114c=function(){return q;};return a114c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0xd7;let f=c[d];return f;},a114d(a,b);}Generator['create']({'name':a114n(0xef),'aliases':aliases,'usage':a114n(0xe9),'shortDesc':a114n(0xfd),'validOpts':[],'examples':[a114n(0x110),a114n(0x106)]},async function(a,b){const o=a114n,c=o(0xeb),d=this['fsi'][o(0xf9)](),e=this['fsi']['pathFromApp']({'pathParts':[c,b[o(0xe4)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this['fsi'][o(0x108)]();await this[o(0xf1)][o(0x10b)](f,async()=>{const p=o;typeof f[p(0xe2)][p(0x102)]==='string'&&(f[p(0xe2)][p(0x102)]=f[p(0xe2)][p(0x102)]===p(0xfe)?!![]:![],this['fsi'][p(0xdd)]('test',f[p(0xe2)][p(0x102)]));typeof f[p(0xe2)][p(0xed)]==='string'&&(f[p(0xe2)][p(0xed)]=f[p(0xe2)][p(0xed)]===p(0xfe)?!![]:![],this[p(0xf1)][p(0xdd)](p(0xed),f[p(0xe2)]['css']));typeof f[p(0xe2)]['js']==='string'&&(f['template']['js']=f['template']['js']===p(0xfe)?!![]:![],this[p(0xf1)]['setTemplate']('js',f[p(0xe2)]['js']));!f[p(0xdc)]&&(f[p(0xdc)]={});const g=b['_']?b['_'][0x0][p(0x10f)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[p(0xfa)](p(0xe6))&&(Log[p(0xd9)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[p(0xf1)][p(0x100)](p(0xe6),{'cwd':d}));if(h&&!this[p(0xfa)](p(0x103))){Log['warn']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[p(0x105)]),'myPath':a114e[p(0xd8)](this[p(0xf1)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[p(0x105)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0x105)]),'fileName':paramCase(b[p(0x105)]),'graphql':f[p(0xfc)][p(0x109)],'features':f[p(0xdc)],'client':f[p(0xfc)][p(0x10c)],'api':f[p(0xfc)][p(0x101)],'ssr':f[p(0xfc)][p(0xe0)],'test':f[p(0xfc)][p(0x102)],'theme':f[p(0xfc)][p(0x107)],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0xdc)][p(0xee)]};f['features']?.['withHooks']||b[p(0xe1)]?await this[p(0xf1)][p(0xe2)]({'srcPath':p(0xe8),'destPath':e+p(0xf7),'framework':p(0x103),'context':i,'config':f}):await this[p(0xf1)]['template']({'srcPath':'component/component.js','destPath':e+'.js','framework':'react','context':i,'config':f});f['engines'][p(0x102)]!==p(0xe5)&&await this[p(0xf1)][p(0xe2)]({'srcPath':'test/test.js','destPath':e+p(0xf2),'framework':p(0x103),'context':i,'config':f});f[p(0xe2)][p(0xed)]&&(await this[p(0xf1)][p(0xe2)]({'srcPath':p(0xf3),'destPath':e+'.css','context':Object[p(0xe7)]({},i,{'className':paramCase(b[p(0x105)])}),'config':f}),await this[p(0xf1)][p(0xda)]({'filePath':e+'.'+f['engines']['js'],'content':p(0xf0)+i[p(0xf4)]+'.'+f[p(0xfc)][p(0xed)]+'\x27;'}));const j=b[p(0xe4)]?'/'+b[p(0xe4)]+'/':'/',k=''+c+j+i['fileName']+'/'+i['fileName'];await this[p(0xf1)]['injectTemplateModule'](i[p(0xde)],f,k);});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=parseInt(f(0xf1))/0x1+parseInt(f(0x101))/0x2*(-parseInt(f(0xef))/0x3)+-parseInt(f(0xf0))/0x4+-parseInt(f(0xff))/0x5*(parseInt(f(0xee))/0x6)+-parseInt(f(0xfd))/0x7*(-parseInt(f(0xfa))/0x8)+parseInt(f(0xf9))/0x9*(parseInt(f(0xf8))/0xa)+parseInt(f(0xf7))/0xb*(-parseInt(f(0xeb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xcdcc3));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0xf3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0xf5)]()[h(0xea)]('(((.+)+)+)+$')[h(0xf5)]()[h(0xec)](a115a)[h(0xea)](h(0xfb));});a115a();import{Generator}from'../generator.js';function a115c(){const j=['maka\x20generate:scaffold\x20todos','6wwbsgA','82653sUZhzf','3268928vIjLYK','685949tuzfxr','generate','apply','Scaffold\x20various\x20parts\x20of\x20your\x20application','toString','maka\x20g:scaffold\x20todos','22XAxNvY','5200CqgZcu','25956yzUfDv','310232BoGkeb','(((.+)+)+)+$','maka\x20g:template\x20todos/todo_item','112lkvIdO','maka\x20g:api\x20trucks','3321845VjBZXm','maka\x20g:package\x20package:name','14LdUItr','search','1732128mnsLfZ','constructor'];a115c=function(){return j;};return a115c();}function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xea;let f=c[d];return f;},a115d(a,b);}const MakaGen=new Generator({'name':a115i(0xf2),'aliases':['g'],'usage':'maka\x20{generate,\x20g}:<generator>\x20<name>','validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a115i(0xf4),'examples':[a115i(0xed),a115i(0xf6),a115i(0xfc),a115i(0x100),'maka\x20g:route\x20todos/edit',a115i(0xfe),'maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;
|