diff --git a/astro.config.ts b/astro.config.ts index c88ee8eb..ca3c549a 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -10,7 +10,6 @@ const isProd = import.meta.env.PROD; export default defineConfig({ experimental: { - actions: true, contentLayer: true, env: { validateSecrets: true, diff --git a/package.json b/package.json index e891a88c..185083a6 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,8 @@ "@fontsource/baskervville": "^5.0.21", "@hookform/resolvers": "^3.9.0", "@million/lint": "1.0.0-rc.82-beta.50", - "algoliasearch": "^5.2.1", - "astro": "^4.14.6", + "algoliasearch": "^5.2.2", + "astro": "^4.15.0", "clsx": "^2.1.1", "contentful": "^10.15.0", "firebase": "^10.13.0", @@ -86,7 +86,7 @@ "@commitlint/cli": "^19.4.1", "@commitlint/config-conventional": "^19.4.1", "@commitlint/format": "^19.3.0", - "@testing-library/react": "^16.0.0", + "@testing-library/react": "^16.0.1", "@testing-library/react-hooks": "^8.0.1", "@types/add": "^2.0.3", "@types/markdown-it": "^14.1.2", diff --git a/src/actions/index.ts b/src/actions/index.ts index 1b810fac..540b798c 100644 --- a/src/actions/index.ts +++ b/src/actions/index.ts @@ -1,18 +1,14 @@ // @ts-ignore -import { ActionError, defineAction, z } from "astro:actions"; -import { DEFAULT_LOCALE_STRING } from "@const/index.ts"; -import { app } from "@infrastructure/database/server.ts"; -import { sendEmail } from "@infrastructure/email/server.ts"; +import { ActionError, defineAction } from "astro:actions"; +import { DEFAULT_LOCALE_STRING } from "@const/index"; +import { app } from "@infrastructure/database/server"; +import { sendEmail } from "@infrastructure/email/server"; import type { FormData } from "@modules/contact/components/contactForm"; import { getFirestore } from "firebase-admin/firestore"; +import { contactFormSchema } from '@application/entities/contact/schema'; type ContactDetails = Omit; -const contactFormSchema = z.object({ - name: z.string(), - email: z.string().email(), -}); - const database = getFirestore(app); export const server = { diff --git a/src/application/dto/article/articleDTO.ts b/src/application/dto/article/articleDTO.ts index 52605c99..454dc956 100644 --- a/src/application/dto/article/articleDTO.ts +++ b/src/application/dto/article/articleDTO.ts @@ -1,11 +1,11 @@ import type { ArticleDTO, RawArticle } from "@application/dto/article/types"; import { ArticleType } from "@application/dto/article/types"; import { createRelatedArticles } from "@application/dto/article/utils/createRelatedArticles"; -import { getRelatedArticles } from "@application/dto/article/utils/getRelatedArticles/getRelatedArticles.ts"; -import { DEFAULT_DATE_FORMAT } from "@const/index.ts"; +import { getRelatedArticles } from "@application/dto/article/utils/getRelatedArticles/getRelatedArticles"; +import { DEFAULT_DATE_FORMAT } from "@const/index"; import { documentToHtmlString } from "@contentful/rich-text-html-renderer"; import type { Document } from "@contentful/rich-text-types"; -import type { BaseDTO } from "@shared/application/dto/baseDTO.ts"; +import type { BaseDTO } from "@shared/application/dto/baseDTO"; import { createImage } from "@shared/application/dto/utils/createImage"; import MarkdownIt from "markdown-it"; import { createTags } from "./utils/createTags"; diff --git a/src/application/dto/article/types.ts b/src/application/dto/article/types.ts index a1819d00..b62893d7 100644 --- a/src/application/dto/article/types.ts +++ b/src/application/dto/article/types.ts @@ -1,5 +1,5 @@ import type { RawAuthor } from "@application/dto/author/types"; -import type { BaseTagDTO } from "@application/dto/tag/types.ts"; +import type { BaseTagDTO } from "@application/dto/tag/types"; import type { articleSchema } from "@application/entities/articles"; import type { ContentfulImageAsset } from "@shared/application/types"; import type { Entry, EntryFieldTypes, EntrySkeletonType } from "contentful"; diff --git a/src/application/dto/article/utils/createTags/createTags.ts b/src/application/dto/article/utils/createTags/createTags.ts index ce6a16fc..415468d7 100644 --- a/src/application/dto/article/utils/createTags/createTags.ts +++ b/src/application/dto/article/utils/createTags/createTags.ts @@ -1,4 +1,4 @@ -import type { BaseTagDTO } from "@application/dto/tag/types.ts"; +import type { BaseTagDTO } from "@application/dto/tag/types"; import type { Entry, EntrySkeletonType } from "contentful"; export function createTags(tags: Array>>): BaseTagDTO[] { diff --git a/src/application/dto/article/utils/getAuthor/getAuthor.ts b/src/application/dto/article/utils/getAuthor/getAuthor.ts index fdf96007..df97174b 100644 --- a/src/application/dto/article/utils/getAuthor/getAuthor.ts +++ b/src/application/dto/article/utils/getAuthor/getAuthor.ts @@ -1,4 +1,4 @@ -import type { AuthorDTO, RawAuthor } from "@application/dto/author/types.ts"; +import type { AuthorDTO, RawAuthor } from "@application/dto/author/types"; import { createImage } from "@shared/application/dto/utils/createImage"; import type { Entry, EntrySkeletonType } from "contentful"; diff --git a/src/application/dto/article/utils/getAuthor/index.ts b/src/application/dto/article/utils/getAuthor/index.ts index 26892df4..d4237f21 100644 --- a/src/application/dto/article/utils/getAuthor/index.ts +++ b/src/application/dto/article/utils/getAuthor/index.ts @@ -1 +1 @@ -export * from "./getAuthor.ts"; +export * from "./getAuthor"; diff --git a/src/application/dto/article/utils/getReadingTime/index.ts b/src/application/dto/article/utils/getReadingTime/index.ts index 4d0345d5..723b7194 100644 --- a/src/application/dto/article/utils/getReadingTime/index.ts +++ b/src/application/dto/article/utils/getReadingTime/index.ts @@ -1 +1 @@ -export * from "./getReadingTime.ts"; +export * from "./getReadingTime"; diff --git a/src/application/dto/article/utils/getRelatedArticles/index.ts b/src/application/dto/article/utils/getRelatedArticles/index.ts index 380247d0..3e1f4861 100644 --- a/src/application/dto/article/utils/getRelatedArticles/index.ts +++ b/src/application/dto/article/utils/getRelatedArticles/index.ts @@ -1 +1 @@ -export * from "./getRelatedArticles.ts"; +export * from "./getRelatedArticles"; diff --git a/src/application/dto/article/utils/renderOptions/renderOptions.ts b/src/application/dto/article/utils/renderOptions/renderOptions.ts index 96436e55..77dfda30 100644 --- a/src/application/dto/article/utils/renderOptions/renderOptions.ts +++ b/src/application/dto/article/utils/renderOptions/renderOptions.ts @@ -1,4 +1,4 @@ -import type { RawArticle } from "@application/dto/article/types.ts"; +import type { RawArticle } from "@application/dto/article/types"; import type { Block, Inline } from "@contentful/rich-text-types"; import { BLOCKS, INLINES } from "@contentful/rich-text-types"; diff --git a/src/application/dto/author/authorDTO.ts b/src/application/dto/author/authorDTO.ts index a51e8c1d..dda7ecd7 100644 --- a/src/application/dto/author/authorDTO.ts +++ b/src/application/dto/author/authorDTO.ts @@ -1,5 +1,5 @@ import type { AuthorDTO, RawAuthor } from "@application/dto/author/types"; -import type { BaseDTO } from "@shared/application/dto/baseDTO.ts"; +import type { BaseDTO } from "@shared/application/dto/baseDTO"; import { createImage } from "@shared/application/dto/utils/createImage"; import { getArticlesByAuthor } from "./utils"; diff --git a/src/application/dto/author/utils/getArticlesByAuthor.ts b/src/application/dto/author/utils/getArticlesByAuthor.ts index f70a39a6..6aa39628 100644 --- a/src/application/dto/author/utils/getArticlesByAuthor.ts +++ b/src/application/dto/author/utils/getArticlesByAuthor.ts @@ -1,5 +1,5 @@ import { getCollection } from "astro:content"; -import type { RawAuthor } from "@application/dto/author/types.ts"; +import type { RawAuthor } from "@application/dto/author/types"; import type { Reference } from "@shared/application/types"; export async function getArticlesByAuthor(rawAuthor: RawAuthor): Promise[]> { diff --git a/src/application/dto/breadcrumb/breadcrumbDTO.ts b/src/application/dto/breadcrumb/breadcrumbDTO.ts index a1758f4b..f72d5870 100644 --- a/src/application/dto/breadcrumb/breadcrumbDTO.ts +++ b/src/application/dto/breadcrumb/breadcrumbDTO.ts @@ -1,6 +1,6 @@ import type { BreadcrumbDTOItem, RawBreadcrumb } from "@application/dto/breadcrumb/types"; import { deSlugify } from "@modules/core/utils/deSlugify"; -import type { BaseDTO } from "@shared/application/dto/baseDTO.ts"; +import type { BaseDTO } from "@shared/application/dto/baseDTO"; export type BreadcrumbDTO = BreadcrumbDTOItem[]; diff --git a/src/application/dto/city/cityDTO.ts b/src/application/dto/city/cityDTO.ts index 7ffe1203..c96ad9fd 100644 --- a/src/application/dto/city/cityDTO.ts +++ b/src/application/dto/city/cityDTO.ts @@ -1,5 +1,5 @@ -import type { CityDTO, RawCity } from "@application/dto/city/types.ts"; -import type { BaseDTO } from "@shared/application/dto/baseDTO.ts"; +import type { CityDTO, RawCity } from "@application/dto/city/types"; +import type { BaseDTO } from "@shared/application/dto/baseDTO"; import { createImage } from "@shared/application/dto/utils/createImage"; import type { ContenfulLocation } from "@shared/application/types"; import { createDate } from "./utils/createDate"; diff --git a/src/application/dto/project/index.ts b/src/application/dto/project/index.ts index 3d10b6a0..c0ff0feb 100644 --- a/src/application/dto/project/index.ts +++ b/src/application/dto/project/index.ts @@ -1 +1 @@ -export * from "./projectDTO.ts"; +export * from "./projectDTO"; diff --git a/src/application/dto/project/projectDTO.ts b/src/application/dto/project/projectDTO.ts index 8c6e56e9..540ab0f1 100644 --- a/src/application/dto/project/projectDTO.ts +++ b/src/application/dto/project/projectDTO.ts @@ -1,8 +1,8 @@ -import type { ProjectDTO, RawProject } from "@application/dto/project/types.ts"; +import type { ProjectDTO, RawProject } from "@application/dto/project/types"; import { documentToHtmlString } from "@contentful/rich-text-html-renderer"; import type { Document } from "@contentful/rich-text-types"; import { slugify } from "@modules/core/utils/slugify"; -import type { BaseDTO } from "@shared/application/dto/baseDTO.ts"; +import type { BaseDTO } from "@shared/application/dto/baseDTO"; import { createImage } from "@shared/application/dto/utils/createImage"; export const projectDTO: BaseDTO = { diff --git a/src/application/dto/tag/tagDTO.ts b/src/application/dto/tag/tagDTO.ts index c67be1f3..44c69bd9 100644 --- a/src/application/dto/tag/tagDTO.ts +++ b/src/application/dto/tag/tagDTO.ts @@ -1,7 +1,7 @@ import { getCollection } from "astro:content"; import { TagType } from "@application/dto/tag/types"; import type { RawTag, TagDTO } from "@application/dto/tag/types"; -import type { BaseDTO } from "@shared/application/dto/baseDTO.ts"; +import type { BaseDTO } from "@shared/application/dto/baseDTO"; import { getArticlesByTag } from "./utils/getArticlesByTag"; import { groupBy } from "./utils/groupBy"; diff --git a/src/application/dto/tag/types.ts b/src/application/dto/tag/types.ts index c3b4a47f..09880d98 100644 --- a/src/application/dto/tag/types.ts +++ b/src/application/dto/tag/types.ts @@ -1,4 +1,4 @@ -import type { tagSchema } from "@application/entities/tags/schema.ts"; +import type { tagSchema } from "@application/entities/tags/schema"; import type { EntryFieldTypes } from "contentful"; import type { z } from "zod"; diff --git a/src/application/dto/tag/utils/getArticlesByTag/getArticlesByTag.ts b/src/application/dto/tag/utils/getArticlesByTag/getArticlesByTag.ts index bff64749..a423ebaa 100644 --- a/src/application/dto/tag/utils/getArticlesByTag/getArticlesByTag.ts +++ b/src/application/dto/tag/utils/getArticlesByTag/getArticlesByTag.ts @@ -1,5 +1,5 @@ import type { CollectionEntry } from "astro:content"; -import type { RawTag } from "@application/dto/tag/types.ts"; +import type { RawTag } from "@application/dto/tag/types"; import type { Reference } from "@shared/application/types"; interface GetArticlesParams { diff --git a/src/application/dto/tag/utils/getArticlesByTag/index.ts b/src/application/dto/tag/utils/getArticlesByTag/index.ts index 55c25a7e..8877fe4b 100644 --- a/src/application/dto/tag/utils/getArticlesByTag/index.ts +++ b/src/application/dto/tag/utils/getArticlesByTag/index.ts @@ -1 +1 @@ -export * from "./getArticlesByTag.ts"; +export * from "./getArticlesByTag"; diff --git a/src/application/dto/testimonial/testimonialDTO.ts b/src/application/dto/testimonial/testimonialDTO.ts index 3dfed991..caab4e4e 100644 --- a/src/application/dto/testimonial/testimonialDTO.ts +++ b/src/application/dto/testimonial/testimonialDTO.ts @@ -1,5 +1,5 @@ -import type { RawTestimonial, TestimonialDTO } from "@application/dto/testimonial/types.ts"; -import type { BaseDTO } from "@shared/application/dto/baseDTO.ts"; +import type { RawTestimonial, TestimonialDTO } from "@application/dto/testimonial/types"; +import type { BaseDTO } from "@shared/application/dto/baseDTO"; import { createImage } from "@shared/application/dto/utils/createImage"; export const testimonialDTO: BaseDTO = { diff --git a/src/application/entities/articles/articles.ts b/src/application/entities/articles/articles.ts index ebf84f0b..c66dc6e6 100644 --- a/src/application/entities/articles/articles.ts +++ b/src/application/entities/articles/articles.ts @@ -1,8 +1,8 @@ import { defineCollection } from "astro:content"; import { articleDTO } from "@application/dto/article"; -import type { RawArticle } from "@application/dto/article/types.ts"; -import { articleSchema } from "@application/entities/articles/schema.ts"; -import { client } from "@infrastructure/cms/client.ts"; +import type { RawArticle } from "@application/dto/article/types"; +import { articleSchema } from "@application/entities/articles/schema"; +import { client } from "@infrastructure/cms/client"; export const articles = defineCollection({ loader: async () => { diff --git a/src/application/entities/articles/schema.ts b/src/application/entities/articles/schema.ts index 44a8e9ac..685ff82e 100644 --- a/src/application/entities/articles/schema.ts +++ b/src/application/entities/articles/schema.ts @@ -1,7 +1,7 @@ import { reference, z } from "astro:content"; -import { ArticleType } from "@application/dto/article/types.ts"; +import { ArticleType } from "@application/dto/article/types"; import { authorSchema } from "@application/entities/authors"; -import { tagSchema } from "@application/entities/tags/schema.ts"; +import { tagSchema } from "@application/entities/tags/schema"; import { imageSchema } from "@shared/application/entities"; export const articleSchema = z.object({ diff --git a/src/application/entities/authors/authors.ts b/src/application/entities/authors/authors.ts index daf50fd5..3721242e 100644 --- a/src/application/entities/authors/authors.ts +++ b/src/application/entities/authors/authors.ts @@ -1,8 +1,8 @@ import { defineCollection, reference, z } from "astro:content"; import { authorDTO } from "@application/dto/author"; -import type { RawAuthor } from "@application/dto/author/types.ts"; -import { authorSchema } from "@application/entities/authors/schema.ts"; -import { client } from "@infrastructure/cms/client.ts"; +import type { RawAuthor } from "@application/dto/author/types"; +import { authorSchema } from "@application/entities/authors/schema"; +import { client } from "@infrastructure/cms/client"; export const authors = defineCollection({ loader: async () => { diff --git a/src/application/entities/cities/cities.ts b/src/application/entities/cities/cities.ts index 9b043ca4..5719965e 100644 --- a/src/application/entities/cities/cities.ts +++ b/src/application/entities/cities/cities.ts @@ -1,8 +1,8 @@ import { defineCollection } from "astro:content"; import { cityDTO } from "@application/dto/city"; -import type { RawCity } from "@application/dto/city/types.ts"; -import { citiesSchema } from "@application/entities/cities/schema.ts"; -import { client } from "@infrastructure/cms/client.ts"; +import type { RawCity } from "@application/dto/city/types"; +import { citiesSchema } from "@application/entities/cities/schema"; +import { client } from "@infrastructure/cms/client"; export const cities = defineCollection({ loader: async () => { diff --git a/src/application/entities/contact/schema.ts b/src/application/entities/contact/schema.ts new file mode 100644 index 00000000..d9f7a676 --- /dev/null +++ b/src/application/entities/contact/schema.ts @@ -0,0 +1,7 @@ +import { z } from "astro:schema" + +export const contactFormSchema = z.object({ + name: z.string().trim().min(1, "Please insert your name"), + email: z.string().trim().min(1, "Please insert a valid email").email(), + message: z.string().trim().min(1, "Please insert a valid message"), +}); diff --git a/src/application/entities/projects/projects.ts b/src/application/entities/projects/projects.ts index 26413734..a7e32b0a 100644 --- a/src/application/entities/projects/projects.ts +++ b/src/application/entities/projects/projects.ts @@ -1,8 +1,8 @@ import { defineCollection } from "astro:content"; import { projectDTO } from "@application/dto/project"; -import type { RawProject } from "@application/dto/project/types.ts"; -import { projectsSchema } from "@application/entities/projects/schema.ts"; -import { client } from "@infrastructure/cms/client.ts"; +import type { RawProject } from "@application/dto/project/types"; +import { projectsSchema } from "@application/entities/projects/schema"; +import { client } from "@infrastructure/cms/client"; export const projects = defineCollection({ loader: async () => { diff --git a/src/application/entities/tags/tags.ts b/src/application/entities/tags/tags.ts index 8da836c6..e8744bef 100644 --- a/src/application/entities/tags/tags.ts +++ b/src/application/entities/tags/tags.ts @@ -1,9 +1,9 @@ import { defineCollection, reference, z } from "astro:content"; import { tagDTO } from "@application/dto/tag"; -import type { RawTag } from "@application/dto/tag/types.ts"; -import { TagType } from "@application/dto/tag/types.ts"; -import { tagSchema } from "@application/entities/tags/schema.ts"; -import { client } from "@infrastructure/cms/client.ts"; +import type { RawTag } from "@application/dto/tag/types"; +import { TagType } from "@application/dto/tag/types"; +import { tagSchema } from "@application/entities/tags/schema"; +import { client } from "@infrastructure/cms/client"; export const tags = defineCollection({ loader: async () => { diff --git a/src/application/entities/testimonials/testimonials.ts b/src/application/entities/testimonials/testimonials.ts index 4a25250e..2c3cc203 100644 --- a/src/application/entities/testimonials/testimonials.ts +++ b/src/application/entities/testimonials/testimonials.ts @@ -1,8 +1,8 @@ import { defineCollection } from "astro:content"; import { testimonialDTO } from "@application/dto/testimonial"; -import type { RawTestimonial } from "@application/dto/testimonial/types.ts"; -import { testimonialsSchema } from "@application/entities/testimonials/schema.ts"; -import { client } from "@infrastructure/cms/client.ts"; +import type { RawTestimonial } from "@application/dto/testimonial/types"; +import { testimonialsSchema } from "@application/entities/testimonials/schema"; +import { client } from "@infrastructure/cms/client"; export const testimonials = defineCollection({ loader: async () => { diff --git a/src/const/const.ts b/src/const/const.ts index 0e6b2061..e454c3a4 100644 --- a/src/const/const.ts +++ b/src/const/const.ts @@ -4,7 +4,7 @@ import { capitalizeKeys } from "@const/utils/capitalizeKeys"; import { lowercaseKeys } from "@const/utils/lowercaseKeys"; import { A11y, Autoplay, Keyboard, Navigation, Virtual } from "swiper/modules"; import type { SwiperOptions } from "swiper/types"; -import type { CapitalizeKeys, SeoMetadata, WorldGlobeConfig } from "./types.ts"; +import type { CapitalizeKeys, SeoMetadata, WorldGlobeConfig } from "./types"; export enum Pages { HOME = "home", diff --git a/src/const/utils/capitalizeKeys/capitalizeKeys.ts b/src/const/utils/capitalizeKeys/capitalizeKeys.ts index 9b770387..ae954016 100644 --- a/src/const/utils/capitalizeKeys/capitalizeKeys.ts +++ b/src/const/utils/capitalizeKeys/capitalizeKeys.ts @@ -1,4 +1,4 @@ -import type { CapitalizeKeys } from "../../types.ts"; +import type { CapitalizeKeys } from "../../types"; export function capitalizeKeys>(object: T): CapitalizeKeys { const result = {} as CapitalizeKeys; diff --git a/src/const/utils/lowercaseKeys/index.ts b/src/const/utils/lowercaseKeys/index.ts index a5f65ef4..dd3730f2 100644 --- a/src/const/utils/lowercaseKeys/index.ts +++ b/src/const/utils/lowercaseKeys/index.ts @@ -1 +1 @@ -export * from "src/const/utils/lowercaseKeys/lowecaseKeys.ts"; +export * from "src/const/utils/lowercaseKeys/lowecaseKeys"; diff --git a/src/const/utils/lowercaseKeys/lowecaseKeys.ts b/src/const/utils/lowercaseKeys/lowecaseKeys.ts index 0536c257..35aeb975 100644 --- a/src/const/utils/lowercaseKeys/lowecaseKeys.ts +++ b/src/const/utils/lowercaseKeys/lowecaseKeys.ts @@ -1,4 +1,4 @@ -import type { LowercaseKeys } from "../../types.ts"; +import type { LowercaseKeys } from "../../types"; export function lowercaseKeys>(object: T): LowercaseKeys { const result = {} as LowercaseKeys; diff --git a/src/infrastructure/email/server.ts b/src/infrastructure/email/server.ts index 287c2b78..47d5856c 100644 --- a/src/infrastructure/email/server.ts +++ b/src/infrastructure/email/server.ts @@ -1,6 +1,6 @@ import { getSecret } from "astro:env/server"; -import { CONTACT_DETAILS } from "@const/index.ts"; -import type { FormData } from "@modules/contact/components/contactForm/ContactForm.tsx"; +import { CONTACT_DETAILS } from "@const/index"; +import type { FormData } from "@modules/contact/components/contactForm/ContactForm"; import { Resend } from "resend"; type ContactDetails = Omit; diff --git a/src/pages/index.astro b/src/pages/index.astro index 24f49187..8df21075 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -6,6 +6,7 @@ import Testimonials from "@modules/home/components/testimonials/Testimonials.ast import Welcome from "@modules/home/components/welcome/Welcome.astro"; // check responsive +// clickable on article cards? // todo: add small transitions & animations // - Latest articles (https://codepen.io/jh3y/pen/MWLyGxo) // todo: wait for wrangler webhook --> add Algolia + filters (+ URL filtering) https://www.algolia.com/developers/contentful-search-algolia/ (webhook problem) diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts index df265b5a..c96bc88b 100644 --- a/src/pages/rss.xml.ts +++ b/src/pages/rss.xml.ts @@ -1,6 +1,6 @@ import { getCollection } from "astro:content"; import rss from "@astrojs/rss"; -import { DEFAULT_SEO_PARAMS } from "@const/const.ts"; +import { DEFAULT_SEO_PARAMS } from "@const/const"; import type { APIRoute } from "astro"; export const GET: APIRoute = async (context) => { diff --git a/src/ui/modules/about/components/aboutLatestArticlesSlider/AboutLatestArticlesSlider.tsx b/src/ui/modules/about/components/aboutLatestArticlesSlider/AboutLatestArticlesSlider.tsx index cb25768e..03a0ccdc 100644 --- a/src/ui/modules/about/components/aboutLatestArticlesSlider/AboutLatestArticlesSlider.tsx +++ b/src/ui/modules/about/components/aboutLatestArticlesSlider/AboutLatestArticlesSlider.tsx @@ -1,6 +1,6 @@ import type { CollectionEntry } from "astro:content"; -import { DEFAULT_SWIPER_CONFIG } from "@const/const.ts"; -import { ArticleCard } from "@modules/core/components/articleCard/ArticleCard.tsx"; +import { DEFAULT_SWIPER_CONFIG } from "@const/const"; +import { ArticleCard } from "@modules/core/components/articleCard/ArticleCard"; import { Slider } from "@modules/core/components/slider"; import type { SwiperOptions } from "swiper/types"; import "./about-latest-articles-slider.css"; diff --git a/src/ui/modules/about/components/worldGlobe/WorldGlobe.tsx b/src/ui/modules/about/components/worldGlobe/WorldGlobe.tsx index 9d33d153..93238636 100644 --- a/src/ui/modules/about/components/worldGlobe/WorldGlobe.tsx +++ b/src/ui/modules/about/components/worldGlobe/WorldGlobe.tsx @@ -2,9 +2,9 @@ import type { CollectionEntry } from "astro:content"; import horizontalArrow from "@assets/images/svg/left-arrow.svg"; import zoomIn from "@assets/images/svg/zoom-in.svg"; import zoomOut from "@assets/images/svg/zoom-out.svg"; -import { WORLD_GLOBE_CONFIG } from "@const/index.ts"; +import { WORLD_GLOBE_CONFIG } from "@const/index"; import countries from "@data/countries.geojson.json"; -import useTabVisibility, { TabVisibility } from "@modules/about/hooks/useTabVisibility/useTabVisibility.ts"; +import useTabVisibility, { TabVisibility } from "@modules/about/hooks/useTabVisibility/useTabVisibility"; import { calculateCenter } from "@modules/about/utils/calculateCenter"; import { refineCities } from "@modules/about/utils/refineCities"; import { renderPin } from "@modules/about/utils/renderPin"; diff --git a/src/ui/modules/about/hooks/useTabVisibility/index.ts b/src/ui/modules/about/hooks/useTabVisibility/index.ts index 9969aa27..a57bfd91 100644 --- a/src/ui/modules/about/hooks/useTabVisibility/index.ts +++ b/src/ui/modules/about/hooks/useTabVisibility/index.ts @@ -1 +1 @@ -export * from "./useTabVisibility.ts"; +export * from "./useTabVisibility"; diff --git a/src/ui/modules/about/utils/calculateCenter/index.ts b/src/ui/modules/about/utils/calculateCenter/index.ts index bb9cd9da..3f2d0e23 100644 --- a/src/ui/modules/about/utils/calculateCenter/index.ts +++ b/src/ui/modules/about/utils/calculateCenter/index.ts @@ -1 +1 @@ -export * from "./calculateCenter.ts"; +export * from "./calculateCenter"; diff --git a/src/ui/modules/about/utils/refineCities/index.ts b/src/ui/modules/about/utils/refineCities/index.ts index 7a628f3b..a18f2b33 100644 --- a/src/ui/modules/about/utils/refineCities/index.ts +++ b/src/ui/modules/about/utils/refineCities/index.ts @@ -1 +1 @@ -export * from "./refineCities.ts"; +export * from "./refineCities"; diff --git a/src/ui/modules/about/utils/renderPin/index.ts b/src/ui/modules/about/utils/renderPin/index.ts index f58aa2e6..80b7101d 100644 --- a/src/ui/modules/about/utils/renderPin/index.ts +++ b/src/ui/modules/about/utils/renderPin/index.ts @@ -1 +1 @@ -export * from "./renderPin.ts"; +export * from "./renderPin"; diff --git a/src/ui/modules/contact/components/contactForm/ContactForm.tsx b/src/ui/modules/contact/components/contactForm/ContactForm.tsx index b3fe5466..657e2cd1 100644 --- a/src/ui/modules/contact/components/contactForm/ContactForm.tsx +++ b/src/ui/modules/contact/components/contactForm/ContactForm.tsx @@ -7,15 +7,9 @@ import type { FormEvent } from "react"; import { useCallback, useRef, useState } from "react"; import { useGoogleReCaptcha } from "react-google-recaptcha-v3"; import { useForm } from "react-hook-form"; -import { z } from "zod"; +import { contactFormSchema } from '@application/entities/contact/schema'; import "./contact-form.css"; -const schema = z.object({ - name: z.string().trim().min(1, "Please insert your name"), - email: z.string().trim().min(1, "Please insert a valid email").email(), - message: z.string().trim().min(1, "Please insert a valid message"), -}); - export interface FormData { name: string; email: string; @@ -38,7 +32,7 @@ export const ContactForm = () => { formState: { errors }, reset, } = useForm({ - resolver: zodResolver(schema), + resolver: zodResolver(contactFormSchema), }); const [formStatus, setFormStatus] = useState(FormStatus.INITIAL); const { executeRecaptcha } = useGoogleReCaptcha(); @@ -75,9 +69,9 @@ export const ContactForm = () => { contactData.append("email", data.email); contactData.append("message", data.message); - const response = await actions.contact(contactData); + const { data: response, error } = await actions.contact(contactData); - if (response.ok) { + if (response.ok && !error) { flyPlane(submitRef.current); setTimeout(() => { setFormStatus(FormStatus.SUCCESS); diff --git a/src/ui/modules/contact/utils/autosize/index.ts b/src/ui/modules/contact/utils/autosize/index.ts index dffdb67c..7c525850 100644 --- a/src/ui/modules/contact/utils/autosize/index.ts +++ b/src/ui/modules/contact/utils/autosize/index.ts @@ -1 +1 @@ -export * from "./autosize.ts"; +export * from "./autosize"; diff --git a/src/ui/modules/contact/utils/changeTab/index.ts b/src/ui/modules/contact/utils/changeTab/index.ts index 3201faad..d55caf7a 100644 --- a/src/ui/modules/contact/utils/changeTab/index.ts +++ b/src/ui/modules/contact/utils/changeTab/index.ts @@ -1 +1 @@ -export * from "./changeTab.ts"; +export * from "./changeTab"; diff --git a/src/ui/modules/contact/utils/flyPlane/index.ts b/src/ui/modules/contact/utils/flyPlane/index.ts index a8c5e946..ea129b72 100644 --- a/src/ui/modules/contact/utils/flyPlane/index.ts +++ b/src/ui/modules/contact/utils/flyPlane/index.ts @@ -1 +1 @@ -export * from "./flyPlane.ts"; +export * from "./flyPlane"; diff --git a/src/ui/modules/core/components/articleCard/ArticleCard.tsx b/src/ui/modules/core/components/articleCard/ArticleCard.tsx index d743dbf8..0b18f0b1 100644 --- a/src/ui/modules/core/components/articleCard/ArticleCard.tsx +++ b/src/ui/modules/core/components/articleCard/ArticleCard.tsx @@ -1,5 +1,5 @@ import type { CollectionEntry } from "astro:content"; -import { ArticleType } from "@application/dto/article/types.ts"; +import { ArticleType } from "@application/dto/article/types"; import type { ArticleCardAuthorProps } from "@modules/core/components/articleCard/atoms/articleCardAuthor"; import { ArticleCardAuthor } from "@modules/core/components/articleCard/atoms/articleCardAuthor"; import type { ArticleCardExcerptProps } from "@modules/core/components/articleCard/atoms/articleCardExcerpt"; diff --git a/src/ui/modules/core/components/articleCard/atoms/articleCardAuthor/ArticleCardAuthor.tsx b/src/ui/modules/core/components/articleCard/atoms/articleCardAuthor/ArticleCardAuthor.tsx index 506bdc65..83c5a9dd 100644 --- a/src/ui/modules/core/components/articleCard/atoms/articleCardAuthor/ArticleCardAuthor.tsx +++ b/src/ui/modules/core/components/articleCard/atoms/articleCardAuthor/ArticleCardAuthor.tsx @@ -1,4 +1,4 @@ -import { PAGES_ROUTES } from "@const/const.ts"; +import { PAGES_ROUTES } from "@const/index"; import type { ReactNode } from "react"; import "./article-card-author.css"; diff --git a/src/ui/modules/core/components/articleCard/atoms/articleCardTagItem/ArticleCardTagItem.tsx b/src/ui/modules/core/components/articleCard/atoms/articleCardTagItem/ArticleCardTagItem.tsx index 04f192e8..f94ba2da 100644 --- a/src/ui/modules/core/components/articleCard/atoms/articleCardTagItem/ArticleCardTagItem.tsx +++ b/src/ui/modules/core/components/articleCard/atoms/articleCardTagItem/ArticleCardTagItem.tsx @@ -1,5 +1,5 @@ -import type { BaseTagDTO } from "@application/dto/tag/types.ts"; -import { PAGES_ROUTES } from "@const/const.ts"; +import type { BaseTagDTO } from "@application/dto/tag/types"; +import { PAGES_ROUTES } from "@const/index"; import type { CSSProperties, ReactNode } from "react"; import "./article-card-tag-item.css"; diff --git a/src/ui/modules/core/components/baseLayout/BaseLayout.astro b/src/ui/modules/core/components/baseLayout/BaseLayout.astro index 9981c3e7..331d63f1 100644 --- a/src/ui/modules/core/components/baseLayout/BaseLayout.astro +++ b/src/ui/modules/core/components/baseLayout/BaseLayout.astro @@ -1,4 +1,5 @@ --- +import { PAGES_ROUTES } from 'src/const'; import { GOOGLE_ANALYTICS_ID } from "astro:env/client"; import type { SeoMetadata } from "@const/types"; import CookieConsent from "@modules/core/components/cookieConsent/CookieConsent"; @@ -11,7 +12,7 @@ type BaseLayoutProps = SeoMetadata; const props = Astro.props as BaseLayoutProps; const { pathname } = Astro.url; -const isProjects = pathname.includes("/projects"); +const isProjects = pathname.includes(PAGES_ROUTES.PROJECTS); --- diff --git a/src/ui/modules/core/components/cookieConsent/config/config.ts b/src/ui/modules/core/components/cookieConsent/config/config.ts index aaab44f8..ef2d4ed7 100644 --- a/src/ui/modules/core/components/cookieConsent/config/config.ts +++ b/src/ui/modules/core/components/cookieConsent/config/config.ts @@ -1,4 +1,4 @@ -import { PAGES_ROUTES } from "@const/const.ts"; +import { PAGES_ROUTES } from "@const/index"; import type { CookieConsentConfig } from "vanilla-cookieconsent"; import { updatePreferences } from "../utils/updatePreferences"; diff --git a/src/ui/modules/core/components/emailButton/utils/mailTo/index.ts b/src/ui/modules/core/components/emailButton/utils/mailTo/index.ts index d6ad14f2..8f669d3a 100644 --- a/src/ui/modules/core/components/emailButton/utils/mailTo/index.ts +++ b/src/ui/modules/core/components/emailButton/utils/mailTo/index.ts @@ -1 +1 @@ -export * from "./mailTo.ts"; +export * from "./mailTo"; diff --git a/src/ui/modules/core/components/emailButton/utils/mailTo/mailTo.ts b/src/ui/modules/core/components/emailButton/utils/mailTo/mailTo.ts index 1e14c07f..f08dc571 100644 --- a/src/ui/modules/core/components/emailButton/utils/mailTo/mailTo.ts +++ b/src/ui/modules/core/components/emailButton/utils/mailTo/mailTo.ts @@ -1,4 +1,4 @@ -import { CONTACT_DETAILS } from "@const/index.ts"; +import { CONTACT_DETAILS } from "@const/index"; export function mailTo() { const SELECTOR = document.querySelector(".mailTo__button"); diff --git a/src/ui/modules/core/components/latestArticles/atoms/latestArticlesSlider/LatestArticlesSlider.tsx b/src/ui/modules/core/components/latestArticles/atoms/latestArticlesSlider/LatestArticlesSlider.tsx index 9df83d6b..f1355fc5 100644 --- a/src/ui/modules/core/components/latestArticles/atoms/latestArticlesSlider/LatestArticlesSlider.tsx +++ b/src/ui/modules/core/components/latestArticles/atoms/latestArticlesSlider/LatestArticlesSlider.tsx @@ -1,5 +1,5 @@ import type { CollectionEntry } from "astro:content"; -import { DEFAULT_SWIPER_CONFIG } from "@const/const.ts"; +import { DEFAULT_SWIPER_CONFIG } from "@const/index"; import { ArticleCard } from "@modules/core/components/articleCard/ArticleCard"; import { Slider } from "@modules/core/components/slider"; import type { CSSProperties } from "react"; diff --git a/src/ui/modules/core/components/latestArticles/latest-articles.css b/src/ui/modules/core/components/latestArticles/latest-articles.css index 4636604c..f6573b83 100644 --- a/src/ui/modules/core/components/latestArticles/latest-articles.css +++ b/src/ui/modules/core/components/latestArticles/latest-articles.css @@ -1,4 +1,3 @@ - .latest-articles__wrapper { background-color: var(--neutral-main); padding: 2rem 0; diff --git a/src/ui/modules/core/components/slider/atoms/SliderNavigation/SliderNavigation.tsx b/src/ui/modules/core/components/slider/atoms/SliderNavigation/SliderNavigation.tsx index 01de7b5c..b6b2d56b 100644 --- a/src/ui/modules/core/components/slider/atoms/SliderNavigation/SliderNavigation.tsx +++ b/src/ui/modules/core/components/slider/atoms/SliderNavigation/SliderNavigation.tsx @@ -2,7 +2,7 @@ import { LeftArrow } from "@assets/images/svg-components/leftArrow"; import clsx from "clsx"; import { useRef } from "react"; import type { Swiper as SwiperClass } from "swiper/types"; -import useSliderNavigation from "../../hooks/useSliderNavigation/useSliderNavigation.ts"; +import useSliderNavigation from "../../hooks/useSliderNavigation/useSliderNavigation"; import "./slider-navigation.css"; interface SliderNavigationProps { diff --git a/src/ui/modules/core/components/themeToggle/utils/themeSetter/themeSetter.ts b/src/ui/modules/core/components/themeToggle/utils/themeSetter/themeSetter.ts index 2c135246..8dbd2d69 100644 --- a/src/ui/modules/core/components/themeToggle/utils/themeSetter/themeSetter.ts +++ b/src/ui/modules/core/components/themeToggle/utils/themeSetter/themeSetter.ts @@ -1,4 +1,4 @@ -import { THEME_STORAGE_KEY } from "@const/index.ts"; +import { THEME_STORAGE_KEY } from "@const/index"; export enum ThemeType { DARK = "dark", diff --git a/src/ui/modules/core/utils/deSlugify/index.ts b/src/ui/modules/core/utils/deSlugify/index.ts index 18c4bba5..30d9a171 100644 --- a/src/ui/modules/core/utils/deSlugify/index.ts +++ b/src/ui/modules/core/utils/deSlugify/index.ts @@ -1 +1 @@ -export * from "./deSlugify.ts"; +export * from "./deSlugify"; diff --git a/src/ui/modules/core/utils/getLocation/getLocation.ts b/src/ui/modules/core/utils/getLocation/getLocation.ts index e18f90c6..b06a9f2c 100644 --- a/src/ui/modules/core/utils/getLocation/getLocation.ts +++ b/src/ui/modules/core/utils/getLocation/getLocation.ts @@ -1,4 +1,4 @@ -import { PAGES_ROUTES } from "@const/const.ts"; +import { PAGES_ROUTES } from "@const/index"; type GetLocationReturnType = Lowercase | undefined; diff --git a/src/ui/modules/home/components/testimonialsSlider/TestimonialsSlider.tsx b/src/ui/modules/home/components/testimonialsSlider/TestimonialsSlider.tsx index edeea183..ca0b5172 100644 --- a/src/ui/modules/home/components/testimonialsSlider/TestimonialsSlider.tsx +++ b/src/ui/modules/home/components/testimonialsSlider/TestimonialsSlider.tsx @@ -1,5 +1,5 @@ import type { CollectionEntry } from "astro:content"; -import { DEFAULT_SWIPER_CONFIG } from "@const/const.ts"; +import { DEFAULT_SWIPER_CONFIG } from "@const/const"; import { Slider } from "@modules/core/components/slider"; import { Testimonial } from "@modules/home/components/testimonial"; import { Pagination } from "swiper/modules"; diff --git a/src/ui/modules/home/utils/initializeParallax/index.ts b/src/ui/modules/home/utils/initializeParallax/index.ts index 5817ed55..22e444c6 100644 --- a/src/ui/modules/home/utils/initializeParallax/index.ts +++ b/src/ui/modules/home/utils/initializeParallax/index.ts @@ -1 +1 @@ -export * from "./initializeParallax.ts"; +export * from "./initializeParallax"; diff --git a/yarn.lock b/yarn.lock index 73e2d534..e95037fa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,54 +5,54 @@ __metadata: version: 8 cacheKey: 10c0 -"@algolia/client-abtesting@npm:5.2.1": - version: 5.2.1 - resolution: "@algolia/client-abtesting@npm:5.2.1" +"@algolia/client-abtesting@npm:5.2.2": + version: 5.2.2 + resolution: "@algolia/client-abtesting@npm:5.2.2" dependencies: - "@algolia/client-common": "npm:5.2.1" - "@algolia/requester-browser-xhr": "npm:5.2.1" - "@algolia/requester-node-http": "npm:5.2.1" - checksum: 10c0/d0a461a6b31edacc021c97c44d6c1eb76ce1e2813d56ad1037731b26a152b545f624a29889137f65881255acfa87b48d6025296cfc35c817409c3fb0d66e14ff + "@algolia/client-common": "npm:5.2.2" + "@algolia/requester-browser-xhr": "npm:5.2.2" + "@algolia/requester-node-http": "npm:5.2.2" + checksum: 10c0/d8026d2bfede389a300081ee415956d3b2fc01532a04385ae391a51c3341422c47bf8b45dd0f595027936dec9a777873f15b71df8301959bc0d300992b030d73 languageName: node linkType: hard -"@algolia/client-analytics@npm:5.2.1": - version: 5.2.1 - resolution: "@algolia/client-analytics@npm:5.2.1" +"@algolia/client-analytics@npm:5.2.2": + version: 5.2.2 + resolution: "@algolia/client-analytics@npm:5.2.2" dependencies: - "@algolia/client-common": "npm:5.2.1" - "@algolia/requester-browser-xhr": "npm:5.2.1" - "@algolia/requester-node-http": "npm:5.2.1" - checksum: 10c0/193851c9de993d7c759e1ba1bf0dbf4be8760113001c6ce506dfcd06e4f21da2d637e8f00f13801a096f7f5bc01c54f13d4920048245f75d7dda6ccc969fb219 + "@algolia/client-common": "npm:5.2.2" + "@algolia/requester-browser-xhr": "npm:5.2.2" + "@algolia/requester-node-http": "npm:5.2.2" + checksum: 10c0/d82d732d9ad12526b113e49a254f939cc64422570efbaf8f5ccd84c8e608cc75ab199918b966be69b4a9ec8dac01948aaef8d154f51974897603ee64a62a5245 languageName: node linkType: hard -"@algolia/client-common@npm:5.2.1": - version: 5.2.1 - resolution: "@algolia/client-common@npm:5.2.1" - checksum: 10c0/21cfb378bed03f3bbd393586fba6073e67cd2b6f7a57e6347be4f2ddd631f23e734c503358456923792d8842b1b0f857426bdeeaaab633caf2a0ed3de1d37901 +"@algolia/client-common@npm:5.2.2": + version: 5.2.2 + resolution: "@algolia/client-common@npm:5.2.2" + checksum: 10c0/10d1f12e560acd33e86146fa6d1aa0a729fcd2878e827ad9e77b4cd805a4479b2fd451cb1504d0a85f0767bbd5ad8c487dd1fb36d75e7660d2fe022490c99114 languageName: node linkType: hard -"@algolia/client-personalization@npm:5.2.1": - version: 5.2.1 - resolution: "@algolia/client-personalization@npm:5.2.1" +"@algolia/client-personalization@npm:5.2.2": + version: 5.2.2 + resolution: "@algolia/client-personalization@npm:5.2.2" dependencies: - "@algolia/client-common": "npm:5.2.1" - "@algolia/requester-browser-xhr": "npm:5.2.1" - "@algolia/requester-node-http": "npm:5.2.1" - checksum: 10c0/7715f6724ef7a3e38f19e542917b0af8838b933ad5a183d87cd7dbf2a7a7dba78f3267677c7bbf4b876cc4b7229153cb4ef448eadc3b522c6454e07bfbe4e37e + "@algolia/client-common": "npm:5.2.2" + "@algolia/requester-browser-xhr": "npm:5.2.2" + "@algolia/requester-node-http": "npm:5.2.2" + checksum: 10c0/2bf7dca694ed08ff2cd600647bfa34e1dc87ba9477cba78ae5232a6449b9b5348873db5140686973cbd6636e2a37a69df91ef937a829eb51e692bfa7ac27724b languageName: node linkType: hard -"@algolia/client-search@npm:5.2.1": - version: 5.2.1 - resolution: "@algolia/client-search@npm:5.2.1" +"@algolia/client-search@npm:5.2.2": + version: 5.2.2 + resolution: "@algolia/client-search@npm:5.2.2" dependencies: - "@algolia/client-common": "npm:5.2.1" - "@algolia/requester-browser-xhr": "npm:5.2.1" - "@algolia/requester-node-http": "npm:5.2.1" - checksum: 10c0/dd99c115f1c4e3e5ca3821956154217d35d241994b6b2a98d91bb50a6bea7d9aa8fb8563f4c9042355b760dc0f0a9f0277faf838fdf9257226c65a25b407bee0 + "@algolia/client-common": "npm:5.2.2" + "@algolia/requester-browser-xhr": "npm:5.2.2" + "@algolia/requester-node-http": "npm:5.2.2" + checksum: 10c0/562c324de3406233f6c6d75ae99cc2b2b79947e10636108586dd0d34211fea13e5d96cb470a6ea4a1628ba786a839b3d34b2eaf863575ba74ef2490e4cb71313 languageName: node linkType: hard @@ -63,32 +63,32 @@ __metadata: languageName: node linkType: hard -"@algolia/recommend@npm:5.2.1": - version: 5.2.1 - resolution: "@algolia/recommend@npm:5.2.1" +"@algolia/recommend@npm:5.2.2": + version: 5.2.2 + resolution: "@algolia/recommend@npm:5.2.2" dependencies: - "@algolia/client-common": "npm:5.2.1" - "@algolia/requester-browser-xhr": "npm:5.2.1" - "@algolia/requester-node-http": "npm:5.2.1" - checksum: 10c0/277e4ad63b2f07a6d1c5e87a6a8ba6ccec799c8a7553b520d969ef0f6b7b2c06b6a6c0bc5dd749c7194507062eef066782d60182101ceaa7ba5eba5648f4e898 + "@algolia/client-common": "npm:5.2.2" + "@algolia/requester-browser-xhr": "npm:5.2.2" + "@algolia/requester-node-http": "npm:5.2.2" + checksum: 10c0/53031b1d47327c594b7549357fdf32e49fd17d776590a6584a9cc1b7cb687904827ad5f91ab71d1fc0d051c571e04a0400e9af5e0c6d914f32a094365e560388 languageName: node linkType: hard -"@algolia/requester-browser-xhr@npm:5.2.1": - version: 5.2.1 - resolution: "@algolia/requester-browser-xhr@npm:5.2.1" +"@algolia/requester-browser-xhr@npm:5.2.2": + version: 5.2.2 + resolution: "@algolia/requester-browser-xhr@npm:5.2.2" dependencies: - "@algolia/client-common": "npm:5.2.1" - checksum: 10c0/c4eb90e6626aa851502c604f53cd53340bf59ecf337a60e253b4411e3dad6050a57f57f4b629807f898f153fb09a196ff5fac1668b457a82d1dbe858d9f072ce + "@algolia/client-common": "npm:5.2.2" + checksum: 10c0/56b32a2819583c224edf251fd0bd1861a94db06db8174027e5237ac38f303ab03546ee6af44a6230a816f88189d25623a3b91889b4df467b34a66dc11da5f192 languageName: node linkType: hard -"@algolia/requester-node-http@npm:5.2.1": - version: 5.2.1 - resolution: "@algolia/requester-node-http@npm:5.2.1" +"@algolia/requester-node-http@npm:5.2.2": + version: 5.2.2 + resolution: "@algolia/requester-node-http@npm:5.2.2" dependencies: - "@algolia/client-common": "npm:5.2.1" - checksum: 10c0/b90dc0dbdda5f3567f512ec5965c5fce5182682d7a15877b8ef918eecaaf22eef53cb4a093bbe0a4bba8f3520ba44429cc2f94f64e1e41229beea9f62060ec24 + "@algolia/client-common": "npm:5.2.2" + checksum: 10c0/01bb46bb2e1f1622f67596ea801f4f996d59ae553397ac98d2506cb1c1b7918e94fddbeff61bc9b35e8c09972a2df5d2769562dca6312c30e8455b8a36be60e2 languageName: node linkType: hard @@ -441,18 +441,6 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.25.4, @babel/generator@npm:^7.25.5": - version: 7.25.5 - resolution: "@babel/generator@npm:7.25.5" - dependencies: - "@babel/types": "npm:^7.25.4" - "@jridgewell/gen-mapping": "npm:^0.3.5" - "@jridgewell/trace-mapping": "npm:^0.3.25" - jsesc: "npm:^2.5.1" - checksum: 10c0/eb8af30c39476e4f4d6b953f355fcf092258291f78d65fb759b7d5e5e6fd521b5bfee64a4e2e4290279f0dcd25ccf8c49a61807828b99b5830d2b734506da1fd - languageName: node - linkType: hard - "@babel/helper-annotate-as-pure@npm:^7.24.7": version: 7.24.7 resolution: "@babel/helper-annotate-as-pure@npm:7.24.7" @@ -664,21 +652,6 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.25.4": - version: 7.25.4 - resolution: "@babel/traverse@npm:7.25.4" - dependencies: - "@babel/code-frame": "npm:^7.24.7" - "@babel/generator": "npm:^7.25.4" - "@babel/parser": "npm:^7.25.4" - "@babel/template": "npm:^7.25.0" - "@babel/types": "npm:^7.25.4" - debug: "npm:^4.3.1" - globals: "npm:^11.1.0" - checksum: 10c0/37c9b49b277e051fe499ef5f6f217370c4f648d6370564d70b5e6beb2da75bfda6d7dab1d39504d89e9245448f8959bc1a5880d2238840cdc3979b35338ed0f5 - languageName: node - linkType: hard - "@babel/types@npm:7.24.6": version: 7.24.6 resolution: "@babel/types@npm:7.24.6" @@ -3302,9 +3275,9 @@ __metadata: languageName: node linkType: hard -"@testing-library/react@npm:^16.0.0": - version: 16.0.0 - resolution: "@testing-library/react@npm:16.0.0" +"@testing-library/react@npm:^16.0.1": + version: 16.0.1 + resolution: "@testing-library/react@npm:16.0.1" dependencies: "@babel/runtime": "npm:^7.12.5" peerDependencies: @@ -3318,7 +3291,7 @@ __metadata: optional: true "@types/react-dom": optional: true - checksum: 10c0/297f97bf4722dad05f11d9cafd47d387dbdb096fea4b79b876c7466460f0f2e345b55b81b3e37fc81ed8185c528cb53dd8455ca1b6b019b229edf6c796f11c9f + checksum: 10c0/67d05dec5ad5a2e6f92b6a3234af785435c7bb62bdbf12f3bfc89c9bca0c871a189e88c4ba023ed4cea504704c87c6ac7e86e24a3962df6c521ae89b62f48ff7 languageName: node linkType: hard @@ -4114,19 +4087,19 @@ __metadata: languageName: node linkType: hard -"algoliasearch@npm:^5.2.1": - version: 5.2.1 - resolution: "algoliasearch@npm:5.2.1" +"algoliasearch@npm:^5.2.2": + version: 5.2.2 + resolution: "algoliasearch@npm:5.2.2" dependencies: - "@algolia/client-abtesting": "npm:5.2.1" - "@algolia/client-analytics": "npm:5.2.1" - "@algolia/client-common": "npm:5.2.1" - "@algolia/client-personalization": "npm:5.2.1" - "@algolia/client-search": "npm:5.2.1" - "@algolia/recommend": "npm:5.2.1" - "@algolia/requester-browser-xhr": "npm:5.2.1" - "@algolia/requester-node-http": "npm:5.2.1" - checksum: 10c0/de9a37dbf395370c72c6c2e555a5a7f705ee602d2fa213441672ef401d2eb3b1b6bb4b76d45b0ace7aca47be85200920695184ba4469c36130507e801b731c22 + "@algolia/client-abtesting": "npm:5.2.2" + "@algolia/client-analytics": "npm:5.2.2" + "@algolia/client-common": "npm:5.2.2" + "@algolia/client-personalization": "npm:5.2.2" + "@algolia/client-search": "npm:5.2.2" + "@algolia/recommend": "npm:5.2.2" + "@algolia/requester-browser-xhr": "npm:5.2.2" + "@algolia/requester-node-http": "npm:5.2.2" + checksum: 10c0/de9673d305618fe2fc564241ada8449ab564e8a4a9f90fa0ea765ca14f2da05aa34ac8b49117b494d4cb2315e22e6b8c930bcb58f907aed32b652ae05017e7c8 languageName: node linkType: hard @@ -4310,19 +4283,16 @@ __metadata: languageName: node linkType: hard -"astro@npm:^4.14.6": - version: 4.14.6 - resolution: "astro@npm:4.14.6" +"astro@npm:^4.15.0": + version: 4.15.0 + resolution: "astro@npm:4.15.0" dependencies: "@astrojs/compiler": "npm:^2.10.3" "@astrojs/internal-helpers": "npm:0.4.1" "@astrojs/markdown-remark": "npm:5.2.0" "@astrojs/telemetry": "npm:3.1.0" "@babel/core": "npm:^7.25.2" - "@babel/generator": "npm:^7.25.5" - "@babel/parser": "npm:^7.25.4" "@babel/plugin-transform-react-jsx": "npm:^7.25.2" - "@babel/traverse": "npm:^7.25.4" "@babel/types": "npm:^7.25.4" "@oslojs/encoding": "npm:^0.4.1" "@rollup/pluginutils": "npm:^5.1.0" @@ -4346,7 +4316,6 @@ __metadata: es-module-lexer: "npm:^1.5.4" esbuild: "npm:^0.21.5" estree-walker: "npm:^3.0.3" - execa: "npm:^8.0.1" fast-glob: "npm:^3.3.2" flattie: "npm:^1.1.1" github-slugger: "npm:^2.0.0" @@ -4356,6 +4325,7 @@ __metadata: js-yaml: "npm:^4.1.0" kleur: "npm:^4.1.5" magic-string: "npm:^0.30.11" + magicast: "npm:^0.3.5" micromatch: "npm:^4.0.8" mrmime: "npm:^2.0.0" neotraverse: "npm:^0.6.18" @@ -4371,6 +4341,7 @@ __metadata: shiki: "npm:^1.14.1" string-width: "npm:^7.2.0" strip-ansi: "npm:^7.1.0" + tinyexec: "npm:^0.3.0" tsconfck: "npm:^3.1.1" unist-util-visit: "npm:^5.0.0" vfile: "npm:^6.0.3" @@ -4387,7 +4358,7 @@ __metadata: optional: true bin: astro: astro.js - checksum: 10c0/e5a32043a7dcf5870449307ad3ef3f9e7e972ce7ea04d4b4f63909d16bbef01514dcdbf8fb5dbe19d75e55beeee2b49b48ba34aac5de3c7f2564f67c8030dde0 + checksum: 10c0/5320627240d1032f14460e9219dfda073489267bb141c12f54760fbac1ce3d051522ae12709de94f0d63e264088b0282d3723af4aab53fb31d2050dc3e94bf46 languageName: node linkType: hard @@ -4497,7 +4468,7 @@ __metadata: "@fontsource/baskervville": "npm:^5.0.21" "@hookform/resolvers": "npm:^3.9.0" "@million/lint": "npm:1.0.0-rc.82-beta.50" - "@testing-library/react": "npm:^16.0.0" + "@testing-library/react": "npm:^16.0.1" "@testing-library/react-hooks": "npm:^8.0.1" "@types/add": "npm:^2.0.3" "@types/markdown-it": "npm:^14.1.2" @@ -4505,8 +4476,8 @@ __metadata: "@types/react": "npm:^18.3.4" "@types/react-dom": "npm:^18.3.0" "@types/three": "npm:^0.167.2" - algoliasearch: "npm:^5.2.1" - astro: "npm:^4.14.6" + algoliasearch: "npm:^5.2.2" + astro: "npm:^4.15.0" clsx: "npm:^2.1.1" contentful: "npm:^10.15.0" conventional-changelog-atom: "npm:^5.0.0" @@ -8501,6 +8472,17 @@ __metadata: languageName: node linkType: hard +"magicast@npm:^0.3.5": + version: 0.3.5 + resolution: "magicast@npm:0.3.5" + dependencies: + "@babel/parser": "npm:^7.25.4" + "@babel/types": "npm:^7.25.4" + source-map-js: "npm:^1.2.0" + checksum: 10c0/a6cacc0a848af84f03e3f5bda7b0de75e4d0aa9ddce5517fd23ed0f31b5ddd51b2d0ff0b7e09b51f7de0f4053c7a1107117edda6b0732dca3e9e39e6c5a68c64 + languageName: node + linkType: hard + "make-dir@npm:^3.0.0": version: 3.1.0 resolution: "make-dir@npm:3.1.0" @@ -11959,6 +11941,13 @@ __metadata: languageName: node linkType: hard +"tinyexec@npm:^0.3.0": + version: 0.3.0 + resolution: "tinyexec@npm:0.3.0" + checksum: 10c0/138a4f4241aea6b6312559508468ab275a31955e66e2f57ed206e0aaabecee622624f208c5740345f0a66e33478fd065e359ed1eb1269eb6fd4fa25d44d0ba3b + languageName: node + linkType: hard + "tinypool@npm:^1.0.0": version: 1.0.1 resolution: "tinypool@npm:1.0.1"