2020-09-26 00:09:20 +00:00
|
|
|
<template lang="html">
|
2020-09-28 16:24:54 +00:00
|
|
|
<b-container fluid>
|
2020-09-26 00:24:18 +00:00
|
|
|
<b-jumbotron
|
|
|
|
header="About Gamebrary"
|
|
|
|
header-level="5"
|
|
|
|
fluid
|
|
|
|
lead="Links to github here"
|
2020-09-26 00:09:20 +00:00
|
|
|
/>
|
|
|
|
|
2020-09-26 00:24:18 +00:00
|
|
|
<b-container>
|
|
|
|
<vue-markdown
|
|
|
|
class="w-100"
|
|
|
|
v-if="readme"
|
|
|
|
:source="readme"
|
|
|
|
/>
|
2020-09-26 00:09:20 +00:00
|
|
|
|
2020-09-26 00:24:18 +00:00
|
|
|
<small>©{{ currentYear }} Gamebrary</small>
|
|
|
|
</b-container>
|
2020-09-28 16:24:54 +00:00
|
|
|
</b-container>
|
2020-09-26 00:09:20 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import VueMarkdown from 'vue-markdown';
|
|
|
|
import moment from 'moment';
|
|
|
|
import Placeholder from '@/components/Placeholder';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
VueMarkdown,
|
|
|
|
Placeholder,
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
readme: null,
|
|
|
|
repo: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
currentYear() {
|
|
|
|
return new Date().getFullYear();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
this.load();
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
formatDate(date) {
|
|
|
|
return moment(date).format('LL');
|
|
|
|
},
|
|
|
|
|
|
|
|
async load() {
|
|
|
|
this.readme = await this.$store.dispatch('LOAD_GITHUB_README');
|
|
|
|
this.repo = await this.$store.dispatch('LOAD_GITHUB_REPOSITORY');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|