@maka/maka-cli 4.5.17 → 4.5.19
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/package.json +1 -1
- package/bundle/obf/package.json +0 -127
- package/bundle/obf/src/README.md +0 -31
- package/bundle/obf/src/command.js +0 -1
- package/bundle/obf/src/commands/_index.js +0 -1
- package/bundle/obf/src/commands/aws/_index.js +0 -1
- package/bundle/obf/src/commands/aws/aws.command.js +0 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/build/_index.js +0 -1
- package/bundle/obf/src/commands/build/build.js +0 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/create.js +0 -1
- package/bundle/obf/src/commands/debug.js +0 -1
- package/bundle/obf/src/commands/deploy.js +0 -1
- package/bundle/obf/src/commands/game/_index.js +0 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/play.command.js +0 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/door.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/inventory.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/items.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/player.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/puzzles.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/room.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/rooms.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/types.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/eventBus.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/generate.js +0 -1
- package/bundle/obf/src/commands/get/_index.js +0 -1
- package/bundle/obf/src/commands/get/get.command.js +0 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/help.js +0 -1
- package/bundle/obf/src/commands/jsdoc.js +0 -1
- package/bundle/obf/src/commands/lint.js +0 -1
- package/bundle/obf/src/commands/login.js +0 -1
- package/bundle/obf/src/commands/logout.js +0 -1
- package/bundle/obf/src/commands/logs.js +0 -1
- package/bundle/obf/src/commands/maka.cmd.js +0 -1
- package/bundle/obf/src/commands/murder.js +0 -1
- package/bundle/obf/src/commands/proxy.js +0 -1
- package/bundle/obf/src/commands/reconfig.js +0 -1
- package/bundle/obf/src/commands/run/_index.js +0 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/run/run.command.js +0 -1
- package/bundle/obf/src/commands/set/_index.js +0 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/set/set.command.js +0 -1
- package/bundle/obf/src/commands/ssh.js +0 -1
- package/bundle/obf/src/commands/ssl.js +0 -1
- package/bundle/obf/src/commands/test.js +0 -1
- package/bundle/obf/src/commands/version.js +0 -1
- package/bundle/obf/src/error.js +0 -1
- package/bundle/obf/src/generator.js +0 -1
- package/bundle/obf/src/generators/_index.js +0 -1
- package/bundle/obf/src/generators/api.js +0 -1
- package/bundle/obf/src/generators/collection.js +0 -1
- package/bundle/obf/src/generators/component.js +0 -1
- package/bundle/obf/src/generators/config.js +0 -1
- package/bundle/obf/src/generators/dbc.js +0 -1
- package/bundle/obf/src/generators/dockerfile.js +0 -1
- package/bundle/obf/src/generators/hook.js +0 -1
- package/bundle/obf/src/generators/kit.js +0 -1
- package/bundle/obf/src/generators/layout.js +0 -1
- package/bundle/obf/src/generators/maka.gen.js +0 -1
- package/bundle/obf/src/generators/methods.js +0 -1
- package/bundle/obf/src/generators/package.js +0 -1
- package/bundle/obf/src/generators/page.js +0 -1
- package/bundle/obf/src/generators/publish.js +0 -1
- package/bundle/obf/src/generators/route.js +0 -1
- package/bundle/obf/src/generators/service.js +0 -1
- package/bundle/obf/src/generators/services/_index.js +0 -1
- package/bundle/obf/src/generators/services/openssl.js +0 -1
- package/bundle/obf/src/generators/services/translation.js +0 -1
- package/bundle/obf/src/maka.js +0 -2
- package/bundle/obf/src/templates/meteor/api/api.js +0 -11
- package/bundle/obf/src/templates/meteor/api/api.js.ts +0 -11
- package/bundle/obf/src/templates/meteor/api/collection.js +0 -86
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +0 -94
- package/bundle/obf/src/templates/meteor/api/fixtures.js +0 -23
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +0 -23
- package/bundle/obf/src/templates/meteor/api/methods.js +0 -136
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +0 -137
- package/bundle/obf/src/templates/meteor/api/publications.js +0 -31
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +0 -31
- package/bundle/obf/src/templates/meteor/api/register-api.js +0 -15
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +0 -15
- package/bundle/obf/src/templates/meteor/api/resolvers.js +0 -9
- package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/api/tests.js +0 -1
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +0 -5
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +0 -5
- package/bundle/obf/src/templates/meteor/app/client/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/client/body.html +0 -3
- package/bundle/obf/src/templates/meteor/app/client/head.html +0 -15
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.js +0 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +0 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.ts +0 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +0 -13
- package/bundle/obf/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +0 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +0 -117
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +0 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +0 -118
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +0 -39
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +0 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +0 -24
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +0 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +0 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +0 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +0 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +0 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +0 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +0 -152
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +0 -152
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +0 -24
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +0 -24
- package/bundle/obf/src/templates/meteor/app/lib/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js +0 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +0 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +0 -1
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +0 -160
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +0 -955
- package/bundle/obf/src/templates/meteor/app/packages/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/private/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/public/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/public/favicon.ico +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-144x144.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-192x192.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-512x512.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/manifest.json +0 -27
- package/bundle/obf/src/templates/meteor/app/public/sw.js +0 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +0 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +0 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +0 -30
- package/bundle/obf/src/templates/meteor/app/server/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +0 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +0 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +0 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +0 -179
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.js +0 -8
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +0 -8
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +0 -8
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +0 -8
- package/bundle/obf/src/templates/meteor/app/tsconfig.json +0 -28
- package/bundle/obf/src/templates/meteor/collection/collection.js +0 -85
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +0 -97
- package/bundle/obf/src/templates/meteor/collection/tests.js +0 -27
- package/bundle/obf/src/templates/meteor/collection/tests.js.ts +0 -27
- package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +0 -17
- package/bundle/obf/src/templates/meteor/config/pm2.config.js +0 -25
- package/bundle/obf/src/templates/meteor/config/process.env +0 -5
- package/bundle/obf/src/templates/meteor/config/settings.json +0 -10
- package/bundle/obf/src/templates/meteor/config/ssh.json +0 -6
- package/bundle/obf/src/templates/meteor/dbc/config.js +0 -70
- package/bundle/obf/src/templates/meteor/dbc/config.js.ts +0 -70
- package/bundle/obf/src/templates/meteor/dbc/conn.js +0 -37
- package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +0 -37
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +0 -3
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +0 -3
- package/bundle/obf/src/templates/meteor/method/method.js +0 -48
- package/bundle/obf/src/templates/meteor/method/method.js.ts +0 -48
- package/bundle/obf/src/templates/meteor/package/client/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/package.js +0 -37
- package/bundle/obf/src/templates/meteor/package/package.js.jsx +0 -37
- package/bundle/obf/src/templates/meteor/package/package.js.ts +0 -36
- package/bundle/obf/src/templates/meteor/package/package.js.tsx +0 -37
- package/bundle/obf/src/templates/meteor/package/server/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +0 -5
- package/bundle/obf/src/templates/meteor/project/.maka/config.json +0 -29
- package/bundle/obf/src/templates/meteor/project/README.md +0 -1
- package/bundle/obf/src/templates/meteor/project/build/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/project/build/README +0 -4
- package/bundle/obf/src/templates/meteor/project/gitignore +0 -6
- package/bundle/obf/src/templates/meteor/publish/publish.js +0 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +0 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +0 -3
- package/bundle/obf/src/templates/meteor/publish/publish.ts +0 -3
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +0 -27
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +0 -27
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +0 -5
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +0 -5
- package/bundle/obf/src/templates/meteor/template/template-tests.js +0 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +0 -55
- package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +0 -55
- package/bundle/obf/src/templates/meteor/template/template.css +0 -6
- package/bundle/obf/src/templates/meteor/template/template.css.less +0 -6
- package/bundle/obf/src/templates/meteor/template/template.html +0 -5
- package/bundle/obf/src/templates/meteor/template/template.js +0 -20
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +0 -77
- package/bundle/obf/src/templates/meteor/template/template.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +0 -89
- package/bundle/obf/src/templates/react/component/component.css +0 -6
- package/bundle/obf/src/templates/react/component/component.css.less +0 -6
- package/bundle/obf/src/templates/react/component/component.js +0 -0
- package/bundle/obf/src/templates/react/component/component.js.jsx +0 -63
- package/bundle/obf/src/templates/react/component/component.js.ts +0 -0
- package/bundle/obf/src/templates/react/component/component.js.tsx +0 -68
- package/bundle/obf/src/templates/react/hook/hook.js +0 -1
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +0 -24
- package/bundle/obf/src/templates/react/hook/hook.js.ts +0 -0
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +0 -23
- package/bundle/obf/src/templates/react/route/route.js +0 -8
- package/bundle/obf/src/templates/react/route/route.js.jsx +0 -8
- package/bundle/obf/src/templates/react/route/route.js.ts +0 -8
- package/bundle/obf/src/templates/react/route/route.js.tsx +0 -8
- package/bundle/obf/src/templates/react/test/test.js +0 -1
- package/bundle/obf/src/templates/react/test/test.js.jsx +0 -41
- package/bundle/obf/src/templates/react/test/test.js.ts +0 -1
- package/bundle/obf/src/templates/react/test/test.js.tsx +0 -41
- package/bundle/obf/src/templates/service/docker/Dockerfile +0 -54
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +0 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js +0 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js.ts +0 -33
- package/bundle/obf/src/templates/service/i18n/index.js +0 -0
- package/bundle/obf/src/templates/service/i18n/index.js.jsx +0 -0
- package/bundle/obf/src/templates/service/i18n/locales.js +0 -3
- package/bundle/obf/src/templates/service/i18n/locales.js.ts +0 -3
- package/bundle/obf/src/templates/service/openssl/openssl.conf +0 -22
- package/bundle/obf/src/tool.js +0 -1
- package/bundle/obf/src/tools/actions/actions.class.js +0 -1
- package/bundle/obf/src/tools/aws/aws.class.js +0 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +0 -1
- package/bundle/obf/src/tools/docker/docker.class.js +0 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +0 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +0 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +0 -1
- package/bundle/obf/src/tools/https/https.class.js +0 -1
- package/bundle/obf/src/tools/https/https.interface.js +0 -1
- package/bundle/obf/src/tools/log/log.class.js +0 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +0 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +0 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +0 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +0 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +0 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +0 -1
- package/bundle/obf/src/tools/ssl/ssl.interfaces.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a72q=a72d;(function(a,b){const n=a72d,c=a();while(!![]){try{const d=-parseInt(n(0x12c))/0x1+parseInt(n(0x140))/0x2+-parseInt(n(0x12b))/0x3+parseInt(n(0x136))/0x4+parseInt(n(0x131))/0x5+parseInt(n(0x132))/0x6*(-parseInt(n(0x143))/0x7)+parseInt(n(0x137))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x9f801));function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x111;let f=c[d];return f;},a72d(a,b);}const a72b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a72d;if(c){const e=c[o(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){const p=a72d;return a72a[p(0x124)]()[p(0x119)](p(0x126))[p(0x124)]()[p(0x152)](a72a)[p(0x119)](p(0x126));});a72a();import a72e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a72q(0x138)];Generator[a72q(0x111)]({'name':a72q(0x12a),'aliases':aliases,'usage':a72q(0x146),'shortDesc':a72q(0x121),'validOpts':[a72q(0x125)],'examples':[a72q(0x135)]},async function(a,b){const r=a72q;try{const c=this[r(0x139)][r(0x12d)](),d='/imports/ui/components',f=this[r(0x139)][r(0x130)]({'pathParts':[d,b[r(0x125)],paramCase(b[r(0x147)]),paramCase(b[r(0x147)])]}),g=await this[r(0x139)]['getProjectConfig']();this[r(0x139)][r(0x120)](g,async()=>{const s=r;typeof g[s(0x151)][s(0x141)]===s(0x134)&&(g[s(0x151)][s(0x141)]=g[s(0x151)][s(0x141)]===s(0x142)?!![]:![],this[s(0x139)][s(0x149)]('test',g[s(0x151)]['test']));typeof g['template']['css']===s(0x134)&&(g[s(0x151)]['css']=g['template'][s(0x14a)]===s(0x142)?!![]:![],this[s(0x139)]['setTemplate'](s(0x14a),g[s(0x151)]['css']));typeof g['template']['js']===s(0x134)&&(g[s(0x151)]['js']=g['template']['js']===s(0x142)?!![]:![],this['fsi'][s(0x149)]('js',g['template']['js']));!g[s(0x112)]&&(g[s(0x112)]={});!b[s(0x153)]&&!this[s(0x139)]['checkNpmPackage'](s(0x127))&&(Log[s(0x145)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0x139)][s(0x13b)](s(0x127),{'cwd':c}));if(!b['root']&&!this[s(0x139)]['checkNpmPackage']('react')){Log[s(0x14d)](s(0x122));return;}const h={'name':pascalCase(b[s(0x147)]),'myPath':a72e[s(0x11c)](this['fsi'][s(0x11b)]({}),f),'cssCaseName':paramCase(b[s(0x147)]),'className':pascalCase(b[s(0x147)]),'camelCaseName':camelCase(b[s(0x147)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x114)][s(0x14f)],'features':g[s(0x112)],'client':g[s(0x114)]['client'],'api':g[s(0x114)][s(0x13e)],'ssr':g[s(0x114)][s(0x148)],'test':g[s(0x114)]['test'],'theme':g['engines'][s(0x129)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x112)]['withTranslations']};this[s(0x139)][s(0x151)]({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':s(0x11e),'config':g});g[s(0x114)][s(0x141)]!=='none'&&this[s(0x139)][s(0x151)]({'srcPath':s(0x118),'destPath':f+'.tests.js','context':h,'framework':'react','config':g});g[s(0x151)]['css']&&(this[s(0x139)][s(0x151)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0x14c)]({},h,{'className':paramCase(b[s(0x147)])}),'config':g}),this[s(0x139)][s(0x128)]({'filePath':f+'.'+g[s(0x114)]['js'],'content':s(0x13d)+h[s(0x11f)]+'.'+g['engines']['css']+'\x27;'}));const i=b['dir']?'/'+b[s(0x125)]+'/':'/',j=''+d+i+h[s(0x113)]+'/'+h[s(0x113)];let k;if(g[s(0x114)][s(0x148)]===s(0x142)){const l=this['fsi']['pathFromApp']({'pathParts':[s(0x13a),s(0x11a),s(0x12e),s(0x116)]});k=this[s(0x139)][s(0x115)]({'pathParts':[l],'config':g});}else{const m=this[s(0x139)][s(0x130)]({'pathParts':[s(0x13a),s(0x11a),s(0x11d),s(0x116)]});k=this[s(0x139)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g[s(0x114)][s(0x11d)]===s(0x11e)||g[s(0x114)][s(0x11d)]==='reflux'?(g[s(0x114)]['js']===s(0x150)?this[s(0x139)][s(0x128)]({'filePath':k,'content':s(0x117)+h[s(0x13f)]+s(0x14b)+j+'\x27;\x0a'}):this[s(0x139)][s(0x128)]({'filePath':k,'content':s(0x117)+h[s(0x13f)]+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x114)]['js']+s(0x123)}),this[s(0x139)]['injectAtEndOfFile']({'filePath':k,'content':s(0x14e)+h[s(0x13f)]+s(0x12f)})):this['fsi'][s(0x133)]({'filePath':k,'content':s(0x144)+j+'.'+g[s(0x114)]['js']+'\x27;\x0a'});});}catch(h){Log[r(0x14d)](h);}});function a72c(){const t=['import\x20\x27','warn','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','resourceName','ssr','setTemplate','css','\x20}\x20from\x20\x27','assign','error','export\x20{\x20','graphql','tsx','template','constructor','root','create','features','fileName','engines','rewriteDestinationPathForEngine','templates.js','import\x20{\x20','test/test.js','search','startup','pathFromProject','relative','client','react','cssCaseName','withValue','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','\x27;\x0a','toString','dir','(((.+)+)+)+$','ramda','injectAtBeginningOfFile','theme','component','1426263FSlhMk','1038082rHfygg','findAppDirectory','lib','\x20};\x0a','pathFromApp','4340055AanGUx','3218658YBfIZh','injectAtEndOfFile','string','maka\x20g:comp\x20todos/todos-item','2327768bzvXNP','5206192awGXls','comp','fsi','imports','installNpmPackage','apply','import\x20\x27./','api','className','1205064RlDqQt','test','true','7eyDVwo'];a72c=function(){return t;};return a72c();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a73k=a73d;(function(a,b){const h=a73d,c=a();while(!![]){try{const d=parseInt(h(0xd9))/0x1*(parseInt(h(0xe0))/0x2)+-parseInt(h(0xd8))/0x3+-parseInt(h(0xe2))/0x4+-parseInt(h(0xda))/0x5+-parseInt(h(0xdc))/0x6+-parseInt(h(0xcf))/0x7*(parseInt(h(0xdf))/0x8)+-parseInt(h(0xce))/0x9*(-parseInt(h(0xcb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x5109c));const a73b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a73d;if(c){const e=c[i(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){const j=a73d;return a73a[j(0xdd)]()[j(0xcd)](j(0xe5))[j(0xdd)]()[j(0xdb)](a73a)['search'](j(0xe5));});function a73d(a,b){const c=a73c();return a73d=function(d,e){d=d-0xc8;let f=c[d];return f;},a73d(a,b);}a73a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a73k(0xd0),'usage':a73k(0xd5),'shortDesc':a73k(0xe1),'validOpts':[a73k(0xc9)],'examples':[a73k(0xca)]},function(a,b){const l=a73k,c=this['fsi']['getProjectConfig']();this[l(0xd3)]['withValue'](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0xcc)]),'name':pascalCase(b[m(0xd6)]),'fileName':paramCase(b[m(0xd6)]),'camelCase':camelCase(b[m(0xd6)]),'userName':m(0xd4),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0xe6))e='development';else e===m(0xe3)&&(e='production');const f=this['fsi'][m(0xc8)]({'pathParts':[m(0xd0),e,m(0xe4)]});this[m(0xd3)][m(0xd2)]({'srcPath':m(0xd7),'destPath':f,'context':d,'config':c});if(!b[m(0xc9)]){const g=this['fsi'][m(0xc8)]({'pathParts':[m(0xd0),e,'process.env']});this[m(0xd3)][m(0xd2)]({'srcPath':m(0xd1),'destPath':g,'context':d,'config':c});}});});function a73c(){const n=['15682LarrdY','Generate\x20configuration\x20settings.','1031436GlCGTo','prod','settings.json','(((.+)+)+)+$','dev','pathFromProject','isDocker','maka\x20g:config\x20production','10TDuAMt','appName','search','16483239DrGTyH','7maPOjI','config','config/process.env','template','fsi','ubuntu','maka\x20{generate,\x20g}:{config}\x20<name>','resourceName','config/settings.json','1362627hUDNSg','18mPuVoc','659775cSQnMe','constructor','3724710GXTvWF','toString','apply','1406952nOBibb'];a73c=function(){return n;};return a73c();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a74q=a74d;(function(a,b){const n=a74d,c=a();while(!![]){try{const d=parseInt(n(0x13d))/0x1*(-parseInt(n(0x147))/0x2)+-parseInt(n(0x130))/0x3*(-parseInt(n(0x15d))/0x4)+-parseInt(n(0x138))/0x5*(-parseInt(n(0x131))/0x6)+-parseInt(n(0x13c))/0x7+-parseInt(n(0x144))/0x8+parseInt(n(0x12c))/0x9+parseInt(n(0x146))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x7cbc5));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a74d;if(c){const e=c[o(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const p=a74d;return a74a['toString']()[p(0x153)](p(0x137))[p(0x14c)]()['constructor'](a74a)[p(0x153)](p(0x137));});a74a();function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x127;let f=c[d];return f;},a74d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a74c(){const t=['engines','type','create','maka\x20g:dbc\x20todos\x20--type=sqlite','maka\x20g:dbc\x20azure\x20--type=mssql','46672pIMVBG','Invalid\x20type\x20','dbAnswer','fsi','import\x20\x27./register-','pgsql','getProjectConfig','3091500khZBvI','dbc/conn.js','installNpmPackage','-dbc.','3LpLwYI','42mtFuUT','register-','apply','maka\x20g:dbc\x20geoserver\x20--type=pgsql','(blank)','warn','(((.+)+)+)+$','687565LeIGyE','dir','conn.','server','3454234AwzigA','115572GBEknT','error','withValue',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','indexOf','pathFromApp','better-sqlite3','7777192oiwfCR','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','11210570JkvPfg','8wrFiia','template','imports','dbc/config.js','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','toString','dbc','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','startup','-dbc\x27;','mssql','resourceName','search','config.','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','options','dbc/register-dbc.js'];a74c=function(){return t;};return a74c();}import{Actions}from'../tools/actions/actions.class.js';Generator[a74q(0x15a)]({'name':a74q(0x14d),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a74q(0x14b),'validOpts':['type',a74q(0x139)],'examples':[a74q(0x134),a74q(0x15c),a74q(0x15b)]},async function(a,b){const r=a74q;try{const c=await this['fsi'][r(0x12b)](),d=this[r(0x128)]['pathFromApp']({}),f=paramCase(b[r(0x152)]);if(!b[r(0x159)]){const h={'type':'list','name':r(0x127),'message':'DB\x20Driver','choices':[{'name':'PostgreSQL','value':r(0x12a)},{'name':'MS\x20SQL','value':r(0x151)}]},{dbAnswer:i}=await Actions[r(0x156)](h);i&&(b[r(0x159)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0x152)]),'camelCase':camelCase(b[r(0x152)]),'type':b['type'],'engine':c[r(0x158)]['js'],'noRename':!![]};this[r(0x128)][r(0x13f)](c,async()=>{const s=r;let j='js';c['engines']['js']==='tsx'&&(j='ts');const k=['mssql',s(0x12a)];if(k[s(0x141)](g[s(0x159)])<0x0){const m=g['type']?g[s(0x159)]:s(0x135);Log['error'](s(0x15e)+m+s(0x140));return;}b[s(0x159)]===s(0x12a)&&!this[s(0x128)]['checkNpmPackage']('pg')&&(Log[s(0x136)](s(0x155)),await this['fsi'][s(0x12e)]('pg',{'cwd':d}));b['type']===s(0x151)&&!this[s(0x128)]['checkNpmPackage'](s(0x151))&&(Log[s(0x136)](s(0x14e)),await this['fsi']['installNpmPackage'](s(0x151),{'cwd':d}));b[s(0x159)]==='sqlite'&&!this['fsi']['checkNpmPackage'](s(0x143))&&(Log[s(0x136)](s(0x145)),await this['fsi'][s(0x12e)](s(0x143),{'cwd':d}));this['fsi']['template']({'srcPath':s(0x14a),'destPath':this['fsi'][s(0x142)]({'pathParts':[s(0x149),s(0x14f),s(0x13b),'dbc',b['dir'],f,s(0x154)+j]}),'context':g,'config':c}),this[s(0x128)][s(0x148)]({'srcPath':s(0x12d),'destPath':this['fsi'][s(0x142)]({'pathParts':['imports',s(0x14f),s(0x13b),s(0x14d),b['dir'],f,s(0x13a)+j]}),'context':g,'config':c}),this['fsi'][s(0x148)]({'srcPath':s(0x157),'destPath':this[s(0x128)]['pathFromApp']({'pathParts':['imports',s(0x14f),'server',s(0x132)+f+s(0x12f)+j]}),'context':g,'config':c});const l=this['fsi'][s(0x142)]({'pathParts':[s(0x149),s(0x14f),s(0x13b),'index.'+c[s(0x158)]['js']]});this[s(0x128)]['injectAtEndOfFile']({'filePath':l,'content':s(0x129)+f+s(0x150)});});}catch(j){Log[r(0x13e)](j);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a75i=a75d;(function(a,b){const f=a75d,c=a();while(!![]){try{const d=parseInt(f(0x111))/0x1*(parseInt(f(0x114))/0x2)+parseInt(f(0x12f))/0x3+parseInt(f(0x120))/0x4*(-parseInt(f(0x121))/0x5)+parseInt(f(0x12d))/0x6*(parseInt(f(0x115))/0x7)+-parseInt(f(0x11e))/0x8+-parseInt(f(0x127))/0x9*(parseInt(f(0x12e))/0xa)+-parseInt(f(0x11f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0x8a52e));function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x111;let f=c[d];return f;},a75d(a,b);}const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a75d;if(c){const e=c[g(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const h=a75d;return a75a[h(0x112)]()[h(0x113)]('(((.+)+)+)+$')[h(0x112)]()[h(0x116)](a75a)[h(0x113)](h(0x126));});a75a();import{Generator}from'../generator.js';function a75c(){const l=['3oYYYXi','toString','search','456262QcLOur','130249pEeFlX','constructor','getGlobalConfig','error','app.tar.gz','fsi','app','withValue','maka\x20g:dockerfile','5653720ksBQsm','6882480XzcqzB','4OdVRJo','1751010fnlsTV','join','build','dockerfile','maka\x20{generate,\x20g}:dockerfile','(((.+)+)+)+$','135081uEzkPC','docker/Dockerfile','template','apply','appName','getProjectConfig','222DNfhxM','60WhoZMU','2899119YmvCgb'];a75c=function(){return l;};return a75c();}import{Log}from'../tools/log/log.class.js';import a75e from'path';Generator['create']({'name':a75i(0x124),'usage':a75i(0x125),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a75i(0x11d)]},async function(){const j=a75i;try{const a=await this[j(0x11a)][j(0x12c)](),b=await this['fsi'][j(0x117)](),c=this[j(0x11a)]['findProjectDirectory']();this[j(0x11a)][j(0x11c)](a,async()=>{const k=j,d={'app':b[k(0x12b)],'config':a,'appPath':a75e['join'](c,k(0x11b)),'bundlePath':a75e[k(0x122)](c,k(0x123),k(0x119)),'useCert':this[k(0x11a)]['isFile'](b['cert'])};this[k(0x11a)][k(0x129)]({'srcPath':k(0x128),'destPath':a75e['join'](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x118)](d);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a76r=a76d;(function(a,b){const o=a76d,c=a();while(!![]){try{const d=-parseInt(o(0x1fd))/0x1+-parseInt(o(0x1dc))/0x2*(parseInt(o(0x1eb))/0x3)+-parseInt(o(0x219))/0x4+-parseInt(o(0x218))/0x5+-parseInt(o(0x1fe))/0x6*(-parseInt(o(0x1da))/0x7)+parseInt(o(0x1f6))/0x8+parseInt(o(0x1e0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x57d4b));function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a76d(a,b);}const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a76d;if(c){const e=c[p(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const q=a76d;return a76a['toString']()[q(0x213)](q(0x21d))[q(0x1e5)]()[q(0x206)](a76a)[q(0x213)](q(0x21d));});a76a();import a76e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a76r(0x1e8)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a76r(0x211),'validOpts':[a76r(0x1ee)],'examples':[a76r(0x20f)]},async function(a,b){const s=a76r;try{const c=this['fsi'][s(0x1ef)](s(0x1e2));if(!c){Log[s(0x217)](s(0x210));throw new UsageError();}const d=this[s(0x1f0)][s(0x1fb)](b),f=s(0x201),g=this['fsi'][s(0x1fb)]({'pathParts':[f,b[s(0x1ee)],paramCase(b[s(0x1fa)]),paramCase(b[s(0x1fa)])]}),h=await this[s(0x1f0)]['getProjectConfig']();this[s(0x1f0)][s(0x1f9)](h,async()=>{const t=s;typeof h[t(0x21b)][t(0x20b)]===t(0x20c)&&(h[t(0x21b)][t(0x20b)]=h['template'][t(0x20b)]===t(0x20d)?!![]:![],this[t(0x1f0)][t(0x1ea)](t(0x20b),h[t(0x21b)]['css']));h[t(0x1e7)][t(0x1fc)]===t(0x1de)&&!this['checkNpmPackage'](t(0x1f2))&&(Log[t(0x208)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x1f0)][t(0x1d9)](t(0x202),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1fa)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x1fa)]),'graphql':h[t(0x1e7)][t(0x1fc)],'theme':h['engines'][t(0x1ed)],'features':h[t(0x1d8)],'myPath':a76e[t(0x200)](this['fsi'][t(0x1db)]({}),g),'fileName':paramCase(b[t(0x1fa)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1d8)][t(0x215)]};this['fsi'][t(0x21b)]({'srcPath':t(0x204),'destPath':g+t(0x1f1),'context':i,'config':h,'framework':t(0x1e2)});h[t(0x21b)][t(0x20b)]&&(this[t(0x1f0)][t(0x21b)]({'srcPath':t(0x1e4),'destPath':g+t(0x20e),'context':Object[t(0x209)]({},i,{'className':i[t(0x1f3)]}),'config':h}),this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x1e7)]['js'],'content':t(0x20a)+i[t(0x1f7)]+'.'+h[t(0x1e7)][t(0x20b)]+'\x27;'}));h[t(0x1e7)][t(0x1ec)]!==t(0x1ff)&&this[t(0x1f0)]['template']({'srcPath':t(0x1e3),'destPath':g+t(0x21a),'framework':t(0x1e2),'context':i,'config':h});const j=b[t(0x1ee)]?'/'+b['dir']+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x1f7)];let l;if(h[t(0x1e7)]['ssr']===t(0x20d)){const m=this['fsi']['pathFromApp']({'pathParts':[t(0x1e9),'startup',t(0x21c),t(0x1df)]});l=this[t(0x1f0)][t(0x207)]({'pathParts':[m],'config':h});}else{const n=this[t(0x1f0)]['pathFromApp']({'pathParts':['imports','startup',t(0x205),t(0x1df)]});l=this[t(0x1f0)][t(0x207)]({'pathParts':[n],'config':h});}h['engines'][t(0x205)]==='react'?(h['engines']['js']===t(0x203)?this['fsi'][t(0x1f4)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x214)]+'\x20}\x20from\x20\x27'+k+t(0x1e6)}):this[t(0x1f0)][t(0x1f4)]({'filePath':l,'content':t(0x212)+i[t(0x214)]+'\x20}\x20from\x20\x27'+k+'.'+h[t(0x1e7)]['js']+t(0x1e6)}),this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x216)+i[t(0x214)]+t(0x1dd)})):this['fsi'][t(0x1e1)]({'filePath':l,'content':t(0x1f8)+k+'.'+h[t(0x1e7)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x217)](i);}});function a76c(){const u=['test/test.js','template/template.css','toString','\x27;\x0a','engines','create','imports','setTemplate','3njjSsz','test','theme','dir','checkNpmPackage','fsi','.js','@apollo/client','cssCaseName','injectAtBeginningOfFile','apply','4251280xwzvBI','fileName','import\x20\x27','withValue','resourceName','pathFromApp','graphql','161543RRKIsj','355098MHfhoI','none','relative','/imports/ui/hooks','@apollo/client\x20isomorphic-fetch','tsx','hook/hook.js','client','constructor','rewriteDestinationPathForEngine','warn','assign','import\x20\x27./','css','string','true','.css','maka\x20g:hook\x20cool-hook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','import\x20{\x20','search','className','withTranslations','export\x20{\x20','error','2430180eyUwRG','2442204nAkikl','.app-tests.js','template','lib','(((.+)+)+)+$','features','installNpmPackage','21Ewxjkn','pathFromProject','614458MoQNFz','\x20};\x0a','apollo','templates.js','10945395nVmdqO','injectAtEndOfFile','react'];a76c=function(){return u;};return a76c();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a77k=a77d;(function(a,b){const h=a77d,c=a();while(!![]){try{const d=parseInt(h(0x136))/0x1*(parseInt(h(0x13d))/0x2)+-parseInt(h(0x13b))/0x3+parseInt(h(0x135))/0x4*(parseInt(h(0x11e))/0x5)+parseInt(h(0x140))/0x6*(-parseInt(h(0x13e))/0x7)+parseInt(h(0x12d))/0x8*(-parseInt(h(0x124))/0x9)+-parseInt(h(0x121))/0xa*(parseInt(h(0x13a))/0xb)+parseInt(h(0x132))/0xc*(parseInt(h(0x123))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x21cc4));function a77c(){const n=['constructor','3575INuecm','fsi','error','567820rXmbHS','maka\x20g:kit\x20--type=map','39lYPOFL','36819LfVhla','apply','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','getProjectConfig','(((.+)+)+)+$','withValue','notice','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','leaflet-map','40DDRRSh','engines','type','maka\x20g:k\x20city-map\x20--type=leaflet-map','resourceName','105660ykWDUu','Invalid\x20type\x20','NIE','1492InhRuJ','80326lwUTRB','create',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(blank)','22UVLWhG','133287qMiLhH','search','4zPFsXo','98NSAKoq','indexOf','58662anYHdA','login','map','toString','kit'];a77c=function(){return n;};return a77c();}const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a77d;if(c){const e=c[i(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const j=a77d;return a77a['toString']()[j(0x13c)](j(0x128))[j(0x143)]()[j(0x11d)](a77a)[j(0x13c)](j(0x128));});a77a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x11c;let f=c[d];return f;},a77d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a77k(0x137)]({'name':a77k(0x11c),'aliases':['k'],'usage':a77k(0x12b),'shortDesc':a77k(0x126),'validOpts':[a77k(0x12f)],'examples':[a77k(0x122),a77k(0x130)]},async function(a,b){const l=a77k;try{const c=this[l(0x11f)][l(0x127)]();this[l(0x11f)][l(0x129)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x131)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x131)]),'type':b[m(0x12f)],'engine':c[m(0x12e)]['js'],'noRename':!![]},f=[m(0x12c),'login'];if(f[m(0x13f)](d[m(0x12f)])<0x0){const g=d[m(0x12f)]?d[m(0x12f)]:m(0x139);Log[m(0x120)](m(0x133)+g+m(0x138));return;}b[m(0x12f)]===m(0x142)&&Log[m(0x12a)](m(0x134)),b[m(0x12f)]===m(0x141)&&Log[m(0x12a)](m(0x134));});}catch(d){Log['error'](d);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a78r=a78d;(function(a,b){const o=a78d,c=a();while(!![]){try{const d=parseInt(o(0x1ce))/0x1*(parseInt(o(0x1dc))/0x2)+parseInt(o(0x1f9))/0x3+-parseInt(o(0x1f5))/0x4+parseInt(o(0x1c6))/0x5*(-parseInt(o(0x1f8))/0x6)+parseInt(o(0x204))/0x7+-parseInt(o(0x1fd))/0x8+parseInt(o(0x1e9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xa1e24));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a78d;if(c){const e=c[p(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const q=a78d;return a78a[q(0x1df)]()[q(0x1d1)](q(0x203))['toString']()[q(0x1eb)](a78a)[q(0x1d1)](q(0x203));});a78a();import a78e from'path';function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a78d(a,b);}function a78c(){const u=['split','constructor','fsi','theme','withHook','injectAtBeginningOfFile','css','fileName','installNpmPackage','withValue','className','2978384OvFhAT','.js','ramda','813066MCYjUx','2260398OykPOk','create','none','tsx','4139608WzcxWC','resourceName','maka\x20g:layout\x20mobile/iPhone8','template','rewriteDestinationPathForEngine','pathFromApp','(((.+)+)+)+$','5234908yPRRHb','findAppDirectory','import\x20\x27./','maka\x20g:l\x20web/safari','\x27;\x0a','25MBCJDA','\x20}\x20from\x20\x27','true','pathFromProject','test/test.js','\x20};\x0a','dir','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','52054moJjgQ','warn','client','search','engines','layout','assign','withTranslations','test','features','template/template.css','templates.js','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','22BKgPuW','startup','export\x20{\x20','toString','.app-tests.js','react','lib','injectAtEndOfFile','apply','graphql','import\x20{\x20','imports','setTemplate','4758966NtqaVQ'];a78c=function(){return u;};return a78c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a78r(0x1fa)]({'name':a78r(0x1d3),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a78r(0x1ff),a78r(0x1c4)]},function(a,b){const s=a78r,c='/imports/ui/layouts',d=this[s(0x1ec)][s(0x205)](),e=this[s(0x1ec)]['pathFromApp']({'pathParts':[c,b[s(0x1cc)],paramCase(b[s(0x1fe)]),paramCase(b['resourceName'])]}),f=this[s(0x1ec)]['getProjectConfig']();this['fsi'][s(0x1f3)](f,()=>{const t=s;typeof f[t(0x200)][t(0x1d6)]==='string'&&(f[t(0x200)]['test']=f[t(0x200)][t(0x1d6)]===t(0x1c8)?!![]:![],this['fsi'][t(0x1e8)](t(0x1d6),f[t(0x200)][t(0x1d6)]));typeof f[t(0x200)][t(0x1f0)]===t(0x1da)&&(f[t(0x200)][t(0x1f0)]=f[t(0x200)]['css']==='true'?!![]:![],this[t(0x1ec)][t(0x1e8)](t(0x1f0),f[t(0x200)]['css']));typeof f[t(0x200)]['js']===t(0x1da)&&(f['template']['js']=f['template']['js']===t(0x1c8)?!![]:![],this[t(0x1ec)][t(0x1e8)]('js',f[t(0x200)]['js']));!f[t(0x1d7)]&&(f[t(0x1d7)]={});const g=b['_']?b['_'][0x0][t(0x1ea)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](t(0x1f7))&&(Log['warn'](t(0x1cd)),this['fsi'][t(0x1f2)](t(0x1f7),{'cwd':d}));if(h&&!this['checkNpmPackage'](t(0x1e1))){Log[t(0x1cf)](t(0x1db));return;}const i={'name':pascalCase(b[t(0x1fe)]),'myPath':a78e['relative'](this[t(0x1ec)][t(0x1c9)]({}),e),'cssCaseName':paramCase(b[t(0x1fe)]),'className':pascalCase(b[t(0x1fe)]),'camelCaseName':camelCase(b[t(0x1fe)]),'fileName':paramCase(b[t(0x1fe)]),'graphql':f[t(0x1d2)][t(0x1e5)],'features':f[t(0x1d7)],'client':f[t(0x1d2)][t(0x1d0)],'api':f[t(0x1d2)]['api'],'ssr':f[t(0x1d2)]['ssr'],'test':f[t(0x1d2)][t(0x1d6)],'theme':f[t(0x1d2)][t(0x1ed)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1d7)][t(0x1d5)]};f[t(0x1d7)]?.['withHooks']||b[t(0x1ee)]?this[t(0x1ec)]['template']({'srcPath':'hook/hook.js','destPath':e+t(0x1f6),'framework':t(0x1e1),'context':i,'config':f}):this[t(0x1ec)][t(0x200)]({'srcPath':'component/component.js','destPath':e+t(0x1f6),'framework':t(0x1e1),'context':i,'config':f});f[t(0x1d2)][t(0x1d6)]!==t(0x1fb)&&this[t(0x1ec)][t(0x200)]({'srcPath':t(0x1ca),'destPath':e+t(0x1e0),'framework':t(0x1e1),'context':i,'config':f});f[t(0x200)][t(0x1f0)]&&(this['fsi']['template']({'srcPath':t(0x1d8),'destPath':e+'.css','context':Object[t(0x1d4)]({},i,{'className':paramCase(b[t(0x1fe)])}),'config':f}),this['fsi'][t(0x1ef)]({'filePath':e+'.'+f[t(0x1d2)]['js'],'content':t(0x1c3)+i['fileName']+'.'+f[t(0x1d2)][t(0x1f0)]+'\x27;'}));const j=b[t(0x1cc)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x1f1)]+'/'+i[t(0x1f1)];let l;if(f['engines']['ssr']===t(0x1c8)){const m=this['fsi'][t(0x202)]({'pathParts':[t(0x1e7),t(0x1dd),t(0x1e2),t(0x1d9)]});l=this[t(0x1ec)][t(0x201)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1ec)]['pathFromApp']({'pathParts':[t(0x1e7),t(0x1dd),t(0x1d0),t(0x1d9)]});l=this[t(0x1ec)][t(0x201)]({'pathParts':[n],'config':f});}f[t(0x1d2)][t(0x1d0)]===t(0x1e1)?(f['engines']['js']===t(0x1fc)?this[t(0x1ec)][t(0x1ef)]({'filePath':l,'content':t(0x1e6)+i[t(0x1f4)]+t(0x1c7)+k+t(0x1c5)}):this[t(0x1ec)][t(0x1ef)]({'filePath':l,'content':t(0x1e6)+i[t(0x1f4)]+t(0x1c7)+k+'.'+f[t(0x1d2)]['js']+'\x27;\x0a'}),this[t(0x1ec)][t(0x1e3)]({'filePath':l,'content':t(0x1de)+i[t(0x1f4)]+t(0x1cb)})):this[t(0x1ec)][t(0x1e3)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x1d2)]['js']+t(0x1c5)});});});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a79c(){const j=['Maka!','1287889zcQucD','10392318iyBMrY','toString','12749301sFpqPu','36HbiqgN','(((.+)+)+)+$','167724HGcVxD','8MScnit','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','9416720FwXHku','constructor','apply','maka','830890xgbMtO','search','5fylsLI','33xsQDHf','8699467sTywrs'];a79c=function(){return j;};return a79c();}const a79i=a79d;(function(a,b){const f=a79d,c=a();while(!![]){try{const d=parseInt(f(0xc4))/0x1+parseInt(f(0xd1))/0x2+parseInt(f(0xca))/0x3*(parseInt(f(0xc8))/0x4)+parseInt(f(0xc0))/0x5*(parseInt(f(0xc5))/0x6)+-parseInt(f(0xc2))/0x7*(-parseInt(f(0xcb))/0x8)+-parseInt(f(0xc7))/0x9+parseInt(f(0xcd))/0xa*(-parseInt(f(0xc1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xe56d7));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a79d;if(c){const e=c[g(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const h=a79d;return a79a[h(0xc6)]()[h(0xbf)](h(0xc9))[h(0xc6)]()[h(0xce)](a79a)[h(0xbf)](h(0xc9));});a79a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a79i(0xd0),'shortDesc':a79i(0xc3),'validOpts':[],'description':'\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','usage':a79i(0xcc),'examples':['maka\x20generate:api\x20Trucks','maka\x20g:hook\x20cool-hook']},function(){return null;});function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0xbf;let f=c[d];return f;},a79d(a,b);}export default MakaGen;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a80m=a80d;(function(a,b){const k=a80d,c=a();while(!![]){try{const d=-parseInt(k(0x1b2))/0x1+parseInt(k(0x1b6))/0x2+-parseInt(k(0x1cf))/0x3*(-parseInt(k(0x1d1))/0x4)+-parseInt(k(0x1ba))/0x5+-parseInt(k(0x1c9))/0x6+parseInt(k(0x1b8))/0x7+-parseInt(k(0x1b5))/0x8*(-parseInt(k(0x1ca))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xed357));function a80c(){const p=['(((.+)+)+)+$','search','2174157qQTHQR','maka\x20{generate,\x20g}:{method,\x20m}\x20name','8kNpUaG','maka\x20g:method\x20todos','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','imports','1320658wdMjwa','fsi','appPathPrefix','8gbbzFT','304324oDEVBg','-rpc-method.','10994088zbjGNs','method/method.js','4083010xVPlIq','checkMeteorPackage','index.','check','error','constructor','toString','check\x20ddp-rate-limiter\x20mdg:validated-method','withValue','dir','resourceName','installMeteorPackage','ddp-rate-limiter','startup','import\x20\x27./methods','5459250NAoZNF','7619022nerEUk','warn','pathFromApp'];a80c=function(){return p;};return a80c();}function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x1af;let f=c[d];return f;},a80d(a,b);}const a80b=(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;};}()),a80a=a80b(this,function(){const l=a80d;return a80a[l(0x1c0)]()[l(0x1ce)](l(0x1cd))[l(0x1c0)]()[l(0x1bf)](a80a)[l(0x1ce)]('(((.+)+)+)+$');});a80a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'method','aliases':['m'],'usage':a80m(0x1d0),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a80m(0x1af)]},function(a,b){const n=a80m;try{const c=this[n(0x1b3)]['getProjectConfig']();this[n(0x1b3)][n(0x1c2)](c,async()=>{const o=n,d=paramCase(b[o(0x1c4)]),f={'name':b[o(0x1c4)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x1c4)]),'noRename':!![]};let g='js';c['engines']['js']==='tsx'&&(g='ts');const h=this[o(0x1b3)][o(0x1cc)]({});(!this['fsi']['checkMeteorPackage'](o(0x1bd))||!this[o(0x1b3)][o(0x1bb)](o(0x1c6))||!this[o(0x1b3)][o(0x1bb)]('mdg:validated-method'))&&(Log[o(0x1cb)](o(0x1b0)),this[o(0x1b3)][o(0x1c5)](o(0x1c1),{'cwd':h}));this['fsi']['template']({'srcPath':o(0x1b9),'destPath':this['fsi'][o(0x1cc)]({'pathParts':[o(0x1b1),'startup',b[o(0x1b4)],'methods',b[o(0x1c3)],d+o(0x1b7)+g]}),'context':f,'config':c});const i=b[o(0x1c3)]?'/'+b[o(0x1c3)]+'/':'/',j=this[o(0x1b3)][o(0x1cc)]({'pathParts':['imports',o(0x1c7),b['appPathPrefix'],o(0x1bc)+c['engines']['js']]});this['fsi']['injectAtEndOfFile']({'filePath':j,'content':o(0x1c8)+i+d+'-rpc-method\x27;'});});}catch(d){Log[n(0x1be)](d);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a81o=a81d;(function(a,b){const l=a81d,c=a();while(!![]){try{const d=-parseInt(l(0xee))/0x1*(-parseInt(l(0xe6))/0x2)+-parseInt(l(0xea))/0x3*(-parseInt(l(0xf5))/0x4)+-parseInt(l(0x107))/0x5+-parseInt(l(0x108))/0x6*(parseInt(l(0xf4))/0x7)+-parseInt(l(0x10b))/0x8+parseInt(l(0x10e))/0x9+-parseInt(l(0xf2))/0xa*(-parseInt(l(0xf3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x816f9));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a81d;if(c){const e=c[m(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const n=a81d;return a81a[n(0xfb)]()['search']('(((.+)+)+)+$')[n(0xfb)]()[n(0xfa)](a81a)[n(0xf1)](n(0x104));});a81a();import a81e from'path';function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0xe1;let f=c[d];return f;},a81d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a81o(0xe8)]({'name':a81o(0xf6),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a81o(0x10c),'validOpts':['dir'],'examples':[a81o(0xfd)]},async function(a,b){const p=a81o,c=paramCase(b[p(0x109)]),d=this[p(0x101)][p(0xe2)]({'pathParts':[p(0x110),b[p(0x112)],c]}),e=this[p(0x101)][p(0xef)]({'pathParts':[p(0x110),b[p(0x112)],c,p(0xf8)]}),f=this[p(0x101)][p(0xfe)]();this[p(0x101)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x109)]),'myPath':a81e[q(0x106)](this[q(0x101)][q(0xfc)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x109)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0xe3)][q(0xf7)],'graphql':f[q(0xe3)][q(0xe9)],'ssr':f[q(0xe3)][q(0xf0)],'isComponent':b['hasOwnProperty'](q(0x10a)),'isLayout':b[q(0xe4)](q(0x103)),'isStore':b[q(0xe4)](q(0x111)),'features':f[q(0xe1)],'noRename':!![],'theme':f[q(0xe3)][q(0xed)]};this['fsi'][q(0xff)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x10d)]=![];const h=d+q(0xe7)+c+q(0xec);this['fsi'][q(0xff)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib',q(0x100),q(0x102),q(0x105)];i[q(0xe5)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xec);this[r(0x101)][r(0xff)]({'srcPath':r(0x10f)+j+r(0xeb),'destPath':k,'context':g,'config':f});});});});function a81c(){const s=['3213MzRidY','/package.js','.js','theme','500171AVJlpY','pathFromAppWithNoReWrite','ssr','search','30ldWNRC','161887HTqdLK','205429FfezTb','1572jXxtjC','package','client','package.js','apply','constructor','toString','pathFromProject','maka\x20g:package\x20todos:package','getProjectConfig','template','server','fsi','tests/client','layout','(((.+)+)+)+$','tests/server','relative','3152905Rjhdmn','66QqmMnU','resourceName','component','4197856OSiRXh','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','noRename','4886127JKeRdK','package/','packages','store','dir','features','pathFromApp','engines','hasOwnProperty','forEach','4mcdOwA','/client/','create','graphql'];a81c=function(){return s;};return a81c();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a82o=a82d;(function(a,b){const m=a82d,c=a();while(!![]){try{const d=-parseInt(m(0x6f))/0x1*(parseInt(m(0x85))/0x2)+parseInt(m(0x81))/0x3*(parseInt(m(0x7b))/0x4)+parseInt(m(0xa2))/0x5+parseInt(m(0x82))/0x6*(parseInt(m(0x7f))/0x7)+-parseInt(m(0xa6))/0x8*(-parseInt(m(0xa4))/0x9)+-parseInt(m(0x8d))/0xa+parseInt(m(0x65))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x8fd7c));function a82c(){const r=['toString','1498120rTOnIz','warn','9mcGogC','.app-tests.js','2883080CXBvNy','lib','injectAtBeginningOfFile','getProjectConfig','search','templates.js','theme','fileName','client','519552zKvixy','none','hasOwnProperty','css','imports','rewriteDestinationPathForEngine','fsi','injectAtEndOfFile','\x20}\x20from\x20\x27','checkNpmPackage','21EJRYvF','import\x20{\x20','import\x20\x27./','\x20};\x0a','className','/imports/ui/pages','resourceName','string','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','component/component.js','html','installNpmPackage','4IGZdxx','export\x20{\x20','ramda','.css','133iCAdLH','api','857829bejIZQ','174030yKjFYF','withHook','.js','81866MjxBxM','features','vanilla','(((.+)+)+)+$','layout','test','assign','page','955060wQntIY','graphql','maka\x20g:page\x20todos/todos-item','constructor','startup','setTemplate','react','dir','hook/hook.js','ssr','Generate\x20a\x20page.','pathFromApp','test/test.js','store','true','engines','template/template.html','template/template.css','template','Updating\x20npm\x20packages\x20...'];a82c=function(){return r;};return a82c();}const a82b=(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;};}()),a82a=a82b(this,function(){const n=a82d;return a82a[n(0xa1)]()[n(0xaa)](n(0x88))['toString']()[n(0x90)](a82a)[n(0xaa)](n(0x88));});a82a();import a82e from'path';import{Generator}from'../generator.js';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x64;let f=c[d];return f;},a82d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a82o(0x8c),'aliases':aliases,'usage':a82o(0x77),'shortDesc':a82o(0x97),'validOpts':[a82o(0x94),a82o(0x83)],'examples':[a82o(0x8f)]},function(a,b){const p=a82o,c=p(0x74),d=this['fsi'][p(0x98)](b),e=this['fsi'][p(0x98)]({'pathParts':[c,b[p(0x94)],paramCase(b['resourceName']),paramCase(b[p(0x75)])]}),f=this[p(0x6b)][p(0xa9)]();this['fsi']['withValue'](f,()=>{const q=p;typeof f[q(0x9f)][q(0x79)]===q(0x76)&&(f[q(0x9f)][q(0x79)]=f[q(0x9f)][q(0x79)]===q(0x9b)?!![]:![],this['fsi'][q(0x92)](q(0x79),f[q(0x9f)][q(0x79)]));typeof f[q(0x9f)][q(0x8a)]===q(0x76)&&(f[q(0x9f)][q(0x8a)]=f[q(0x9f)][q(0x8a)]===q(0x9b)?!![]:![],this[q(0x6b)][q(0x92)]('test',f[q(0x9f)][q(0x8a)]));typeof f['template'][q(0x68)]===q(0x76)&&(f[q(0x9f)]['css']=f[q(0x9f)][q(0x68)]===q(0x9b)?!![]:![],this[q(0x6b)]['setTemplate'](q(0x68),f[q(0x9f)][q(0x68)]));typeof f['template']['js']===q(0x76)&&(f[q(0x9f)]['js']=f[q(0x9f)]['js']===q(0x9b)?!![]:![],this[q(0x6b)][q(0x92)]('js',f[q(0x9f)]['js']));!f[q(0x86)]&&(f[q(0x86)]={});!b['root']&&!this[q(0x6b)][q(0x6e)](q(0x7d))&&(Log[q(0xa3)](q(0xa0)),this['fsi'][q(0x7a)](q(0x7d),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a82e['relative'](this[q(0x6b)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x75)]),'camelCaseName':camelCase(b[q(0x75)]),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x9c)][q(0x8e)],'features':f[q(0x86)],'client':f[q(0x9c)][q(0x64)],'api':f[q(0x9c)][q(0x80)],'ssr':f[q(0x9c)][q(0x96)],'isStore':b[q(0x67)](q(0x9a)),'isComponent':b[q(0x67)]('component'),'isLayout':b[q(0x67)](q(0x89)),'withTranslations':f[q(0x86)]['withTranslations'],'test':f[q(0x9c)][q(0x8a)],'theme':f['engines'][q(0xac)]};f[q(0x9f)]['html']&&this[q(0x6b)]['template']({'srcPath':q(0x9d),'destPath':e+'.html','context':g,'config':f});f[q(0x86)]?.['withHooks']||b[q(0x83)]?this['fsi'][q(0x9f)]({'srcPath':q(0x95),'destPath':e+q(0x84),'framework':q(0x93),'context':g,'config':f}):this[q(0x6b)]['template']({'srcPath':q(0x78),'destPath':e+q(0x84),'framework':q(0x93),'context':g,'config':f});f['engines'][q(0x8a)]!==q(0x66)&&this[q(0x6b)][q(0x9f)]({'srcPath':q(0x99),'destPath':e+q(0xa5),'framework':q(0x93),'context':g,'config':f});f['template'][q(0x68)]&&this[q(0x6b)][q(0x9f)]({'srcPath':q(0x9e),'destPath':e+q(0x7e),'context':Object[q(0x8b)]({},g,{'className':paramCase(b[q(0x75)])}),'config':f});f[q(0x9c)][q(0x64)]!=='react'&&f[q(0x9c)][q(0x64)]!==q(0x87)?(f[q(0x9f)][q(0x68)]&&this['fsi'][q(0xa8)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[q(0xad)]+'.'+f[q(0x9c)][q(0x79)]+'\x27;\x0a'+q(0x71)+g[q(0xad)]+'.'+f[q(0x9c)]['css']+'\x27;'}),!f['template'][q(0x68)]&&this[q(0x6b)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x9c)]['js'],'content':q(0x71)+g['fileName']+'.'+f['engines']['html']+'\x27;'})):f[q(0x9f)][q(0x68)]&&this['fsi'][q(0xa8)]({'filePath':e+'.'+f[q(0x9c)]['js'],'content':q(0x71)+g[q(0xad)]+'.'+f[q(0x9c)][q(0x68)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g[q(0xad)]+'/'+g[q(0xad)];let j;if(f['engines'][q(0x96)]===q(0x9b)){const k=this[q(0x6b)][q(0x98)]({'pathParts':[q(0x69),q(0x91),q(0xa7),q(0xab)]});j=this[q(0x6b)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this['fsi'][q(0x98)]({'pathParts':[q(0x69),q(0x91),q(0x64),q(0xab)]});j=this[q(0x6b)][q(0x6a)]({'pathParts':[l],'config':f});}f[q(0x9c)][q(0x64)]===q(0x93)?(f['engines']['js']==='tsx'?this[q(0x6b)]['injectAtBeginningOfFile']({'filePath':j,'content':q(0x70)+g[q(0x73)]+q(0x6d)+i+'\x27;\x0a'}):this[q(0x6b)][q(0xa8)]({'filePath':j,'content':q(0x70)+g[q(0x73)]+q(0x6d)+i+'.'+f[q(0x9c)]['js']+'\x27;\x0a'}),this[q(0x6b)][q(0x6c)]({'filePath':j,'content':q(0x7c)+g['className']+q(0x72)})):this[q(0x6b)][q(0x6c)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[q(0x9c)]['js']+'\x27;\x0a'});});});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a83k=a83d;function a83c(){const n=['toString','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','apply','search','withValue','(((.+)+)+)+$','create','416830KIjlcg','server/publish.','4542588OQYJzP','1107844vHPdhY','rewriteDestinationPathForEngine','publish/publish.','8QKQiGV','6yHWctP','66bsVdol','injectAtEndOfFile','976199RODKuW','178650Ggkdnu','constructor','fsi','237819HRbUNc','maka\x20g:publish\x20todos','engines','388145ACcFVp'];a83c=function(){return n;};return a83c();}(function(a,b){const h=a83d,c=a();while(!![]){try{const d=parseInt(h(0x92))/0x1+parseInt(h(0x9d))/0x2+-parseInt(h(0xa4))/0x3*(-parseInt(h(0xa0))/0x4)+parseInt(h(0x95))/0x5*(-parseInt(h(0x8c))/0x6)+-parseInt(h(0x8e))/0x7*(parseInt(h(0xa3))/0x8)+parseInt(h(0x9f))/0x9+-parseInt(h(0x8f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x7884f));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a83d;if(c){const e=c[i(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const j=a83d;return a83a[j(0x96)]()[j(0x99)](j(0x9b))[j(0x96)]()[j(0x90)](a83a)['search'](j(0x9b));});function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x8c;let f=c[d];return f;},a83d(a,b);}a83a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a83k(0x9c)]({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a83k(0x97),'validOpts':[],'examples':[a83k(0x93)]},async function(a,b){const l=a83k,c=this[l(0x91)]['getProjectConfig']();this[l(0x91)][l(0x9a)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x94)]['js']==='tsx'&&(e='ts');const f=this[m(0x91)][m(0xa1)]({'pathParts':[m(0x9e)+c[m(0x94)]['js']]}),g=this[m(0x91)]['templateContent']({'srcPath':m(0xa2)+e,'context':d,'config':c});this['fsi'][m(0x8d)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a84y=a84d;(function(a,b){const v=a84d,c=a();while(!![]){try{const d=-parseInt(v(0x1f6))/0x1*(-parseInt(v(0x1d5))/0x2)+-parseInt(v(0x1d4))/0x3*(-parseInt(v(0x1f4))/0x4)+-parseInt(v(0x1fc))/0x5+parseInt(v(0x1bc))/0x6*(parseInt(v(0x1f9))/0x7)+-parseInt(v(0x1ca))/0x8*(parseInt(v(0x1de))/0x9)+parseInt(v(0x1c7))/0xa*(parseInt(v(0x1f5))/0xb)+parseInt(v(0x1e9))/0xc*(-parseInt(v(0x1dd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x3d5ec));const a84b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a84d;if(c){const e=c[w(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){const x=a84d;return a84a[x(0x201)]()[x(0x1c0)](x(0x1e4))['toString']()[x(0x1f0)](a84a)['search'](x(0x1e4));});a84a();import a84e from'path';import{Generator}from'../generator.js';function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a84d(a,b);}import{Log}from'../tools/log/log.class.js';function a84c(){const G=['warn','create','\x0a\x09\x09','routes.js','includes','/imports/ui/pages','Scaffolding\x20for\x20a\x20Route.','51939SLwjbY','128252amAyNa','toLowerCase','engines','map','pathFromApp','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','injectAtEndOfFile','length','13nazPtR','9pLzZeI','cwd','ssr','startup','injectAfterLineNumber','const\x20privateRoutes\x20=\x20(<>','(((.+)+)+)+$','rewriteDestinationPathForEngine','root','<Router','templateContent','2054796ZLojER','PrivateLayout','fsi','readFileLines','withTranslations','maka\x20g:route\x20todosIndex\x20todos','route','constructor','layout','templateName','error','24MtTNcQ','4264755XbiJwX','7zpwiNh','</Router>','url','828758toPyRt','filter','injectIntoFile','1959345JjgzpT','withHook','client','indexOf','newForm','toString','12GBTkEh','imports','route/route.js','react','search','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','features','MasterLayout','only','<Route','apply','10jRWNjO','const\x20publicRoutes\x20=\x20(<>','withValue','2902232ahvzXq','private','\x22*\x22'];a84c=function(){return G;};return a84c();}import a84f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a84y(0x1ce)]({'name':a84y(0x1ef),'aliases':aliases,'validOpts':['private',a84y(0x1f1),a84y(0x1c4),a84y(0x1df),'config',a84y(0x1e6),a84y(0x1fd),a84y(0x1f8)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','shortDesc':a84y(0x1d3),'examples':[a84y(0x1ee),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a84y(0x1da),'maka\x20g:route\x20lists/listIndex\x20lists']},function(a,b){const z=a84y;try{const c=this[z(0x1eb)]['getProjectConfig']();this[z(0x1eb)][z(0x1c9)](c,async()=>{const A=z,d=b[A(0x1cb)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0x1dc)]>0x1&&(g='/'+a['filter'](function(l){return l!=='/';})['join']('/')[A(0x1d6)]());f=camelCase(f);b[A(0x1f1)]&&(b[A(0x1f1)]=camelCase(b[A(0x1f1)]));const h=a84e['join'](A(0x1d2),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b['layout']||A(0x1c3),'templatePath':h,'templateName':pascalCase(f),'client':c['engines']['client'],'newForm':![],'withTranslations':c[A(0x1c2)][A(0x1ed)]};d&&(i[A(0x1f1)]=A(0x1ea));if(!b[A(0x1e6)]){const l=a84f['findGenerator']('page');l&&await l['invoke'](a,b);}let j,k;if(c[A(0x1d7)][A(0x1fe)]===A(0x1bf)){if(c[A(0x1d7)][A(0x1e0)]==='true'){const p=this[A(0x1eb)][A(0x1d9)]({'pathParts':[A(0x1bd),A(0x1e1),'lib',A(0x1d0)]});j=this['fsi'][A(0x1e5)]({'pathParts':[p],'config':c});}else{const q=this[A(0x1eb)][A(0x1d9)]({'pathParts':[A(0x1bd),A(0x1e1),A(0x1fe),A(0x1d0)]});j=this[A(0x1eb)][A(0x1e5)]({'pathParts':[q],'config':c});}const m=this['fsi']['readFileLines'](j)['map']((r,s)=>{const B=A;return r[B(0x1d1)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?s+0x1:null;})[A(0x1fa)](r=>r!==null);let n=this['fsi']['readFileLines'](j)[A(0x1d8)]((r,s)=>{const C=A;return r[C(0x1d1)](C(0x1c8))?s+0x1:null;})[A(0x1fa)](r=>r!==null),o=this[A(0x1eb)][A(0x1ec)](j)[A(0x1d8)]((r,s)=>{return r['includes']('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x1fa)](r=>r!==null);n[A(0x1dc)]>0x0&&o[A(0x1dc)]>0x0&&(i[A(0x200)]=!![]);k=this[A(0x1eb)][A(0x1e8)]({'srcPath':A(0x1be),'framework':A(0x1bf),'context':i,'config':c});if(n[A(0x1dc)]>0x0||o[A(0x1dc)]>0x0){this[A(0x1eb)][A(0x1e2)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x1dc)]>0x0)o=this[A(0x1eb)][A(0x1ec)](j)[A(0x1d8)]((r,s)=>{const D=A;return r[D(0x1d1)](D(0x1e3))?s+0x1:null;})[A(0x1fa)](r=>r!==null),this[A(0x1eb)][A(0x1e2)]({'filePath':j,'content':'\x09{'+i[A(0x1f2)]+'}','lineNumber':o[0x0]});else n[A(0x1dc)]>0x0?(n=this['fsi'][A(0x1ec)](j)[A(0x1d8)]((r,s)=>{const E=A;return r[E(0x1d1)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x1fa)](r=>r!==null),this['fsi'][A(0x1e2)]({'filePath':j,'content':'\x09{'+i[A(0x1f2)]+'}','lineNumber':n[0x0]})):Log[A(0x1cd)](A(0x1c1)+j);}else{const r=this[A(0x1eb)]['readFileLines'](j)[A(0x1d8)](u=>{const F=A;return u[F(0x1d1)](F(0x1cc));}),s=r[A(0x1ff)](!![])>-0x1,t=s?A(0x1c5):A(0x1f7);this['fsi'][A(0x1fb)]({'filePath':j,'content':A(0x1cf)+k+A(0x1cf),'begin':A(0x1e7),'end':t});}}else{if(c[A(0x1d7)][A(0x1fe)]==='vanilla'){const u=this[A(0x1eb)]['pathFromApp']({'pathParts':[A(0x1bd),A(0x1e1),'client',A(0x1d0)]});j=this[A(0x1eb)][A(0x1e5)]({'pathParts':[u],'config':c}),k=this['fsi'][A(0x1e8)]({'srcPath':A(0x1be),'context':i}),this[A(0x1eb)][A(0x1db)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x1f3)](d);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a85l=a85d;(function(a,b){const j=a85d,c=a();while(!![]){try{const d=parseInt(j(0xdb))/0x1*(-parseInt(j(0xe0))/0x2)+parseInt(j(0xe6))/0x3*(parseInt(j(0xd5))/0x4)+parseInt(j(0xd8))/0x5+-parseInt(j(0xee))/0x6*(-parseInt(j(0xdc))/0x7)+-parseInt(j(0xe4))/0x8*(-parseInt(j(0xd2))/0x9)+parseInt(j(0xda))/0xa+parseInt(j(0xf3))/0xb*(-parseInt(j(0xf7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x7364d));const a85b=(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;};}()),a85a=a85b(this,function(){const k=a85d;return a85a[k(0xf8)]()[k(0xec)](k(0xde))['toString']()['constructor'](a85a)['search'](k(0xde));});a85a();import{camelCase,paramCase,pascalCase}from'change-case';function a85c(){const o=['Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','startup','2242712zbRJsA','type','tsx','951380OYLkRe','service','7586250gwnhCL','712279atWJpb','273sAvEgG','template','(((.+)+)+)+$','installNpmPackage','2KvKKGz','service/logger/logger.js','logger','engines','7008GHQiKJ','lib','3TWPsRj','winston\x20setimmediate','fsi','Installing\x20winston','winston','create','search','maka\x20{generate,\x20g}:{service}\x20[service-type]','42054PmhmIU','pathFromApp','error','checkNpmPackage','withValue','11wMFILK','imports','resourceName','maka\x20g:svc\x20logger','8616120XUWAEe','toString','1233YpRdls'];a85c=function(){return o;};return a85c();}function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xd2;let f=c[d];return f;},a85d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a85l(0xeb)]({'name':a85l(0xd9),'aliases':['svc'],'usage':a85l(0xed),'shortDesc':a85l(0xd3),'validOpts':[a85l(0xd6)],'validArgs':[a85l(0xe2)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a85l(0xf6)]},async function(a,b){const m=a85l;try{const c=this['fsi']['getProjectConfig']();this[m(0xe8)][m(0xf2)](c,async()=>{const n=m,d=this['fsi'][n(0xef)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[n(0xf5)]),'fileName':f,'camelCase':camelCase(b[n(0xf5)]),'type':a[0x0],'engine':c[n(0xe3)]['js'],'noRename':!![]};let h='js';c['engines']['js']===n(0xd7)&&(h='ts');if(a[0x0]===n(0xe2)){!this['fsi'][n(0xf1)](n(0xea))&&await this[n(0xe8)][n(0xdf)](n(0xe7),{'cwd':d,'msg':n(0xe9)});const i=this['fsi'][n(0xef)]({'pathParts':[n(0xf4),n(0xd4),n(0xe5),'services',f+'.'+h]});this[n(0xe8)][n(0xdd)]({'srcPath':n(0xe1),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0xf0)](d);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a86d(a,b){var c=a86c();return a86d=function(d,e){d=d-0x177;var f=c[d];return f;},a86d(a,b);}function a86c(){var h=['search','18VHnibY','945858CoIdgP','(((.+)+)+)+$','toString','714792oILBPw','137940iOyJAU','62621JIYzjf','16708TkLrWI','6404144WjruIe','249svTxuK','10616290pCMvUD','7kAkinT'];a86c=function(){return h;};return a86c();}(function(a,b){var f=a86d,c=a();while(!![]){try{var d=-parseInt(f(0x178))/0x1+-parseInt(f(0x183))/0x2+parseInt(f(0x17b))/0x3*(-parseInt(f(0x179))/0x4)+-parseInt(f(0x177))/0x5+parseInt(f(0x180))/0x6*(parseInt(f(0x17d))/0x7)+-parseInt(f(0x17a))/0x8+parseInt(f(0x17f))/0x9*(parseInt(f(0x17c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xa7807));var a86b=(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;};}()),a86a=a86b(this,function(){var g=a86d;return a86a[g(0x182)]()['search'](g(0x181))[g(0x182)]()['constructor'](a86a)[g(0x17e)](g(0x181));});a86a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a87l=a87d;function a87c(){const o=['8592660RBKpzm','1772670UhLDzw','12YxFeJg','appName','withValue','env','1425231PgyRlt','getGlobalConfig','(((.+)+)+)+$','openssl.conf','sslconfig','6105105NbFWfc','446193IFlVne','constructor','getProjectConfig','1499352nIrRkm','error','_keys','1165172iVFcsW','search','42cNYtYO','fsi','service','maka\x20{generate,\x20g}:sslconfig','apply','toString','24IlZpYJ','Generate\x20a\x20new\x20openssl\x20config\x20file'];a87c=function(){return o;};return a87c();}function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x139;let f=c[d];return f;},a87d(a,b);}(function(a,b){const i=a87d,c=a();while(!![]){try{const d=parseInt(i(0x153))/0x1+-parseInt(i(0x150))/0x2+parseInt(i(0x147))/0x3*(-parseInt(i(0x143))/0x4)+parseInt(i(0x14c))/0x5+-parseInt(i(0x142))/0x6*(-parseInt(i(0x139))/0x7)+-parseInt(i(0x13f))/0x8*(parseInt(i(0x14d))/0x9)+-parseInt(i(0x141))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0xee457));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a87d;if(c){const e=c[j(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const k=a87d;return a87a[k(0x13e)]()['search'](k(0x149))[k(0x13e)]()[k(0x14e)](a87a)[k(0x154)](k(0x149));});a87a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a87e from'path';Generator['create']({'name':a87l(0x14b),'usage':a87l(0x13c),'shortDesc':a87l(0x140),'noResource':!![],'requiredOpts':['env'],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[a87l(0x146)]},async function(a,b){const m=a87l;try{const c=await this[m(0x13a)][m(0x14f)](),d=await this[m(0x13a)][m(0x148)](),f=this[m(0x13a)]['getConfigPath'](b[m(0x146)]),g=a87e['join'](f,m(0x152),m(0x14a));await this[m(0x13a)][m(0x145)](c,async()=>{const n=m,h={'app':d[n(0x144)],'noRename':!![]};await this[n(0x13a)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x13b),'context':h,'config':c});});}catch(h){Log[m(0x151)](h);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a88A=a88d;function a88c(){const D=['i18n','i18next\x20i18next-browser-languagedetector\x20react-i18next','maka\x20{generate,\x20g}:translation\x20--lang=<language>','maka\x20g:translation\x20--lang=en\x20(default)','services','isFile','findAppDirectory','server','667347xqNzfB','injectAtBeginningOfFile','rewriteDestinationPathForEngine','Locale\x20already\x20exported:\x20','40sGnzpA','translations','5703876fjyHdH','i18n/index.js','i18next','fsi','pathFromApp','(((.+)+)+)+$','i18n/locales.js','10725660yktEkR','import\x20\x27../lib/services/translations/i18n\x27;\x0a','search','import\x20\x27../lib/services/translations/i18n\x27;','729183FkICSD','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','lang','setProjectConfig','5JFGzPr','2325JhRRXa','lib','warn','readFileSync','engines','index.js','error','service','toString','appName','ssr','1556VTytnZ','apply','create','Locale\x20already\x20defined:\x20','grep','index.','exit','117962UsQcLH','client','2060292YHUlOo','injectAtEndOfFile','constructor','locales','startup','template','export\x20{\x20default\x20as\x20','default\x20as\x20','imports','\x20}\x20from\x20\x27./','translation','.js'];a88c=function(){return D;};return a88c();}(function(a,b){const x=a88d,c=a();while(!![]){try{const d=-parseInt(x(0x181))/0x1*(-parseInt(x(0x156))/0x2)+-parseInt(x(0x16c))/0x3+parseInt(x(0x14f))/0x4*(-parseInt(x(0x182))/0x5)+parseInt(x(0x158))/0x6+-parseInt(x(0x17d))/0x7*(-parseInt(x(0x170))/0x8)+parseInt(x(0x172))/0x9+-parseInt(x(0x179))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x4d644));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a88d;if(c){const e=c[y(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const z=a88d;return a88a[z(0x18a)]()[z(0x17b)](z(0x177))[z(0x18a)]()[z(0x15a)](a88a)['search'](z(0x177));});a88a();function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x14f;let f=c[d];return f;},a88d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a88e from'fs';Generator[a88A(0x151)]({'name':a88A(0x162),'usage':a88A(0x166),'aliases':[a88A(0x164)],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','noResource':!![],'examples':[a88A(0x167),'maka\x20g:translation\x20--lang=fr','maka\x20g:translation\x20--lang=de'],'validOpts':[a88A(0x17f)]},function(a,b){const B=a88A;try{const c=this[B(0x175)]['getProjectConfig'](),d=this[B(0x175)]['getGlobalConfig'](),f=this[B(0x175)][B(0x16a)]();this[B(0x175)]['withValue'](c,()=>{const C=B;try{!b[C(0x17f)]&&(b['lang']='en');!b['root']&&!this[C(0x175)]['checkNpmPackage'](C(0x174))&&(Log[C(0x184)](C(0x17e)),this['fsi']['installNpmPackage'](C(0x165),{'cwd':f}),this[C(0x175)][C(0x180)]('features.withTranslations',!![]));const g=this[C(0x175)][C(0x176)]({'pathParts':['imports',C(0x15c),C(0x157),C(0x187)]}),h=this[C(0x175)][C(0x16e)]({'pathParts':[g],'config':c}),i=this[C(0x175)]['grep'](a88e[C(0x185)](h)['toString'](),C(0x17c))[0x0]&&!![];if(c[C(0x186)][C(0x18c)]==='true'){!i&&this[C(0x175)][C(0x16d)]({'filePath':h,'content':C(0x17a)});const t=this['fsi'][C(0x176)]({'pathParts':['imports',C(0x15c),C(0x16b),C(0x187)]}),u=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi']['grep'](a88e[C(0x185)](u)[C(0x18a)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x175)]['injectAtBeginningOfFile']({'filePath':u,'content':C(0x17a)});}else!i&&this['fsi'][C(0x16d)]({'filePath':h,'content':C(0x17a)});const j={'app':d[C(0x18b)],'config':c},k=this['fsi'][C(0x176)]({'pathParts':[C(0x160),C(0x15c),C(0x183),'services',C(0x171),'i18n.js']}),l=this[C(0x175)][C(0x169)](this[C(0x175)][C(0x16e)]({'pathParts':[k],'config':c}));!l&&this[C(0x175)]['template']({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0x189),'context':j,'config':c});const m=this[C(0x175)][C(0x176)]({'pathParts':['imports','startup',C(0x183),C(0x168),C(0x171),C(0x15b),b[C(0x17f)]+C(0x163)]}),n=this[C(0x175)][C(0x16e)]({'pathParts':[m],'config':c}),o=this[C(0x175)][C(0x169)](n);!o?this[C(0x175)][C(0x15d)]({'srcPath':C(0x178),'destPath':m,'framework':C(0x189),'context':j,'config':c}):Log[C(0x184)](C(0x152)+n);const p=this[C(0x175)][C(0x176)]({'pathParts':['imports',C(0x15c),'lib',C(0x168),C(0x171),C(0x15b),C(0x154)+c[C(0x186)]['js']]}),q=this[C(0x175)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0x175)][C(0x169)](q);!r&&this[C(0x175)][C(0x15d)]({'srcPath':C(0x173),'destPath':p,'framework':C(0x189),'context':j,'config':c});const s=this['fsi'][C(0x153)](a88e[C(0x185)](p)[C(0x18a)](),C(0x15f)+b[C(0x17f)])[0x0]&&!![];!s?this['fsi'][C(0x159)]({'filePath':p,'content':C(0x15e)+b['lang']+C(0x161)+b[C(0x17f)]+'\x27;'}):Log[C(0x184)](C(0x16f)+p);}catch(w){Log[C(0x188)](w),process['exit'](0x1);}});}catch(g){Log[B(0x188)](g),process[B(0x155)](0x1);}});
|
package/bundle/obf/src/maka.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --experimental-modules --no-warnings --experimental-json-modules
|
|
2
|
-
const a89m=a89d;(function(a,b){const j=a89d,c=a();while(!![]){try{const d=parseInt(j(0xe9))/0x1*(parseInt(j(0xd8))/0x2)+parseInt(j(0xeb))/0x3*(parseInt(j(0xe4))/0x4)+parseInt(j(0xdf))/0x5*(parseInt(j(0xe5))/0x6)+-parseInt(j(0xe8))/0x7+-parseInt(j(0xee))/0x8*(-parseInt(j(0xe0))/0x9)+parseInt(j(0xea))/0xa+parseInt(j(0xdd))/0xb*(-parseInt(j(0xe7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0xaf945));const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a89d;if(c){const e=c[k(0xda)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const l=a89d;return a89a[l(0xe3)]()[l(0xdb)](l(0xe1))[l(0xe3)]()['constructor'](a89a)[l(0xdb)](l(0xe1));});a89a();import a89e from'minimist';import a89f from'os';import a89g from'path';import a89h from'humps';import a89i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';function a89c(){const n=['158562pFSIZC','(((.+)+)+)+$','totalmem','toString','170300nbKGEJ','906ISMytg','floor','23343624UUIbOY','3118332pFwZlS','72997kXNZBL','815730oHaBTE','39jbzxkh','argv','env','56egiqmX','parse','slice','url','30JoQhGY','MAKA_COMMAND_PATH','apply','search','camelizeKeys','11LtmnMc','BROWSERSLIST_IGNORE_OLD_DATA','41610AoXCFv'];a89c=function(){return n;};return a89c();}const __filename=fileURLToPath(import.meta[a89m(0xd7)]),__dirname=a89g['dirname'](__filename);global[a89m(0xd9)]=__dirname;const total_memory=a89f[a89m(0xe2)](),total_mem_in_kb=total_memory/0x400;function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0xd5;let f=c[d];return f;},a89d(a,b);}let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a89m(0xe6)](total_mem_in_mb),process['env']['TOOL_NODE_FLAGS']='--max-old-space-size='+total_mem_in_mb,process[a89m(0xed)][a89m(0xde)]='1';const argv=a89e(process[a89m(0xec)][a89m(0xd6)](0x2)),args=argv['_'],deepCopyArgv=JSON[a89m(0xd5)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a89h[a89m(0xdc)](deepCopyArgv);a89i['run'](args,opts);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meteor } from 'meteor/meteor';
|
|
2
|
-
<% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
|
|
3
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
4
|
-
|
|
5
|
-
const <%= name %>ApiV1 = new Restivus({
|
|
6
|
-
version: 'v1',
|
|
7
|
-
useDefaultAuth: false,
|
|
8
|
-
prettyJson: Meteor.isDevelopment
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
<%= name %>ApiV1.addCollection(<%= name %>);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meteor } from 'meteor/meteor';
|
|
2
|
-
<% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
|
|
3
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
4
|
-
|
|
5
|
-
const <%= name %>ApiV1 = new Restivus({
|
|
6
|
-
version: 'v1',
|
|
7
|
-
useDefaultAuth: false,
|
|
8
|
-
prettyJson: Meteor.isDevelopment
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
<%= name %>ApiV1.addCollection(<%= name %>);
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Mongo } from 'meteor/mongo';
|
|
2
|
-
import { check, Match } from 'meteor/maka:check';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @memberof Server.<%= name %>
|
|
6
|
-
* @extends Mongo.Collection
|
|
7
|
-
*/
|
|
8
|
-
class <%= name %>Collection extends Mongo.Collection {
|
|
9
|
-
constructor() {
|
|
10
|
-
super('<%= name %>');
|
|
11
|
-
|
|
12
|
-
this.publicFields = {};
|
|
13
|
-
this.privateFields = {};
|
|
14
|
-
this.allow({
|
|
15
|
-
insert() { return false; },
|
|
16
|
-
update() { return false; },
|
|
17
|
-
remove() { return false; },
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
this.insertSchema = {};
|
|
21
|
-
this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
find(selector = {}, modifier) {
|
|
25
|
-
return super.find(selector, modifier);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
findOne(selector = {}, modifier) {
|
|
29
|
-
return super.findOne(selector, modifier);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @public
|
|
34
|
-
* @param { object } doc The document to inserted.
|
|
35
|
-
* @param { object } callback The callback from invocation.
|
|
36
|
-
* @returns { string } The _id of the new doc.
|
|
37
|
-
*/
|
|
38
|
-
insert(doc) {
|
|
39
|
-
if (this._hasSchema()) {
|
|
40
|
-
check(doc, this.insertSchema, 'while validating mongo insert against schema');
|
|
41
|
-
}
|
|
42
|
-
return super.insert(doc);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @public
|
|
47
|
-
* @param { object | string } selector The mongodb selector.
|
|
48
|
-
* @param { object } modifier The mongodb modifier.
|
|
49
|
-
* @returns { string } The _id of the document updated.
|
|
50
|
-
* */
|
|
51
|
-
update(selector, modifier) {
|
|
52
|
-
if (this._hasSchema()) {
|
|
53
|
-
check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
|
|
54
|
-
}
|
|
55
|
-
return super.update(selector, modifier);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @public
|
|
60
|
-
* @param { object | string } selector The mongodb selector.
|
|
61
|
-
* @returns { string } The _id of the document being removed.
|
|
62
|
-
*/
|
|
63
|
-
remove(selector) {
|
|
64
|
-
return super.remove(selector);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// Helper method
|
|
68
|
-
_hasSchema = () => {
|
|
69
|
-
const { insertSchema, updateSchema } = this;
|
|
70
|
-
if (insertSchema) {
|
|
71
|
-
return (Object.keys(insertSchema).length !== 0
|
|
72
|
-
&& insertSchema.constructor === Object);
|
|
73
|
-
}
|
|
74
|
-
if (updateSchema) {
|
|
75
|
-
return (Object.keys(updateSchema).length !== 0
|
|
76
|
-
&& updateSchema.constructor === Object);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @memberof Server.<%= name %>
|
|
83
|
-
* @member <%= name %>
|
|
84
|
-
*/
|
|
85
|
-
const <%= name %> = new <%= name %>Collection();
|
|
86
|
-
export default <%= name %>;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { Mongo } from 'meteor/mongo';
|
|
2
|
-
import { check, Match } from 'meteor/maka:check';
|
|
3
|
-
|
|
4
|
-
interface <%=name%>Collection {
|
|
5
|
-
publicFields: any;
|
|
6
|
-
privateFields: any;
|
|
7
|
-
deny: any,
|
|
8
|
-
schema: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @memberof Server.<%= name %>
|
|
13
|
-
* @extends Mongo.Collection
|
|
14
|
-
*/
|
|
15
|
-
class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
|
|
16
|
-
constructor() {
|
|
17
|
-
super('<%= name %>');
|
|
18
|
-
|
|
19
|
-
this.publicFields = {};
|
|
20
|
-
this.privateFields = {};
|
|
21
|
-
this.allow({
|
|
22
|
-
insert() { return false; },
|
|
23
|
-
update() { return false; },
|
|
24
|
-
remove() { return false; },
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
this.insertSchema = {};
|
|
28
|
-
this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
find(selector:any = {}, modifier:object) {
|
|
32
|
-
return super.find(selector, modifier);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
findOne(selector:any = {}, modifier:object) {
|
|
36
|
-
return super.findOne(selector, modifier);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @public
|
|
41
|
-
* @param { object } doc The document to inserted.
|
|
42
|
-
* @param { object } callback The callback from invocation.
|
|
43
|
-
* @returns { string } The _id of the new doc.
|
|
44
|
-
*/
|
|
45
|
-
insert(doc:any) {
|
|
46
|
-
if (this._hasSchema()) {
|
|
47
|
-
check(doc, this.insertSchema, 'while validating mongo insert against schema');
|
|
48
|
-
}
|
|
49
|
-
return super.insert(doc);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @public
|
|
54
|
-
* @param { object | string } selector The mongodb selector.
|
|
55
|
-
* @param { object } modifier The mongodb modifier.
|
|
56
|
-
* @returns { string } The _id of the document updated.
|
|
57
|
-
* */
|
|
58
|
-
update(selector:any, modifier:UpdateModifier) {
|
|
59
|
-
if (this._hasSchema()) {
|
|
60
|
-
check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return super.update(selector, modifier);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @public
|
|
68
|
-
* @param { object | string } selector The mongodb selector.
|
|
69
|
-
* @returns { string } The _id of the document being removed.
|
|
70
|
-
*/
|
|
71
|
-
remove(selector:any) {
|
|
72
|
-
return super.remove(selector);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Helper method
|
|
76
|
-
_hasSchema = () => {
|
|
77
|
-
const { insertSchema, updateSchema } = this;
|
|
78
|
-
if (insertSchema) {
|
|
79
|
-
return (Object.keys(insertSchema).length !== 0
|
|
80
|
-
&& insertSchema.constructor === Object);
|
|
81
|
-
}
|
|
82
|
-
if (updateSchema) {
|
|
83
|
-
return (Object.keys(updateSchema).length !== 0
|
|
84
|
-
&& updateSchema.constructor === Object);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @memberof Server.<%= name %>
|
|
91
|
-
* @member <%= name %>
|
|
92
|
-
*/
|
|
93
|
-
const <%= name %> = new <%= name %>Collection();
|
|
94
|
-
export default <%= name %>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Meteor } from 'meteor/meteor';
|
|
2
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* If the <%= name %> collection is empty on server start, and you'd like to
|
|
6
|
-
* populate it with some data here is a handy spot.
|
|
7
|
-
*
|
|
8
|
-
* Example:
|
|
9
|
-
* ```
|
|
10
|
-
* if (<%= name %>.find({}).count() === 0) {
|
|
11
|
-
* const data = JSON.parse(Assets.getText('<%= fileName %>.json')) || [ {} ];
|
|
12
|
-
* data.forEach((datum) => {
|
|
13
|
-
* <%= name %>.insert(datum);
|
|
14
|
-
* });
|
|
15
|
-
* }
|
|
16
|
-
*
|
|
17
|
-
* ```
|
|
18
|
-
* @memberof Server.<%= name %>
|
|
19
|
-
* @member Fixtures
|
|
20
|
-
*/
|
|
21
|
-
Meteor.startup(() => {
|
|
22
|
-
|
|
23
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Meteor } from 'meteor/meteor';
|
|
2
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* If the <%= name %> collection is empty on server start, and you'd like to
|
|
6
|
-
* populate it with some data here is a handy spot.
|
|
7
|
-
*
|
|
8
|
-
* Example:
|
|
9
|
-
* ```
|
|
10
|
-
* if (<%= name %>.find({}).count() === 0) {
|
|
11
|
-
* const data = JSON.parse(Assets.getText('<%= fileName %>.json')) || [ {} ];
|
|
12
|
-
* data.forEach((datum) => {
|
|
13
|
-
* <%= name %>.insert(datum);
|
|
14
|
-
* });
|
|
15
|
-
* }
|
|
16
|
-
*
|
|
17
|
-
* ```
|
|
18
|
-
* @memberof Server.<%= name %>
|
|
19
|
-
* @member Fixtures
|
|
20
|
-
*/
|
|
21
|
-
Meteor.startup(() => {
|
|
22
|
-
|
|
23
|
-
});
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { Meteor } from 'meteor/meteor';
|
|
2
|
-
import { ValidatedMethod } from 'meteor/mdg:validated-method';
|
|
3
|
-
import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
|
|
4
|
-
import { check, Match } from 'meteor/maka:check';
|
|
5
|
-
|
|
6
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Using ValidatedMethod (maintained by MDG) is the best
|
|
10
|
-
* practice by Meteor Development Group (MDG),
|
|
11
|
-
* and as such is used here to validate that method
|
|
12
|
-
* calls from the client are properly handled.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Client side insert method.
|
|
18
|
-
*
|
|
19
|
-
* @memberof Server.<%= name %>
|
|
20
|
-
* @method
|
|
21
|
-
* @property { string } name String that defines the method.
|
|
22
|
-
* @property { function } validate Is run before the main execution.
|
|
23
|
-
* @property { function } run The main action that is executed.
|
|
24
|
-
*/
|
|
25
|
-
const insert<%= name %> = new ValidatedMethod({
|
|
26
|
-
name: '<%= fileName %>.insert',
|
|
27
|
-
validate(doc) {
|
|
28
|
-
check(doc, Object, 'while checking insert doc');
|
|
29
|
-
//check(this.userId, String, 'while validating user');
|
|
30
|
-
},
|
|
31
|
-
run(doc) {
|
|
32
|
-
//return <%= name %>.insert(doc);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Client side find method.
|
|
38
|
-
*
|
|
39
|
-
* @memberof Server.<%= name %>
|
|
40
|
-
* @method
|
|
41
|
-
* @property { string } name String that defines the method.
|
|
42
|
-
* @property { function } validate Is run before the main execution.
|
|
43
|
-
* @property { function } run The main action that is executed.
|
|
44
|
-
*/
|
|
45
|
-
const find<%= name %> = new ValidatedMethod({
|
|
46
|
-
name: '<%= fileName %>.find',
|
|
47
|
-
validate(doc = {}) {
|
|
48
|
-
check(doc, Match.OneOf(String, Object), 'while checking find selector');
|
|
49
|
-
//check(this.userId, String, 'while validating user');
|
|
50
|
-
},
|
|
51
|
-
run(doc = {}) {
|
|
52
|
-
//return <%= name %>.find(doc).fetch();
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Client side findOne method.
|
|
58
|
-
*
|
|
59
|
-
* @memberof Server.<%= name %>
|
|
60
|
-
* @method
|
|
61
|
-
* @property { string } name String that defines the method.
|
|
62
|
-
* @property { function } validate Is run before the main execution.
|
|
63
|
-
* @property { function } run The main action that is executed.
|
|
64
|
-
*/
|
|
65
|
-
const findOne<%= name %> = new ValidatedMethod({
|
|
66
|
-
name: '<%= fileName %>.findOne',
|
|
67
|
-
validate(doc = {}) {
|
|
68
|
-
check(doc, Match.OneOf(String, Object), 'while checking findOne selector');
|
|
69
|
-
//check(this.userId, String, 'while validating user');
|
|
70
|
-
},
|
|
71
|
-
run(doc = {}) {
|
|
72
|
-
//return <%= name %>.findOne(doc);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Client side update method.
|
|
79
|
-
*
|
|
80
|
-
* @memberof Server.<%= name %>
|
|
81
|
-
* @method
|
|
82
|
-
* @property { string } name String that defines the method.
|
|
83
|
-
* @property { function } validate Is run before the main execution.
|
|
84
|
-
* @property { function } run The main action that is executed.
|
|
85
|
-
*/
|
|
86
|
-
const update<%= name %> = new ValidatedMethod({
|
|
87
|
-
name: '<%= fileName %>.update',
|
|
88
|
-
validate({_id, set}) {
|
|
89
|
-
if (typeof _id !== 'string' && typeof set !== 'object') throw 'Usage Error: Expecting signature { _id: <string>, set: <object> }';
|
|
90
|
-
check(_id, String, 'while checking _id selector');
|
|
91
|
-
check(set, Object, 'while checking update set object');
|
|
92
|
-
//check(this.userId, String, 'while validating user');
|
|
93
|
-
},
|
|
94
|
-
run({_id, set}) {
|
|
95
|
-
//return <%= name %>.update(_id, {$set: set});
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Client side remove method.
|
|
101
|
-
*
|
|
102
|
-
* @memberof Server.<%= name %>
|
|
103
|
-
* @method
|
|
104
|
-
* @property { string } name String that defines the method.
|
|
105
|
-
* @property { function } validate Is run before the main execution.
|
|
106
|
-
* @property { function } run The main action that is executed.
|
|
107
|
-
*/
|
|
108
|
-
const remove<%= name %> = new ValidatedMethod({
|
|
109
|
-
name: '<%= fileName %>.remove',
|
|
110
|
-
validate(_id) {
|
|
111
|
-
// NOTE: May want to use object removal, but dangerous!!!
|
|
112
|
-
check(_id, String, 'while checking remove _id selector');
|
|
113
|
-
//check(this.userId, String, 'while validating user');
|
|
114
|
-
},
|
|
115
|
-
run(_id) {
|
|
116
|
-
//return <%= name %>.remove(_id);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
const RATE_LIMITED_METHODS = [
|
|
121
|
-
insert<%= name %> , find<%= name %>, findOne<%= name %>, update<%= name %> , remove<%= name %>
|
|
122
|
-
].map(value => value['name']);
|
|
123
|
-
|
|
124
|
-
if (Meteor.isServer) {
|
|
125
|
-
const OPERATIONS = 5;
|
|
126
|
-
const PER_SECOND = 1 * 1000; // milliseconds
|
|
127
|
-
// Only allow 5 list operations per connection per second.
|
|
128
|
-
DDPRateLimiter.addRule({
|
|
129
|
-
name(name) {
|
|
130
|
-
return RATE_LIMITED_METHODS.includes(name);
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
// Rate limit per connection ID.
|
|
134
|
-
connectionId() { return true; },
|
|
135
|
-
}, OPERATIONS, PER_SECOND);
|
|
136
|
-
}
|