2020-01-29 21:37:25 +02:00
|
|
|
<template>
|
2020-11-28 05:44:39 +02: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 14:12:00 +03:00
|
|
|
</div>
|
2020-11-28 05:44:39 +02:00
|
|
|
<FormGroup>
|
|
|
|
<FormKeyValueView>
|
|
|
|
<template #key>Misskey</template>
|
|
|
|
<template #value>v{{ version }}</template>
|
|
|
|
</FormKeyValueView>
|
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
<FormGroup>
|
|
|
|
<FormKeyValueView>
|
2020-12-26 03:47:36 +02:00
|
|
|
<template #key>{{ $ts.administrator }}</template>
|
2020-11-28 05:44:39 +02:00
|
|
|
<template #value>{{ meta.maintainerName }}</template>
|
|
|
|
</FormKeyValueView>
|
|
|
|
<FormKeyValueView>
|
2020-12-26 03:47:36 +02:00
|
|
|
<template #key>{{ $ts.contact }}</template>
|
2020-11-28 05:44:39 +02:00
|
|
|
<template #value>{{ meta.maintainerEmail }}</template>
|
|
|
|
</FormKeyValueView>
|
|
|
|
</FormGroup>
|
2020-11-29 15:59:09 +02:00
|
|
|
|
2020-12-26 03:47:36 +02:00
|
|
|
<FormLink v-if="meta.tosUrl" :to="meta.tosUrl" external>{{ $ts.tos }}</FormLink>
|
2020-12-30 17:11:06 +02:00
|
|
|
|
|
|
|
<FormGroup v-if="stats">
|
|
|
|
<template #label>{{ $ts.statistics }}</template>
|
|
|
|
<FormKeyValueView>
|
|
|
|
<template #key>{{ $ts.users }}</template>
|
|
|
|
<template #value>{{ number(stats.originalUsersCount) }}</template>
|
|
|
|
</FormKeyValueView>
|
|
|
|
<FormKeyValueView>
|
|
|
|
<template #key>{{ $ts.notes }}</template>
|
|
|
|
<template #value>{{ number(stats.originalNotesCount) }}</template>
|
|
|
|
</FormKeyValueView>
|
|
|
|
</FormGroup>
|
2020-11-28 05:44:39 +02:00
|
|
|
</FormBase>
|
2020-01-29 21:37:25 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 14:12:00 +03:00
|
|
|
import { defineComponent } from 'vue';
|
2020-01-29 21:37:25 +02:00
|
|
|
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
|
2021-03-23 10:30:14 +02:00
|
|
|
import { version, instanceName } from '@client/config';
|
|
|
|
import FormLink from '@client/components/form/link.vue';
|
|
|
|
import FormBase from '@client/components/form/base.vue';
|
|
|
|
import FormGroup from '@client/components/form/group.vue';
|
|
|
|
import FormKeyValueView from '@client/components/form/key-value-view.vue';
|
|
|
|
import * as os from '@client/os';
|
|
|
|
import number from '@client/filters/number';
|
2021-04-10 06:54:12 +03:00
|
|
|
import * as symbols from '@client/symbols';
|
2020-01-29 21:37:25 +02:00
|
|
|
|
2020-10-17 14:12:00 +03:00
|
|
|
export default defineComponent({
|
2020-02-16 19:21:27 +02:00
|
|
|
components: {
|
2020-11-28 05:44:39 +02:00
|
|
|
FormBase,
|
|
|
|
FormGroup,
|
|
|
|
FormLink,
|
|
|
|
FormKeyValueView,
|
2020-02-16 19:21:27 +02:00
|
|
|
},
|
|
|
|
|
2020-01-29 21:37:25 +02:00
|
|
|
data() {
|
|
|
|
return {
|
2021-04-10 06:54:12 +03:00
|
|
|
[symbols.PAGE_INFO]: {
|
2020-12-26 03:47:36 +02:00
|
|
|
title: this.$ts.instanceInfo,
|
2020-11-03 13:36:12 +02:00
|
|
|
icon: faInfoCircle
|
2020-10-17 14:12:00 +03:00
|
|
|
},
|
2020-01-29 21:37:25 +02:00
|
|
|
version,
|
2020-11-28 05:44:39 +02:00
|
|
|
instanceName,
|
2020-12-30 17:11:06 +02:00
|
|
|
stats: null,
|
2020-01-29 21:37:25 +02:00
|
|
|
faInfoCircle
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-02-10 16:17:42 +02:00
|
|
|
computed: {
|
|
|
|
meta() {
|
2020-12-19 03:55:52 +02:00
|
|
|
return this.$instance;
|
2020-02-10 16:17:42 +02:00
|
|
|
},
|
|
|
|
},
|
2020-12-30 17:11:06 +02:00
|
|
|
|
|
|
|
created() {
|
|
|
|
os.api('stats').then(stats => {
|
|
|
|
this.stats = stats;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
number
|
|
|
|
}
|
2020-01-29 21:37:25 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.mmnnbwxb {
|
2020-11-28 05:44:39 +02:00
|
|
|
max-width: 800px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
> .logo {
|
|
|
|
text-align: center;
|
2020-01-29 21:37:25 +02:00
|
|
|
|
2020-11-28 05:44:39 +02:00
|
|
|
> img {
|
|
|
|
vertical-align: bottom;
|
|
|
|
max-height: 100px;
|
2020-01-29 21:37:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|