@nathapp/na-cli 1.0.1-rc.6 → 1.0.2
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 +88 -20
- package/dist/index.js +36 -2
- package/dist/index.js.map +1 -1
- 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 +49 -39
- package/dist/templates/nestjs-api/src/i18n/en_US/date.json +7 -0
- 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-test.json +26 -0
- package/dist/templates/nestjs-library/.npmignore-rename +4 -0
- package/dist/templates/nestjs-library/package.json +8 -8
- package/dist/templates/ts-library/.npmignore-rename +4 -0
- 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 +122 -47
- package/dist/utils/template.js.map +1 -1
- package/package.json +1 -1
- package/.gitlab-ci.yml +0 -143
- 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/.gitignore-rename +0 -3
- 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/Dockerfile +0 -14
- package/dist/templates/mxw-base-api-express/Makefile +0 -84
- package/dist/templates/mxw-base-api-express/README.md +0 -71
- package/dist/templates/mxw-base-api-express/package.json +0 -55
- 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 -24
- package/dist/templates/nestjs-api/src/app.controller.ts +0 -27
- package/dist/templates/nestjs-api/src/app.module.ts +0 -49
- 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 -47
- package/dist/templates/nestjs-api/tsconfig.build.json +0 -4
- package/dist/templates/nestjs-api/tsconfig.json +0 -24
- 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/dist/utils/help.js +0 -8
- package/dist/utils/help.js.map +0 -1
- package/tsconfig.json +0 -24
- /package/dist/templates/{nestjs-api/.eslintrc.js → turbo-nestjs-vuexy/packages/eslint-config/nest.js} +0 -0
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# Deployment must implement Makefile for commands (test, pre-install, install, uninstall, name, version, image)
|
|
2
|
-
# command:
|
|
3
|
-
# - test: run deployment integration test cases
|
|
4
|
-
# - pre-install: deploy prerelease (with commit hash) version of resources and services
|
|
5
|
-
# - install: deploy release version of resources and services
|
|
6
|
-
# - name: display deployment name
|
|
7
|
-
# - version: display deployment version
|
|
8
|
-
# - image: display deployment name and version (e.g. hello-world:1.0.0)
|
|
9
|
-
#
|
|
10
|
-
stages:
|
|
11
|
-
- test
|
|
12
|
-
# run test cases
|
|
13
|
-
- install
|
|
14
|
-
# deploy helm charts
|
|
15
|
-
- release
|
|
16
|
-
# mark release commit as verified
|
|
17
|
-
|
|
18
|
-
run-lint:
|
|
19
|
-
stage: test
|
|
20
|
-
image: alpine/helm:3.3.4
|
|
21
|
-
before_script:
|
|
22
|
-
- apk update
|
|
23
|
-
- apk add make git npm jq
|
|
24
|
-
script:
|
|
25
|
-
- make lint
|
|
26
|
-
rules:
|
|
27
|
-
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
28
|
-
- if: '$CI_COMMIT_MESSAGE =~ /run-lint/'
|
|
29
|
-
# merge request
|
|
30
|
-
# commit message contains `run-lint`,`run-release` keyword
|
|
31
|
-
|
|
32
|
-
# run-test:
|
|
33
|
-
# stage: test
|
|
34
|
-
# image: alpine/helm:3.3.4
|
|
35
|
-
# variables:
|
|
36
|
-
# CI_TEST: "true"
|
|
37
|
-
# before_script:
|
|
38
|
-
# - apk update
|
|
39
|
-
# - apk add make git npm jq
|
|
40
|
-
# script:
|
|
41
|
-
# - make test
|
|
42
|
-
# only:
|
|
43
|
-
# refs:
|
|
44
|
-
# - branches
|
|
45
|
-
# - merge_requests
|
|
46
|
-
# variables:
|
|
47
|
-
# - $CI_COMMIT_MESSAGE =~ /run-test/
|
|
48
|
-
# except:
|
|
49
|
-
# refs:
|
|
50
|
-
# - master
|
|
51
|
-
# variables:
|
|
52
|
-
# - $CI_COMMIT_MESSAGE =~ /release-rc-by-devbot/
|
|
53
|
-
# - $CI_COMMIT_MESSAGE =~ /release-by-devbot/
|
|
54
|
-
# - $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
|
|
55
|
-
# # merge request or commit branch is not default branch (master)
|
|
56
|
-
# # commit message contains `run-test` keyword
|
|
57
|
-
|
|
58
|
-
# run-pre-install:
|
|
59
|
-
# stage: install
|
|
60
|
-
# image: alpine/helm:3.3.4
|
|
61
|
-
# before_script:
|
|
62
|
-
# - apk update
|
|
63
|
-
# - apk add make git npm jq
|
|
64
|
-
# - git config --global user.name "$GITLAB_USER_NAME"
|
|
65
|
-
# - git config --global user.email "$GITLAB_USER_EMAIL"
|
|
66
|
-
# script:
|
|
67
|
-
# - make pre-install
|
|
68
|
-
# - git add -A
|
|
69
|
-
# - git commit -m "$(make version)" -m "== release-rc-by-devbot ($CI_COMMIT_SHA) =="
|
|
70
|
-
# - git tag -a "$(make version)" -m "$(make image)"
|
|
71
|
-
# - git push "https://${GITLAB_USER_NAME}:${CI_GIT_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_BRANCH}"
|
|
72
|
-
# - git push "https://${GITLAB_USER_NAME}:${CI_GIT_TOKEN}@${CI_REPOSITORY_URL#*@}" --tags
|
|
73
|
-
# only:
|
|
74
|
-
# refs:
|
|
75
|
-
# - branches
|
|
76
|
-
# variables:
|
|
77
|
-
# - $CI_COMMIT_MESSAGE =~ /run-prerelease/
|
|
78
|
-
# except:
|
|
79
|
-
# - master
|
|
80
|
-
# # commit branch is not default branch (master) and commit message contains `run-prerelease` keyword
|
|
81
|
-
|
|
82
|
-
# run-pre-release:
|
|
83
|
-
# stage: release
|
|
84
|
-
# image: alpine/make:4.2.1
|
|
85
|
-
# script:
|
|
86
|
-
# - echo "Prerelease version $(make version)"
|
|
87
|
-
# only:
|
|
88
|
-
# refs:
|
|
89
|
-
# - tags
|
|
90
|
-
# variables:
|
|
91
|
-
# - $CI_COMMIT_MESSAGE =~ /release-rc-by-devbot/
|
|
92
|
-
# except:
|
|
93
|
-
# - master
|
|
94
|
-
# # commit into non default branch (master) when tag was created and commit message contains `release-rc-by-devbot`
|
|
95
|
-
|
|
96
|
-
run-install:
|
|
97
|
-
stage: install
|
|
98
|
-
image: alpine/helm:3.3.4
|
|
99
|
-
before_script:
|
|
100
|
-
- apk update
|
|
101
|
-
- apk add make git npm jq
|
|
102
|
-
- git config --global user.name "$GITLAB_USER_NAME"
|
|
103
|
-
- git config --global user.email "$GITLAB_USER_EMAIL"
|
|
104
|
-
script:
|
|
105
|
-
- make install
|
|
106
|
-
- git add -A
|
|
107
|
-
- git commit -m "$(make version)" -m "== release-by-devbot ($CI_COMMIT_SHA) =="
|
|
108
|
-
- git tag -a "$(make version)" -m "$(make image)"
|
|
109
|
-
- git push "https://${GITLAB_USER_NAME}:${CI_GIT_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_BRANCH}"
|
|
110
|
-
- git push "https://${GITLAB_USER_NAME}:${CI_GIT_TOKEN}@${CI_REPOSITORY_URL#*@}" --tags
|
|
111
|
-
only:
|
|
112
|
-
refs:
|
|
113
|
-
- master
|
|
114
|
-
variables:
|
|
115
|
-
- $CI_COMMIT_MESSAGE =~ /run-release/
|
|
116
|
-
# commit into default branch (master) and commit message contains `run-release`
|
|
117
|
-
|
|
118
|
-
run-release:
|
|
119
|
-
stage: release
|
|
120
|
-
image: alpine/make:4.2.1
|
|
121
|
-
script:
|
|
122
|
-
- echo "Release version $(make version)"
|
|
123
|
-
only:
|
|
124
|
-
refs:
|
|
125
|
-
- master
|
|
126
|
-
variables:
|
|
127
|
-
- $CI_COMMIT_MESSAGE =~ /release-by-devbot/
|
|
128
|
-
# commit into default branch (master) and commit message contains `release-by-devbot`
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
MAKEFILE := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
2
|
-
ROOT_PATH := $(shell pwd)
|
|
3
|
-
|
|
4
|
-
.PHONY: resources services
|
|
5
|
-
|
|
6
|
-
pre-install: version-prerelease run-install
|
|
7
|
-
@echo "==> Testing SERVICES"
|
|
8
|
-
@cat /tmp/_env.yaml | helm test -n $(CI_KUBE_NAMESPACE) $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME)
|
|
9
|
-
|
|
10
|
-
install: version-patch run-install
|
|
11
|
-
@echo "==> Testing SERVICES"
|
|
12
|
-
@cat /tmp/_env.yaml | helm test -n $(CI_KUBE_NAMESPACE) $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME)
|
|
13
|
-
|
|
14
|
-
run-install: env run-install-rsc
|
|
15
|
-
@echo "==> Installing SERVICES"
|
|
16
|
-
@rm -rf charts
|
|
17
|
-
@cp -rf services/charts charts
|
|
18
|
-
@cp -f /tmp/_env.yaml charts/hooks/charts/pre-delete-rsc/script/_env.yaml
|
|
19
|
-
@cat /tmp/_env.yaml | helm upgrade -n $(CI_KUBE_NAMESPACE) --install --atomic --timeout 10m \
|
|
20
|
-
-f $$(make --no-print-directory -f$(MAKEFILE) RELEASE_VALUE_FILE) -f - $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME) .
|
|
21
|
-
@rm -rf charts
|
|
22
|
-
|
|
23
|
-
run-install-rsc:
|
|
24
|
-
@echo "==> Installing RESOURCES"
|
|
25
|
-
@rm -rf charts
|
|
26
|
-
@cp -rf resources/charts charts
|
|
27
|
-
@cat /tmp/_env.yaml | helm upgrade -n $(CI_KUBE_NAMESPACE) --install --atomic --timeout 10m \
|
|
28
|
-
-f $$(make --no-print-directory -f$(MAKEFILE) RELEASE_VALUE_FILE) -f - $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME)-rsc .
|
|
29
|
-
@rm -rf charts
|
|
30
|
-
|
|
31
|
-
uninstall: env
|
|
32
|
-
@echo "==> Uninstalling SERVICES"
|
|
33
|
-
@-cat /tmp/_env.yaml | helm uninstall -n $(CI_KUBE_NAMESPACE) $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME)
|
|
34
|
-
|
|
35
|
-
lint: env run-lint
|
|
36
|
-
|
|
37
|
-
run-lint: run-lint-rsc
|
|
38
|
-
@echo "==> Lint SERVICES"
|
|
39
|
-
@rm -rf charts
|
|
40
|
-
@ln -s services/charts charts
|
|
41
|
-
@cat /tmp/_env.yaml | helm lint -n $(CI_KUBE_NAMESPACE)
|
|
42
|
-
@rm -rf charts
|
|
43
|
-
|
|
44
|
-
run-lint-rsc:
|
|
45
|
-
@echo "==> Lint RESOURCES"
|
|
46
|
-
@rm -rf charts
|
|
47
|
-
@ln -s resources/charts charts
|
|
48
|
-
@cat /tmp/_env.yaml | helm lint -n $(CI_KUBE_NAMESPACE)
|
|
49
|
-
@rm -rf charts
|
|
50
|
-
|
|
51
|
-
test: run-install run-test uninstall
|
|
52
|
-
|
|
53
|
-
run-test:
|
|
54
|
-
@echo "==> Testing SERVICES"
|
|
55
|
-
@cat /tmp/_env.yaml | helm test -n $(CI_KUBE_NAMESPACE) --logs $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME) || \
|
|
56
|
-
($$(make --no-print-directory -f$(MAKEFILE) uninstall); exit 1);
|
|
57
|
-
|
|
58
|
-
RELEASE_NAME:
|
|
59
|
-
@awk 'BEGIN{ \
|
|
60
|
-
if (ENVIRON["CI_COMMIT_BRANCH"] == ENVIRON["CI_DEFAULT_BRANCH"]) { \
|
|
61
|
-
printf("%s", ENVIRON["CI_PROJECT_NAME"]) \
|
|
62
|
-
} \
|
|
63
|
-
else { \
|
|
64
|
-
if (ENVIRON["CI_TEST"] == "true") { \
|
|
65
|
-
printf("%s-%s", ENVIRON["CI_PROJECT_NAME"], ENVIRON["CI_COMMIT_SHORT_SHA"]) \
|
|
66
|
-
} \
|
|
67
|
-
else { \
|
|
68
|
-
printf("%s-%s", ENVIRON["CI_PROJECT_NAME"], ENVIRON["CI_COMMIT_REF_SLUG"]) \
|
|
69
|
-
} \
|
|
70
|
-
} \
|
|
71
|
-
}'
|
|
72
|
-
|
|
73
|
-
RELEASE_VALUE_FILE:
|
|
74
|
-
@awk 'BEGIN{ \
|
|
75
|
-
if (ENVIRON["CI_COMMIT_BRANCH"] == ENVIRON["CI_DEFAULT_BRANCH"]) { \
|
|
76
|
-
printf("values.yaml") \
|
|
77
|
-
} \
|
|
78
|
-
else { \
|
|
79
|
-
printf("test-values.yaml") \
|
|
80
|
-
} \
|
|
81
|
-
}'
|
|
82
|
-
|
|
83
|
-
env:
|
|
84
|
-
@if [ ! -f "/tmp/_env.yaml" ]; then \
|
|
85
|
-
awk 'END { for (name in ENVIRON) { if (name ~ /^(CI|GITLAB|CONTAINER)/ ) print name} }' < /dev/null | \
|
|
86
|
-
awk 'BEGIN { \
|
|
87
|
-
printf("global:\n env:\n"); \
|
|
88
|
-
} \
|
|
89
|
-
{ \
|
|
90
|
-
name = $$0; \
|
|
91
|
-
multiline = "0"; \
|
|
92
|
-
split(ENVIRON[name], chars, ""); \
|
|
93
|
-
for (i = 1; i <= length(ENVIRON[name]); i++) { \
|
|
94
|
-
if (chars[i] == "\n") { \
|
|
95
|
-
multiline = "1"; \
|
|
96
|
-
break; \
|
|
97
|
-
} \
|
|
98
|
-
} \
|
|
99
|
-
if (multiline == "0") { \
|
|
100
|
-
printf(" %s: \"%s\"\n", name, ENVIRON[name]); \
|
|
101
|
-
} \
|
|
102
|
-
else { \
|
|
103
|
-
printf(" %s: |\n ", name); \
|
|
104
|
-
split(ENVIRON[name], chars, ""); \
|
|
105
|
-
for (i = 1; i <= length(ENVIRON[name]); i++) { \
|
|
106
|
-
if (chars[i] == "\n") { \
|
|
107
|
-
printf("\n "); \
|
|
108
|
-
} \
|
|
109
|
-
else { \
|
|
110
|
-
printf("%s", chars[i]); \
|
|
111
|
-
} \
|
|
112
|
-
} \
|
|
113
|
-
printf("\n"); \
|
|
114
|
-
} \
|
|
115
|
-
}' > /tmp/_env.yaml; \
|
|
116
|
-
fi;
|
|
117
|
-
|
|
118
|
-
name:
|
|
119
|
-
@cat Chart.yaml | grep "name:" | awk -F": " '{ printf("%s",$$2) }'
|
|
120
|
-
|
|
121
|
-
separator:
|
|
122
|
-
@echo -n ":"
|
|
123
|
-
|
|
124
|
-
image: name separator version
|
|
125
|
-
|
|
126
|
-
version:
|
|
127
|
-
@cat Chart.yaml | grep "version:" | awk -F": " '{ printf("%s",$$2) }'
|
|
128
|
-
|
|
129
|
-
version-major: version-sync
|
|
130
|
-
@npm -s version major --no-git-tag-version
|
|
131
|
-
@sed -i "s/^version:.*/version: $$( cat package.json | jq -r '.version')/" Chart.yaml
|
|
132
|
-
@rm -rf package.json
|
|
133
|
-
|
|
134
|
-
version-minor: version-sync
|
|
135
|
-
@npm -s version minor --no-git-tag-version
|
|
136
|
-
@sed -i "s/^version:.*/version: $$( cat package.json | jq -r '.version')/" Chart.yaml
|
|
137
|
-
@rm -rf package.json
|
|
138
|
-
|
|
139
|
-
version-patch: version-sync
|
|
140
|
-
@npm -s version patch --no-git-tag-version
|
|
141
|
-
@sed -i "s/^version:.*/version: $$( cat package.json | jq -r '.version')/" Chart.yaml
|
|
142
|
-
@rm -rf package.json
|
|
143
|
-
|
|
144
|
-
version-prerelease: version-sync
|
|
145
|
-
@npm -s version prerelease --preid=rc --no-git-tag-version
|
|
146
|
-
@sed -i "s/^version:.*/version: $$( cat package.json | jq -r '.version')/" Chart.yaml
|
|
147
|
-
@rm -rf package.json
|
|
148
|
-
|
|
149
|
-
version-latest:
|
|
150
|
-
@(git tag --sort=-creatordate || echo) | awk 'NR==1 { \
|
|
151
|
-
split($$0, n, "-"); \
|
|
152
|
-
if (n[1] != "") { \
|
|
153
|
-
split(n[1], v, "."); \
|
|
154
|
-
if (v[1] ~ /^[0-9]+$$/ && v[2] ~ /^[0-9]+$$/ && v[3] ~ /^[0-9]+$$/) { \
|
|
155
|
-
print $$0; \
|
|
156
|
-
exit 0; \
|
|
157
|
-
} \
|
|
158
|
-
} \
|
|
159
|
-
print "1.0.0-rc.0"; \
|
|
160
|
-
} \
|
|
161
|
-
END { \
|
|
162
|
-
if (NR == 0) { \
|
|
163
|
-
print "1.0.0-rc.0"; \
|
|
164
|
-
} \
|
|
165
|
-
}'
|
|
166
|
-
|
|
167
|
-
version-sync:
|
|
168
|
-
@git checkout $(CI_COMMIT_BRANCH)
|
|
169
|
-
@git pull --tags 2>/dev/null || true
|
|
170
|
-
@git tag --sort=-creatordate | head -10
|
|
171
|
-
@echo '{"version": ""}' | jq -r --arg PKG_VERSION `make --no-print-directory -f$(MAKEFILE) version-latest` '.version=$$PKG_VERSION' > package.json;
|
|
172
|
-
@echo -n "Current Git tag: "; cat package.json | jq -r '.version'
|
|
173
|
-
|
|
174
|
-
resources:
|
|
175
|
-
@rm -rf charts
|
|
176
|
-
@ln -s resources/charts charts
|
|
177
|
-
|
|
178
|
-
services:
|
|
179
|
-
@rm -rf charts
|
|
180
|
-
@ln -s services/charts charts
|
|
181
|
-
|
|
182
|
-
images:
|
|
183
|
-
@for file in `make --no-print-directory -f$(MAKEFILE) images-file`; do \
|
|
184
|
-
echo `cat $$file | grep "repository:" | awk -F": " '{ gsub(/"/,"",$$2); print $$2 }'`:`cat $$file | grep "tag:" | awk -F": " '{ gsub(/"/,"",$$2); print $$2 }'`; \
|
|
185
|
-
done;
|
|
186
|
-
|
|
187
|
-
images-file:
|
|
188
|
-
ifeq ($(TARGET),*)
|
|
189
|
-
@for file in `find $(ROOT_PATH)/services -iname values.yaml`; do \
|
|
190
|
-
echo $$file | grep -v "services/charts/hooks"; \
|
|
191
|
-
done;
|
|
192
|
-
else
|
|
193
|
-
@for file in `find $(TARGET) -iname values.yaml`; do \
|
|
194
|
-
echo $$file; \
|
|
195
|
-
done;
|
|
196
|
-
endif
|
package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/script/Makefile
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
REPO_PATH := /tmp/repo
|
|
2
|
-
GIT_PATH := $(REPO_PATH)/.git
|
|
3
|
-
|
|
4
|
-
.PHONY:
|
|
5
|
-
|
|
6
|
-
install: repo
|
|
7
|
-
@make --no-print-directory -f$(REPO_PATH)/Makefile install ROOT_PATH=$(REPO_PATH);
|
|
8
|
-
|
|
9
|
-
# Clone Git repo according to target version
|
|
10
|
-
repo:
|
|
11
|
-
@git clone -q -b "$(GIT_TAG)" https://$(GITLAB_USER_NAME):$(CI_GIT_TOKEN)@$(GIT_REPO) $(REPO_PATH)
|
|
12
|
-
@git --git-dir=$(GIT_PATH) pull --tags 2>/dev/null || true
|
package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/Makefile
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
ROOT_PATH := $(shell pwd)
|
|
3
|
-
|
|
4
|
-
.PHONY:
|
|
5
|
-
|
|
6
|
-
uninstall:
|
|
7
|
-
@helm -n "$$(make --no-print-directory CI_KUBE_NAMESPACE)" uninstall "$$(make --no-print-directory RELEASE_NAME)"-rsc
|
|
8
|
-
|
|
9
|
-
RELEASE_NAME:
|
|
10
|
-
@CI_COMMIT_BRANCH="$$(make --no-print-directory CI_COMMIT_BRANCH)" \
|
|
11
|
-
CI_DEFAULT_BRANCH="$$(make --no-print-directory CI_DEFAULT_BRANCH)" \
|
|
12
|
-
CI_PROJECT_NAME="$$(make --no-print-directory CI_PROJECT_NAME)" \
|
|
13
|
-
CI_COMMIT_SHORT_SHA="$$(make --no-print-directory CI_COMMIT_SHORT_SHA)" \
|
|
14
|
-
CI_COMMIT_REF_SLUG="$$(make --no-print-directory CI_COMMIT_REF_SLUG)" \
|
|
15
|
-
CI_TEST="$$(make --no-print-directory CI_TEST)" \
|
|
16
|
-
awk 'BEGIN{ \
|
|
17
|
-
if (ENVIRON["CI_COMMIT_BRANCH"] == ENVIRON["CI_DEFAULT_BRANCH"]) { \
|
|
18
|
-
printf("%s", ENVIRON["CI_PROJECT_NAME"]) \
|
|
19
|
-
} \
|
|
20
|
-
else { \
|
|
21
|
-
if (ENVIRON["CI_TEST"] == "true") { \
|
|
22
|
-
printf("%s-%s", ENVIRON["CI_PROJECT_NAME"], ENVIRON["CI_COMMIT_SHORT_SHA"]) \
|
|
23
|
-
} \
|
|
24
|
-
else { \
|
|
25
|
-
printf("%s-%s", ENVIRON["CI_PROJECT_NAME"], ENVIRON["CI_COMMIT_REF_SLUG"]) \
|
|
26
|
-
} \
|
|
27
|
-
} \
|
|
28
|
-
}'
|
|
29
|
-
|
|
30
|
-
CI_KUBE_NAMESPACE:
|
|
31
|
-
@cat _env.yaml | grep "CI_KUBE_NAMESPACE: " | awk -F": \"" '{v=substr($$2,0,length($$2)-1);printf("%s",v)}'
|
|
32
|
-
|
|
33
|
-
CI_PROJECT_NAME:
|
|
34
|
-
@cat _env.yaml | grep "CI_PROJECT_NAME: " | awk -F": \"" '{v=substr($$2,0,length($$2)-1);printf("%s",v)}'
|
|
35
|
-
|
|
36
|
-
CI_COMMIT_SHORT_SHA:
|
|
37
|
-
@cat _env.yaml | grep "CI_COMMIT_SHORT_SHA: " | awk -F": \"" '{v=substr($$2,0,length($$2)-1);printf("%s",v)}'
|
|
38
|
-
|
|
39
|
-
CI_COMMIT_BRANCH:
|
|
40
|
-
@cat _env.yaml | grep "CI_COMMIT_BRANCH: " | awk -F": \"" '{v=substr($$2,0,length($$2)-1);printf("%s",v)}'
|
|
41
|
-
|
|
42
|
-
CI_DEFAULT_BRANCH:
|
|
43
|
-
@cat _env.yaml | grep "CI_DEFAULT_BRANCH: " | awk -F": \"" '{v=substr($$2,0,length($$2)-1);printf("%s",v)}'
|
|
44
|
-
|
|
45
|
-
CI_TEST:
|
|
46
|
-
@cat _env.yaml | grep "CI_TEST: " | awk -F": \"" '{v=substr($$2,0,length($$2)-1);printf("%s",v)}'
|
|
47
|
-
|
|
48
|
-
CI_COMMIT_REF_SLUG:
|
|
49
|
-
@cat _env.yaml | grep "CI_COMMIT_REF_SLUG: " | awk -F": \"" '{v=substr($$2,0,length($$2)-1);printf("%s",v)}'
|
package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/script/Makefile
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
MAKEFILE := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
2
|
-
ROOT_PATH := $(shell pwd)
|
|
3
|
-
|
|
4
|
-
.PHONY:
|
|
5
|
-
|
|
6
|
-
start:
|
|
7
|
-
@getent hosts $(SERVICE_BASE_INGRESS) | awk '{ \
|
|
8
|
-
printf("%s %s\n%s %s\n%s %s\n", \
|
|
9
|
-
$$1, ENVIRON["SERVICE_BASE_DOMAIN"], \
|
|
10
|
-
$$1, ENVIRON["MXW_SERVICE_BASE_DOMAIN"], \
|
|
11
|
-
$$1, ENVIRON["EMAIL_SERVER_DOMAIN"] \
|
|
12
|
-
); \
|
|
13
|
-
}' >> /etc/hosts
|
|
14
|
-
@npm -s run test
|
|
@@ -1,84 +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
|
-
chai.use(chaihttp);
|
|
8
|
-
|
|
9
|
-
let debug = (process.env.CI_DEBUG === "true");
|
|
10
|
-
|
|
11
|
-
describe('Suite: Initialize', function () {
|
|
12
|
-
if (debug) {
|
|
13
|
-
process.env.SERVICE_BASE_SCHEMA = "https";
|
|
14
|
-
process.env.SERVICE_BASE_DOMAIN = "dev-hk-service.usdp.io";
|
|
15
|
-
process.env.SERVICE_BASE_NAME = "bdss";
|
|
16
|
-
|
|
17
|
-
process.env.MXW_SERVICE_BASE_SCHEMA = "https";
|
|
18
|
-
process.env.MXW_SERVICE_BASE_DOMAIN = "dev-hk-service.usdp.io";
|
|
19
|
-
process.env.MXW_SERVICE_BASE_NAME = "mxw";
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
describe('Suite: Readiness & Liveness', function () {
|
|
24
|
-
let services: {
|
|
25
|
-
title: string,
|
|
26
|
-
name: string,
|
|
27
|
-
resolve: Function,
|
|
28
|
-
path: string
|
|
29
|
-
}[] = [
|
|
30
|
-
{ title: "Auth", name: "auth-api", resolve: serviceUrl, path: "/auth/api" },
|
|
31
|
-
{ title: "Auth Web", name: "auth-web-api", resolve: serviceUrl, path: "" },
|
|
32
|
-
{ title: "Captcha", name: "captcha-api", resolve: serviceUrl, path: "/auth-web/api" },
|
|
33
|
-
{ title: "NFS Storage", name: "nfs-storage-api", resolve: serviceUrl, path: "/nfs/storage/api" },
|
|
34
|
-
{ title: "Storage Doc", name: "storage-doc-api", resolve: serviceUrl, path: "/storage/local/doc/api" },
|
|
35
|
-
{ title: "Storage Doc Auth", name: "storage-doc-auth-api", resolve: serviceUrl, path: "" },
|
|
36
|
-
{ title: "Storage Public", name: "storage-pub-api", resolve: serviceUrl, path: "/storage/local/pub/api" },
|
|
37
|
-
{ title: "Storage Public Auth", name: "storage-pub-auth-api", resolve: serviceUrl, path: "" },
|
|
38
|
-
{ title: "RT", name: "rt-api", resolve: serviceUrl, path: "/rt" },
|
|
39
|
-
{ title: "RT Gateway", name: "rt-gateway-api", resolve: serviceUrl, path: "" },
|
|
40
|
-
{ title: "Push Notify App Firebase", name: "push-notify-app-firebase-api", resolve: serviceUrl, path: "/notify/firebase/push-service" },
|
|
41
|
-
{ title: "Push Notify Firebase", name: "push-notify-firebase-api", resolve: serviceUrl, path: "" },
|
|
42
|
-
|
|
43
|
-
{ title: "Contract", name: "contract-api", resolve: serviceUrl, path: "/contract/api" },
|
|
44
|
-
{ title: "Signature", name: "signature-api", resolve: serviceUrl, path: "/signature/api" },
|
|
45
|
-
{ title: "User", name: "user-api", resolve: serviceUrl, path: "/user/api" },
|
|
46
|
-
{ title: "Workflow", name: "workflow-api", resolve: serviceUrl, path: "" },
|
|
47
|
-
{ title: "Object", name: "dms-object-api", resolve: serviceUrl, path: "/object/api" },
|
|
48
|
-
|
|
49
|
-
{ title: "KYC Provider", name: "mxw-kyc-provider-api", resolve: mxwServiceUrl, path: "/provider/kyc/v2" },
|
|
50
|
-
{ title: "Wallet", name: "mxw-wallet-api", resolve: mxwServiceUrl, path: "/wallet/api" }
|
|
51
|
-
];
|
|
52
|
-
|
|
53
|
-
for (let service of services) {
|
|
54
|
-
it(service.title + " - " + service.name, function () {
|
|
55
|
-
let url = service.resolve(service.name, service.path);
|
|
56
|
-
|
|
57
|
-
if (url) {
|
|
58
|
-
return chai.request(url).get("/readiness")
|
|
59
|
-
.then((res) => {
|
|
60
|
-
expect(res).to.have.status(200);
|
|
61
|
-
expect(res.body).is.empty;
|
|
62
|
-
|
|
63
|
-
return chai.request(url).get("/liveness")
|
|
64
|
-
.then((res) => {
|
|
65
|
-
expect(res).to.have.status(200);
|
|
66
|
-
expect(res.body).is.empty;
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
function serviceUrl(name: string, path: string) {
|
|
75
|
-
if (path) {
|
|
76
|
-
return process.env.SERVICE_BASE_SCHEMA + "://" + process.env.SERVICE_BASE_DOMAIN + "/" + process.env.SERVICE_BASE_NAME + path;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function mxwServiceUrl(name: string, path: string) {
|
|
81
|
-
if (path) {
|
|
82
|
-
return process.env.MXW_SERVICE_BASE_SCHEMA + "://" + process.env.MXW_SERVICE_BASE_DOMAIN + "/" + process.env.MXW_SERVICE_BASE_NAME + path;
|
|
83
|
-
}
|
|
84
|
-
}
|