@maka/maka-cli 4.5.19 → 4.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +127 -0
- package/bundle/obf/src/README.md +31 -0
- package/bundle/obf/src/command.js +1 -0
- package/bundle/obf/src/commands/_index.js +1 -0
- package/bundle/obf/src/commands/aws/_index.js +1 -0
- package/bundle/obf/src/commands/aws/aws.command.js +1 -0
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/build/_index.js +1 -0
- package/bundle/obf/src/commands/build/build.js +1 -0
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/create.js +1 -0
- package/bundle/obf/src/commands/debug.js +1 -0
- package/bundle/obf/src/commands/deploy.js +1 -0
- package/bundle/obf/src/commands/game/_index.js +1 -0
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/play.command.js +1 -0
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/scenes/puzzles.js +0 -0
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/generate.js +1 -0
- package/bundle/obf/src/commands/get/_index.js +1 -0
- package/bundle/obf/src/commands/get/get.command.js +1 -0
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/help.js +1 -0
- package/bundle/obf/src/commands/jsdoc.js +1 -0
- package/bundle/obf/src/commands/lint.js +1 -0
- package/bundle/obf/src/commands/login.js +1 -0
- package/bundle/obf/src/commands/logout.js +1 -0
- package/bundle/obf/src/commands/logs.js +1 -0
- package/bundle/obf/src/commands/maka.cmd.js +1 -0
- package/bundle/obf/src/commands/murder.js +1 -0
- package/bundle/obf/src/commands/proxy.js +1 -0
- package/bundle/obf/src/commands/reconfig.js +1 -0
- package/bundle/obf/src/commands/run/_index.js +1 -0
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/run/run.command.js +1 -0
- package/bundle/obf/src/commands/set/_index.js +1 -0
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/set/set.command.js +1 -0
- package/bundle/obf/src/commands/ssh.js +1 -0
- package/bundle/obf/src/commands/ssl.js +1 -0
- package/bundle/obf/src/commands/test.js +1 -0
- package/bundle/obf/src/commands/version.js +1 -0
- package/bundle/obf/src/error.js +1 -0
- package/bundle/obf/src/exec.js +2 -0
- package/bundle/obf/src/generator.js +1 -0
- package/bundle/obf/src/generators/_index.js +1 -0
- package/bundle/obf/src/generators/api.js +1 -0
- package/bundle/obf/src/generators/collection.js +1 -0
- package/bundle/obf/src/generators/component.js +1 -0
- package/bundle/obf/src/generators/config.js +1 -0
- package/bundle/obf/src/generators/dbc.js +1 -0
- package/bundle/obf/src/generators/dockerfile.js +1 -0
- package/bundle/obf/src/generators/hook.js +1 -0
- package/bundle/obf/src/generators/kit.js +1 -0
- package/bundle/obf/src/generators/layout.js +1 -0
- package/bundle/obf/src/generators/maka.gen.js +1 -0
- package/bundle/obf/src/generators/methods.js +1 -0
- package/bundle/obf/src/generators/package.js +1 -0
- package/bundle/obf/src/generators/page.js +1 -0
- package/bundle/obf/src/generators/publish.js +1 -0
- package/bundle/obf/src/generators/route.js +1 -0
- package/bundle/obf/src/generators/service.js +1 -0
- package/bundle/obf/src/generators/services/_index.js +1 -0
- package/bundle/obf/src/generators/services/openssl.js +1 -0
- package/bundle/obf/src/generators/services/translation.js +1 -0
- package/bundle/obf/src/maka.js +1 -0
- package/bundle/obf/src/templates/meteor/api/api.js +11 -0
- package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -0
- package/bundle/obf/src/templates/meteor/api/collection.js +86 -0
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -0
- package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -0
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -0
- package/bundle/obf/src/templates/meteor/api/methods.js +136 -0
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -0
- package/bundle/obf/src/templates/meteor/api/publications.js +31 -0
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -0
- package/bundle/obf/src/templates/meteor/api/register-api.js +15 -0
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -0
- package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -0
- package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -0
- package/bundle/obf/src/templates/meteor/api/tests.js +1 -0
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -0
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -0
- package/bundle/obf/src/templates/meteor/app/client/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/client/body.html +3 -0
- package/bundle/obf/src/templates/meteor/app/client/head.html +15 -0
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -0
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -0
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -0
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -0
- package/bundle/obf/src/templates/meteor/app/client/main.js +13 -0
- package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -0
- package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -0
- package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -0
- package/bundle/obf/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -0
- 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 +1 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -0
- 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 +152 -0
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -0
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -0
- package/bundle/obf/src/templates/meteor/app/lib/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -0
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -0
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -0
- 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 +27 -0
- package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -0
- package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -0
- package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -0
- package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -0
- package/bundle/obf/src/templates/meteor/app/server/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -0
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -0
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -0
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -0
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -0
- package/bundle/obf/src/templates/meteor/app/server/main.js +8 -0
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +8 -0
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +8 -0
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +8 -0
- package/bundle/obf/src/templates/meteor/app/tsconfig.json +28 -0
- package/bundle/obf/src/templates/meteor/collection/collection.js +85 -0
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -0
- package/bundle/obf/src/templates/meteor/collection/tests.js +27 -0
- package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -0
- package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -0
- package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -0
- package/bundle/obf/src/templates/meteor/config/process.env +5 -0
- package/bundle/obf/src/templates/meteor/config/settings.json +10 -0
- package/bundle/obf/src/templates/meteor/config/ssh.json +6 -0
- package/bundle/obf/src/templates/meteor/dbc/config.js +70 -0
- package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -0
- package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -0
- package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -0
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -0
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -0
- package/bundle/obf/src/templates/meteor/method/method.js +48 -0
- package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -0
- 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 +37 -0
- package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -0
- package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -0
- package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -0
- 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 +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -0
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -0
- package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -0
- package/bundle/obf/src/templates/meteor/project/README.md +1 -0
- package/bundle/obf/src/templates/meteor/project/build/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/project/build/README +4 -0
- package/bundle/obf/src/templates/meteor/project/gitignore +6 -0
- package/bundle/obf/src/templates/meteor/publish/publish.js +3 -0
- package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -0
- package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -0
- package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -0
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -0
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -0
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -0
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -0
- package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -0
- package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -0
- package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -0
- package/bundle/obf/src/templates/meteor/template/template.css +6 -0
- package/bundle/obf/src/templates/meteor/template/template.css.less +6 -0
- package/bundle/obf/src/templates/meteor/template/template.html +5 -0
- package/bundle/obf/src/templates/meteor/template/template.js +20 -0
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -0
- package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -0
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -0
- package/bundle/obf/src/templates/react/component/component.css +6 -0
- package/bundle/obf/src/templates/react/component/component.css.less +6 -0
- package/bundle/obf/src/templates/react/component/component.js +0 -0
- package/bundle/obf/src/templates/react/component/component.js.jsx +63 -0
- package/bundle/obf/src/templates/react/component/component.js.ts +0 -0
- package/bundle/obf/src/templates/react/component/component.js.tsx +68 -0
- package/bundle/obf/src/templates/react/hook/hook.js +1 -0
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -0
- package/bundle/obf/src/templates/react/hook/hook.js.ts +0 -0
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -0
- package/bundle/obf/src/templates/react/route/route.js +8 -0
- package/bundle/obf/src/templates/react/route/route.js.jsx +8 -0
- package/bundle/obf/src/templates/react/route/route.js.ts +8 -0
- package/bundle/obf/src/templates/react/route/route.js.tsx +8 -0
- package/bundle/obf/src/templates/react/test/test.js +1 -0
- package/bundle/obf/src/templates/react/test/test.js.jsx +41 -0
- package/bundle/obf/src/templates/react/test/test.js.ts +1 -0
- package/bundle/obf/src/templates/react/test/test.js.tsx +41 -0
- package/bundle/obf/src/templates/service/docker/Dockerfile +54 -0
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -0
- package/bundle/obf/src/templates/service/i18n/i18n.js +33 -0
- package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -0
- 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 +3 -0
- package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -0
- package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -0
- package/bundle/obf/src/tool.js +1 -0
- package/bundle/obf/src/tools/actions/actions.class.js +1 -0
- package/bundle/obf/src/tools/aws/aws.class.js +1 -0
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -0
- package/bundle/obf/src/tools/docker/docker.class.js +1 -0
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -0
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -0
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -0
- package/bundle/obf/src/tools/https/https.class.js +1 -0
- package/bundle/obf/src/tools/https/https.interface.js +1 -0
- package/bundle/obf/src/tools/log/log.class.js +1 -0
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -0
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -0
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -0
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -0
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -0
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -0
- package/bundle/obf/src/tools/ssl/ssl.interfaces.js +0 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a81c(){const A=['The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','exit','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','genCSR','email','ssl','appName','stringify','letsencrypt','parse','ping','2417290TpunRz','135308yXhEyw','toString','33363dUTngC','domains','\x20--email\x20','create','New\x20CSR\x20written\x20to\x20','constructor','writeFileSync','Checking\x20remote\x20host\x20availability','getProjectConfig','domainNames','30817OXxIuQ','mkKeysDir','552xlcwIX','withSpinner','join','apply','1231668ELcEHq','notice','Remote\x20host\x20connection\x20successful','maka\x20ssl\x20[command]','uname\x20-a','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','38fTzAAS','48OKDRBk','generate-csr','sudo\x20snap\x20install\x20--classic\x20certbot','11xfRBzQ','Please\x20provide\x20a\x20command.','existsSync','.key','(((.+)+)+)+$','547265Pnkxqg','/ssh.json','search','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','readFileSync','generate-ssc','getConfigPath','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','letsencrypt.json','135555TrFGVc','emailUpdate','.csr','env','ask','maka\x20ssl\x20--env\x20dev\x20generate-csr','ssh','fsi','Create\x20and\x20manage\x20your\x20SSL\x20operations.','error','Email\x20to\x20use\x20for\x20auto-updates:\x20','genSSC','Using\x20saved\x20letsencrypt\x20config','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','.crt'];a81c=function(){return A;};return a81c();}const a81y=a81d;(function(a,b){const v=a81d,c=a();while(!![]){try{const d=parseInt(v(0x178))/0x1*(parseInt(v(0x13f))/0x2)+-parseInt(v(0x139))/0x3+-parseInt(v(0x16c))/0x4+-parseInt(v(0x148))/0x5+-parseInt(v(0x140))/0x6*(parseInt(v(0x151))/0x7)+parseInt(v(0x17a))/0x8*(parseInt(v(0x16e))/0x9)+parseInt(v(0x16b))/0xa*(parseInt(v(0x143))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x5b607));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a81d;if(c){const e=c[w(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const x=a81d;return a81a[x(0x16d)]()[x(0x14a)]('(((.+)+)+)+$')[x(0x16d)]()[x(0x173)](a81a)[x(0x14a)](x(0x147));});a81a();import a81e from'fs';import a81f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x137;let f=c[d];return f;},a81d(a,b);}Command[a81y(0x171)]({'name':a81y(0x165),'usage':a81y(0x13c),'validOpts':[a81y(0x16f),a81y(0x164)],'requiredOpts':[a81y(0x154)],'shortDesc':a81y(0x159),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a81y(0x156),a81y(0x13e),a81y(0x15e)]},async function(a,b){const z=a81y,c=this[z(0x158)][z(0x176)](),d=this[z(0x158)][z(0x14e)](b[z(0x154)]),f=this[z(0x158)][z(0x179)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===z(0x141))SSL[z(0x163)]({'keyName':c[z(0x166)]+'.key','csrName':c[z(0x166)]+z(0x153),'cwd':f});else{if(g===z(0x14d)){if(!a81e[z(0x145)](a81f['join'](f,c[z(0x166)]+'.key')))throw z(0x160)+a81f[z(0x137)](f,c[z(0x166)]+z(0x146));if(!a81e[z(0x145)](a81f[z(0x137)](f,c[z(0x166)]+z(0x153))))throw z(0x14f)+a81f[z(0x137)](f,c[z(0x166)]+z(0x153));SSL[z(0x15c)]({'keyName':c[z(0x166)]+z(0x146),'crtName':c[z(0x166)]+z(0x15f),'cwd':f}),Log[z(0x13a)](z(0x172)+f);}else{if(g===z(0x168)){let h=b['domains'],i=b[z(0x164)];try{const p=a81e[z(0x14c)](a81f[z(0x137)](d,z(0x150)))[z(0x16d)](),q=JSON[z(0x169)](p);h=b[z(0x16f)]?b[z(0x16f)]:q[z(0x177)],i=b[z(0x164)]?b[z(0x164)]:q[z(0x152)],(!b['email']||!b[z(0x16f)])&&Log['notice'](z(0x15d));}catch(r){}const j=JSON[z(0x169)](a81e[z(0x14c)](d+z(0x149))[z(0x16d)]());Object['assign'](j,{'env':d}),Log[z(0x13a)](z(0x175));try{const s=SSH[z(0x16a)](z(0x13d),j);if(!s)throw z(0x14b);if(s)Log['success'](z(0x13b));}catch(t){Log[z(0x15a)](t);return;}const k=Log[z(0x17b)]();k['start']('Verifying\x20Letsencrypt\x20configuration'),SSH['ssh'](z(0x162),{...j}),SSH[z(0x157)](z(0x142),{...j}),SSH['ssh']('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...j}),k['success']();const l=h?h:await Actions[z(0x155)]('[?]\x20Domains\x20to\x20register:\x20'),m=i?i:await Actions[z(0x155)](z(0x15b));SSH[z(0x157)]('sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20'+l+z(0x170)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x167)](n,null,0x2);a81e[z(0x174)](a81f['join'](d,z(0x150)),o);}else throw z(0x144);}}}catch(u){console[z(0x15a)](u),process[z(0x161)](0x0);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a82q=a82d;(function(a,b){const m=a82d,c=a();while(!![]){try{const d=-parseInt(m(0x9d))/0x1*(-parseInt(m(0xab))/0x2)+parseInt(m(0x8b))/0x3*(-parseInt(m(0xac))/0x4)+parseInt(m(0xb1))/0x5*(parseInt(m(0x7b))/0x6)+-parseInt(m(0xaa))/0x7+parseInt(m(0x95))/0x8*(parseInt(m(0xa6))/0x9)+-parseInt(m(0xae))/0xa*(parseInt(m(0x8a))/0xb)+parseInt(m(0x85))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0xbe1a5));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a82d;if(c){const e=c[n(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const o=a82d;return a82a['toString']()['search'](o(0x94))[o(0x92)]()[o(0x81)](a82a)[o(0x9e)]('(((.+)+)+)+$');});a82a();import a82e from'fs';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x7a;let f=c[d];return f;},a82d(a,b);}import a82f from'path';function a82c(){const t=['test-packages','notice','--driver','87114GWHkSj','findProjectDirectory','.maka','packages','none','--full-app','constructor','driver','--driver-package','filter','10956324GOryUD','create','fsi','unit','driverPackage','11077ZvAmpT','30777JmBgCj','--settings','getConfigPath','--env','maka\x20test\x20<opts>','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','test','toString','splice','(((.+)+)+)+$','8pwvVLS','meteortesting:mocha','jasmine','readFileSync','invokeMeteorCommand','Cannot\x20find\x20Node\x20Environment\x20File:\x20','driver-package','env','1JjUJHF','search','development','once','engines','error','apply','concat','join','1079208wJbrkO','testAppPath','utf8','isFile','1396787oOBUDN','1863934dDmHfI','536kVuEMM','warn','1770xAWYKU','Meteor\x20Settings:\x20','config','195hiFiUz','settings.json'];a82c=function(){return t;};return a82c();}import a82g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a82d;a82e['openSync'](a,'r'),a82g[p(0xb0)]({'path':a});};Command[a82q(0x86)]({'name':a82q(0x91),'mustBeInMakaProject':!![],'validOpts':[a82q(0xa0),'packages',a82q(0x82),a82q(0x89),a82q(0x88),a82q(0x9c),'rawLogs','port','inspect',a82q(0xa7)],'usage':a82q(0x8f),'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a82q;try{let c=this['fsi'][r(0x8d)](r(0x9f));b[r(0x9c)]&&(c=this[r(0x87)]['getConfigPath'](b[r(0x9c)]));(!b['unit']||!!b[r(0xa0)])&&(a=a[r(0xa4)]([r(0x80)]));b[r(0x88)]&&delete b['unit'];let d=b['driver-package']||b[r(0x82)]||r(0x7f);if(d===r(0x7f)){const j=JSON['parse'](a82e[r(0x98)](a82f[r(0xa5)](this['fsi'][r(0x7c)](),r(0x7d),'config.json'),r(0xa8)));if(j[r(0xa1)][r(0x91)]===r(0x97))d='sanjo:jasmine';else j[r(0xa1)][r(0x91)]==='mocha'&&(d=r(0x96));}if(d===r(0x7f))throw r(0x90);(!b[r(0x9b)]||!b['driver'])&&(a=a[r(0xa4)]([r(0x83),d]));const f=a82f[r(0xa5)](c,r(0xb2));this[r(0x87)]['isFile'](f)?(Log['notice'](r(0xaf)+f),a=a['concat']([r(0x8c),f])):Log[r(0xad)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+f);const g=a82f[r(0xa5)](c,'process.env');this[r(0x87)][r(0xa9)](g)?(Log[r(0xb4)]('Node\x20Env\x20Config:\x20'+g),syncSource(g)):Log[r(0xad)](r(0x9a)+g);const h=process['argv']['slice'](0x2)[r(0x84)](k=>k!==r(0x8e))[r(0x84)](k=>k!==r(0x91))[r(0x84)](k=>k!==a[0x0]);h['forEach']((k,l)=>{const s=r;(k===s(0x8e)||k===s(0x7a))&&h[s(0x93)](l,0x2),k==='--packages'&&h['splice'](l,0x1);});const i=b[r(0x7e)]?r(0xb3):r(0x91);this[r(0x87)][r(0x99)](i,a[r(0xa4)](h));}catch(k){console[r(0xa2)](k),process['exit'](0x0);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a83k=a83d;(function(a,b){const i=a83d,c=a();while(!![]){try{const d=-parseInt(i(0x7f))/0x1+parseInt(i(0x94))/0x2*(-parseInt(i(0x78))/0x3)+-parseInt(i(0x9a))/0x4+parseInt(i(0x76))/0x5*(parseInt(i(0x77))/0x6)+parseInt(i(0x7c))/0x7+parseInt(i(0x7b))/0x8*(parseInt(i(0x91))/0x9)+-parseInt(i(0x99))/0xa*(-parseInt(i(0x8a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xf2db7));const a83b=(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;};}()),a83a=a83b(this,function(){const j=a83d;return a83a[j(0x88)]()[j(0xa0)]('(((.+)+)+)+$')['toString']()[j(0x86)](a83a)['search'](j(0x96));});a83a();function a83c(){const m=['\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','version','error','getProjectsMeteorNodeVersion','meteor','search','platform','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','System\x27s\x20Node\x20Version\x20','437015GuIaqM','30qVQCLG','771057CzFXQK','Project\x27s\x20Meteor\x20Version\x20','bright','1888416nVYGLU','8844969CywEiF','isMakaProject','----------------------Project----------------------------','1758002kefugo','notice','create','4.5.21','maka\x20version','getProjectMeteorVersion','meteor.bat','constructor','\x20node\x20-v','toString','fsi','121YPuwJy','System\x27s\x20Meteor\x20Version\x20',')\x20to\x20at\x20least\x20meteor\x27s\x20(','maka\x20v','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','----------------------System----------------------------','compareMakaToLatest','72BvzDOQ','Project\x27s\x20Meteor\x20Node\x20Version\x20','replace','14xUaSTq','warn','(((.+)+)+)+$','Maka\x20','win32','1865830GGmUrs','4358132iapAgK'];a83c=function(){return m;};return a83c();}import{execSync}from'child_process';import a83e from'semver';function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x74;let f=c[d];return f;},a83d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a83k(0x82)};Command[a83k(0x81)]({'name':a83k(0x9c),'aliases':['v'],'usage':a83k(0x83),'maxArgLength':0x1,'validOpts':[],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':[a83k(0x8d),a83k(0x83)]},async function(){const l=a83k;try{const a=process[l(0xa1)]===l(0x98)?l(0x85):l(0x9f);Log['majestic'](l(0x97)+pjson[l(0x9c)]),await this[l(0x89)][l(0x90)](),Log[l(0x7a)](l(0x8f));const b=this['fsi']['getGlobalMeteorVersion']();Log['bright']((l(0x8b)+b)[l(0x93)]('\x0a',''));const c=execSync(a+l(0x87))[l(0x88)]()[l(0x93)](/\r?\n|\r/,'')[l(0x93)]('v','');Log[l(0x7a)](l(0xa2)+c);const d=execSync('node\x20-v')['toString']()[l(0x93)](/\r?\n|\r/,'')['replace']('v','');a83e['gt'](c,d)?(Log[l(0x95)](l(0x75)+d),Log[l(0x95)](l(0x74)+d+l(0x8c)+c+')')):Log['bright'](l(0x75)+d);if(this['fsi'][l(0x7d)]()){Log['bright'](l(0x7e));const f=this[l(0x89)][l(0x84)]();a83e['gt'](b,f)?(Log[l(0x95)](l(0x79)+f['replace']('\x0a','')),Log[l(0x95)]('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+b+'\x22')):Log[l(0x80)]((l(0x79)+f)[l(0x93)]('\x0a',''));const g=await this['fsi'][l(0x9e)]();g==='N/A'?(Log[l(0x95)](l(0x92)+g),Log[l(0x95)](l(0x8e))):Log[l(0x7a)](l(0x92)+g),Log[l(0x7a)](l(0x9b));}}catch(h){console[l(0x9d)](h),process['exit'](0x0);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){var f=a84d,c=a();while(!![]){try{var d=-parseInt(f(0x187))/0x1*(-parseInt(f(0x184))/0x2)+-parseInt(f(0x183))/0x3*(parseInt(f(0x18b))/0x4)+parseInt(f(0x17d))/0x5*(-parseInt(f(0x182))/0x6)+parseInt(f(0x189))/0x7*(-parseInt(f(0x185))/0x8)+parseInt(f(0x188))/0x9+parseInt(f(0x17f))/0xa+parseInt(f(0x17e))/0xb*(parseInt(f(0x181))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x3d04b));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x18d)]()[h(0x18a)](h(0x186))[h(0x18d)]()[h(0x18c)](a84a)['search'](h(0x186));});a84a();export class UsageError{}export class UsageErrorWithSubs{}function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x17d;var f=c[d];return f;},a84d(a,b);}function a84c(){var i=['292cOeDJm','constructor','toString','5dAsIpK','74173PnabFg','422420xCxzfn','apply','1056REtYXR','1908714mircix','8523rtxpLZ','338feYUtg','226168QMGSrZ','(((.+)+)+)+$','1546ysWIJY','1705716AQxzey','77psZNvU','search'];a84c=function(){return i;};return a84c();}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var a85h=a85d;function a85d(a,b){var c=a85c();return a85d=function(d,e){d=d-0x109;var f=c[d];return f;},a85d(a,b);}function a85c(){var i=['(((.+)+)+)+$','constructor','NODE_OPTIONS','7104976GevVjA','129775raKQIx','toString','3104140MNHdJA','env','230YMmNoO','1110549nIvBcl','search','3405630rxeKxf','7562555kKtDZv','21501trCqGu'];a85c=function(){return i;};return a85c();}(function(a,b){var f=a85d,c=a();while(!![]){try{var d=parseInt(f(0x110))/0x1+parseInt(f(0x10f))/0x2*(-parseInt(f(0x114))/0x3)+parseInt(f(0x10d))/0x4+-parseInt(f(0x10b))/0x5+-parseInt(f(0x112))/0x6+parseInt(f(0x113))/0x7+-parseInt(f(0x10a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0xa1646));var a85b=(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;};}()),a85a=a85b(this,function(){var g=a85d;return a85a['toString']()[g(0x111)](g(0x115))[g(0x10c)]()[g(0x116)](a85a)[g(0x111)](g(0x115));});a85a(),process[a85h(0x10e)][a85h(0x109)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a86u=a86d;(function(a,b){const q=a86d,c=a();while(!![]){try{const d=-parseInt(q(0x1dd))/0x1+parseInt(q(0x208))/0x2+parseInt(q(0x1bf))/0x3*(-parseInt(q(0x213))/0x4)+parseInt(q(0x1c7))/0x5+parseInt(q(0x217))/0x6*(parseInt(q(0x1fe))/0x7)+parseInt(q(0x1f3))/0x8*(parseInt(q(0x21f))/0x9)+parseInt(q(0x1f0))/0xa*(-parseInt(q(0x1d3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xf155f));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a86d;if(c){const e=c[r(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const s=a86d;return a86a[s(0x20a)]()[s(0x1fc)]('(((.+)+)+)+$')[s(0x20a)]()[s(0x1e6)](a86a)[s(0x1fc)](s(0x1ca));});a86a();import a86e from'path';import a86f from'cli-table';import{paramCase}from'change-case';import a86g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a86c(){const F=['root','aliases','exit','join','validateMeteorInstall','Generator\x20requires\x20a\x20name','bright','keys','search','Location','28yxgpOL','Please\x20run\x20\x22maka\x20install\x20meteor\x22','assign','where','slice','find','dir','both','split','bind','2451418BVfGYc','Generators:','toString','validateParams','map','No\x20resource\x20name\x20specified','Generator.create\x20requires\x20a\x20handler\x20function!','usage','maxOptsLength','validateMakaProject','Both','1072YQVVIo','pop','resourceName','server','1179006GUuGYB','Too\x20few\x20arguments','fsi','appPathPrefix','addGenerator\x20requires\x20a\x20Generator\x20instance','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','help','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','99boatAi','chdir','number','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','apply','call','462GeRINx','invoke','error','Server','create','addGenerator','filter','notice','4001025GNeAeg','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','minOptsLength','(((.+)+)+)+$','minArgLength','findProjectDirectory','Too\x20few\x20options','_generators','sep','push','Alias','parent','99jmYaon','maxArgLength','name','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','lib','length','list','checkWhere','function','domainLicense','538384XBLJJw','Too\x20many\x20options','To\x20use\x20this\x20generator,\x20\x22','Generator.create\x20requires\x20some\x20options!','Description','options','tableList','proFlags','findGenerator','constructor','replace','Generator\x20requires\x20a\x20handler\x20function','shortDesc','Too\x20many\x20arguments','proGenerators','client','includes','match','_handler','2397380ENyqPK','getPro','mustBeInMakaProject','664648jmsbqD'];a86c=function(){return F;};return a86c();}import{Actions}from'./tools/actions/actions.class.js';function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a86d(a,b);}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const t=a86d,c=process['cwd']();let d=null;try{process[t(0x1ba)](a),d=b();}finally{process[t(0x1ba)](c);}return d;}export class Generator extends Tool{['options'];[a86u(0x1ce)];constructor(a,b){const v=a86u;super();if(!a)throw new Error(v(0x1bc));if(!a[v(0x1d5)])throw new Error(v(0x1f9));if(typeof b!==v(0x1db))throw new Error(v(0x1e8));this['_generators']=[],this['options']=Object['assign']({},a),this[v(0x1d5)]=this[v(0x1e2)][v(0x1d5)],this[v(0x1ef)]=b[v(0x207)](this);}static[a86u(0x1c3)](a,b,c){const w=a86u;if(!a)throw new Error(w(0x1e0));if(typeof b!==w(0x1db))throw new Error(w(0x20e));const d=new Generator(a,b);return c=c||a86g,Object[w(0x200)](d,{'parent':c?.['options']?.[w(0x1d5)]}),c[w(0x1c4)](d),d;}[a86u(0x1c4)](a){const x=a86u;if(!(a instanceof Generator))throw new Error(x(0x21b));this['_generators'][x(0x1d0)](a);}[a86u(0x1e5)](a){const y=a86u,b=this[y(0x1ce)][y(0x203)](c=>c[y(0x1ee)](a));return b;}async['validateMakaSubscription'](a,b){const z=a86u,c=this[z(0x1e5)](a[0x0]);if(c){const d=c?.[z(0x1d5)]||a[0x0],e=c?.[z(0x1d2)]||'',f=Object[z(0x1fb)](b),g=await this[z(0x219)][z(0x1f1)]();!g&&(Log[z(0x1c1)](z(0x21e)),process[z(0x1f6)](0x1));const h=!g?.['roles'][z(0x1ed)]('singleLicense')&&!g?.['roles'][z(0x1ed)](z(0x1dc)),i=g?.[z(0x1eb)][z(0x1ed)](d)||g?.[z(0x1eb)][z(0x1ed)](e);if(i&&h)throw z(0x1df)+d+z(0x1c8);if(f[z(0x1d8)]>0x0){const j=g?.[z(0x1e4)][z(0x1c5)](k=>f['includes'](k));if(j&&j[z(0x1d8)]>0x0&&h)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+j?.[z(0x1f7)](',\x20')+z(0x1c8);}}}async[a86u(0x1c0)](a,b){const A=a86u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x1e2)];try{await this['validateMakaSubscription'](a,b);}catch(g){Log[A(0x1c1)](g),process[A(0x1f6)](0x1);}const f=a[A(0x202)]();b[A(0x215)]=f[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[A(0x21d)])throw new UsageError();if(this[A(0x1e2)][A(0x1f2)]){const h=this[A(0x211)]();if(!h)throw new MustBeInProjectError();}if(this[A(0x1e2)]['mustHaveMeteorInstalled']){const i=this[A(0x1f8)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0x1e2)][A(0x1cb)]===A(0x1bb)){if(a['length']<this[A(0x1e2)][A(0x1cb)]){Log[A(0x1c1)](A(0x218));throw new UsageError();}}if(typeof this[A(0x1e2)][A(0x1d4)]===A(0x1bb)){if(a['length']>this['options'][A(0x1d4)]){Log['error'](A(0x1ea));throw new UsageError();}}if(typeof this['options'][A(0x1c9)]==='number'){if(Object[A(0x1fb)](b)['length']<this[A(0x1e2)]['minOptsLength']){Log['error'](A(0x1cd));throw new UsageError();}}if(typeof this[A(0x1e2)][A(0x210)]==='number'){if(Object['keys'](b)['length']>=this['options'][A(0x210)]){Log['error'](A(0x1de));throw new UsageError();}}this[A(0x20b)](a,b,this[A(0x1e2)]);if(!b['resourceName']&&!this[A(0x1e2)]['noResource']){Log[A(0x1c1)](A(0x20d));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[A(0x20f)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[A(0x1ce)][A(0x1d8)]>0x0&&b[A(0x21d)]&&(Log[A(0x1c6)](A(0x209)),this['tableList'](this[A(0x1ce)]));else{if(j instanceof MustBeInProjectError)Log['error'](A(0x21c));else{if(j instanceof NoMeteorFoundError)Log[A(0x1c1)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[A(0x1c6)](A(0x1ff));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x1c1)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw j;}}}process[A(0x1f6)](0x1);}return new Promise(k=>{inside(b['cwd'],async()=>{const B=a86d;try{if(!b[B(0x1f4)]&&!this['fsi'][B(0x1cc)]())throw new MustBeInProjectError();const l=b[B(0x215)]?.[B(0x1e7)](/\\/g,'/')[B(0x206)]('/');!b[B(0x204)]&&(l?.[B(0x1d8)]>0x1?(b[B(0x215)]=l[B(0x214)](),f[0x0]=b[B(0x215)],b[B(0x204)]=l[B(0x20c)](m=>{return paramCase(m);})[B(0x1f7)](a86e[B(0x1cf)])):b[B(0x204)]='');if(this[B(0x1e2)][B(0x1da)]){if(!b[B(0x201)]){const n={'type':B(0x1d9),'name':'colLocAnswer','message':B(0x1fd),'choices':[{'name':'Client','value':'client'},{'name':B(0x1c2),'value':'server'},{'name':B(0x212),'value':B(0x205)}]},{colLocAnswer:o}=await Actions['options'](n);o?b[B(0x201)]=o:b[B(0x201)]=B(0x205);}const m=[B(0x205),'client',B(0x216)];if(!m[B(0x1ed)](b[B(0x201)])){Log['error'](B(0x1d6));throw new UsageError();}switch(b['where']){case B(0x205):b['appPathPrefix']=B(0x1d7);break;case B(0x216):b[B(0x21a)]='server';break;case B(0x1ec):b['appPathPrefix']=B(0x1ec);break;default:b['appPathPrefix']='';}}k(this[B(0x1ef)][B(0x1be)](this,f,b));}catch(p){console[B(0x1c1)](p);}});});}['listGenerators'](){const C=a86u;this[C(0x1e3)](this[C(0x1ce)]);}[a86u(0x1e3)](a){const D=a86u,b=new a86f({});b[D(0x1d0)](['Name',D(0x1d1),D(0x1e1)]),a['sort']()['forEach'](c=>{const E=D;b['push']([c[E(0x1d5)],c[E(0x1f5)](),c[E(0x1e9)]()]);}),Log[D(0x1fa)](b['toString']());}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){var f=a87d,c=a();while(!![]){try{var d=parseInt(f(0x126))/0x1+parseInt(f(0x122))/0x2+parseInt(f(0x12e))/0x3*(parseInt(f(0x12b))/0x4)+-parseInt(f(0x12a))/0x5*(-parseInt(f(0x12f))/0x6)+-parseInt(f(0x123))/0x7*(-parseInt(f(0x125))/0x8)+-parseInt(f(0x127))/0x9*(parseInt(f(0x129))/0xa)+-parseInt(f(0x12d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x4a99f));var a87b=(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;};}()),a87a=a87b(this,function(){var g=a87d;return a87a[g(0x128)]()[g(0x12c)]('(((.+)+)+)+$')['toString']()['constructor'](a87a)['search'](g(0x124));});a87a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';function a87c(){var h=['7ftrRkX','(((.+)+)+)+$','4876432ZPzSrX','305938APPLWX','4041VVvVRa','toString','2810FqLPha','5tOhGTX','75632OlKedM','search','7275840eDrFOB','6ORDTtW','639924GpFlAe','66428qeosFM'];a87c=function(){return h;};return a87c();}import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0x122;var f=c[d];return f;},a87d(a,b);}import'./maka.gen.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a88z=a88d;(function(a,b){const w=a88d,c=a();while(!![]){try{const d=-parseInt(w(0xe3))/0x1*(-parseInt(w(0xde))/0x2)+parseInt(w(0xad))/0x3+-parseInt(w(0xe2))/0x4+parseInt(w(0xf8))/0x5*(-parseInt(w(0xd9))/0x6)+parseInt(w(0xf2))/0x7*(parseInt(w(0xac))/0x8)+parseInt(w(0xab))/0x9+-parseInt(w(0xcb))/0xa*(parseInt(w(0xfa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x94119));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a88d;if(c){const e=c[x(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const y=a88d;return a88a['toString']()['search'](y(0xba))[y(0xbb)]()[y(0xf4)](a88a)[y(0xbc)]('(((.+)+)+)+$');});a88a();import{Generator}from'../generator.js';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0xa2;let f=c[d];return f;},a88d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a88c(){const C=['-api.','injectIntoFile','-api\x27;','.app-tests.','(((.+)+)+)+$','toString','search','GraphQL','api/methods.js','withValue','injectAtEndOfFile','checkbox','api/register-api.js','RPC\x20(Methods)','Verifying\x20meteor\x20package\x20requirements\x20...','api/resolvers.js','typeDefs.','graphql','maka\x20g:api\x20todos','const','maka\x20{generate,\x20g}:{api}\x20<resource-name>','17950700NTqEdD','getProjectConfig','options','startup','api/typeDefs.js','checkMeteorPackage','api/fixtures.js','publications.','rpc-methods.','fixtures.','apply','apollo','tsx','api','6EbJIsY','collection','engines','apiAnswers','/graphql/typeDefs','12UWmzYo','api/api.js','withMethods','/imports/api','2373400IkqNhH','141667OmjoRz','length','findGenerator','template','withGql','withFixtures','typeList.push(','installMeteorPackage','resolverList.push(','dir','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rewriteDestinationPathForEngine','Resolvers);\x0a\x0a','\x27;\x0a','create','3812095NOWxvb','withRest','constructor','includes','Fixtures','rest','1128235svbUob','push','11jeUEqg','rest-api.','maka:rest','fsi','exit','resolvers.','log','REST\x20API','withPubs','test','10893105LBzKiv','16pNbmDE','213117bffNoE','register-','notice','error','pathFromApp','server','api/publications.js','No\x20API\x20boundaries\x20selected','imports'];a88c=function(){return C;};return a88c();}import a88e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a88z(0xf1)]({'name':'api','aliases':['a'],'usage':a88z(0xca),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a88z(0xec)],'examples':[a88z(0xc8)]},async function(a,b){const A=a88z;try{const c=this[A(0xa4)][A(0xcc)](),d=[{'name':A(0xc3),'value':A(0xe0)},{'name':A(0xf6),'value':A(0xe8)},{'name':'Publications','value':A(0xa9)}];c[A(0xdb)][A(0xd8)]===A(0xf7)&&d[A(0xf9)]({'name':A(0xa8),'value':A(0xf3)});c[A(0xdb)]['graphql']===A(0xd6)&&d['push']({'name':A(0xbd),'value':A(0xe7)});const f={'type':A(0xc1),'name':A(0xdc),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xcd)](f);g[A(0xe4)]===0x0&&(Log[A(0xb0)](A(0xb4)),process[A(0xa5)](0x1)),this['fsi'][A(0xbf)](c,async()=>{const B=A,h=this[B(0xa4)][B(0xb1)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0xec)]?'/'+b[B(0xec)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0xd8)],'graphql':c[B(0xdb)][B(0xc7)],'test':c['engines']['test'],'noRename':!![],'withPubs':g[B(0xf5)](B(0xa9)),'withFixtures':g[B(0xf5)](B(0xe8)),'withMethods':g[B(0xf5)]('withMethods'),'withRest':g['includes'](B(0xf3))};let n='js';c[B(0xdb)]['js']===B(0xd7)&&(n='ts');(!this[B(0xa4)][B(0xd0)](B(0xa3))||!this['fsi'][B(0xd0)]('maka:check')||!this[B(0xa4)]['checkMeteorPackage']('ddp-rate-limiter')||!this[B(0xa4)][B(0xd0)]('mdg:validated-method')||!this['fsi'][B(0xd0)]('mongo'))&&(Log[B(0xaf)](B(0xc4)),await this[B(0xa4)][B(0xea)](B(0xed),{'cwd':h}));const o=a88e[B(0xe5)](B(0xda));o&&await o['invoke']([j],{'config':c,'where':B(0xb2)});c['engines'][B(0xd8)]===B(0xf7)&&(m[B(0xf3)]&&this[B(0xa4)][B(0xe6)]({'srcPath':B(0xdf),'destPath':this[B(0xa4)][B(0xb1)]({'pathParts':[B(0xb5),B(0xd8),b[B(0xec)],j,B(0xa2)+n]}),'context':m,'config':c}));m[B(0xe0)]&&this[B(0xa4)][B(0xe6)]({'srcPath':B(0xbe),'destPath':this['fsi'][B(0xb1)]({'pathParts':[B(0xb5),B(0xd8),b[B(0xec)],j,B(0xd3)+n]}),'context':m,'config':c});m[B(0xe8)]&&this[B(0xa4)]['template']({'srcPath':B(0xd1),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0xb5),'api',b['dir'],j,B(0xd4)+n]}),'context':m,'config':c});c[B(0xdb)][B(0xaa)]!=='none'&&this[B(0xa4)]['template']({'srcPath':'api/tests.js','destPath':this[B(0xa4)]['pathFromApp']({'pathParts':['imports',B(0xd8),b[B(0xec)],j,j+B(0xb9)+n]}),'context':m,'config':c});m[B(0xa9)]&&this['fsi'][B(0xe6)]({'srcPath':B(0xb3),'destPath':this[B(0xa4)][B(0xb1)]({'pathParts':[B(0xb5),B(0xd8),b[B(0xec)],j,B(0xd2)+n]}),'context':m,'config':c});if(c['engines'][B(0xc7)]===B(0xd6)){if(g[B(0xf5)](B(0xe7))){const q=this[B(0xa4)][B(0xb1)]({'pathParts':['imports','startup',B(0xb2),'index.'+c[B(0xdb)]['js']]}),r=this[B(0xa4)][B(0xee)]({'pathParts':[q],'config':c}),s=this[B(0xa4)][B(0xb1)]({'pathParts':['imports','api',b[B(0xec)],j,B(0xc7),B(0xc6)+n]}),t=B(0xe1)+l+j+B(0xdd);this[B(0xa4)][B(0xe6)]({'srcPath':B(0xcf),'destPath':s,'context':m,'config':c}),this['fsi']['injectAtBeginningOfFile']({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+t+B(0xf0)}),this[B(0xa4)][B(0xb7)]({'filePath':r,'content':B(0xe9)+k+'TypeDefs);\x0a','begin':B(0xc9),'end':'if\x20\x5c(typeList'});const u=this[B(0xa4)]['pathFromApp']({'pathParts':[B(0xb5),'api',b[B(0xec)],j,B(0xc7),B(0xa6)+n]}),v=B(0xe1)+l+j+'/graphql/resolvers';this[B(0xa4)][B(0xe6)]({'srcPath':B(0xc5),'destPath':u,'context':m,'config':c}),this[B(0xa4)]['injectAtBeginningOfFile']({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0xa4)][B(0xb7)]({'filePath':r,'content':B(0xeb)+k+B(0xef),'begin':B(0xc9),'end':'if\x20\x5c(typeList'});}}this[B(0xa4)][B(0xe6)]({'srcPath':B(0xc2),'destPath':this[B(0xa4)][B(0xb1)]({'pathParts':[B(0xb5),B(0xce),B(0xb2),B(0xae)+j+B(0xb6)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xa4)][B(0xb1)]({'pathParts':[B(0xb5),B(0xce),B(0xb2),'index.'+c[B(0xdb)]['js']]});this[B(0xa4)][B(0xc0)]({'filePath':p,'content':'import\x20\x27./register-'+j+B(0xb8)});});}catch(h){console[A(0xa7)](h),process[A(0xa5)](0x0);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a89n=a89d;(function(a,b){const k=a89d,c=a();while(!![]){try{const d=-parseInt(k(0x168))/0x1+-parseInt(k(0x152))/0x2+-parseInt(k(0x15a))/0x3+-parseInt(k(0x163))/0x4*(parseInt(k(0x15c))/0x5)+-parseInt(k(0x160))/0x6+parseInt(k(0x156))/0x7*(-parseInt(k(0x158))/0x8)+parseInt(k(0x155))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0xdb6c8));function a89c(){const q=['.app-tests.','2610406BQxrzJ','pathFromApp','dir','75622158GXWQQn','12394312rTyHNA','appPathPrefix','8HkchSD','checkMeteorPackage','2556144rfTaQL','collections','1768780ksvKZl','constructor','template','maka:check','6494982UMppfo','(((.+)+)+)+$','installMeteorPackage','8FMoDeE','startup','index.','error','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','1785826oDowWh','injectAtEndOfFile','tsx','col','getProjectConfig','test','notice','imports','toString','fsi','resourceName','none','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','where','maka\x20g:collection\x20todos','engines','withValue','apply','search'];a89c=function(){return q;};return a89c();}const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a89d;if(c){const e=c[l(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const m=a89d;return a89a[m(0x170)]()[m(0x150)](m(0x161))[m(0x170)]()[m(0x15d)](a89a)['search'](m(0x161));});function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0x14b;let f=c[d];return f;},a89d(a,b);}a89a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'collection','aliases':[a89n(0x16b)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a89n(0x174),'validOpts':['dir',a89n(0x14b)],'description':a89n(0x167),'examples':[a89n(0x14c)]},async function(a,b){const o=a89n;try{const c=this['fsi'][o(0x153)]({}),d=this[o(0x171)][o(0x16c)]();this[o(0x171)][o(0x14e)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0x172)]),'collectionName':pascalCase(b[p(0x172)]),'fileName':f,'where':b[p(0x14b)],'test':d[p(0x14d)]['test'],'noRename':!![]};let h='js';d['engines']['js']===p(0x16a)&&(h='ts');!this[p(0x171)][p(0x159)]('mongo')&&(Log[p(0x16e)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0x171)][p(0x162)]('mongo',{'cwd':c}));!this[p(0x171)][p(0x159)](p(0x15f))&&(Log['notice'](p(0x175)),await this[p(0x171)][p(0x162)]('maka:check',{'cwd':c}));this[p(0x171)][p(0x15e)]({'srcPath':'collection/collection.js','destPath':this[p(0x171)][p(0x153)]({'pathParts':[p(0x16f),p(0x164),b[p(0x157)],p(0x15b),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x14d)][p(0x16d)]!==p(0x173)&&this[p(0x171)][p(0x15e)]({'srcPath':'collection/tests.js','destPath':this[p(0x171)]['pathFromApp']({'pathParts':[p(0x16f),'startup',b[p(0x157)],p(0x15b),b['dir'],f+p(0x151)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x154)]+'/':'/',j=this[p(0x171)][p(0x153)]({'pathParts':[p(0x16f),'startup',b[p(0x157)],p(0x165)+d[p(0x14d)]['js']]});this[p(0x171)][p(0x169)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0x166)](f);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a90c(){const t=['features','constructor','cssCaseName','dir','.js','358800ThwIEB','apply','710847boqicZ','templates.js','10oXYQTW','618955QQwbVK','checkNpmPackage','findAppDirectory','root','264544YrczjL','setTemplate','/imports/ui/components','theme','rewriteDestinationPathForEngine','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','\x27;\x0a','891312gzgwjU','1373ZNausT','injectAtEndOfFile','pathFromApp','.css','withTranslations','relative','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','string','test/test.js','injectAtBeginningOfFile','component/component.js','import\x20{\x20','export\x20{\x20','error','fileName','css','none','reflux','true','6ewBdep','create','pathFromProject','template/template.css','fsi','className','react','test','ramda','startup','search','api','\x20}\x20from\x20\x27','component','imports','250cWOeBj','engines','(((.+)+)+)+$','tsx','import\x20\x27','ssr','resourceName','535460dGHvhD','installNpmPackage','client','template'];a90c=function(){return t;};return a90c();}const a90q=a90d;(function(a,b){const n=a90d,c=a();while(!![]){try{const d=parseInt(n(0xa1))/0x1*(parseInt(n(0x7f))/0x2)+parseInt(n(0x8f))/0x3+-parseInt(n(0x86))/0x4+-parseInt(n(0x94))/0x5*(-parseInt(n(0xb4))/0x6)+parseInt(n(0x98))/0x7+-parseInt(n(0xa0))/0x8+parseInt(n(0x91))/0x9*(-parseInt(n(0x93))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x1f622));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a90d;if(c){const e=c[o(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const p=a90d;return a90a['toString']()[p(0xbe)](p(0x81))['toString']()[p(0x8b)](a90a)['search']('(((.+)+)+)+$');});a90a();import a90e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x7c;let f=c[d];return f;},a90d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a90q(0xb5)]({'name':a90q(0x7d),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a90q(0xa7),'validOpts':['dir'],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a90q;try{const c=this[r(0xb8)][r(0x96)](),d=r(0x9a),f=this['fsi']['pathFromApp']({'pathParts':[d,b[r(0x8d)],paramCase(b['resourceName']),paramCase(b[r(0x85)])]}),g=await this[r(0xb8)]['getProjectConfig']();this['fsi']['withValue'](g,async()=>{const s=r;typeof g[s(0x89)][s(0xbb)]==='string'&&(g[s(0x89)]['test']=g[s(0x89)][s(0xbb)]===s(0xb3)?!![]:![],this['fsi'][s(0x99)]('test',g['template'][s(0xbb)]));typeof g['template']['css']===s(0xa8)&&(g[s(0x89)][s(0xb0)]=g[s(0x89)][s(0xb0)]==='true'?!![]:![],this[s(0xb8)][s(0x99)](s(0xb0),g['template'][s(0xb0)]));typeof g[s(0x89)]['js']==='string'&&(g[s(0x89)]['js']=g[s(0x89)]['js']===s(0xb3)?!![]:![],this[s(0xb8)]['setTemplate']('js',g[s(0x89)]['js']));!g[s(0x8a)]&&(g[s(0x8a)]={});!b[s(0x97)]&&!this['fsi'][s(0x95)](s(0xbc))&&(Log['warn'](s(0x9d)),await this['fsi'][s(0x87)]('ramda',{'cwd':c}));if(!b[s(0x97)]&&!this[s(0xb8)][s(0x95)](s(0xba))){Log[s(0xae)](s(0x9e));return;}const h={'name':pascalCase(b[s(0x85)]),'myPath':a90e[s(0xa6)](this[s(0xb8)][s(0xb6)]({}),f),'cssCaseName':paramCase(b[s(0x85)]),'className':pascalCase(b[s(0x85)]),'camelCaseName':camelCase(b[s(0x85)]),'fileName':paramCase(b[s(0x85)]),'graphql':g[s(0x80)]['graphql'],'features':g[s(0x8a)],'client':g[s(0x80)][s(0x88)],'api':g[s(0x80)][s(0xbf)],'ssr':g['engines']['ssr'],'test':g[s(0x80)][s(0xbb)],'theme':g['engines'][s(0x9b)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x8a)][s(0xa5)]};this['fsi']['template']({'srcPath':s(0xab),'destPath':f+s(0x8e),'context':h,'framework':'react','config':g});g[s(0x80)]['test']!==s(0xb1)&&this[s(0xb8)][s(0x89)]({'srcPath':s(0xa9),'destPath':f+'.tests.js','context':h,'framework':s(0xba),'config':g});g[s(0x89)]['css']&&(this[s(0xb8)]['template']({'srcPath':s(0xb7),'destPath':f+s(0xa4),'context':Object['assign']({},h,{'className':paramCase(b[s(0x85)])}),'config':g}),this[s(0xb8)][s(0xaa)]({'filePath':f+'.'+g[s(0x80)]['js'],'content':'import\x20\x27./'+h[s(0x8c)]+'.'+g[s(0x80)][s(0xb0)]+'\x27;'}));const i=b['dir']?'/'+b[s(0x8d)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[s(0xaf)];let k;if(g[s(0x80)][s(0x84)]==='true'){const l=this[s(0xb8)][s(0xa3)]({'pathParts':['imports',s(0xbd),'lib',s(0x92)]});k=this[s(0xb8)][s(0x9c)]({'pathParts':[l],'config':g});}else{const m=this[s(0xb8)]['pathFromApp']({'pathParts':[s(0x7e),s(0xbd),s(0x88),s(0x92)]});k=this[s(0xb8)][s(0x9c)]({'pathParts':[m],'config':g});}g['engines']['client']===s(0xba)||g[s(0x80)]['client']===s(0xb2)?(g[s(0x80)]['js']===s(0x82)?this['fsi'][s(0xaa)]({'filePath':k,'content':s(0xac)+h['className']+s(0x7c)+j+'\x27;\x0a'}):this[s(0xb8)][s(0xaa)]({'filePath':k,'content':'import\x20{\x20'+h[s(0xb9)]+s(0x7c)+j+'.'+g[s(0x80)]['js']+s(0x9f)}),this['fsi']['injectAtEndOfFile']({'filePath':k,'content':s(0xad)+h['className']+'\x20};\x0a'})):this[s(0xb8)][s(0xa2)]({'filePath':k,'content':s(0x83)+j+'.'+g['engines']['js']+s(0x9f)});});}catch(h){Log[r(0xae)](h);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a91k=a91d;function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x161;let f=c[d];return f;},a91d(a,b);}(function(a,b){const h=a91d,c=a();while(!![]){try{const d=-parseInt(h(0x16b))/0x1+parseInt(h(0x164))/0x2*(parseInt(h(0x16e))/0x3)+parseInt(h(0x172))/0x4*(-parseInt(h(0x161))/0x5)+parseInt(h(0x16a))/0x6+parseInt(h(0x180))/0x7*(parseInt(h(0x169))/0x8)+-parseInt(h(0x177))/0x9*(parseInt(h(0x17a))/0xa)+parseInt(h(0x16f))/0xb*(parseInt(h(0x170))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0xef206));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a91d;if(c){const e=c[i(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const j=a91d;return a91a['toString']()['search'](j(0x17e))['toString']()[j(0x171)](a91a)[j(0x16c)](j(0x17e));});a91a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a91k(0x17f)]({'name':a91k(0x17d),'usage':a91k(0x162),'shortDesc':a91k(0x168),'validOpts':[a91k(0x17b)],'examples':[a91k(0x166)]},function(a,b){const l=a91k,c=this[l(0x174)]['getProjectConfig']();this['fsi']['withValue'](c,async()=>{const m=l,d={'app':c[m(0x173)],'appFileCase':paramCase(c[m(0x173)]),'name':pascalCase(b[m(0x175)]),'fileName':paramCase(b[m(0x175)]),'camelCase':camelCase(b[m(0x175)]),'userName':m(0x176),'isDocker':b[m(0x17b)]};let e=a[0x0];if(e==='dev')e=m(0x167);else e===m(0x178)&&(e='production');const f=this['fsi'][m(0x179)]({'pathParts':[m(0x17d),e,'settings.json']});this[m(0x174)][m(0x17c)]({'srcPath':m(0x165),'destPath':f,'context':d,'config':c});if(!b[m(0x17b)]){const g=this[m(0x174)][m(0x179)]({'pathParts':['config',e,m(0x163)]});this[m(0x174)][m(0x17c)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});function a91c(){const n=['resourceName','ubuntu','11916729XXJrFQ','prod','pathFromProject','10BKjbix','isDocker','template','config','(((.+)+)+)+$','create','959NKmqKU','35aWcEhz','maka\x20{generate,\x20g}:{config}\x20<name>','process.env','1214876UfvMUg','config/settings.json','maka\x20g:config\x20production','development','Generate\x20configuration\x20settings.','51752iJskPl','7088244uiFsRI','1429321RivTRQ','search','apply','6rsPXZQ','22eJCNRT','3134388ghMsJi','constructor','41164ziGqQT','appName','fsi'];a91c=function(){return n;};return a91c();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x18c;let f=c[d];return f;},a92d(a,b);}function a92c(){const t=['(((.+)+)+)+$','maka\x20g:dbc\x20todos\x20--type=sqlite','mssql','toString','fsi','dbc','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','error','type','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','constructor','index.','1696336Evsdxm','maka\x20g:dbc\x20geoserver\x20--type=pgsql','dbc/conn.js','imports','Invalid\x20type\x20','pathFromApp','warn','withValue','PostgreSQL','getProjectConfig','checkNpmPackage','3734350GtUrPL','110184UqmzDc','register-','(blank)','MS\x20SQL','create','116100iJWPcs','1595898MkYYVm','config.','search','installNpmPackage','pgsql','dbAnswer','better-sqlite3','indexOf','resourceName','DB\x20Driver','7RnUcbP','list',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','server','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','sqlite','-dbc.','engines','startup','injectAtEndOfFile','2353482SDGQal','1866263IyjiPb','dir','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','dbc/config.js','template','1035wFZzHc','apply'];a92c=function(){return t;};return a92c();}const a92q=a92d;(function(a,b){const n=a92d,c=a();while(!![]){try{const d=-parseInt(n(0x1ac))/0x1*(-parseInt(n(0x1a1))/0x2)+-parseInt(n(0x1a2))/0x3+-parseInt(n(0x190))/0x4+-parseInt(n(0x19b))/0x5+parseInt(n(0x1b6))/0x6+-parseInt(n(0x1b7))/0x7+parseInt(n(0x19c))/0x8*(parseInt(n(0x1bc))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x64d23));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a92d;if(c){const e=c[o(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const p=a92d;return a92a[p(0x1c1)]()[p(0x1a4)](p(0x1be))[p(0x1c1)]()[p(0x18e)](a92a)[p(0x1a4)](p(0x1be));});a92a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a92q(0x1a0)]({'name':'dbc','usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a92q(0x1c4),'validOpts':['type',a92q(0x1b8)],'examples':[a92q(0x191),'maka\x20g:dbc\x20azure\x20--type=mssql',a92q(0x1bf)]},async function(a,b){const r=a92q;try{const c=await this['fsi'][r(0x199)](),d=this['fsi'][r(0x195)]({}),f=paramCase(b[r(0x1aa)]);if(!b[r(0x18c)]){const h={'type':r(0x1ad),'name':r(0x1a7),'message':r(0x1ab),'choices':[{'name':r(0x198),'value':r(0x1a6)},{'name':r(0x19f),'value':'mssql'}]},{dbAnswer:i}=await Actions['options'](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0x1aa)]),'fileName':paramCase(b[r(0x1aa)]),'camelCase':camelCase(b[r(0x1aa)]),'type':b[r(0x18c)],'engine':c[r(0x1b3)]['js'],'noRename':!![]};this[r(0x1c2)][r(0x197)](c,async()=>{const s=r;let j='js';c[s(0x1b3)]['js']==='tsx'&&(j='ts');const k=[s(0x1c0),s(0x1a6)];if(k[s(0x1a9)](g[s(0x18c)])<0x0){const m=g[s(0x18c)]?g[s(0x18c)]:s(0x19e);Log[s(0x1c5)](s(0x194)+m+s(0x1ae));return;}b[s(0x18c)]===s(0x1a6)&&!this[s(0x1c2)]['checkNpmPackage']('pg')&&(Log['warn'](s(0x1b0)),await this['fsi'][s(0x1a5)]('pg',{'cwd':d}));b[s(0x18c)]===s(0x1c0)&&!this[s(0x1c2)][s(0x19a)](s(0x1c0))&&(Log['warn'](s(0x1b9)),await this['fsi'][s(0x1a5)]('mssql',{'cwd':d}));b['type']===s(0x1b1)&&!this[s(0x1c2)][s(0x19a)](s(0x1a8))&&(Log[s(0x196)](s(0x18d)),await this[s(0x1c2)][s(0x1a5)](s(0x1a8),{'cwd':d}));this[s(0x1c2)][s(0x1bb)]({'srcPath':s(0x1ba),'destPath':this[s(0x1c2)]['pathFromApp']({'pathParts':[s(0x193),s(0x1b4),s(0x1af),s(0x1c3),b[s(0x1b8)],f,s(0x1a3)+j]}),'context':g,'config':c}),this[s(0x1c2)][s(0x1bb)]({'srcPath':s(0x192),'destPath':this['fsi']['pathFromApp']({'pathParts':['imports',s(0x1b4),s(0x1af),'dbc',b[s(0x1b8)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x1c2)][s(0x1bb)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x1c2)][s(0x195)]({'pathParts':[s(0x193),s(0x1b4),s(0x1af),s(0x19d)+f+s(0x1b2)+j]}),'context':g,'config':c});const l=this['fsi'][s(0x195)]({'pathParts':['imports',s(0x1b4),s(0x1af),s(0x18f)+c['engines']['js']]});this[s(0x1c2)][s(0x1b5)]({'filePath':l,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(j){Log[r(0x1c5)](j);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a93i=a93d;(function(a,b){const f=a93d,c=a();while(!![]){try{const d=parseInt(f(0xe6))/0x1*(parseInt(f(0xfc))/0x2)+-parseInt(f(0xe3))/0x3*(parseInt(f(0xec))/0x4)+-parseInt(f(0xf5))/0x5*(-parseInt(f(0xea))/0x6)+parseInt(f(0xf2))/0x7*(parseInt(f(0xf1))/0x8)+parseInt(f(0xe5))/0x9+parseInt(f(0xeb))/0xa+-parseInt(f(0xed))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x7dcb3));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a93d;if(c){const e=c[g(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const h=a93d;return a93a[h(0xef)]()['search'](h(0xf8))[h(0xef)]()[h(0xe8)](a93a)['search'](h(0xf8));});a93a();function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0xe1;let f=c[d];return f;},a93d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a93e from'path';Generator['create']({'name':a93i(0xf3),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a93i(0xee),'validOpts':[],'noResource':!![],'examples':[a93i(0xe2)]},async function(){const j=a93i;try{const a=await this[j(0xfa)]['getProjectConfig'](),b=await this[j(0xfa)][j(0xf0)](),c=this[j(0xfa)][j(0xfb)]();this['fsi'][j(0xe4)](a,async()=>{const k=j,d={'app':b[k(0xe7)],'config':a,'appPath':a93e[k(0xf4)](c,k(0xf7)),'bundlePath':a93e[k(0xf4)](c,k(0xf9),'app.tar.gz'),'useCert':this[k(0xfa)]['isFile'](b['cert'])};this[k(0xfa)]['template']({'srcPath':'docker/Dockerfile','destPath':a93e[k(0xf4)](c,k(0xe1)),'framework':k(0xf6),'context':d,'config':a});});}catch(d){Log['error'](d);}});function a93c(){const l=['153058koCQab','Dockerfile','maka\x20g:dockerfile','48knakdy','withValue','3446667JOKrSk','8OhAMWw','appName','constructor','apply','83544JYEglY','8112360JEknev','93404wpYcay','23406911vLjhAd','Generate\x20an\x20updated\x20dockerfile','toString','getGlobalConfig','280536vXowrp','161xKQEnC','dockerfile','join','145miTeJY','service','app','(((.+)+)+)+$','build','fsi','findProjectDirectory'];a93c=function(){return l;};return a93c();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a94q=a94d;(function(a,b){const o=a94d,c=a();while(!![]){try{const d=-parseInt(o(0xe3))/0x1*(parseInt(o(0x122))/0x2)+-parseInt(o(0x116))/0x3+parseInt(o(0x113))/0x4*(parseInt(o(0x101))/0x5)+-parseInt(o(0x103))/0x6*(parseInt(o(0xf6))/0x7)+parseInt(o(0x10c))/0x8*(-parseInt(o(0x11b))/0x9)+parseInt(o(0x118))/0xa*(parseInt(o(0x112))/0xb)+parseInt(o(0xe6))/0xc*(parseInt(o(0xfd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xcc33e));const a94b=(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;};}()),a94a=a94b(this,function(){const p=a94d;return a94a['toString']()[p(0xf5)](p(0xf4))[p(0x102)]()[p(0xe2)](a94a)['search'](p(0xf4));});function a94c(){const t=['dir','460386QVIRqo','export\x20{\x20','40OyOqgf','error','ssr','9844101gYCaAM','installNpmPackage','startup','client','cssCaseName','true','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','6DhdVZz','engines','fsi','withValue','pathFromApp','fileName','constructor','289343YEVeii','injectAtEndOfFile','create','12ODRXMv','theme','graphql','@apollo/client','injectAtBeginningOfFile','tsx','features','lib','\x20};\x0a','relative','warn','withTranslations','checkNpmPackage','hook','(((.+)+)+)+$','search','35iMjZWu','import\x20{\x20','css','test','maka\x20g:hook\x20cool-hook','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','20639879pCqfvj','\x27;\x0a','resourceName','react','10mzcWqq','toString','92418vUXgOa','template','/imports/ui/hooks','test/test.js','none','.js','className','import\x20\x27','assign','8pVuYbJ','rewriteDestinationPathForEngine','apollo','\x20}\x20from\x20\x27','hook/hook.js','pathFromProject','3814228BRjHzZ','108068qWYoWu','imports'];a94c=function(){return t;};return a94c();}a94a();import a94e 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';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0xde;let f=c[d];return f;},a94d(a,b);}Generator[a94q(0xe5)]({'name':a94q(0xf3),'aliases':['h'],'checkWhere':![],'usage':a94q(0x121),'shortDesc':a94q(0xfb),'validOpts':[a94q(0x115)],'examples':[a94q(0xfa)]},async function(a,b){const r=a94q;try{const c=this[r(0xde)]['checkNpmPackage'](r(0x100));if(!c){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[r(0xde)][r(0xe0)](b),f=r(0x105),g=this[r(0xde)][r(0xe0)]({'pathParts':[f,b['dir'],paramCase(b[r(0xff)]),paramCase(b[r(0xff)])]}),h=await this[r(0xde)]['getProjectConfig']();this[r(0xde)][r(0xdf)](h,async()=>{const s=r;typeof h['template'][s(0xf8)]==='string'&&(h[s(0x104)][s(0xf8)]=h[s(0x104)][s(0xf8)]===s(0x120)?!![]:![],this['fsi']['setTemplate'](s(0xf8),h[s(0x104)]['css']));h['engines']['graphql']===s(0x10e)&&!this[s(0xf2)](s(0xe9))&&(Log[s(0xf0)](s(0xfc)),await this[s(0xde)][s(0x11c)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[s(0xff)]),'className':pascalCase(b[s(0xff)]),'name':pascalCase(b[s(0xff)]),'graphql':h[s(0x123)][s(0xe8)],'theme':h['engines'][s(0xe7)],'features':h[s(0xec)],'myPath':a94e[s(0xef)](this[s(0xde)][s(0x111)]({}),g),'fileName':paramCase(b[s(0xff)]),'isComponent':![],'isLayout':![],'withTranslations':h[s(0xec)][s(0xf1)]};this[s(0xde)][s(0x104)]({'srcPath':s(0x110),'destPath':g+s(0x108),'context':i,'config':h,'framework':s(0x100)});h[s(0x104)][s(0xf8)]&&(this[s(0xde)][s(0x104)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[s(0x10b)]({},i,{'className':i[s(0x11f)]}),'config':h}),this[s(0xde)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+i['fileName']+'.'+h[s(0x123)]['css']+'\x27;'}));h['engines'][s(0xf9)]!==s(0x107)&&this[s(0xde)][s(0x104)]({'srcPath':s(0x106),'destPath':g+'.app-tests.js','framework':'react','context':i,'config':h});const j=b[s(0x115)]?'/'+b[s(0x115)]+'/':'/',k=''+f+j+i[s(0xe1)]+'/'+i[s(0xe1)];let l;if(h[s(0x123)][s(0x11a)]===s(0x120)){const m=this[s(0xde)][s(0xe0)]({'pathParts':['imports',s(0x11d),s(0xed),'templates.js']});l=this[s(0xde)][s(0x10d)]({'pathParts':[m],'config':h});}else{const n=this['fsi']['pathFromApp']({'pathParts':[s(0x114),s(0x11d),s(0x11e),'templates.js']});l=this['fsi'][s(0x10d)]({'pathParts':[n],'config':h});}h[s(0x123)]['client']===s(0x100)?(h['engines']['js']===s(0xeb)?this['fsi'][s(0xea)]({'filePath':l,'content':s(0xf7)+i[s(0x109)]+s(0x10f)+k+s(0xfe)}):this['fsi']['injectAtBeginningOfFile']({'filePath':l,'content':s(0xf7)+i[s(0x109)]+s(0x10f)+k+'.'+h[s(0x123)]['js']+s(0xfe)}),this[s(0xde)][s(0xe4)]({'filePath':l,'content':s(0x117)+i[s(0x109)]+s(0xee)})):this[s(0xde)][s(0xe4)]({'filePath':l,'content':s(0x10a)+k+'.'+h[s(0x123)]['js']+'\x27;\x0a'});});}catch(i){Log[r(0x119)](i);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a95c(){const n=['77520exenAr','7HLVMCZ','Invalid\x20type\x20','constructor','fsi','create','4nkoyOk','type','engines',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(blank)','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','maka\x20g:k\x20city-map\x20--type=leaflet-map','toString','kit','map','maka\x20g:kit\x20--type=map','withValue','indexOf','210rSfVNT','notice','12YeMNHv','search','apply','3775268emnnrO','getProjectConfig','326711nWtsxR','(((.+)+)+)+$','56gkxafb','977022oqtibR','NIE','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','437856UdDVTt','1295996lvYIce','resourceName','login','119738RKSMpQ','84CYILqR'];a95c=function(){return n;};return a95c();}const a95k=a95d;(function(a,b){const h=a95d,c=a();while(!![]){try{const d=parseInt(h(0x1d5))/0x1*(-parseInt(h(0x1d2))/0x2)+parseInt(h(0x1ce))/0x3*(-parseInt(h(0x1da))/0x4)+parseInt(h(0x1d4))/0x5*(parseInt(h(0x1d3))/0x6)+-parseInt(h(0x1c6))/0x7+parseInt(h(0x1ca))/0x8*(parseInt(h(0x1cb))/0x9)+-parseInt(h(0x1c1))/0xa*(-parseInt(h(0x1c8))/0xb)+-parseInt(h(0x1c3))/0xc*(parseInt(h(0x1cf))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x60d58));function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a95d(a,b);}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a95d;if(c){const e=c[i(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const j=a95d;return a95a[j(0x1bb)]()[j(0x1c4)](j(0x1c9))[j(0x1bb)]()[j(0x1d7)](a95a)[j(0x1c4)](j(0x1c9));});a95a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95k(0x1d9)]({'name':a95k(0x1bc),'aliases':['k'],'usage':a95k(0x1df),'shortDesc':a95k(0x1cd),'validOpts':['type'],'examples':[a95k(0x1be),a95k(0x1e0)]},async function(a,b){const l=a95k;try{const c=this[l(0x1d8)][l(0x1c7)]();this[l(0x1d8)][l(0x1bf)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x1d0)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0x1db)],'engine':c[m(0x1dc)]['js'],'noRename':!![]},f=['leaflet-map',m(0x1d1)];if(f[m(0x1c0)](d[m(0x1db)])<0x0){const g=d['type']?d['type']:m(0x1de);Log['error'](m(0x1d6)+g+m(0x1dd));return;}b[m(0x1db)]===m(0x1bd)&&Log[m(0x1c2)](m(0x1cc)),b[m(0x1db)]===m(0x1d1)&&Log[m(0x1c2)](m(0x1cc));});}catch(d){Log['error'](d);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=parseInt(o(0xa3))/0x1+-parseInt(o(0x8e))/0x2+-parseInt(o(0x7f))/0x3*(parseInt(o(0xa5))/0x4)+-parseInt(o(0x9d))/0x5*(parseInt(o(0x91))/0x6)+parseInt(o(0x8c))/0x7*(parseInt(o(0x8b))/0x8)+parseInt(o(0x9c))/0x9+-parseInt(o(0x97))/0xa*(-parseInt(o(0x8a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x32721));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a[q(0xb5)]()[q(0x9f)](q(0xaf))[q(0xb5)]()[q(0x6d)](a96a)['search']('(((.+)+)+)+$');});a96a();import a96e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x6d;let f=c[d];return f;},a96d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a96c(){const u=['className','apply','\x20}\x20from\x20\x27','(((.+)+)+)+$','features','injectAtEndOfFile','warn','/imports/ui/layouts','injectAtBeginningOfFile','toString','constructor','checkNpmPackage','tsx','findAppDirectory','includes','import\x20\x27','fileName','withHook','setTemplate','import\x20\x27./','hook/hook.js','graphql','pathFromProject','test','export\x20{\x20','templates.js','lib','rewriteDestinationPathForEngine','175506SPoaSD','.app-tests.js','engines','true','\x27;\x0a','pathFromApp','maka\x20g:l\x20web/safari','layout','import\x20{\x20','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','withValue','4415268USImfP','184feEVqp','110299UaRpZy','react','129484DzGoWn','relative','client','2433036GILHIB','maka\x20g:layout\x20mobile/iPhone8','test/test.js','fsi','string','ssr','10iWaAOw','installNpmPackage','startup','imports','ramda','1995912gfGJLl','5gvowYP','dir','search','template','api','.css','100820wOfwHK','create','28WMRGAJ','getProjectConfig','resourceName','\x20};\x0a','template/template.css','Scaffolding\x20for\x20a\x20React\x20Layout.','css'];a96c=function(){return u;};return a96c();}const aliases=['l'];Generator[a96r(0xa4)]({'name':a96r(0x86),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a96r(0xaa),'validOpts':[],'examples':[a96r(0x92),a96r(0x85)]},function(a,b){const s=a96r,c=s(0xb3),d=this[s(0x94)][s(0x70)](),e=this['fsi']['pathFromApp']({'pathParts':[c,b[s(0x9e)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this[s(0x94)][s(0xa6)]();this[s(0x94)][s(0x89)](f,()=>{const t=s;typeof f[t(0xa0)][t(0x7a)]===t(0x95)&&(f[t(0xa0)]['test']=f['template'][t(0x7a)]===t(0x82)?!![]:![],this[t(0x94)][t(0x75)](t(0x7a),f[t(0xa0)][t(0x7a)]));typeof f[t(0xa0)][t(0xab)]===t(0x95)&&(f[t(0xa0)][t(0xab)]=f[t(0xa0)]['css']===t(0x82)?!![]:![],this[t(0x94)][t(0x75)](t(0xab),f['template'][t(0xab)]));typeof f[t(0xa0)]['js']==='string'&&(f['template']['js']=f['template']['js']===t(0x82)?!![]:![],this[t(0x94)][t(0x75)]('js',f[t(0xa0)]['js']));!f['features']&&(f[t(0xb0)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x71)](g);h&&!this[t(0x6e)](t(0x9b))&&(Log[t(0xb2)](t(0x88)),this[t(0x94)][t(0x98)](t(0x9b),{'cwd':d}));if(h&&!this[t(0x6e)]('react')){Log[t(0xb2)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0xa7)]),'myPath':a96e[t(0x8f)](this[t(0x94)][t(0x79)]({}),e),'cssCaseName':paramCase(b[t(0xa7)]),'className':pascalCase(b[t(0xa7)]),'camelCaseName':camelCase(b[t(0xa7)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x81)][t(0x78)],'features':f[t(0xb0)],'client':f[t(0x81)][t(0x90)],'api':f[t(0x81)][t(0xa1)],'ssr':f['engines'][t(0x96)],'test':f['engines'][t(0x7a)],'theme':f[t(0x81)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0xb0)]['withTranslations']};f[t(0xb0)]?.['withHooks']||b[t(0x74)]?this[t(0x94)]['template']({'srcPath':t(0x77),'destPath':e+'.js','framework':'react','context':i,'config':f}):this[t(0x94)][t(0xa0)]({'srcPath':'component/component.js','destPath':e+'.js','framework':t(0x8d),'context':i,'config':f});f[t(0x81)]['test']!=='none'&&this[t(0x94)][t(0xa0)]({'srcPath':t(0x93),'destPath':e+t(0x80),'framework':'react','context':i,'config':f});f[t(0xa0)][t(0xab)]&&(this[t(0x94)][t(0xa0)]({'srcPath':t(0xa9),'destPath':e+t(0xa2),'context':Object['assign']({},i,{'className':paramCase(b[t(0xa7)])}),'config':f}),this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x81)]['js'],'content':t(0x76)+i[t(0x73)]+'.'+f[t(0x81)][t(0xab)]+'\x27;'}));const j=b[t(0x9e)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x73)]+'/'+i[t(0x73)];let l;if(f[t(0x81)][t(0x96)]===t(0x82)){const m=this[t(0x94)]['pathFromApp']({'pathParts':[t(0x9a),t(0x99),t(0x7d),t(0x7c)]});l=this[t(0x94)][t(0x7e)]({'pathParts':[m],'config':f});}else{const n=this[t(0x94)][t(0x84)]({'pathParts':[t(0x9a),t(0x99),'client',t(0x7c)]});l=this[t(0x94)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0x81)][t(0x90)]===t(0x8d)?(f[t(0x81)]['js']===t(0x6f)?this['fsi'][t(0xb4)]({'filePath':l,'content':t(0x87)+i[t(0xac)]+t(0xae)+k+t(0x83)}):this[t(0x94)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x87)+i['className']+t(0xae)+k+'.'+f[t(0x81)]['js']+'\x27;\x0a'}),this['fsi'][t(0xb1)]({'filePath':l,'content':t(0x7b)+i[t(0xac)]+t(0xa8)})):this['fsi'][t(0xb1)]({'filePath':l,'content':t(0x72)+k+'.'+f[t(0x81)]['js']+'\x27;\x0a'});});});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a97c(){const j=['maka\x20generate:api\x20Trucks','110223ColkXS','26492670rLcxID','178696HMnUby','4334532AwgrmX','112vvckrl','(((.+)+)+)+$','251427RnpLoU','1004210rXmmHD','search','4224437xdeTlo','8CsDzyU','apply','maka','toString','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]'];a97c=function(){return j;};return a97c();}const a97i=a97d;(function(a,b){const f=a97d,c=a();while(!![]){try{const d=parseInt(f(0x159))/0x1+-parseInt(f(0x155))/0x2+parseInt(f(0x153))/0x3*(-parseInt(f(0x157))/0x4)+-parseInt(f(0x15a))/0x5+-parseInt(f(0x156))/0x6+-parseInt(f(0x15c))/0x7+parseInt(f(0x15d))/0x8*(parseInt(f(0x154))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x8653e));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a97d;if(c){const e=c[g(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const h=a97d;return a97a[h(0x160)]()['search'](h(0x158))[h(0x160)]()['constructor'](a97a)[h(0x15b)]('(((.+)+)+)+$');});a97a();import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x153;let f=c[d];return f;},a97d(a,b);}const MakaGen=new Generator({'name':a97i(0x15f),'shortDesc':'Maka!','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':a97i(0x161),'examples':[a97i(0x162),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a98n=a98d;function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xe8;let f=c[d];return f;},a98d(a,b);}(function(a,b){const k=a98d,c=a();while(!![]){try{const d=-parseInt(k(0x10f))/0x1*(-parseInt(k(0x10b))/0x2)+parseInt(k(0xf9))/0x3*(parseInt(k(0x10d))/0x4)+-parseInt(k(0xe9))/0x5+parseInt(k(0xfd))/0x6*(-parseInt(k(0xee))/0x7)+parseInt(k(0xf3))/0x8+parseInt(k(0xfe))/0x9*(parseInt(k(0xec))/0xa)+-parseInt(k(0xeb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x866fc));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a98d;if(c){const e=c[l(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const m=a98d;return a98a[m(0xfa)]()[m(0x108)](m(0x103))['toString']()[m(0xf0)](a98a)['search'](m(0x103));});a98a();import{Generator}from'../generator.js';function a98c(){const q=['pathFromApp','constructor','methods','check\x20ddp-rate-limiter\x20mdg:validated-method','456752JIXHVQ','tsx','check','engines','resourceName','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','2895XPross','toString','maka\x20g:method\x20todos','-rpc-method.','6LBgSgn','439047zlnmwr','dir','method','imports','template','(((.+)+)+)+$','error','startup','fsi','installMeteorPackage','search','warn','apply','330nsVBVq','ddp-rate-limiter','2436xqnXRj','create','3699jHvsgp','checkMeteorPackage','appPathPrefix','5153855RrqvDb','import\x20\x27./methods','4830177ZgPjLF','190JkuJvN','withValue','1130227TWNwQz'];a98c=function(){return q;};return a98c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98n(0x10e)]({'name':a98n(0x100),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a98n(0xf8),'validOpts':[a98n(0xff)],'examples':[a98n(0xfb)]},function(a,b){const o=a98n;try{const c=this[o(0x106)]['getProjectConfig']();this[o(0x106)][o(0xed)](c,async()=>{const p=o,d=paramCase(b[p(0xf7)]),f={'name':b[p(0xf7)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[p(0xf7)]),'noRename':!![]};let g='js';c[p(0xf6)]['js']===p(0xf4)&&(g='ts');const h=this['fsi'][p(0xef)]({});(!this['fsi'][p(0x110)](p(0xf5))||!this[p(0x106)][p(0x110)](p(0x10c))||!this[p(0x106)][p(0x110)]('mdg:validated-method'))&&(Log[p(0x109)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0x106)][p(0x107)](p(0xf2),{'cwd':h}));this[p(0x106)][p(0x102)]({'srcPath':'method/method.js','destPath':this[p(0x106)][p(0xef)]({'pathParts':[p(0x101),'startup',b[p(0xe8)],p(0xf1),b[p(0xff)],d+p(0xfc)+g]}),'context':f,'config':c});const i=b[p(0xff)]?'/'+b[p(0xff)]+'/':'/',j=this[p(0x106)][p(0xef)]({'pathParts':[p(0x101),p(0x105),b['appPathPrefix'],'index.'+c[p(0xf6)]['js']]});this[p(0x106)]['injectAtEndOfFile']({'filePath':j,'content':p(0xea)+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x104)](d);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a99o=a99d;(function(a,b){const l=a99d,c=a();while(!![]){try{const d=parseInt(l(0x124))/0x1*(-parseInt(l(0x115))/0x2)+-parseInt(l(0x104))/0x3*(-parseInt(l(0x11f))/0x4)+-parseInt(l(0x10c))/0x5+-parseInt(l(0x120))/0x6*(parseInt(l(0x121))/0x7)+parseInt(l(0x114))/0x8*(parseInt(l(0x127))/0x9)+-parseInt(l(0x128))/0xa+parseInt(l(0x129))/0xb*(parseInt(l(0x107))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x36ce7));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a99d;if(c){const e=c[m(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const n=a99d;return a99a[n(0x11b)]()[n(0x12b)](n(0x12a))[n(0x11b)]()[n(0x10a)](a99a)['search'](n(0x12a));});a99a();import a99e from'path';import{Generator}from'../generator.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x102;let f=c[d];return f;},a99d(a,b);}function a99c(){const s=['100938YrGIBP','140fGNbOo','ssr','features','47cUjvRN','theme','engines','261zuCiKt','2136710sTomqO','451cRtMBy','(((.+)+)+)+$','search','packages','.js','noRename','client','create','template/template.js','9759wNxQQF','store','fsi','188184UrPjZL','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','/package.js','constructor','layout','1839155KUUKws','forEach','template','pathFromProject','apply','pathFromAppWithNoReWrite','component','tests/server','38976AyVrQS','538GoJcSp','package.js','relative','package/package.js','hasOwnProperty','package/','toString','lib','resourceName','dir','456LnzVFt'];a99c=function(){return s;};return a99c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99o(0x102)]({'name':'package','aliases':['p'],'usage':a99o(0x108),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a99o,c=paramCase(b[p(0x11d)]),d=this['fsi']['pathFromApp']({'pathParts':[p(0x12c),b['dir'],c]}),e=this[p(0x106)][p(0x111)]({'pathParts':[p(0x12c),b[p(0x11e)],c,p(0x116)]}),f=this[p(0x106)]['getProjectConfig']();this[p(0x106)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x11d)]),'myPath':a99e[q(0x117)](this[q(0x106)][q(0x10f)]({}),d),'cssCaseName':paramCase(b[q(0x11d)]),'className':pascalCase(b[q(0x11d)]),'camelCaseName':camelCase(b[q(0x11d)]),'fileName':c,'client':f['engines'][q(0x12f)],'graphql':f['engines']['graphql'],'ssr':f['engines'][q(0x122)],'isComponent':b[q(0x119)](q(0x112)),'isLayout':b[q(0x119)](q(0x10b)),'isStore':b[q(0x119)](q(0x105)),'features':f[q(0x123)],'noRename':!![],'theme':f[q(0x126)][q(0x125)]};this['fsi']['template']({'srcPath':q(0x118),'destPath':e,'context':g,'config':f}),g[q(0x12e)]=![];const h=d+'/client/'+c+q(0x12d);this[q(0x106)][q(0x10e)]({'srcPath':q(0x103),'destPath':h,'context':g,'config':f});const i=[q(0x11c),'server','tests/client',q(0x113)];i[q(0x10d)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x12d);this[r(0x106)][r(0x10e)]({'srcPath':r(0x11a)+j+r(0x109),'destPath':k,'context':g,'config':f});});});});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x78;let f=c[d];return f;},a100d(a,b);}const a100p=a100d;(function(a,b){const m=a100d,c=a();while(!![]){try{const d=-parseInt(m(0x7d))/0x1*(parseInt(m(0x86))/0x2)+parseInt(m(0xa0))/0x3*(-parseInt(m(0x81))/0x4)+-parseInt(m(0x7a))/0x5+parseInt(m(0xb3))/0x6*(parseInt(m(0xbf))/0x7)+parseInt(m(0xa2))/0x8+-parseInt(m(0x89))/0x9+parseInt(m(0xaf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x21511));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a100d;if(c){const e=c[n(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const o=a100d;return a100a[o(0xb1)]()[o(0xa4)](o(0x8f))[o(0xb1)]()[o(0xbc)](a100a)[o(0xa4)]('(((.+)+)+)+$');});a100a();import a100e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a100c(){const s=['Updating\x20npm\x20packages\x20...','test','string','features','155742ZeCiuV','imports','1076944RWJXIU','resourceName','search','component','fsi','installNpmPackage','apply','template','maka\x20g:page\x20todos/todos-item','none','template/template.css','checkNpmPackage','tsx','5637690hgcDuf','rewriteDestinationPathForEngine','toString','engines','54uDgeDA','templates.js','withTranslations','withHook','html','ramda','lib','getProjectConfig','store','constructor','api','ssr','72870erEGGR','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','dir','/imports/ui/pages','Generate\x20a\x20page.','679920RHfCse','component/component.js','assign','26654vFpvZt','css','setTemplate','import\x20\x27./','16LvlJBi','react','startup','injectAtEndOfFile','className','10SRuvMU','client','layout','1608318oUZhTu','.html','template/template.html','withValue','\x20}\x20from\x20\x27','warn','(((.+)+)+)+$','true','pathFromProject','graphql','page','injectAtBeginningOfFile','fileName','\x27;\x0a','hasOwnProperty','test/test.js','import\x20{\x20','pathFromApp','.js'];a100c=function(){return s;};return a100c();}const aliases=['p'];Generator['create']({'name':a100p(0x93),'aliases':aliases,'usage':a100p(0xc0),'shortDesc':a100p(0x79),'validOpts':['dir','withHook'],'examples':[a100p(0xaa)]},function(a,b){const q=a100p,c=q(0x78),d=this[q(0xa6)][q(0x9a)](b),e=this[q(0xa6)]['pathFromApp']({'pathParts':[c,b[q(0xc1)],paramCase(b[q(0xa3)]),paramCase(b['resourceName'])]}),f=this['fsi'][q(0xba)]();this[q(0xa6)][q(0x8c)](f,()=>{const r=q;typeof f[r(0xa9)][r(0xb7)]===r(0x9e)&&(f[r(0xa9)][r(0xb7)]=f[r(0xa9)][r(0xb7)]===r(0x90)?!![]:![],this[r(0xa6)][r(0x7f)](r(0xb7),f['template'][r(0xb7)]));typeof f[r(0xa9)]['test']===r(0x9e)&&(f[r(0xa9)]['test']=f[r(0xa9)][r(0x9d)]==='true'?!![]:![],this[r(0xa6)][r(0x7f)](r(0x9d),f[r(0xa9)][r(0x9d)]));typeof f[r(0xa9)]['css']===r(0x9e)&&(f['template'][r(0x7e)]=f[r(0xa9)][r(0x7e)]==='true'?!![]:![],this[r(0xa6)][r(0x7f)](r(0x7e),f[r(0xa9)][r(0x7e)]));typeof f[r(0xa9)]['js']==='string'&&(f[r(0xa9)]['js']=f[r(0xa9)]['js']===r(0x90)?!![]:![],this[r(0xa6)][r(0x7f)]('js',f[r(0xa9)]['js']));!f[r(0x9f)]&&(f[r(0x9f)]={});!b['root']&&!this[r(0xa6)][r(0xad)](r(0xb8))&&(Log[r(0x8e)](r(0x9c)),this['fsi'][r(0xa7)](r(0xb8),{'cwd':d}));const g={'name':pascalCase(b[r(0xa3)]),'myPath':a100e['relative'](this[r(0xa6)][r(0x91)]({}),e),'cssCaseName':paramCase(b[r(0xa3)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0xa3)]),'fileName':paramCase(b['resourceName']),'graphql':f['engines'][r(0x92)],'features':f[r(0x9f)],'client':f[r(0xb2)][r(0x87)],'api':f[r(0xb2)][r(0xbd)],'ssr':f[r(0xb2)][r(0xbe)],'isStore':b[r(0x97)](r(0xbb)),'isComponent':b[r(0x97)](r(0xa5)),'isLayout':b[r(0x97)](r(0x88)),'withTranslations':f['features'][r(0xb5)],'test':f[r(0xb2)][r(0x9d)],'theme':f[r(0xb2)]['theme']};f[r(0xa9)][r(0xb7)]&&this[r(0xa6)]['template']({'srcPath':r(0x8b),'destPath':e+r(0x8a),'context':g,'config':f});f[r(0x9f)]?.['withHooks']||b[r(0xb6)]?this['fsi']['template']({'srcPath':'hook/hook.js','destPath':e+r(0x9b),'framework':r(0x82),'context':g,'config':f}):this[r(0xa6)][r(0xa9)]({'srcPath':r(0x7b),'destPath':e+r(0x9b),'framework':r(0x82),'context':g,'config':f});f[r(0xb2)][r(0x9d)]!==r(0xab)&&this['fsi'][r(0xa9)]({'srcPath':r(0x98),'destPath':e+'.app-tests.js','framework':r(0x82),'context':g,'config':f});f[r(0xa9)]['css']&&this[r(0xa6)][r(0xa9)]({'srcPath':r(0xac),'destPath':e+'.css','context':Object[r(0x7c)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0xb2)][r(0x87)]!==r(0x82)&&f[r(0xb2)][r(0x87)]!=='vanilla'?(f[r(0xa9)][r(0x7e)]&&this['fsi'][r(0x94)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x80)+g[r(0x95)]+'.'+f[r(0xb2)][r(0xb7)]+r(0x96)+'import\x20\x27./'+g[r(0x95)]+'.'+f[r(0xb2)]['css']+'\x27;'}),!f['template'][r(0x7e)]&&this[r(0xa6)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0xb2)]['js'],'content':r(0x80)+g[r(0x95)]+'.'+f[r(0xb2)][r(0xb7)]+'\x27;'})):f['template'][r(0x7e)]&&this[r(0xa6)][r(0x94)]({'filePath':e+'.'+f[r(0xb2)]['js'],'content':r(0x80)+g[r(0x95)]+'.'+f[r(0xb2)][r(0x7e)]+'\x27;'});const h=b['dir']?'/'+b[r(0xc1)]+'/':'/',i=''+c+h+g[r(0x95)]+'/'+g[r(0x95)];let j;if(f['engines'][r(0xbe)]===r(0x90)){const k=this[r(0xa6)][r(0x9a)]({'pathParts':[r(0xa1),r(0x83),r(0xb9),r(0xb4)]});j=this[r(0xa6)][r(0xb0)]({'pathParts':[k],'config':f});}else{const l=this[r(0xa6)][r(0x9a)]({'pathParts':[r(0xa1),r(0x83),r(0x87),r(0xb4)]});j=this[r(0xa6)][r(0xb0)]({'pathParts':[l],'config':f});}f[r(0xb2)][r(0x87)]===r(0x82)?(f[r(0xb2)]['js']===r(0xae)?this['fsi'][r(0x94)]({'filePath':j,'content':r(0x99)+g['className']+r(0x8d)+i+'\x27;\x0a'}):this[r(0xa6)][r(0x94)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x85)]+r(0x8d)+i+'.'+f[r(0xb2)]['js']+r(0x96)}),this[r(0xa6)][r(0x84)]({'filePath':j,'content':'export\x20{\x20'+g[r(0x85)]+'\x20};\x0a'})):this['fsi'][r(0x84)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[r(0xb2)]['js']+r(0x96)});});});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a101j=a101d;function a101c(){const m=['1638591udOguE','4014ypWtPn','maka\x20g:publish\x20todos','24qUHXKh','(((.+)+)+)+$','tsx','search','40AcbwQu','1588sSpyJJ','withValue','toString','injectAtEndOfFile','publish/publish.','fsi','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','engines','918967gFVGrm','resourceName','templateContent','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','2285sEDeta','constructor','92196XcvAGR','1236960cKAWcH','64930cYqXbE','publish','create','getProjectConfig'];a101c=function(){return m;};return a101c();}(function(a,b){const h=a101d,c=a();while(!![]){try{const d=-parseInt(h(0x80))/0x1+parseInt(h(0x82))/0x2+parseInt(h(0x6a))/0x3+parseInt(h(0x72))/0x4*(-parseInt(h(0x7e))/0x5)+-parseInt(h(0x81))/0x6+parseInt(h(0x7a))/0x7*(parseInt(h(0x6d))/0x8)+parseInt(h(0x6b))/0x9*(parseInt(h(0x71))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x78ba8));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x68;let f=c[d];return f;},a101d(a,b);}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const i=a101d;return a101a[i(0x74)]()[i(0x70)]('(((.+)+)+)+$')[i(0x74)]()[i(0x7f)](a101a)[i(0x70)](i(0x6e));});a101a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a101j(0x68)]({'name':a101j(0x83),'aliases':['p'],'usage':a101j(0x7d),'shortDesc':a101j(0x78),'validOpts':[],'examples':[a101j(0x6c)]},async function(a,b){const k=a101j,c=this[k(0x77)][k(0x69)]();this['fsi'][k(0x73)](c,async()=>{const l=k,d={'name':b[l(0x7b)],'collection':paramCase(b[l(0x7b)]),'noRename':!![]};let e='js';c[l(0x79)]['js']===l(0x6f)&&(e='ts');const f=this[l(0x77)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c['engines']['js']]}),g=this['fsi'][l(0x7c)]({'srcPath':l(0x76)+e,'context':d,'config':c});this['fsi'][l(0x75)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a102y=a102d;function a102c(){const G=['join','345638VDzQEk','filter','PrivateLayout','vanilla','engines','layout','cwd','<Router','findGenerator','create','fsi','1140wpcgbt','ssr','toLowerCase','\x22*\x22','url','warn','apply','imports','readFileLines','map','const\x20privateRoutes\x20=\x20(<>','maka\x20g:route\x20todosIndex\x20todos','11668vXvYII','toString','withTranslations','<Route','43356910OlRfya','length','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','4777452rmlRYn','210duilbO','react','search','injectAfterLineNumber','pathFromApp','maka\x20g:route\x20todosEdit\x20todos/:id/edit','\x0a\x09\x09','maka\x20g:route\x20lists/listIndex\x20lists','error','injectIntoFile','true','(((.+)+)+)+$','lib','only','withValue','734752KVFcAr','271428Locdks','constructor','config','routes.js','route/route.js','client','includes','</Router>','Scaffolding\x20for\x20a\x20Route.','templateContent','3488992AdSYyo','24ahDzzn','root','page','indexOf','startup','const\x20publicRoutes\x20=\x20(<>','rewriteDestinationPathForEngine','invoke','withHook','private'];a102c=function(){return G;};return a102c();}(function(a,b){const v=a102d,c=a();while(!![]){try{const d=parseInt(v(0xa4))/0x1+-parseInt(v(0xbb))/0x2*(parseInt(v(0xb0))/0x3)+-parseInt(v(0x8d))/0x4*(parseInt(v(0xc6))/0x5)+parseInt(v(0xa5))/0x6*(-parseInt(v(0x95))/0x7)+-parseInt(v(0xaf))/0x8+-parseInt(v(0x94))/0x9+parseInt(v(0x91))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xaa963));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a102d;if(c){const e=c[w(0xcc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const x=a102d;return a102a[x(0x8e)]()[x(0x97)](x(0xa0))[x(0x8e)]()[x(0xa6)](a102a)[x(0x97)]('(((.+)+)+)+$');});a102a();import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a102f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x89;let f=c[d];return f;},a102d(a,b);}Generator[a102y(0xc4)]({'name':'route','aliases':aliases,'validOpts':[a102y(0xb9),'layout',a102y(0xa2),a102y(0xc1),a102y(0xa7),a102y(0xb1),a102y(0xb8),a102y(0xca)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','shortDesc':a102y(0xad),'examples':[a102y(0x8c),a102y(0x9a),a102y(0x93),a102y(0x9c)]},function(a,b){const z=a102y;try{const c=this['fsi']['getProjectConfig']();this[z(0xc5)][z(0xa3)](c,async()=>{const A=z,d=b['private']??![];let f=paramCase(a[0x0]),g='/'+f;a['length']>0x1&&(g='/'+a[A(0xbc)](function(l){return l!=='/';})[A(0xba)]('/')[A(0xc8)]());f=camelCase(f);b[A(0xc0)]&&(b[A(0xc0)]=camelCase(b[A(0xc0)]));const h=a102e[A(0xba)]('/imports/ui/pages',f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0xc0)]||'MasterLayout','templatePath':h,'templateName':pascalCase(f),'client':c[A(0xbf)][A(0xaa)],'newForm':![],'withTranslations':c['features'][A(0x8f)]};d&&(i[A(0xc0)]=A(0xbd));if(!b[A(0xb1)]){const l=a102f[A(0xc3)](A(0xb2));l&&await l[A(0xb7)](a,b);}let j,k;if(c[A(0xbf)][A(0xaa)]===A(0x96)){if(c[A(0xbf)][A(0xc7)]===A(0x9f)){const p=this[A(0xc5)][A(0x99)]({'pathParts':[A(0xcd),'startup',A(0xa1),A(0xa8)]});j=this[A(0xc5)][A(0xb6)]({'pathParts':[p],'config':c});}else{const q=this[A(0xc5)][A(0x99)]({'pathParts':['imports','startup','client',A(0xa8)]});j=this[A(0xc5)][A(0xb6)]({'pathParts':[q],'config':c});}const m=this['fsi'][A(0x89)](j)[A(0x8a)]((r,s)=>{return r['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?s+0x1:null;})[A(0xbc)](r=>r!==null);let n=this[A(0xc5)]['readFileLines'](j)[A(0x8a)]((r,s)=>{const B=A;return r[B(0xab)](B(0xb5))?s+0x1:null;})[A(0xbc)](r=>r!==null),o=this[A(0xc5)][A(0x89)](j)[A(0x8a)]((r,s)=>{const C=A;return r[C(0xab)](C(0x8b))?s+0x1:null;})[A(0xbc)](r=>r!==null);n['length']>0x0&&o[A(0x92)]>0x0&&(i['newForm']=!![]);k=this[A(0xc5)]['templateContent']({'srcPath':A(0xa9),'framework':A(0x96),'context':i,'config':c});if(n[A(0x92)]>0x0||o[A(0x92)]>0x0){this[A(0xc5)][A(0x98)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x92)]>0x0)o=this[A(0xc5)][A(0x89)](j)['map']((r,s)=>{const D=A;return r[D(0xab)](D(0x8b))?s+0x1:null;})[A(0xbc)](r=>r!==null),this[A(0xc5)]['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':o[0x0]});else n[A(0x92)]>0x0?(n=this[A(0xc5)][A(0x89)](j)[A(0x8a)]((r,s)=>{const E=A;return r[E(0xab)](E(0xb5))?s+0x1:null;})[A(0xbc)](r=>r!==null),this[A(0xc5)][A(0x98)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':n[0x0]})):Log[A(0xcb)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+j);}else{const r=this[A(0xc5)][A(0x89)](j)[A(0x8a)](u=>{const F=A;return u['includes'](F(0xc9));}),s=r[A(0xb3)](!![])>-0x1,t=s?A(0x90):A(0xac);this[A(0xc5)][A(0x9e)]({'filePath':j,'content':A(0x9b)+k+A(0x9b),'begin':A(0xc2),'end':t});}}else{if(c[A(0xbf)]['client']===A(0xbe)){const u=this[A(0xc5)][A(0x99)]({'pathParts':[A(0xcd),A(0xb4),A(0xaa),'routes.js']});j=this[A(0xc5)][A(0xb6)]({'pathParts':[u],'config':c}),k=this['fsi'][A(0xae)]({'srcPath':A(0xa9),'context':i}),this[A(0xc5)]['injectAtEndOfFile']({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x9d)](d);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a103l=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xf7;let f=c[d];return f;},a103d(a,b);}(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x105))/0x1*(parseInt(j(0x102))/0x2)+-parseInt(j(0x113))/0x3+parseInt(j(0xfa))/0x4*(-parseInt(j(0x110))/0x5)+parseInt(j(0x100))/0x6+parseInt(j(0x106))/0x7+parseInt(j(0xf7))/0x8+-parseInt(j(0x115))/0x9*(-parseInt(j(0x103))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x375d8));function a103c(){const o=['logger','service','error','497502XCuUUE','getProjectConfig','182548OUNjCz','50AmYEHE','service/logger/logger.js','4wANOYo','1379721pjycfm','template','checkNpmPackage','lib','type','winston','constructor','(((.+)+)+)+$','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','fsi','5aRLIMU','maka\x20{generate,\x20g}:{service}\x20[service-type]','search','872181VXaSjD','installNpmPackage','1264689uKiUty','imports','svc','1016872iobndT','pathFromApp','toString','908540gpRKdG','resourceName','services'];a103c=function(){return o;};return a103c();}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const k=a103d;return a103a['toString']()[k(0x112)](k(0x10d))[k(0xf9)]()[k(0x10c)](a103a)[k(0x112)](k(0x10d));});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a103l(0xfe),'aliases':[a103l(0x117)],'usage':a103l(0x111),'shortDesc':a103l(0x10e),'validOpts':[a103l(0x10a)],'validArgs':['logger'],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},async function(a,b){const m=a103l;try{const c=this[m(0x10f)][m(0x101)]();this[m(0x10f)]['withValue'](c,async()=>{const n=m,d=this[n(0x10f)][n(0xf8)]({}),f=paramCase(b[n(0xfb)]),g={'name':pascalCase(b[n(0xfb)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':a[0x0],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']==='tsx'&&(h='ts');if(a[0x0]===n(0xfd)){!this[n(0x10f)][n(0x108)](n(0x10b))&&await this[n(0x10f)][n(0x114)]('winston\x20setimmediate',{'cwd':d,'msg':'Installing\x20winston'});const i=this[n(0x10f)]['pathFromApp']({'pathParts':[n(0x116),'startup',n(0x109),n(0xfc),f+'.'+h]});this[n(0x10f)][n(0x107)]({'srcPath':n(0x104),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0xff)](d);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=-parseInt(f(0x1d9))/0x1+parseInt(f(0x1dc))/0x2+-parseInt(f(0x1d7))/0x3*(-parseInt(f(0x1df))/0x4)+-parseInt(f(0x1db))/0x5*(-parseInt(f(0x1d8))/0x6)+-parseInt(f(0x1e0))/0x7+parseInt(f(0x1da))/0x8*(parseInt(f(0x1e2))/0x9)+parseInt(f(0x1dd))/0xa*(-parseInt(f(0x1e4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xddaca));function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0x1d6;var f=c[d];return f;},a104d(a,b);}var a104b=(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;};}()),a104a=a104b(this,function(){var g=a104d;return a104a[g(0x1de)]()[g(0x1e3)](g(0x1e1))[g(0x1de)]()[g(0x1d6)](a104a)[g(0x1e3)](g(0x1e1));});a104a();import'./translation.js';function a104c(){var h=['153NrnHla','search','11Oqzmpw','constructor','9EFJoBT','1883928NRbkaH','429674oZoQAe','662696rfKPea','15xElkZJ','3052390fXpZnt','18836870AjFZTj','toString','240796BqdSsB','5849522DGFdPu','(((.+)+)+)+$'];a104c=function(){return h;};return a104c();}import'./openssl.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a105l=a105d;(function(a,b){const i=a105d,c=a();while(!![]){try{const d=parseInt(i(0xf7))/0x1+parseInt(i(0x104))/0x2*(-parseInt(i(0xf8))/0x3)+-parseInt(i(0x10b))/0x4+parseInt(i(0x101))/0x5+parseInt(i(0xfd))/0x6*(-parseInt(i(0xf3))/0x7)+-parseInt(i(0x10a))/0x8+parseInt(i(0xfc))/0x9*(parseInt(i(0x105))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xabd2c));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a105d;if(c){const e=c[j(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const k=a105d;return a105a[k(0xfa)]()['search']('(((.+)+)+)+$')['toString']()[k(0xf5)](a105a)['search'](k(0x108));});function a105c(){const o=['constructor','fsi','1192004GrXgKY','552561fSYIWX','env','toString','appName','26225865chNFAQ','56526abAGfg','Generate\x20a\x20new\x20openssl\x20config\x20file','error','maka\x20g:sslconfig\x20--env\x20dev','296530drCgRj','openssl.conf','getProjectConfig','14FTCBuB','10MbGTVN','template','getGlobalConfig','(((.+)+)+)+$','apply','4664040xmVxkw','2852160owhMgI','openssl/openssl.conf','651dURhlM','sslconfig'];a105c=function(){return o;};return a105c();}a105a();import{Generator}from'../../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xf3;let f=c[d];return f;},a105d(a,b);}import{Log}from'../../tools/log/log.class.js';import a105e from'path';Generator['create']({'name':a105l(0xf4),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a105l(0xfe),'noResource':!![],'requiredOpts':[a105l(0xf9)],'examples':[a105l(0x100)],'validOpts':[a105l(0xf9)]},async function(a,b){const m=a105l;try{const c=await this['fsi'][m(0x103)](),d=await this[m(0xf6)][m(0x107)](),f=this[m(0xf6)]['getConfigPath'](b[m(0xf9)]),g=a105e['join'](f,'_keys',m(0x102));await this[m(0xf6)]['withValue'](c,async()=>{const n=m,h={'app':d[n(0xfb)],'noRename':!![]};await this[n(0xf6)][n(0x106)]({'srcPath':n(0x10c),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0xff)](h);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a106A=a106d;(function(a,b){const x=a106d,c=a();while(!![]){try{const d=parseInt(x(0x206))/0x1+-parseInt(x(0x1f4))/0x2*(-parseInt(x(0x1dd))/0x3)+parseInt(x(0x20e))/0x4+-parseInt(x(0x1fa))/0x5+parseInt(x(0x200))/0x6+parseInt(x(0x1e7))/0x7+-parseInt(x(0x201))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x1ed72));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a106d;if(c){const e=c[y(0x213)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const z=a106d;return a106a[z(0x203)]()[z(0x205)](z(0x209))['toString']()[z(0x1ff)](a106a)[z(0x205)](z(0x209));});function a106c(){const D=['Locale\x20already\x20exported:\x20','constructor','148578ZYwzAA','4620728NNUUWO','checkNpmPackage','toString','i18n','search','171499iWzPCa','create','locales','(((.+)+)+)+$','exit','maka\x20g:translation\x20--lang=fr','index.js','maka\x20g:translation\x20--lang=de','455376KXFIJu','client','import\x20\x27../lib/services/translations/i18n\x27;\x0a','i18n.js','features.withTranslations','apply','maka\x20g:translation\x20--lang=en\x20(default)','rewriteDestinationPathForEngine','i18n/i18n.js','ssr','startup','service','root','9HWaAAU','services','getGlobalConfig','imports','.js','getProjectConfig','withValue','i18n/locales.js','Generate\x20a\x20new\x20locale\x20translation','injectAtBeginningOfFile','1451114OaRkTS','warn','import\x20\x27../lib/services/translations/i18n\x27;','injectAtEndOfFile','i18next\x20i18next-browser-languagedetector\x20react-i18next','engines','default\x20as\x20','pathFromApp','maka\x20{generate,\x20g}:translation\x20--lang=<language>','Locale\x20already\x20defined:\x20','index.','isFile','lang','136314ejBpKv','\x20}\x20from\x20\x27./','fsi','template','installNpmPackage','translations','89830fNvcOM','lib','i18next','readFileSync'];a106c=function(){return D;};return a106c();}a106a();import{Generator}from'../../generator.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a106d(a,b);}import{Log}from'../../tools/log/log.class.js';import a106e from'fs';Generator[a106A(0x207)]({'name':'translation','usage':a106A(0x1ef),'aliases':[a106A(0x204)],'shortDesc':a106A(0x1e5),'noResource':!![],'examples':[a106A(0x214),a106A(0x20b),a106A(0x20d)],'validOpts':['lang']},function(a,b){const B=a106A;try{const c=this[B(0x1f6)][B(0x1e2)](),d=this[B(0x1f6)][B(0x1df)](),f=this[B(0x1f6)]['findAppDirectory']();this[B(0x1f6)][B(0x1e3)](c,()=>{const C=B;try{!b[C(0x1f3)]&&(b[C(0x1f3)]='en');!b[C(0x1dc)]&&!this[C(0x1f6)][C(0x202)](C(0x1fc))&&(Log[C(0x1e8)]('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this[C(0x1f6)][C(0x1f8)](C(0x1eb),{'cwd':f}),this['fsi']['setProjectConfig'](C(0x212),!![]));const g=this['fsi']['pathFromApp']({'pathParts':[C(0x1e0),C(0x1da),C(0x20f),'index.js']}),h=this[C(0x1f6)][C(0x215)]({'pathParts':[g],'config':c}),i=this[C(0x1f6)]['grep'](a106e['readFileSync'](h)[C(0x203)](),C(0x1e9))[0x0]&&!![];if(c[C(0x1ec)][C(0x1d9)]==='true'){!i&&this[C(0x1f6)][C(0x1e6)]({'filePath':h,'content':C(0x210)});const t=this['fsi']['pathFromApp']({'pathParts':[C(0x1e0),'startup','server',C(0x20c)]}),u=this[C(0x1f6)][C(0x215)]({'pathParts':[t],'config':c}),v=this[C(0x1f6)]['grep'](a106e[C(0x1fd)](u)['toString'](),C(0x1e9))[0x0]&&!![];!v&&this[C(0x1f6)][C(0x1e6)]({'filePath':u,'content':C(0x210)});}else!i&&this[C(0x1f6)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x210)});const j={'app':d['appName'],'config':c},k=this['fsi'][C(0x1ee)]({'pathParts':[C(0x1e0),C(0x1da),C(0x1fb),C(0x1de),'translations',C(0x211)]}),l=this[C(0x1f6)]['isFile'](this[C(0x1f6)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&this['fsi'][C(0x1f7)]({'srcPath':C(0x216),'destPath':k,'framework':C(0x1db),'context':j,'config':c});const m=this[C(0x1f6)][C(0x1ee)]({'pathParts':['imports',C(0x1da),C(0x1fb),C(0x1de),'translations',C(0x208),b[C(0x1f3)]+C(0x1e1)]}),n=this[C(0x1f6)][C(0x215)]({'pathParts':[m],'config':c}),o=this[C(0x1f6)][C(0x1f2)](n);!o?this['fsi'][C(0x1f7)]({'srcPath':C(0x1e4),'destPath':m,'framework':C(0x1db),'context':j,'config':c}):Log[C(0x1e8)](C(0x1f0)+n);const p=this[C(0x1f6)]['pathFromApp']({'pathParts':[C(0x1e0),C(0x1da),'lib',C(0x1de),C(0x1f9),C(0x208),C(0x1f1)+c['engines']['js']]}),q=this[C(0x1f6)][C(0x215)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0x1f2)](q);!r&&this[C(0x1f6)][C(0x1f7)]({'srcPath':'i18n/index.js','destPath':p,'framework':C(0x1db),'context':j,'config':c});const s=this[C(0x1f6)]['grep'](a106e[C(0x1fd)](p)['toString'](),C(0x1ed)+b[C(0x1f3)])[0x0]&&!![];!s?this[C(0x1f6)][C(0x1ea)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[C(0x1f3)]+C(0x1f5)+b[C(0x1f3)]+'\x27;'}):Log[C(0x1e8)](C(0x1fe)+p);}catch(w){Log['error'](w),process[C(0x20a)](0x1);}});}catch(g){Log['error'](g),process[B(0x20a)](0x1);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=parseInt(j(0xc0))/0x1+-parseInt(j(0xc1))/0x2*(-parseInt(j(0xb4))/0x3)+parseInt(j(0xbb))/0x4*(parseInt(j(0xbd))/0x5)+-parseInt(j(0xb3))/0x6*(-parseInt(j(0xad))/0x7)+-parseInt(j(0xaa))/0x8*(parseInt(j(0xab))/0x9)+parseInt(j(0xba))/0xa*(parseInt(j(0xb6))/0xb)+parseInt(j(0xbc))/0xc*(-parseInt(j(0xae))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x628d8));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a[l(0xac)]()[l(0xbf)](l(0xb2))[l(0xac)]()['constructor'](a107a)[l(0xbf)](l(0xb2));});a107a();function a107c(){const n=['env','BROWSERSLIST_IGNORE_OLD_DATA','8032YcMrad','4068XkapIY','toString','34090SIKLme','962jMLfHs','totalmem','argv','--max-old-space-size=','(((.+)+)+)+$','396TMfkQy','964983pCdsHn','camelizeKeys','264913luOMQu','slice','stringify','MAKA_COMMAND_PATH','310dVaNZu','7860rjxWyx','288696Vufvmz','775cHSphb','apply','search','621882MoVkNf','4FvtMGF','dirname'];a107c=function(){return n;};return a107c();}import a107e from'minimist';import a107f from'os';import a107g from'path';import a107h from'humps';import a107i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xaa;let f=c[d];return f;},a107d(a,b);}const __filename=fileURLToPath(import.meta['url']),__dirname=a107g[a107m(0xc2)](__filename);global[a107m(0xb9)]=__dirname;const total_memory=a107f[a107m(0xaf)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process['env']['TOOL_NODE_FLAGS']=a107m(0xb1)+total_mem_in_mb,process[a107m(0xc3)][a107m(0xc4)]='1';const argv=a107e(process[a107m(0xb0)][a107m(0xb7)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a107m(0xb8)](argv));delete deepCopyArgv['_'];const opts=a107h[a107m(0xb5)](deepCopyArgv);a107i['run'](args,opts);
|
|
@@ -0,0 +1,11 @@
|
|
|
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 %>);
|
|
@@ -0,0 +1,11 @@
|
|
|
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 %>);
|
|
@@ -0,0 +1,86 @@
|
|
|
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 %>;
|
|
@@ -0,0 +1,94 @@
|
|
|
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 %>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|