@nathapp/na-cli 1.0.1-rc.1 → 1.0.1
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/README.md +7 -5
- package/dist/templates/k8s-cert-manager/README.md +60 -0
- package/dist/templates/k8s-cert-manager/cloudflare-cert-manager-issuer.yaml +26 -0
- package/dist/templates/k8s-deployment/templates/_deployment.tpl +1 -1
- package/dist/templates/k8s-deployment/templates/_endpointslice.tpl +42 -0
- package/dist/templates/k8s-deployment/templates/_gateway.tpl +94 -0
- package/dist/templates/k8s-deployment/templates/_grpcroute.tpl +186 -0
- package/dist/templates/k8s-deployment/templates/_httproute.tpl +209 -0
- package/dist/templates/k8s-deployment/templates/_ingressroute.tpl +178 -0
- package/dist/templates/k8s-deployment/templates/_middleware.tpl +553 -0
- package/dist/templates/k8s-deployment/templates/_serverstransport.tpl +73 -0
- package/dist/templates/k8s-deployment/templates/_service.tpl +4 -1
- package/dist/templates/k8s-helm-chart/templates/endpointslice.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/gateway.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/grpcroute.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/httproute.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/ingressroute.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/middleware.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/serverstransport.yaml +1 -0
- package/dist/templates/k8s-helm-chart/values.yaml +3 -5
- package/dist/templates/nestjs-api/{.env → .env.local} +5 -0
- package/dist/templates/nestjs-api/.gitignore-rename +2 -1
- package/dist/templates/nestjs-api/Dockerfile +33 -13
- package/dist/templates/nestjs-api/package.json +31 -17
- package/dist/templates/nestjs-api/src/i18n/en_US/date.json +7 -0
- package/dist/templates/nestjs-api/src/i18n/en_US/exception.json +1 -1
- package/dist/templates/nestjs-api/src/i18n/en_US/validation.json +16 -0
- package/dist/templates/nestjs-api/src/i18n/zh_CN/date.json +7 -0
- package/dist/templates/nestjs-api/src/i18n/zh_CN/validation.json +16 -0
- package/dist/templates/nestjs-api/src/i18n/zh_TW/date.json +7 -0
- package/dist/templates/nestjs-api/src/i18n/zh_TW/validation.json +16 -0
- package/dist/templates/nestjs-api/test/jest-e2e.json +4 -1
- package/dist/templates/nestjs-library/.npmignore-rename +4 -0
- package/dist/templates/nestjs-library/package.json +3 -3
- package/dist/templates/ts-library/.npmignore-rename +4 -0
- package/dist/templates/ts-library/package.json +1 -1
- package/dist/templates/turbo-nestjs-vuexy/README.md +3 -0
- package/dist/templates/turbo-nestjs-vuexy/package.json +49 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/eslint-config/README.md +3 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/eslint-config/library.js +43 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/eslint-config/package.json +18 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/eslint-config/vue.js +236 -0
- package/dist/templates/{ts-library/tsconfig.json → turbo-nestjs-vuexy/packages/typescript-config/base.json} +4 -6
- package/dist/templates/turbo-nestjs-vuexy/packages/typescript-config/nestjs.json +12 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/typescript-config/package.json +9 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/typescript-config/vue.json +82 -0
- package/dist/templates/turbo-nestjs-vuexy/turbo.json +24 -0
- package/dist/templates/vuexy-portal/.editorconfig +1 -0
- package/dist/templates/vuexy-portal/.eslintrc.cjs +237 -0
- package/dist/templates/vuexy-portal/.gitignore-rename +42 -0
- package/dist/templates/vuexy-portal/.stylelintrc.json +46 -0
- package/dist/templates/vuexy-portal/Dockerfile +43 -0
- package/dist/templates/vuexy-portal/README.md +35 -0
- package/dist/templates/vuexy-portal/auto-imports.d.ts +1131 -0
- package/dist/templates/vuexy-portal/components.d.ts +68 -0
- package/dist/templates/vuexy-portal/dev.Dockerfile +25 -0
- package/dist/templates/vuexy-portal/docker-compose.dev.yml +14 -0
- package/dist/templates/vuexy-portal/docker-compose.prod.yml +13 -0
- package/dist/templates/vuexy-portal/entrypoint.sh +6 -0
- package/dist/templates/vuexy-portal/env.d.ts +12 -0
- package/dist/templates/vuexy-portal/index.html +57 -0
- package/dist/templates/vuexy-portal/nginx.conf +14 -0
- package/dist/templates/vuexy-portal/package.json +140 -0
- package/dist/templates/vuexy-portal/pnpm-lock.yaml +7963 -0
- package/dist/templates/vuexy-portal/prod.Dockerfile +41 -0
- package/dist/templates/vuexy-portal/public/favicon.ico +0 -0
- package/dist/templates/vuexy-portal/public/images/avatars/avatar-1.png +0 -0
- package/dist/templates/vuexy-portal/public/images/avatars/avatar-2.png +0 -0
- package/dist/templates/vuexy-portal/public/images/svg/discord.svg +10 -0
- package/dist/templates/vuexy-portal/public/images/svg/gift.svg +8 -0
- package/dist/templates/vuexy-portal/public/images/svg/keyboard.svg +8 -0
- package/dist/templates/vuexy-portal/public/images/svg/laptop.svg +8 -0
- package/dist/templates/vuexy-portal/public/images/svg/lightbulb.svg +8 -0
- package/dist/templates/vuexy-portal/public/images/svg/rocket.svg +8 -0
- package/dist/templates/vuexy-portal/public/loader.css +79 -0
- package/dist/templates/vuexy-portal/public/mockServiceWorker.js +287 -0
- package/dist/templates/vuexy-portal/shims.d.ts +15 -0
- package/dist/templates/vuexy-portal/src/@core/components/AppBarSearch.vue +278 -0
- package/dist/templates/vuexy-portal/src/@core/components/AppDrawerHeaderSection.vue +30 -0
- package/dist/templates/vuexy-portal/src/@core/components/AppStepper.vue +371 -0
- package/dist/templates/vuexy-portal/src/@core/components/BuyNow.vue +92 -0
- package/dist/templates/vuexy-portal/src/@core/components/CardStatisticsVerticalSimple.vue +35 -0
- package/dist/templates/vuexy-portal/src/@core/components/CustomizerSection.vue +27 -0
- package/dist/templates/vuexy-portal/src/@core/components/DialogCloseBtn.vue +25 -0
- package/dist/templates/vuexy-portal/src/@core/components/DropZone.vue +135 -0
- package/dist/templates/vuexy-portal/src/@core/components/I18n.vue +48 -0
- package/dist/templates/vuexy-portal/src/@core/components/MoreBtn.vue +24 -0
- package/dist/templates/vuexy-portal/src/@core/components/Notifications.vue +245 -0
- package/dist/templates/vuexy-portal/src/@core/components/ProductDescriptionEditor.vue +198 -0
- package/dist/templates/vuexy-portal/src/@core/components/ScrollToTop.vue +41 -0
- package/dist/templates/vuexy-portal/src/@core/components/Shortcuts.vue +99 -0
- package/dist/templates/vuexy-portal/src/@core/components/TablePagination.vue +39 -0
- package/dist/templates/vuexy-portal/src/@core/components/TheCustomizer.vue +618 -0
- package/dist/templates/vuexy-portal/src/@core/components/ThemeSwitcher.vue +61 -0
- package/dist/templates/vuexy-portal/src/@core/components/TiptapEditor.vue +166 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppAutocomplete.vue +57 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppCombobox.vue +57 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppDateTimePicker.vue +543 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppSelect.vue +50 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppTextField.vue +78 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppTextarea.vue +50 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomCheckboxes.vue +81 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomCheckboxesWithIcon.vue +95 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomCheckboxesWithImage.vue +93 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomRadios.vue +81 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomRadiosWithIcon.vue +88 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomRadiosWithImage.vue +99 -0
- package/dist/templates/vuexy-portal/src/@core/components/cards/AppCardActions.vue +167 -0
- package/dist/templates/vuexy-portal/src/@core/components/cards/AppCardCode.vue +152 -0
- package/dist/templates/vuexy-portal/src/@core/components/cards/CardStatisticsHorizontal.vue +41 -0
- package/dist/templates/vuexy-portal/src/@core/components/cards/CardStatisticsVertical.vue +48 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_components.scss +185 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_dark.scss +16 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_default-layout-w-horizontal-nav.scss +45 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_default-layout-w-vertical-nav.scss +103 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_default-layout.scss +16 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_horizontal-nav.scss +194 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_index.scss +48 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_layouts.scss +63 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_misc.scss +20 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_mixins.scss +63 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_route-transitions.scss +70 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_utilities.scss +181 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_utils.scss +90 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_variables.scss +198 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_vertical-nav.scss +255 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/libs/_perfect-scrollbar.scss +35 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/libs/vuetify/_index.scss +1 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/libs/vuetify/_overrides.scss +264 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/libs/vuetify/_variables.scss +62 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_default-layout-horizontal-nav.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_default-layout-vertical-nav.scss +45 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_default-layout.scss +3 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_horizontal-nav.scss +98 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_index.scss +7 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_misc.scss +7 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_nav.scss +33 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_vertical-nav.scss +80 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/skins/_bordered.scss +72 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/skins/_index.scss +1 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_default-layout-w-horizontal-nav.scss +9 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_default-layout-w-vertical-nav.scss +20 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_horizontal-nav.scss +40 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_mixins.scss +6 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_utilities.scss +49 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_variables.scss +102 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_vertical-nav.scss +47 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/index.scss +17 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/apex-chart.scss +108 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/full-calendar.scss +351 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/shepherd.scss +94 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/swiper.scss +5 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/_variables.scss +351 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_alert.scss +114 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_avatar.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_badge.scss +25 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_button.scss +280 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_cards.scss +3 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_checkbox.scss +57 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_chip.scss +102 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_dialog.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_expansion-panels.scss +106 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_field.scss +308 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_list.scss +30 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_menu.scss +35 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_otp-input.scss +17 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_pagination.scss +140 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_progress.scss +13 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_radio.scss +46 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_rating.scss +20 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_slider.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_snackbar.scss +10 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_switch.scss +58 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_table.scss +48 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_tabs.scss +91 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_textarea.scss +9 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_timeline.scss +99 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_tooltip.scss +6 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/index.scss +25 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/index.scss +3 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/overrides.scss +18 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/pages/misc.scss +20 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/pages/page-auth.scss +63 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_default-layout-horizontal-nav.scss +7 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_default-layout-vertical-nav.scss +8 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_horizontal-nav.scss +47 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_index.scss +6 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_misc.scss +3 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_nav.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_vertical-nav.scss +35 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/skins/_bordered.scss +82 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/skins/_index.scss +1 -0
- package/dist/templates/vuexy-portal/src/@custom/assets/images/user-profile-header.png +0 -0
- package/dist/templates/vuexy-portal/src/@custom/components/ConfirmationDialog.vue +155 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNav.vue +35 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNavGroup.vue +110 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNavLayout.vue +150 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNavLink.vue +56 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNavPopper.vue +175 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/TransitionExpand.vue +92 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VNodeRenderer.tsx +17 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNav.vue +236 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNavGroup.vue +267 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNavLayout.vue +232 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNavLink.vue +68 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNavSectionTitle.vue +37 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_classes.scss +3 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_default-layout.scss +35 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_global.scss +10 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_mixins.scss +30 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_placeholders.scss +53 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_rtl.scss +7 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_variables.scss +29 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/index.scss +3 -0
- package/dist/templates/vuexy-portal/src/App.vue +26 -0
- package/dist/templates/vuexy-portal/src/assets/images/avatars/avatar-1.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/border-light.svg +16 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/collapsed-light.svg +17 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/compact-light.svg +11 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/default-light.svg +17 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/horizontal-light.svg +12 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/ltr-light.svg +15 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/rtl-light.svg +15 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/wide-light.svg +11 -0
- package/dist/templates/vuexy-portal/src/assets/images/logo.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/misc/3d-safe-box-with-golden-dollar-coins.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/misc/3d-space-rocket-with-smoke.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/misc/dollar-coins-flying-pink-piggy-bank.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/misc/fleet-car.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/pages/misc-mask-dark.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/pages/misc-mask-light.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Card.svg +8 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Check.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Diamond.svg +12 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Suitcase.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Wallet.svg +10 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/address.svg +25 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/auth-v1-bottom-shape.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/auth-v1-top-shape.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/cart.svg +5 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/checkbox-checked.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/checkbox-indeterminate.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/checkbox-unchecked.svg +10 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/discord.svg +10 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/gift.svg +8 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/home.svg +5 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/keyboard.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/laptop.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/lightbulb.svg +8 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/office.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/paper-send.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/payment.svg +21 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/radio-checked.svg +3 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/radio-unchecked.svg +3 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/rocket.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/trending.svg +14 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/user-info.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/user.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-account.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-address.svg +18 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-personal.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-social-link.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-submit.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/styles/styles.scss +1 -0
- package/dist/templates/vuexy-portal/src/assets/styles/variables/_template.scss +6 -0
- package/dist/templates/vuexy-portal/src/assets/styles/variables/_vuetify.scss +7 -0
- package/dist/templates/vuexy-portal/src/components/AppLoadingIndicator.vue +63 -0
- package/dist/templates/vuexy-portal/src/components/AppPricing.vue +247 -0
- package/dist/templates/vuexy-portal/src/components/AppSearchHeader.vue +77 -0
- package/dist/templates/vuexy-portal/src/components/ErrorHeader.vue +40 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddAuthenticatorAppDialog.vue +101 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddEditAddressDialog.vue +238 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddEditPermissionDialog.vue +93 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddEditRoleDialog.vue +302 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddPaymentMethodDialog.vue +120 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/CardAddEditDialog.vue +153 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/ConfirmDialog.vue +151 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/CreateAppDialog.vue +459 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/EnableOneTimePasswordDialog.vue +85 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/PaymentProvidersDialog.vue +123 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/PricingPlanDialog.vue +34 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/ReferAndEarnDialog.vue +181 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/ShareProjectDialog.vue +198 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/TwoFactorAuthDialog.vue +120 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/UserInfoEditDialog.vue +246 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/UserUpgradePlanDialog.vue +101 -0
- package/dist/templates/vuexy-portal/src/layouts/blank.vue +42 -0
- package/dist/templates/vuexy-portal/src/layouts/components/DefaultLayoutWithHorizontalNav.vue +75 -0
- package/dist/templates/vuexy-portal/src/layouts/components/DefaultLayoutWithVerticalNav.vue +79 -0
- package/dist/templates/vuexy-portal/src/layouts/components/Footer.vue +17 -0
- package/dist/templates/vuexy-portal/src/layouts/components/NavSearchBar.vue +266 -0
- package/dist/templates/vuexy-portal/src/layouts/components/NavbarShortcuts.vue +45 -0
- package/dist/templates/vuexy-portal/src/layouts/components/NavbarThemeSwitcher.vue +22 -0
- package/dist/templates/vuexy-portal/src/layouts/components/UserProfile.vue +114 -0
- package/dist/templates/vuexy-portal/src/layouts/default.vue +30 -0
- package/dist/templates/vuexy-portal/src/pages/[...error].vue +46 -0
- package/dist/templates/vuexy-portal/src/pages/account-settings/[tab].vue +57 -0
- package/dist/templates/vuexy-portal/src/pages/index.vue +32 -0
- package/dist/templates/vuexy-portal/src/pages/login.vue +178 -0
- package/dist/templates/vuexy-portal/src/pages/not-authorized.vue +47 -0
- package/dist/templates/vuexy-portal/src/pages/second-page.vue +13 -0
- package/dist/templates/vuexy-portal/src/plugins/casl/shims-ability.d.ts +8 -0
- package/dist/templates/vuexy-portal/src/plugins/i18n/locales/en_US.json +88 -0
- package/dist/templates/vuexy-portal/src/plugins/i18n/locales/zh_CN.json +88 -0
- package/dist/templates/vuexy-portal/src/plugins/i18n/vue-i18n.d.ts +17 -0
- package/dist/templates/vuexy-portal/src/plugins/iconify/icons.css +21039 -0
- package/dist/templates/vuexy-portal/src/plugins/iconify/package.json +3 -0
- package/dist/templates/vuexy-portal/src/views/account-settings/AccountSettingsSecurity.vue +179 -0
- package/dist/templates/vuexy-portal/typed-router.d.ts +146 -0
- package/dist/utils/template.js +1 -0
- package/dist/utils/template.js.map +1 -1
- package/package.json +1 -1
- package/.gitlab-ci.yml +0 -145
- package/Makefile +0 -62
- package/dist/templates/db-schema/.gitlab-ci.yml +0 -139
- package/dist/templates/db-schema/Makefile +0 -885
- package/dist/templates/k8s-deployment/.gitlab-ci.yml +0 -128
- package/dist/templates/k8s-deployment/Makefile +0 -196
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/script/Makefile +0 -12
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/script/Makefile +0 -8
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/Makefile +0 -49
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Makefile +0 -9
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/script/Makefile +0 -14
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/_t-0100-readiness-liveness.ts +0 -84
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/hub.ts +0 -372
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contact.ts +0 -158
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contract.ts +0 -328
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-kyc.ts +0 -304
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-app.ts +0 -823
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-web.ts +0 -493
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-profile.ts +0 -277
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-whitelist.ts +0 -133
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/t-0200-start.ts +0 -172
- package/dist/templates/mxw-base-api-express/.dockerignore +0 -2
- package/dist/templates/mxw-base-api-express/.env +0 -10
- package/dist/templates/mxw-base-api-express/.gitlab-ci.yml +0 -174
- package/dist/templates/mxw-base-api-express/.nvmrc +0 -1
- package/dist/templates/mxw-base-api-express/Makefile +0 -84
- package/dist/templates/mxw-base-api-express/src/app-service.test.ts +0 -94
- package/dist/templates/mxw-base-api-express/src/app-service.ts +0 -498
- package/dist/templates/mxw-base-api-express/src/auth/auth-user.test.ts +0 -215
- package/dist/templates/mxw-base-api-express/src/auth/auth-user.ts +0 -86
- package/dist/templates/mxw-base-api-express/src/auth/auth.ts +0 -81
- package/dist/templates/mxw-base-api-express/src/core-service.ts +0 -72
- package/dist/templates/mxw-base-api-express/src/crud.ts +0 -84
- package/dist/templates/mxw-base-api-express/src/http-handler.ts +0 -71
- package/dist/templates/mxw-base-api-express/src/server.ts +0 -54
- package/dist/templates/mxw-base-api-express/src/test.ts +0 -38
- package/dist/templates/mxw-base-api-express/src/utils/api-utilities.ts +0 -52
- package/dist/templates/mxw-base-api-express/src/utils/file-utilities.ts +0 -55
- package/dist/templates/mxw-base-api-express/tsconfig.json +0 -32
- package/dist/templates/nestjs-api/.dockerignore +0 -6
- package/dist/templates/nestjs-api/.gitlab-ci.yml +0 -174
- package/dist/templates/nestjs-api/.nvmrc +0 -1
- package/dist/templates/nestjs-api/.prettierrc +0 -4
- package/dist/templates/nestjs-api/Makefile +0 -95
- package/dist/templates/nestjs-api/nest-cli.json +0 -11
- package/dist/templates/nestjs-api/src/app.controller.spec.ts +0 -22
- package/dist/templates/nestjs-api/src/app.controller.ts +0 -27
- package/dist/templates/nestjs-api/src/app.module.ts +0 -32
- package/dist/templates/nestjs-api/src/app.service.ts +0 -27
- package/dist/templates/nestjs-api/src/main.ts +0 -26
- package/dist/templates/nestjs-api/test/app.e2e-spec.ts +0 -24
- package/dist/templates/nestjs-api/tsconfig.build.json +0 -4
- package/dist/templates/nestjs-api/tsconfig.json +0 -21
- package/dist/templates/nestjs-library/.eslintrc.js +0 -24
- package/dist/templates/nestjs-library/.gitlab-ci.yml +0 -138
- package/dist/templates/nestjs-library/.prettierrc +0 -6
- package/dist/templates/nestjs-library/Makefile +0 -60
- package/dist/templates/nestjs-library/index.ts +0 -1
- package/dist/templates/nestjs-library/lib/index.ts +0 -2
- package/dist/templates/nestjs-library/test/app/controller/hello.controller.ts +0 -7
- package/dist/templates/nestjs-library/tsconfig.build.json +0 -7
- package/dist/templates/nestjs-library/tsconfig.json +0 -18
- package/dist/templates/ts-library/.dockerignore +0 -2
- package/dist/templates/ts-library/.eslintrc.js +0 -24
- package/dist/templates/ts-library/.gitlab-ci.yml +0 -136
- package/dist/templates/ts-library/.prettierrc +0 -6
- package/dist/templates/ts-library/Makefile +0 -58
- package/dist/templates/ts-library/index.ts +0 -1
- package/dist/templates/ts-library/lib/index.ts +0 -1
- package/dist/templates/ts-library/lib/samples/index.ts +0 -5
- package/dist/templates/ts-library/lib/samples/samples-function.ts +0 -3
- package/dist/templates/ts-library/test/sample.e2e-spec.ts +0 -10
- package/dist/templates/ts-library/tsconfig.build.json +0 -4
- package/tsconfig.json +0 -24
- /package/dist/templates/{nestjs-api/.eslintrc.js → turbo-nestjs-vuexy/packages/eslint-config/nest.js} +0 -0
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import { describe, it } from 'mocha';
|
|
4
|
-
import chai, { expect } from 'chai';
|
|
5
|
-
import chaihttp from 'chai-http';
|
|
6
|
-
|
|
7
|
-
import HubService, { User, challengeIt, goodRet, badRet, serviceUrl, mxwV1ServiceUrl, uploadOSS } from "./hub";
|
|
8
|
-
import { throwError, errors, describeError } from 'mxw-libs-errors';
|
|
9
|
-
|
|
10
|
-
chai.use(chaihttp);
|
|
11
|
-
|
|
12
|
-
let indent = " ";
|
|
13
|
-
|
|
14
|
-
export function profile(user: User, challenge: boolean) {
|
|
15
|
-
describe('Suite: Individual Profile: ' + user.code + " (" + user.email + ")", function () {
|
|
16
|
-
if (challenge) {
|
|
17
|
-
it("Get profile - challenge without JWT", function () {
|
|
18
|
-
let url = serviceUrl("/user/api");
|
|
19
|
-
|
|
20
|
-
return chai.request(url).get("/profile")
|
|
21
|
-
.type("application/json")
|
|
22
|
-
.set("Authorization", "Bearer ")
|
|
23
|
-
.then((res) => {
|
|
24
|
-
badRet(res, "InvalidHeader");
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
it("Get profile", function () {
|
|
30
|
-
let url = serviceUrl("/user/api");
|
|
31
|
-
|
|
32
|
-
return chai.request(url).get("/profile")
|
|
33
|
-
.type("application/json")
|
|
34
|
-
.set("Authorization", "Bearer " + user.jwt)
|
|
35
|
-
.then((res) => {
|
|
36
|
-
goodRet(res);
|
|
37
|
-
expect(res.body).have.property("data").property("userId").is.a("number").eq(user.id);
|
|
38
|
-
expect(res.body).have.property("data").property("email").is.a("string").eq(user.email);
|
|
39
|
-
expect(res.body).have.property("data").property("walletAddress").is.a("string").eq(user.wallet.address);
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
challengeIt("Update profile info", function (params) {
|
|
44
|
-
let url = serviceUrl("/user/api");
|
|
45
|
-
|
|
46
|
-
return chai.request(url).post("/set/profile")
|
|
47
|
-
.type("application/json")
|
|
48
|
-
.set("Authorization", "Bearer " + user.jwt)
|
|
49
|
-
.send(params)
|
|
50
|
-
.then((res) => {
|
|
51
|
-
badRet(res);
|
|
52
|
-
});
|
|
53
|
-
}, {
|
|
54
|
-
nickname: "",
|
|
55
|
-
dialCode: "",
|
|
56
|
-
mobileNo: "",
|
|
57
|
-
profileImg: "",
|
|
58
|
-
lang: "",
|
|
59
|
-
country: "",
|
|
60
|
-
public: "",
|
|
61
|
-
type: ""
|
|
62
|
-
}, challenge);
|
|
63
|
-
|
|
64
|
-
if (challenge) {
|
|
65
|
-
it("Update profile info - challenge without JWT", function () {
|
|
66
|
-
let url = serviceUrl("/user/api");
|
|
67
|
-
|
|
68
|
-
return chai.request(url).post("/set/profile")
|
|
69
|
-
.type("application/json")
|
|
70
|
-
.set("Authorization", "Bearer ")
|
|
71
|
-
.send({
|
|
72
|
-
nickname: user.code,
|
|
73
|
-
dialCode: null,
|
|
74
|
-
mobileNo: null,
|
|
75
|
-
lang: null,
|
|
76
|
-
country: null,
|
|
77
|
-
public: null,
|
|
78
|
-
type: null
|
|
79
|
-
})
|
|
80
|
-
.then((res) => {
|
|
81
|
-
badRet(res, "InvalidHeader");
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
it("Update profile info", function () {
|
|
87
|
-
let url = serviceUrl("/user/api");
|
|
88
|
-
|
|
89
|
-
return chai.request(url).post("/set/profile")
|
|
90
|
-
.type("application/json")
|
|
91
|
-
.set("Authorization", "Bearer " + user.jwt)
|
|
92
|
-
.send({
|
|
93
|
-
nickname: user.code,
|
|
94
|
-
dialCode: null,
|
|
95
|
-
mobileNo: null,
|
|
96
|
-
lang: null,
|
|
97
|
-
country: null,
|
|
98
|
-
public: null,
|
|
99
|
-
type: null
|
|
100
|
-
})
|
|
101
|
-
.then((res) => {
|
|
102
|
-
goodRet(res);
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
it("Verify profile", function () {
|
|
107
|
-
let url = serviceUrl("/user/api");
|
|
108
|
-
|
|
109
|
-
return chai.request(url).get("/profile")
|
|
110
|
-
.type("application/json")
|
|
111
|
-
.set("Authorization", "Bearer " + user.jwt)
|
|
112
|
-
.then((res) => {
|
|
113
|
-
goodRet(res);
|
|
114
|
-
expect(res.body).have.property("data").property("userId").is.a("number").eq(user.id);
|
|
115
|
-
expect(res.body).have.property("data").property("email").is.a("string").eq(user.email);
|
|
116
|
-
expect(res.body).have.property("data").property("walletAddress").is.a("string").eq(user.wallet.address);
|
|
117
|
-
expect(res.body).have.property("data").property("nickname").is.a("string").eq(user.code);
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function mainProfile(user: User, challenge: boolean) {
|
|
124
|
-
describe('Suite: Individual Main Profile: ' + user.code + " (" + user.email + ")", function () {
|
|
125
|
-
let profileImgUrl: string;
|
|
126
|
-
|
|
127
|
-
if (challenge) {
|
|
128
|
-
it("Get profile - challenge without JWT", function () {
|
|
129
|
-
let url = mxwV1ServiceUrl("/provider/account/v1");
|
|
130
|
-
|
|
131
|
-
return chai.request(url).get("/getProfile")
|
|
132
|
-
.type("application/json")
|
|
133
|
-
.set("Authorization", "Bearer ")
|
|
134
|
-
.then((res) => {
|
|
135
|
-
badRet(res, "InvalidHeader");
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
it("Get profile", function () {
|
|
141
|
-
let url = mxwV1ServiceUrl("/provider/account/v1");
|
|
142
|
-
|
|
143
|
-
return chai.request(url).get("/getProfile")
|
|
144
|
-
.type("application/json")
|
|
145
|
-
.set("Authorization", "Bearer " + user.mxwJwt)
|
|
146
|
-
.then((res) => {
|
|
147
|
-
goodRet(res);
|
|
148
|
-
expect(res.body).have.property("data").property("userID").is.a("number").is.eq(user.id);
|
|
149
|
-
expect(res.body).have.property("data").property("email").is.a("string").is.eq(user.email);
|
|
150
|
-
expect(res.body).have.property("data").property("nickName").is.a("string");
|
|
151
|
-
expect(res.body).have.property("data").property("walletAddr").is.a("string").is.eq(user.wallet.address);
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
challengeIt("Update profile", function (params) {
|
|
156
|
-
let url = mxwV1ServiceUrl("/provider/account/v1");
|
|
157
|
-
|
|
158
|
-
return chai.request(url).post("/setProfile")
|
|
159
|
-
.type("application/json")
|
|
160
|
-
.set("Authorization", "Bearer " + user.mxwJwt)
|
|
161
|
-
.send(params)
|
|
162
|
-
.then((res) => {
|
|
163
|
-
badRet(res);
|
|
164
|
-
});
|
|
165
|
-
}, {
|
|
166
|
-
alias: null,
|
|
167
|
-
country: "",
|
|
168
|
-
dialCode: null,
|
|
169
|
-
email: "",
|
|
170
|
-
lang: "",
|
|
171
|
-
mobileNo: null,
|
|
172
|
-
nickName: "",
|
|
173
|
-
profileImg: "",
|
|
174
|
-
public: null,
|
|
175
|
-
referralCode: null
|
|
176
|
-
}, challenge);
|
|
177
|
-
|
|
178
|
-
it("Update profile", function () {
|
|
179
|
-
return chai.request(mxwV1ServiceUrl("/provider/account/v1")).post("/setProfile")
|
|
180
|
-
.type("application/json")
|
|
181
|
-
.set("Authorization", "Bearer " + user.mxwJwt)
|
|
182
|
-
.send({
|
|
183
|
-
alias: null,
|
|
184
|
-
country: user.profile.country,
|
|
185
|
-
dialCode: null,
|
|
186
|
-
email: user.email,
|
|
187
|
-
lang: user.profile.language,
|
|
188
|
-
mobileNo: null,
|
|
189
|
-
nickName: user.username,
|
|
190
|
-
profileImg: "Believe me this is a real image url",
|
|
191
|
-
public: 0,
|
|
192
|
-
referralCode: null
|
|
193
|
-
})
|
|
194
|
-
.then((res) => {
|
|
195
|
-
goodRet(res);
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
it("Verify profile", function () {
|
|
200
|
-
let url = mxwV1ServiceUrl("/provider/account/v1");
|
|
201
|
-
|
|
202
|
-
return chai.request(url).get("/getProfile")
|
|
203
|
-
.type("application/json")
|
|
204
|
-
.set("Authorization", "Bearer " + user.mxwJwt)
|
|
205
|
-
.then((res) => {
|
|
206
|
-
goodRet(res);
|
|
207
|
-
expect(res.body).have.property("data").property("userID").is.a("number").is.eq(user.id);
|
|
208
|
-
expect(res.body).have.property("data").property("email").is.a("string").is.eq(user.email);
|
|
209
|
-
expect(res.body).have.property("data").property("nickName").is.a("string").is.eq(user.username);
|
|
210
|
-
expect(res.body).have.property("data").property("walletAddr").is.a("string").is.eq(user.wallet.address);
|
|
211
|
-
expect(res.body).have.property("data").property("country").is.a("string").is.eq(user.profile.country);
|
|
212
|
-
expect(res.body).have.property("data").property("lang").is.a("string").is.eq(user.profile.language);
|
|
213
|
-
expect(res.body).have.property("data").property("public").is.a("number");
|
|
214
|
-
|
|
215
|
-
if (res.body.data.profileImg) {
|
|
216
|
-
console.log("\x1b[33m%s", indent, "WARNING: This overwrite profile image bug is required to patch.", "\x1b[0m");
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
// console.log("\x1b[33m%s", indent, "WARNING: Special error handler is required to remove.", "\x1b[0m");
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
});
|
|
223
|
-
|
|
224
|
-
if (challenge) {
|
|
225
|
-
it("Upload profile image - challenge without actionType", function () {
|
|
226
|
-
let url = mxwV1ServiceUrl("/provider/account/v1");
|
|
227
|
-
let params = {
|
|
228
|
-
actionType: ""
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
return uploadOSS(user, url, "/profilePreupload", params, __dirname + "/resources/profile.jpg", "image/png").then((readUrl) => {
|
|
232
|
-
throwError("SHOULD_NOT_REACH_HERE");
|
|
233
|
-
}).catch(error => {
|
|
234
|
-
let { code, message } = describeError(error);
|
|
235
|
-
|
|
236
|
-
if ("InvalidResponse" == code) {
|
|
237
|
-
console.log("\x1b[33m%s", indent, "WARNING: This error is required to patch.", code + ":", message, "\x1b[0m");
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
console.log("\x1b[33m%s", indent, "WARNING: Special error handler is required to remove.", code, ":", message, "\x1b[0m");
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
it("Upload profile image", function () {
|
|
247
|
-
let url = mxwV1ServiceUrl("/provider/account/v1");
|
|
248
|
-
let params = {
|
|
249
|
-
actionType: "PROFILE"
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
return uploadOSS(user, url, "/profilePreupload", params, __dirname + "/resources/profile.jpg", "image/png").then((readUrl) => {
|
|
253
|
-
profileImgUrl = readUrl;
|
|
254
|
-
if (!HubService.Instance.silent) { console.log(indent, "Uploaded main profile image:", profileImgUrl) }
|
|
255
|
-
});
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
it("Verify profile image", function () {
|
|
259
|
-
let url = mxwV1ServiceUrl("/provider/account/v1");
|
|
260
|
-
|
|
261
|
-
return chai.request(url).get("/getProfile")
|
|
262
|
-
.type("application/json")
|
|
263
|
-
.set("Authorization", "Bearer " + user.mxwJwt)
|
|
264
|
-
.then((res) => {
|
|
265
|
-
goodRet(res);
|
|
266
|
-
expect(res.body).have.property("data").property("userID").is.a("number").is.eq(user.id);
|
|
267
|
-
expect(res.body).have.property("data").property("email").is.a("string").is.eq(user.email);
|
|
268
|
-
expect(res.body).have.property("data").property("nickName").is.a("string").is.eq(user.username);
|
|
269
|
-
expect(res.body).have.property("data").property("walletAddr").is.a("string").is.eq(user.wallet.address);
|
|
270
|
-
expect(res.body).have.property("data").property("profileImg").is.a("string").is.eq(profileImgUrl);
|
|
271
|
-
expect(res.body).have.property("data").property("country").is.a("string").is.eq(user.profile.country);
|
|
272
|
-
expect(res.body).have.property("data").property("lang").is.a("string").is.eq(user.profile.language);
|
|
273
|
-
expect(res.body).have.property("data").property("public").is.a("number");
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import { describe, it } from 'mocha';
|
|
4
|
-
import chai, { expect } from 'chai';
|
|
5
|
-
import chaihttp from 'chai-http';
|
|
6
|
-
|
|
7
|
-
import HubService, { User, goodRet, mxwServiceUrl, mxwV1ServiceUrl } from "./hub";
|
|
8
|
-
import { toUtf8Bytes, sortObject } from 'mxw-libs-utils';
|
|
9
|
-
import { utils, Wallet, auth } from 'mxw-sdk-js';
|
|
10
|
-
import { JsonRpcProvider } from 'mxw-sdk-js/dist/providers';
|
|
11
|
-
import { KYC_FLOW_ID, KYC_TYPE_ID } from './individual-kyc';
|
|
12
|
-
|
|
13
|
-
chai.use(chaihttp);
|
|
14
|
-
|
|
15
|
-
let indent = " ";
|
|
16
|
-
|
|
17
|
-
export function whitelist(user: User, idType: KYC_TYPE_ID, wallet: Wallet, challenge: boolean) {
|
|
18
|
-
describe('Suite: Whitelist Wallet: ' + user.code + " (" + wallet.address + ")", function () {
|
|
19
|
-
it("Get KYC info", function () {
|
|
20
|
-
return chai.request(mxwServiceUrl("/provider/kyc/v2"))
|
|
21
|
-
.get("/getKycInfo")
|
|
22
|
-
.type("application/json")
|
|
23
|
-
.set("Authorization", "Bearer " + user.mxwJwt)
|
|
24
|
-
.query({
|
|
25
|
-
kycId: user.kyc.kycId
|
|
26
|
-
})
|
|
27
|
-
.then((res) => {
|
|
28
|
-
goodRet(res);
|
|
29
|
-
expect(res.body).have.property("data").property("kycStatus").is.a("number");
|
|
30
|
-
user.kyc.status = res.body.data.kycStatus;
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
// it("Initialize Maxonrow user account", function () {
|
|
35
|
-
// let url = mxwServiceUrl("/user/api");
|
|
36
|
-
|
|
37
|
-
// return chai.request(url).post("/initUser")
|
|
38
|
-
// .type("application/json")
|
|
39
|
-
// .set("Authorization", "Bearer " + user.mxwJwt)
|
|
40
|
-
// .send({
|
|
41
|
-
// walletAddress: wallet.address
|
|
42
|
-
// }).then((res) => {
|
|
43
|
-
// console.log(res.body)
|
|
44
|
-
// goodRet(res);
|
|
45
|
-
// expect(res.body).have.property("data").have.property("walletId").is.a("number").greaterThan(0);
|
|
46
|
-
// });
|
|
47
|
-
// });
|
|
48
|
-
|
|
49
|
-
// it("Pre-check", function () {
|
|
50
|
-
// let url = mxwV1ServiceUrl("/provider/kyc-proxy/v1");
|
|
51
|
-
|
|
52
|
-
// return chai.request(url).post("/precheckEx")
|
|
53
|
-
// .type("application/json")
|
|
54
|
-
// .set("Authorization", "Bearer " + user.mxwJwt)
|
|
55
|
-
// .set("app-id", String(HubService.Instance.appId))
|
|
56
|
-
// .send({
|
|
57
|
-
// kycId: user.kyc.kycId,
|
|
58
|
-
// idType,
|
|
59
|
-
// country: user.profile.country,
|
|
60
|
-
// idNo: user.username
|
|
61
|
-
// })
|
|
62
|
-
// .then((res) => {
|
|
63
|
-
// console.log(res.body)
|
|
64
|
-
// goodRet(res);
|
|
65
|
-
// });
|
|
66
|
-
// });
|
|
67
|
-
|
|
68
|
-
it("Submit whitelist transaction", function () {
|
|
69
|
-
if (KYC_FLOW_ID.MANUAL == user.kyc.flow) {
|
|
70
|
-
expect(user.kyc.status).is.a("number").to.be.oneOf([10], "KYC is not submitted");
|
|
71
|
-
this.skip();
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
expect(user.kyc.status).is.a("number").to.be.oneOf([1, 18], "KYC is not approved");
|
|
75
|
-
|
|
76
|
-
return signTransaction(wallet, user.profile.country, String(user.kyc.idType), 0, user.profile.dob, { nonce: "0" }).then((tx) => {
|
|
77
|
-
return chai.request(mxwServiceUrl("/wallet/api")).post("/whitelistWallet")
|
|
78
|
-
.type("application/json")
|
|
79
|
-
.set("Authorization", "Bearer " + user.mxwJwt)
|
|
80
|
-
.send(tx).then((res) => {
|
|
81
|
-
console.log(res.body)
|
|
82
|
-
goodRet(res);
|
|
83
|
-
expect(res.body).have.property("data").property("transactionHash").is.a("string").lengthOf.greaterThan(0);
|
|
84
|
-
|
|
85
|
-
if (res.body.data.ret) {
|
|
86
|
-
console.log("\x1b[33m%s", indent, "WARNING: The response is required to patch.", "\x1b[0m");
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
// console.log("\x1b[33m%s", indent, "WARNING: Special handler is required to remove.", "\x1b[0m");
|
|
90
|
-
}
|
|
91
|
-
return res.body.data.transactionHash;
|
|
92
|
-
}).then((txHash) => {
|
|
93
|
-
if (!HubService.Instance.silent) { console.log(indent, "Whitelisted:", wallet.address, "(" + txHash + ")") }
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function signTransaction(wallet: Wallet, country?: string, idType?: string, idExpiry?: number, dob?: number, overrides?: any) {
|
|
101
|
-
return auth.Kyc.create(wallet.connect(new JsonRpcProvider("https://"))).then((kyc) => {
|
|
102
|
-
let seed = utils.sha256(toUtf8Bytes(JSON.stringify(sortObject({
|
|
103
|
-
juridical: ["", ""].sort(),
|
|
104
|
-
seed: utils.getHash(utils.randomBytes(32))
|
|
105
|
-
}))));
|
|
106
|
-
|
|
107
|
-
let kycAddress = kyc.getKycAddress({
|
|
108
|
-
country,
|
|
109
|
-
idType,
|
|
110
|
-
id: wallet.address,
|
|
111
|
-
idExpiry,
|
|
112
|
-
dob,
|
|
113
|
-
seed
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
let nonce = (overrides && overrides.nonce) ? overrides.nonce : "0";
|
|
117
|
-
|
|
118
|
-
return kyc.sign(kycAddress, { nonce }).then((tx) => {
|
|
119
|
-
expect(tx).have.property("kyc").property("from").is.a("string").is.eq(wallet.address);
|
|
120
|
-
expect(tx).have.property("kyc").property("kycAddress").is.a("string").lengthOf.greaterThan(0);
|
|
121
|
-
expect(tx).have.property("kyc").property("nonce").is.a("string").is.eq(nonce);
|
|
122
|
-
expect(tx).have.property("pub_key").property("type").is.a("string").lengthOf.greaterThan(0);
|
|
123
|
-
expect(tx).have.property("pub_key").property("value").is.a("string").lengthOf.greaterThan(0);
|
|
124
|
-
expect(tx).have.property("signature").is.a("string").lengthOf.greaterThan(0);
|
|
125
|
-
|
|
126
|
-
return {
|
|
127
|
-
transaction: tx,
|
|
128
|
-
seed,
|
|
129
|
-
publicKey: wallet.publicKey
|
|
130
|
-
};
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
}
|
package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/t-0200-start.ts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import { describe, it } from 'mocha';
|
|
4
|
-
import chai, { expect } from 'chai';
|
|
5
|
-
import chaihttp from 'chai-http';
|
|
6
|
-
|
|
7
|
-
import { hexlify } from 'mxw-libs-utils';
|
|
8
|
-
import { mxw, utils } from 'mxw-sdk-js';
|
|
9
|
-
|
|
10
|
-
import HubService, { User } from "./hub";
|
|
11
|
-
import { appOnboard, appReauth } from "./individual-onboard-app";
|
|
12
|
-
import { webOnboard, changePassword, webReauth } from "./individual-onboard-web";
|
|
13
|
-
import { profile, mainProfile } from "./individual-profile";
|
|
14
|
-
import { kycByType, KYC_FLOW_ID, KYC_TYPE_ID } from './individual-kyc';
|
|
15
|
-
import { whitelist } from './individual-whitelist';
|
|
16
|
-
import { createContract } from './individual-contract';
|
|
17
|
-
import { createContact } from './individual-contact';
|
|
18
|
-
|
|
19
|
-
chai.use(chaihttp);
|
|
20
|
-
|
|
21
|
-
let indent = " ";
|
|
22
|
-
|
|
23
|
-
describe('Suite: BDSS', function () {
|
|
24
|
-
it("Initialize", function () {
|
|
25
|
-
HubService.Instance.init(true);
|
|
26
|
-
if (!HubService.Instance.silent) { console.log(indent, "app id:", HubService.Instance.appId) }
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it("Start", function () {
|
|
30
|
-
let infoList = [
|
|
31
|
-
{
|
|
32
|
-
code: "Ali",
|
|
33
|
-
username: "ali." + hexlify(utils.randomBytes(4)).substr(2),
|
|
34
|
-
password: utils.sha256(utils.toUtf8Bytes(hexlify(utils.randomBytes(5)).substr(2))),
|
|
35
|
-
domain: "hello-world.sh",
|
|
36
|
-
wallet: mxw.Wallet.createRandom(),
|
|
37
|
-
challenge: false,
|
|
38
|
-
firstRegisterOnWeb: false,
|
|
39
|
-
profile: {
|
|
40
|
-
language: "ms_MY",
|
|
41
|
-
gender: "M",
|
|
42
|
-
country: "MY",
|
|
43
|
-
dob: 20200101,
|
|
44
|
-
religion: "Islam",
|
|
45
|
-
address: {
|
|
46
|
-
value: "",
|
|
47
|
-
street: "1, Jalan " + hexlify(utils.randomBytes(1)).substr(2) + "/" + hexlify(utils.randomBytes(1)).substr(2) + ", Taman " + hexlify(utils.randomBytes(4)).substr(2),
|
|
48
|
-
postcode: "43000",
|
|
49
|
-
city: "Petaling Jaya",
|
|
50
|
-
state: "Selangor",
|
|
51
|
-
province: "",
|
|
52
|
-
country: "Malaysia"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
kyc: {
|
|
56
|
-
idType: KYC_TYPE_ID.NATIONAL_ID,
|
|
57
|
-
flow: KYC_FLOW_ID.AUTO,
|
|
58
|
-
ocrAlter: false
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
code: "AhKao",
|
|
63
|
-
username: "ahkao." + hexlify(utils.randomBytes(4)).substr(2),
|
|
64
|
-
password: hexlify(utils.randomBytes(5)).substr(2),
|
|
65
|
-
domain: "hello-world.sh",
|
|
66
|
-
wallet: mxw.Wallet.createRandom(),
|
|
67
|
-
challenge: false,
|
|
68
|
-
firstRegisterOnWeb: true,
|
|
69
|
-
profile: {
|
|
70
|
-
language: "en_MY",
|
|
71
|
-
gender: "M",
|
|
72
|
-
country: "MY",
|
|
73
|
-
dob: 20200102,
|
|
74
|
-
religion: "Non-Islam",
|
|
75
|
-
address: {
|
|
76
|
-
value: "",
|
|
77
|
-
street: "2, Jalan " + hexlify(utils.randomBytes(1)).substr(2) + "/" + hexlify(utils.randomBytes(1)).substr(2) + ", Taman " + hexlify(utils.randomBytes(4)).substr(2),
|
|
78
|
-
postcode: "57000",
|
|
79
|
-
city: "Kuala Lumpur",
|
|
80
|
-
state: "Kuala Lumpur",
|
|
81
|
-
province: "",
|
|
82
|
-
country: "Malaysia"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
kyc: {
|
|
86
|
-
idType: KYC_TYPE_ID.NATIONAL_ID,
|
|
87
|
-
flow: KYC_FLOW_ID.MANUAL,
|
|
88
|
-
ocrAlter: false
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
code: "Muthu",
|
|
93
|
-
username: "muthu." + hexlify(utils.randomBytes(4)).substr(2),
|
|
94
|
-
password: hexlify(utils.randomBytes(5)).substr(2),
|
|
95
|
-
domain: "hello-world.sh",
|
|
96
|
-
wallet: mxw.Wallet.createRandom(),
|
|
97
|
-
challenge: false,
|
|
98
|
-
firstRegisterOnWeb: false,
|
|
99
|
-
profile: {
|
|
100
|
-
language: "ms_MY",
|
|
101
|
-
gender: "M",
|
|
102
|
-
country: "MY",
|
|
103
|
-
dob: 20200103,
|
|
104
|
-
religion: "Non-Islam",
|
|
105
|
-
address: {
|
|
106
|
-
value: "",
|
|
107
|
-
street: "3, Jalan " + hexlify(utils.randomBytes(1)).substr(2) + "/" + hexlify(utils.randomBytes(1)).substr(2) + ", Taman " + hexlify(utils.randomBytes(4)).substr(2),
|
|
108
|
-
postcode: "57000",
|
|
109
|
-
city: "Kuala Lumpur",
|
|
110
|
-
state: "Kuala Lumpur",
|
|
111
|
-
province: "",
|
|
112
|
-
country: "Malaysia"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
kyc: {
|
|
116
|
-
idType: KYC_TYPE_ID.NATIONAL_ID,
|
|
117
|
-
flow: KYC_FLOW_ID.AUTO,
|
|
118
|
-
ocrAlter: true
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
];
|
|
122
|
-
|
|
123
|
-
for (let info of infoList) {
|
|
124
|
-
let user = new User(info.code);
|
|
125
|
-
|
|
126
|
-
user.username = info.username;
|
|
127
|
-
user.password = info.password;
|
|
128
|
-
user.domain = info.domain;
|
|
129
|
-
user.wallet = info.wallet;
|
|
130
|
-
user.loginWallet = mxw.Wallet.fromMnemonic(user.wallet.mnemonic, "m/44'/118'/0'/0/30000");
|
|
131
|
-
user.profile = info.profile;
|
|
132
|
-
user.profile.address.value = user.profile.address.street + " " + user.profile.address.city + " " +
|
|
133
|
-
user.profile.address.postcode + " " + user.profile.address.state + " " + user.profile.address.country
|
|
134
|
-
user.kyc = info.kyc;
|
|
135
|
-
|
|
136
|
-
HubService.Instance.users[user.code] = user;
|
|
137
|
-
|
|
138
|
-
if (info.firstRegisterOnWeb) {
|
|
139
|
-
webOnboard(user, info.challenge);
|
|
140
|
-
appOnboard(user, info.challenge);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
appOnboard(user, info.challenge);
|
|
144
|
-
webOnboard(user, info.challenge);
|
|
145
|
-
}
|
|
146
|
-
// changePassword(user, info.challenge);
|
|
147
|
-
// mainProfile(user, info.challenge);
|
|
148
|
-
// profile(user, info.challenge);
|
|
149
|
-
kycByType(user, info.kyc.idType, info.kyc.flow, info.challenge);
|
|
150
|
-
|
|
151
|
-
// webReauth(user, info.challenge);
|
|
152
|
-
// appReauth(user, info.challenge);
|
|
153
|
-
|
|
154
|
-
whitelist(user, info.kyc.idType, user.wallet, info.challenge);
|
|
155
|
-
// whitelist(user, info.kyc.idType, user.loginWallet, info.challenge);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
for (let i = 0; infoList.length > i; i++) {
|
|
159
|
-
let info = infoList[i];
|
|
160
|
-
let user = HubService.Instance.users[info.code];
|
|
161
|
-
let others: User[] = [];
|
|
162
|
-
|
|
163
|
-
for (let a = 0; infoList.length > a; a++) {
|
|
164
|
-
if (a == i) continue;
|
|
165
|
-
others.push(HubService.Instance.users[infoList[a].code]);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
createContact(user, user, false);
|
|
169
|
-
// createContract(user, user.wallet, others, false);
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
JWT_SECRET="JWT_SECRET"
|
|
2
|
-
WHITELIST="*"
|
|
3
|
-
CORS="*"
|
|
4
|
-
|
|
5
|
-
SERVICE_DOMAIN="DOMAIN"
|
|
6
|
-
SERVICE_SESSION_TIMEOUT="60000"
|
|
7
|
-
SERVICE_WALLET_JSON={"address":"mxw1pv3lfk3s0mp0nw9sftv95s5tfzwqu26qqw3d2s","id":"99ddd9b3-23aa-4dbf-a8cc-d89e885121d2","version":3,"Crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"1fd9e58278c96fd902b334e4a3b16838"},"ciphertext":"fa5ea57bdae0a4dffb997d2c09c93f9a472b2a881c42c486cbd6ba001d112dcd","kdf":"scrypt","kdfparams":{"salt":"f03e572526d9f6fc204f7061d4766cd8eda9760a78f91803783c441879efc5ac","n":131072,"dklen":32,"p":1,"r":8},"mac":"770b8ba60c1167ffaeaace160341d6868437fd4992b772951cc217025082b1f8"},"x-mxw":{"client":"mxw-sdk","filename":"UTC--2019-07-25T11-49-57.0Z--mxw1pv3lfk3s0mp0nw9sftv95s5tfzwqu26qqw3d2s","mnemonicCounter":"d04f8666f6b894af7f4ef90bb568d7b0","mnemonicCiphertext":"0af223d5975c3466b0e2aecd30cdeab0","path":"m/44'/376'/0'/0/0","version":"0.1"}}
|
|
8
|
-
SERVICE_WALLET_PASSWORD=any strong password
|
|
9
|
-
|
|
10
|
-
MYSQL_URL="mysql://user:password@db/db"
|