@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
package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomCheckboxes.vue
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CustomInputContent, GridColumn } from '@core/types'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
selectedCheckbox: string[]
|
|
6
|
+
checkboxContent: CustomInputContent[]
|
|
7
|
+
gridColumn?: GridColumn
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Emit {
|
|
11
|
+
(e: 'update:selectedCheckbox', value: string[]): void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = defineProps<Props>()
|
|
15
|
+
const emit = defineEmits<Emit>()
|
|
16
|
+
|
|
17
|
+
const updateSelectedOption = (value: string[] | null) => {
|
|
18
|
+
if (typeof value !== 'boolean' && value !== null)
|
|
19
|
+
emit('update:selectedCheckbox', value)
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<VRow
|
|
25
|
+
v-if="props.checkboxContent && props.selectedCheckbox"
|
|
26
|
+
class="custom-input-wrapper"
|
|
27
|
+
>
|
|
28
|
+
<VCol
|
|
29
|
+
v-for="item in props.checkboxContent"
|
|
30
|
+
:key="item.title"
|
|
31
|
+
v-bind="gridColumn"
|
|
32
|
+
>
|
|
33
|
+
<VLabel
|
|
34
|
+
class="custom-input custom-checkbox rounded cursor-pointer"
|
|
35
|
+
:class="props.selectedCheckbox.includes(item.value) ? 'active' : ''"
|
|
36
|
+
>
|
|
37
|
+
<div>
|
|
38
|
+
<VCheckbox
|
|
39
|
+
:model-value="props.selectedCheckbox"
|
|
40
|
+
:value="item.value"
|
|
41
|
+
@update:model-value="updateSelectedOption"
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
<slot :item="item">
|
|
45
|
+
<div class="flex-grow-1">
|
|
46
|
+
<div class="d-flex align-center mb-2">
|
|
47
|
+
<h6 class="cr-title text-base">
|
|
48
|
+
{{ item.title }}
|
|
49
|
+
</h6>
|
|
50
|
+
<VSpacer />
|
|
51
|
+
<span
|
|
52
|
+
v-if="item.subtitle"
|
|
53
|
+
class="text-disabled text-body-2"
|
|
54
|
+
>{{ item.subtitle }}</span>
|
|
55
|
+
</div>
|
|
56
|
+
<p class="text-sm mb-0">
|
|
57
|
+
{{ item.desc }}
|
|
58
|
+
</p>
|
|
59
|
+
</div>
|
|
60
|
+
</slot>
|
|
61
|
+
</VLabel>
|
|
62
|
+
</VCol>
|
|
63
|
+
</VRow>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<style lang="scss" scoped>
|
|
67
|
+
.custom-checkbox {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: flex-start;
|
|
70
|
+
gap: 0.5rem;
|
|
71
|
+
|
|
72
|
+
.v-checkbox {
|
|
73
|
+
margin-block-start: -0.375rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.cr-title {
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
line-height: 1.375rem;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CustomInputContent, GridColumn } from '@core/types'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
selectedCheckbox: string[]
|
|
6
|
+
checkboxContent: CustomInputContent[]
|
|
7
|
+
gridColumn?: GridColumn
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Emit {
|
|
11
|
+
(e: 'update:selectedCheckbox', value: string[]): void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = defineProps<Props>()
|
|
15
|
+
const emit = defineEmits<Emit>()
|
|
16
|
+
|
|
17
|
+
const updateSelectedOption = (value: string[] | null) => {
|
|
18
|
+
if (typeof value !== 'boolean' && value !== null)
|
|
19
|
+
emit('update:selectedCheckbox', value)
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<VRow
|
|
25
|
+
v-if="props.checkboxContent && props.selectedCheckbox"
|
|
26
|
+
class="custom-input-wrapper"
|
|
27
|
+
>
|
|
28
|
+
<VCol
|
|
29
|
+
v-for="item in props.checkboxContent"
|
|
30
|
+
:key="item.title"
|
|
31
|
+
v-bind="gridColumn"
|
|
32
|
+
>
|
|
33
|
+
<VLabel
|
|
34
|
+
class="custom-input custom-checkbox-icon rounded cursor-pointer"
|
|
35
|
+
:class="props.selectedCheckbox.includes(item.value) ? 'active' : ''"
|
|
36
|
+
>
|
|
37
|
+
<slot :item="item">
|
|
38
|
+
<div class="d-flex flex-column align-center text-center gap-2">
|
|
39
|
+
<VIcon
|
|
40
|
+
v-bind="item.icon"
|
|
41
|
+
class="text-high-emphasis"
|
|
42
|
+
/>
|
|
43
|
+
|
|
44
|
+
<h6 class="cr-title text-base">
|
|
45
|
+
{{ item.title }}
|
|
46
|
+
</h6>
|
|
47
|
+
<p class="text-sm clamp-text mb-0">
|
|
48
|
+
{{ item.desc }}
|
|
49
|
+
</p>
|
|
50
|
+
</div>
|
|
51
|
+
</slot>
|
|
52
|
+
<div>
|
|
53
|
+
<VCheckbox
|
|
54
|
+
:model-value="props.selectedCheckbox"
|
|
55
|
+
:value="item.value"
|
|
56
|
+
@update:model-value="updateSelectedOption"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</VLabel>
|
|
60
|
+
</VCol>
|
|
61
|
+
</VRow>
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
<style lang="scss" scoped>
|
|
65
|
+
.custom-checkbox-icon {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
gap: 0.5rem;
|
|
69
|
+
|
|
70
|
+
.v-checkbox {
|
|
71
|
+
margin-block-end: -0.375rem;
|
|
72
|
+
|
|
73
|
+
.v-selection-control__wrapper {
|
|
74
|
+
margin-inline-start: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cr-title {
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
line-height: 1.375rem;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
84
|
+
|
|
85
|
+
<style lang="scss">
|
|
86
|
+
.custom-checkbox-icon {
|
|
87
|
+
.v-checkbox {
|
|
88
|
+
margin-block-end: -0.375rem;
|
|
89
|
+
|
|
90
|
+
.v-selection-control__wrapper {
|
|
91
|
+
margin-inline-start: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
</style>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { GridColumn } from '@core/types'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
selectedCheckbox: string[]
|
|
6
|
+
checkboxContent: { bgImage: string; value: string; label?: string }[]
|
|
7
|
+
gridColumn?: GridColumn
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Emit {
|
|
11
|
+
(e: 'update:selectedCheckbox', value: string[]): void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = defineProps<Props>()
|
|
15
|
+
const emit = defineEmits<Emit>()
|
|
16
|
+
|
|
17
|
+
const updateSelectedOption = (value: string[] | null) => {
|
|
18
|
+
if (typeof value !== 'boolean' && value !== null)
|
|
19
|
+
emit('update:selectedCheckbox', value)
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<VRow
|
|
25
|
+
v-if="props.checkboxContent && props.selectedCheckbox"
|
|
26
|
+
class="custom-input-wrapper"
|
|
27
|
+
>
|
|
28
|
+
<VCol
|
|
29
|
+
v-for="item in props.checkboxContent"
|
|
30
|
+
:key="item.value"
|
|
31
|
+
v-bind="gridColumn"
|
|
32
|
+
>
|
|
33
|
+
<VLabel
|
|
34
|
+
class="custom-input custom-checkbox rounded cursor-pointer w-100"
|
|
35
|
+
:class="props.selectedCheckbox.includes(item.value) ? 'active' : ''"
|
|
36
|
+
>
|
|
37
|
+
<div>
|
|
38
|
+
<VCheckbox
|
|
39
|
+
:id="`custom-checkbox-with-img-${item.value}`"
|
|
40
|
+
:model-value="props.selectedCheckbox"
|
|
41
|
+
:value="item.value"
|
|
42
|
+
@update:model-value="updateSelectedOption"
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
<img
|
|
46
|
+
:src="item.bgImage"
|
|
47
|
+
alt="bg-img"
|
|
48
|
+
class="custom-checkbox-image"
|
|
49
|
+
>
|
|
50
|
+
</VLabel>
|
|
51
|
+
|
|
52
|
+
<VLabel
|
|
53
|
+
v-if="item.label || $slots.label"
|
|
54
|
+
:for="`custom-checkbox-with-img-${item.value}`"
|
|
55
|
+
class="cursor-pointer"
|
|
56
|
+
>
|
|
57
|
+
<slot
|
|
58
|
+
name="label"
|
|
59
|
+
:label="item.label"
|
|
60
|
+
>
|
|
61
|
+
{{ item.label }}
|
|
62
|
+
</slot>
|
|
63
|
+
</VLabel>
|
|
64
|
+
</VCol>
|
|
65
|
+
</VRow>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<style lang="scss" scoped>
|
|
69
|
+
.custom-checkbox {
|
|
70
|
+
position: relative;
|
|
71
|
+
padding: 0;
|
|
72
|
+
|
|
73
|
+
.custom-checkbox-image {
|
|
74
|
+
block-size: 100%;
|
|
75
|
+
inline-size: 100%;
|
|
76
|
+
min-inline-size: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.v-checkbox {
|
|
80
|
+
position: absolute;
|
|
81
|
+
inset-block-start: 0;
|
|
82
|
+
inset-inline-end: 0;
|
|
83
|
+
visibility: hidden;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:hover,
|
|
87
|
+
&.active {
|
|
88
|
+
.v-checkbox {
|
|
89
|
+
visibility: visible;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
</style>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CustomInputContent, GridColumn } from '@core/types'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
selectedRadio: string
|
|
6
|
+
radioContent: CustomInputContent[]
|
|
7
|
+
gridColumn?: GridColumn
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Emit {
|
|
11
|
+
(e: 'update:selectedRadio', value: string): void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = defineProps<Props>()
|
|
15
|
+
const emit = defineEmits<Emit>()
|
|
16
|
+
|
|
17
|
+
const updateSelectedOption = (value: string | null) => {
|
|
18
|
+
if (value !== null)
|
|
19
|
+
emit('update:selectedRadio', value)
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<VRadioGroup
|
|
25
|
+
v-if="props.radioContent"
|
|
26
|
+
:model-value="props.selectedRadio"
|
|
27
|
+
class="custom-input-wrapper"
|
|
28
|
+
@update:model-value="updateSelectedOption"
|
|
29
|
+
>
|
|
30
|
+
<VRow>
|
|
31
|
+
<VCol
|
|
32
|
+
v-for="item in props.radioContent"
|
|
33
|
+
:key="item.title"
|
|
34
|
+
v-bind="gridColumn"
|
|
35
|
+
>
|
|
36
|
+
<VLabel
|
|
37
|
+
class="custom-input custom-radio rounded cursor-pointer"
|
|
38
|
+
:class="props.selectedRadio === item.value ? 'active' : ''"
|
|
39
|
+
>
|
|
40
|
+
<div>
|
|
41
|
+
<VRadio :value="item.value" />
|
|
42
|
+
</div>
|
|
43
|
+
<slot :item="item">
|
|
44
|
+
<div class="flex-grow-1">
|
|
45
|
+
<div class="d-flex align-center mb-2">
|
|
46
|
+
<h6 class="cr-title text-base">
|
|
47
|
+
{{ item.title }}
|
|
48
|
+
</h6>
|
|
49
|
+
<VSpacer />
|
|
50
|
+
<span
|
|
51
|
+
v-if="item.subtitle"
|
|
52
|
+
class="text-disabled text-body-2"
|
|
53
|
+
>{{ item.subtitle }}</span>
|
|
54
|
+
</div>
|
|
55
|
+
<p class="text-body-2 mb-0">
|
|
56
|
+
{{ item.desc }}
|
|
57
|
+
</p>
|
|
58
|
+
</div>
|
|
59
|
+
</slot>
|
|
60
|
+
</VLabel>
|
|
61
|
+
</VCol>
|
|
62
|
+
</VRow>
|
|
63
|
+
</VRadioGroup>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<style lang="scss" scoped>
|
|
67
|
+
.custom-radio {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: flex-start;
|
|
70
|
+
gap: 0.25rem;
|
|
71
|
+
|
|
72
|
+
.v-radio {
|
|
73
|
+
margin-block-start: -0.45rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.cr-title {
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
line-height: 1.375rem;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|
package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomRadiosWithIcon.vue
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CustomInputContent, GridColumn } from '@core/types'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
selectedRadio: string
|
|
6
|
+
radioContent: CustomInputContent[]
|
|
7
|
+
gridColumn?: GridColumn
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Emit {
|
|
11
|
+
(e: 'update:selectedRadio', value: string): void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = defineProps<Props>()
|
|
15
|
+
|
|
16
|
+
const emit = defineEmits<Emit>()
|
|
17
|
+
|
|
18
|
+
const updateSelectedOption = (value: string | null) => {
|
|
19
|
+
if (value !== null)
|
|
20
|
+
emit('update:selectedRadio', value)
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<VRadioGroup
|
|
26
|
+
v-if="props.radioContent"
|
|
27
|
+
:model-value="props.selectedRadio"
|
|
28
|
+
class="custom-input-wrapper"
|
|
29
|
+
@update:model-value="updateSelectedOption"
|
|
30
|
+
>
|
|
31
|
+
<VRow>
|
|
32
|
+
<VCol
|
|
33
|
+
v-for="item in props.radioContent"
|
|
34
|
+
:key="item.title"
|
|
35
|
+
v-bind="gridColumn"
|
|
36
|
+
>
|
|
37
|
+
<VLabel
|
|
38
|
+
class="custom-input custom-radio-icon rounded cursor-pointer"
|
|
39
|
+
:class="props.selectedRadio === item.value ? 'active' : ''"
|
|
40
|
+
>
|
|
41
|
+
<slot :item="item">
|
|
42
|
+
<div class="d-flex flex-column align-center text-center gap-2">
|
|
43
|
+
<VIcon
|
|
44
|
+
v-bind="item.icon"
|
|
45
|
+
class="text-high-emphasis"
|
|
46
|
+
/>
|
|
47
|
+
<h6 class="text-h6">
|
|
48
|
+
{{ item.title }}
|
|
49
|
+
</h6>
|
|
50
|
+
|
|
51
|
+
<p class="text-body-2 mb-0">
|
|
52
|
+
{{ item.desc }}
|
|
53
|
+
</p>
|
|
54
|
+
</div>
|
|
55
|
+
</slot>
|
|
56
|
+
|
|
57
|
+
<div>
|
|
58
|
+
<VRadio :value="item.value" />
|
|
59
|
+
</div>
|
|
60
|
+
</VLabel>
|
|
61
|
+
</VCol>
|
|
62
|
+
</VRow>
|
|
63
|
+
</VRadioGroup>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<style lang="scss" scoped>
|
|
67
|
+
.custom-radio-icon {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
gap: 0.5rem;
|
|
71
|
+
|
|
72
|
+
.v-radio {
|
|
73
|
+
margin-block-end: -0.5rem;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
77
|
+
|
|
78
|
+
<style lang="scss">
|
|
79
|
+
.custom-radio-icon {
|
|
80
|
+
.v-radio {
|
|
81
|
+
margin-block-end: -0.25rem;
|
|
82
|
+
|
|
83
|
+
.v-selection-control__wrapper {
|
|
84
|
+
margin-inline-start: 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
</style>
|
package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomRadiosWithImage.vue
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { GridColumn } from '@core/types'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
selectedRadio: string
|
|
6
|
+
radioContent: { bgImage: string | undefined; value: string; label?: string }[]
|
|
7
|
+
gridColumn?: GridColumn
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Emit {
|
|
11
|
+
(e: 'update:selectedRadio', value: string): void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = defineProps<Props>()
|
|
15
|
+
const emit = defineEmits<Emit>()
|
|
16
|
+
|
|
17
|
+
const updateSelectedOption = (value: string | null) => {
|
|
18
|
+
if (value !== null)
|
|
19
|
+
emit('update:selectedRadio', value)
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<VRadioGroup
|
|
25
|
+
v-if="props.radioContent"
|
|
26
|
+
:model-value="props.selectedRadio"
|
|
27
|
+
class="custom-input-wrapper"
|
|
28
|
+
@update:model-value="updateSelectedOption"
|
|
29
|
+
>
|
|
30
|
+
<VRow>
|
|
31
|
+
<VCol
|
|
32
|
+
v-for="item in props.radioContent"
|
|
33
|
+
:key="item.bgImage"
|
|
34
|
+
v-bind="gridColumn"
|
|
35
|
+
>
|
|
36
|
+
<VLabel
|
|
37
|
+
class="custom-input custom-radio rounded cursor-pointer w-100"
|
|
38
|
+
:class="props.selectedRadio === item.value ? 'active' : ''"
|
|
39
|
+
>
|
|
40
|
+
<slot
|
|
41
|
+
name="content"
|
|
42
|
+
:item="item"
|
|
43
|
+
>
|
|
44
|
+
<template v-if="typeof item.bgImage === 'object'">
|
|
45
|
+
<Component
|
|
46
|
+
:is="item.bgImage"
|
|
47
|
+
class="custom-radio-image"
|
|
48
|
+
/>
|
|
49
|
+
</template>
|
|
50
|
+
<img
|
|
51
|
+
v-else
|
|
52
|
+
:src="item.bgImage"
|
|
53
|
+
alt="bg-img"
|
|
54
|
+
class="custom-radio-image"
|
|
55
|
+
>
|
|
56
|
+
</slot>
|
|
57
|
+
|
|
58
|
+
<VRadio
|
|
59
|
+
:id="`custom-radio-with-img-${item.value}`"
|
|
60
|
+
:value="item.value"
|
|
61
|
+
/>
|
|
62
|
+
</VLabel>
|
|
63
|
+
|
|
64
|
+
<VLabel
|
|
65
|
+
v-if="item.label || $slots.label"
|
|
66
|
+
:for="`custom-radio-with-img-${item.value}`"
|
|
67
|
+
class="cursor-pointer"
|
|
68
|
+
>
|
|
69
|
+
<slot
|
|
70
|
+
name="label"
|
|
71
|
+
:label="item.label"
|
|
72
|
+
>
|
|
73
|
+
{{ item.label }}
|
|
74
|
+
</slot>
|
|
75
|
+
</VLabel>
|
|
76
|
+
</VCol>
|
|
77
|
+
</VRow>
|
|
78
|
+
</VRadioGroup>
|
|
79
|
+
</template>
|
|
80
|
+
|
|
81
|
+
<style lang="scss" scoped>
|
|
82
|
+
.custom-radio {
|
|
83
|
+
padding: 0 !important;
|
|
84
|
+
|
|
85
|
+
&.active {
|
|
86
|
+
border-width: 1px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.custom-radio-image {
|
|
90
|
+
block-size: 100%;
|
|
91
|
+
inline-size: 100%;
|
|
92
|
+
min-inline-size: 100%;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.v-radio {
|
|
96
|
+
visibility: hidden;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</style>
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
collapsed?: boolean
|
|
4
|
+
noActions?: boolean
|
|
5
|
+
actionCollapsed?: boolean
|
|
6
|
+
actionRefresh?: boolean
|
|
7
|
+
actionRemove?: boolean
|
|
8
|
+
loading?: boolean | undefined
|
|
9
|
+
title?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface Emit {
|
|
13
|
+
(e: 'collapsed', isContentCollapsed: boolean): void
|
|
14
|
+
(e: 'refresh', stopLoading: () => void): void
|
|
15
|
+
(e: 'trash'): void
|
|
16
|
+
(e: 'initialLoad'): void
|
|
17
|
+
(e: 'update:loading', loading: boolean): void
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
defineOptions({
|
|
21
|
+
inheritAttrs: false,
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
25
|
+
collapsed: false,
|
|
26
|
+
noActions: false,
|
|
27
|
+
actionCollapsed: false,
|
|
28
|
+
actionRefresh: false,
|
|
29
|
+
actionRemove: false,
|
|
30
|
+
loading: undefined,
|
|
31
|
+
title: undefined,
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
const emit = defineEmits<Emit>()
|
|
35
|
+
|
|
36
|
+
const _loading = ref(false)
|
|
37
|
+
|
|
38
|
+
const $loading = computed({
|
|
39
|
+
get() {
|
|
40
|
+
return props.loading !== undefined ? props.loading : _loading.value
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
set(value: boolean) {
|
|
44
|
+
props.loading !== undefined ? emit('update:loading', value) : _loading.value = value
|
|
45
|
+
},
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
const isContentCollapsed = ref(props.collapsed)
|
|
49
|
+
const isCardRemoved = ref(false)
|
|
50
|
+
|
|
51
|
+
// stop loading
|
|
52
|
+
const stopLoading = () => {
|
|
53
|
+
$loading.value = false
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// trigger collapse
|
|
57
|
+
const triggerCollapse = () => {
|
|
58
|
+
isContentCollapsed.value = !isContentCollapsed.value
|
|
59
|
+
emit('collapsed', isContentCollapsed.value)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// trigger refresh
|
|
63
|
+
const triggerRefresh = () => {
|
|
64
|
+
$loading.value = true
|
|
65
|
+
emit('refresh', stopLoading)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// trigger removal
|
|
69
|
+
const triggeredRemove = () => {
|
|
70
|
+
isCardRemoved.value = true
|
|
71
|
+
emit('trash')
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<template>
|
|
76
|
+
<VExpandTransition>
|
|
77
|
+
<!-- TODO remove div when transition work with v-card components: https://github.com/vuetifyjs/vuetify/issues/15111 -->
|
|
78
|
+
<div v-if="!isCardRemoved">
|
|
79
|
+
<VCard v-bind="$attrs">
|
|
80
|
+
<VCardItem>
|
|
81
|
+
<VCardTitle v-if="props.title || $slots.title">
|
|
82
|
+
<!-- 👉 Title slot and prop -->
|
|
83
|
+
<slot name="title">
|
|
84
|
+
{{ props.title }}
|
|
85
|
+
</slot>
|
|
86
|
+
</VCardTitle>
|
|
87
|
+
|
|
88
|
+
<template #append>
|
|
89
|
+
<!-- 👉 Before actions slot -->
|
|
90
|
+
<div>
|
|
91
|
+
<slot name="before-actions" />
|
|
92
|
+
|
|
93
|
+
<!-- SECTION Actions buttons -->
|
|
94
|
+
|
|
95
|
+
<!-- 👉 Collapse button -->
|
|
96
|
+
<IconBtn
|
|
97
|
+
v-if="(!(actionRemove || actionRefresh) || actionCollapsed) && !noActions"
|
|
98
|
+
@click="triggerCollapse"
|
|
99
|
+
>
|
|
100
|
+
<VIcon
|
|
101
|
+
size="20"
|
|
102
|
+
icon="tabler-chevron-up"
|
|
103
|
+
:style="{ transform: isContentCollapsed ? 'rotate(-180deg)' : undefined }"
|
|
104
|
+
style="transition-duration: 0.28s;"
|
|
105
|
+
/>
|
|
106
|
+
</IconBtn>
|
|
107
|
+
|
|
108
|
+
<!-- 👉 Overlay button -->
|
|
109
|
+
<IconBtn
|
|
110
|
+
v-if="(!(actionRemove || actionCollapsed) || actionRefresh) && !noActions"
|
|
111
|
+
@click="triggerRefresh"
|
|
112
|
+
>
|
|
113
|
+
<VIcon
|
|
114
|
+
size="20"
|
|
115
|
+
icon="tabler-refresh"
|
|
116
|
+
/>
|
|
117
|
+
</IconBtn>
|
|
118
|
+
|
|
119
|
+
<!-- 👉 Close button -->
|
|
120
|
+
<IconBtn
|
|
121
|
+
v-if="(!(actionRefresh || actionCollapsed) || actionRemove) && !noActions"
|
|
122
|
+
@click="triggeredRemove"
|
|
123
|
+
>
|
|
124
|
+
<VIcon
|
|
125
|
+
size="20"
|
|
126
|
+
icon="tabler-x"
|
|
127
|
+
/>
|
|
128
|
+
</IconBtn>
|
|
129
|
+
</div>
|
|
130
|
+
<!-- !SECTION -->
|
|
131
|
+
</template>
|
|
132
|
+
</VCardItem>
|
|
133
|
+
|
|
134
|
+
<!-- 👉 card content -->
|
|
135
|
+
<VExpandTransition>
|
|
136
|
+
<div
|
|
137
|
+
v-show="!isContentCollapsed"
|
|
138
|
+
class="v-card-content"
|
|
139
|
+
>
|
|
140
|
+
<slot />
|
|
141
|
+
</div>
|
|
142
|
+
</VExpandTransition>
|
|
143
|
+
|
|
144
|
+
<!-- 👉 Overlay -->
|
|
145
|
+
<VOverlay
|
|
146
|
+
v-model="$loading"
|
|
147
|
+
contained
|
|
148
|
+
persistent
|
|
149
|
+
scroll-strategy="none"
|
|
150
|
+
class="align-center justify-center"
|
|
151
|
+
>
|
|
152
|
+
<VProgressCircular indeterminate />
|
|
153
|
+
</VOverlay>
|
|
154
|
+
</VCard>
|
|
155
|
+
</div>
|
|
156
|
+
</VExpandTransition>
|
|
157
|
+
</template>
|
|
158
|
+
|
|
159
|
+
<style lang="scss">
|
|
160
|
+
.v-card-item {
|
|
161
|
+
+.v-card-content {
|
|
162
|
+
.v-card-text:first-child {
|
|
163
|
+
padding-block-start: 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
</style>
|