mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-03 11:05:03 +08:00
feat: 左侧栏内容调整
This commit is contained in:
@@ -12,20 +12,6 @@ export const leftMenus = (clusterId?: string) => ({
|
|||||||
name: 'cluster',
|
name: 'cluster',
|
||||||
path: 'cluster',
|
path: 'cluster',
|
||||||
icon: 'icon-Cluster',
|
icon: 'icon-Cluster',
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: 'overview',
|
|
||||||
path: '',
|
|
||||||
icon: '#icon-luoji',
|
|
||||||
},
|
|
||||||
process.env.BUSINESS_VERSION
|
|
||||||
? {
|
|
||||||
name: 'balance',
|
|
||||||
path: 'balance',
|
|
||||||
icon: '#icon-luoji',
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
].filter((m) => m),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'broker',
|
name: 'broker',
|
||||||
@@ -83,6 +69,25 @@ export const leftMenus = (clusterId?: string) => ({
|
|||||||
// },
|
// },
|
||||||
// ],
|
// ],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'operation',
|
||||||
|
path: 'operation',
|
||||||
|
icon: 'icon-Jobs',
|
||||||
|
children: [
|
||||||
|
process.env.BUSINESS_VERSION
|
||||||
|
? {
|
||||||
|
name: 'balance',
|
||||||
|
path: 'balance',
|
||||||
|
icon: '#icon-luoji',
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
{
|
||||||
|
name: 'jobs',
|
||||||
|
path: 'jobs',
|
||||||
|
icon: 'icon-Jobs',
|
||||||
|
},
|
||||||
|
].filter((m) => m),
|
||||||
|
},
|
||||||
process.env.BUSINESS_VERSION
|
process.env.BUSINESS_VERSION
|
||||||
? {
|
? {
|
||||||
name: 'produce-consume',
|
name: 'produce-consume',
|
||||||
@@ -127,11 +132,6 @@ export const leftMenus = (clusterId?: string) => ({
|
|||||||
// path: 'acls',
|
// path: 'acls',
|
||||||
// icon: 'icon-wodegongzuotai',
|
// icon: 'icon-wodegongzuotai',
|
||||||
// },
|
// },
|
||||||
{
|
|
||||||
name: 'jobs',
|
|
||||||
path: 'jobs',
|
|
||||||
icon: 'icon-Jobs',
|
|
||||||
},
|
|
||||||
].filter((m) => m),
|
].filter((m) => m),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,10 @@ export default {
|
|||||||
[`menu.${systemKey}.consumer-group.operating-state`]: 'Operating State',
|
[`menu.${systemKey}.consumer-group.operating-state`]: 'Operating State',
|
||||||
[`menu.${systemKey}.consumer-group.group-list`]: 'GroupList',
|
[`menu.${systemKey}.consumer-group.group-list`]: 'GroupList',
|
||||||
|
|
||||||
|
[`menu.${systemKey}.operation`]: 'Operation',
|
||||||
|
[`menu.${systemKey}.operation.balance`]: 'Load Rebalance',
|
||||||
|
[`menu.${systemKey}.operation.jobs`]: 'Job',
|
||||||
|
|
||||||
[`menu.${systemKey}.acls`]: 'ACLs',
|
[`menu.${systemKey}.acls`]: 'ACLs',
|
||||||
|
|
||||||
[`menu.${systemKey}.jobs`]: 'Job',
|
[`menu.${systemKey}.jobs`]: 'Job',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import HomePage from './MutliClusterPage/HomePage';
|
import ClusterManage from './MutliClusterPage/HomePage';
|
||||||
|
|
||||||
import { NoMatch } from '.';
|
import { NoMatch } from '.';
|
||||||
import CommonRoute from './CommonRoute';
|
import CommonRoute from './CommonRoute';
|
||||||
@@ -26,7 +26,7 @@ const pageRoutes = [
|
|||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
exact: true,
|
exact: true,
|
||||||
component: HomePage,
|
component: ClusterManage,
|
||||||
commonRoute: CommonConfig,
|
commonRoute: CommonConfig,
|
||||||
noSider: true,
|
noSider: true,
|
||||||
},
|
},
|
||||||
@@ -37,15 +37,6 @@ const pageRoutes = [
|
|||||||
commonRoute: CommonRoute,
|
commonRoute: CommonRoute,
|
||||||
noSider: false,
|
noSider: false,
|
||||||
children: [
|
children: [
|
||||||
// 负载均衡
|
|
||||||
process.env.BUSINESS_VERSION
|
|
||||||
? {
|
|
||||||
path: 'cluster/balance',
|
|
||||||
exact: true,
|
|
||||||
component: LoadRebalance,
|
|
||||||
noSider: false,
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
{
|
{
|
||||||
path: 'cluster',
|
path: 'cluster',
|
||||||
exact: true,
|
exact: true,
|
||||||
@@ -109,6 +100,21 @@ const pageRoutes = [
|
|||||||
component: Consumers,
|
component: Consumers,
|
||||||
noSider: false,
|
noSider: false,
|
||||||
},
|
},
|
||||||
|
// 负载均衡
|
||||||
|
process.env.BUSINESS_VERSION
|
||||||
|
? {
|
||||||
|
path: 'operation/balance',
|
||||||
|
exact: true,
|
||||||
|
component: LoadRebalance,
|
||||||
|
noSider: false,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
{
|
||||||
|
path: 'operation/jobs',
|
||||||
|
exact: true,
|
||||||
|
component: Jobs,
|
||||||
|
noSider: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'security/acls',
|
path: 'security/acls',
|
||||||
exact: true,
|
exact: true,
|
||||||
@@ -121,12 +127,6 @@ const pageRoutes = [
|
|||||||
component: SecurityUsers,
|
component: SecurityUsers,
|
||||||
noSider: false,
|
noSider: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'jobs',
|
|
||||||
exact: true,
|
|
||||||
component: Jobs,
|
|
||||||
noSider: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '*',
|
path: '*',
|
||||||
component: () => NoMatch,
|
component: () => NoMatch,
|
||||||
|
|||||||
Reference in New Issue
Block a user