summaryrefslogtreecommitdiff
path: root/components/AdminSidebar.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/AdminSidebar.vue
parent585317bcf53db267366a64b8c896ebc52d527ee7 (diff)
Add prefetching using `nuxt-link` (#1)
Diffstat (limited to 'components/AdminSidebar.vue')
-rw-r--r--components/AdminSidebar.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/AdminSidebar.vue b/components/AdminSidebar.vue
index 0ad19fd..ad8e162 100644
--- a/components/AdminSidebar.vue
+++ b/components/AdminSidebar.vue
@@ -1,21 +1,21 @@
<template lang="pug">
ul.space-y-6.border-l.border-gray-300(class="dark:border-gray-800")
li
- a.block.border-l.pl-4.border-transparent.text-gray-700(
+ nuxt-link.block.border-l.pl-4.border-transparent.text-gray-700(
:class="{'hover:border-gray-400 dark:hover:border-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300': true, 'font-semibold hover:text-green-800 text-green-700 dark:text-green-400 dark:hover:text-green-500 border-green-500': page == 'admin'}"
- href="/admin"
+ to="/admin"
)
| Users
li
- a.block.border-l.pl-4.border-transparent.text-gray-700(
+ nuxt-link.block.border-l.pl-4.border-transparent.text-gray-700(
:class="{'hover:border-gray-400 dark:hover:border-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300': true, 'font-semibold hover:text-green-800 text-green-700 dark:text-green-400 dark:hover:text-green-500 border-green-500': page == 'admin-models'}"
- href="/admin/models"
+ to="/admin/models"
)
| Models
li
- a.block.border-l.pl-4.border-transparent.text-gray-700(
+ nuxt-link.block.border-l.pl-4.border-transparent.text-gray-700(
:class="{'hover:border-gray-400 dark:hover:border-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300': true, 'font-semibold hover:text-green-800 text-green-700 dark:text-green-400 dark:hover:text-green-500 border-green-500': page == 'admin-reports'}"
- href="/admin/reports"
+ to="/admin/reports"
)
| Reports
</template>