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 {
|
@media print {
|
||||||
.title {
|
.title {
|
||||||
display: none;
|
/* display: none; */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<section :class="['content', currentStream]">
|
<section :class="['content', currentStream]">
|
||||||
<div
|
<h1 class="title"> {{ currentStream }} </h1>
|
||||||
|
<Chapter
|
||||||
v-for="topic in sortedTopics"
|
v-for="topic in sortedTopics"
|
||||||
:key="topic.title"
|
:key="topic.title"
|
||||||
:class="['body', topic.title]"
|
:topic="topic"
|
||||||
>
|
/>
|
||||||
<h1>{{ topic.title }}</h1>
|
|
||||||
<span v-for="message in topic.messages" :key="message.id">
|
|
||||||
<Message :message="message" />
|
|
||||||
<span> </span>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters, mapState } from "vuex";
|
import { mapGetters, mapState } from "vuex";
|
||||||
import Message from "./Message";
|
import Chapter from './Chapter.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Content",
|
name: "Content",
|
||||||
components: {
|
components: {
|
||||||
Message,
|
Chapter,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["rules", "currentStream"]),
|
...mapState(["currentStream"]),
|
||||||
...mapGetters(["sortedTopics"]),
|
...mapGetters(["sortedTopics"]),
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
|
|
@ -38,7 +33,7 @@ export default {
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.title {
|
.title {
|
||||||
display: none;
|
/* display: none; */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Loading…
Reference in a new issue