@maka/maka-cli 4.8.15 → 4.8.16
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/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/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
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a97d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a97d,c=a();while(!![]){try{var d=parseInt(f(0xf7))/0x1*(-parseInt(f(0xfa))/0x2)+parseInt(f(0xf9))/0x3+-parseInt(f(0xf8))/0x4+-parseInt(f(0xf6))/0x5+-parseInt(f(0xf5))/0x6+parseInt(f(0xfc))/0x7+parseInt(f(0xf3))/0x8*(parseInt(f(0xff))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xd420a));var a97b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a97d;if(c){var e=c[g(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){var h=a97d;return a97a['toString']()[h(0xfe)](h(0xfd))[h(0xf4)]()[h(0x100)](a97a)['search'](h(0xfd));});function a97c(){var i=['constructor','664YCdwMx','toString','8026242qFgoYd','3119795wbvLiW','50zlbnrW','16984lkzOnR','1211262PAjqQa','32376dBGaeD','apply','3716279bfKTxd','(((.+)+)+)+$','search','293805eyUHwk'];a97c=function(){return i;};return a97c();}a97a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}function a97d(a,b){var c=a97c();return a97d=function(d,e){d=d-0xf3;var f=c[d];return f;},a97d(a,b);}export class NoMeteorFoundError{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
2
|
+
var a98i=a98d;(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0x18a))/0x1+-parseInt(f(0x18d))/0x2*(parseInt(f(0x192))/0x3)+parseInt(f(0x199))/0x4+parseInt(f(0x197))/0x5+-parseInt(f(0x196))/0x6+parseInt(f(0x18f))/0x7*(parseInt(f(0x18e))/0x8)+-parseInt(f(0x190))/0x9*(-parseInt(f(0x189))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x3ee16));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x193)]()[h(0x18b)](h(0x191))[h(0x193)]()[h(0x194)](a98a)['search']('(((.+)+)+)+$');});function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x189;var f=c[d];return f;},a98d(a,b);}function a98c(){var j=['(((.+)+)+)+$','419907RMYnVe','toString','constructor','env','2516016beOXsN','236110FJIfTj','apply','469772vbmFpt','NODE_OPTIONS','1810jEwAOJ','472465LjYOVV','search','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','4seRAwP','6040gMOLZd','2751NhWRMH','1143qZEimJ'];a98c=function(){return j;};return a98c();}a98a(),process[a98i(0x195)][a98i(0x19a)]=a98i(0x18c);import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99v=a99d;(function(a,b){const r=a99d,c=a();while(!![]){try{const d=parseInt(r(0xe3))/0x1+parseInt(r(0xfc))/0x2*(-parseInt(r(0x10c))/0x3)+parseInt(r(0xcc))/0x4+parseInt(r(0xca))/0x5+-parseInt(r(0x119))/0x6*(-parseInt(r(0xfd))/0x7)+parseInt(r(0x12f))/0x8*(-parseInt(r(0x11d))/0x9)+-parseInt(r(0xd7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x9a51c));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a99d;if(c){const e=c[s(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const t=a99d;return a99a['toString']()[t(0xd5)]('(((.+)+)+)+$')[t(0x11f)]()[t(0x135)](a99a)[t(0xd5)](t(0x10b));});a99a();import a99e from'path';import a99f from'fs';import a99g from'cli-table';import{v4 as a99h}from'uuid';import{paramCase}from'change-case';import a99i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xb1;let f=c[d];return f;},a99d(a,b);}function a99c(){const N=['handleGenerateError','sep','listGenerators','(((.+)+)+)+$','598272krMTPW','number','Alias','Both','_genTransactionId','parse','No\x20resource\x20name\x20specified','Too\x20few\x20options','\x20not\x20found.\x20Cannot\x20undo.','Generator\x20requires\x20a\x20handler\x20function','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Location','includes','22638EsnSfR','fullNameChain','options','addGenerator\x20requires\x20a\x20Generator\x20instance','621BpsktQ','processAndRunGenerator','toString','_handler','Server','keys','split','maxOptsLength','name','_historyFilePath','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','root','length','Nothing\x20to\x20undo.','size','join','addGenerator','_undoHandler','98376btcIsJ','\x20not\x20found','stringify','\x20generator.\x20Skipping\x20undo.','resourceName','localeCompare','constructor','history.json','.maka','Name','requiredEngines','minOptsLength','replace','Generator\x20format\x20is\x20incorrect','Generator.create\x20requires\x20some\x20options!','appPathPrefix','bright','validateEngines','addToHistory','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','generatorName','pathFromProject','where','mustBeInMakaProject','both','chdir','_generators','transactionId','tableList','push','shift','minArgLength','5949750EIVucm','bind','4415284pjsaSk','Generator\x20','validateParams','existsSync','setColorMode','mustHaveMeteorInstalled','params','maxArgLength','validateMeteorInstall','search','warn','11249520MwGOZm','readHistory','function','Generator\x20requires\x20a\x20name','Too\x20many\x20options','findProjectDirectory','find','apply','call','validateMakaSubscription','fsi','pop','388819uIkhZv','Generator.create\x20requires\x20a\x20handler\x20function!','lib','utf-8','undo','server','error','findGeneratorByName','help','message','success','Too\x20few\x20arguments','noNeedResource','exit','dir','match','from','details','Generator\x20not\x20found','notice','Generators:','sort','Description','create','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','8xGjWQN','1337EDRZSr','slice','deepen','reverse','writeHistory','Client','cwd','client','opts','usage','aliases'];a99c=function(){return N;};return a99c();}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=a99h();async function inside(a='.',b){const u=a99d,c=process[u(0x103)]();let d=null;try{process[u(0xc3)](a),d=await b();}finally{process[u(0xc3)](c);}return d;}export class Generator extends Tool{[a99v(0x11b)];[a99v(0x11a)];[a99v(0xc4)];[a99v(0x126)];[a99v(0x12e)];[a99v(0x110)];constructor(a,b,c){const w=a99v;super();if(!a)throw new Error(w(0x127));if(!a[w(0x125)])throw new Error(w(0xda));if(typeof b!==w(0xd9))throw new Error(w(0x115));this[w(0xc4)]=[],this[w(0x11b)]=Object['assign']({},a),this[w(0x125)]=this[w(0x11b)][w(0x125)],this[w(0x120)]=b[w(0xcb)](this);try{this[w(0x126)]=this[w(0xe1)][w(0xbf)]({'pathParts':[w(0xb2),w(0xb1)]})||a99e[w(0x12c)]('.','.maka',w(0xb1));}catch(d){Log[w(0xe9)](d);}c&&(this[w(0x12e)]=c['bind'](this));}['getHistoryFileSize'](){const x=a99v;if(a99f[x(0xcf)](this['_historyFilePath'])){const a=a99f['statSync'](this[x(0x126)]);return a[x(0x12b)];}return 0x0;}['readHistory'](){const y=a99v;if(!a99f[y(0xcf)](this['_historyFilePath']))return[];return JSON[y(0x111)](a99f['readFileSync'](this[y(0x126)],y(0xe6)));}[a99v(0x101)](a){const z=a99v;this[z(0x126)]&&!a99f[z(0xcf)](this[z(0x126)])&&a99f['writeFileSync'](this[z(0x126)],JSON[z(0x131)]([])),a99f['writeFileSync'](this['_historyFilePath'],JSON['stringify'](a,null,0x2));}['addToHistory'](a){const A=a99v;try{a?.['params']?.[A(0x105)]['config']&&delete a[A(0xd2)]['opts']['config'];const b=this[A(0xd8)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[A(0xc7)](c);const d=Buffer[A(0xf3)](JSON[A(0x131)](b))[A(0x129)];while(d>MAX_HISTORY_SIZE&&b[A(0x129)]>0x0){b[A(0xc8)]();}this['writeHistory'](b);}catch(f){Log[A(0xe9)](f);}}async[a99v(0xe7)](){const B=a99v,a=this['readHistory']();if(a['length']===0x0){Log[B(0xd6)](B(0x12a));return;}const b=a[B(0xe2)](),c=b[B(0xc5)],d=a['filter'](e=>e['transactionId']===c);d[B(0xc7)](b),d[B(0x100)]();for(const e of d){const f=this[B(0xea)](e[B(0xbe)]);if(!f){Log[B(0xe9)]('Generator\x20'+e['generatorName']+B(0x114));continue;}f['_undoHandler']?await f['_undoHandler'](e[B(0xf4)]):Log[B(0xd6)]('No\x20undo\x20handler\x20defined\x20for\x20'+e[B(0xbe)]+B(0x132));}this[B(0x101)](a['filter'](g=>g[B(0xc5)]!==c));}static[a99v(0xfa)](a,b,c,d){const C=a99v;if(!a)throw new Error(C(0xb8));if(typeof b!=='function')throw new Error(C(0xe4));const e=new Generator(a,b);c&&(e['_undoHandler']=c[C(0xcb)](e));d=d||a99i;const f=d?d[C(0x11a)]:'';return e['fullNameChain']=f?f+':'+a[C(0x125)]:a[C(0x125)],Object['assign'](e,{'parent':d?.[C(0x11b)]?.[C(0x125)]}),d[C(0x12d)](e),e;}[a99v(0x12d)](a){const D=a99v;if(!(a instanceof Generator))throw new Error(D(0x11c));this[D(0xc4)]['push'](a);}async[a99v(0x11e)](a,b=[],c={}){const E=a99v;let d;try{const f=a?.['split'](':');if(!f||f[E(0x129)]===0x0)throw E(0xb7);let g=this[E(0xc4)],h;for(const i of f){h=g[E(0xdd)](j=>j['match'](i));if(!h)throw E(0xcd)+i+E(0x130);await this[E(0xe0)](h),g=h[E(0xc4)];}if(h)d=await h['invoke'](b,c);else throw E(0xf5);}catch(j){Log[E(0xe9)](j);}return d;}[a99v(0xea)](a){const F=a99v,b=a?.[F(0x123)](':');if(!b||b['length']===0x0)return Log[F(0xe9)](F(0xb7)),null;let c=this[F(0xc4)],d;for(const e of b){d=c[F(0xdd)](f=>f[F(0xf2)](e));if(!d)return Log[F(0xe9)](F(0xcd)+e+'\x20not\x20found'),null;c=d[F(0xc4)];}return d||null;}async['invoke'](a,b){const G=a99v,c=a[G(0xfe)]();b[G(0x133)]=c[0x0];try{const d=await this[G(0xe1)]['getGlobalConfig'](),f=d['pallet']==='light'?ColorMode['LIGHT']:ColorMode['DARK'];Log[G(0xd0)](f),await this[G(0xe0)](this);const g=a[0x0]===_prevGen||a[G(0x129)]===0x0&&this[G(0xc4)][G(0x129)]>=0x0,h=b[G(0xeb)]||b['h'];if(g&&h){if(this[G(0xc4)][G(0x129)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][G(0xc1)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this[G(0x11b)][G(0xd1)]){const j=this[G(0xd4)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x11b)]['minArgLength']==='number'){if(a[G(0x129)]<this[G(0x11b)][G(0xc9)]){Log[G(0xe9)](G(0xee));throw new UsageError();}}if(typeof this[G(0x11b)][G(0xd3)]===G(0x10d)){if(a[G(0x129)]>this[G(0x11b)][G(0xd3)]){Log[G(0xe9)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[G(0x11b)][G(0xb5)]===G(0x10d)){if(Object[G(0x122)](b)[G(0x129)]<this[G(0x11b)][G(0xb5)]){Log[G(0xe9)](G(0x113));throw new UsageError();}}if(typeof this[G(0x11b)][G(0x124)]===G(0x10d)){if(Object[G(0x122)](b)[G(0x129)]>=this[G(0x11b)][G(0x124)]){Log['error'](G(0xdb));throw new UsageError();}}}this[G(0x11b)][G(0xb4)]&&this[G(0xbb)](this[G(0x11b)][G(0xb4)]);await this[G(0xce)](a,b,this['options']);if(!b['resourceName']&&!this[G(0x11b)][G(0xef)]){Log[G(0xe9)](G(0x112));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x108)](k),process[G(0xf0)](0x1);}return await inside(b['cwd'],async()=>{const H=G;try{if(!b[H(0x128)]&&!this[H(0xe1)][H(0xdc)]())throw new MustBeInProjectError();const l=b[H(0x133)]?.[H(0xb6)](/\\/g,'/')[H(0x123)]('/');!b[H(0xf1)]&&(l?.['length']>0x1?(b[H(0x133)]=l[H(0xe2)](),c[0x0]=b[H(0x133)],b['dir']=l['map'](n=>{return paramCase(n);})[H(0x12c)](a99e[H(0x109)])):b[H(0xf1)]='');if(this['options']['checkWhere']){if(!b[H(0xc0)]){const o={'type':'list','name':'colLocAnswer','message':H(0x117),'choices':[{'name':H(0x102),'value':'client'},{'name':H(0x121),'value':H(0xe8)},{'name':H(0x10f),'value':H(0xc2)}]},{colLocAnswer:p}=await Actions[H(0x11b)](o);p?b[H(0xc0)]=p:b[H(0xc0)]=H(0xc2);}const n=[H(0xc2),H(0x104),H(0xe8)];if(!n[H(0x118)](b[H(0xc0)])){Log[H(0xe9)](H(0xfb));throw new UsageError();}switch(b['where']){case H(0xc2):b['appPathPrefix']=H(0xe5);break;case'server':b[H(0xb9)]=H(0xe8);break;case'client':b[H(0xb9)]=H(0x104);break;default:b['appPathPrefix']='';}}const m=await this[H(0x120)][H(0xdf)](this,c,b);return m&&this[H(0xbc)]({'params':{'args':c,'opts':this['fsi'][H(0xff)](b)},'success':m?.[H(0xed)],'message':m?.[H(0xec)],'details':m?.[H(0xf4)]}),m;}catch(q){this[H(0x108)](q);}});}[a99v(0x10a)](){const I=a99v;this[I(0xc6)](this[I(0xc4)]);}[a99v(0x108)](a){const J=a99v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log[J(0x106)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0xf6)](J(0xf7)),this[J(0xc6)](this[J(0xc4)]);else{if(a instanceof MustBeInProjectError)Log['error'](J(0xbd));else{if(a instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0xf6)](J(0x116));else a instanceof NoMeteorAppFoundError&&Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');}}}['tableList'](a){const K=a99v,b=new a99g({});b[K(0xc7)]([K(0xb3),K(0x10e),K(0xf9)]),a[K(0xf8)]((c,d)=>{const L=K;return c[L(0x125)][L(0x134)](d['name']);})['forEach'](c=>{const M=K;b[M(0xc7)]([c[M(0x125)],c[M(0x107)](),c['shortDesc']()]);}),Log[K(0xba)](b[K(0x11f)]());}}
|
|
1
|
+
const a99v=a99d;(function(a,b){const r=a99d,c=a();while(!![]){try{const d=parseInt(r(0x19f))/0x1+-parseInt(r(0x174))/0x2*(-parseInt(r(0x1ab))/0x3)+parseInt(r(0x1d2))/0x4*(parseInt(r(0x18b))/0x5)+parseInt(r(0x188))/0x6*(parseInt(r(0x17d))/0x7)+-parseInt(r(0x1b0))/0x8+-parseInt(r(0x1b2))/0x9+-parseInt(r(0x1d0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x493da));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a99d;if(c){const e=c[s(0x167)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const t=a99d;return a99a[t(0x16f)]()[t(0x169)](t(0x1c8))['toString']()[t(0x172)](a99a)[t(0x169)]('(((.+)+)+)+$');});a99a();import a99e from'path';import a99f from'fs';import a99g from'cli-table';import{v4 as a99h}from'uuid';import{paramCase}from'change-case';function a99c(){const N=['pathFromProject','writeFileSync','params','Location','\x20not\x20found.\x20Cannot\x20undo.','root','.maka','replace','maxArgLength','validateParams','warn','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','validateEngines','cwd','map','create','message','pop','Generator\x20requires\x20a\x20handler\x20function','tableList','number','Nothing\x20to\x20undo.','call','size','shortDesc','findGeneratorByName','apply','Name','search','history.json','\x20generator.\x20Skipping\x20undo.','join','localeCompare','Too\x20few\x20arguments','toString','\x20not\x20found','client','constructor','Description','2OTyPbm','generatorName','slice','Client','maxOptsLength','Generator\x20requires\x20a\x20name','both','bind','details','6531ebdygj','requiredEngines','light','length','Server','handleGenerateError','_genTransactionId','fsi','checkWhere','writeHistory','addToHistory','3390meTNxc','getGlobalConfig','findProjectDirectory','50lLPkZz','notice','readFileSync','validateMakaSubscription','No\x20undo\x20handler\x20defined\x20for\x20','Generator.create\x20requires\x20some\x20options!','dir','transactionId','options','filter','where','mustBeInMakaProject','Too\x20few\x20options','opts','Generator\x20not\x20found','resourceName','config','reverse','addGenerator\x20requires\x20a\x20Generator\x20instance','minOptsLength','78402VKQnNt','Generators:','function','Generator\x20','_handler','success','_generators','assign','readHistory','keys','forEach','Generator\x20format\x20is\x20incorrect','916095kNyxZA','usage','sep','server','aliases','4367232PBFJoF','mustHaveMeteorInstalled','2677230wBSgJV','Both','lib','Alias','validateMakaProject','chdir','push','error','utf-8','sort','Please\x20run\x20\x22maka\x20install\x20meteor\x22','_undoHandler','No\x20resource\x20name\x20specified','invoke','LIGHT','name','getHistoryFileSize','existsSync','shift','listGenerators','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','appPathPrefix','(((.+)+)+)+$','help','find','match','stringify','_historyFilePath','split','pallet','3538140EqLVsL','colLocAnswer','234508SUBCZw','fullNameChain','minArgLength'];a99c=function(){return N;};return a99c();}import a99i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x150;let f=c[d];return f;},a99d(a,b);}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=a99h();async function inside(a='.',b){const u=a99d,c=process['cwd']();let d=null;try{process[u(0x1b7)](a),d=await b();}finally{process[u(0x1b7)](c);}return d;}export class Generator extends Tool{['options'];[a99v(0x1d3)];[a99v(0x1a5)];[a99v(0x1cd)];[a99v(0x1bd)];[a99v(0x183)];constructor(a,b,c){const w=a99v;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(w(0x179));if(typeof b!==w(0x1a1))throw new Error(w(0x15f));this[w(0x1a5)]=[],this[w(0x193)]=Object[w(0x1a6)]({},a),this[w(0x1c1)]=this[w(0x193)][w(0x1c1)],this[w(0x1a3)]=b[w(0x17b)](this);try{this[w(0x1cd)]=this[w(0x184)][w(0x1d5)]({'pathParts':[w(0x153),w(0x16a)]})||a99e['join']('.',w(0x153),w(0x16a));}catch(d){Log[w(0x1b9)](d);}c&&(this[w(0x1bd)]=c[w(0x17b)](this));}[a99v(0x1c2)](){const x=a99v;if(a99f['existsSync'](this[x(0x1cd)])){const a=a99f['statSync'](this[x(0x1cd)]);return a[x(0x164)];}return 0x0;}[a99v(0x1a7)](){const y=a99v;if(!a99f[y(0x1c3)](this[y(0x1cd)]))return[];return JSON['parse'](a99f[y(0x18d)](this[y(0x1cd)],y(0x1ba)));}[a99v(0x186)](a){const z=a99v;this[z(0x1cd)]&&!a99f[z(0x1c3)](this[z(0x1cd)])&&a99f[z(0x1d6)](this[z(0x1cd)],JSON['stringify']([])),a99f[z(0x1d6)](this[z(0x1cd)],JSON[z(0x1cc)](a,null,0x2));}[a99v(0x187)](a){const A=a99v;try{a?.[A(0x1d7)]?.[A(0x198)]['config']&&delete a[A(0x1d7)][A(0x198)][A(0x19b)];const b=this[A(0x1a7)](),c={'generatorName':this[A(0x1d3)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x1b8)](c);const d=Buffer['from'](JSON['stringify'](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0x180)]>0x0){b[A(0x1c4)]();}this[A(0x186)](b);}catch(f){Log[A(0x1b9)](f);}}async['undo'](){const B=a99v,a=this['readHistory']();if(a[B(0x180)]===0x0){Log[B(0x157)](B(0x162));return;}const b=a[B(0x15e)](),c=b[B(0x192)],d=a[B(0x194)](e=>e[B(0x192)]===c);d[B(0x1b8)](b),d[B(0x19c)]();for(const e of d){const f=this[B(0x166)](e[B(0x175)]);if(!f){Log['error'](B(0x1a2)+e[B(0x175)]+B(0x151));continue;}f[B(0x1bd)]?await f['_undoHandler'](e['details']):Log[B(0x157)](B(0x18f)+e[B(0x175)]+B(0x16b));}this[B(0x186)](a[B(0x194)](g=>g[B(0x192)]!==c));}static[a99v(0x15c)](a,b,c,d){const C=a99v;if(!a)throw new Error(C(0x190));if(typeof b!==C(0x1a1))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b);c&&(e[C(0x1bd)]=c[C(0x17b)](e));d=d||a99i;const f=d?d[C(0x1d3)]:'';return e[C(0x1d3)]=f?f+':'+a[C(0x1c1)]:a[C(0x1c1)],Object['assign'](e,{'parent':d?.[C(0x193)]?.[C(0x1c1)]}),d['addGenerator'](e),e;}['addGenerator'](a){const D=a99v;if(!(a instanceof Generator))throw new Error(D(0x19d));this[D(0x1a5)][D(0x1b8)](a);}async['processAndRunGenerator'](a,b=[],c={}){const E=a99v;let d;try{const f=a?.[E(0x1ce)](':');if(!f||f[E(0x180)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[E(0x1a5)],h;for(const i of f){h=g['find'](j=>j['match'](i));if(!h)throw'Generator\x20'+i+E(0x170);await this['validateMakaSubscription'](h),g=h[E(0x1a5)];}if(h)d=await h[E(0x1bf)](b,c);else throw E(0x199);}catch(j){Log['error'](j);}return d;}['findGeneratorByName'](a){const F=a99v,b=a?.[F(0x1ce)](':');if(!b||b['length']===0x0)return Log['error'](F(0x1aa)),null;let c=this[F(0x1a5)],d;for(const e of b){d=c[F(0x1ca)](f=>f[F(0x1cb)](e));if(!d)return Log[F(0x1b9)](F(0x1a2)+e+F(0x170)),null;c=d[F(0x1a5)];}return d||null;}async[a99v(0x1bf)](a,b){const G=a99v,c=a[G(0x176)]();b['resourceName']=c[0x0];try{const d=await this[G(0x184)][G(0x189)](),f=d[G(0x1cf)]===G(0x17f)?ColorMode[G(0x1c0)]:ColorMode['DARK'];Log['setColorMode'](f),await this[G(0x18e)](this);const g=a[0x0]===_prevGen||a[G(0x180)]===0x0&&this[G(0x1a5)]['length']>=0x0,h=b[G(0x1c9)]||b['h'];if(g&&h){if(this[G(0x1a5)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x193)][G(0x196)]){const i=this[G(0x1b6)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x193)][G(0x1b1)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x193)][G(0x1d4)]===G(0x161)){if(a[G(0x180)]<this[G(0x193)]['minArgLength']){Log[G(0x1b9)](G(0x16e));throw new UsageError();}}if(typeof this[G(0x193)][G(0x155)]===G(0x161)){if(a[G(0x180)]>this[G(0x193)]['maxArgLength']){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[G(0x193)][G(0x19e)]===G(0x161)){if(Object['keys'](b)[G(0x180)]<this[G(0x193)][G(0x19e)]){Log[G(0x1b9)](G(0x197));throw new UsageError();}}if(typeof this[G(0x193)][G(0x178)]===G(0x161)){if(Object[G(0x1a8)](b)[G(0x180)]>=this['options'][G(0x178)]){Log[G(0x1b9)]('Too\x20many\x20options');throw new UsageError();}}}this[G(0x193)][G(0x17e)]&&this[G(0x159)](this[G(0x193)]['requiredEngines']);await this[G(0x156)](a,b,this[G(0x193)]);if(!b[G(0x19a)]&&!this[G(0x193)]['noNeedResource']){Log['error'](G(0x1be));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x182)](k),process['exit'](0x1);}return await inside(b[G(0x15a)],async()=>{const H=G;try{if(!b[H(0x152)]&&!this['fsi'][H(0x18a)]())throw new MustBeInProjectError();const l=b[H(0x19a)]?.[H(0x154)](/\\/g,'/')[H(0x1ce)]('/');!b[H(0x191)]&&(l?.[H(0x180)]>0x1?(b[H(0x19a)]=l[H(0x15e)](),c[0x0]=b[H(0x19a)],b[H(0x191)]=l[H(0x15b)](n=>{return paramCase(n);})[H(0x16c)](a99e[H(0x1ad)])):b['dir']='');if(this[H(0x193)][H(0x185)]){if(!b[H(0x195)]){const o={'type':'list','name':H(0x1d1),'message':H(0x150),'choices':[{'name':H(0x177),'value':H(0x171)},{'name':H(0x181),'value':'server'},{'name':H(0x1b3),'value':'both'}]},{colLocAnswer:p}=await Actions[H(0x193)](o);p?b['where']=p:b[H(0x195)]=H(0x17a);}const n=['both',H(0x171),H(0x1ae)];if(!n['includes'](b[H(0x195)])){Log[H(0x1b9)](H(0x158));throw new UsageError();}switch(b['where']){case H(0x17a):b[H(0x1c7)]=H(0x1b4);break;case H(0x1ae):b[H(0x1c7)]='server';break;case'client':b[H(0x1c7)]=H(0x171);break;default:b[H(0x1c7)]='';}}const m=await this[H(0x1a3)][H(0x163)](this,c,b);return m&&this['addToHistory']({'params':{'args':c,'opts':this[H(0x184)]['deepen'](b)},'success':m?.[H(0x1a4)],'message':m?.[H(0x15d)],'details':m?.[H(0x17c)]}),m;}catch(q){this[H(0x182)](q);}});}[a99v(0x1c5)](){const I=a99v;this['tableList'](this[I(0x1a5)]);}[a99v(0x182)](a){const J=a99v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[J(0x193)];Log[J(0x1ac)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0x18c)](J(0x1a0)),this[J(0x160)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[J(0x1b9)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[J(0x1b9)](J(0x1c6)),Log[J(0x18c)](J(0x1bc));else a instanceof NoMeteorAppFoundError&&Log[J(0x1b9)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a99v(0x160)](a){const K=a99v,b=new a99g({});b[K(0x1b8)]([K(0x168),K(0x1b5),K(0x173)]),a[K(0x1bb)]((c,d)=>{const L=K;return c['name'][L(0x16d)](d[L(0x1c1)]);})[K(0x1a9)](c=>{const M=K;b['push']([c['name'],c[M(0x1af)](),c[M(0x165)]()]);}),Log['bright'](b[K(0x16f)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a100d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a100d,c=a();while(!![]){try{var d=-parseInt(f(0x100))/0x1+-parseInt(f(0xfe))/0x2*(parseInt(f(0xfb))/0x3)+parseInt(f(0xf7))/0x4*(parseInt(f(0xff))/0x5)+-parseInt(f(0x101))/0x6*(-parseInt(f(0xfc))/0x7)+-parseInt(f(0xf9))/0x8*(-parseInt(f(0xfd))/0x9)+-parseInt(f(0xfa))/0xa+parseInt(f(0x104))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x82eda));var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var g=a100d;return a100a[g(0xf6)]()['search']('(((.+)+)+)+$')[g(0xf6)]()[g(0xf8)](a100a)[g(0x103)](g(0x102));});a100a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';function a100c(){var h=['819mRPICw','458037yzkcRf','124oBDvxn','255ZpaYUS','483118NeGsrj','7404icUGSH','(((.+)+)+)+$','search','3237762ReKptV','toString','49368pMcLhp','constructor','152QGAvZY','8202430QVVVBY','9459QpNzaK'];a100c=function(){return h;};return a100c();}import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0xf6;var f=c[d];return f;},a100d(a,b);}import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101x=a101d;
|
|
1
|
+
const a101x=a101d;(function(a,b){const u=a101d,c=a();while(!![]){try{const d=parseInt(u(0xc5))/0x1*(parseInt(u(0xca))/0x2)+-parseInt(u(0xae))/0x3*(parseInt(u(0xa2))/0x4)+parseInt(u(0xfb))/0x5+parseInt(u(0xd8))/0x6*(-parseInt(u(0xe3))/0x7)+parseInt(u(0xb9))/0x8+parseInt(u(0xaf))/0x9*(-parseInt(u(0xcc))/0xa)+parseInt(u(0xf9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x4ed9c));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a101d;if(c){const e=c[v(0xc2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const w=a101d;return a101a[w(0xc1)]()['search']('(((.+)+)+)+$')[w(0xc1)]()[w(0xee)](a101a)['search']('(((.+)+)+)+$');});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a101c(){const A=['api/resolvers.js','startup','maka\x20g:api\x20Todos','typeList.push(','.app-tests.','error','exit','toString','apply','-api.','api/register-api.js','7vvrDEV','register-','engines','withMethods','\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','132448oUMnAx','create','45890oJsIuQ','REST\x20API','\x0aimport\x20{\x20resolvers\x20as\x20','graphql','resolverList.push(','typeDefs.','rewriteDestinationPathForEngine','length','rest','injectIntoFile','mdg:validated-method','options','6LvaNUT','RPC\x20(Methods)','fsi','ddp-rate-limiter','rest-api.','pathFromApp','apollo','No\x20API\x20boundaries\x20selected','GraphQL','imports','processAndRunGenerator','3964583UOlfGg','maka:check','includes','checkbox','withFixtures','Resolvers);\x0a\x0a','test','resourceName','if\x20\x5c(typeList','Fixtures','/graphql/typeDefs','constructor','server','template','collection','api/api.js','maka\x20{generate,\x20g}:{api}\x20<resource-name>','tsx','TypeDefs\x20}\x20from\x20\x27','publications.','-api\x27;','TypeDefs);\x0a','2998908sXyQvm','withValue','791640AzkfHg','715668svSpyT','api/methods.js','injectAtBeginningOfFile','api','withRest','dir','const','api/publications.js','withGql','injectAtEndOfFile','checkMeteorPackage','/imports/api','6tERprY','378RQYDNb','\x27;\x0a','fixtures.','apiAnswers','withPubs','resolvers.','api/typeDefs.js','mongo','index.','push','4363112ISErMj'];a101c=function(){return A;};return a101c();}import a101e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xa2;let f=c[d];return f;},a101d(a,b);}Generator[a101x(0xcb)]({'name':a101x(0xa5),'aliases':['a'],'usage':a101x(0xf3),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a101x(0xa7)],'examples':[a101x(0xbc)],'description':a101x(0xc9)},async function(a,b){const y=a101x;try{const c=this[y(0xda)]['getMakaProjectConfig'](),d=[{'name':y(0xd9),'value':y(0xc8)},{'name':y(0xec),'value':'withFixtures'},{'name':'Publications','value':y(0xb3)}];c[y(0xc7)][y(0xa5)]===y(0xd4)&&d[y(0xb8)]({'name':y(0xcd),'value':y(0xa6)});c[y(0xc7)]['graphql']===y(0xde)&&d[y(0xb8)]({'name':y(0xe0),'value':y(0xaa)});const f={'type':y(0xe6),'name':y(0xb2),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0xd7)](f);g[y(0xd3)]===0x0&&(Log[y(0xbf)](y(0xdf)),process[y(0xc0)](0x1)),await this[y(0xda)][y(0xfa)](c,async()=>{const z=y,h=b[z(0xea)],i=paramCase(h),j=camelCase(h),k=b[z(0xa7)]?'/'+b[z(0xa7)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0xc7)]['api'],'graphql':c['engines'][z(0xcf)],'test':c[z(0xc7)][z(0xe9)],'noRename':!![],'withPubs':g[z(0xe5)](z(0xb3)),'withFixtures':g[z(0xe5)](z(0xe7)),'withMethods':g[z(0xe5)](z(0xc8)),'withRest':g['includes']('withRest')};let m='js';c['engines']['js']===z(0xf4)&&(m='ts');await this[z(0xda)][z(0xac)](['maka:rest',z(0xe4),z(0xdb),z(0xd6),z(0xb6)],{'shouldInstall':!![]}),await a101e[z(0xe2)](z(0xf1),[i],{'config':c,'where':z(0xef)});c[z(0xc7)]['api']===z(0xd4)&&(l[z(0xa6)]&&await this[z(0xda)]['template']({'srcPath':z(0xf2),'destPath':this['fsi'][z(0xdd)]({'pathParts':[z(0xe1),z(0xa5),b[z(0xa7)],i,z(0xdc)+m]}),'context':l,'config':c}));l[z(0xc8)]&&await this[z(0xda)][z(0xf0)]({'srcPath':z(0xa3),'destPath':this[z(0xda)][z(0xdd)]({'pathParts':['imports',z(0xa5),b[z(0xa7)],i,'rpc-methods.'+m]}),'context':l,'config':c});l[z(0xe7)]&&await this['fsi'][z(0xf0)]({'srcPath':'api/fixtures.js','destPath':this[z(0xda)][z(0xdd)]({'pathParts':[z(0xe1),'api',b[z(0xa7)],i,z(0xb1)+m]}),'context':l,'config':c});c[z(0xc7)][z(0xe9)]!=='none'&&this[z(0xda)][z(0xf0)]({'srcPath':'api/tests.js','destPath':this['fsi'][z(0xdd)]({'pathParts':[z(0xe1),z(0xa5),b['dir'],i,i+z(0xbe)+m]}),'context':l,'config':c});l[z(0xb3)]&&await this[z(0xda)][z(0xf0)]({'srcPath':z(0xa9),'destPath':this[z(0xda)][z(0xdd)]({'pathParts':[z(0xe1),z(0xa5),b[z(0xa7)],i,z(0xf6)+m]}),'context':l,'config':c});if(c[z(0xc7)][z(0xcf)]===z(0xde)){if(g[z(0xe5)](z(0xaa))){const o=this[z(0xda)][z(0xdd)]({'pathParts':[z(0xe1),z(0xbb),'server',z(0xb7)+c[z(0xc7)]['js']]}),p=this['fsi'][z(0xd2)]({'pathParts':[o],'config':c}),q=this[z(0xda)]['pathFromApp']({'pathParts':['imports',z(0xa5),b[z(0xa7)],i,'graphql',z(0xd1)+m]}),r=z(0xad)+k+i+z(0xed);this[z(0xda)]['template']({'srcPath':z(0xb5),'destPath':q,'context':l,'config':c}),await this[z(0xda)]['injectAtBeginningOfFile']({'filePath':p,'content':'import\x20{\x20typeDefs\x20as\x20'+j+z(0xf5)+r+z(0xb0)}),await this['fsi'][z(0xd5)]({'filePath':p,'content':z(0xbd)+j+z(0xf8),'begin':z(0xa8),'end':z(0xeb)});const s=this[z(0xda)]['pathFromApp']({'pathParts':[z(0xe1),'api',b[z(0xa7)],i,z(0xcf),z(0xb4)+m]}),t=z(0xad)+k+i+'/graphql/resolvers';await this[z(0xda)][z(0xf0)]({'srcPath':z(0xba),'destPath':s,'context':l,'config':c}),await this[z(0xda)][z(0xa4)]({'filePath':p,'content':z(0xce)+j+'Resolvers\x20}\x20from\x20\x27'+t+'\x27;'}),await this[z(0xda)][z(0xd5)]({'filePath':p,'content':z(0xd0)+j+z(0xe8),'begin':z(0xa8),'end':z(0xeb)});}}await this[z(0xda)][z(0xf0)]({'srcPath':z(0xc4),'destPath':this[z(0xda)][z(0xdd)]({'pathParts':[z(0xe1),'startup','server',z(0xc6)+i+z(0xc3)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0xda)][z(0xdd)]({'pathParts':[z(0xe1),z(0xbb),z(0xef),z(0xb7)+c[z(0xc7)]['js']]});await this[z(0xda)][z(0xab)]({'filePath':n,'content':'import\x20\x27./register-'+i+z(0xf7)});});}catch(h){console[y(0xbf)](h),process[y(0xc0)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a102m=a102d;(function(a,b){const j=a102d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a102m=a102d;(function(a,b){const j=a102d,c=a();while(!![]){try{const d=parseInt(j(0xe7))/0x1+-parseInt(j(0xe0))/0x2+-parseInt(j(0xe8))/0x3+-parseInt(j(0xf9))/0x4*(parseInt(j(0x105))/0x5)+-parseInt(j(0xff))/0x6+-parseInt(j(0x101))/0x7+parseInt(j(0xee))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xdf627));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0xde;let f=c[d];return f;},a102d(a,b);}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a102d;if(c){const e=c[k(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const l=a102d;return a102a[l(0xfc)]()[l(0xe2)]('(((.+)+)+)+$')['toString']()[l(0x103)](a102a)[l(0xe2)](l(0xf4));});a102a();function a102c(){const p=['391680dbOiwC','maka\x20g:collection\x20todos','dir','imports','apply','tsx','20057776kmGUSI','resourceName','none','injectAtEndOfFile','template','engines','(((.+)+)+)+$','collection/collection.js','\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','where','pathFromApp','4gCTCvK','withValue','collections','toString','maka:check','appPathPrefix','4483650czKkgp','collection','2608305ULgDvK','mongo','constructor','getMakaProjectConfig','1005335iHzTWy','index.','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','fsi','364598wxsKuk','test','search','import\x20\x27./collections','startup','create','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','41577gXRPpr'];a102c=function(){return p;};return a102c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a102m(0xe5)]({'name':a102m(0x100),'aliases':['col'],'usage':a102m(0xde),'checkWhere':!![],'shortDesc':a102m(0xe6),'validOpts':['dir',a102m(0xf7)],'description':a102m(0xf6),'examples':[a102m(0xe9)]},async function(a,b){const n=a102m;try{const c=this['fsi'][n(0x104)]();await this['fsi'][n(0xfa)](c,async()=>{const o=n,d=paramCase(b[o(0xef)]),f={'name':pascalCase(b[o(0xef)]),'collectionName':pascalCase(b[o(0xef)]),'fileName':d,'where':b[o(0xf7)],'test':c[o(0xf3)][o(0xe1)],'noRename':!![]};let g='js';c[o(0xf3)]['js']===o(0xed)&&(g='ts');await this[o(0xdf)]['checkMeteorPackage']([o(0x102),o(0xfd)],{'shouldInstall':!![]}),await this['fsi'][o(0xf2)]({'srcPath':o(0xf5),'destPath':this[o(0xdf)][o(0xf8)]({'pathParts':[o(0xeb),o(0xe4),b[o(0xfe)],o(0xfb),b['dir'],d+'.'+g]}),'context':f,'config':c});c[o(0xf3)]['test']!==o(0xf0)&&await this[o(0xdf)]['template']({'srcPath':'collection/tests.js','destPath':this[o(0xdf)][o(0xf8)]({'pathParts':[o(0xeb),o(0xe4),b[o(0xfe)],o(0xfb),b['dir'],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[o(0xea)]?'/'+b[o(0xea)]+'/':'/',i=this['fsi'][o(0xf8)]({'pathParts':['imports',o(0xe4),b[o(0xfe)],o(0x106)+c[o(0xf3)]['js']]});await this[o(0xdf)][o(0xf1)]({'filePath':i,'content':o(0xe3)+h+d+'\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103n=a103d;(function(a,b){const k=a103d,c=a();while(!![]){try{const d=parseInt(k(0x177))/0x1*(parseInt(k(0x183))/0x2)+parseInt(k(0x18c))/0x3*(parseInt(k(0x17c))/0x4)+-parseInt(k(0x17a))/0x5*(parseInt(k(0x16c))/0x6)+-parseInt(k(0x19f))/0x7+-parseInt(k(0x16e))/0x8*(-parseInt(k(0x1a6))/0x9)+-parseInt(k(0x18e))/0xa*(-parseInt(k(0x179))/0xb)+-parseInt(k(0x1a7))/0xc*(-parseInt(k(0x193))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xb853c));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x16a;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a103d;if(c){const e=c[l(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const m=a103d;return a103a[m(0x195)]()['search']('(((.+)+)+)+$')[m(0x195)]()[m(0x172)](a103a)[m(0x1a0)](m(0x182));});a103a();import a103e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a103n(0x16f)];function a103c(){const q=['fileName','setTemplate','css','2000187GMgSrO','7351356PtzCaj','.js','warn','className','injectAtBeginningOfFile','component/component.js','dir','4275732oEQNPd','pages','8onUckO','comp','api','resourceName','constructor','client','components','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','checkNpmPackage','26FuhRYU','withTranslations','20361feVqDw','10TwKZjZ','import\x20\x27./','188nxegMX','pathFromApp','template','pathFromProject','cssCaseName','fsi','(((.+)+)+)+$','17978WzKcwe','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','error','graphql','test/test.js','string','ramda','create','89889QxjZHU','apply','2810pAPXie','baseDir','component','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','/imports/ui/components','26ehMgww','root','toString','layouts','getMakaProjectConfig','.tests.js','test','none','features','ssr','findAppDirectory','true','10005289ZKetad','search','/imports/ui/','engines'];a103c=function(){return q;};return a103c();}Generator[a103n(0x18b)]({'name':a103n(0x190),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a103n(0x175),'validOpts':[{'name':a103n(0x18f),'values':['hooks',a103n(0x174),a103n(0x16d),a103n(0x196)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const o=a103n;try{const c=this['fsi'][o(0x19d)](),d=b['baseDir']?o(0x1a1)+b['baseDir']:o(0x192),f=this[o(0x181)][o(0x17d)]({'pathParts':[d,b[o(0x16b)],paramCase(b[o(0x171)]),paramCase(b['resourceName'])]}),g=await this['fsi'][o(0x197)]();await this['fsi']['withValue'](g,async()=>{const p=o;typeof g[p(0x17e)][p(0x199)]===p(0x189)&&(g[p(0x17e)][p(0x199)]=g[p(0x17e)][p(0x199)]===p(0x19e)?!![]:![],this[p(0x181)][p(0x1a4)](p(0x199),g[p(0x17e)]['test']));typeof g[p(0x17e)][p(0x1a5)]===p(0x189)&&(g['template'][p(0x1a5)]=g['template'][p(0x1a5)]===p(0x19e)?!![]:![],this['fsi']['setTemplate'](p(0x1a5),g[p(0x17e)][p(0x1a5)]));typeof g['template']['js']===p(0x189)&&(g[p(0x17e)]['js']=g[p(0x17e)]['js']==='true'?!![]:![],this[p(0x181)]['setTemplate']('js',g[p(0x17e)]['js']));!g[p(0x19b)]&&(g[p(0x19b)]={});!b[p(0x194)]&&!this[p(0x181)][p(0x176)](p(0x18a))&&(Log[p(0x1a9)](p(0x184)),await this[p(0x181)]['installNpmPackage']('ramda',{'cwd':c}));if(!b['root']&&!this[p(0x181)][p(0x176)]('react')){Log[p(0x186)](p(0x191));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a103e['relative'](this[p(0x181)][p(0x17f)]({}),f),'cssCaseName':paramCase(b[p(0x171)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0x171)]),'fileName':paramCase(b[p(0x171)]),'graphql':g['engines'][p(0x187)],'features':g[p(0x19b)],'client':g[p(0x1a2)][p(0x173)],'api':g[p(0x1a2)][p(0x170)],'ssr':g['engines'][p(0x19c)],'test':g[p(0x1a2)][p(0x199)],'theme':g[p(0x1a2)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x19b)][p(0x178)]};await this[p(0x181)][p(0x17e)]({'srcPath':p(0x16a),'destPath':f+p(0x1a8),'context':h,'framework':p(0x185),'config':g});g[p(0x1a2)][p(0x199)]!==p(0x19a)&&await this[p(0x181)][p(0x17e)]({'srcPath':p(0x188),'destPath':f+p(0x198),'context':h,'framework':p(0x185),'config':g});g[p(0x17e)]['css']&&(await this['fsi'][p(0x17e)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b[p(0x171)])}),'config':g}),await this[p(0x181)][p(0x1ab)]({'filePath':f+'.'+g[p(0x1a2)]['js'],'content':p(0x17b)+h[p(0x180)]+'.'+g[p(0x1a2)]['css']+'\x27;'}));const i=b[p(0x16b)]?'/'+b['dir']+'/':'/',j=''+d+i+h[p(0x1a3)]+'/'+h[p(0x1a3)];await this[p(0x181)]['injectTemplateModule'](h[p(0x1aa)],g,j);});}catch(h){Log[o(0x186)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a104k=a104d;(function(a,b){const h=a104d,c=a();while(!![]){try{const d=parseInt(h(0xae))/0x1*(-parseInt(h(0xb3))/0x2)+parseInt(h(0x98))/0x3+-parseInt(h(0x93))/0x4*(-parseInt(h(0xa0))/0x5)+parseInt(h(0xa9))/0x6+-parseInt(h(0x97))/0x7+-parseInt(h(0x99))/0x8*(-parseInt(h(0xb2))/0x9)+-parseInt(h(0x9c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xba180));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a104d;if(c){const e=c[i(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const j=a104d;return a104a[j(0xa8)]()[j(0xaf)](j(0x95))[j(0xa8)]()[j(0xa6)](a104a)[j(0xaf)]('(((.+)+)+)+$');});a104a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a104c(){const n=['prod','development','Generate\x20configuration\x20settings.','1310qUFEuj','maka\x20{generate,\x20g}:{config}\x20<name>','getMakaProjectConfig','config/process.env','production','settings.json','constructor','appName','toString','2545284NolcWI','dev','fsi','isDocker','pathFromProject','164827UZNYiG','search','resourceName','template','11241pVDmZE','18HkicFT','14524IkcITE','apply','(((.+)+)+)+$','config','3403358eKjqvB','1718025SuLxGZ','5144hcsbCK','ubuntu','config/settings.json','194410FvUXfA'];a104c=function(){return n;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x93;let f=c[d];return f;},a104d(a,b);}Generator['create']({'name':a104k(0x96),'usage':a104k(0xa1),'shortDesc':a104k(0x9f),'validOpts':[a104k(0xac)],'examples':['maka\x20g:config\x20production']},async function(a,b){const l=a104k,c=this[l(0xab)][l(0xa2)]();await this[l(0xab)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0xa7)],'appFileCase':paramCase(c[m(0xa7)]),'name':pascalCase(b[m(0xb0)]),'fileName':paramCase(b[m(0xb0)]),'camelCase':camelCase(b[m(0xb0)]),'userName':m(0x9a),'isDocker':b['isDocker']};let e=b[m(0xb0)];if(e===m(0xaa))e=m(0x9e);else e===m(0x9d)&&(e=m(0xa4));const f=this[m(0xab)][m(0xad)]({'pathParts':[m(0x96),e,m(0xa5)]});await this['fsi'][m(0xb1)]({'srcPath':m(0x9b),'destPath':f,'context':d,'config':c});if(!b[m(0xac)]){const g=this[m(0xab)]['pathFromProject']({'pathParts':[m(0x96),e,'process.env']});await this['fsi'][m(0xb1)]({'srcPath':m(0xa3),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105m=a105d;
|
|
1
|
+
const a105m=a105d;(function(a,b){const j=a105d,c=a();while(!![]){try{const d=parseInt(j(0x119))/0x1*(-parseInt(j(0x131))/0x2)+-parseInt(j(0x13e))/0x3*(-parseInt(j(0x12b))/0x4)+parseInt(j(0x137))/0x5*(-parseInt(j(0x12f))/0x6)+-parseInt(j(0x132))/0x7+parseInt(j(0x128))/0x8*(parseInt(j(0x13f))/0x9)+-parseInt(j(0x139))/0xa*(-parseInt(j(0x11b))/0xb)+parseInt(j(0x136))/0xc*(parseInt(j(0x13a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x840cc));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a105d;if(c){const e=c[k(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const l=a105d;return a105a[l(0x10e)]()[l(0x138)](l(0x141))['toString']()['constructor'](a105a)['search']('(((.+)+)+)+$');});a105a();function a105c(){const p=['dbc','config.','87843RuzKBG','9LkBexT','mssql','(((.+)+)+)+$','dbc/register-dbc.js','better-sqlite3','toString','-dbc.','error','pgsql','maka\x20g:dbc\x20geoserver\x20--type=pgsql','warn','engines','conn.','import\x20\x27./register-','template','create','11GhHQfb','maka\x20g:dbc\x20todos\x20--type=sqlite','374HiCNui','resourceName','index.','withValue','startup','tsx','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','-dbc\x27;','server','sqlite','imports','dir','maka\x20g:dbc\x20azure\x20--type=mssql','521808RCBXuu','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','fsi','68EqXQcf','checkNpmPackage','dbc/config.js','type','259470RkGcGX','apply','59042gKLSAQ','4175899gnPFIh','pathFromApp','installNpmPackage','injectAtEndOfFile','1110468RdUmYD','125QboepW','search','38090VMLonc','260JSVDdJ','getMakaProjectConfig'];a105c=function(){return p;};return a105c();}import{camelCase,paramCase,pascalCase}from'change-case';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x10d;let f=c[d];return f;},a105d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a105m(0x118)]({'name':a105m(0x13c),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a105m(0x129),'validOpts':[a105m(0x126)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a105m(0x12e),'values':['pgsql','mssql',a105m(0x124)]}],'examples':[a105m(0x112),a105m(0x127),a105m(0x11a)]},async function(a,b){const n=a105m;try{const c=await this[n(0x12a)][n(0x13b)](),d=this[n(0x12a)]['pathFromApp']({}),f=paramCase(b[n(0x11c)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[n(0x11c)]),'camelCase':camelCase(b[n(0x11c)]),'type':b['type'],'engine':c[n(0x114)]['js'],'noRename':!![]};await this[n(0x12a)][n(0x11e)](c,async()=>{const o=n;let h='js';c[o(0x114)]['js']===o(0x120)&&(h='ts');b[o(0x12e)]===o(0x111)&&!this[o(0x12a)][o(0x12c)]('pg')&&(Log[o(0x113)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[o(0x12a)]['installNpmPackage']('pg',{'cwd':d}));b['type']===o(0x140)&&!this['fsi'][o(0x12c)](o(0x140))&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x12a)][o(0x134)](o(0x140),{'cwd':d}));b[o(0x12e)]===o(0x124)&&!this[o(0x12a)][o(0x12c)](o(0x10d))&&(Log[o(0x113)](o(0x121)),await this[o(0x12a)][o(0x134)]('better-sqlite3',{'cwd':d}));await this[o(0x12a)][o(0x117)]({'srcPath':o(0x12d),'destPath':this['fsi'][o(0x133)]({'pathParts':[o(0x125),o(0x11f),o(0x123),o(0x13c),b['dir'],f,o(0x13d)+h]}),'context':g,'config':c}),await this[o(0x12a)]['template']({'srcPath':'dbc/conn.js','destPath':this[o(0x12a)][o(0x133)]({'pathParts':[o(0x125),o(0x11f),o(0x123),'dbc',b[o(0x126)],f,o(0x115)+h]}),'context':g,'config':c}),await this['fsi'][o(0x117)]({'srcPath':o(0x142),'destPath':this[o(0x12a)][o(0x133)]({'pathParts':[o(0x125),'startup',o(0x123),'register-'+f+o(0x10f)+h]}),'context':g,'config':c});const i=this[o(0x12a)][o(0x133)]({'pathParts':[o(0x125),o(0x11f),o(0x123),o(0x11d)+c[o(0x114)]['js']]});await this[o(0x12a)][o(0x135)]({'filePath':i,'content':o(0x116)+f+o(0x122)});});}catch(h){Log[n(0x110)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106i=a106d;(function(a,b){const f=a106d,c=a();while(!![]){try{const d
|
|
1
|
+
const a106i=a106d;(function(a,b){const f=a106d,c=a();while(!![]){try{const d=-parseInt(f(0x1e0))/0x1*(parseInt(f(0x1da))/0x2)+parseInt(f(0x1f5))/0x3+-parseInt(f(0x1ee))/0x4*(-parseInt(f(0x1de))/0x5)+-parseInt(f(0x1e1))/0x6+parseInt(f(0x1e9))/0x7*(-parseInt(f(0x1dd))/0x8)+parseInt(f(0x1d4))/0x9*(parseInt(f(0x1e5))/0xa)+parseInt(f(0x1ed))/0xb*(parseInt(f(0x1e3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xa1b1d));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a106d;if(c){const e=c[g(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const h=a106d;return a106a['toString']()[h(0x1eb)](h(0x1f0))['toString']()[h(0x1e7)](a106a)[h(0x1eb)](h(0x1f0));});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a106d(a,b);}function a106c(){const l=['error','7441GLbYqF','apply','search','maka\x20g:dockerfile','11ZjwYIg','12OXJpwT','getGlobalConfig','(((.+)+)+)+$','getMakaProjectConfig','fsi','template','docker/Dockerfile','3065184DVePSS','create','app','774kqwTVy','app.tar.gz','isFile','service','build','join','2vnqAbO','appName','findProjectDirectory','2128Ymgiwc','77635kPXGUA','Generate\x20an\x20updated\x20dockerfile','800231igwaWi','6882606iczsYU','cert','11900256DirYYZ','withValue','96790WbTxUT','Dockerfile','constructor'];a106c=function(){return l;};return a106c();}import a106e from'path';Generator[a106i(0x1f6)]({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a106i(0x1df),'validOpts':[],'noNeedResource':!![],'examples':[a106i(0x1ec)]},async function(){const j=a106i;try{const a=await this[j(0x1f2)][j(0x1f1)](),b=await this[j(0x1f2)][j(0x1ef)](),c=this[j(0x1f2)][j(0x1dc)]();await this[j(0x1f2)][j(0x1e4)](a,async()=>{const k=j,d={'app':b[k(0x1db)],'config':a,'appPath':a106e[k(0x1d9)](c,k(0x1f7)),'bundlePath':a106e[k(0x1d9)](c,k(0x1d8),k(0x1d5)),'useCert':this[k(0x1f2)][k(0x1d6)](b[k(0x1e2)])};await this[k(0x1f2)][k(0x1f3)]({'srcPath':k(0x1f4),'destPath':a106e[k(0x1d9)](c,k(0x1e6)),'framework':k(0x1d7),'context':d,'config':a});});}catch(d){Log[j(0x1e8)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=-parseInt(l(0x1f6))/0x1+-parseInt(l(0x1dd))/0x2*(-parseInt(l(0x1f5))/0x3)+parseInt(l(0x1e8))/0x4+parseInt(l(0x203))/0x5*(-parseInt(l(0x1e3))/0x6)+parseInt(l(0x20f))/0x7+parseInt(l(0x1db))/0x8*(parseInt(l(0x1f8))/0x9)+parseInt(l(0x1f9))/0xa*(-parseInt(l(0x1ea))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xf0086));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0x1f4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a[n(0x1d9)]()[n(0x1f7)]('(((.+)+)+)+$')[n(0x1d9)]()['constructor'](a107a)[n(0x1f7)](n(0x1ed));});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a107d(a,b);}a107a();import a107e from'path';function a107c(){const r=['@apollo/client','template','\x20hook...','6WAmTNS','template/template.css','fsi','hook','maka\x20g:hook\x20cool-hook','2185836TLrbxI','force','3998038ffJouc','installNpmPackage','assign','(((.+)+)+)+$','error','pathFromProject','resourceName','.css','withValue','.js','apply','16002wqxtdc','824101EHJKTh','search','9ZadJce','20GurQdm','import\x20\x27./','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','pathFromApp','injectTemplateModule','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','checkNpmPackage','fileName','3881005ecPVNi','css','injectAtBeginningOfFile','/imports/ui/hooks','test/test.js','apollo','components','pages','none','notice','dir','.app-tests.js','2028117umrGCu','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','layouts','@apollo/client\x20isomorphic-fetch','baseDir','className','hook/hook.js','test','getMakaProjectConfig','create','toString','react','6778656wkGEIx','engines','610rAMUQs','withTranslations','features'];a107c=function(){return r;};return a107c();}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a107o(0x218)]({'name':a107o(0x1e6),'aliases':['h'],'checkWhere':![],'usage':a107o(0x1ff),'shortDesc':a107o(0x210),'validOpts':[{'name':a107o(0x213),'values':['hooks',a107o(0x209),a107o(0x20a),a107o(0x211)]},{'name':a107o(0x1e9),'boolFlag':!![]}],'examples':[a107o(0x1e7)],'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=a107o;Log[p(0x20c)]('Creating\x20'+b['resourceName']+p(0x1e2));try{const c=this[p(0x1e5)][p(0x201)](p(0x1da));if(!c){Log[p(0x1ee)](p(0x200));throw new UsageError();}const d=this['fsi'][p(0x1fd)](b),f=b[p(0x213)]?'/imports/ui/'+b[p(0x213)]:p(0x206),g=this[p(0x1e5)][p(0x1fd)]({'pathParts':[f,b[p(0x20d)],paramCase(b['resourceName']),paramCase(b[p(0x1f0)])]}),h=await this[p(0x1e5)][p(0x217)]();await this[p(0x1e5)][p(0x1f2)](h,async()=>{const q=p;typeof h['template'][q(0x204)]==='string'&&(h[q(0x1e1)]['css']=h[q(0x1e1)][q(0x204)]==='true'?!![]:![],this['fsi']['setTemplate'](q(0x204),h['template'][q(0x204)]));h[q(0x1dc)]['graphql']===q(0x208)&&!this[q(0x1e5)]['checkNpmPackage'](q(0x1e0))&&(Log['warn'](q(0x1fc)),await this[q(0x1e5)][q(0x1eb)](q(0x212),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[q(0x1f0)]),'name':pascalCase(b[q(0x1f0)]),'graphql':h['engines']['graphql'],'theme':h[q(0x1dc)][q(0x1fb)],'features':h[q(0x1df)],'myPath':a107e['relative'](this[q(0x1e5)][q(0x1ef)]({}),g),'fileName':paramCase(b[q(0x1f0)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][q(0x1de)]};await this[q(0x1e5)][q(0x1e1)]({'srcPath':q(0x215),'destPath':g+q(0x1f3),'context':i,'config':h,'framework':'react','force':b['force']});h[q(0x1e1)][q(0x204)]&&(await this[q(0x1e5)][q(0x1e1)]({'srcPath':q(0x1e4),'destPath':g+q(0x1f1),'context':Object[q(0x1ec)]({},i,{'className':i['cssCaseName']}),'config':h,'force':b[q(0x1e9)]}),await this[q(0x1e5)][q(0x205)]({'filePath':g+'.'+h[q(0x1dc)]['js'],'content':q(0x1fa)+i['fileName']+'.'+h[q(0x1dc)]['css']+'\x27;'}));h[q(0x1dc)][q(0x216)]!==q(0x20b)&&await this[q(0x1e5)][q(0x1e1)]({'srcPath':q(0x207),'destPath':g+q(0x20e),'framework':'react','context':i,'config':h,'force':b[q(0x1e9)]});const j=b[q(0x20d)]?'/'+b[q(0x20d)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[q(0x202)];await this['fsi'][q(0x1fe)](i[q(0x214)],h,k);});}catch(i){Log[p(0x1ee)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x12d;var f=c[d];return f;},a108d(a,b);}(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x137))/0x1*(parseInt(f(0x135))/0x2)+-parseInt(f(0x134))/0x3*(-parseInt(f(0x133))/0x4)+-parseInt(f(0x130))/0x5+parseInt(f(0x131))/0x6+-parseInt(f(0x12d))/0x7*(-parseInt(f(0x138))/0x8)+-parseInt(f(0x13a))/0x9+-parseInt(f(0x136))/0xa*(-parseInt(f(0x12e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x4075b));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a[h(0x132)]()['search'](h(0x12f))[h(0x132)]()['constructor'](a108a)['search'](h(0x12f));});function a108c(){var i=['982206DcBsLQ','toString','92eLEcMy','56229FpRxtu','44120hajdnB','6258530useHMs','13SqDgKn','172616PsMCZV','apply','3642354akmGWn','35fVvEmG','11jMSceg','(((.+)+)+)+$','1865075aJuQqs'];a108c=function(){return i;};return a108c();}a108a();import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0xb6))/0x1*(-parseInt(f(0xa9))/0x2)+-parseInt(f(0xb0))/0x3*(parseInt(f(0xb4))/0x4)+parseInt(f(0xb2))/0x5*(-parseInt(f(0xad))/0x6)+-parseInt(f(0xa7))/0x7*(parseInt(f(0xb3))/0x8)+parseInt(f(0xaf))/0x9*(parseInt(f(0xb7))/0xa)+parseInt(f(0xaa))/0xb*(-parseInt(f(0xa6))/0xc)+parseInt(f(0xab))/0xd*(parseInt(f(0xb1))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x5f55b));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0xb8)]()[h(0xa8)](h(0xb5))[h(0xb8)]()[h(0xac)](a109a)[h(0xa8)](h(0xb5));});a109a();function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0xa6;var f=c[d];return f;},a109d(a,b);}function a109c(){var i=['apply','48834PWasNc','3dDSjns','140ZdTDQS','1475805dZpTcE','32OwzWyB','2009948cFDiow','(((.+)+)+)+$','8Vqxiqn','980tOYNmu','toString','1308IVCQLJ','470589WaGjsK','search','14388RacpLz','70037HgBTnf','2030275QysfWd','constructor','6bWhOod'];a109c=function(){return i;};return a109c();}import'./esri.generator.js';import'./map.esri.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x16a))/0x1+-parseInt(f(0x17a))/0x2*(parseInt(f(0x16c))/0x3)+parseInt(f(0x177))/0x4*(parseInt(f(0x17b))/0x5)+-parseInt(f(0x16b))/0x6+parseInt(f(0x16d))/0x7+parseInt(f(0x172))/0x8*(-parseInt(f(0x168))/0x9)+parseInt(f(0x16e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xc278c));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x175)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a['toString']()['search'](h(0x16f))[h(0x169)]()['constructor'](a110a)[h(0x170)]('(((.+)+)+)+$');});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x168;let f=c[d];return f;},a110d(a,b);}a110a();import{Generator}from'../../../generator.js';import a110e from'../kit.js';const EsriGen=Generator['create']({'name':a110i(0x173),'aliases':['e'],'usage':a110i(0x174),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20Esri\x20Maps','validOpts':[''],'isPro':!![],'examples':[a110i(0x176)],'description':a110i(0x179)},async function(){const j=a110i;return{'success':!![],'message':j(0x171),'details':{'filesCreated':[j(0x178)],'filesUpdated':['/foo']}};},async function(){},a110e);export default EsriGen;function a110c(){const k=['Esri\x20Kit\x20generated\x20successfully','8OgBTMt','esri','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','apply','maka\x20g:kit:e','602048czFAyW','/foo/bar','\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','2jvbVQA','45iAiDGE','11725326xGZMyD','toString','68513DMfmNU','1616520iFwFgj','2059929BQxuPb','7984879PFZRDG','6286410EXewUm','(((.+)+)+)+$','search'];a110c=function(){return k;};return a110c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111s=a111d;(function(a,b){const p=a111d,c=a();while(!![]){try{const d=parseInt(p(0x15e))/0x1+parseInt(p(0x187))/0x2*(parseInt(p(0x16d))/0x3)+-parseInt(p(0x171))/0x4*(parseInt(p(0x159))/0x5)+-parseInt(p(0x184))/0x6+parseInt(p(0x15c))/0x7+-parseInt(p(0x183))/0x8+parseInt(p(0x172))/0x9*(parseInt(p(0x177))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x32455));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a111d;if(c){const e=c[q(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const r=a111d;return a111a[r(0x166)]()['search'](r(0x165))['toString']()[r(0x175)](a111a)['search'](r(0x165));});function a111c(){const v=['@esri/react-arcgis','3166312FSSruu','1270374KDnCSy','</div>','ssr','9636nHdSQN','/imports/startup/client/templates','page','true','kit/esri/map/','56820MDSBLX','FALSE','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','2669912VfjOXS','create','173433XhfaZC','react','apply','REACT','injectTemplateModule','/imports/ui/hooks','map','(((.+)+)+)+$','toString','injectImport','fsi','checkNpmPackage','baseDir','replaceAll','<div\x20id=\x22map-component\x22>','108zjGHMT','/imports/startup/lib/templates','findProjectDirectory','Generate\x20an\x20Esri\x20map\x20component','136AdSUWi','18ISfcTy','getMakaProjectConfig','.js','constructor','engines','2357530gwqqVT','bright','processAndRunGenerator','dir','appName','template','esri-loader','Generating\x20a\x20map\x20component','pathFromApp','<div\x20id=\x22map-hook\x22>','exit'];a111c=function(){return v;};return a111c();}a111a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a111e from'./esri.generator.js';import a111f from'../../../generators/maka.gen.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x159;let f=c[d];return f;},a111d(a,b);}import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a111s(0x15d)]({'name':a111s(0x164),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','shortDesc':a111s(0x170),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a111s(0x161)],'ssr':SsrEngines[a111s(0x15a)]},'description':'\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'},async function(a,b){const t=a111s;try{Log[t(0x178)](t(0x17e));const c='basic-map';await this[t(0x168)][t(0x169)]([t(0x182),t(0x17d)],{'shouldInstall':!![]});const d=this[t(0x168)][t(0x16f)](),f=this[t(0x168)][t(0x173)](),g=f[t(0x176)][t(0x186)]===t(0x18a),h=await a111f[t(0x179)](t(0x189),[t(0x164)],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0x17b)])[t(0x16b)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0x16a)]?'/imports/ui/'+b[t(0x16a)]:t(0x163),k=this[t(0x168)][t(0x17f)]({'pathParts':[j,b[t(0x17a)],paramCase(c),paramCase(c)]});this[t(0x168)]['withValue'](f,async()=>{const u=t;this[u(0x168)][u(0x17c)]({'srcPath':u(0x18b)+c+u(0x174),'destPath':k+u(0x174),'framework':u(0x15f),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0x17a)]+'/'+c+'/'+c;await this[t(0x168)][t(0x162)](c,f,l);const m=h['split']('/'),n=this['fsi']['pathFromApp']({'pathParts':m});await this[t(0x168)][t(0x167)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0x16e):t(0x188),'isNamedExport':!![]}),await this[t(0x168)]['injectIntoFile']({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x15b),'begin':[t(0x180),t(0x16c)],'end':[t(0x185)],'replace':!![]});}catch(o){Log['error'](o),process[t(0x181)](0x1);}},async function(){},a111e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a112c(){const j=['9347qaoNwe','3260499rPnMZc','constructor','20vJKdQi','253448yvcPJY','9FvKMXR','(((.+)+)+)+$','7EeLhNK','1165914oYjZyD','search','412640pydHOW','create','maka\x20g:k','kit','20469Zznvdd','58ZTidhl','190750njnARo','apply'];a112c=function(){return j;};return a112c();}function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xd1;let f=c[d];return f;},a112d(a,b);}const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=parseInt(f(0xd6))/0x1+parseInt(f(0xd3))/0x2*(-parseInt(f(0xd2))/0x3)+parseInt(f(0xd9))/0x4*(-parseInt(f(0xd4))/0x5)+parseInt(f(0xde))/0x6+parseInt(f(0xdd))/0x7*(parseInt(f(0xda))/0x8)+parseInt(f(0xdb))/0x9*(-parseInt(f(0xe0))/0xa)+parseInt(f(0xd7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x18df3));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a['toString']()[h(0xdf)](h(0xdc))['toString']()[h(0xd8)](a112a)['search'](h(0xdc));});a112a();import{Generator}from'../../generator.js';const KitGen=Generator[a112i(0xe1)]({'name':a112i(0xd1),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<name>','shortDesc':'Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit',a112i(0xe2)]},async function(){});export default KitGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a113c(){var i=['
|
|
1
|
+
function a113c(){var i=['constructor','733670GAVpZq','apply','11QBoXti','4129416yWdgic','search','4908084xsqoYo','10bdrDhp','2154024TSxeXN','39837vcJKkG','48759abgEKE','16bqLzaj','80BkEbUq','1919655vJqbYx','16fWWaWh','toString'];a113c=function(){return i;};return a113c();}(function(a,b){var f=a113d,c=a();while(!![]){try{var d=parseInt(f(0x19c))/0x1*(-parseInt(f(0x1a1))/0x2)+parseInt(f(0x19d))/0x3*(-parseInt(f(0x19f))/0x4)+parseInt(f(0x1a0))/0x5+parseInt(f(0x19b))/0x6+parseInt(f(0x1a4))/0x7*(parseInt(f(0x19e))/0x8)+-parseInt(f(0x197))/0x9*(parseInt(f(0x19a))/0xa)+-parseInt(f(0x196))/0xb*(-parseInt(f(0x199))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x3f3a6));var a113b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a113d;if(c){var e=c[g(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){var h=a113d;return a113a[h(0x1a2)]()['search']('(((.+)+)+)+$')[h(0x1a2)]()[h(0x1a3)](a113a)[h(0x198)]('(((.+)+)+)+$');});a113a();import'./mui.generator.js';function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0x196;var f=c[d];return f;},a113d(a,b);}import'./frame.mui.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114A=a114d;(function(a,b){const x=a114d,c=a();while(!![]){try{const d=parseInt(x(
|
|
1
|
+
const a114A=a114d;(function(a,b){const x=a114d,c=a();while(!![]){try{const d=parseInt(x(0x107))/0x1+-parseInt(x(0xe7))/0x2+-parseInt(x(0x10a))/0x3+parseInt(x(0xe3))/0x4+parseInt(x(0xed))/0x5*(-parseInt(x(0xe9))/0x6)+-parseInt(x(0x119))/0x7+parseInt(x(0x117))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xe1668));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a114d;if(c){const e=c[y(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const z=a114d;return a114a[z(0xe5)]()[z(0x105)](z(0xf4))['toString']()[z(0xf7)](a114a)[z(0x105)]('(((.+)+)+)+$');});a114a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a114e from'path';import a114f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0xe2;let f=c[d];return f;},a114d(a,b);}Generator[a114A(0xe4)]({'name':a114A(0x115),'aliases':['f'],'usage':a114A(0x110),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','validOpts':[a114A(0xec)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a114A(0xf6)]},'examples':[a114A(0x10e),a114A(0xe2)],'description':a114A(0x122)},async function(a,b){const B=a114A;try{const c=B(0x11d),d=B(0x106),f=this[B(0xee)][B(0xf5)](),g=f[B(0xff)][B(0xea)]===B(0x114);await this[B(0xee)][B(0x109)](B(0x118),{'shouldInstall':!![]});const h=this['fsi']['findAppDirectory'](),i=a114e[B(0xfc)](h,'imports','ui','layouts'),j=this['fsi'][B(0x111)](i),k=await Actions[B(0x10c)]({'type':B(0xfb),'name':B(0xec),'message':'Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','choices':j});if(k['layouts'][B(0x116)]===0x0){Log[B(0xfa)](B(0xfd));return;}const l=b[B(0x11c)]?'/imports/ui/'+b[B(0x11c)]:B(0x10b),m=this['fsi'][B(0x102)]({'pathParts':[l,b[B(0x10f)],paramCase(c),paramCase(c)]}),n=this[B(0xee)][B(0x102)]({'pathParts':[l,b[B(0x10f)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0x108)])[B(0xe8)]('-','\x20')};await this['fsi'][B(0xf9)](f,async()=>{const C=B;await this[C(0xee)][C(0x112)]({'srcPath':C(0xef)+c+C(0xf2),'destPath':m+C(0xf2),'framework':C(0x123),'context':o,'config':f,'force':![],'ignore':![]}),await this['fsi'][C(0x112)]({'srcPath':C(0x11a)+d+'.js','destPath':n+C(0xf2),'framework':C(0x123),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b['dir']+'/'+c+'/'+c;await this[B(0xee)]['injectTemplateModule'](c,f,p);const q=''+l+b['dir']+'/'+d+'/'+d;await this[B(0xee)][B(0xfe)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0xee)][B(0xe6)](a114e[B(0xfc)](i,s),{'extensions':['jsx',B(0xf3)],'omit':[B(0x101),B(0x120),B(0x124)]});for(const u of t){const v=a114e[B(0xfc)](i,s,u);await this[B(0xee)][B(0x100)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?B(0x11e):B(0x104),'isNamedExport':!![]}),await this[B(0xee)][B(0x121)]({'filePath':v,'content':'<'+pascalCase(c)+B(0xeb),'begin':[B(0x11b)+s+'\x22>',B(0x11b)+s+B(0x113)],'end':['{this.props.children}',B(0x10d),B(0xf0),B(0xf8)]}),await this[B(0xee)][B(0x100)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0x11e):B(0x104),'isNamedExport':!![]}),await this[B(0xee)][B(0x121)]({'filePath':v,'content':'<'+pascalCase(d)+B(0xeb),'begin':['<div\x20id=\x22'+s+'\x22>',B(0x11b)+s+B(0x113)],'end':[B(0x103),'{\x20this.props.children\x20}',B(0xf0),'{\x20props.children\x20}']});}}return!![];}catch(w){Log[B(0xfa)](w);}},async function(){const D=a114A;console['log'](D(0xf1));},a114f);function a114c(){const E=['length','35311112BzMbzp','session','12589703utfhqE','kit/mui/frame/drawers/','<div\x20id=\x22','baseDir','basic-app-bar','/imports/startup/lib/templates','apply','tests','injectIntoFile','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','react','test','maka\x20g:k:m:f','1186780yNjPoG','create','toString','getFiles','905728qMEsjB','replaceAll','444DJAzEm','ssr','\x20/>\x0a','layouts','60425PtbiBz','fsi','kit/mui/frame/app-bars/','{props.children}','Cleaning\x20up...','.js','tsx','(((.+)+)+)+$','getMakaProjectConfig','REACT','constructor','{\x20props.children\x20}','withValue','error','checkbox','join','No\x20layouts\x20selected','injectTemplateModule','engines','injectImport','app-tests','pathFromApp','{this.props.children}','/imports/startup/client/templates','search','basic-drawer','1203706VeXwyp','appName','checkMeteorPackage','5536101tVGEry','/imports/ui/hooks','options','{\x20this.props.children\x20}','maka\x20generate:kit:mui:frame','dir','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','getDirectories','template','-hook\x22>','true','frame'];a114c=function(){return E;};return a114c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115h=a115d;function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x9b;let f=c[d];return f;},a115d(a,b);}function a115c(){const i=['5176514chwZrd','4995ucDayQ','845BxDfXx','constructor','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','2508wUZmXF','search','mui','3413552RWzYHl','6qQWAnc','62muvUTY','3447588laYzbg','toString','23876rYEUTj','2107193zCbcGs','maka\x20g:kit:m','Material-UI\x20Kit','17930hLGQGf','create'];a115c=function(){return i;};return a115c();}(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(0x9e))/0x1*(-parseInt(f(0x9b))/0x2)+parseInt(f(0x9c))/0x3+parseInt(f(0xa9))/0x4*(parseInt(f(0xa6))/0x5)+-parseInt(f(0xad))/0x6*(parseInt(f(0xa4))/0x7)+parseInt(f(0xac))/0x8+parseInt(f(0xa5))/0x9*(-parseInt(f(0xa2))/0xa)+parseInt(f(0x9f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xd696b));const a115b=(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;};}()),a115a=a115b(this,function(){const g=a115d;return a115a[g(0x9d)]()[g(0xaa)]('(((.+)+)+)+$')[g(0x9d)]()[g(0xa7)](a115a)[g(0xaa)]('(((.+)+)+)+$');});a115a();import{Generator}from'../../../generator.js';import a115e from'../kit.js';const MuiGen=Generator[a115h(0xa3)]({'name':a115h(0xab),'aliases':['m'],'usage':a115h(0xa8),'noNeedResource':!![],'shortDesc':a115h(0xa1),'validOpts':[''],'isPro':![],'examples':[a115h(0xa0)]},async function(){throw'NIE';},async function(){},a115e);export default MuiGen;
|