mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-05 02:08:14 +09:00
fix(about): hide our federation status
This commit is contained in:
parent
787a02c67f
commit
fcbee07f50
@ -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,
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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,
|
||||
|
@ -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',
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user