Merge branch 'rca' into develop

This commit is contained in:
melt_adzuki 2022-08-10 20:32:08 +09:00
commit eeca9ff856

View File

@ -24,6 +24,7 @@
<script lang="ts" setup>
import { defineAsyncComponent, inject, nextTick, onMounted, onUnmounted, provide, watch } from 'vue';
import { $i } from '../../account';
import { i18n } from '@/i18n';
import MkSuperMenu from '@/components/ui/super-menu.vue';
import MkInfo from '@/components/ui/info.vue';
@ -139,52 +140,52 @@ const menuDef = $computed(() => [{
}],
}, {
title: i18n.ts.settings,
items: [{
items: [ ...($i?.isAdmin ? [{
icon: 'fas fa-cog',
text: i18n.ts.general,
to: '/admin/settings',
active: currentPage?.route.name === 'settings',
}, {
}] : []), ...($i?.isAdmin ? [{
icon: 'fas fa-envelope',
text: i18n.ts.emailServer,
to: '/admin/email-settings',
active: currentPage?.route.name === 'email-settings',
}, {
}] : []), ...($i?.isAdmin ? [{
icon: 'fas fa-cloud',
text: i18n.ts.objectStorage,
to: '/admin/object-storage',
active: currentPage?.route.name === 'object-storage',
}, {
}] : []), ...($i?.isAdmin ? [{
icon: 'fas fa-lock',
text: i18n.ts.security,
to: '/admin/security',
active: currentPage?.route.name === 'security',
}, {
}] : []), {
icon: 'fas fa-globe',
text: i18n.ts.relays,
to: '/admin/relays',
active: currentPage?.route.name === 'relays',
}, {
}, ...($i?.isAdmin ? [{
icon: 'fas fa-share-alt',
text: i18n.ts.integration,
to: '/admin/integrations',
active: currentPage?.route.name === 'integrations',
}, {
}] : []), ...($i?.isAdmin ? [{
icon: 'fas fa-ban',
text: i18n.ts.instanceBlocking,
to: '/admin/instance-block',
active: currentPage?.route.name === 'instance-block',
}, {
}] : []), ...($i?.isAdmin ? [{
icon: 'fas fa-ghost',
text: i18n.ts.proxyAccount,
to: '/admin/proxy-account',
active: currentPage?.route.name === 'proxy-account',
}, {
}] : []), ...($i?.isAdmin ? [{
icon: 'fas fa-cogs',
text: i18n.ts.other,
to: '/admin/other-settings',
active: currentPage?.route.name === 'other-settings',
}],
}] : [])],
}, {
title: i18n.ts.info,
items: [{