mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 23:13:09 +02:00
254cfaea28
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
40 lines
732 B
Vue
40 lines
732 B
Vue
<template>
|
|
<div>
|
|
<main class="_section">
|
|
<div class="_content">
|
|
<ul>
|
|
<li v-for="doc in docs" :key="doc.path">
|
|
<MkA :to="`/docs/${doc.path}`">{{ doc.title }}</MkA>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons'
|
|
import { url, lang } from '@/config';
|
|
|
|
export default defineComponent({
|
|
data() {
|
|
return {
|
|
INFO: {
|
|
header: [{
|
|
title: this.$t('help'),
|
|
icon: faQuestionCircle
|
|
}],
|
|
},
|
|
docs: [],
|
|
faQuestionCircle
|
|
}
|
|
},
|
|
|
|
created() {
|
|
fetch(`${url}/docs.json?lang=${lang}`).then(res => res.json()).then(docs => {
|
|
this.docs = docs;
|
|
});
|
|
},
|
|
});
|
|
</script>
|