From 6d3a03d9b62fb5fda5d1ee54b5a83602f4dbf917 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 9 Nov 2022 12:18:36 -0800 Subject: [PATCH] federation page proper in admin --- package.json | 2 +- .../client/src/pages/admin/federation.vue | 26 +++++++++++++++++++ packages/client/src/pages/admin/index.vue | 2 +- packages/client/src/router.ts | 4 +++ 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 packages/client/src/pages/admin/federation.vue diff --git a/package.json b/package.json index a915565d91..de78d387b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.10", + "version": "12.119.0-calc.10.1", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/admin/federation.vue b/packages/client/src/pages/admin/federation.vue new file mode 100644 index 0000000000..fb0be9f712 --- /dev/null +++ b/packages/client/src/pages/admin/federation.vue @@ -0,0 +1,26 @@ + + + diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index d370019cd0..80f6355a32 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -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', diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index d290e04417..6f6034eed4 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -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',