1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-27 04:58:40 +09:00
MisskeyIO/src/client/app/common/views/components/nav.vue

39 lines
893 B
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">
2018-04-15 01:04:40 +09:00
<a :href="aboutUrl">%i18n:@about%</a>
2018-02-11 12:42:02 +09:00
<i></i>
<a :href="repositoryUrl">%i18n:@repository%</a>
2018-02-11 12:42:02 +09:00
<i></i>
<a :href="feedbackUrl" target="_blank">%i18n:@feedback%</a>
2018-04-17 19:40:02 +09:00
<i></i>
2018-08-22 09:31:35 +09:00
<a href="/dev">%i18n:@develop%</a>
2018-02-11 12:42:02 +09:00
</span>
</template>
<script lang="ts">
import Vue from 'vue';
2018-08-22 09:31:35 +09:00
import { lang } from '../../../config';
2018-02-11 12:42:02 +09:00
export default Vue.extend({
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'
2018-02-11 12:42:02 +09:00
}
2018-08-22 09:31:35 +09:00
},
created() {
(this as any).os.getMeta().then(meta => {
2018-08-26 02:05:13 +09: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-22 09:31:35 +09:00
});
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>