1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-18 16:48:30 +09:00
cherrypick/src/client/app/common/views/components/nav.vue

48 lines
1.1 KiB
Vue
Raw Normal View History

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