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", "name": "calckey",
"version": "12.119.0-calc.10", "version": "12.119.0-calc.10.1",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "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', icon: 'ph-planet-bold ph-lg',
text: i18n.ts.federation, text: i18n.ts.federation,
to: '/about#federation', to: '/admin/federation',
active: currentPage?.route.name === 'federation', active: currentPage?.route.name === 'federation',
}, { }, {
icon: 'ph-clipboard-text-bold ph-lg', icon: 'ph-clipboard-text-bold ph-lg',

View File

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