2018-02-11 05:42:02 +02:00
|
|
|
<template>
|
2018-02-19 07:29:42 +02:00
|
|
|
<span class="mk-nav">
|
2018-11-08 20:44:35 +02:00
|
|
|
<a :href="aboutUrl">{{ $t('about') }}</a>
|
2019-05-13 20:57:04 +03:00
|
|
|
<template v-if="ToSUrl !== null">
|
|
|
|
<i>・</i>
|
|
|
|
<a :href="ToSUrl" target="_blank">{{ $t('tos') }}</a>
|
|
|
|
</template>
|
2018-02-11 05:42:02 +02:00
|
|
|
<i>・</i>
|
2019-05-13 20:50:23 +03:00
|
|
|
<a :href="repositoryUrl" rel="noopener" target="_blank">{{ $t('repository') }}</a>
|
2018-02-11 05:42:02 +02:00
|
|
|
<i>・</i>
|
2019-05-13 20:50:23 +03:00
|
|
|
<a :href="feedbackUrl" rel="noopener" target="_blank">{{ $t('feedback') }}</a>
|
2018-04-17 13:40:02 +03:00
|
|
|
<i>・</i>
|
2019-05-13 20:57:04 +03:00
|
|
|
<a href="/dev" target="_blank">{{ $t('develop') }}</a>
|
2018-02-11 05:42:02 +02:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-08 20:44:35 +02:00
|
|
|
import i18n from '../../../i18n';
|
2018-08-22 03:31:35 +03:00
|
|
|
import { lang } from '../../../config';
|
2018-02-11 05:42:02 +02:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-08 20:44:35 +02:00
|
|
|
i18n: i18n('common/views/components/nav.vue'),
|
2018-02-11 05:42:02 +02:00
|
|
|
data() {
|
|
|
|
return {
|
2018-08-22 03:31:35 +03:00
|
|
|
aboutUrl: `/docs/${lang}/about`,
|
|
|
|
repositoryUrl: 'https://github.com/syuilo/misskey',
|
2019-05-13 20:57:04 +03:00
|
|
|
feedbackUrl: 'https://github.com/syuilo/misskey/issues/new',
|
|
|
|
ToSUrl: null
|
2018-02-11 05:42:02 +02:00
|
|
|
}
|
2019-05-13 20:57:04 +03:00
|
|
|
},
|
2019-05-20 16:59:10 +03:00
|
|
|
|
2019-05-13 20:57:04 +03:00
|
|
|
mounted() {
|
|
|
|
this.$root.getMeta(true).then(meta => {
|
|
|
|
this.repositoryUrl = meta.repositoryUrl;
|
|
|
|
this.feedbackUrl = meta.feedbackUrl;
|
|
|
|
this.ToSUrl = meta.ToSUrl;
|
|
|
|
})
|
2018-02-11 05:42:02 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2018-02-19 07:29:42 +02:00
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.mk-nav
|
|
|
|
a
|
|
|
|
color inherit
|
|
|
|
</style>
|