federation page proper in admin
This commit is contained in:
parent
f54233030b
commit
6d3a03d9b6
4 changed files with 32 additions and 2 deletions
|
@ -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",
|
||||||
|
|
26
packages/client/src/pages/admin/federation.vue
Normal file
26
packages/client/src/pages/admin/federation.vue
Normal 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>
|
|
@ -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',
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue