統計情報を隠した

This commit is contained in:
hijiki 2024-10-19 17:17:33 +09:00
parent 315d5af93f
commit 6ea7c37fc8
3 changed files with 22 additions and 10 deletions

View File

@ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
</div> </div>
</div> </div>
<div v-if="stats" :class="$style.stats"> <!-- <div v-if="stats" :class="$style.stats">
<div :class="[$style.statsItem, $style.panel]"> <div :class="[$style.statsItem, $style.panel]">
<div :class="$style.statsItemLabel">{{ i18n.ts.users }}</div> <div :class="$style.statsItemLabel">{{ i18n.ts.users }}</div>
<div :class="$style.statsItemCount"><MkNumber :value="stats.originalUsersCount"/></div> <div :class="$style.statsItemCount"><MkNumber :value="stats.originalUsersCount"/></div>
@ -40,16 +40,16 @@ SPDX-License-Identifier: AGPL-3.0-only
<div :class="$style.statsItemLabel">{{ i18n.ts.notes }}</div> <div :class="$style.statsItemLabel">{{ i18n.ts.notes }}</div>
<div :class="$style.statsItemCount"><MkNumber :value="stats.originalNotesCount"/></div> <div :class="$style.statsItemCount"><MkNumber :value="stats.originalNotesCount"/></div>
</div> </div>
</div> </div> -->
<div v-if="instance.policies.ltlAvailable" :class="[$style.tl, $style.panel]"> <div v-if="instance.policies.ltlAvailable" :class="[$style.tl, $style.panel]">
<div :class="$style.tlHeader">{{ i18n.ts.letsLookAtTimeline }}</div> <div :class="$style.tlHeader">{{ i18n.ts.letsLookAtTimeline }}</div>
<div :class="$style.tlBody"> <div :class="$style.tlBody">
<MkTimeline src="local"/> <MkTimeline src="local"/>
</div> </div>
</div> </div>
<div :class="$style.panel"> <!-- <div :class="$style.panel">
<XActiveUsersChart/> <XActiveUsersChart/>
</div> </div> -->
</div> </div>
</template> </template>

View File

@ -100,7 +100,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
</FormSection> </FormSection>
<FormSuspense v-slot="{ result: stats }" :p="initStats"> <!-- <FormSuspense v-slot="{ result: stats }" :p="initStats">
<FormSection> <FormSection>
<template #label>{{ i18n.ts.statistics }}</template> <template #label>{{ i18n.ts.statistics }}</template>
<FormSplit> <FormSplit>
@ -114,9 +114,9 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkKeyValue> </MkKeyValue>
</FormSplit> </FormSplit>
</FormSection> </FormSection>
</FormSuspense> </FormSuspense> -->
<FormSection> <!-- <FormSection>
<template #label>Well-known resources</template> <template #label>Well-known resources</template>
<div class="_gaps_s"> <div class="_gaps_s">
<FormLink to="/.well-known/host-meta" external>host-meta</FormLink> <FormLink to="/.well-known/host-meta" external>host-meta</FormLink>
@ -125,7 +125,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<FormLink to="/robots.txt" external>robots.txt</FormLink> <FormLink to="/robots.txt" external>robots.txt</FormLink>
<FormLink to="/manifest.json" external>manifest.json</FormLink> <FormLink to="/manifest.json" external>manifest.json</FormLink>
</div> </div>
</FormSection> </FormSection> -->
</div> </div>
</template> </template>

View File

@ -6,6 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template> <template>
<div v-if="meta" class="rsqzvsbo"> <div v-if="meta" class="rsqzvsbo">
<MkFeaturedPhotos class="bg"/> <MkFeaturedPhotos class="bg"/>
<!-- <XTimeline class="tl"/> -->
<div class="shape1"></div> <div class="shape1"></div>
<div class="shape2"></div> <div class="shape2"></div>
<div class="logo-wrapper"> <div class="logo-wrapper">
@ -22,12 +23,23 @@ SPDX-License-Identifier: AGPL-3.0-only
<div class="contents"> <div class="contents">
<MkVisitorDashboard/> <MkVisitorDashboard/>
</div> </div>
<!-- <div v-if="instances && instances.length > 0" class="federation">
<MarqueeText :duration="40">
<MkA v-for="instance in instances" :key="instance.id" :class="$style.federationInstance" :to="`/instance-info/${instance.host}`" behavior="window">
<MkInstanceCardMini :instance="instance"/>
<img v-if="instance.iconUrl" class="icon" :src="getInstanceIcon(instance)" alt=""/>
<span class="name _monospace">{{ instance.host }}</span>
</MkA>
</MarqueeText>
</div> -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from 'vue'; import { ref } from 'vue';
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
// import XTimeline from './welcome.timeline.vue';
// import MarqueeText from '@/components/MkMarquee.vue';
import MkFeaturedPhotos from '@/components/MkFeaturedPhotos.vue'; import MkFeaturedPhotos from '@/components/MkFeaturedPhotos.vue';
import misskeysvg from '/client-assets/sharkey.svg'; import misskeysvg from '/client-assets/sharkey.svg';
import { misskeyApiGet } from '@/scripts/misskey-api.js'; import { misskeyApiGet } from '@/scripts/misskey-api.js';