2020-01-29 11:37:25 -08:00
|
|
|
<template>
|
2021-04-24 20:31:11 -07:00
|
|
|
<FormBase>
|
2021-09-29 08:50:45 -07:00
|
|
|
<div class="_debobigegoItem">
|
|
|
|
<div class="_debobigegoPanel fwhjspax">
|
2021-04-24 20:31:11 -07:00
|
|
|
<img :src="$instance.iconUrl || $instance.faviconUrl || '/favicon.ico'" alt="" class="icon"/>
|
|
|
|
<span class="name">{{ $instance.name || host }}</span>
|
|
|
|
</div>
|
2020-10-17 04:12:00 -07:00
|
|
|
</div>
|
2021-04-24 20:31:11 -07:00
|
|
|
|
|
|
|
<FormTextarea readonly :value="$instance.description">
|
|
|
|
</FormTextarea>
|
|
|
|
|
2020-11-27 19:44:39 -08:00
|
|
|
<FormGroup>
|
|
|
|
<FormKeyValueView>
|
|
|
|
<template #key>Misskey</template>
|
|
|
|
<template #value>v{{ version }}</template>
|
|
|
|
</FormKeyValueView>
|
2021-04-24 20:31:11 -07:00
|
|
|
<FormLink to="/about-misskey">{{ $ts.aboutMisskey }}</FormLink>
|
2020-11-27 19:44:39 -08:00
|
|
|
</FormGroup>
|
|
|
|
|
|
|
|
<FormGroup>
|
|
|
|
<FormKeyValueView>
|
2020-12-25 17:47:36 -08:00
|
|
|
<template #key>{{ $ts.administrator }}</template>
|
2021-04-24 20:31:11 -07:00
|
|
|
<template #value>{{ $instance.maintainerName }}</template>
|
2020-11-27 19:44:39 -08:00
|
|
|
</FormKeyValueView>
|
|
|
|
<FormKeyValueView>
|
2020-12-25 17:47:36 -08:00
|
|
|
<template #key>{{ $ts.contact }}</template>
|
2021-04-24 20:31:11 -07:00
|
|
|
<template #value>{{ $instance.maintainerEmail }}</template>
|
2020-11-27 19:44:39 -08:00
|
|
|
</FormKeyValueView>
|
|
|
|
</FormGroup>
|
2020-11-29 05:59:09 -08:00
|
|
|
|
2021-04-24 20:31:11 -07:00
|
|
|
<FormLink v-if="$instance.tosUrl" :to="$instance.tosUrl" external>{{ $ts.tos }}</FormLink>
|
2020-12-30 07:11:06 -08:00
|
|
|
|
2021-04-24 20:31:11 -07:00
|
|
|
<FormSuspense :p="initStats">
|
|
|
|
<FormGroup>
|
|
|
|
<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>
|
|
|
|
</FormSuspense>
|
|
|
|
|
|
|
|
<FormGroup>
|
|
|
|
<template #label>Well-known resources</template>
|
|
|
|
<FormLink :to="`/.well-known/host-meta`" external>host-meta</FormLink>
|
|
|
|
<FormLink :to="`/.well-known/host-meta.json`" external>host-meta.json</FormLink>
|
|
|
|
<FormLink :to="`/.well-known/nodeinfo`" external>nodeinfo</FormLink>
|
|
|
|
<FormLink :to="`/robots.txt`" external>robots.txt</FormLink>
|
|
|
|
<FormLink :to="`/manifest.json`" external>manifest.json</FormLink>
|
2020-12-30 07:11:06 -08:00
|
|
|
</FormGroup>
|
2020-11-27 19:44:39 -08:00
|
|
|
</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';
|
2021-03-23 01:30:14 -07:00
|
|
|
import { version, instanceName } from '@client/config';
|
2021-09-29 08:50:45 -07:00
|
|
|
import FormLink from '@client/components/debobigego/link.vue';
|
|
|
|
import FormBase from '@client/components/debobigego/base.vue';
|
|
|
|
import FormGroup from '@client/components/debobigego/group.vue';
|
|
|
|
import FormKeyValueView from '@client/components/debobigego/key-value-view.vue';
|
|
|
|
import FormTextarea from '@client/components/debobigego/textarea.vue';
|
|
|
|
import FormSuspense from '@client/components/debobigego/suspense.vue';
|
2021-03-23 01:30:14 -07:00
|
|
|
import * as os from '@client/os';
|
|
|
|
import number from '@client/filters/number';
|
2021-04-09 20:54:12 -07:00
|
|
|
import * as symbols from '@client/symbols';
|
2021-04-24 20:31:11 -07:00
|
|
|
import { host } from '@client/config';
|
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,
|
2021-04-24 20:31:11 -07:00
|
|
|
FormTextarea,
|
|
|
|
FormSuspense,
|
2020-02-16 09:21:27 -08:00
|
|
|
},
|
|
|
|
|
2020-01-29 11:37:25 -08:00
|
|
|
data() {
|
|
|
|
return {
|
2021-04-09 20:54:12 -07:00
|
|
|
[symbols.PAGE_INFO]: {
|
2020-12-25 17:47:36 -08:00
|
|
|
title: this.$ts.instanceInfo,
|
2021-04-20 07:22:59 -07:00
|
|
|
icon: 'fas fa-info-circle'
|
2020-10-17 04:12:00 -07:00
|
|
|
},
|
2021-04-24 20:31:11 -07:00
|
|
|
host,
|
2020-01-29 11:37:25 -08:00
|
|
|
version,
|
2020-11-27 19:44:39 -08:00
|
|
|
instanceName,
|
2020-12-30 07:11:06 -08:00
|
|
|
stats: null,
|
2021-04-24 20:31:11 -07:00
|
|
|
initStats: () => os.api('stats', {
|
|
|
|
}).then((stats) => {
|
|
|
|
this.stats = stats;
|
|
|
|
})
|
2020-01-29 11:37:25 -08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-12-30 07:11:06 -08:00
|
|
|
methods: {
|
|
|
|
number
|
|
|
|
}
|
2020-01-29 11:37:25 -08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-04-24 20:31:11 -07:00
|
|
|
.fwhjspax {
|
|
|
|
padding: 16px;
|
|
|
|
text-align: center;
|
2020-11-27 19:44:39 -08:00
|
|
|
|
2021-04-24 20:31:11 -07:00
|
|
|
> .icon {
|
|
|
|
display: block;
|
|
|
|
margin: auto;
|
|
|
|
height: 64px;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2020-01-29 11:37:25 -08:00
|
|
|
|
2021-04-24 20:31:11 -07:00
|
|
|
> .name {
|
|
|
|
display: block;
|
|
|
|
margin-top: 12px;
|
2020-01-29 11:37:25 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|