shack/pages/index/index.page.vue

43 lines
691 B
Vue
Raw Normal View History

<template>
<div class="content">
<ul>
<li><a
href="/shelf/1"
class="link"
>Go to shelf</a></li>
<li><a
href="/shelf/create"
class="link"
>Create new shelf</a></li>
<li><a
href="/account/login"
class="link"
>Log in</a></li>
<li><a
href="/account/create"
class="link"
>Sign up</a></li>
</ul>
2023-06-03 21:32:50 +00:00
<ul>
<li
v-for="shelf in shelves"
:key="shelf.id"
><a
:href="`/s/${shelf.slug}`"
class="link"
>{{ shelf.slug }}</a></li>
</ul>
</div>
</template>
2023-06-03 21:32:50 +00:00
<script setup>
import { usePageContext } from '../../renderer/usePageContext';
const { pageData } = usePageContext();
const { shelves } = pageData;
</script>