2023-06-05 23:30:46 +00:00
|
|
|
<template>
|
2023-06-25 18:43:42 +00:00
|
|
|
<Shelf :shelf="shelf">
|
2023-06-05 23:30:46 +00:00
|
|
|
<ul class="posts nolist">
|
|
|
|
<li
|
|
|
|
v-for="post in posts"
|
|
|
|
:key="post.id"
|
2023-06-25 18:43:42 +00:00
|
|
|
class="post-item"
|
2023-06-25 17:52:00 +00:00
|
|
|
>
|
|
|
|
<Post
|
|
|
|
:post="post"
|
|
|
|
:shelf="shelf"
|
|
|
|
/>
|
|
|
|
</li>
|
2023-06-05 23:30:46 +00:00
|
|
|
</ul>
|
2023-06-25 18:43:42 +00:00
|
|
|
</Shelf>
|
2023-06-05 23:30:46 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2023-06-25 18:43:42 +00:00
|
|
|
import Shelf from '../../templates/shelves/shelf.vue';
|
2023-06-25 17:52:00 +00:00
|
|
|
import Post from '../../components/posts/post.vue';
|
2023-06-05 23:30:46 +00:00
|
|
|
|
2023-06-25 17:52:00 +00:00
|
|
|
import { usePageContext } from '../../renderer/usePageContext';
|
2023-06-05 23:30:46 +00:00
|
|
|
|
2023-06-25 18:43:42 +00:00
|
|
|
const { pageData } = usePageContext();
|
2023-06-05 23:30:46 +00:00
|
|
|
|
|
|
|
const {
|
|
|
|
shelf,
|
|
|
|
posts,
|
|
|
|
} = pageData;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.posts {
|
2023-06-25 18:43:42 +00:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
2023-06-25 21:50:08 +00:00
|
|
|
flex-direction: column;
|
2023-06-05 23:30:46 +00:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2023-06-25 18:43:42 +00:00
|
|
|
|
|
|
|
.post-item {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2023-06-05 23:30:46 +00:00
|
|
|
</style>
|