summaryrefslogtreecommitdiff
path: root/components/ModelBoxCard.vue
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-19 11:51:02 +0200
committerGitHub <noreply@github.com>2022-10-19 11:51:02 +0200
commita294f7d3a24546fb9d2c40ca3992ecdfc93039d8 (patch)
tree02a2181783b16029d91049f2bb2715320b0733a5 /components/ModelBoxCard.vue
parent585317bcf53db267366a64b8c896ebc52d527ee7 (diff)
Add prefetching using `nuxt-link` (#1)
Diffstat (limited to 'components/ModelBoxCard.vue')
-rw-r--r--components/ModelBoxCard.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/ModelBoxCard.vue b/components/ModelBoxCard.vue
index 0bb4419..c022577 100644
--- a/components/ModelBoxCard.vue
+++ b/components/ModelBoxCard.vue
@@ -2,7 +2,7 @@
.model.shadow-sm.rounded-lg.bg-white.p-4.w-full.h-80.duration-300(
class="hover:ease-out hover:shadow-md dark:bg-gray-800 dark:text-white"
)
- a(:href="'/models/'+model.id")
+ nuxt-link(:to="'/models/'+model.id")
.image.bg-gray-900.rounded-xl.w-full.h-48.overflow-hidden
file-preview(
:path="model.uploads[0].filepath"
@@ -12,12 +12,12 @@
.space-y-3.mt-5
h1.truncate.text-xl.font-medium
- a(:href="'/models/'+model.id" class="hover:underline") {{ model.name }}
+ nuxt-link(:to="'/models/'+model.id" class="hover:underline") {{ model.name }}
div
.mr-3.float-left
user-avatar(:data="model.author")
p.leading-8.truncate
- a.text-green-800(class="hover:text-green-700 dark:text-green-300 dark:hover:text-green-200" :href="'/user/'+model.author_id")
+ nuxt-link.text-green-800(class="hover:text-green-700 dark:text-green-300 dark:hover:text-green-200" :to="'/user/'+model.author_id")
| @
span.underline {{ model.author.username }}