Skip to content

Commit

Permalink
chore: add links to playground
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 21, 2024
1 parent 827409b commit 9771234
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
25 changes: 25 additions & 0 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script setup lang="ts">
const routes = useRouter().getRoutes().sort((a, b) => a.path.localeCompare(b.path))
</script>

<template>
<div class="p-8">
<ul>
<li
v-for="route in routes"
:key="route.path"
>
<NuxtLink
:to="route.path"
active-class="font-bold"
no-prefetch
>
{{ route.path }}
</NuxtLink>
</li>
</ul>
<hr class="my-8">
<NuxtPage />
</div>
</template>

3 changes: 2 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"@nuxtjs/tailwindcss": "latest",
"nuxt": "latest",
"tailwindcss": "^3.4.1",
"vue": "latest"
"vue": "latest",
"vue-router": "latest"
},
"devDependencies": {
"sass": "^1.71.0"
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9771234

Please sign in to comment.