diff --git a/src/dashboard/config/router.config.js b/src/dashboard/config/router.config.js index 9096e3ea4..50687602e 100755 --- a/src/dashboard/config/router.config.js +++ b/src/dashboard/config/router.config.js @@ -29,7 +29,7 @@ export default [ path: '/overview', name: 'overview', icon: 'eye', - component: './Overview/Overview', + component: './Overview/index', }, { path: '/operator', @@ -99,7 +99,7 @@ export default [ }, ], }, - ] + ], }, { component: '404', diff --git a/src/dashboard/config/theme.js b/src/dashboard/config/theme.js index 0d1be37be..bb835503d 100644 --- a/src/dashboard/config/theme.js +++ b/src/dashboard/config/theme.js @@ -16,8 +16,6 @@ module.exports = { 'border-color-split': '#152935', 'text-color ': 'fade(#fff, 80%)', 'text-color-secondary ': 'fade(#dfe6eb, 80%)', - 'text-color-warning': '#efc100', - 'text-color-danger': '#ff5050', 'success-color': '#8cd211', 'error-color': '#ff5050', 'warning-color': '#efc100', diff --git a/src/dashboard/package.json b/src/dashboard/package.json index 0274af85f..0a6dcb214 100755 --- a/src/dashboard/package.json +++ b/src/dashboard/package.json @@ -52,7 +52,8 @@ ], "dependencies": { "@antv/data-set": "^0.10.1", - "antd": "3.16.1", + "antd": "^4.2.5", + "@ant-design/icons": "^4.1.0", "bizcharts": "3.5.2-beta.1", "bizcharts-plugin-slider": "^2.1.1-beta.1", "classnames": "^2.2.6", @@ -82,6 +83,8 @@ "cello-paginator": "^1.0.1", "umi-request": "^1.2.19", "@ant-design/pro-layout": "^5.0.0", + "umi": "^3.1.4", + "redux": "^4.0.5", "validator": "^11.0.0" }, "devDependencies": { @@ -126,7 +129,6 @@ "tslint-config-prettier": "^1.17.0", "tslint-react": "^3.6.0", "faker": "^4.1.0", - "umi": "^3.1.4", "@umijs/preset-react": "^1.2.2" }, "engines": { diff --git a/src/dashboard/src/components/GlobalHeader/RightContent.js b/src/dashboard/src/components/GlobalHeader/RightContent.js index 1e9ed0f34..cde1acd56 100644 --- a/src/dashboard/src/components/GlobalHeader/RightContent.js +++ b/src/dashboard/src/components/GlobalHeader/RightContent.js @@ -1,6 +1,7 @@ import React, { PureComponent } from 'react'; import { injectIntl } from 'umi'; -import { Spin, Menu, Icon, Avatar } from 'antd'; +import { Spin, Menu, Avatar } from 'antd'; +import { LogoutOutlined } from '@ant-design/icons'; import HeaderDropdown from '../HeaderDropdown'; import SelectLang from '../SelectLang'; import styles from './index.less'; @@ -11,10 +12,10 @@ class GlobalHeaderRight extends PureComponent { const menu = (
@@ -41,4 +42,4 @@ class GlobalHeaderRight extends PureComponent { } } -export default injectIntl(GlobalHeaderRight) +export default injectIntl(GlobalHeaderRight); diff --git a/src/dashboard/src/components/GlobalHeader/index.js b/src/dashboard/src/components/GlobalHeader/index.js index 35bff3bd4..3853e81c1 100644 --- a/src/dashboard/src/components/GlobalHeader/index.js +++ b/src/dashboard/src/components/GlobalHeader/index.js @@ -1,5 +1,5 @@ import React, { PureComponent } from 'react'; -import { Icon } from 'antd'; +import { MenuFoldOutlined, MenuUnfoldOutlined } from '@ant-design/icons'; import { Link } from 'umi'; import Debounce from 'lodash-decorators/debounce'; import styles from './index.less'; @@ -32,7 +32,7 @@ export default class GlobalHeader extends PureComponent { )} -