federation page proper in admin

This commit is contained in:
ThatOneCalculator 2022-11-09 12:18:36 -08:00
parent f54233030b
commit 6d3a03d9b6
4 changed files with 32 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.119.0-calc.10",
"version": "12.119.0-calc.10.1",
"codename": "aqua",
"repository": {
"type": "git",

View file

@ -0,0 +1,26 @@
<template>
<div>
<MkStickyContainer>
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :content-max="900">
<XFederation/>
</MkSpacer>
</MkStickyContainer>
</div>
</template>
<script lang="ts" setup>
import { computed } from 'vue';
import { definePageMetadata } from '@/scripts/page-metadata';
import { i18n } from '@/i18n';
import XFederation from '@/pages/about.federation.vue';
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({
title: i18n.ts.federation,
icon: 'ph-planet-bold ph-lg',
})));
</script>

View file

@ -118,7 +118,7 @@ const menuDef = $computed(() => [{
}, {
icon: 'ph-planet-bold ph-lg',
text: i18n.ts.federation,
to: '/about#federation',
to: '/admin/federation',
active: currentPage?.route.name === 'federation',
}, {
icon: 'ph-clipboard-text-bold ph-lg',

View file

@ -339,6 +339,10 @@ export const routes = [{
path: '/emojis',
name: 'emojis',
component: page(() => import('./pages/admin/emojis.vue')),
}, {
path: '/federation',
name: 'federation',
component: page(() => import('./pages/admin/federation.vue')),
}, {
path: '/queue',
name: 'queue',