Sharkey/src/client/pages/about.vue

72 lines
1.4 KiB
Vue
Raw Normal View History

<template>
<div class="mmnnbwxb">
<portal to="icon"><fa :icon="faInfoCircle"/></portal>
2020-07-24 19:36:39 +03:00
<portal to="title" v-t="'about'"></portal>
2020-01-30 04:10:42 +02:00
<section class="_card info" v-if="meta">
<div class="_title"><fa :icon="faInfoCircle"/> {{ $t('instanceInfo') }}</div>
<div class="_content" v-if="meta.description">
2020-02-11 23:19:31 +02:00
<div v-html="meta.description"></div>
</div>
<div class="_content table">
2020-07-24 19:36:39 +03:00
<div><b v-t="'administrator'"></b><span>{{ meta.maintainerName }}</span></div>
<div><b></b><span>{{ meta.maintainerEmail }}</span></div>
</div>
<div class="_content table">
<div><b>Misskey</b><span>v{{ version }}</span></div>
</div>
</section>
2020-02-16 19:21:27 +02:00
<mk-instance-stats style="margin-top: var(--margin);"/>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
import { version } from '../config';
2020-02-16 19:21:27 +02:00
import MkInstanceStats from '../components/instance-stats.vue';
export default Vue.extend({
metaInfo() {
return {
title: this.$t('instance') as string
};
},
2020-02-16 19:21:27 +02:00
components: {
MkInstanceStats
},
data() {
return {
version,
serverInfo: null,
faInfoCircle
}
},
computed: {
meta() {
return this.$store.state.instance.meta;
},
},
});
</script>
<style lang="scss" scoped>
.mmnnbwxb {
> .info {
> .table {
> div {
display: flex;
> * {
flex: 1;
}
}
}
}
}
</style>