mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-26 04:28:17 +09:00
48 lines
1.1 KiB
Vue
48 lines
1.1 KiB
Vue
<template>
|
|
<span class="mk-nav">
|
|
<a :href="aboutUrl">{{ $t('about') }}</a>
|
|
<template v-if="ToSUrl !== null">
|
|
<i>・</i>
|
|
<a :href="ToSUrl" target="_blank">{{ $t('tos') }}</a>
|
|
</template>
|
|
<i>・</i>
|
|
<a :href="repositoryUrl" rel="noopener" target="_blank">{{ $t('repository') }}</a>
|
|
<i>・</i>
|
|
<a :href="feedbackUrl" rel="noopener" target="_blank">{{ $t('feedback') }}</a>
|
|
<i>・</i>
|
|
<a href="/dev" target="_blank">{{ $t('develop') }}</a>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import i18n from '../../../i18n';
|
|
import { lang } from '../../../config';
|
|
|
|
export default Vue.extend({
|
|
i18n: i18n('common/views/components/nav.vue'),
|
|
data() {
|
|
return {
|
|
aboutUrl: `/docs/${lang}/about`,
|
|
repositoryUrl: 'https://github.com/syuilo/misskey',
|
|
feedbackUrl: 'https://github.com/syuilo/misskey/issues/new',
|
|
ToSUrl: null
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
this.$root.getMeta(true).then(meta => {
|
|
this.repositoryUrl = meta.repositoryUrl;
|
|
this.feedbackUrl = meta.feedbackUrl;
|
|
this.ToSUrl = meta.ToSUrl;
|
|
})
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
.mk-nav
|
|
a
|
|
color inherit
|
|
</style>
|