@maka/maka-cli 4.6.22 → 4.7.0
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 -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/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 -0
- 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/react/kit/mui/frame/{basic-app-bar.js.jsx → app-bars/basic-app-bar.js.jsx} +12 -2
- package/bundle/obf/src/templates/react/kit/mui/frame/{basic-app-bar.js → app-bars/basic-app-bar.js.tsx} +10 -2
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -0
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -0
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +2 -1
- package/bundle/obf/src/generators/kits/mui/layout.mui.gen.js +0 -1
- package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.ts +0 -0
- package/bundle/obf/src/templates/react/kit/mui/frame/basic-app-bar.js.tsx +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97u=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d
|
|
1
|
+
const a97u=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=-parseInt(q(0x105))/0x1*(-parseInt(q(0x137))/0x2)+parseInt(q(0x104))/0x3+-parseInt(q(0x113))/0x4+parseInt(q(0x119))/0x5+parseInt(q(0x155))/0x6*(parseInt(q(0xf1))/0x7)+-parseInt(q(0xf7))/0x8*(parseInt(q(0x12e))/0x9)+parseInt(q(0x13c))/0xa*(-parseInt(q(0xf9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x5fa3a));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a97d;if(c){const e=c[r(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const s=a97d;return a97a[s(0x109)]()['search'](s(0x116))[s(0x109)]()[s(0x103)](a97a)[s(0x11f)](s(0x116));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xf1;let f=c[d];return f;},a97d(a,b);}a97a();import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';function a97c(){const F=['processAndRunGenerator','name','keys','invoke','notice','forEach','Too\x20few\x20arguments','find','constructor','480027tTdKDX','75382dxmJCD','\x20not\x20found','lib','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','toString','bright','cwd','chdir','split','pop','Alias','appPathPrefix','where','requiredEngines','1819552MzrbuI','shortDesc','error','(((.+)+)+)+$','create','root','1076170qwYAlw','noNeedResource','length','Description','handleGenerateError','sort','search','server','Too\x20few\x20options','apply','match','validateEngines','getGlobalConfig','Location','pallet','setColorMode','Generator\x20','Client','Generator.create\x20requires\x20some\x20options!','includes','findProjectDirectory','5117103mzzsur','Generator\x20format\x20is\x20incorrect','Generators:','Generator\x20requires\x20a\x20handler\x20function','usage','addGenerator','Please\x20run\x20\x22maka\x20install\x20meteor\x22','_generators','Server','14twJNfL','slice','Generator.create\x20requires\x20a\x20handler\x20function!','maxArgLength','client','68170qTRIkM','number','There\x20is\x20no\x20Meteor\x20application\x20here','validateMeteorInstall','replace','join','Too\x20many\x20options','Name','resourceName','validateMakaSubscription','minOptsLength','list','options','tableList','minArgLength','assign','maxOptsLength','fsi','light','function','aliases','DARK','No\x20resource\x20name\x20specified','dir','push','4137108xefSiR','validateParams','7naQYlu','both','_handler','listGenerators','Both','addGenerator\x20requires\x20a\x20Generator\x20instance','8wEXcLs','sep','286IYQvqB','bind'];a97c=function(){return F;};return a97c();}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';async function inside(a='.',b){const t=a97d,c=process[t(0x10b)]();let d=null;try{process[t(0x10c)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a97u(0x148)];[a97u(0x135)];constructor(a,b){const v=a97u;super();if(!a)throw new Error(v(0x108));if(!a[v(0xfc)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0x14f))throw new Error(v(0x131));this[v(0x135)]=[],this['options']=Object[v(0x14b)]({},a),this['name']=this['options'][v(0xfc)],this[v(0xf3)]=b[v(0xfa)](this);}static[a97u(0x117)](a,b,c){const w=a97u;if(!a)throw new Error(w(0x12b));if(typeof b!==w(0x14f))throw new Error(w(0x139));const d=new Generator(a,b);return c=c||a97g,Object[w(0x14b)](d,{'parent':c?.[w(0x148)]?.['name']}),c[w(0x133)](d),d;}['addGenerator'](a){const x=a97u;if(!(a instanceof Generator))throw new Error(x(0xf6));this[x(0x135)][x(0x154)](a);}async[a97u(0xfb)](a,b=[],c={}){const y=a97u;try{const d=a?.[y(0x10d)](':');if(!d||d[y(0x11b)]===0x0)throw y(0x12f);let f=this[y(0x135)],g;for(const h of d){g=f[y(0x102)](i=>i[y(0x123)](h));if(!g)throw y(0x129)+h+y(0x106);await this[y(0x145)](g),f=g[y(0x135)];}if(g)await g[y(0xfe)](b,c);else throw'Generator\x20not\x20found';}catch(i){Log[y(0x115)](i);}}async['invoke'](a,b){const z=a97u,c=a[z(0x138)]();b[z(0x144)]=c[0x0];try{const d=await this[z(0x14d)][z(0x125)](),f=d[z(0x127)]===z(0x14e)?ColorMode['LIGHT']:ColorMode[z(0x151)];Log[z(0x128)](f),await this[z(0x145)](this);const g=a[0x0]===_prevGen||a[z(0x11b)]===0x0&&this['_generators'][z(0x11b)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this['_generators']['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[z(0x148)]['mustBeInMakaProject']){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this[z(0x148)]['mustHaveMeteorInstalled']){const j=this[z(0x13f)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][z(0x14a)]===z(0x13d)){if(a[z(0x11b)]<this['options']['minArgLength']){Log[z(0x115)](z(0x101));throw new UsageError();}}if(typeof this[z(0x148)]['maxArgLength']===z(0x13d)){if(a['length']>this[z(0x148)][z(0x13a)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[z(0x148)][z(0x146)]===z(0x13d)){if(Object[z(0xfd)](b)['length']<this[z(0x148)]['minOptsLength']){Log['error'](z(0x121));throw new UsageError();}}if(typeof this[z(0x148)][z(0x14c)]===z(0x13d)){if(Object[z(0xfd)](b)['length']>=this[z(0x148)][z(0x14c)]){Log[z(0x115)](z(0x142));throw new UsageError();}}}this[z(0x148)][z(0x112)]&&this[z(0x124)](this[z(0x148)]['requiredEngines']);await this[z(0x156)](a,b,this[z(0x148)]);if(!b[z(0x144)]&&!this['options'][z(0x11a)]){Log[z(0x115)](z(0x152));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process['exit'](0x1);}await inside(b[z(0x10b)],async()=>{const A=z;try{if(!b[A(0x118)]&&!this[A(0x14d)][A(0x12d)]())throw new MustBeInProjectError();const l=b[A(0x144)]?.[A(0x140)](/\\/g,'/')[A(0x10d)]('/');!b[A(0x153)]&&(l?.[A(0x11b)]>0x1?(b[A(0x144)]=l[A(0x10e)](),c[0x0]=b[A(0x144)],b[A(0x153)]=l['map'](m=>{return paramCase(m);})[A(0x141)](a97e[A(0xf8)])):b['dir']='');if(this[A(0x148)]['checkWhere']){if(!b[A(0x111)]){const n={'type':A(0x147),'name':'colLocAnswer','message':A(0x126),'choices':[{'name':A(0x12a),'value':'client'},{'name':A(0x136),'value':'server'},{'name':A(0xf5),'value':'both'}]},{colLocAnswer:o}=await Actions[A(0x148)](n);o?b['where']=o:b[A(0x111)]='both';}const m=['both',A(0x13b),A(0x120)];if(!m[A(0x12c)](b[A(0x111)])){Log[A(0x115)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[A(0x111)]){case A(0xf2):b[A(0x110)]=A(0x107);break;case A(0x120):b[A(0x110)]=A(0x120);break;case A(0x13b):b[A(0x110)]='client';break;default:b[A(0x110)]='';}}await this['_handler']['call'](this,c,b);}catch(p){this['handleGenerateError'](p);}});}[a97u(0xf4)](){const B=a97u;this[B(0x149)](this[B(0x135)]);}[a97u(0x11d)](a){const C=a97u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[C(0x148)];Log[C(0x132)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[C(0xff)](C(0x130)),this[C(0x149)](this[C(0x135)]);else{if(a instanceof MustBeInProjectError)Log[C(0x115)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[C(0x115)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[C(0xff)](C(0x134));else a instanceof NoMeteorAppFoundError&&Log[C(0x115)](C(0x13e));}}}[a97u(0x149)](a){const D=a97u,b=new a97f({});b['push']([D(0x143),D(0x10f),D(0x11c)]),a[D(0x11e)]()[D(0x100)](c=>{const E=D;b[E(0x154)]([c[E(0xfc)],c[E(0x150)](),c[E(0x114)]()]);}),Log[D(0x10a)](b[D(0x109)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0x1b5))/0x1+parseInt(f(0x1b8))/0x2+parseInt(f(0x1ae))/0x3+-parseInt(f(0x1b0))/0x4+-parseInt(f(0x1af))/0x5+-parseInt(f(0x1b3))/0x6*(parseInt(f(0x1b7))/0x7)+-parseInt(f(0x1b4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xea3b7));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x1b6)]()[h(0x1ad)](h(0x1b1))[h(0x1b6)]()[h(0x1b9)](a98a)[h(0x1ad)]('(((.+)+)+)+$');});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';function a98c(){var i=['197932JrHwCC','3422396VPOFHN','constructor','search','5670354igqxdq','3521115cYVAOv','4127300bhroWG','(((.+)+)+)+$','apply','84DbwFbB','6114448NOVdkd','254317csRNfX','toString'];a98c=function(){return i;};return a98c();}import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x1ad;var f=c[d];return f;},a98d(a,b);}import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a99c(){const A=['107183sfduuo','REST\x20API','toString','mdg:validated-method','create','template','\x27;\x0a','dir','.app-tests.','error','725440EtwfwN','resolvers.','api/fixtures.js','No\x20API\x20boundaries\x20selected','options','GraphQL','withRest','/imports/api','Publications','(((.+)+)+)+$','apply','/graphql/resolvers','typeDefs.','resolverList.push(','rpc-methods.','typeList.push(','withGql','824643OHmqJm','withMethods','push','import\x20{\x20typeDefs\x20as\x20','rewriteDestinationPathForEngine','withValue','\x0aimport\x20{\x20resolvers\x20as\x20','exit','api/api.js','TypeDefs\x20}\x20from\x20\x27','graphql','28438696IHztjQ','apiAnswers','6ZWdmWW','228372boFcRO','test','ddp-rate-limiter','api/resolvers.js','publications.','api/typeDefs.js','injectAtEndOfFile','120ZiJgVz','rest-api.','none','api/register-api.js','pathFromApp','Resolvers\x20}\x20from\x20\x27','length','apollo','1001BHqZQc','injectAtBeginningOfFile','api/methods.js','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','27855VMaEkV','api','includes','checkMeteorPackage','maka:rest','mongo','972tAHaXF','TypeDefs);\x0a','if\x20\x5c(typeList','api/tests.js','startup','checkbox','API\x20boundaries\x20to\x20create','withFixtures','withPubs','search','-api.','server','injectIntoFile','constructor','20176RqxHZF','-api\x27;','fsi','Resolvers);\x0a\x0a','engines','/graphql/typeDefs','collection','imports','import\x20\x27./register-'];a99c=function(){return A;};return a99c();}const a99x=a99d;(function(a,b){const u=a99d,c=a();while(!![]){try{const d=-parseInt(u(0x159))/0x1+parseInt(u(0x163))/0x2+parseInt(u(0x181))/0x3*(parseInt(u(0x182))/0x4)+parseInt(u(0x195))/0x5*(-parseInt(u(0x142))/0x6)+-parseInt(u(0x191))/0x7*(parseInt(u(0x150))/0x8)+parseInt(u(0x174))/0x9*(-parseInt(u(0x189))/0xa)+parseInt(u(0x17f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x90a03));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0x15b)]()[w(0x14b)]('(((.+)+)+)+$')[w(0x15b)]()[w(0x14f)](a99a)['search'](w(0x16c));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x13f;let f=c[d];return f;},a99d(a,b);}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(0x15d)]({'name':a99x(0x196),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a99x(0x194),'validOpts':[a99x(0x160)],'examples':['maka\x20g:api\x20Todos'],'description':'\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'},async function(a,b){const y=a99x;try{const c=this[y(0x152)]['getMakaProjectConfig'](),d=[{'name':'RPC\x20(Methods)','value':y(0x175)},{'name':'Fixtures','value':y(0x149)},{'name':y(0x16b),'value':'withPubs'}];c[y(0x154)][y(0x196)]==='rest'&&d[y(0x176)]({'name':y(0x15a),'value':y(0x169)});c[y(0x154)][y(0x17e)]===y(0x190)&&d[y(0x176)]({'name':y(0x168),'value':y(0x173)});const f={'type':y(0x147),'name':y(0x180),'message':y(0x148),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x167)](f);g[y(0x18f)]===0x0&&(Log[y(0x162)](y(0x166)),process[y(0x17b)](0x1)),await this['fsi'][y(0x179)](c,async()=>{const z=y,h=b['resourceName'],i=paramCase(h),j=camelCase(h),k=b['dir']?'/'+b[z(0x160)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c['engines']['api'],'graphql':c['engines'][z(0x17e)],'test':c[z(0x154)][z(0x183)],'noRename':!![],'withPubs':g['includes'](z(0x14a)),'withFixtures':g[z(0x197)]('withFixtures'),'withMethods':g[z(0x197)](z(0x175)),'withRest':g[z(0x197)]('withRest')};let m='js';c['engines']['js']==='tsx'&&(m='ts');await this[z(0x152)][z(0x13f)]([z(0x140),'maka:check',z(0x184),z(0x15c),z(0x141)],{'shouldInstall':!![]}),await a99e['processAndRunGenerator'](z(0x156),[i],{'config':c,'where':z(0x14d)});c['engines'][z(0x196)]==='rest'&&(l[z(0x169)]&&await this[z(0x152)]['template']({'srcPath':z(0x17c),'destPath':this[z(0x152)][z(0x18d)]({'pathParts':[z(0x157),z(0x196),b[z(0x160)],i,z(0x18a)+m]}),'context':l,'config':c}));l[z(0x175)]&&await this['fsi']['template']({'srcPath':z(0x193),'destPath':this[z(0x152)][z(0x18d)]({'pathParts':[z(0x157),'api',b[z(0x160)],i,z(0x171)+m]}),'context':l,'config':c});l[z(0x149)]&&await this['fsi'][z(0x15e)]({'srcPath':z(0x165),'destPath':this[z(0x152)][z(0x18d)]({'pathParts':['imports',z(0x196),b[z(0x160)],i,'fixtures.'+m]}),'context':l,'config':c});c['engines'][z(0x183)]!==z(0x18b)&&this[z(0x152)][z(0x15e)]({'srcPath':z(0x145),'destPath':this[z(0x152)][z(0x18d)]({'pathParts':['imports',z(0x196),b[z(0x160)],i,i+z(0x161)+m]}),'context':l,'config':c});l[z(0x14a)]&&await this[z(0x152)][z(0x15e)]({'srcPath':'api/publications.js','destPath':this[z(0x152)][z(0x18d)]({'pathParts':['imports',z(0x196),b['dir'],i,z(0x186)+m]}),'context':l,'config':c});if(c[z(0x154)]['graphql']===z(0x190)){if(g['includes'](z(0x173))){const o=this[z(0x152)][z(0x18d)]({'pathParts':['imports',z(0x146),z(0x14d),'index.'+c[z(0x154)]['js']]}),p=this[z(0x152)][z(0x178)]({'pathParts':[o],'config':c}),q=this[z(0x152)][z(0x18d)]({'pathParts':[z(0x157),z(0x196),b[z(0x160)],i,z(0x17e),z(0x16f)+m]}),r=z(0x16a)+k+i+z(0x155);this['fsi'][z(0x15e)]({'srcPath':z(0x187),'destPath':q,'context':l,'config':c}),await this[z(0x152)][z(0x192)]({'filePath':p,'content':z(0x177)+j+z(0x17d)+r+z(0x15f)}),await this[z(0x152)][z(0x14e)]({'filePath':p,'content':z(0x172)+j+z(0x143),'begin':'const','end':z(0x144)});const s=this[z(0x152)][z(0x18d)]({'pathParts':[z(0x157),z(0x196),b[z(0x160)],i,z(0x17e),z(0x164)+m]}),t='/imports/api'+k+i+z(0x16e);await this['fsi'][z(0x15e)]({'srcPath':z(0x185),'destPath':s,'context':l,'config':c}),await this[z(0x152)][z(0x192)]({'filePath':p,'content':z(0x17a)+j+z(0x18e)+t+'\x27;'}),await this[z(0x152)][z(0x14e)]({'filePath':p,'content':z(0x170)+j+z(0x153),'begin':'const','end':z(0x144)});}}await this['fsi']['template']({'srcPath':z(0x18c),'destPath':this[z(0x152)]['pathFromApp']({'pathParts':[z(0x157),z(0x146),z(0x14d),'register-'+i+z(0x14c)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x152)][z(0x18d)]({'pathParts':[z(0x157),'startup',z(0x14d),'index.'+c['engines']['js']]});await this[z(0x152)][z(0x188)]({'filePath':n,'content':z(0x158)+i+z(0x151)});});}catch(h){console[y(0x162)](h),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0x13e))/0x1*(-parseInt(j(0x13a))/0x2)+parseInt(j(0x141))/0x3+-parseInt(j(0x133))/0x4*(-parseInt(j(0x159))/0x5)+parseInt(j(0x147))/0x6+-parseInt(j(0x13b))/0x7+parseInt(j(0x12f))/0x8+parseInt(j(0x132))/0x9*(-parseInt(j(0x14f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x7c8aa));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x13f)]()[l(0x145)](l(0x138))[l(0x13f)]()[l(0x13d)](a100a)[l(0x145)](l(0x138));});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x12f;let f=c[d];return f;},a100d(a,b);}a100a();import{paramCase,pascalCase}from'change-case';function a100c(){const p=['error','.app-tests.','4090BGBYMe','withValue','\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','index.','col','tsx','collection/collection.js','getMakaProjectConfig','maka\x20g:collection\x20todos','dir','4835800ppIowl','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','apply','2396680GzSduU','fsi','test','33786DoWlPx','4UVHMNh','none','injectAtEndOfFile','pathFromApp','startup','(((.+)+)+)+$','imports','554iWQUbY','2280376moEauN','appPathPrefix','constructor','1219WRSfAg','toString','collection','208611coTxOH','template','resourceName','engines','search','import\x20\x27./collections','4183986iioyJi','collections','create','where','maka:check','mongo'];a100c=function(){return p;};return a100c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100m(0x149)]({'name':a100m(0x140),'aliases':[a100m(0x153)],'usage':a100m(0x15a),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a100m(0x158),a100m(0x14a)],'description':a100m(0x151),'examples':[a100m(0x157)]},async function(a,b){const n=a100m;try{const c=this['fsi'][n(0x156)]();await this['fsi'][n(0x150)](c,async()=>{const o=n,d=paramCase(b[o(0x143)]),f={'name':pascalCase(b[o(0x143)]),'collectionName':pascalCase(b[o(0x143)]),'fileName':d,'where':b['where'],'test':c['engines']['test'],'noRename':!![]};let g='js';c[o(0x144)]['js']===o(0x154)&&(g='ts');await this[o(0x130)]['checkMeteorPackage']([o(0x14c),o(0x14b)],{'shouldInstall':!![]}),await this[o(0x130)][o(0x142)]({'srcPath':o(0x155),'destPath':this[o(0x130)]['pathFromApp']({'pathParts':[o(0x139),o(0x137),b[o(0x13c)],o(0x148),b[o(0x158)],d+'.'+g]}),'context':f,'config':c});c[o(0x144)][o(0x131)]!==o(0x134)&&await this[o(0x130)][o(0x142)]({'srcPath':'collection/tests.js','destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x139),'startup',b['appPathPrefix'],o(0x148),b[o(0x158)],d+o(0x14e)+g]}),'context':f,'config':c});const h=b['dir']?'/'+b[o(0x158)]+'/':'/',i=this[o(0x130)][o(0x136)]({'pathParts':[o(0x139),o(0x137),b[o(0x13c)],o(0x152)+c[o(0x144)]['js']]});await this[o(0x130)][o(0x135)]({'filePath':i,'content':o(0x146)+h+d+'\x27;'});});}catch(d){Log[n(0x14d)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101q=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d
|
|
1
|
+
function a101c(){const t=['root','317810NcZydr','error','/imports/ui/','injectAtEndOfFile','create','/imports/ui/components','fileName','\x27;\x0a','\x20}\x20from\x20\x27','.css','pathFromProject','constructor','cssCaseName','css','features','baseDir','2932340zBJver','setTemplate','graphql','true','apply','string','template','18dPMoqz','checkNpmPackage','templates.js','withTranslations','test','reflux','21758BluJeG','resourceName','relative','comp','rewriteDestinationPathForEngine','dir','pathFromApp','maka\x20g:comp\x20todos/todos-item','withValue','getMakaProjectConfig','component/component.js','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','engines','229044QnJHCU','ssr','test/test.js','3619827DGbOju','imports','(((.+)+)+)+$','fsi','51yvaVIj','client','className','1307635mDIFnd','component','components','4nszqjl','theme','8YYMgMI','lib','export\x20\x27','export\x20{\x20','6744LGxMgK','api','56972dQxFjp','.js','toString','search','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','ramda','react'];a101c=function(){return t;};return a101c();}const a101q=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x1d0))/0x1*(-parseInt(n(0x1dd))/0x2)+parseInt(n(0x1d7))/0x3*(-parseInt(n(0x1e5))/0x4)+parseInt(n(0x1a6))/0x5*(-parseInt(n(0x1bd))/0x6)+-parseInt(n(0x1da))/0x7+-parseInt(n(0x1df))/0x8*(parseInt(n(0x1d3))/0x9)+-parseInt(n(0x1b6))/0xa+parseInt(n(0x1c3))/0xb*(parseInt(n(0x1e3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x3e2c9));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a101d;if(c){const e=c[o(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const p=a101d;return a101a['toString']()[p(0x1e8)](p(0x1d5))[p(0x1e7)]()[p(0x1b1)](a101a)[p(0x1e8)](p(0x1d5));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a101d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=[a101q(0x1c6)];Generator[a101q(0x1aa)]({'name':a101q(0x1db),'aliases':aliases,'usage':a101q(0x1ce),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a101q(0x1b5),'values':['hooks',a101q(0x1dc),'pages','layouts']}],'examples':[a101q(0x1ca)]},async function(a,b){const r=a101q;try{const c=this[r(0x1d6)]['findAppDirectory'](),d=b[r(0x1b5)]?r(0x1a8)+b[r(0x1b5)]:r(0x1ab),f=this['fsi'][r(0x1c9)]({'pathParts':[d,b[r(0x1c8)],paramCase(b['resourceName']),paramCase(b[r(0x1c4)])]}),g=await this[r(0x1d6)][r(0x1cc)]();await this[r(0x1d6)][r(0x1cb)](g,async()=>{const s=r;typeof g['template']['test']===s(0x1bb)&&(g[s(0x1bc)][s(0x1c1)]=g[s(0x1bc)]['test']===s(0x1b9)?!![]:![],this[s(0x1d6)][s(0x1b7)](s(0x1c1),g['template'][s(0x1c1)]));typeof g[s(0x1bc)][s(0x1b3)]==='string'&&(g[s(0x1bc)]['css']=g[s(0x1bc)][s(0x1b3)]===s(0x1b9)?!![]:![],this[s(0x1d6)][s(0x1b7)](s(0x1b3),g['template'][s(0x1b3)]));typeof g[s(0x1bc)]['js']===s(0x1bb)&&(g[s(0x1bc)]['js']=g[s(0x1bc)]['js']===s(0x1b9)?!![]:![],this[s(0x1d6)][s(0x1b7)]('js',g['template']['js']));!g[s(0x1b4)]&&(g[s(0x1b4)]={});!b[s(0x1a5)]&&!this[s(0x1d6)][s(0x1be)](s(0x1eb))&&(Log['warn'](s(0x1ea)),await this[s(0x1d6)]['installNpmPackage']('ramda',{'cwd':c}));if(!b[s(0x1a5)]&&!this[s(0x1d6)][s(0x1be)](s(0x1ec))){Log[s(0x1a7)](s(0x1e9));return;}const h={'name':pascalCase(b[s(0x1c4)]),'myPath':a101e[s(0x1c5)](this['fsi'][s(0x1b0)]({}),f),'cssCaseName':paramCase(b[s(0x1c4)]),'className':pascalCase(b[s(0x1c4)]),'camelCaseName':camelCase(b[s(0x1c4)]),'fileName':paramCase(b[s(0x1c4)]),'graphql':g[s(0x1cf)][s(0x1b8)],'features':g[s(0x1b4)],'client':g[s(0x1cf)][s(0x1d8)],'api':g['engines'][s(0x1e4)],'ssr':g[s(0x1cf)]['ssr'],'test':g[s(0x1cf)][s(0x1c1)],'theme':g[s(0x1cf)][s(0x1de)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1b4)][s(0x1c0)]};await this[s(0x1d6)]['template']({'srcPath':s(0x1cd),'destPath':f+s(0x1e6),'context':h,'framework':'react','config':g});g[s(0x1cf)]['test']!=='none'&&await this['fsi']['template']({'srcPath':s(0x1d2),'destPath':f+'.tests.js','context':h,'framework':s(0x1ec),'config':g});g[s(0x1bc)][s(0x1b3)]&&(await this[s(0x1d6)][s(0x1bc)]({'srcPath':'template/template.css','destPath':f+s(0x1af),'context':Object['assign']({},h,{'className':paramCase(b[s(0x1c4)])}),'config':g}),await this[s(0x1d6)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x1cf)]['js'],'content':'import\x20\x27./'+h[s(0x1b2)]+'.'+g['engines']['css']+'\x27;'}));const i=b['dir']?'/'+b[s(0x1c8)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[s(0x1ac)];let k;if(g[s(0x1cf)][s(0x1d1)]===s(0x1b9)){const l=this[s(0x1d6)]['pathFromApp']({'pathParts':[s(0x1d4),'startup',s(0x1e0),'templates.js']});k=this[s(0x1d6)][s(0x1c7)]({'pathParts':[l],'config':g});}else{const m=this[s(0x1d6)][s(0x1c9)]({'pathParts':[s(0x1d4),'startup',s(0x1d8),s(0x1bf)]});k=this[s(0x1d6)][s(0x1c7)]({'pathParts':[m],'config':g});}g[s(0x1cf)]['client']===s(0x1ec)||g[s(0x1cf)][s(0x1d8)]===s(0x1c2)?await this['fsi'][s(0x1a9)]({'filePath':k,'content':s(0x1e2)+h[s(0x1d9)]+s(0x1ae)+j+s(0x1ad)}):await this[s(0x1d6)][s(0x1a9)]({'filePath':k,'content':s(0x1e1)+j+'.'+g[s(0x1cf)]['js']+s(0x1ad)});});}catch(h){Log[r(0x1a7)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x1c8))/0x1*(-parseInt(h(0x1b3))/0x2)+parseInt(h(0x1bd))/0x3+-parseInt(h(0x1c3))/0x4*(parseInt(h(0x1c1))/0x5)+-parseInt(h(0x1b6))/0x6*(-parseInt(h(0x1ab))/0x7)+parseInt(h(0x1af))/0x8+-parseInt(h(0x1bf))/0x9+parseInt(h(0x1ae))/0xa*(parseInt(h(0x1be))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb6ff9));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1a9;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['toString']()[i(0x1a9)](i(0x1bb))[i(0x1c2)]()[i(0x1b0)](a102a)[i(0x1a9)](i(0x1bb));});a102a();import{Generator}from'../generator.js';function a102c(){const m=['Generate\x20configuration\x20settings.','appName','process.env','455IkwDqd','search','pathFromProject','14AycZgc','config','getMakaProjectConfig','4872580kFFkkc','5204840GhSIjf','constructor','maka\x20g:config\x20production','fsi','5860ckpcUk','settings.json','prod','3690174bPhSHF','withValue','resourceName','maka\x20{generate,\x20g}:{config}\x20<name>','config/process.env','(((.+)+)+)+$','template','639930YCmCYI','11WDNyqq','4137624YxpffL','create','40AbYOoP','toString','19392ttaJGx','isDocker'];a102c=function(){return m;};return a102c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102j(0x1c0)]({'name':'config','usage':a102j(0x1b9),'shortDesc':a102j(0x1c5),'validOpts':['isDocker'],'examples':[a102j(0x1b1)]},async function(a,b){const k=a102j,c=this[k(0x1b2)][k(0x1ad)]();await this[k(0x1b2)][k(0x1b7)](c,async()=>{const l=k,d={'app':c[l(0x1c6)],'appFileCase':paramCase(c[l(0x1c6)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[l(0x1b8)]),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b[l(0x1c4)]};let e=b[l(0x1b8)];if(e==='dev')e='development';else e===l(0x1b5)&&(e='production');const f=this[l(0x1b2)][l(0x1aa)]({'pathParts':[l(0x1ac),e,l(0x1b4)]});await this[l(0x1b2)][l(0x1bc)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[l(0x1b2)][l(0x1aa)]({'pathParts':[l(0x1ac),e,l(0x1c7)]});await this[l(0x1b2)]['template']({'srcPath':l(0x1ba),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0x1c9))/0x1*(-parseInt(j(0x1e4))/0x2)+parseInt(j(0x1d3))/0x3*(parseInt(j(0x1eb))/0x4)+parseInt(j(0x1e0))/0x5+-parseInt(j(0x1d0))/0x6+parseInt(j(0x1d5))/0x7+parseInt(j(0x1bc))/0x8*(parseInt(j(0x1ea))/0x9)+parseInt(j(0x1c0))/0xa*(-parseInt(j(0x1d9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x71dfe));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x1ca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x1d7)]()[l(0x1e8)](l(0x1be))[l(0x1d7)]()[l(0x1bf)](a103a)[l(0x1e8)](l(0x1be));});a103a();import{camelCase,paramCase,pascalCase}from'change-case';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a103d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const p=['43336GCTBSx','checkNpmPackage','(((.+)+)+)+$','constructor','9280BOHWzp','warn','conn.','resourceName','-dbc.','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','dbc/register-dbc.js','error','pathFromApp','2VCmBdC','apply','startup','register-','maka\x20g:dbc\x20geoserver\x20--type=pgsql','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','dbc','1569738TXfGmf','maka\x20g:dbc\x20azure\x20--type=mssql','better-sqlite3','56241eFoKVz','template','4510982nSzyZF','imports','toString','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','13827DaHnSw','pgsql','mssql','dbc/conn.js','fsi','dbc/config.js','-dbc\x27;','2737665RkBcaP','server','dir','config.','138266sehEMW','installNpmPackage','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','engines','search','type','1179KLgaUA','28xAmCnp','sqlite','tsx','injectAtEndOfFile'];a103c=function(){return p;};return a103c();}Generator['create']({'name':a103m(0x1cf),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a103m(0x1d8),'validOpts':[a103m(0x1e2)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x1e9),'values':[a103m(0x1da),'mssql',a103m(0x1ec)]}],'examples':[a103m(0x1cd),a103m(0x1d1),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const n=a103m;try{const c=await this[n(0x1dd)]['getMakaProjectConfig'](),d=this[n(0x1dd)][n(0x1c8)]({}),f=paramCase(b[n(0x1c3)]),g={'name':pascalCase(b[n(0x1c3)]),'fileName':paramCase(b[n(0x1c3)]),'camelCase':camelCase(b[n(0x1c3)]),'type':b[n(0x1e9)],'engine':c['engines']['js'],'noRename':!![]};await this[n(0x1dd)]['withValue'](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0x1ed)&&(h='ts');b['type']===o(0x1da)&&!this[o(0x1dd)][o(0x1bd)]('pg')&&(Log[o(0x1c1)](o(0x1ce)),await this[o(0x1dd)][o(0x1e5)]('pg',{'cwd':d}));b['type']==='mssql'&&!this['fsi'][o(0x1bd)](o(0x1db))&&(Log[o(0x1c1)](o(0x1e6)),await this[o(0x1dd)][o(0x1e5)](o(0x1db),{'cwd':d}));b['type']===o(0x1ec)&&!this[o(0x1dd)][o(0x1bd)](o(0x1d2))&&(Log[o(0x1c1)](o(0x1c5)),await this['fsi'][o(0x1e5)](o(0x1d2),{'cwd':d}));await this[o(0x1dd)][o(0x1d4)]({'srcPath':o(0x1de),'destPath':this['fsi'][o(0x1c8)]({'pathParts':[o(0x1d6),o(0x1cb),o(0x1e1),'dbc',b[o(0x1e2)],f,o(0x1e3)+h]}),'context':g,'config':c}),await this[o(0x1dd)][o(0x1d4)]({'srcPath':o(0x1dc),'destPath':this[o(0x1dd)]['pathFromApp']({'pathParts':[o(0x1d6),o(0x1cb),o(0x1e1),o(0x1cf),b[o(0x1e2)],f,o(0x1c2)+h]}),'context':g,'config':c}),await this[o(0x1dd)][o(0x1d4)]({'srcPath':o(0x1c6),'destPath':this[o(0x1dd)]['pathFromApp']({'pathParts':[o(0x1d6),'startup',o(0x1e1),o(0x1cc)+f+o(0x1c4)+h]}),'context':g,'config':c});const i=this[o(0x1dd)][o(0x1c8)]({'pathParts':[o(0x1d6),o(0x1cb),o(0x1e1),'index.'+c[o(0x1e7)]['js']]});await this['fsi'][o(0x1bb)]({'filePath':i,'content':'import\x20\x27./register-'+f+o(0x1df)});});}catch(h){Log[n(0x1c7)](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(0x184))/0x1*(-parseInt(f(0x196))/0x2)+parseInt(f(0x18a))/0x3+-parseInt(f(0x18d))/0x4+-parseInt(f(0x1a3))/0x5*(-parseInt(f(0x1a5))/0x6)+parseInt(f(0x18b))/0x7+parseInt(f(0x192))/0x8*(parseInt(f(0x19a))/0x9)+parseInt(f(0x1a2))/0xa*(-parseInt(f(0x191))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x4d726));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1a4)]()[h(0x186)](h(0x19e))['toString']()[h(0x18c)](a104a)[h(0x186)](h(0x19e));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x184;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';function a104c(){const l=['11007Oxjnus','service','docker/Dockerfile','apply','(((.+)+)+)+$','fsi','Dockerfile','isFile','268430LMyDNz','15zyxBQK','toString','497946SzQpyC','12632dOONRZ','maka\x20g:dockerfile','search','getMakaProjectConfig','dockerfile','Generate\x20an\x20updated\x20dockerfile','7797vSgrCV','2822848GRDgnZ','constructor','276564llaTjx','create','error','join','407gTjdyZ','3088nAvXax','build','cert','appName','40hFqXBR','maka\x20{generate,\x20g}:dockerfile','findProjectDirectory','getGlobalConfig'];a104c=function(){return l;};return a104c();}Generator[a104i(0x18e)]({'name':a104i(0x188),'usage':a104i(0x197),'shortDesc':a104i(0x189),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x185)]},async function(){const j=a104i;try{const a=await this[j(0x19f)][j(0x187)](),b=await this[j(0x19f)][j(0x199)](),c=this[j(0x19f)][j(0x198)]();await this[j(0x19f)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0x195)],'config':a,'appPath':a104e[k(0x190)](c,'app'),'bundlePath':a104e['join'](c,k(0x193),'app.tar.gz'),'useCert':this['fsi'][k(0x1a1)](b[k(0x194)])};await this[k(0x19f)]['template']({'srcPath':k(0x19c),'destPath':a104e[k(0x190)](c,k(0x1a0)),'framework':k(0x19b),'context':d,'config':a});});}catch(d){Log[j(0x18f)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a105r=a105d;(function(a,b){const o=a105d,c=a();while(!![]){try{const d=parseInt(o(0x162))/0x1+-parseInt(o(0x180))/0x2*(parseInt(o(0x16d))/0x3)+-parseInt(o(0x17b))/0x4+-parseInt(o(0x156))/0x5*(parseInt(o(0x15a))/0x6)+parseInt(o(0x15d))/0x7*(-parseInt(o(0x178))/0x8)+parseInt(o(0x181))/0x9+parseInt(o(0x15b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x870d1));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a['toString']()['search'](q(0x165))['toString']()[q(0x14e)](a105a)[q(0x146)](q(0x165));});a105a();import a105e from'path';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x13a;let f=c[d];return f;},a105d(a,b);}import{paramCase,pascalCase,camelCase}from'change-case';function a105c(){const u=['withValue','maka\x20g:hook\x20cool-hook','theme','hook','@apollo/client\x20isomorphic-fetch','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','none','237VzMEOJ','template/template.css','pathFromApp','error','startup','.js','apply','\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','setTemplate','\x27;\x0a','pages','285808YUMuTD','engines','fileName','1419304BkeIMh','.css','withTranslations','/imports/ui/hooks','hooks','21478beHKlh','6004791pwhgkF','true','dir','export\x20\x27','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','features','imports','create','Creating\x20','ssr','injectAtBeginningOfFile','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','css','templates.js','injectAtEndOfFile','search','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','string','relative','getMakaProjectConfig','import\x20\x27./','force','cssCaseName','constructor','/imports/ui/','fsi','notice','checkNpmPackage','template','\x20}\x20from\x20\x27','apollo','996695fyIHBc','@apollo/client','assign','react','6NreYfc','21336810ubAgGP','client','203iErmRJ','resourceName','baseDir','graphql','layouts','190889VMzfbR','\x20hook...','warn','(((.+)+)+)+$'];a105c=function(){return u;};return a105c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105r(0x13e)]({'name':a105r(0x169),'aliases':['h'],'checkWhere':![],'usage':a105r(0x142),'shortDesc':a105r(0x13b),'validOpts':[{'name':a105r(0x15f),'values':[a105r(0x17f),'components',a105r(0x177),a105r(0x161)]},{'name':'force','boolFlag':!![]}],'examples':[a105r(0x167)],'description':a105r(0x174)},async function(a,b){const s=a105r;Log[s(0x151)](s(0x13f)+b[s(0x15e)]+s(0x163));try{const c=this[s(0x150)][s(0x152)]('react');if(!c){Log[s(0x170)](s(0x147));throw new UsageError();}const d=this['fsi']['pathFromApp'](b),f=b['baseDir']?s(0x14f)+b['baseDir']:s(0x17e),g=this[s(0x150)]['pathFromApp']({'pathParts':[f,b['dir'],paramCase(b[s(0x15e)]),paramCase(b[s(0x15e)])]}),h=await this[s(0x150)][s(0x14a)]();await this[s(0x150)][s(0x166)](h,async()=>{const t=s;typeof h[t(0x153)][t(0x143)]===t(0x148)&&(h[t(0x153)]['css']=h[t(0x153)][t(0x143)]===t(0x182)?!![]:![],this[t(0x150)][t(0x175)](t(0x143),h[t(0x153)][t(0x143)]));h[t(0x179)][t(0x160)]===t(0x155)&&!this[t(0x150)][t(0x152)](t(0x157))&&(Log[t(0x164)](t(0x16b)),await this['fsi']['installNpmPackage'](t(0x16a),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x15e)]),'className':pascalCase(b[t(0x15e)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0x179)]['graphql'],'theme':h['engines'][t(0x168)],'features':h[t(0x13c)],'myPath':a105e[t(0x149)](this[t(0x150)]['pathFromProject']({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x13c)][t(0x17d)]};await this[t(0x150)][t(0x153)]({'srcPath':'hook/hook.js','destPath':g+t(0x172),'context':i,'config':h,'framework':'react','force':b[t(0x14c)]});h[t(0x153)][t(0x143)]&&(await this[t(0x150)][t(0x153)]({'srcPath':t(0x16e),'destPath':g+t(0x17c),'context':Object[t(0x158)]({},i,{'className':i[t(0x14d)]}),'config':h,'force':b['force']}),await this[t(0x150)][t(0x141)]({'filePath':g+'.'+h[t(0x179)]['js'],'content':t(0x14b)+i['fileName']+'.'+h[t(0x179)][t(0x143)]+'\x27;'}));h[t(0x179)]['test']!==t(0x16c)&&await this[t(0x150)]['template']({'srcPath':'test/test.js','destPath':g+'.app-tests.js','framework':'react','context':i,'config':h,'force':b['force']});const j=b[t(0x183)]?'/'+b[t(0x183)]+'/':'/',k=''+f+j+i[t(0x17a)]+'/'+i[t(0x17a)];let l;if(h[t(0x179)][t(0x140)]===t(0x182)){const m=this[t(0x150)][t(0x16f)]({'pathParts':[t(0x13d),t(0x171),'lib','templates.js']});l=this[t(0x150)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x150)][t(0x16f)]({'pathParts':['imports',t(0x171),t(0x15c),t(0x144)]});l=this[t(0x150)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0x179)]['client']===t(0x159)?await this[t(0x150)][t(0x145)]({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x154)+k+t(0x176)}):await this[t(0x150)][t(0x145)]({'filePath':l,'content':t(0x13a)+k+'.'+h[t(0x179)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x170)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a106d,c=a();while(!![]){try{var d
|
|
1
|
+
function a106c(){var i=['toString','400138USjVNj','3JIOJmH','16136XpZWCg','790660ZEFtVp','constructor','10737ZXdSVB','2145496RTfZld','1189858JrWjGu','search','apply','4527544vVbLAh','1588104VKNMrA','(((.+)+)+)+$'];a106c=function(){return i;};return a106c();}(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x167))/0x1+parseInt(f(0x16e))/0x2*(-parseInt(f(0x168))/0x3)+-parseInt(f(0x16d))/0x4+-parseInt(f(0x16a))/0x5+parseInt(f(0x164))/0x6+-parseInt(f(0x171))/0x7+parseInt(f(0x169))/0x8*(parseInt(f(0x16c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x51b08));var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a[h(0x166)]()['search'](h(0x165))[h(0x166)]()[h(0x16b)](a106a)[h(0x16f)](h(0x165));});function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x164;var f=c[d];return f;},a106d(a,b);}a106a();import'./kit.js';import'./mui/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107i=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=parseInt(f(0x164))/0x1+-parseInt(f(0x157))/0x2+-parseInt(f(0x158))/0x3*(-parseInt(f(0x155))/0x4)+parseInt(f(0x167))/0x5*(parseInt(f(0x168))/0x6)+parseInt(f(0x15f))/0x7*(-parseInt(f(0x15e))/0x8)+-parseInt(f(0x15d))/0x9+parseInt(f(0x166))/0xa*(-parseInt(f(0x15b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xcf0d3));function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x154;let f=c[d];return f;},a107d(a,b);}function a107c(){const j=['105NePVRw','search','maka\x20g:k','create','constructor','454870LyLRUu','kit','350AiGLJd','557640ntuHGN','66smkGUj','apply','1186880fgWRAn','toString','362660ZvUbwj','12vdVbrK','(((.+)+)+)+$','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','32263NvElOv','maka\x20{generate,\x20g}:{kit}\x20<name>','1669950drpQiN','827168BHEyPk'];a107c=function(){return j;};return a107c();}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a[h(0x156)]()[h(0x160)](h(0x159))[h(0x156)]()[h(0x163)](a107a)['search'](h(0x159));});a107a();import{Generator}from'../../generator.js';const KitGen=Generator[a107i(0x162)]({'name':a107i(0x165),'aliases':['k'],'usage':a107i(0x15c),'shortDesc':a107i(0x15a),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit',a107i(0x161)]},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a108d,c=a();while(!![]){try{var d
|
|
1
|
+
function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x66;var f=c[d];return f;},a108d(a,b);}function a108c(){var i=['162441woSpbH','79592bIUAiF','60yTexIk','(((.+)+)+)+$','3318416yjuAeL','37182BJJfaR','105923JssBDX','290468QPHluh','toString','721VkgnpO','constructor','130twmIte','search','29131311xQCQjo','apply','36EBcuxy'];a108c=function(){return i;};return a108c();}(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x71))/0x1+parseInt(f(0x6f))/0x2+-parseInt(f(0x6a))/0x3*(-parseInt(f(0x72))/0x4)+-parseInt(f(0x66))/0x5*(-parseInt(f(0x70))/0x6)+parseInt(f(0x74))/0x7*(parseInt(f(0x6c))/0x8)+-parseInt(f(0x6b))/0x9*(parseInt(f(0x6d))/0xa)+-parseInt(f(0x68))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xd07cb));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x69)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a[h(0x73)]()[h(0x67)](h(0x6e))['toString']()[h(0x75)](a108a)[h(0x67)](h(0x6e));});a108a();import'./mui.generator.js';import'./frame.mui.gen.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a109A=a109d;function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a109d(a,b);}(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0x1bf))/0x1+-parseInt(x(0x1d8))/0x2+parseInt(x(0x1e6))/0x3*(-parseInt(x(0x1e5))/0x4)+-parseInt(x(0x1cc))/0x5+parseInt(x(0x1df))/0x6*(-parseInt(x(0x1be))/0x7)+-parseInt(x(0x1c4))/0x8+parseInt(x(0x1b5))/0x9*(parseInt(x(0x1b3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x7a524));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x1b4)]()[z(0x1c9)](z(0x1c8))['toString']()[z(0x1e4)](a109a)[z(0x1c9)](z(0x1c8));});a109a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a109e from'path';import a109f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a109A(0x1cf)]({'name':'frame','aliases':['f'],'usage':'maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','shortDesc':a109A(0x1dd),'validOpts':[a109A(0x1d4)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a109A(0x1e9)],'client':ClientEngines[a109A(0x1ea)]},'examples':['maka\x20generate:kit:mui:frame',a109A(0x1b1)],'description':a109A(0x1b6)},async function(a,b){const B=a109A;try{const c=B(0x1ae),d=B(0x1c1),f=this[B(0x1bb)][B(0x1d7)](),g=f[B(0x1ee)][B(0x1dc)]===B(0x1e3);await this[B(0x1bb)][B(0x1d3)](B(0x1cb),{'shouldInstall':!![]});const h=this[B(0x1bb)][B(0x1d2)](),i=a109e['join'](h,B(0x1de),'ui',B(0x1d4)),j=this[B(0x1bb)][B(0x1e2)](i),k=await Actions[B(0x1b0)]({'type':B(0x1bd),'name':B(0x1d4),'message':B(0x1ba),'choices':j});if(k[B(0x1d4)][B(0x1ad)]===0x0){Log[B(0x1af)](B(0x1ca));return;}const l=b[B(0x1db)]?B(0x1e7)+b[B(0x1db)]:'/imports/ui/hooks',m=this['fsi']['pathFromApp']({'pathParts':[l,b['dir'],paramCase(c),paramCase(c)]}),n=this[B(0x1bb)][B(0x1ce)]({'pathParts':[l,b[B(0x1b2)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0x1c3)])[B(0x1cd)]('-','\x20')};await this[B(0x1bb)][B(0x1ed)](f,async()=>{const C=B;await this[C(0x1bb)][C(0x1d1)]({'srcPath':C(0x1bc)+c+C(0x1b9),'destPath':m+C(0x1b9),'framework':'react','context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x1bb)][C(0x1d1)]({'srcPath':'kit/mui/frame/drawers/'+d+C(0x1b9),'destPath':n+'.js','framework':C(0x1e0),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0x1b2)]+'/'+c+'/'+c;await this[B(0x1bb)][B(0x1b8)](c,f,p);const q=''+l+b[B(0x1b2)]+'/'+d+'/'+d;await this[B(0x1bb)]['injectTemplateModule'](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0x1bb)][B(0x1ec)](a109e['join'](i,s),{'extensions':['jsx',B(0x1d6)]});for(const u of t){const v=a109e[B(0x1d9)](i,s,u);await this['fsi'][B(0x1b7)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?B(0x1c7):B(0x1eb),'isNamedExport':!![]}),await this[B(0x1bb)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(c)+B(0x1ef),'begin':[B(0x1c2)+s+'-component\x22>',B(0x1c2)+s+B(0x1c5)],'end':[B(0x1e1),B(0x1da),B(0x1e8),'{\x20props.children\x20}']}),await this[B(0x1bb)][B(0x1b7)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0x1c7):B(0x1eb),'isNamedExport':!![]}),await this[B(0x1bb)][B(0x1c6)]({'filePath':v,'content':'<'+pascalCase(d)+B(0x1ef),'begin':[B(0x1c2)+s+B(0x1c0),B(0x1c2)+s+B(0x1c5)],'end':[B(0x1e1),B(0x1da),B(0x1e8),B(0x1d0)]});}}}catch(w){Log[B(0x1af)](w);}},a109f);function a109c(){const D=['length','basic-app-bar','error','options','maka\x20g:k:m:f','dir','110680CnpzVb','toString','2547QTuAyK','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','injectImport','injectTemplateModule','.js','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','fsi','kit/mui/frame/app-bars/','checkbox','425761REYuNe','962915vWMDim','-component\x22>','basic-drawer','<div\x20id=\x22','appName','7854328mZpXSQ','-hook\x22>','injectIntoFile','/imports/startup/lib/templates','(((.+)+)+)+$','search','No\x20layouts\x20selected','session','2181290ncojei','replaceAll','pathFromApp','create','{\x20props.children\x20}','template','findAppDirectory','checkMeteorPackage','layouts','apply','tsx','getMakaProjectConfig','1943336lwSmOe','join','{\x20this.props.children\x20}','baseDir','ssr','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','imports','30FtRPrM','react','{this.props.children}','getDirectories','true','constructor','4jGhays','2700897KJqUqW','/imports/ui/','{props.children}','MATERIAL','REACT','/imports/startup/client/templates','getFiles','withValue','engines','\x20/>\x0a'];a109c=function(){return D;};return a109c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x193;let f=c[d];return f;},a110d(a,b);}const a110h=a110d;function a110c(){const i=['maka\x20g:kit:m','275457gmZkop','3168550sczigP','create','777791UENPnJ','680165qKRhuj','4789089LWvUie','search','(((.+)+)+)+$','399522CUYhJP','2259024GRqJFD','12MIkXGy','104hBCCrR','toString','60TwmoJe','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>'];a110c=function(){return i;};return a110c();}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x194))/0x1+-parseInt(f(0x1a2))/0x2+-parseInt(f(0x199))/0x3+-parseInt(f(0x19a))/0x4+-parseInt(f(0x195))/0x5*(-parseInt(f(0x19b))/0x6)+parseInt(f(0x1a1))/0x7*(parseInt(f(0x19c))/0x8)+-parseInt(f(0x196))/0x9*(-parseInt(f(0x19e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xdfb87));const a110b=(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;};}()),a110a=a110b(this,function(){const g=a110d;return a110a[g(0x19d)]()['search']('(((.+)+)+)+$')[g(0x19d)]()['constructor'](a110a)[g(0x197)](g(0x198));});a110a();import{Generator}from'../../../generator.js';import a110e from'../kit.js';const MuiGen=Generator[a110h(0x193)]({'name':'mui','aliases':['m'],'usage':a110h(0x19f),'noNeedResource':!![],'shortDesc':'Material-UI\x20Kit','validOpts':[''],'isPro':!![],'examples':[a110h(0x1a0)]},async function(){throw'NIE';},a110e);export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111r=a111d;(function(a,b){const o=a111d,c=a();while(!![]){try{const d=-parseInt(o(
|
|
1
|
+
function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a111d(a,b);}const a111r=a111d;(function(a,b){const o=a111d,c=a();while(!![]){try{const d=-parseInt(o(0x1e2))/0x1*(parseInt(o(0x1f9))/0x2)+parseInt(o(0x1d5))/0x3+-parseInt(o(0x1fd))/0x4*(-parseInt(o(0x1c0))/0x5)+-parseInt(o(0x1ca))/0x6+-parseInt(o(0x1d4))/0x7+parseInt(o(0x1d0))/0x8*(-parseInt(o(0x1d9))/0x9)+parseInt(o(0x1ee))/0xa*(parseInt(o(0x209))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x8589c));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a111d;if(c){const e=c[p(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const q=a111d;return a111a[q(0x206)]()[q(0x1fb)](q(0x1cc))[q(0x206)]()[q(0x200)](a111a)[q(0x1fb)](q(0x1cc));});a111a();import a111e 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':a111r(0x1f3),'aliases':aliases,'usage':a111r(0x1e3),'shortDesc':a111r(0x1f4),'validOpts':[],'examples':[a111r(0x1f5),a111r(0x1c1)]},async function(a,b){const s=a111r,c=s(0x1ea),d=this[s(0x1c2)][s(0x1d2)](),e=this[s(0x1c2)][s(0x202)]({'pathParts':[c,b[s(0x204)],paramCase(b[s(0x1f7)]),paramCase(b[s(0x1f7)])]}),f=this[s(0x1c2)][s(0x1f1)]();await this[s(0x1c2)][s(0x1c4)](f,async()=>{const t=s;typeof f[t(0x1f2)][t(0x1ec)]===t(0x1c8)&&(f[t(0x1f2)][t(0x1ec)]=f[t(0x1f2)][t(0x1ec)]===t(0x1e7)?!![]:![],this[t(0x1c2)][t(0x1fe)](t(0x1ec),f[t(0x1f2)][t(0x1ec)]));typeof f[t(0x1f2)][t(0x203)]===t(0x1c8)&&(f[t(0x1f2)]['css']=f[t(0x1f2)][t(0x203)]==='true'?!![]:![],this[t(0x1c2)][t(0x1fe)](t(0x203),f[t(0x1f2)]['css']));typeof f[t(0x1f2)]['js']===t(0x1c8)&&(f[t(0x1f2)]['js']=f[t(0x1f2)]['js']==='true'?!![]:![],this['fsi'][t(0x1fe)]('js',f['template']['js']));!f[t(0x1fa)]&&(f[t(0x1fa)]={});const g=b['_']?b['_'][0x0][t(0x1c9)](':')[0x1]:![],h=b['_']&&aliases[t(0x205)](g);h&&!this['checkNpmPackage'](t(0x207))&&(Log[t(0x1e8)](t(0x1df)),this['fsi'][t(0x1e9)](t(0x207),{'cwd':d}));if(h&&!this[t(0x1d7)](t(0x1db))){Log[t(0x1e8)](t(0x1d6));return;}const i={'name':pascalCase(b[t(0x1f7)]),'myPath':a111e[t(0x1e5)](this[t(0x1c2)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1f7)]),'fileName':paramCase(b[t(0x1f7)]),'graphql':f[t(0x1f0)]['graphql'],'features':f[t(0x1fa)],'client':f[t(0x1f0)][t(0x1d1)],'api':f[t(0x1f0)]['api'],'ssr':f[t(0x1f0)][t(0x1de)],'test':f['engines']['test'],'theme':f['engines'][t(0x1ed)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1fa)][t(0x1cf)]};f[t(0x1fa)]?.[t(0x1eb)]||b[t(0x1dc)]?await this[t(0x1c2)]['template']({'srcPath':t(0x1f6),'destPath':e+t(0x1c5),'framework':t(0x1db),'context':i,'config':f}):await this[t(0x1c2)][t(0x1f2)]({'srcPath':'component/component.js','destPath':e+t(0x1c5),'framework':t(0x1db),'context':i,'config':f});f['engines']['test']!==t(0x1ff)&&await this[t(0x1c2)][t(0x1f2)]({'srcPath':t(0x1d3),'destPath':e+'.app-tests.js','framework':t(0x1db),'context':i,'config':f});f[t(0x1f2)][t(0x203)]&&(await this[t(0x1c2)]['template']({'srcPath':'template/template.css','destPath':e+t(0x1e0),'context':Object[t(0x1f8)]({},i,{'className':paramCase(b[t(0x1f7)])}),'config':f}),console[t(0x1cb)](t(0x208)),await this[t(0x1c2)][t(0x1dd)]({'filePath':e+'.'+f[t(0x1f0)]['js'],'content':t(0x1e1)+i[t(0x1c6)]+'.'+f['engines'][t(0x203)]+'\x27;'}));const j=b[t(0x204)]?'/'+b[t(0x204)]+'/':'/',k=''+c+j+i[t(0x1c6)]+'/'+i[t(0x1c6)];let l;if(f[t(0x1f0)]['ssr']===t(0x1e7)){const m=this[t(0x1c2)][t(0x202)]({'pathParts':[t(0x1c7),t(0x1cd),t(0x1e4),'templates.js']});l=this[t(0x1c2)][t(0x1e6)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1c2)]['pathFromApp']({'pathParts':[t(0x1c7),t(0x1cd),t(0x1d1),'templates.js']});l=this[t(0x1c2)][t(0x1e6)]({'pathParts':[n],'config':f});}f['engines'][t(0x1d1)]==='react'?await this[t(0x1c2)][t(0x1fc)]({'filePath':l,'content':t(0x1c3)+i[t(0x201)]+t(0x1d8)+k+t(0x1ef)}):await this[t(0x1c2)][t(0x1fc)]({'filePath':l,'content':t(0x1ce)+k+'.'+f[t(0x1f0)]['js']+t(0x1ef)});});});function a111c(){const u=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','checkNpmPackage','\x20}\x20from\x20\x27','27VnMler','apply','react','withHook','injectAtBeginningOfFile','ssr','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.css','import\x20\x27./','2YMrQkT','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','lib','relative','rewriteDestinationPathForEngine','true','warn','installNpmPackage','/imports/ui/layouts','withHooks','test','theme','2840aqBYKi','\x27;\x0a','engines','getMakaProjectConfig','template','layout','Scaffolding\x20for\x20a\x20React\x20Layout.','maka\x20g:layout\x20mobile/iPhone8','hook/hook.js','resourceName','assign','470378fgLyKD','features','search','injectAtEndOfFile','508HTtKqo','setTemplate','none','constructor','className','pathFromApp','css','dir','includes','toString','ramda','Injecting\x20into\x20file','42262GGrfhD','24175lCHQsE','maka\x20g:l\x20web/safari','fsi','export\x20{\x20','withValue','.js','fileName','imports','string','split','1511004DnEKAq','log','(((.+)+)+)+$','startup','export\x20\x27','withTranslations','1470432njqfId','client','findAppDirectory','test/test.js','4359334EhVHTF','2214555VRRvwU'];a111c=function(){return u;};return a111c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a112c(){const j=['
|
|
1
|
+
const a112i=a112d;function a112c(){const j=['927955uROjJg','318OthEkw','generate','maka\x20g:route\x20todos/edit','search','5121830ljXHYi','maka\x20g:dbc\x20geoserver\x20--type=pgsql','293196PxWtbi','maka\x20{generate,\x20g}:<generator>\x20<name>','8kXyNeK','99JbpoRa','34ZpJRhY','104418IpjYkF','maka\x20generate:scaffold\x20todos','constructor','apply','88aZHKPg','maka\x20g:template\x20todos/todo_item','maka\x20g:scaffold\x20todos','27472kHNSOG','526464mwdEUD','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:package\x20package:name','(((.+)+)+)+$','5698whaJmU','toString'];a112c=function(){return j;};return a112c();}function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a112d(a,b);}(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(0x1cb))/0x1*(parseInt(f(0x1c3))/0x2)+parseInt(f(0x1cc))/0x3*(parseInt(f(0x1c1))/0x4)+-parseInt(f(0x1d2))/0x5+parseInt(f(0x1d3))/0x6*(-parseInt(f(0x1d0))/0x7)+-parseInt(f(0x1c8))/0x8*(parseInt(f(0x1c4))/0x9)+parseInt(f(0x1bd))/0xa+parseInt(f(0x1c2))/0xb*(parseInt(f(0x1bf))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x3f65d));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0x1d1)]()[h(0x1bc)](h(0x1cf))[h(0x1d1)]()[h(0x1c6)](a112a)[h(0x1bc)]('(((.+)+)+)+$');});a112a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a112i(0x1d4),'aliases':['g'],'usage':a112i(0x1c0),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a112i(0x1cd),'examples':[a112i(0x1c5),a112i(0x1ca),a112i(0x1c9),a112i(0x1ce),a112i(0x1bb),'maka\x20g:api\x20trucks',a112i(0x1be)]},function(){});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xbb;let f=c[d];return f;},a113d(a,b);}const a113m=a113d;(function(a,b){const j=a113d,c=a();while(!![]){try{const d=parseInt(j(0xbf))/0x1+-parseInt(j(0xc6))/0x2*(parseInt(j(0xd4))/0x3)+-parseInt(j(0xbe))/0x4*(parseInt(j(0xc0))/0x5)+-parseInt(j(0xca))/0x6+parseInt(j(0xd1))/0x7*(-parseInt(j(0xcf))/0x8)+parseInt(j(0xc3))/0x9+parseInt(j(0xc9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xc824b));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a113d;if(c){const e=c[k(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const l=a113d;return a113a[l(0xd2)]()[l(0xd6)]('(((.+)+)+)+$')[l(0xd2)]()[l(0xbd)](a113a)['search']('(((.+)+)+)+$');});a113a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a113m(0xce)]({'name':'method','aliases':['m'],'usage':a113m(0xc5),'checkWhere':!![],'shortDesc':a113m(0xd5),'validOpts':['dir'],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a113m;try{const c=this[n(0xdb)]['getMakaProjectConfig']();await this[n(0xdb)][n(0xda)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0xd3)],'fileName':d,'className':pascalCase(b[o(0xd3)]),'camelCase':camelCase(b[o(0xd3)]),'noRename':!![]};let g='js';c['engines']['js']===o(0xd0)&&(g='ts');await this[o(0xdb)][o(0xd7)](['maka:check','ddp-rate-limiter','mdg:validated-method'],{'shouldInstall':!![]}),await this[o(0xdb)][o(0xd8)]({'srcPath':o(0xc2),'destPath':this['fsi'][o(0xdc)]({'pathParts':['imports',o(0xc1),b['appPathPrefix'],o(0xc7),b[o(0xbb)],d+o(0xd9)+g]}),'context':f,'config':c});const h=b[o(0xbb)]?'/'+b[o(0xbb)]+'/':'/',i=this[o(0xdb)][o(0xdc)]({'pathParts':[o(0xcc),'startup',b['appPathPrefix'],'index.'+c[o(0xc8)]['js']]});await this[o(0xdb)][o(0xc4)]({'filePath':i,'content':o(0xbc)+h+d+o(0xcd)});});}catch(d){Log['error'](d);}});function a113c(){const p=['toString','resourceName','3588zxAoVr','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','search','checkMeteorPackage','template','-rpc-method.','withValue','fsi','pathFromApp','dir','import\x20\x27./methods','constructor','56eiARiD','265384fPLVpM','514175LgZtWT','startup','method/method.js','4321719gKdJSA','injectAtEndOfFile','maka\x20{generate,\x20g}:{method,\x20m}\x20name','452oceoKr','methods','engines','30857300XjEurd','2586498gTesyV','apply','imports','-rpc-method\x27;','create','10664egjsDS','tsx','4571YXtwId'];a113c=function(){return p;};return a113c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=-parseInt(l(
|
|
1
|
+
const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=-parseInt(l(0x214))/0x1*(-parseInt(l(0x207))/0x2)+parseInt(l(0x1f3))/0x3+parseInt(l(0x20b))/0x4*(-parseInt(l(0x20a))/0x5)+parseInt(l(0x210))/0x6+-parseInt(l(0x1f1))/0x7*(-parseInt(l(0x202))/0x8)+parseInt(l(0x1f8))/0x9+-parseInt(l(0x1f9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xc4781));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0x208)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a['toString']()['search'](n(0x20c))[n(0x211)]()[n(0x209)](a114a)[n(0x1fb)](n(0x20c));});a114a();import a114e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a114d(a,b);}function a114c(){const r=['/client/','features','engines','ssr','package','layout','lib','91kTlXNv','relative','482163FfuXvZ','template','/package.js','packages','client','2301183sbSyxh','5902390krMPSC','package/','search','maka\x20g:package\x20todos:package','fsi','create','tests/client','template/template.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','576792vnXeQB','resourceName','dir','server','theme','2Qighuh','apply','constructor','3064955KhtvvX','8REcLsr','(((.+)+)+)+$','.js','withValue','hasOwnProperty','2199552BVqybt','toString','noRename','package/package.js','900671MpeiWU'];a114c=function(){return r;};return a114c();}Generator[a114o(0x1fe)]({'name':a114o(0x219),'aliases':['p'],'usage':a114o(0x201),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a114o(0x204)],'examples':[a114o(0x1fc)]},async function(a,b){const p=a114o,c=paramCase(b[p(0x203)]),d=this[p(0x1fd)]['pathFromApp']({'pathParts':[p(0x1f6),b[p(0x204)],c]}),e=this[p(0x1fd)]['pathFromAppWithNoReWrite']({'pathParts':['packages',b[p(0x204)],c,'package.js']}),f=this[p(0x1fd)]['getMakaProjectConfig']();await this[p(0x1fd)][p(0x20e)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a114e[q(0x1f2)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x203)]),'camelCaseName':camelCase(b[q(0x203)]),'fileName':c,'client':f[q(0x217)][q(0x1f7)],'graphql':f[q(0x217)]['graphql'],'ssr':f[q(0x217)][q(0x218)],'isComponent':b[q(0x20f)]('component'),'isLayout':b[q(0x20f)](q(0x1ef)),'isStore':b[q(0x20f)]('store'),'features':f[q(0x216)],'noRename':!![],'theme':f['engines'][q(0x206)]};await this[q(0x1fd)][q(0x1f4)]({'srcPath':q(0x213),'destPath':e,'context':g,'config':f}),g[q(0x212)]=![];const h=d+q(0x215)+c+'.js';await this[q(0x1fd)]['template']({'srcPath':q(0x200),'destPath':h,'context':g,'config':f});const i=[q(0x1f0),q(0x205),q(0x1ff),'tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+q(0x20d);await this[q(0x1fd)][q(0x1f4)]({'srcPath':q(0x1fa)+j+q(0x1f5),'destPath':k,'context':g,'config':f});}});});
|