chapter expand / collaspe
This commit is contained in:
parent
1c8921dff3
commit
2ee27004af
3 changed files with 74 additions and 15755 deletions
15806
front/package-lock.json
generated
15806
front/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -191,7 +191,7 @@ section p {
|
|||
}
|
||||
@media print {
|
||||
.title {
|
||||
display: none;
|
||||
/* display: none; */
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,30 +1,25 @@
|
|||
<template>
|
||||
<section :class="['content', currentStream]">
|
||||
<div
|
||||
<h1 class="title"> {{ currentStream }} </h1>
|
||||
<Chapter
|
||||
v-for="topic in sortedTopics"
|
||||
:key="topic.title"
|
||||
:class="['body', topic.title]"
|
||||
>
|
||||
<h1>{{ topic.title }}</h1>
|
||||
<span v-for="message in topic.messages" :key="message.id">
|
||||
<Message :message="message" />
|
||||
<span> </span>
|
||||
</span>
|
||||
</div>
|
||||
:topic="topic"
|
||||
/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters, mapState } from "vuex";
|
||||
import Message from "./Message";
|
||||
import Chapter from './Chapter.vue';
|
||||
|
||||
export default {
|
||||
name: "Content",
|
||||
components: {
|
||||
Message,
|
||||
Chapter,
|
||||
},
|
||||
computed: {
|
||||
...mapState(["rules", "currentStream"]),
|
||||
...mapState(["currentStream"]),
|
||||
...mapGetters(["sortedTopics"]),
|
||||
},
|
||||
methods: {},
|
||||
|
|
@ -38,7 +33,7 @@ export default {
|
|||
}
|
||||
@media print {
|
||||
.title {
|
||||
display: none;
|
||||
/* display: none; */
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in a new issue