feat: added changelog in /about

This commit is contained in:
Corentin Thomasset 2021-05-21 22:51:09 +02:00
parent 2a760bce8a
commit f7378dc042
No known key found for this signature in database
GPG key ID: DBD997E935996158
5 changed files with 90 additions and 7 deletions

View file

@ -2,19 +2,37 @@
<v-row justify="center" align="center">
<v-col cols="12" sm="12" md="8">
<h1>Yolo</h1>
<v-card>
<v-card-title>Changelog</v-card-title>
<v-card-text>
<div class="changelog" v-html="changelog" />
</v-card-text>
</v-card>
</v-col>
</v-row>
</template>
<script>
import {Component, Vue} from 'nuxt-property-decorator'
import changelog from '@/CHANGELOG.md'
@Component
export default class About extends Vue {
changelog = changelog.replace(/<h1>(.*?)<\/p>/is, '') // Remove h1 and first paragraphe
}
</script>
<style lang="less">
.changelog {
h2 {
margin-top: 25px;
color: #ffffff;
}
h3 {
margin-top: 10px;
padding-left: 5px;
}
}
</style>