@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
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
confirmationQuestion: string
|
|
4
|
+
isDialogVisible: boolean
|
|
5
|
+
confirmTitle?: string
|
|
6
|
+
confirmMsg?: string
|
|
7
|
+
cancelTitle?: string
|
|
8
|
+
cancelMsg?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface Emit {
|
|
12
|
+
(e: 'update:isDialogVisible', value: boolean): void
|
|
13
|
+
(e: 'confirm', value: boolean): void
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const props = defineProps<Props>()
|
|
17
|
+
|
|
18
|
+
const emit = defineEmits<Emit>()
|
|
19
|
+
|
|
20
|
+
const confirmed = ref(false)
|
|
21
|
+
const cancelled = ref(false)
|
|
22
|
+
|
|
23
|
+
const updateModelValue = (val: boolean) => {
|
|
24
|
+
emit('update:isDialogVisible', val)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const onConfirmation = () => {
|
|
28
|
+
emit('confirm', true)
|
|
29
|
+
updateModelValue(false)
|
|
30
|
+
confirmed.value = true
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const onCancel = () => {
|
|
34
|
+
emit('confirm', false)
|
|
35
|
+
emit('update:isDialogVisible', false)
|
|
36
|
+
cancelled.value = true
|
|
37
|
+
}
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<!-- 👉 Confirm Dialog -->
|
|
42
|
+
<VDialog
|
|
43
|
+
max-width="500"
|
|
44
|
+
:model-value="props.isDialogVisible"
|
|
45
|
+
@update:model-value="updateModelValue"
|
|
46
|
+
>
|
|
47
|
+
<VCard class="text-center px-10 py-6">
|
|
48
|
+
<VCardText>
|
|
49
|
+
<VBtn
|
|
50
|
+
icon
|
|
51
|
+
variant="outlined"
|
|
52
|
+
color="warning"
|
|
53
|
+
class="my-4"
|
|
54
|
+
style=" block-size: 88px;inline-size: 88px; pointer-events: none;"
|
|
55
|
+
>
|
|
56
|
+
<span class="text-5xl">!</span>
|
|
57
|
+
</VBtn>
|
|
58
|
+
|
|
59
|
+
<h6 class="text-lg font-weight-medium">
|
|
60
|
+
{{ props.confirmationQuestion }}
|
|
61
|
+
</h6>
|
|
62
|
+
</VCardText>
|
|
63
|
+
|
|
64
|
+
<VCardText class="d-flex align-center justify-center gap-2">
|
|
65
|
+
<VBtn
|
|
66
|
+
variant="elevated"
|
|
67
|
+
@click="onConfirmation"
|
|
68
|
+
>
|
|
69
|
+
{{ $t('common.confirm') }}
|
|
70
|
+
</VBtn>
|
|
71
|
+
|
|
72
|
+
<VBtn
|
|
73
|
+
color="secondary"
|
|
74
|
+
variant="tonal"
|
|
75
|
+
@click="onCancel"
|
|
76
|
+
>
|
|
77
|
+
{{ $t('common.cancel') }}
|
|
78
|
+
</VBtn>
|
|
79
|
+
</VCardText>
|
|
80
|
+
</VCard>
|
|
81
|
+
</VDialog>
|
|
82
|
+
|
|
83
|
+
<!-- Unsubscribed -->
|
|
84
|
+
<!--
|
|
85
|
+
<VDialog
|
|
86
|
+
v-model="unsubscribed"
|
|
87
|
+
max-width="500"
|
|
88
|
+
>
|
|
89
|
+
<VCard>
|
|
90
|
+
<VCardText class="text-center px-10 py-6">
|
|
91
|
+
<VBtn
|
|
92
|
+
icon
|
|
93
|
+
variant="outlined"
|
|
94
|
+
color="success"
|
|
95
|
+
class="my-4"
|
|
96
|
+
style=" block-size: 88px;inline-size: 88px; pointer-events: none;"
|
|
97
|
+
>
|
|
98
|
+
<VIcon
|
|
99
|
+
icon="tabler-check"
|
|
100
|
+
size="38"
|
|
101
|
+
/>
|
|
102
|
+
</VBtn>
|
|
103
|
+
|
|
104
|
+
<h1 class="text-h4 mb-4">
|
|
105
|
+
{{ props.confirmTitle }}
|
|
106
|
+
</h1>
|
|
107
|
+
|
|
108
|
+
<p>{{ props.confirmMsg }}</p>
|
|
109
|
+
|
|
110
|
+
<VBtn
|
|
111
|
+
color="success"
|
|
112
|
+
@click="unsubscribed = false"
|
|
113
|
+
>
|
|
114
|
+
{{ $t('common.ok') }}
|
|
115
|
+
</VBtn>
|
|
116
|
+
</VCardText>
|
|
117
|
+
</VCard>
|
|
118
|
+
</VDialog>
|
|
119
|
+
-->
|
|
120
|
+
|
|
121
|
+
<!-- Cancelled -->
|
|
122
|
+
<!--
|
|
123
|
+
<VDialog
|
|
124
|
+
v-model="cancelled"
|
|
125
|
+
max-width="500"
|
|
126
|
+
>
|
|
127
|
+
<VCard>
|
|
128
|
+
<VCardText class="text-center px-10 py-6">
|
|
129
|
+
<VBtn
|
|
130
|
+
icon
|
|
131
|
+
variant="outlined"
|
|
132
|
+
color="error"
|
|
133
|
+
class="my-4"
|
|
134
|
+
style=" block-size: 88px;inline-size: 88px; pointer-events: none;"
|
|
135
|
+
>
|
|
136
|
+
<span class="text-5xl font-weight-light">X</span>
|
|
137
|
+
</VBtn>
|
|
138
|
+
|
|
139
|
+
<h1 class="text-h4 mb-4">
|
|
140
|
+
{{ props.cancelTitle }}
|
|
141
|
+
</h1>
|
|
142
|
+
|
|
143
|
+
<p>{{ props.cancelMsg }}</p>
|
|
144
|
+
|
|
145
|
+
<VBtn
|
|
146
|
+
color="success"
|
|
147
|
+
@click="cancelled = false"
|
|
148
|
+
>
|
|
149
|
+
{{ $t('common.ok') }}
|
|
150
|
+
</VBtn>
|
|
151
|
+
</VCardText>
|
|
152
|
+
</VCard>
|
|
153
|
+
</VDialog>
|
|
154
|
+
-->
|
|
155
|
+
</template>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { HorizontalNavGroup, HorizontalNavLink } from '@layouts/components'
|
|
3
|
+
import type { HorizontalNavItems, NavGroup, NavLink } from '@layouts/types'
|
|
4
|
+
|
|
5
|
+
defineProps<{
|
|
6
|
+
navItems: HorizontalNavItems
|
|
7
|
+
}>()
|
|
8
|
+
|
|
9
|
+
const resolveNavItemComponent = (item: NavLink | NavGroup) => {
|
|
10
|
+
if ('children' in item)
|
|
11
|
+
return HorizontalNavGroup
|
|
12
|
+
|
|
13
|
+
return HorizontalNavLink
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<ul class="nav-items">
|
|
19
|
+
<Component
|
|
20
|
+
:is="resolveNavItemComponent(item)"
|
|
21
|
+
v-for="(item, index) in navItems"
|
|
22
|
+
:key="index"
|
|
23
|
+
:item="item"
|
|
24
|
+
/>
|
|
25
|
+
</ul>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<style lang="scss">
|
|
29
|
+
.layout-wrapper.layout-nav-type-horizontal {
|
|
30
|
+
.nav-items {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { layoutConfig } from '@layouts'
|
|
3
|
+
import { HorizontalNavLink, HorizontalNavPopper } from '@layouts/components'
|
|
4
|
+
import { canViewNavMenuGroup } from '@layouts/plugins/casl'
|
|
5
|
+
import { useLayoutConfigStore } from '@layouts/stores/config'
|
|
6
|
+
import type { NavGroup } from '@layouts/types'
|
|
7
|
+
import { getDynamicI18nProps, isNavGroupActive } from '@layouts/utils'
|
|
8
|
+
|
|
9
|
+
interface Props {
|
|
10
|
+
item: NavGroup
|
|
11
|
+
childrenAtEnd?: boolean
|
|
12
|
+
|
|
13
|
+
// ℹ️ We haven't added this prop in vertical nav because we don't need such differentiation in vertical nav for styling
|
|
14
|
+
isSubItem?: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
defineOptions({
|
|
18
|
+
name: 'HorizontalNavGroup',
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
22
|
+
childrenAtEnd: false,
|
|
23
|
+
isSubItem: false,
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
const route = useRoute()
|
|
27
|
+
const router = useRouter()
|
|
28
|
+
const configStore = useLayoutConfigStore()
|
|
29
|
+
|
|
30
|
+
const isGroupActive = ref(false)
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
Watch for route changes, more specifically route path. Do note that this won't trigger if route's query is updated.
|
|
34
|
+
|
|
35
|
+
updates isActive & isOpen based on active state of group.
|
|
36
|
+
*/
|
|
37
|
+
watch(() => route.path, () => {
|
|
38
|
+
const isActive = isNavGroupActive(props.item.children, router)
|
|
39
|
+
|
|
40
|
+
isGroupActive.value = isActive
|
|
41
|
+
}, { immediate: true })
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<HorizontalNavPopper
|
|
46
|
+
v-if="canViewNavMenuGroup(item)"
|
|
47
|
+
:is-rtl="configStore.isAppRTL"
|
|
48
|
+
class="nav-group"
|
|
49
|
+
tag="li"
|
|
50
|
+
content-container-tag="ul"
|
|
51
|
+
:class="[{
|
|
52
|
+
'active': isGroupActive,
|
|
53
|
+
'children-at-end': childrenAtEnd,
|
|
54
|
+
'sub-item': isSubItem,
|
|
55
|
+
'disabled': item.disable,
|
|
56
|
+
}]"
|
|
57
|
+
:popper-inline-end="childrenAtEnd"
|
|
58
|
+
>
|
|
59
|
+
<div class="nav-group-label">
|
|
60
|
+
<Component
|
|
61
|
+
:is="layoutConfig.app.iconRenderer || 'div'"
|
|
62
|
+
class="nav-item-icon"
|
|
63
|
+
v-bind="item.icon || layoutConfig.verticalNav.defaultNavItemIconProps"
|
|
64
|
+
/>
|
|
65
|
+
<Component
|
|
66
|
+
:is="layoutConfig.app.i18n.enable ? 'i18n-t' : 'span'"
|
|
67
|
+
v-bind="getDynamicI18nProps(item.title, 'span')"
|
|
68
|
+
class="nav-item-title"
|
|
69
|
+
>
|
|
70
|
+
{{ item.title }}
|
|
71
|
+
</Component>
|
|
72
|
+
<Component
|
|
73
|
+
v-bind="layoutConfig.icons.chevronDown"
|
|
74
|
+
:is="layoutConfig.app.iconRenderer || 'div'"
|
|
75
|
+
class="nav-group-arrow"
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<template #content>
|
|
80
|
+
<Component
|
|
81
|
+
:is="'children' in child ? 'HorizontalNavGroup' : HorizontalNavLink"
|
|
82
|
+
v-for="child in item.children"
|
|
83
|
+
:key="child.title"
|
|
84
|
+
:item="child"
|
|
85
|
+
children-at-end
|
|
86
|
+
is-sub-item
|
|
87
|
+
/>
|
|
88
|
+
</template>
|
|
89
|
+
</HorizontalNavPopper>
|
|
90
|
+
</template>
|
|
91
|
+
|
|
92
|
+
<style lang="scss">
|
|
93
|
+
.layout-horizontal-nav {
|
|
94
|
+
.nav-group {
|
|
95
|
+
.nav-group-label {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.popper-content {
|
|
102
|
+
z-index: 1;
|
|
103
|
+
|
|
104
|
+
> div {
|
|
105
|
+
overflow: hidden auto;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
</style>
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { HorizontalNav } from '@layouts/components'
|
|
3
|
+
import type { HorizontalNavItems } from '@layouts/types'
|
|
4
|
+
|
|
5
|
+
// ℹ️ Using import from `@layouts` causing build to hangup
|
|
6
|
+
// import { useLayouts } from '@layouts'
|
|
7
|
+
import { useLayoutConfigStore } from '@layouts/stores/config'
|
|
8
|
+
|
|
9
|
+
defineProps<{
|
|
10
|
+
navItems: HorizontalNavItems
|
|
11
|
+
}>()
|
|
12
|
+
|
|
13
|
+
const configStore = useLayoutConfigStore()
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<div
|
|
18
|
+
class="layout-wrapper"
|
|
19
|
+
:class="configStore._layoutClasses"
|
|
20
|
+
>
|
|
21
|
+
<div
|
|
22
|
+
class="layout-navbar-and-nav-container"
|
|
23
|
+
:class="configStore.isNavbarBlurEnabled && 'header-blur'"
|
|
24
|
+
>
|
|
25
|
+
<!-- 👉 Navbar -->
|
|
26
|
+
<div class="layout-navbar">
|
|
27
|
+
<div class="navbar-content-container">
|
|
28
|
+
<slot name="navbar" />
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<!-- 👉 Navigation -->
|
|
32
|
+
<div class="layout-horizontal-nav">
|
|
33
|
+
<div class="horizontal-nav-content-container">
|
|
34
|
+
<HorizontalNav :nav-items="navItems" />
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<main class="layout-page-content">
|
|
40
|
+
<slot />
|
|
41
|
+
</main>
|
|
42
|
+
|
|
43
|
+
<!-- 👉 Footer -->
|
|
44
|
+
<footer class="layout-footer">
|
|
45
|
+
<div class="footer-content-container">
|
|
46
|
+
<slot name="footer" />
|
|
47
|
+
</div>
|
|
48
|
+
</footer>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<style lang="scss">
|
|
53
|
+
@use "@configured-variables" as variables;
|
|
54
|
+
@use "@layouts/styles/placeholders";
|
|
55
|
+
@use "@layouts/styles/mixins";
|
|
56
|
+
|
|
57
|
+
.layout-wrapper {
|
|
58
|
+
&.layout-nav-type-horizontal {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
|
|
62
|
+
// // TODO(v2): Check why we need height in vertical nav & min-height in horizontal nav
|
|
63
|
+
// min-height: 100%;
|
|
64
|
+
min-block-size: 100dvh;
|
|
65
|
+
|
|
66
|
+
.layout-navbar-and-nav-container {
|
|
67
|
+
z-index: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.layout-navbar {
|
|
71
|
+
z-index: variables.$layout-horizontal-nav-layout-navbar-z-index;
|
|
72
|
+
block-size: variables.$layout-horizontal-nav-navbar-height;
|
|
73
|
+
|
|
74
|
+
// ℹ️ For now we are not independently managing navbar and horizontal nav so we won't use below style to avoid conflicting with combo style of navbar and horizontal nav
|
|
75
|
+
// If we add independent style of navbar & horizontal nav then we have to add :not for avoiding conflict with combo styles
|
|
76
|
+
// .layout-navbar-sticky & {
|
|
77
|
+
// @extend %layout-navbar-sticky;
|
|
78
|
+
// }
|
|
79
|
+
|
|
80
|
+
// ℹ️ For now we are not independently managing navbar and horizontal nav so we won't use below style to avoid conflicting with combo style of navbar and horizontal nav
|
|
81
|
+
// If we add independent style of navbar & horizontal nav then we have to add :not for avoiding conflict with combo styles
|
|
82
|
+
// .layout-navbar-hidden & {
|
|
83
|
+
// @extend %layout-navbar-hidden;
|
|
84
|
+
// }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// 👉 Navbar
|
|
88
|
+
.navbar-content-container {
|
|
89
|
+
@include mixins.boxed-content;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// 👉 Content height fixed
|
|
93
|
+
&.layout-content-height-fixed {
|
|
94
|
+
max-block-size: 100dvh;
|
|
95
|
+
|
|
96
|
+
.layout-page-content {
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
|
|
99
|
+
> :first-child {
|
|
100
|
+
max-block-size: 100%;
|
|
101
|
+
overflow-y: auto;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// 👉 Footer
|
|
107
|
+
// Boxed content
|
|
108
|
+
.layout-footer {
|
|
109
|
+
.footer-content-container {
|
|
110
|
+
@include mixins.boxed-content;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// If both navbar & horizontal nav sticky
|
|
116
|
+
&.layout-navbar-sticky.horizontal-nav-sticky {
|
|
117
|
+
.layout-navbar-and-nav-container {
|
|
118
|
+
position: sticky;
|
|
119
|
+
inset-block-start: 0;
|
|
120
|
+
will-change: transform;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.layout-navbar-hidden.horizontal-nav-hidden {
|
|
125
|
+
.layout-navbar-and-nav-container {
|
|
126
|
+
display: none;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// 👉 Horizontal nav nav
|
|
132
|
+
.layout-horizontal-nav {
|
|
133
|
+
z-index: variables.$layout-horizontal-nav-z-index;
|
|
134
|
+
|
|
135
|
+
// .horizontal-nav-sticky & {
|
|
136
|
+
// width: 100%;
|
|
137
|
+
// will-change: transform;
|
|
138
|
+
// position: sticky;
|
|
139
|
+
// top: 0;
|
|
140
|
+
// }
|
|
141
|
+
|
|
142
|
+
// .horizontal-nav-hidden & {
|
|
143
|
+
// display: none;
|
|
144
|
+
// }
|
|
145
|
+
|
|
146
|
+
.horizontal-nav-content-container {
|
|
147
|
+
@include mixins.boxed-content(true);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
</style>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { layoutConfig } from '@layouts'
|
|
3
|
+
import { can } from '@layouts/plugins/casl'
|
|
4
|
+
import type { NavLink } from '@layouts/types'
|
|
5
|
+
import { getComputedNavLinkToProp, getDynamicI18nProps, isNavLinkActive } from '@layouts/utils'
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
item: NavLink
|
|
9
|
+
|
|
10
|
+
// ℹ️ We haven't added this prop in vertical nav because we don't need such differentiation in vertical nav for styling
|
|
11
|
+
isSubItem?: boolean
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
+
isSubItem: false,
|
|
16
|
+
})
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<li
|
|
21
|
+
v-if="can(item.action, item.subject)"
|
|
22
|
+
class="nav-link"
|
|
23
|
+
:class="[{
|
|
24
|
+
'sub-item': props.isSubItem,
|
|
25
|
+
'disabled': item.disable,
|
|
26
|
+
}]"
|
|
27
|
+
>
|
|
28
|
+
<Component
|
|
29
|
+
:is="item.to ? 'RouterLink' : 'a'"
|
|
30
|
+
v-bind="getComputedNavLinkToProp(item)"
|
|
31
|
+
:class="{ 'router-link-active router-link-exact-active': isNavLinkActive(item, $router) }"
|
|
32
|
+
>
|
|
33
|
+
<Component
|
|
34
|
+
:is="layoutConfig.app.iconRenderer || 'div'"
|
|
35
|
+
class="nav-item-icon"
|
|
36
|
+
v-bind="item.icon || layoutConfig.verticalNav.defaultNavItemIconProps"
|
|
37
|
+
/>
|
|
38
|
+
<Component
|
|
39
|
+
:is="layoutConfig.app.i18n.enable ? 'i18n-t' : 'span'"
|
|
40
|
+
class="nav-item-title"
|
|
41
|
+
v-bind="getDynamicI18nProps(item.title, 'span')"
|
|
42
|
+
>
|
|
43
|
+
{{ item.title }}
|
|
44
|
+
</Component>
|
|
45
|
+
</Component>
|
|
46
|
+
</li>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<style lang="scss">
|
|
50
|
+
.layout-horizontal-nav {
|
|
51
|
+
.nav-link a {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</style>
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { ReferenceElement } from '@floating-ui/dom'
|
|
3
|
+
import { computePosition, flip, offset, shift } from '@floating-ui/dom'
|
|
4
|
+
import { useLayoutConfigStore } from '@layouts/stores/config'
|
|
5
|
+
import { themeConfig } from '@themeConfig'
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
popperInlineEnd?: boolean
|
|
9
|
+
tag?: string
|
|
10
|
+
contentContainerTag?: string
|
|
11
|
+
isRtl?: boolean
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
+
popperInlineEnd: false,
|
|
16
|
+
tag: 'div',
|
|
17
|
+
contentContainerTag: 'div',
|
|
18
|
+
isRTL: false,
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const configStore = useLayoutConfigStore()
|
|
22
|
+
const refPopperContainer = ref<ReferenceElement>()
|
|
23
|
+
const refPopper = ref<HTMLElement>()
|
|
24
|
+
|
|
25
|
+
const popperContentStyles = ref({
|
|
26
|
+
left: '0px',
|
|
27
|
+
top: '0px',
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
const updatePopper = async () => {
|
|
31
|
+
if (refPopperContainer.value !== undefined && refPopper.value !== undefined) {
|
|
32
|
+
const { x, y } = await computePosition(refPopperContainer.value,
|
|
33
|
+
refPopper.value, {
|
|
34
|
+
placement: props.popperInlineEnd ? (props.isRtl ? 'left-start' : 'right-start') : 'bottom-start',
|
|
35
|
+
middleware: [
|
|
36
|
+
...(configStore.horizontalNavPopoverOffset ? [offset(configStore.horizontalNavPopoverOffset)] : []),
|
|
37
|
+
flip({ boundary: document.querySelector('body')!, padding: { bottom: 16 } }),
|
|
38
|
+
|
|
39
|
+
shift({ boundary: document.querySelector('body')!, padding: { bottom: 16 } }),
|
|
40
|
+
],
|
|
41
|
+
|
|
42
|
+
/*
|
|
43
|
+
ℹ️ Why we are not using fixed positioning?
|
|
44
|
+
|
|
45
|
+
`position: fixed` doesn't work as expected when some CSS properties like `transform` is applied on its parent element.
|
|
46
|
+
Docs: https://developer.mozilla.org/en-US/docs/Web/CSS/position#values <= See `fixed` value description
|
|
47
|
+
|
|
48
|
+
Hence, when we use transitions where transition apply `transform` on its parent element, fixed positioning will not work.
|
|
49
|
+
(Popper content moves away from the element when parent element transition)
|
|
50
|
+
|
|
51
|
+
To avoid this, we use `position: absolute` instead of `position: fixed`.
|
|
52
|
+
|
|
53
|
+
NOTE: This issue starts from third level children (Top Level > Sub item > Sub item).
|
|
54
|
+
*/
|
|
55
|
+
// strategy: 'fixed',
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
popperContentStyles.value.left = `${x}px`
|
|
59
|
+
popperContentStyles.value.top = `${y}px`
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
💡 Only add scroll event listener for updating position once horizontal nav is made static.
|
|
65
|
+
We don't want to update position every time user scrolls when horizontal nav is sticky
|
|
66
|
+
*/
|
|
67
|
+
until(() => configStore.horizontalNavType)
|
|
68
|
+
.toMatch(type => type === 'static')
|
|
69
|
+
.then(() => { useEventListener('scroll', updatePopper) })
|
|
70
|
+
|
|
71
|
+
const isContentShown = ref(false)
|
|
72
|
+
|
|
73
|
+
const showContent = () => {
|
|
74
|
+
isContentShown.value = true
|
|
75
|
+
updatePopper()
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const hideContent = () => {
|
|
79
|
+
isContentShown.value = false
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
onMounted(updatePopper)
|
|
83
|
+
|
|
84
|
+
// ℹ️ Recalculate popper position when it's triggerer changes its position
|
|
85
|
+
watch(
|
|
86
|
+
[
|
|
87
|
+
() => configStore.isAppRTL,
|
|
88
|
+
() => configStore.appContentWidth,
|
|
89
|
+
],
|
|
90
|
+
updatePopper,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
// Watch for route changes and close popper content if route is changed
|
|
94
|
+
const route = useRoute()
|
|
95
|
+
|
|
96
|
+
watch(() => route.fullPath, hideContent)
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<template>
|
|
100
|
+
<div
|
|
101
|
+
class="nav-popper"
|
|
102
|
+
:class="[{
|
|
103
|
+
'popper-inline-end': popperInlineEnd,
|
|
104
|
+
'show-content': isContentShown,
|
|
105
|
+
}]"
|
|
106
|
+
>
|
|
107
|
+
<div
|
|
108
|
+
ref="refPopperContainer"
|
|
109
|
+
class="popper-triggerer"
|
|
110
|
+
@mouseenter="showContent"
|
|
111
|
+
@mouseleave="hideContent"
|
|
112
|
+
>
|
|
113
|
+
<slot />
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<!-- SECTION Popper Content -->
|
|
117
|
+
<!-- 👉 Without transition -->
|
|
118
|
+
<template v-if="!themeConfig.horizontalNav.transition">
|
|
119
|
+
<div
|
|
120
|
+
ref="refPopper"
|
|
121
|
+
class="popper-content"
|
|
122
|
+
:style="popperContentStyles"
|
|
123
|
+
@mouseenter="showContent"
|
|
124
|
+
@mouseleave="hideContent"
|
|
125
|
+
>
|
|
126
|
+
<div>
|
|
127
|
+
<slot name="content" />
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</template>
|
|
131
|
+
|
|
132
|
+
<!-- 👉 CSS Transition -->
|
|
133
|
+
<template v-else-if="typeof themeConfig.horizontalNav.transition === 'string'">
|
|
134
|
+
<Transition :name="themeConfig.horizontalNav.transition">
|
|
135
|
+
<div
|
|
136
|
+
v-show="isContentShown"
|
|
137
|
+
ref="refPopper"
|
|
138
|
+
class="popper-content"
|
|
139
|
+
:style="popperContentStyles"
|
|
140
|
+
@mouseenter="showContent"
|
|
141
|
+
@mouseleave="hideContent"
|
|
142
|
+
>
|
|
143
|
+
<div>
|
|
144
|
+
<slot name="content" />
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</Transition>
|
|
148
|
+
</template>
|
|
149
|
+
|
|
150
|
+
<!-- 👉 Transition Component -->
|
|
151
|
+
<template v-else>
|
|
152
|
+
<Component :is="themeConfig.horizontalNav.transition">
|
|
153
|
+
<div
|
|
154
|
+
v-show="isContentShown"
|
|
155
|
+
ref="refPopper"
|
|
156
|
+
class="popper-content"
|
|
157
|
+
:style="popperContentStyles"
|
|
158
|
+
@mouseenter="showContent"
|
|
159
|
+
@mouseleave="hideContent"
|
|
160
|
+
>
|
|
161
|
+
<div>
|
|
162
|
+
<slot name="content" />
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</Component>
|
|
166
|
+
</template>
|
|
167
|
+
<!-- !SECTION -->
|
|
168
|
+
</div>
|
|
169
|
+
</template>
|
|
170
|
+
|
|
171
|
+
<style lang="scss">
|
|
172
|
+
.popper-content {
|
|
173
|
+
position: absolute;
|
|
174
|
+
}
|
|
175
|
+
</style>
|