sharkey/src/client/pages/about.vue
2020-11-03 20:36:12 +09:00

72 lines
1.3 KiB
Vue

<template>
<div class="mmnnbwxb">
<section class="_section info" v-if="meta">
<div class="_title"><Fa :icon="faInfoCircle"/> {{ $t('instanceInfo') }}</div>
<div class="_content" v-if="meta.description">
<div v-html="meta.description"></div>
</div>
<div class="_content table">
<div><b>{{ $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>
<div class="_section">
<div class="_content">
<MkInstanceStats/>
</div>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
import { version } from '@/config';
import MkInstanceStats from '@/components/instance-stats.vue';
import * as os from '@/os';
export default defineComponent({
components: {
MkInstanceStats
},
data() {
return {
INFO: {
title: this.$t('about'),
icon: faInfoCircle
},
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>