forked from AkkomaGang/admin-fe
Add Route for Relays, update icons
This commit is contained in:
parent
73d40d48fb
commit
e3d891612f
3 changed files with 24 additions and 8 deletions
|
@ -70,6 +70,7 @@ export default {
|
||||||
chats: 'Chats',
|
chats: 'Chats',
|
||||||
settings: 'Settings',
|
settings: 'Settings',
|
||||||
moderationLog: 'Moderation Log',
|
moderationLog: 'Moderation Log',
|
||||||
|
relays: 'Relays',
|
||||||
mediaProxyCache: 'MediaProxy Cache',
|
mediaProxyCache: 'MediaProxy Cache',
|
||||||
'emoji-packs': 'Emoji packs'
|
'emoji-packs': 'Emoji packs'
|
||||||
},
|
},
|
||||||
|
|
|
@ -38,7 +38,7 @@ const settings = {
|
||||||
component: Layout,
|
component: Layout,
|
||||||
name: 'Settings',
|
name: 'Settings',
|
||||||
hasSubmenu: true,
|
hasSubmenu: true,
|
||||||
meta: { title: 'settings', icon: 'settings', noCache: true },
|
meta: { title: 'settings', icon: 'el-icon-setting', noCache: true },
|
||||||
children: settingsChildren()
|
children: settingsChildren()
|
||||||
}
|
}
|
||||||
const statusesDisabled = disabledFeatures.includes('statuses')
|
const statusesDisabled = disabledFeatures.includes('statuses')
|
||||||
|
@ -50,7 +50,7 @@ const statuses = {
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/statuses/index'),
|
component: () => import('@/views/statuses/index'),
|
||||||
name: 'Statuses',
|
name: 'Statuses',
|
||||||
meta: { title: 'statuses', icon: 'form', noCache: true }
|
meta: { title: 'statuses', icon: 'el-icon-chat-line-square', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ const reports = {
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/reports/index'),
|
component: () => import('@/views/reports/index'),
|
||||||
name: 'Reports',
|
name: 'Reports',
|
||||||
meta: { title: 'reports', icon: 'documentation', noCache: true }
|
meta: { title: 'reports', icon: 'el-icon-receiving', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,21 @@ const invites = {
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/invites/index'),
|
component: () => import('@/views/invites/index'),
|
||||||
name: 'Invites',
|
name: 'Invites',
|
||||||
meta: { title: 'invites', icon: 'guide', noCache: true }
|
meta: { title: 'invites', icon: 'el-icon-postcard', noCache: true }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
const relaysDisabled = disabledFeatures.includes('relays')
|
||||||
|
const relays = {
|
||||||
|
path: '/relays',
|
||||||
|
component: Layout,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'index',
|
||||||
|
component: () => import('@/views/relays/index'),
|
||||||
|
name: 'Relays',
|
||||||
|
meta: { title: 'relays', icon: 'el-icon-connection', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -92,7 +106,7 @@ const moderationLog = {
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/moderation_log/index'),
|
component: () => import('@/views/moderation_log/index'),
|
||||||
name: 'Moderation Log',
|
name: 'Moderation Log',
|
||||||
meta: { title: 'moderationLog', icon: 'list', noCache: true }
|
meta: { title: 'moderationLog', icon: 'el-icon-notebook-2', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -106,7 +120,7 @@ const mediaProxyCache = {
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/mediaProxyCache/index'),
|
component: () => import('@/views/mediaProxyCache/index'),
|
||||||
name: 'MediaProxy Cache',
|
name: 'MediaProxy Cache',
|
||||||
meta: { title: 'mediaProxyCache', icon: 'example', noCache: true }
|
meta: { title: 'mediaProxyCache', icon: 'el-icon-coin', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -171,7 +185,7 @@ export const asyncRouterMap = [
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/users/index'),
|
component: () => import('@/views/users/index'),
|
||||||
name: 'Users',
|
name: 'Users',
|
||||||
meta: { title: 'users', icon: 'peoples', noCache: true }
|
meta: { title: 'users', icon: 'el-icon-user', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -179,6 +193,7 @@ export const asyncRouterMap = [
|
||||||
...(reportsDisabled ? [] : [reports]),
|
...(reportsDisabled ? [] : [reports]),
|
||||||
...(invitesDisabled ? [] : [invites]),
|
...(invitesDisabled ? [] : [invites]),
|
||||||
...(moderationLogDisabled ? [] : [moderationLog]),
|
...(moderationLogDisabled ? [] : [moderationLog]),
|
||||||
|
...(relaysDisabled ? [] : [relays]),
|
||||||
...(mediaProxyCacheDisabled ? [] : [mediaProxyCache]),
|
...(mediaProxyCacheDisabled ? [] : [mediaProxyCache]),
|
||||||
...(settingsDisabled ? [] : [settings]),
|
...(settingsDisabled ? [] : [settings]),
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<svg-icon v-if="icon" :icon-class="icon"/>
|
<i v-if="icon" :class="icon"/>
|
||||||
<span slot="title">{{ title }}</span>
|
<span slot="title">{{ title }}</span>
|
||||||
<el-badge :value="count" type="primary" class="count-badge" />
|
<el-badge :value="count" type="primary" class="count-badge" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue