2020-01-29 11:37:25 -08:00
|
|
|
<template>
|
2020-11-27 19:44:39 -08:00
|
|
|
<FormBase class="mmnnbwxb" v-if="meta">
|
|
|
|
<div class="_formItem logo">
|
|
|
|
<img v-if="meta.logoImageUrl" :src="meta.logoImageUrl">
|
|
|
|
<span v-else class="text">{{ instanceName }}</span>
|
2020-10-17 04:12:00 -07:00
|
|
|
</div>
|
2020-11-27 19:44:39 -08:00
|
|
|
<FormGroup>
|
|
|
|
<FormKeyValueView>
|
|
|
|
<template #key>Misskey</template>
|
|
|
|
<template #value>v{{ version }}</template>
|
|
|
|
</FormKeyValueView>
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
<FormGroup>
|
|
|
|
<FormKeyValueView>
|
|
|
|
<template #key>{{ $t('administrator') }}</template>
|
|
|
|
<template #value>{{ meta.maintainerName }}</template>
|
|
|
|
</FormKeyValueView>
|
|
|
|
<FormKeyValueView>
|
|
|
|
<template #key>{{ $t('contact') }}</template>
|
|
|
|
<template #value>{{ meta.maintainerEmail }}</template>
|
|
|
|
</FormKeyValueView>
|
|
|
|
</FormGroup>
|
|
|
|
</FormBase>
|
2020-01-29 11:37:25 -08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 04:12:00 -07:00
|
|
|
import { defineComponent } from 'vue';
|
2020-01-29 11:37:25 -08:00
|
|
|
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
|
2020-11-27 19:44:39 -08:00
|
|
|
import { version, instanceName } from '@/config';
|
|
|
|
import FormLink from '@/components/form/link.vue';
|
|
|
|
import FormBase from '@/components/form/base.vue';
|
|
|
|
import FormGroup from '@/components/form/group.vue';
|
|
|
|
import FormKeyValueView from '@/components/form/key-value-view.vue';
|
2020-10-17 04:12:00 -07:00
|
|
|
import * as os from '@/os';
|
2020-01-29 11:37:25 -08:00
|
|
|
|
2020-10-17 04:12:00 -07:00
|
|
|
export default defineComponent({
|
2020-02-16 09:21:27 -08:00
|
|
|
components: {
|
2020-11-27 19:44:39 -08:00
|
|
|
FormBase,
|
|
|
|
FormGroup,
|
|
|
|
FormLink,
|
|
|
|
FormKeyValueView,
|
2020-02-16 09:21:27 -08:00
|
|
|
},
|
|
|
|
|
2020-01-29 11:37:25 -08:00
|
|
|
data() {
|
|
|
|
return {
|
2020-10-17 04:12:00 -07:00
|
|
|
INFO: {
|
2020-11-27 19:44:39 -08:00
|
|
|
title: this.$t('instanceInfo'),
|
2020-11-03 03:36:12 -08:00
|
|
|
icon: faInfoCircle
|
2020-10-17 04:12:00 -07:00
|
|
|
},
|
2020-01-29 11:37:25 -08:00
|
|
|
version,
|
2020-11-27 19:44:39 -08:00
|
|
|
instanceName,
|
2020-01-29 11:37:25 -08:00
|
|
|
serverInfo: null,
|
|
|
|
faInfoCircle
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-02-10 06:17:42 -08:00
|
|
|
computed: {
|
|
|
|
meta() {
|
|
|
|
return this.$store.state.instance.meta;
|
|
|
|
},
|
|
|
|
},
|
2020-01-29 11:37:25 -08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.mmnnbwxb {
|
2020-11-27 19:44:39 -08:00
|
|
|
max-width: 800px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
> .logo {
|
|
|
|
text-align: center;
|
2020-01-29 11:37:25 -08:00
|
|
|
|
2020-11-27 19:44:39 -08:00
|
|
|
> img {
|
|
|
|
vertical-align: bottom;
|
|
|
|
max-height: 100px;
|
2020-01-29 11:37:25 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|