1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-05 10:18:09 +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 = { export const meta = {
tags: ['federation'], tags: ['federation'],
requireCredential: false, requireCredential: true,
requireModerator: true,
kind: 'read:admin:server-info',
allowGet: true, allowGet: true,
cacheSec: 3600, cacheSec: 3600,

View File

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

View File

@ -137,6 +137,7 @@ function createDoughnut(chartEl, tooltip, data) {
bottom: 16, bottom: 16,
}, },
}, },
/*
onClick: (ev) => { onClick: (ev) => {
if (ev.native == null) return; if (ev.native == null) return;
const hit = chartInstance.getElementsAtEventForMode(ev.native, 'nearest', { intersect: true }, false)[0]; const hit = chartInstance.getElementsAtEventForMode(ev.native, 'nearest', { intersect: true }, false)[0];
@ -144,6 +145,7 @@ function createDoughnut(chartEl, tooltip, data) {
data[hit.index].onClick(); data[hit.index].onClick();
} }
}, },
*/
plugins: { plugins: {
legend: { legend: {
display: false, 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"> <MkSpacer v-else-if="tab === 'emojis'" :contentMax="1000" :marginMin="20">
<XEmojis/> <XEmojis/>
</MkSpacer> </MkSpacer>
<!--
<MkSpacer v-else-if="tab === 'federation'" :contentMax="1000" :marginMin="20"> <MkSpacer v-else-if="tab === 'federation'" :contentMax="1000" :marginMin="20">
<XFederation/> <XFederation/>
</MkSpacer> </MkSpacer>
-->
<MkSpacer v-else-if="tab === 'charts'" :contentMax="1000" :marginMin="20"> <MkSpacer v-else-if="tab === 'charts'" :contentMax="1000" :marginMin="20">
<MkInstanceStats/> <MkInstanceStats/>
</MkSpacer> </MkSpacer>
@ -205,11 +207,11 @@ const headerTabs = computed(() => [{
key: 'emojis', key: 'emojis',
title: i18n.ts.customEmojis, title: i18n.ts.customEmojis,
icon: 'ti ti-icons', icon: 'ti ti-icons',
}, { }, /* {
key: 'federation', key: 'federation',
title: i18n.ts.federation, title: i18n.ts.federation,
icon: 'ti ti-whirl', icon: 'ti ti-whirl',
}, { }, */ {
key: 'charts', key: 'charts',
title: i18n.ts.charts, title: i18n.ts.charts,
icon: 'ti ti-chart-line', icon: 'ti ti-chart-line',

View File

@ -23,15 +23,17 @@ 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"> <div v-if="instances && instances.length > 0" class="federation">
<MarqueeText :duration="40"> <MarqueeText :duration="40">
<MkA v-for="instance in instances" :key="instance.id" :class="$style.federationInstance" :to="`/instance-info/${instance.host}`" behavior="window"> <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=""/> <img v-if="instance.iconUrl" class="icon" :src="getInstanceIcon(instance)" alt=""/>
<span class="name _monospace">{{ instance.host }}</span> <span class="name _monospace">{{ instance.host }}</span>
</MkA> </MkA>
</MarqueeText> </MarqueeText>
</div> </div>
-->
</div> </div>
</template> </template>