mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 23:43:09 +02:00
42 lines
805 B
Vue
42 lines
805 B
Vue
<template>
|
|
<div>
|
|
<portal to="icon"><fa :icon="faQuestionCircle"/></portal>
|
|
<portal to="title">{{ $t('help') }}</portal>
|
|
<main class="_card">
|
|
<div class="_content">
|
|
<ul>
|
|
<li v-for="doc in docs" :key="doc.path">
|
|
<router-link :to="`/docs/${doc.path}`">{{ doc.title }}</router-link>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons'
|
|
import { url, lang } from '../config';
|
|
|
|
export default Vue.extend({
|
|
metaInfo() {
|
|
return {
|
|
title: this.$t('help') as string,
|
|
};
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
docs: [],
|
|
faQuestionCircle
|
|
}
|
|
},
|
|
|
|
created() {
|
|
fetch(`${url}/docs.json?lang=${lang}`).then(res => res.json()).then(docs => {
|
|
this.docs = docs;
|
|
});
|
|
},
|
|
});
|
|
</script>
|