1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-04 09:48:11 +09:00

fix(about): hide our federation status

This commit is contained in:
オスカー、 2024-06-20 23:48:05 +09:00
parent 787a02c67f
commit fcbee07f50
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7
5 changed files with 18 additions and 5 deletions

View File

@ -15,7 +15,11 @@ import { sqlLikeEscape } from '@/misc/sql-like-escape.js';
export const meta = {
tags: ['federation'],
requireCredential: false,
requireCredential: true,
requireModerator: true,
kind: 'read:admin:server-info',
allowGet: true,
cacheSec: 3600,

View File

@ -13,7 +13,10 @@ import { DI } from '@/di-symbols.js';
export const meta = {
tags: ['federation'],
requireCredential: false,
requireCredential: true,
requireModerator: true,
kind: 'read:admin:server-info',
res: {
type: 'object',

View File

@ -137,6 +137,7 @@ function createDoughnut(chartEl, tooltip, data) {
bottom: 16,
},
},
/*
onClick: (ev) => {
if (ev.native == null) return;
const hit = chartInstance.getElementsAtEventForMode(ev.native, 'nearest', { intersect: true }, false)[0];
@ -144,6 +145,7 @@ function createDoughnut(chartEl, tooltip, data) {
data[hit.index].onClick();
}
},
*/
plugins: {
legend: {
display: false,

View File

@ -143,9 +143,11 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkSpacer v-else-if="tab === 'emojis'" :contentMax="1000" :marginMin="20">
<XEmojis/>
</MkSpacer>
<!--
<MkSpacer v-else-if="tab === 'federation'" :contentMax="1000" :marginMin="20">
<XFederation/>
</MkSpacer>
-->
<MkSpacer v-else-if="tab === 'charts'" :contentMax="1000" :marginMin="20">
<MkInstanceStats/>
</MkSpacer>
@ -205,11 +207,11 @@ const headerTabs = computed(() => [{
key: 'emojis',
title: i18n.ts.customEmojis,
icon: 'ti ti-icons',
}, {
}, /* {
key: 'federation',
title: i18n.ts.federation,
icon: 'ti ti-whirl',
}, {
}, */ {
key: 'charts',
title: i18n.ts.charts,
icon: 'ti ti-chart-line',

View File

@ -23,15 +23,17 @@ SPDX-License-Identifier: AGPL-3.0-only
<div class="contents">
<MkVisitorDashboard/>
</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"/>-->
<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>
</template>