diff --git a/README.md b/README.md index 2de17e181..c15c57a57 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,10 @@ ## Настройка -Убедитесь в том, что установили зависимости +Make sure to enable corepack and install the dependencies: ```bash +corepack enable pnpm install ``` diff --git a/app.config.ts b/app/app.config.ts similarity index 100% rename from app.config.ts rename to app/app.config.ts diff --git a/app.vue b/app/app.vue similarity index 90% rename from app.vue rename to app/app.vue index 608b24e44..f8420798e 100644 --- a/app.vue +++ b/app/app.vue @@ -66,17 +66,17 @@ onMounted(() => {
+ + diff --git a/components/AppBanner.vue b/app/components/AppBanner.vue similarity index 100% rename from components/AppBanner.vue rename to app/components/AppBanner.vue diff --git a/components/AppFooter.vue b/app/components/AppFooter.vue similarity index 100% rename from components/AppFooter.vue rename to app/components/AppFooter.vue diff --git a/components/AppHeader.vue b/app/components/AppHeader.vue similarity index 100% rename from components/AppHeader.vue rename to app/components/AppHeader.vue diff --git a/components/EmptyCard.vue b/app/components/EmptyCard.vue similarity index 100% rename from components/EmptyCard.vue rename to app/components/EmptyCard.vue diff --git a/components/HeroBackground.vue b/app/components/HeroBackground.vue similarity index 100% rename from components/HeroBackground.vue rename to app/components/HeroBackground.vue diff --git a/components/NuxtLogo.vue b/app/components/NuxtLogo.vue similarity index 100% rename from components/NuxtLogo.vue rename to app/components/NuxtLogo.vue diff --git a/components/OgImage/Docs.vue b/app/components/OgImage/Docs.vue similarity index 100% rename from components/OgImage/Docs.vue rename to app/components/OgImage/Docs.vue diff --git a/components/UInputCopy.vue b/app/components/UInputCopy.vue similarity index 100% rename from components/UInputCopy.vue rename to app/components/UInputCopy.vue diff --git a/components/ads/Ads.vue b/app/components/ads/Ads.vue similarity index 100% rename from components/ads/Ads.vue rename to app/components/ads/Ads.vue diff --git a/components/ads/AdsCarbon.vue b/app/components/ads/AdsCarbon.vue similarity index 100% rename from components/ads/AdsCarbon.vue rename to app/components/ads/AdsCarbon.vue diff --git a/components/ads/AdsFallback.vue b/app/components/ads/AdsFallback.vue similarity index 100% rename from components/ads/AdsFallback.vue rename to app/components/ads/AdsFallback.vue diff --git a/components/ads/AdsUIPro.vue b/app/components/ads/AdsUIPro.vue similarity index 100% rename from components/ads/AdsUIPro.vue rename to app/components/ads/AdsUIPro.vue diff --git a/components/brands/backmarket.vue b/app/components/brands/backmarket.vue similarity index 100% rename from components/brands/backmarket.vue rename to app/components/brands/backmarket.vue diff --git a/components/brands/ecosia.vue b/app/components/brands/ecosia.vue similarity index 100% rename from components/brands/ecosia.vue rename to app/components/brands/ecosia.vue diff --git a/components/brands/fedora.vue b/app/components/brands/fedora.vue similarity index 100% rename from components/brands/fedora.vue rename to app/components/brands/fedora.vue diff --git a/components/brands/garmin.vue b/app/components/brands/garmin.vue similarity index 100% rename from components/brands/garmin.vue rename to app/components/brands/garmin.vue diff --git a/components/brands/github.vue b/app/components/brands/github.vue similarity index 100% rename from components/brands/github.vue rename to app/components/brands/github.vue diff --git a/components/brands/gitlab.vue b/app/components/brands/gitlab.vue similarity index 100% rename from components/brands/gitlab.vue rename to app/components/brands/gitlab.vue diff --git a/components/brands/google.vue b/app/components/brands/google.vue similarity index 100% rename from components/brands/google.vue rename to app/components/brands/google.vue diff --git a/components/brands/louisvuitton.vue b/app/components/brands/louisvuitton.vue similarity index 100% rename from components/brands/louisvuitton.vue rename to app/components/brands/louisvuitton.vue diff --git a/components/brands/mcdonalds.vue b/app/components/brands/mcdonalds.vue similarity index 100% rename from components/brands/mcdonalds.vue rename to app/components/brands/mcdonalds.vue diff --git a/components/brands/nasa.vue b/app/components/brands/nasa.vue similarity index 100% rename from components/brands/nasa.vue rename to app/components/brands/nasa.vue diff --git a/components/brands/openai.vue b/app/components/brands/openai.vue similarity index 100% rename from components/brands/openai.vue rename to app/components/brands/openai.vue diff --git a/components/brands/unilever.vue b/app/components/brands/unilever.vue similarity index 100% rename from components/brands/unilever.vue rename to app/components/brands/unilever.vue diff --git a/components/brands/upwork.vue b/app/components/brands/upwork.vue similarity index 100% rename from components/brands/upwork.vue rename to app/components/brands/upwork.vue diff --git a/components/content/Alert.vue b/app/components/content/Alert.vue similarity index 100% rename from components/content/Alert.vue rename to app/components/content/Alert.vue diff --git a/components/content/ArticleVideo.vue b/app/components/content/ArticleVideo.vue similarity index 100% rename from components/content/ArticleVideo.vue rename to app/components/content/ArticleVideo.vue diff --git a/components/content/Caution.vue b/app/components/content/Caution.vue similarity index 100% rename from components/content/Caution.vue rename to app/components/content/Caution.vue diff --git a/components/content/Important.vue b/app/components/content/Important.vue similarity index 100% rename from components/content/Important.vue rename to app/components/content/Important.vue diff --git a/components/content/LinkExample.vue b/app/components/content/LinkExample.vue similarity index 100% rename from components/content/LinkExample.vue rename to app/components/content/LinkExample.vue diff --git a/components/content/Note.vue b/app/components/content/Note.vue similarity index 100% rename from components/content/Note.vue rename to app/components/content/Note.vue diff --git a/components/content/PackageManagers.vue b/app/components/content/PackageManagers.vue similarity index 100% rename from components/content/PackageManagers.vue rename to app/components/content/PackageManagers.vue diff --git a/components/content/ReadMore.vue b/app/components/content/ReadMore.vue similarity index 100% rename from components/content/ReadMore.vue rename to app/components/content/ReadMore.vue diff --git a/components/content/Sandbox.vue b/app/components/content/Sandbox.vue similarity index 100% rename from components/content/Sandbox.vue rename to app/components/content/Sandbox.vue diff --git a/components/content/Tip.vue b/app/components/content/Tip.vue similarity index 100% rename from components/content/Tip.vue rename to app/components/content/Tip.vue diff --git a/components/content/Warning.vue b/app/components/content/Warning.vue similarity index 100% rename from components/content/Warning.vue rename to app/components/content/Warning.vue diff --git a/components/content/design-kit/DesignKitColorCard.vue b/app/components/content/design-kit/DesignKitColorCard.vue similarity index 100% rename from components/content/design-kit/DesignKitColorCard.vue rename to app/components/content/design-kit/DesignKitColorCard.vue diff --git a/components/content/design-kit/DesignKitImageCard.vue b/app/components/content/design-kit/DesignKitImageCard.vue similarity index 100% rename from components/content/design-kit/DesignKitImageCard.vue rename to app/components/content/design-kit/DesignKitImageCard.vue diff --git a/components/content/enterprise/support/EnterpriseSupportClientCard.vue b/app/components/content/enterprise/support/EnterpriseSupportClientCard.vue similarity index 100% rename from components/content/enterprise/support/EnterpriseSupportClientCard.vue rename to app/components/content/enterprise/support/EnterpriseSupportClientCard.vue diff --git a/components/content/enterprise/support/EnterpriseSupportExpertiseCircle.vue b/app/components/content/enterprise/support/EnterpriseSupportExpertiseCircle.vue similarity index 100% rename from components/content/enterprise/support/EnterpriseSupportExpertiseCircle.vue rename to app/components/content/enterprise/support/EnterpriseSupportExpertiseCircle.vue diff --git a/components/content/enterprise/support/EnterpriseSupportFormSection.vue b/app/components/content/enterprise/support/EnterpriseSupportFormSection.vue similarity index 100% rename from components/content/enterprise/support/EnterpriseSupportFormSection.vue rename to app/components/content/enterprise/support/EnterpriseSupportFormSection.vue diff --git a/components/content/enterprise/support/EnterpriseSupportListItem.vue b/app/components/content/enterprise/support/EnterpriseSupportListItem.vue similarity index 100% rename from components/content/enterprise/support/EnterpriseSupportListItem.vue rename to app/components/content/enterprise/support/EnterpriseSupportListItem.vue diff --git a/components/content/enterprise/support/EnterpriseSupportLogoCarousel.vue b/app/components/content/enterprise/support/EnterpriseSupportLogoCarousel.vue similarity index 100% rename from components/content/enterprise/support/EnterpriseSupportLogoCarousel.vue rename to app/components/content/enterprise/support/EnterpriseSupportLogoCarousel.vue diff --git a/components/content/integrations/Amplify.vue b/app/components/content/integrations/Amplify.vue similarity index 100% rename from components/content/integrations/Amplify.vue rename to app/components/content/integrations/Amplify.vue diff --git a/components/content/integrations/Netlify.vue b/app/components/content/integrations/Netlify.vue similarity index 100% rename from components/content/integrations/Netlify.vue rename to app/components/content/integrations/Netlify.vue diff --git a/components/content/integrations/NuxtHub.vue b/app/components/content/integrations/NuxtHub.vue similarity index 100% rename from components/content/integrations/NuxtHub.vue rename to app/components/content/integrations/NuxtHub.vue diff --git a/components/content/integrations/Vercel.vue b/app/components/content/integrations/Vercel.vue similarity index 100% rename from components/content/integrations/Vercel.vue rename to app/components/content/integrations/Vercel.vue diff --git a/components/content/scripts/YoutubeDemo.vue b/app/components/content/scripts/YoutubeDemo.vue similarity index 100% rename from components/content/scripts/YoutubeDemo.vue rename to app/components/content/scripts/YoutubeDemo.vue diff --git a/components/content/starter/CardStarter.vue b/app/components/content/starter/CardStarter.vue similarity index 100% rename from components/content/starter/CardStarter.vue rename to app/components/content/starter/CardStarter.vue diff --git a/components/home/HomeHeroBackground.vue b/app/components/home/HomeHeroBackground.vue similarity index 100% rename from components/home/HomeHeroBackground.vue rename to app/components/home/HomeHeroBackground.vue diff --git a/components/home/HomeSectionContributors.vue b/app/components/home/HomeSectionContributors.vue similarity index 100% rename from components/home/HomeSectionContributors.vue rename to app/components/home/HomeSectionContributors.vue diff --git a/components/home/HomeSectionFeatures.vue b/app/components/home/HomeSectionFeatures.vue similarity index 94% rename from components/home/HomeSectionFeatures.vue rename to app/components/home/HomeSectionFeatures.vue index 6b40ca09d..b86130320 100644 --- a/components/home/HomeSectionFeatures.vue +++ b/app/components/home/HomeSectionFeatures.vue @@ -16,6 +16,7 @@ defineProps<{ :key="index" v-bind="feature" :ui="{ + base: 'overflow-hidden', background: 'dark:bg-gradient-to-b from-gray-700/50 to-gray-900/50', body: { base: 'flex-1', diff --git a/components/home/HomeSectionIntegrations.vue b/app/components/home/HomeSectionIntegrations.vue similarity index 100% rename from components/home/HomeSectionIntegrations.vue rename to app/components/home/HomeSectionIntegrations.vue diff --git a/components/home/HomeSectionTestimonials.vue b/app/components/home/HomeSectionTestimonials.vue similarity index 100% rename from components/home/HomeSectionTestimonials.vue rename to app/components/home/HomeSectionTestimonials.vue diff --git a/components/module/ModuleProseA.vue b/app/components/module/ModuleProseA.vue similarity index 100% rename from components/module/ModuleProseA.vue rename to app/components/module/ModuleProseA.vue diff --git a/components/module/ModuleProseImg.vue b/app/components/module/ModuleProseImg.vue similarity index 100% rename from components/module/ModuleProseImg.vue rename to app/components/module/ModuleProseImg.vue diff --git a/components/newsletter/NewsletterForm.vue b/app/components/newsletter/NewsletterForm.vue similarity index 100% rename from components/newsletter/NewsletterForm.vue rename to app/components/newsletter/NewsletterForm.vue diff --git a/composables/useBlog.ts b/app/composables/useBlog.ts similarity index 100% rename from composables/useBlog.ts rename to app/composables/useBlog.ts diff --git a/composables/useEnterpriseAgencies.ts b/app/composables/useEnterpriseAgencies.ts similarity index 100% rename from composables/useEnterpriseAgencies.ts rename to app/composables/useEnterpriseAgencies.ts diff --git a/composables/useEnterpriseJobs.ts b/app/composables/useEnterpriseJobs.ts similarity index 100% rename from composables/useEnterpriseJobs.ts rename to app/composables/useEnterpriseJobs.ts diff --git a/composables/useFilters.ts b/app/composables/useFilters.ts similarity index 100% rename from composables/useFilters.ts rename to app/composables/useFilters.ts diff --git a/composables/useHostingProviders.ts b/app/composables/useHostingProviders.ts similarity index 100% rename from composables/useHostingProviders.ts rename to app/composables/useHostingProviders.ts diff --git a/composables/useModules.ts b/app/composables/useModules.ts similarity index 100% rename from composables/useModules.ts rename to app/composables/useModules.ts diff --git a/composables/useNavigation.ts b/app/composables/useNavigation.ts similarity index 88% rename from composables/useNavigation.ts rename to app/composables/useNavigation.ts index 7556a8052..c55871f07 100644 --- a/composables/useNavigation.ts +++ b/app/composables/useNavigation.ts @@ -1,6 +1,7 @@ import { createSharedComposable } from '@vueuse/core' const _useNavigation = () => { + const nuxtApp = useNuxtApp() const headerLinks = computed(() => { const route = useRoute() @@ -178,32 +179,58 @@ const _useNavigation = () => { }] }] - const searchLinks = computed(() => [...headerLinks.value.map((link) => { + const searchLinks = computed(() => [ + { + label: 'Ask AI', + icon: 'i-ph-magic-wand', + to: 'javascript:void(0);', + // @ts-expect-error this is not typed + click: () => nuxtApp.$kapa?.openModal() + }, + ...headerLinks.value.map((link) => { // Remove `/docs` and `/enterprise` links from command palette - if (link.search === false) { - return { - label: link.label, - icon: link.icon, - children: link.children + if (link.search === false) { + return { + label: link.label, + icon: link.icon, + children: link.children + } } - } - return link - }).filter(Boolean), { - label: 'Команда', - icon: 'i-ph-users', - to: '/team' - }, { - label: 'Набор для дизайна', - icon: 'i-ph-palette', - to: '/design-kit' - }, { - label: 'Рассылка', - icon: 'i-ph-envelope-simple', - to: '/newsletter' - }]) + return link + }).filter(Boolean), { + label: 'Команда', + icon: 'i-ph-users', + to: '/team' + }, { + label: 'Набор для дизайна', + icon: 'i-ph-palette', + to: '/design-kit' + }, { + label: 'Рассылка', + icon: 'i-ph-envelope-simple', + to: '/newsletter' + }]) const searchGroups = [{ + key: 'ask-ai-search', + label: 'ИИ', + icon: 'i-ph-magic-wand', + search: async (q) => { + if (!q) { + return [] + } + + return [{ + label: `Спросите ИИ о "${q}"`, + icon: 'i-ph-magic-wand', + to: 'javascript:void(0);', + click() { + return nuxtApp.$kapa.openModal(q) + } + }] + } + }, { key: 'modules-search', label: 'Модули', search: async (q) => { diff --git a/composables/useShowcase.ts b/app/composables/useShowcase.ts similarity index 100% rename from composables/useShowcase.ts rename to app/composables/useShowcase.ts diff --git a/composables/useStats.ts b/app/composables/useStats.ts similarity index 100% rename from composables/useStats.ts rename to app/composables/useStats.ts diff --git a/error.vue b/app/error.vue similarity index 100% rename from error.vue rename to app/error.vue diff --git a/pages/blog.vue b/app/pages/blog.vue similarity index 100% rename from pages/blog.vue rename to app/pages/blog.vue diff --git a/pages/blog/[slug].vue b/app/pages/blog/[slug].vue similarity index 100% rename from pages/blog/[slug].vue rename to app/pages/blog/[slug].vue diff --git a/pages/blog/index.vue b/app/pages/blog/index.vue similarity index 100% rename from pages/blog/index.vue rename to app/pages/blog/index.vue diff --git a/pages/deploy.vue b/app/pages/deploy.vue similarity index 100% rename from pages/deploy.vue rename to app/pages/deploy.vue diff --git a/pages/deploy/[slug].vue b/app/pages/deploy/[slug].vue similarity index 100% rename from pages/deploy/[slug].vue rename to app/pages/deploy/[slug].vue diff --git a/pages/deploy/index.vue b/app/pages/deploy/index.vue similarity index 100% rename from pages/deploy/index.vue rename to app/pages/deploy/index.vue diff --git a/pages/design-kit.vue b/app/pages/design-kit.vue similarity index 100% rename from pages/design-kit.vue rename to app/pages/design-kit.vue diff --git a/pages/docs.vue b/app/pages/docs.vue similarity index 100% rename from pages/docs.vue rename to app/pages/docs.vue diff --git a/pages/docs/[...slug].vue b/app/pages/docs/[...slug].vue similarity index 100% rename from pages/docs/[...slug].vue rename to app/pages/docs/[...slug].vue diff --git a/pages/enterprise.vue b/app/pages/enterprise.vue similarity index 100% rename from pages/enterprise.vue rename to app/pages/enterprise.vue diff --git a/pages/enterprise/agencies/[slug].vue b/app/pages/enterprise/agencies/[slug].vue similarity index 100% rename from pages/enterprise/agencies/[slug].vue rename to app/pages/enterprise/agencies/[slug].vue diff --git a/pages/enterprise/agencies/index.vue b/app/pages/enterprise/agencies/index.vue similarity index 100% rename from pages/enterprise/agencies/index.vue rename to app/pages/enterprise/agencies/index.vue diff --git a/pages/enterprise/jobs.vue b/app/pages/enterprise/jobs.vue similarity index 100% rename from pages/enterprise/jobs.vue rename to app/pages/enterprise/jobs.vue diff --git a/pages/enterprise/sponsors.vue b/app/pages/enterprise/sponsors.vue similarity index 100% rename from pages/enterprise/sponsors.vue rename to app/pages/enterprise/sponsors.vue diff --git a/pages/enterprise/support.vue b/app/pages/enterprise/support.vue similarity index 100% rename from pages/enterprise/support.vue rename to app/pages/enterprise/support.vue diff --git a/pages/index.vue b/app/pages/index.vue similarity index 100% rename from pages/index.vue rename to app/pages/index.vue diff --git a/pages/modules.vue b/app/pages/modules.vue similarity index 100% rename from pages/modules.vue rename to app/pages/modules.vue diff --git a/pages/modules/[slug].vue b/app/pages/modules/[slug].vue similarity index 100% rename from pages/modules/[slug].vue rename to app/pages/modules/[slug].vue diff --git a/pages/modules/index.vue b/app/pages/modules/index.vue similarity index 100% rename from pages/modules/index.vue rename to app/pages/modules/index.vue diff --git a/pages/newsletter.vue b/app/pages/newsletter.vue similarity index 100% rename from pages/newsletter.vue rename to app/pages/newsletter.vue diff --git a/pages/showcase.vue b/app/pages/showcase.vue similarity index 100% rename from pages/showcase.vue rename to app/pages/showcase.vue diff --git a/pages/team.vue b/app/pages/team.vue similarity index 100% rename from pages/team.vue rename to app/pages/team.vue diff --git a/pages/templates.vue b/app/pages/templates.vue similarity index 100% rename from pages/templates.vue rename to app/pages/templates.vue diff --git a/pages/video-courses.vue b/app/pages/video-courses.vue similarity index 70% rename from pages/video-courses.vue rename to app/pages/video-courses.vue index 56394cb17..e7e58062c 100644 --- a/pages/video-courses.vue +++ b/app/pages/video-courses.vue @@ -31,17 +31,23 @@ defineOgImageComponent('Docs')