mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-24 08:46:15 -04:00
feat: added changelog in /about
This commit is contained in:
parent
2a760bce8a
commit
f7378dc042
5 changed files with 90 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue