2018-02-10 21:42:02 -06:00
|
|
|
<template>
|
2018-02-18 23:29:42 -06:00
|
|
|
<span class="mk-nav">
|
2018-11-08 12:44:35 -06:00
|
|
|
<a :href="aboutUrl">{{ $t('about') }}</a>
|
2018-02-10 21:42:02 -06:00
|
|
|
<i>・</i>
|
2018-11-08 12:44:35 -06:00
|
|
|
<a :href="repositoryUrl">{{ $t('repository') }}</a>
|
2018-02-10 21:42:02 -06:00
|
|
|
<i>・</i>
|
2018-11-08 12:44:35 -06:00
|
|
|
<a :href="feedbackUrl" target="_blank">{{ $t('feedback') }}</a>
|
2018-04-17 05:40:02 -05:00
|
|
|
<i>・</i>
|
2018-11-08 12:44:35 -06:00
|
|
|
<a href="/dev">{{ $t('develop') }}</a>
|
2018-02-10 21:42:02 -06:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-08 12:44:35 -06:00
|
|
|
import i18n from '../../../i18n';
|
2018-08-21 19:31:35 -05:00
|
|
|
import { lang } from '../../../config';
|
2018-02-10 21:42:02 -06:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-08 12:44:35 -06:00
|
|
|
i18n: i18n('common/views/components/nav.vue'),
|
2018-02-10 21:42:02 -06:00
|
|
|
data() {
|
|
|
|
return {
|
2018-08-21 19:31:35 -05:00
|
|
|
aboutUrl: `/docs/${lang}/about`,
|
|
|
|
repositoryUrl: 'https://github.com/syuilo/misskey',
|
|
|
|
feedbackUrl: 'https://github.com/syuilo/misskey/issues/new'
|
2018-02-10 21:42:02 -06:00
|
|
|
}
|
2018-08-21 19:31:35 -05:00
|
|
|
},
|
|
|
|
created() {
|
|
|
|
(this as any).os.getMeta().then(meta => {
|
2018-08-25 12:05:13 -05:00
|
|
|
if (meta.maintainer.repository_url) this.repositoryUrl = meta.maintainer.repository_url;
|
|
|
|
if (meta.maintainer.feedback_url) this.feedbackUrl = meta.maintainer.feedback_url;
|
2018-08-21 19:31:35 -05:00
|
|
|
});
|
2018-02-10 21:42:02 -06:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2018-02-18 23:29:42 -06:00
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.mk-nav
|
|
|
|
a
|
|
|
|
color inherit
|
|
|
|
</style>
|