From 577e00a870d3e8dce321ef54c906ba3e3e5ac66f Mon Sep 17 00:00:00 2001 From: eggy Date: Sat, 28 Jan 2023 15:32:48 -0500 Subject: [PATCH] chore: switch away from reactivity transform also use a released version of nuxt --- components/HomeStatBox.vue | 41 +- components/PostPreviewCard.vue | 6 +- components/ProjectCard.vue | 6 +- components/Tag.vue | 2 +- components/content/image.vue | 3 +- nuxt.config.ts | 2 - package.json | 3 +- yarn.lock | 2790 ++++++++++++-------------------- 8 files changed, 1069 insertions(+), 1784 deletions(-) diff --git a/components/HomeStatBox.vue b/components/HomeStatBox.vue index 010beff..6320005 100644 --- a/components/HomeStatBox.vue +++ b/components/HomeStatBox.vue @@ -1,30 +1,21 @@ diff --git a/components/PostPreviewCard.vue b/components/PostPreviewCard.vue index 1b2dca6..1cfdbf4 100644 --- a/components/PostPreviewCard.vue +++ b/components/PostPreviewCard.vue @@ -2,15 +2,15 @@ import type { StoryParsedContent, BlogParsedContent } from "@/shared/types"; import { calcReadingTime } from "@/shared/metadata"; -const { post, type, highlighttags } = defineProps<{ +const props = defineProps<{ post: StoryParsedContent | BlogParsedContent; type: "stories" | "blog"; highlighttags?: string[]; }>(); -const readingTime = calcReadingTime(post); +const readingTime = calcReadingTime(props.post); const descText = - type === "stories" + props.type === "stories" ? `${readingTime.words.total} words` : `${readingTime.minutes} min read`; diff --git a/components/ProjectCard.vue b/components/ProjectCard.vue index c5d1c84..0c6d327 100644 --- a/components/ProjectCard.vue +++ b/components/ProjectCard.vue @@ -1,12 +1,14 @@