chore: switch away from reactivity transform

also use a released version of nuxt
This commit is contained in:
eggy
2023-01-28 15:32:48 -05:00
parent a7f38e77ae
commit 577e00a870
8 changed files with 1069 additions and 1784 deletions

View File

@@ -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`;
</script>