Skip to content

Commit

Permalink
feat: support overview
Browse files Browse the repository at this point in the history
  • Loading branch information
kaychen authored and tke-robot committed Jul 23, 2020
1 parent 40b8506 commit 88cddeb
Show file tree
Hide file tree
Showing 21 changed files with 774 additions and 6 deletions.
15 changes: 10 additions & 5 deletions web/console/Wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ interface RouterConfig {

/** 基础的侧边栏导航栏配置 */
const commonRouterConfig: RouterConfig[] = [
{
url: '/tkestack/overview',
title: '概览',
watchModule: ConsoleModuleEnum.Monitor
},
{
url: '/tkestack/cluster',
title: '集群管理',
Expand Down Expand Up @@ -162,12 +167,12 @@ const commonRouterConfig: RouterConfig[] = [
{
url: '/tkestack/log',
title: '日志采集',
watchModule: ConsoleModuleEnum.LogAgent,
watchModule: ConsoleModuleEnum.LogAgent
},
{
url: '/tkestack/log/setting',
title: '日志组件',
watchModule: ConsoleModuleEnum.LogAgent,
watchModule: ConsoleModuleEnum.LogAgent
},
{
url: '/tkestack/persistent-event',
Expand Down Expand Up @@ -229,8 +234,8 @@ const businessCommonRouterConfig: RouterConfig[] = [
url: '/tkestack-project/notify',
title: '通知设置',
watchModule: ConsoleModuleEnum.Notify
},
],
}
]
},
{
title: '运维中心',
Expand All @@ -242,7 +247,7 @@ const businessCommonRouterConfig: RouterConfig[] = [
watchModule: ConsoleModuleEnum.LogAgent
}
]
},
}
];

interface ConsoleWrapperProps {
Expand Down
14 changes: 13 additions & 1 deletion web/console/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { Init_Forbiddent_Config } from './helpers/reduceNetwork';
// 公有云的图表组件为异步加载,这里为了减少路径配置,还是保留为同步加载,预先import即可变成不split
import '@tencent/tchart/build/ChartsComponents';
import { BlankPage } from './blankPage';
import { Overview } from '@src/modules/overview';

insertCSS(
'hidden-checkbox',
Expand Down Expand Up @@ -141,7 +142,18 @@ Entry.register({
</Wrapper>
)
},

/**
* @url https://{{domain}}/tkestack/overview
*/
overview: {
title: t('概览 - TKEStack'),
container: (
<Wrapper platformType={PlatformTypeEnum.Manager}>
<ForbiddentDialog />
<Overview />
</Wrapper>
)
},
/**
* @url https://{{domain}}/tkestack/cluster
*/
Expand Down
25 changes: 25 additions & 0 deletions web/console/public/static/icon/overviewBlack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions web/console/public/static/icon/overviewCluster.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions web/console/public/static/icon/overviewGithub.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 88cddeb

Please sign in to comment.