@maka/maka-cli 4.8.11 → 4.8.12
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/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 +1 -1
|
@@ -1 +1 @@
|
|
|
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
|
+
const a97v=a97d;function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x13d;let f=c[d];return f;},a97d(a,b);}(function(a,b){const r=a97d,c=a();while(!![]){try{const d=parseInt(r(0x17d))/0x1+-parseInt(r(0x184))/0x2+-parseInt(r(0x1a2))/0x3*(-parseInt(r(0x1a0))/0x4)+parseInt(r(0x185))/0x5+-parseInt(r(0x17b))/0x6*(parseInt(r(0x1ad))/0x7)+parseInt(r(0x19b))/0x8*(parseInt(r(0x1a7))/0x9)+-parseInt(r(0x1ab))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xdc45f));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a97d;if(c){const e=c[s(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const t=a97d;return a97a[t(0x183)]()[t(0x198)](t(0x149))['toString']()[t(0x14d)](a97a)[t(0x198)]('(((.+)+)+)+$');});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';function a97c(){const N=['config','validateMeteorInstall','assign','processAndRunGenerator','validateMakaProject','match','generatorName','history.json','maxOptsLength','function','\x20not\x20found','Generator\x20format\x20is\x20incorrect','push','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','_historyFilePath','apply','localeCompare','search','params','Generator.create\x20requires\x20some\x20options!','261848zBmzoO','.maka','minArgLength','server','Generator.create\x20requires\x20a\x20handler\x20function!','28omdVuG','sep','235401gGRLAD','undo','both','validateMakaSubscription','setColorMode','153pTEldj','pathFromProject','resourceName','No\x20resource\x20name\x20specified','4218660hEmWYB','checkWhere','98CsKLvO','Generator\x20requires\x20a\x20name','tableList','listGenerators','usage','addToHistory','number','findProjectDirectory','message','client','requiredEngines','shift','Generator\x20','cwd','call','length','light','forEach','readHistory','Description','(((.+)+)+)+$','mustBeInMakaProject','_undoHandler','success','constructor','details','writeHistory','stringify','_generators','find','shortDesc','Generators:','list','split','help','handleGenerateError','validateEngines','Too\x20many\x20options','where','opts','error','No\x20undo\x20handler\x20defined\x20for\x20','noNeedResource','name','_handler','Server','create','fsi','pop','Client','notice','minOptsLength','\x20generator.\x20Skipping\x20undo.','Too\x20few\x20arguments','writeFileSync','Alias','Nothing\x20to\x20undo.','map','exit','size','Location','bright','sort','There\x20is\x20no\x20Meteor\x20application\x20here','findGeneratorByName','invoke','join','existsSync','chdir','keys','244722oPnRWh','appPathPrefix','1658113rurncB','dir','options','DARK','statSync','lib','toString','3468828DBBkxe','4328640YOfgMb','warn'];a97c=function(){return N;};return a97c();}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 u=a97d,c=process[u(0x142)]();let d=null;try{process[u(0x179)](a),d=await b();}finally{process[u(0x179)](c);}return d;}export class Generator extends Tool{[a97v(0x17f)];[a97v(0x151)];[a97v(0x195)];[a97v(0x14b)];['_genTransactionId'];constructor(a,b,c){const w=a97v;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(w(0x1ae));if(typeof b!==w(0x190))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this['_generators']=[],this[w(0x17f)]=Object[w(0x189)]({},a),this[w(0x160)]=this[w(0x17f)]['name'],this['_handler']=b['bind'](this);try{this[w(0x195)]=this[w(0x164)][w(0x1a8)]({'pathParts':[w(0x19c),w(0x18e)]})||a97e[w(0x177)]('.','.maka',w(0x18e));}catch(d){Log[w(0x15d)](d);}c&&(this[w(0x14b)]=c['bind'](this));}['getHistoryFileSize'](){const x=a97v;if(a97f[x(0x178)](this[x(0x195)])){const a=a97f[x(0x181)](this[x(0x195)]);return a[x(0x170)];}return 0x0;}['readHistory'](){const y=a97v;if(!a97f[y(0x178)](this[y(0x195)]))return[];return JSON['parse'](a97f['readFileSync'](this[y(0x195)],'utf-8'));}[a97v(0x14f)](a){const z=a97v;this[z(0x195)]&&!a97f[z(0x178)](this[z(0x195)])&&a97f['writeFileSync'](this['_historyFilePath'],JSON[z(0x150)]([])),a97f[z(0x16b)](this[z(0x195)],JSON[z(0x150)](a,null,0x2));}['addToHistory'](a){const A=a97v;try{a?.[A(0x199)]?.[A(0x15c)][A(0x187)]&&delete a[A(0x199)][A(0x15c)]['config'];const b=this[A(0x147)](),c={'generatorName':this['name'],'transactionId':TRANSACTION_ID,'details':a};b[A(0x193)](c);const d=Buffer['from'](JSON[A(0x150)](b))[A(0x144)];while(d>MAX_HISTORY_SIZE&&b[A(0x144)]>0x0){b[A(0x140)]();}this['writeHistory'](b);}catch(f){Log[A(0x15d)](f);}}static[a97v(0x163)](a,b,c,d){const B=a97v;if(!a)throw new Error(B(0x19a));if(typeof b!=='function')throw new Error(B(0x19f));const e=new Generator(a,b);return c&&(e['_undoHandler']=c['bind'](e)),d=d||a97i,Object['assign'](e,{'parent':d?.['options']?.[B(0x160)]}),d['addGenerator'](e),e;}async[a97v(0x1a3)](){const C=a97v,a=this[C(0x147)](),b=a[C(0x165)]();if(!b){Log[C(0x186)](C(0x16d));return;}const c=this[C(0x175)](b[C(0x18d)]);if(!c){Log[C(0x15d)](C(0x141)+b[C(0x18d)]+'\x20not\x20found.\x20Cannot\x20undo.');return;}c[C(0x14b)]?(await c['_undoHandler'](b[C(0x14e)]),this[C(0x14f)](a)):Log['warn'](C(0x15e)+b[C(0x18d)]+C(0x169));}['addGenerator'](a){const D=a97v;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators'][D(0x193)](a);}async[a97v(0x18a)](a,b=[],c={}){const E=a97v;let d;try{const f=a?.['split'](':');if(!f||f[E(0x144)]===0x0)throw E(0x192);let g=this[E(0x151)],h;for(const i of f){h=g[E(0x152)](j=>j[E(0x18c)](i));if(!h)throw E(0x141)+i+E(0x191);await this[E(0x1a5)](h),g=h['_generators'];}if(h)d=await h[E(0x176)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x15d)](j);}return d;}[a97v(0x175)](a){const F=a97v,b=a?.[F(0x156)](':');if(!b||b[F(0x144)]===0x0)return Log[F(0x15d)](F(0x192)),null;let c=this[F(0x151)],d;for(const e of b){d=c[F(0x152)](f=>f[F(0x18c)](e));if(!d)return Log[F(0x15d)]('Generator\x20'+e+F(0x191)),null;c=d[F(0x151)];}return d||null;}async[a97v(0x176)](a,b){const G=a97v,c=a['slice']();b[G(0x1a9)]=c[0x0];try{const d=await this[G(0x164)]['getGlobalConfig'](),f=d['pallet']===G(0x145)?ColorMode['LIGHT']:ColorMode[G(0x180)];Log[G(0x1a6)](f),await this[G(0x1a5)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[G(0x151)][G(0x144)]>=0x0,h=b[G(0x157)]||b['h'];if(g&&h){if(this['_generators'][G(0x144)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][G(0x14a)]){const i=this[G(0x18b)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x17f)]['mustHaveMeteorInstalled']){const j=this[G(0x188)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']===G(0x1b3)){if(a[G(0x144)]<this['options'][G(0x19d)]){Log[G(0x15d)](G(0x16a));throw new UsageError();}}if(typeof this[G(0x17f)]['maxArgLength']==='number'){if(a[G(0x144)]>this[G(0x17f)]['maxArgLength']){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options']['minOptsLength']===G(0x1b3)){if(Object['keys'](b)[G(0x144)]<this['options'][G(0x168)]){Log[G(0x15d)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[G(0x17f)]['maxOptsLength']===G(0x1b3)){if(Object[G(0x17a)](b)[G(0x144)]>=this['options'][G(0x18f)]){Log[G(0x15d)](G(0x15a));throw new UsageError();}}}this[G(0x17f)][G(0x13f)]&&this[G(0x159)](this['options'][G(0x13f)]);await this['validateParams'](a,b,this[G(0x17f)]);if(!b[G(0x1a9)]&&!this['options'][G(0x15f)]){Log[G(0x15d)](G(0x1aa));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process[G(0x16f)](0x1);}return await inside(b[G(0x142)],async()=>{const H=G;try{if(!b['root']&&!this[H(0x164)][H(0x1b4)]())throw new MustBeInProjectError();const l=b['resourceName']?.['replace'](/\\/g,'/')[H(0x156)]('/');!b[H(0x17e)]&&(l?.[H(0x144)]>0x1?(b[H(0x1a9)]=l[H(0x165)](),c[0x0]=b['resourceName'],b[H(0x17e)]=l[H(0x16e)](n=>{return paramCase(n);})[H(0x177)](a97e[H(0x1a1)])):b['dir']='');if(this[H(0x17f)][H(0x1ac)]){if(!b[H(0x15b)]){const o={'type':H(0x155),'name':'colLocAnswer','message':H(0x171),'choices':[{'name':H(0x166),'value':H(0x13e)},{'name':H(0x162),'value':H(0x19e)},{'name':'Both','value':H(0x1a4)}]},{colLocAnswer:p}=await Actions[H(0x17f)](o);p?b['where']=p:b[H(0x15b)]=H(0x1a4);}const n=[H(0x1a4),H(0x13e),H(0x19e)];if(!n['includes'](b[H(0x15b)])){Log[H(0x15d)](H(0x194));throw new UsageError();}switch(b[H(0x15b)]){case H(0x1a4):b['appPathPrefix']=H(0x182);break;case H(0x19e):b[H(0x17c)]=H(0x19e);break;case H(0x13e):b[H(0x17c)]=H(0x13e);break;default:b[H(0x17c)]='';}}const m=await this[H(0x161)][H(0x143)](this,c,b);return this[H(0x1b2)]({'params':{'args':c,'opts':this[H(0x164)]['deepen'](b)},'success':m?.[H(0x14c)],'message':m?.[H(0x13d)],'details':m?.[H(0x14e)]}),m;}catch(q){this['handleGenerateError'](q);}});}[a97v(0x1b0)](){const I=a97v;this[I(0x1af)](this['_generators']);}[a97v(0x158)](a){const J=a97v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[J(0x17f)];Log[J(0x1b1)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0x167)](J(0x154)),this['tableList'](this[J(0x151)]);else{if(a instanceof MustBeInProjectError)Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0x167)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[J(0x15d)](J(0x174));}}}['tableList'](a){const K=a97v,b=new a97g({});b[K(0x193)](['Name',K(0x16c),K(0x148)]),a[K(0x173)]((c,d)=>{const L=K;return c[L(0x160)][L(0x197)](d[L(0x160)]);})[K(0x146)](c=>{const M=K;b[M(0x193)]([c['name'],c['aliases'](),c[M(0x153)]()]);}),Log[K(0x172)](b[K(0x183)]());}}
|
|
@@ -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(0x1db))/0x1*(-parseInt(f(0x1e6))/0x2)+-parseInt(f(0x1e7))/0x3*(-parseInt(f(0x1da))/0x4)+-parseInt(f(0x1e8))/0x5*(parseInt(f(0x1e1))/0x6)+parseInt(f(0x1d9))/0x7*(-parseInt(f(0x1de))/0x8)+-parseInt(f(0x1e5))/0x9+-parseInt(f(0x1d8))/0xa+-parseInt(f(0x1e0))/0xb*(-parseInt(f(0x1e4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x36be6));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a['toString']()[h(0x1dc)](h(0x1e2))[h(0x1e3)]()[h(0x1df)](a98a)[h(0x1dc)]('(((.+)+)+)+$');});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 a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x1d8;var f=c[d];return f;},a98d(a,b);}import'./layout.js';import'./methods.js';import'./package.js';function a98c(){var i=['1336720dsrCEn','21uNMhOj','450652IMHnFw','88318QubFGJ','search','apply','373872WOCsFs','constructor','6941UPfjnK','18yRNylV','(((.+)+)+)+$','toString','15396pgxQWX','2995092ZobDFK','4BqjpKX','9TWlNId','233390csXnWO'];a98c=function(){return i;};return a98c();}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 a99x=a99d;function a99c(){const A=['
|
|
1
|
+
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x114;let f=c[d];return f;},a99d(a,b);}const a99x=a99d;(function(a,b){const u=a99d,c=a();while(!![]){try{const d=-parseInt(u(0x12c))/0x1+parseInt(u(0x130))/0x2+-parseInt(u(0x146))/0x3+parseInt(u(0x135))/0x4+parseInt(u(0x136))/0x5+parseInt(u(0x142))/0x6+parseInt(u(0x116))/0x7*(-parseInt(u(0x15e))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xb74a1));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0x164)]()[w(0x126)]('(((.+)+)+)+$')['toString']()['constructor'](a99a)[w(0x126)](w(0x168));});function a99c(){const A=['import\x20\x27./register-','withMethods','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','Fixtures','collection','getMakaProjectConfig','resolverList.push(','withPubs','error','mdg:validated-method','processAndRunGenerator','withGql','/graphql/resolvers','GraphQL','search','startup','test','/imports/api','-api.','api/resolvers.js','213675BcfzoR','\x0aimport\x20{\x20resolvers\x20as\x20','length','index.','2606800xNyZcT','api/fixtures.js','API\x20boundaries\x20to\x20create','register-','typeList.push(','5254880PJVxzL','2750800UqIuak','api/methods.js','const','api/typeDefs.js','.app-tests.','ddp-rate-limiter','apply','template','injectIntoFile','imports','push','checkbox','7442508YNULbH','TypeDefs\x20}\x20from\x20\x27','dir','\x27;\x0a','2140962FSfwES','Publications','publications.','RPC\x20(Methods)','REST\x20API','-api\x27;','api','if\x20\x5c(typeList','pathFromApp','rewriteDestinationPathForEngine','graphql','api/api.js','withRest','injectAtBeginningOfFile','engines','injectAtEndOfFile','resourceName','rest','rest-api.','maka:rest','fsi','create','apollo','Resolvers\x20}\x20from\x20\x27','23944XAMTAi','maka\x20g:api\x20Todos','\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','No\x20API\x20boundaries\x20selected','/graphql/typeDefs','server','toString','withValue','includes','withFixtures','(((.+)+)+)+$','Resolvers);\x0a\x0a','maka:check','import\x20{\x20typeDefs\x20as\x20','6384BDHSzH','exit'];a99c=function(){return A;};return a99c();}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(0x15b)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a99x(0x11a),'validOpts':[a99x(0x144)],'examples':[a99x(0x15f)],'description':a99x(0x160)},async function(a,b){const y=a99x;try{const c=this[y(0x15a)][y(0x11d)](),d=[{'name':y(0x149),'value':y(0x119)},{'name':y(0x11b),'value':y(0x167)},{'name':y(0x147),'value':y(0x11f)}];c[y(0x154)]['api']===y(0x157)&&d[y(0x140)]({'name':y(0x14a),'value':'withRest'});c['engines'][y(0x150)]===y(0x15c)&&d[y(0x140)]({'name':y(0x125),'value':y(0x123)});const f={'type':y(0x141),'name':'apiAnswers','message':y(0x132),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[y(0x12e)]===0x0&&(Log[y(0x120)](y(0x161)),process[y(0x117)](0x1)),await this[y(0x15a)][y(0x165)](c,async()=>{const z=y,h=b[z(0x156)],i=paramCase(h),j=camelCase(h),k=b['dir']?'/'+b[z(0x144)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0x154)]['api'],'graphql':c[z(0x154)][z(0x150)],'test':c[z(0x154)][z(0x128)],'noRename':!![],'withPubs':g[z(0x166)](z(0x11f)),'withFixtures':g['includes'](z(0x167)),'withMethods':g[z(0x166)](z(0x119)),'withRest':g['includes'](z(0x152))};let m='js';c[z(0x154)]['js']==='tsx'&&(m='ts');await this[z(0x15a)]['checkMeteorPackage']([z(0x159),z(0x114),z(0x13b),z(0x121),'mongo'],{'shouldInstall':!![]}),await a99e[z(0x122)](z(0x11c),[i],{'config':c,'where':z(0x163)});c[z(0x154)][z(0x14c)]===z(0x157)&&(l[z(0x152)]&&await this[z(0x15a)][z(0x13d)]({'srcPath':z(0x151),'destPath':this['fsi']['pathFromApp']({'pathParts':[z(0x13f),z(0x14c),b[z(0x144)],i,z(0x158)+m]}),'context':l,'config':c}));l[z(0x119)]&&await this['fsi'][z(0x13d)]({'srcPath':z(0x137),'destPath':this[z(0x15a)]['pathFromApp']({'pathParts':[z(0x13f),'api',b['dir'],i,'rpc-methods.'+m]}),'context':l,'config':c});l[z(0x167)]&&await this['fsi'][z(0x13d)]({'srcPath':z(0x131),'destPath':this[z(0x15a)][z(0x14e)]({'pathParts':[z(0x13f),z(0x14c),b[z(0x144)],i,'fixtures.'+m]}),'context':l,'config':c});c[z(0x154)]['test']!=='none'&&this[z(0x15a)]['template']({'srcPath':'api/tests.js','destPath':this['fsi'][z(0x14e)]({'pathParts':[z(0x13f),z(0x14c),b[z(0x144)],i,i+z(0x13a)+m]}),'context':l,'config':c});l[z(0x11f)]&&await this[z(0x15a)][z(0x13d)]({'srcPath':'api/publications.js','destPath':this[z(0x15a)]['pathFromApp']({'pathParts':['imports',z(0x14c),b['dir'],i,z(0x148)+m]}),'context':l,'config':c});if(c[z(0x154)][z(0x150)]===z(0x15c)){if(g[z(0x166)](z(0x123))){const o=this[z(0x15a)]['pathFromApp']({'pathParts':['imports','startup',z(0x163),'index.'+c[z(0x154)]['js']]}),p=this[z(0x15a)][z(0x14f)]({'pathParts':[o],'config':c}),q=this[z(0x15a)][z(0x14e)]({'pathParts':[z(0x13f),z(0x14c),b[z(0x144)],i,z(0x150),'typeDefs.'+m]}),r='/imports/api'+k+i+z(0x162);this[z(0x15a)][z(0x13d)]({'srcPath':z(0x139),'destPath':q,'context':l,'config':c}),await this[z(0x15a)]['injectAtBeginningOfFile']({'filePath':p,'content':z(0x115)+j+z(0x143)+r+z(0x145)}),await this[z(0x15a)][z(0x13e)]({'filePath':p,'content':z(0x134)+j+'TypeDefs);\x0a','begin':z(0x138),'end':z(0x14d)});const s=this[z(0x15a)][z(0x14e)]({'pathParts':[z(0x13f),z(0x14c),b[z(0x144)],i,'graphql','resolvers.'+m]}),t=z(0x129)+k+i+z(0x124);await this[z(0x15a)][z(0x13d)]({'srcPath':z(0x12b),'destPath':s,'context':l,'config':c}),await this['fsi'][z(0x153)]({'filePath':p,'content':z(0x12d)+j+z(0x15d)+t+'\x27;'}),await this[z(0x15a)]['injectIntoFile']({'filePath':p,'content':z(0x11e)+j+z(0x169),'begin':z(0x138),'end':z(0x14d)});}}await this['fsi'][z(0x13d)]({'srcPath':'api/register-api.js','destPath':this[z(0x15a)][z(0x14e)]({'pathParts':[z(0x13f),z(0x127),'server',z(0x133)+i+z(0x12a)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x15a)][z(0x14e)]({'pathParts':[z(0x13f),'startup',z(0x163),z(0x12f)+c[z(0x154)]['js']]});await this[z(0x15a)][z(0x155)]({'filePath':n,'content':z(0x118)+i+z(0x14b)});});}catch(h){console[y(0x120)](h),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x15c;let f=c[d];return f;},a100d(a,b);}const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0x181))/0x1+-parseInt(j(0x17e))/0x2*(parseInt(j(0x179))/0x3)+-parseInt(j(0x174))/0x4+parseInt(j(0x177))/0x5*(parseInt(j(0x166))/0x6)+parseInt(j(0x16a))/0x7*(parseInt(j(0x17b))/0x8)+-parseInt(j(0x16d))/0x9*(-parseInt(j(0x172))/0xa)+parseInt(j(0x16c))/0xb*(parseInt(j(0x176))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xd4520));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a['toString']()['search'](l(0x161))[l(0x17f)]()[l(0x16b)](a100a)[l(0x165)]('(((.+)+)+)+$');});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a100c(){const p=['collection/tests.js','fsi','10opDFsX','engines','6614392ECPuyn','index.','12YtfxSd','2847775SVxxxv','tsx','1286211UNtegA','appPathPrefix','592iySKuH','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','getMakaProjectConfig','2xJQahw','toString','collection/collection.js','240672ptFpIH','resourceName','dir','imports','template','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','injectAtEndOfFile','.app-tests.','startup','apply','(((.+)+)+)+$','mongo','maka:check','pathFromApp','search','6ihCdDc','test','where','collections','107821HaOCau','constructor','13832181SGDOoC','2032407prQdIg','withValue','checkMeteorPackage'];a100c=function(){return p;};return a100c();}Generator['create']({'name':'collection','aliases':['col'],'usage':a100m(0x17c),'checkWhere':!![],'shortDesc':a100m(0x15c),'validOpts':['dir','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':['maka\x20g:collection\x20todos']},async function(a,b){const n=a100m;try{const c=this[n(0x171)][n(0x17d)]();await this[n(0x171)][n(0x16e)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':pascalCase(b[o(0x182)]),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b[o(0x168)],'test':c[o(0x173)][o(0x167)],'noRename':!![]};let g='js';c[o(0x173)]['js']===o(0x178)&&(g='ts');await this[o(0x171)][o(0x16f)]([o(0x162),o(0x163)],{'shouldInstall':!![]}),await this[o(0x171)][o(0x185)]({'srcPath':o(0x180),'destPath':this[o(0x171)][o(0x164)]({'pathParts':[o(0x184),o(0x15f),b[o(0x17a)],o(0x169),b['dir'],d+'.'+g]}),'context':f,'config':c});c[o(0x173)][o(0x167)]!=='none'&&await this[o(0x171)][o(0x185)]({'srcPath':o(0x170),'destPath':this['fsi'][o(0x164)]({'pathParts':['imports',o(0x15f),b[o(0x17a)],'collections',b[o(0x183)],d+o(0x15e)+g]}),'context':f,'config':c});const h=b[o(0x183)]?'/'+b[o(0x183)]+'/':'/',i=this[o(0x171)]['pathFromApp']({'pathParts':[o(0x184),'startup',b['appPathPrefix'],o(0x175)+c[o(0x173)]['js']]});await this[o(0x171)][o(0x15d)]({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=-parseInt(k(0xa7))/0x1+-parseInt(k(0xa9))/0x2+-parseInt(k(0xa3))/0x3*(parseInt(k(0xb2))/0x4)+parseInt(k(0xae))/0x5+parseInt(k(0xbd))/0x6+parseInt(k(0x9a))/0x7*(-parseInt(k(0xad))/0x8)+parseInt(k(0x96))/0x9*(parseInt(k(0x9f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x6e482));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a101d;if(c){const e=c[l(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const m=a101d;return a101a['toString']()[m(0xaa)](m(0xa0))[m(0xb1)]()[m(0xbf)](a101a)[m(0xaa)]('(((.+)+)+)+$');});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a101c(){const q=['1427664ItBCpp','.css','constructor','apply','.js','features','findAppDirectory','checkNpmPackage','react','installNpmPackage','css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','api','.tests.js','/imports/ui/','maka\x20g:comp\x20todos/todos-item','none','baseDir','350586ePbxfR','fsi','ssr','engines','3825227JIQXeq','injectAtBeginningOfFile','relative','template/template.css','comp','570uwiUcs','(((.+)+)+)+$','component/component.js','/imports/ui/components','153ITgSCC','ramda','setTemplate','withTranslations','777534cDooNj','component','215698GPbOIV','search','cssCaseName','components','8XztvrE','660225wDqSMX','string','import\x20\x27./','toString','55436pZLFdX','fileName','pathFromProject','resourceName','root','client','true','test/test.js','template','test','dir'];a101c=function(){return q;};return a101c();}import{Log}from'../tools/log/log.class.js';const aliases=[a101n(0x9e)];function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x95;let f=c[d];return f;},a101d(a,b);}Generator['create']({'name':a101n(0xa8),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a101n(0x95),'values':['hooks',a101n(0xac),'pages','layouts']}],'examples':[a101n(0xcc)]},async function(a,b){const o=a101n;try{const c=this['fsi'][o(0xc3)](),d=b[o(0x95)]?o(0xcb)+b[o(0x95)]:o(0xa2),f=this['fsi']['pathFromApp']({'pathParts':[d,b['dir'],paramCase(b[o(0xb5)]),paramCase(b[o(0xb5)])]}),g=await this[o(0x97)]['getMakaProjectConfig']();await this['fsi']['withValue'](g,async()=>{const p=o;typeof g['template'][p(0xbb)]==='string'&&(g[p(0xba)][p(0xbb)]=g[p(0xba)][p(0xbb)]===p(0xb8)?!![]:![],this['fsi'][p(0xa5)](p(0xbb),g['template']['test']));typeof g[p(0xba)][p(0xc7)]===p(0xaf)&&(g[p(0xba)][p(0xc7)]=g[p(0xba)][p(0xc7)]==='true'?!![]:![],this[p(0x97)][p(0xa5)](p(0xc7),g[p(0xba)]['css']));typeof g[p(0xba)]['js']===p(0xaf)&&(g['template']['js']=g[p(0xba)]['js']===p(0xb8)?!![]:![],this[p(0x97)][p(0xa5)]('js',g[p(0xba)]['js']));!g[p(0xc2)]&&(g[p(0xc2)]={});!b[p(0xb6)]&&!this['fsi'][p(0xc4)](p(0xa4))&&(Log['warn'](p(0xc8)),await this[p(0x97)][p(0xc6)](p(0xa4),{'cwd':c}));if(!b[p(0xb6)]&&!this[p(0x97)][p(0xc4)](p(0xc5))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[p(0xb5)]),'myPath':a101e[p(0x9c)](this[p(0x97)][p(0xb4)]({}),f),'cssCaseName':paramCase(b[p(0xb5)]),'className':pascalCase(b[p(0xb5)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':g[p(0x99)]['graphql'],'features':g[p(0xc2)],'client':g[p(0x99)][p(0xb7)],'api':g[p(0x99)][p(0xc9)],'ssr':g[p(0x99)][p(0x98)],'test':g[p(0x99)][p(0xbb)],'theme':g[p(0x99)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][p(0xa6)]};await this[p(0x97)][p(0xba)]({'srcPath':p(0xa1),'destPath':f+p(0xc1),'context':h,'framework':p(0xc5),'config':g});g['engines'][p(0xbb)]!==p(0xcd)&&await this['fsi'][p(0xba)]({'srcPath':p(0xb9),'destPath':f+p(0xca),'context':h,'framework':p(0xc5),'config':g});g['template'][p(0xc7)]&&(await this['fsi']['template']({'srcPath':p(0x9d),'destPath':f+p(0xbe),'context':Object['assign']({},h,{'className':paramCase(b[p(0xb5)])}),'config':g}),await this[p(0x97)][p(0x9b)]({'filePath':f+'.'+g[p(0x99)]['js'],'content':p(0xb0)+h[p(0xab)]+'.'+g[p(0x99)]['css']+'\x27;'}));const i=b[p(0xbc)]?'/'+b[p(0xbc)]+'/':'/',j=''+d+i+h[p(0xb3)]+'/'+h['fileName'];await this[p(0x97)]['injectTemplateModule'](h['className'],g,j);});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1be;let f=c[d];return f;},a102d(a,b);}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x1c8))/0x1+-parseInt(h(0x1cb))/0x2+-parseInt(h(0x1c0))/0x3+-parseInt(h(0x1d7))/0x4*(parseInt(h(0x1d9))/0x5)+-parseInt(h(0x1cc))/0x6+parseInt(h(0x1dc))/0x7*(-parseInt(h(0x1d6))/0x8)+-parseInt(h(0x1da))/0x9*(-parseInt(h(0x1dd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x4ca2a));function a102c(){const n=['pathFromProject','prod','70045nWZnsv','(((.+)+)+)+$','toString','710256kOQiRF','236400HGylnk','ubuntu','appName','config/process.env','constructor','production','settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','fsi','withValue','768tSAJuW','1756VMjFBV','create','5260hdJDGm','22464kKjLUk','resourceName','29995gGNyIx','7290RHLOPC','getMakaProjectConfig','config','924045QJdhVR','template','isDocker','Generate\x20configuration\x20settings.','search','apply'];a102c=function(){return n;};return a102c();}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x1ca)]()['search'](j(0x1c9))['toString']()[j(0x1d0)](a102a)[j(0x1c4)]('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x1d8)]({'name':'config','usage':a102k(0x1d3),'shortDesc':a102k(0x1c3),'validOpts':['isDocker'],'examples':['maka\x20g:config\x20production']},async function(a,b){const l=a102k,c=this[l(0x1d4)][l(0x1be)]();await this[l(0x1d4)][l(0x1d5)](c,async()=>{const m=l,d={'app':c[m(0x1ce)],'appFileCase':paramCase(c[m(0x1ce)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x1db)]),'camelCase':camelCase(b[m(0x1db)]),'userName':m(0x1cd),'isDocker':b[m(0x1c2)]};let e=b[m(0x1db)];if(e==='dev')e='development';else e===m(0x1c7)&&(e=m(0x1d1));const f=this['fsi'][m(0x1c6)]({'pathParts':[m(0x1bf),e,m(0x1d2)]});await this[m(0x1d4)][m(0x1c1)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1d4)][m(0x1c6)]({'pathParts':[m(0x1bf),e,'process.env']});await this[m(0x1d4)][m(0x1c1)]({'srcPath':m(0x1cf),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a103d(a,b);}const a103l=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0x1de))/0x1*(-parseInt(j(0x1c5))/0x2)+-parseInt(j(0x1c3))/0x3+-parseInt(j(0x1d1))/0x4*(-parseInt(j(0x1d5))/0x5)+-parseInt(j(0x1cf))/0x6*(-parseInt(j(0x1df))/0x7)+-parseInt(j(0x1c8))/0x8+-parseInt(j(0x1d4))/0x9+parseInt(j(0x1d2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x65c41));const a103b=(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;};}()),a103a=a103b(this,function(){const k=a103d;return a103a['toString']()['search'](k(0x1cc))['toString']()[k(0x1ca)](a103a)[k(0x1c9)](k(0x1cc));});a103a();function a103c(){const o=['dir','config.','pgsql','better-sqlite3','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','47LyOybm','176197oSBYVN','startup','checkNpmPackage','-dbc\x27;','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20azure\x20--type=mssql','withValue','engines','-dbc.','import\x20\x27./register-','maka\x20g:dbc\x20geoserver\x20--type=pgsql','fsi','template','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','sqlite','maka\x20g:dbc\x20todos\x20--type=sqlite','pathFromApp','dbc/config.js','warn','type','getMakaProjectConfig','627597glyTPD','dbc/register-dbc.js','3190ITPFmL','server','dbc','5130232CGWGYU','search','constructor','imports','(((.+)+)+)+$','installNpmPackage','resourceName','24cQtaWF','mssql','1088364uTbqFS','8130140jPyLZP','register-','1040436SrltZl','10ZRklcz','index.','injectAtEndOfFile','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'];a103c=function(){return o;};return a103c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a103l(0x1c7),'usage':a103l(0x1dd),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a103l(0x1d9)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103l(0x1c1),'values':[a103l(0x1db),a103l(0x1d0),a103l(0x1bc)]}],'examples':[a103l(0x1b8),a103l(0x1e4),a103l(0x1bd)]},async function(a,b){const m=a103l;try{const c=await this[m(0x1b9)][m(0x1c2)](),d=this[m(0x1b9)][m(0x1be)]({}),f=paramCase(b[m(0x1ce)]),g={'name':pascalCase(b[m(0x1ce)]),'fileName':paramCase(b[m(0x1ce)]),'camelCase':camelCase(b[m(0x1ce)]),'type':b[m(0x1c1)],'engine':c[m(0x1b5)]['js'],'noRename':!![]};await this['fsi'][m(0x1e5)](c,async()=>{const n=m;let h='js';c['engines']['js']==='tsx'&&(h='ts');b[n(0x1c1)]===n(0x1db)&&!this['fsi'][n(0x1e1)]('pg')&&(Log[n(0x1c0)](n(0x1bb)),await this['fsi'][n(0x1cd)]('pg',{'cwd':d}));b[n(0x1c1)]==='mssql'&&!this[n(0x1b9)][n(0x1e1)]('mssql')&&(Log[n(0x1c0)](n(0x1e3)),await this[n(0x1b9)][n(0x1cd)](n(0x1d0),{'cwd':d}));b[n(0x1c1)]==='sqlite'&&!this[n(0x1b9)][n(0x1e1)](n(0x1dc))&&(Log[n(0x1c0)](n(0x1d8)),await this[n(0x1b9)][n(0x1cd)](n(0x1dc),{'cwd':d}));await this[n(0x1b9)]['template']({'srcPath':n(0x1bf),'destPath':this[n(0x1b9)][n(0x1be)]({'pathParts':[n(0x1cb),n(0x1e0),n(0x1c6),n(0x1c7),b[n(0x1d9)],f,n(0x1da)+h]}),'context':g,'config':c}),await this[n(0x1b9)][n(0x1ba)]({'srcPath':'dbc/conn.js','destPath':this[n(0x1b9)][n(0x1be)]({'pathParts':[n(0x1cb),'startup','server',n(0x1c7),b['dir'],f,'conn.'+h]}),'context':g,'config':c}),await this['fsi'][n(0x1ba)]({'srcPath':n(0x1c4),'destPath':this[n(0x1b9)][n(0x1be)]({'pathParts':['imports',n(0x1e0),'server',n(0x1d3)+f+n(0x1b6)+h]}),'context':g,'config':c});const i=this[n(0x1b9)][n(0x1be)]({'pathParts':[n(0x1cb),n(0x1e0),n(0x1c6),n(0x1d6)+c[n(0x1b5)]['js']]});await this['fsi'][n(0x1d7)]({'filePath':i,'content':n(0x1b7)+f+n(0x1e2)});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a104c(){const l=['(((.+)+)+)+$','create','dockerfile','10301632dBdNQI','findProjectDirectory','1864458OrIAXV','154686YoeKoS','39201yHhtve','toString','service','maka\x20g:dockerfile','appName','getGlobalConfig','1426254VoBots','app.tar.gz','withValue','cert','Dockerfile','6471206YXmiHU','Generate\x20an\x20updated\x20dockerfile','app','132cwBiNR','build','template','fsi','apply','getMakaProjectConfig','maka\x20{generate,\x20g}:dockerfile','error','1822515YlijfZ','search'];a104c=function(){return l;};return a104c();}const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x1a4))/0x1+-parseInt(f(0x18c))/0x2+parseInt(f(0x1a5))/0x3*(-parseInt(f(0x194))/0x4)+-parseInt(f(0x19c))/0x5+-parseInt(f(0x1a3))/0x6+parseInt(f(0x191))/0x7+parseInt(f(0x1a1))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x859c0));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1a6)]()[h(0x19d)](h(0x19e))[h(0x1a6)]()['constructor'](a104a)[h(0x19d)](h(0x19e));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x189;let f=c[d];return f;},a104d(a,b);}a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0x19f)]({'name':a104i(0x1a0),'usage':a104i(0x19a),'shortDesc':a104i(0x192),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x189)]},async function(){const j=a104i;try{const a=await this[j(0x197)][j(0x199)](),b=await this[j(0x197)][j(0x18b)](),c=this[j(0x197)][j(0x1a2)]();await this[j(0x197)][j(0x18e)](a,async()=>{const k=j,d={'app':b[k(0x18a)],'config':a,'appPath':a104e['join'](c,k(0x193)),'bundlePath':a104e['join'](c,k(0x195),k(0x18d)),'useCert':this[k(0x197)]['isFile'](b[k(0x18f)])};await this[k(0x197)][k(0x196)]({'srcPath':'docker/Dockerfile','destPath':a104e['join'](c,k(0x190)),'framework':k(0x1a7),'context':d,'config':a});});}catch(d){Log[j(0x19b)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105o=a105d;function
|
|
1
|
+
const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=parseInt(l(0x118))/0x1+-parseInt(l(0x106))/0x2+parseInt(l(0x12a))/0x3+-parseInt(l(0x109))/0x4*(parseInt(l(0x11d))/0x5)+-parseInt(l(0xf6))/0x6+parseInt(l(0x105))/0x7+parseInt(l(0x112))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x5bd40));function a105c(){const r=['2865564beHVSb','className','cssCaseName','installNpmPackage','error','.css','assign','test/test.js','dir','layouts','pathFromApp','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','constructor','/imports/ui/','true','71512tGVRgp','773946zqavzL','components','pages','84448nUBTCu','create','getMakaProjectConfig','import\x20\x27./','/imports/ui/hooks','setTemplate','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','injectAtBeginningOfFile','relative','4224112HJKyEY','baseDir','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','hook','engines','apollo','598986BiNNdz','apply','theme','.app-tests.js','fileName','15tbVREL','@apollo/client','template/template.css','test','Creating\x20','features','(((.+)+)+)+$','\x20hook...','fsi','toString','search','css','resourceName','500445PtEsBl','checkNpmPackage','string','force','react','template','withTranslations'];a105c=function(){return r;};return a105c();}const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x126)]()[n(0x127)](n(0x123))['toString']()[n(0x102)](a105a)[n(0x127)]('(((.+)+)+)+$');});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xf4;let f=c[d];return f;},a105d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105o(0x10a)]({'name':a105o(0x115),'aliases':['h'],'checkWhere':![],'usage':a105o(0x101),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':'baseDir','values':['hooks',a105o(0x107),a105o(0x108),a105o(0xff)]},{'name':a105o(0x12d),'boolFlag':!![]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':'\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'},async function(a,b){const p=a105o;Log['notice'](p(0x121)+b[p(0x129)]+p(0x124));try{const c=this[p(0x125)]['checkNpmPackage'](p(0x12e));if(!c){Log[p(0xfa)](p(0x10f));throw new UsageError();}const d=this[p(0x125)][p(0x100)](b),f=b[p(0x113)]?p(0x103)+b[p(0x113)]:p(0x10d),g=this['fsi'][p(0x100)]({'pathParts':[f,b['dir'],paramCase(b[p(0x129)]),paramCase(b['resourceName'])]}),h=await this[p(0x125)][p(0x10b)]();await this[p(0x125)]['withValue'](h,async()=>{const q=p;typeof h[q(0xf4)][q(0x128)]===q(0x12c)&&(h[q(0xf4)]['css']=h[q(0xf4)][q(0x128)]===q(0x104)?!![]:![],this[q(0x125)][q(0x10e)](q(0x128),h[q(0xf4)][q(0x128)]));h[q(0x116)]['graphql']===q(0x117)&&!this[q(0x125)][q(0x12b)](q(0x11e))&&(Log['warn'](q(0x114)),await this['fsi'][q(0xf9)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x129)]),'camelCaseName':camelCase(b[q(0x129)]),'className':pascalCase(b[q(0x129)]),'name':pascalCase(b['resourceName']),'graphql':h[q(0x116)]['graphql'],'theme':h[q(0x116)][q(0x11a)],'features':h[q(0x122)],'myPath':a105e[q(0x111)](this[q(0x125)]['pathFromProject']({}),g),'fileName':paramCase(b[q(0x129)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][q(0xf5)]};await this[q(0x125)]['template']({'srcPath':'hook/hook.js','destPath':g+'.js','context':i,'config':h,'framework':q(0x12e),'force':b[q(0x12d)]});h['template'][q(0x128)]&&(await this[q(0x125)][q(0xf4)]({'srcPath':q(0x11f),'destPath':g+q(0xfb),'context':Object[q(0xfc)]({},i,{'className':i[q(0xf8)]}),'config':h,'force':b[q(0x12d)]}),await this[q(0x125)][q(0x110)]({'filePath':g+'.'+h[q(0x116)]['js'],'content':q(0x10c)+i[q(0x11c)]+'.'+h[q(0x116)][q(0x128)]+'\x27;'}));h[q(0x116)][q(0x120)]!=='none'&&await this[q(0x125)]['template']({'srcPath':q(0xfd),'destPath':g+q(0x11b),'framework':q(0x12e),'context':i,'config':h,'force':b[q(0x12d)]});const j=b[q(0xfe)]?'/'+b[q(0xfe)]+'/':'/',k=''+f+j+i[q(0x11c)]+'/'+i[q(0x11c)];await this[q(0x125)]['injectTemplateModule'](i[q(0xf7)],h,k);});}catch(i){Log['error'](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(0x143))/0x1+parseInt(f(0x13f))/0x2+-parseInt(f(0x145))/0x3*(-parseInt(f(0x13d))/0x4)+-parseInt(f(0x144))/0x5+parseInt(f(0x138))/0x6+parseInt(f(0x140))/0x7*(-parseInt(f(0x13e))/0x8)+parseInt(f(0x13c))/0x9*(-parseInt(f(0x13b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x4f9df));var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()[h(0x141)](h(0x139))['toString']()[h(0x142)](a106a)['search'](h(0x139));});a106a();function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x138;var f=c[d];return f;},a106d(a,b);}import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';function a106c(){var i=['20993DKMNXt','search','constructor','390846NaXphr','2645675bBFNzA','1614LyJBfn','3152820BaEmwc','(((.+)+)+)+$','apply','10uPDnGZ','8894403EWEsBg','2292fmVObT','40gzgzFP','1267836jqILEa'];a106c=function(){return i;};return a106c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a107d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=-parseInt(f(0xf3))/0x1*(parseInt(f(0xe6))/0x2)+parseInt(f(0xf4))/0x3*(-parseInt(f(0xef))/0x4)+-parseInt(f(0xf5))/0x5+parseInt(f(0xe9))/0x6*(-parseInt(f(0xe7))/0x7)+parseInt(f(0xf0))/0x8+-parseInt(f(0xf2))/0x9*(-parseInt(f(0xf6))/0xa)+parseInt(f(0xeb))/0xb*(parseInt(f(0xf1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xf24aa));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(0xed)]()[h(0xea)](h(0xee))[h(0xed)]()[h(0xe8)](a107a)[h(0xea)]('(((.+)+)+)+$');});function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0xe6;var f=c[d];return f;},a107d(a,b);}a107a();import'./esri.generator.js';import'./map.esri.gen.js';function a107c(){var i=['420tdFwtU','1447533peLdin','146554UajmHm','6icaQNh','2742970TMZviK','40PeajgJ','2kCGbis','2040766FizRMs','constructor','30wQlnCg','search','402523cOKsjr','apply','toString','(((.+)+)+)+$','765764XKcERl','12832344cxCLke'];a107c=function(){return i;};return a107c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0xad))/0x1+parseInt(f(0xb6))/0x2+parseInt(f(0xb9))/0x3+-parseInt(f(0xb2))/0x4+parseInt(f(0xaf))/0x5*(parseInt(f(0xbb))/0x6)+parseInt(f(0xb3))/0x7+-parseInt(f(0xae))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x19c5c));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0xb8)]()['search'](h(0xba))[h(0xb8)]()['constructor'](a108a)[h(0xb5)](h(0xba));});a108a();function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xad;let f=c[d];return f;},a108d(a,b);}import{Generator}from'../../../generator.js';function a108c(){const k=['2934BTDuyA','apply','maka\x20g:kit:e','/foo/bar','/foo','92840TOAjIT','2248312FLvlWI','1205VJWdbr','esri','\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','322032NhIaKA','360724CJmGcZ','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','search','404990vsNYnU','Esri\x20Kit\x20generated\x20successfully','toString','564225gYEHGo','(((.+)+)+)+$'];a108c=function(){return k;};return a108c();}import a108e from'../kit.js';const EsriGen=Generator['create']({'name':a108i(0xb0),'aliases':['e'],'usage':a108i(0xb4),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20Esri\x20Maps','validOpts':[''],'isPro':!![],'examples':[a108i(0xbd)],'description':a108i(0xb1)},async function(){const j=a108i;return{'success':!![],'message':j(0xb7),'details':{'filesCreated':[j(0xbe)],'filesUpdated':[j(0xbf)]}};},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(0xd1))/0x1*(parseInt(p(0xc9))/0x2)+parseInt(p(0xa7))/0x3+-parseInt(p(0xbe))/0x4*(-parseInt(p(0xad))/0x5)+-parseInt(p(0xce))/0x6*(-parseInt(p(0xae))/0x7)+-parseInt(p(0xd3))/0x8*(parseInt(p(0xc6))/0x9)+-parseInt(p(0xc8))/0xa+-parseInt(p(0xaa))/0xb*(-parseInt(p(0xd2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xc88b9));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a109d;if(c){const e=c[q(0xac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const r=a109d;return a109a[r(0xcb)]()[r(0xcc)]('(((.+)+)+)+$')[r(0xcb)]()[r(0xc7)](a109a)[r(0xcc)](r(0xa6));});a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xa1;let f=c[d];return f;},a109d(a,b);}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';function a109c(){const v=['4572RQzmMy','constructor','9392600MWKfie','1138ARLQxg','/imports/ui/','toString','search','FALSE','889692SqiYXo','Generate\x20an\x20Esri\x20map\x20component','/imports/startup/lib/templates','2287nhKwhI','12tjkyiG','17464kPINbA','true','react','injectIntoFile','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','injectTemplateModule','(((.+)+)+)+$','3996105XUZmVW','<div\x20id=\x22map-hook\x22>','basic-map','18377832cTVpDD','fsi','apply','2134015AVmgnk','35Glhahc','\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','page','.js','template','<div\x20id=\x22map-component\x22>','esri-loader','/imports/startup/client/templates','Generating\x20a\x20map\x20component','exit','/imports/ui/hooks','withValue','injectImport','pathFromApp','dir','checkNpmPackage','4tpQshK','kit/esri/map/','replaceAll','baseDir','error','split','</div>','map'];a109c=function(){return v;};return a109c();}import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':a109s(0xc5),'aliases':['m'],'usage':a109s(0xa4),'shortDesc':a109s(0xcf),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines['REACT'],'ssr':SsrEngines[a109s(0xcd)]},'description':a109s(0xaf)},async function(a,b){const t=a109s;try{Log['bright'](t(0xb6));const c=t(0xa9);await this[t(0xab)][t(0xbd)](['@esri/react-arcgis',t(0xb4)],{'shouldInstall':!![]});const d=this[t(0xab)]['findProjectDirectory'](),f=this['fsi']['getMakaProjectConfig'](),g=f['engines']['ssr']===t(0xa1),h=await a109f['processAndRunGenerator'](t(0xb0),['map'],{'cwd':d,'config':f}),i={'name':headerCase(f['appName'])[t(0xc0)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0xc1)]?t(0xca)+b[t(0xc1)]:t(0xb8),k=this['fsi'][t(0xbb)]({'pathParts':[j,b[t(0xbc)],paramCase(c),paramCase(c)]});this[t(0xab)][t(0xb9)](f,async()=>{const u=t;this[u(0xab)][u(0xb2)]({'srcPath':u(0xbf)+c+u(0xb1),'destPath':k+'.js','framework':u(0xa2),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0xbc)]+'/'+c+'/'+c;await this[t(0xab)][t(0xa5)](c,f,l);const m=h[t(0xc3)]('/'),n=this[t(0xab)]['pathFromApp']({'pathParts':m});await this[t(0xab)][t(0xba)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0xd0):t(0xb5),'isNamedExport':!![]}),await this[t(0xab)][t(0xa3)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+'\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','begin':[t(0xa8),t(0xb3)],'end':[t(0xc4)],'replace':!![]});}catch(o){Log[t(0xc2)](o),process[t(0xb7)](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(0xbd))/0x1*(parseInt(f(0xc4))/0x2)+-parseInt(f(0xb3))/0x3*(parseInt(f(0xb7))/0x4)+-parseInt(f(0xbe))/0x5+parseInt(f(0xc1))/0x6+-parseInt(f(0xb5))/0x7*(-parseInt(f(0xc2))/0x8)+-parseInt(f(0xbc))/0x9*(-parseInt(f(0xb4))/0xa)+-parseInt(f(0xbb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x40766));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0xc3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0xb6)]()[h(0xb8)](h(0xc6))[h(0xb6)]()['constructor'](a110a)[h(0xb8)]('(((.+)+)+)+$');});function a110c(){const j=['maka\x20g:kit','maka\x20g:k','1245984WeJSvM','1048fUDmzi','apply','238926UWgSrU','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','(((.+)+)+)+$','633TJwwqf','4935620CBFpzP','19166FGrzLZ','toString','5828gfosaR','search','maka\x20{generate,\x20g}:{kit}\x20<name>','kit','933394ErjnXZ','9igLWJF','2vydXum','823295FBcqoS'];a110c=function(){return j;};return a110c();}a110a();import{Generator}from'../../generator.js';const KitGen=Generator['create']({'name':a110i(0xba),'aliases':['k'],'usage':a110i(0xb9),'shortDesc':a110i(0xc5),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a110i(0xbf),a110i(0xc0)]},async function(){});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xb3;let f=c[d];return f;},a110d(a,b);}export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a111d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0x156))/0x1*(parseInt(f(0x14c))/0x2)+parseInt(f(0x149))/0x3*(-parseInt(f(0x157))/0x4)+-parseInt(f(0x147))/0x5*(-parseInt(f(0x14d))/0x6)+parseInt(f(0x148))/0x7+-parseInt(f(0x151))/0x8*(-parseInt(f(0x158))/0x9)+-parseInt(f(0x14f))/0xa*(parseInt(f(0x153))/0xb)+parseInt(f(0x155))/0xc*(parseInt(f(0x14e))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x26199));function a111c(){var i=['apply','12gRkxnl','6464kBQtJl','1139420cBEONO','873AslICN','525055iEBexO','386113pNYicV','3lvLBos','constructor','toString','22RItWdi','6Gydyem','4105907QRpqQa','43830DCYKyX','search','18152qtStNz','(((.+)+)+)+$','462kMbxGi'];a111c=function(){return i;};return a111c();}var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x14b)]()['search'](h(0x152))[h(0x14b)]()[h(0x14a)](a111a)[h(0x150)](h(0x152));});a111a();function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x147;var f=c[d];return f;},a111d(a,b);}import'./mui.generator.js';import'./frame.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112A=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d
|
|
1
|
+
const a112A=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d=parseInt(x(0xc7))/0x1*(parseInt(x(0xcd))/0x2)+parseInt(x(0xeb))/0x3+parseInt(x(0xcc))/0x4+parseInt(x(0xc0))/0x5*(parseInt(x(0xbd))/0x6)+-parseInt(x(0xe0))/0x7*(-parseInt(x(0xd8))/0x8)+parseInt(x(0xe3))/0x9+-parseInt(x(0xe1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x849f2));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a112d;if(c){const e=c[y(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const z=a112d;return a112a['toString']()[z(0xe2)](z(0xf0))[z(0xcb)]()[z(0xdb)](a112a)['search'](z(0xf0));});a112a();import{Generator}from'../../../generator.js';function a112c(){const D=['55YmUjlh','No\x20layouts\x20selected','app-tests','pathFromApp','{this.props.children}','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','tsx','124153KeidvR','fsi','create','session','toString','3037980JkwJtu','2YQxZxt','true','engines','basic-app-bar','/imports/startup/lib/templates','imports','length','apply','getFiles','tests','-component\x22>','8RYuTtT','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','<div\x20id=\x22','constructor','getMakaProjectConfig','-hook\x22>','react','ssr','4260242zwVvWb','18141670vtCBbX','search','3479463yGMRaC','findAppDirectory','maka\x20g:k:m:f','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','join','layouts','{props.children}','error','1329741feXmFW','test','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','\x20/>\x0a','injectIntoFile','(((.+)+)+)+$','template','options','checkbox','/imports/startup/client/templates','dir','{\x20props.children\x20}','.js','19242ZxvpyA','REACT','injectImport'];a112c=function(){return D;};return a112c();}import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xb7;let f=c[d];return f;},a112d(a,b);}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';Generator[a112A(0xc9)]({'name':'frame','aliases':['f'],'usage':a112A(0xed),'shortDesc':a112A(0xe6),'validOpts':[a112A(0xe8)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a112A(0xbe)]},'examples':['maka\x20generate:kit:mui:frame',a112A(0xe5)],'description':a112A(0xc5)},async function(a,b){const B=a112A;try{const c=B(0xd0),d='basic-drawer',f=this[B(0xc8)][B(0xdc)](),g=f[B(0xcf)][B(0xdf)]===B(0xce);await this[B(0xc8)]['checkMeteorPackage'](B(0xca),{'shouldInstall':!![]});const h=this['fsi'][B(0xe4)](),i=a112e['join'](h,B(0xd2),'ui',B(0xe8)),j=this['fsi']['getDirectories'](i),k=await Actions[B(0xb7)]({'type':B(0xb8),'name':B(0xe8),'message':B(0xd9),'choices':j});if(k[B(0xe8)][B(0xd3)]===0x0){Log[B(0xea)](B(0xc1));return;}const l=b['baseDir']?'/imports/ui/'+b['baseDir']:'/imports/ui/hooks',m=this[B(0xc8)]['pathFromApp']({'pathParts':[l,b['dir'],paramCase(c),paramCase(c)]}),n=this[B(0xc8)][B(0xc3)]({'pathParts':[l,b['dir'],paramCase(d),paramCase(d)]}),o={'name':headerCase(f['appName'])['replaceAll']('-','\x20')};await this[B(0xc8)]['withValue'](f,async()=>{const C=B;await this[C(0xc8)][C(0xf1)]({'srcPath':'kit/mui/frame/app-bars/'+c+'.js','destPath':m+C(0xbc),'framework':'react','context':o,'config':f,'force':![],'ignore':![]}),await this[C(0xc8)][C(0xf1)]({'srcPath':'kit/mui/frame/drawers/'+d+C(0xbc),'destPath':n+C(0xbc),'framework':C(0xde),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0xba)]+'/'+c+'/'+c;await this[B(0xc8)]['injectTemplateModule'](c,f,p);const q=''+l+b[B(0xba)]+'/'+d+'/'+d;await this[B(0xc8)]['injectTemplateModule'](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0xc8)][B(0xd5)](a112e[B(0xe7)](i,s),{'extensions':['jsx',B(0xc6)],'omit':[B(0xc2),B(0xd6),B(0xec)]});for(const u of t){const v=a112e[B(0xe7)](i,s,u);await this[B(0xc8)]['injectImport']({'filePath':v,'importName':pascalCase(c),'modulePath':g?B(0xd1):B(0xb9),'isNamedExport':!![]}),await this['fsi'][B(0xef)]({'filePath':v,'content':'<'+pascalCase(c)+B(0xee),'begin':['<div\x20id=\x22'+s+B(0xd7),'<div\x20id=\x22'+s+B(0xdd)],'end':[B(0xc4),'{\x20this.props.children\x20}',B(0xe9),B(0xbb)]}),await this[B(0xc8)][B(0xbf)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0xd1):'/imports/startup/client/templates','isNamedExport':!![]}),await this[B(0xc8)][B(0xef)]({'filePath':v,'content':'<'+pascalCase(d)+B(0xee),'begin':[B(0xda)+s+B(0xd7),'<div\x20id=\x22'+s+'-hook\x22>'],'end':['{this.props.children}','{\x20this.props.children\x20}',B(0xe9),B(0xbb)]});}}}catch(w){Log[B(0xea)](w);}},async function(){},a112f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113i=a113d;(function(a,b){const f=a113d,c=a();while(!![]){try{const d
|
|
1
|
+
function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x198;let f=c[d];return f;},a113d(a,b);}const a113i=a113d;function a113c(){const j=['create','35qsVlXy','toString','maka\x20g:kit:m','2191mpiaEm','Material-UI\x20Kit','mui','11tVMnjz','3304hDEjrc','634566LJQSmP','33258228KYlXUC','(((.+)+)+)+$','search','1738532GaUYmZ','480ydbFUm','1067086czpePU','448493tOeJMV','3EXwOKM','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','apply','16254TzbiJT'];a113c=function(){return j;};return a113c();}(function(a,b){const f=a113d,c=a();while(!![]){try{const d=-parseInt(f(0x1a1))/0x1+-parseInt(f(0x1a0))/0x2+parseInt(f(0x1a2))/0x3*(-parseInt(f(0x19e))/0x4)+parseInt(f(0x1a7))/0x5*(-parseInt(f(0x19a))/0x6)+-parseInt(f(0x1aa))/0x7*(parseInt(f(0x199))/0x8)+parseInt(f(0x1a5))/0x9*(-parseInt(f(0x19f))/0xa)+-parseInt(f(0x198))/0xb*(-parseInt(f(0x19b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x614e6));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0x1a4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a[h(0x1a8)]()[h(0x19d)]('(((.+)+)+)+$')[h(0x1a8)]()['constructor'](a113a)['search'](h(0x19c));});a113a();import{Generator}from'../../../generator.js';import a113e from'../kit.js';const MuiGen=Generator[a113i(0x1a6)]({'name':a113i(0x1ac),'aliases':['m'],'usage':a113i(0x1a3),'noNeedResource':!![],'shortDesc':a113i(0x1ab),'validOpts':[''],'isPro':![],'examples':[a113i(0x1a9)]},async function(){throw'NIE';},async function(){},a113e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114o=a114d;function a114c(){const r=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','split','12aIVIPG','template','engines','component/component.js','react','ssr','9MVswUA','checkNpmPackage','pathFromProject','5511112URtxku','pathFromApp','css','className','api','setTemplate','withHooks','fsi','withValue','ramda','resourceName','withTranslations','15SmtGVL','warn','relative','5147410kbGgoU','findAppDirectory','string','includes','withHook','dir','maka\x20g:l\x20web/safari','toString','maka\x20g:layout\x20mobile/iPhone8','.app-tests.js','/imports/ui/layouts','.js','injectTemplateModule','(((.+)+)+)+$','injectAtBeginningOfFile','template/template.css','assign','413833UNIxri','37089261AiogAx','Scaffolding\x20for\x20a\x20React\x20Layout.','192dAuDVD','fileName','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','features','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','4HWWFlz','apply','2540754hTeVng','constructor','true','test/test.js','507480mDoitl','193369exxqKv','search','test'];a114c=function(){return r;};return a114c();}function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x168;let f=c[d];return f;},a114d(a,b);}(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0x16f))/0x1*(-parseInt(l(0x168))/0x2)+-parseInt(l(0x16e))/0x3+-parseInt(l(0x17d))/0x4+-parseInt(l(0x189))/0x5*(-parseInt(l(0x16a))/0x6)+parseInt(l(0x19d))/0x7*(-parseInt(l(0x1a0))/0x8)+-parseInt(l(0x17a))/0x9*(parseInt(l(0x18c))/0xa)+parseInt(l(0x19e))/0xb*(parseInt(l(0x174))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xbd2c7));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a[n(0x193)]()[n(0x170)](n(0x199))[n(0x193)]()[n(0x16b)](a114a)['search'](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['create']({'name':'layout','aliases':aliases,'usage':a114o(0x1a4),'shortDesc':a114o(0x19f),'validOpts':[],'examples':[a114o(0x194),a114o(0x192)]},async function(a,b){const p=a114o,c=p(0x196),d=this[p(0x184)][p(0x18d)](),e=this[p(0x184)][p(0x17e)]({'pathParts':[c,b[p(0x191)],paramCase(b[p(0x187)]),paramCase(b[p(0x187)])]}),f=this[p(0x184)]['getMakaProjectConfig']();await this[p(0x184)][p(0x185)](f,async()=>{const q=p;typeof f[q(0x175)][q(0x171)]===q(0x18e)&&(f[q(0x175)]['test']=f[q(0x175)][q(0x171)]===q(0x16c)?!![]:![],this[q(0x184)][q(0x182)](q(0x171),f['template'][q(0x171)]));typeof f[q(0x175)][q(0x17f)]===q(0x18e)&&(f['template'][q(0x17f)]=f[q(0x175)][q(0x17f)]===q(0x16c)?!![]:![],this[q(0x184)][q(0x182)](q(0x17f),f['template'][q(0x17f)]));typeof f[q(0x175)]['js']===q(0x18e)&&(f[q(0x175)]['js']=f['template']['js']===q(0x16c)?!![]:![],this[q(0x184)][q(0x182)]('js',f[q(0x175)]['js']));!f[q(0x1a3)]&&(f[q(0x1a3)]={});const g=b['_']?b['_'][0x0][q(0x173)](':')[0x1]:![],h=b['_']&&aliases[q(0x18f)](g);h&&!this[q(0x17b)](q(0x186))&&(Log['warn'](q(0x1a2)),this[q(0x184)]['installNpmPackage'](q(0x186),{'cwd':d}));if(h&&!this['checkNpmPackage'](q(0x178))){Log[q(0x18a)](q(0x172));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a114e[q(0x18b)](this['fsi'][q(0x17c)]({}),e),'cssCaseName':paramCase(b[q(0x187)]),'className':pascalCase(b[q(0x187)]),'camelCaseName':camelCase(b[q(0x187)]),'fileName':paramCase(b[q(0x187)]),'graphql':f[q(0x176)]['graphql'],'features':f[q(0x1a3)],'client':f[q(0x176)]['client'],'api':f[q(0x176)][q(0x181)],'ssr':f[q(0x176)][q(0x179)],'test':f['engines'][q(0x171)],'theme':f[q(0x176)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0x1a3)][q(0x188)]};f[q(0x1a3)]?.[q(0x183)]||b[q(0x190)]?await this[q(0x184)][q(0x175)]({'srcPath':'hook/hook.js','destPath':e+q(0x197),'framework':q(0x178),'context':i,'config':f}):await this[q(0x184)][q(0x175)]({'srcPath':q(0x177),'destPath':e+q(0x197),'framework':q(0x178),'context':i,'config':f});f[q(0x176)][q(0x171)]!=='none'&&await this['fsi']['template']({'srcPath':q(0x16d),'destPath':e+q(0x195),'framework':q(0x178),'context':i,'config':f});f[q(0x175)][q(0x17f)]&&(await this[q(0x184)][q(0x175)]({'srcPath':q(0x19b),'destPath':e+'.css','context':Object[q(0x19c)]({},i,{'className':paramCase(b[q(0x187)])}),'config':f}),await this[q(0x184)][q(0x19a)]({'filePath':e+'.'+f[q(0x176)]['js'],'content':'import\x20\x27./'+i[q(0x1a1)]+'.'+f['engines'][q(0x17f)]+'\x27;'}));const j=b[q(0x191)]?'/'+b[q(0x191)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[q(0x1a1)];await this[q(0x184)][q(0x198)](i[q(0x180)],f,k);});});
|