chore: vue 3.4 improvements

This commit is contained in:
Daniel Chen 2024-10-16 13:30:57 -04:00
parent 6bf5d77a01
commit 8ca4756609
4 changed files with 4 additions and 8 deletions

View File

@ -20,7 +20,7 @@ onMounted(async () => {
<template> <template>
<div class="prose dark:prose-invert"> <div class="prose dark:prose-invert">
<HomeStatBox <HomeStatBox
:href="href" :href
id="github-commit-a" id="github-commit-a"
color="lightgray" color="lightgray"
darkcolor="slategray" darkcolor="slategray"

View File

@ -31,11 +31,7 @@ const cssVars = {
</script> </script>
<template> <template>
<a <a class="no-underline inline-block flex flex-col items-stretch" :href :id>
class="no-underline inline-block flex flex-col items-stretch"
:href="href"
:id="id"
>
<div class="container box" :style="cssVars"> <div class="container box" :style="cssVars">
<p class="m-0 w-full title">{{ title }}</p> <p class="m-0 w-full title">{{ title }}</p>
<div class="main-content"> <div class="main-content">

View File

@ -35,7 +35,7 @@ const tags = new Set(
<PostPreviewCard <PostPreviewCard
v-for="(post, index) in docs" v-for="(post, index) in docs"
:key="index" :key="index"
:post="post" :post
type="blog" type="blog"
/> />
</main> </main>

View File

@ -34,7 +34,7 @@ useTitle(title + " Posts", details.description);
<PostPreviewCard <PostPreviewCard
v-for="(post, index) in docs" v-for="(post, index) in docs"
:key="index" :key="index"
:post="post" :post
:highlighttags="[tag]" :highlighttags="[tag]"
type="blog" type="blog"
/> />