Skip to content

Commit

Permalink
feat(console): support cluster and worker upgrade (#952)
Browse files Browse the repository at this point in the history
* feat(console): add cluster update page

* feat(console): add update api

* feat(console): add cluster update

* feat(console): add update cluster and update worker

* feat(console): adjust update worker method
  • Loading branch information
jo-hnny committed Nov 30, 2020
1 parent fc7c820 commit f81ffed
Show file tree
Hide file tree
Showing 17 changed files with 895 additions and 265 deletions.
6 changes: 5 additions & 1 deletion web/console/Wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import * as classnames from 'classnames';
import { Button, Icon, Text, Bubble, NavMenu, List, ExternalLink } from '@tencent/tea-component';
import { insertCSS } from '@tencent/ff-redux';
import 'antd/dist/antd.css';
import zhCN from 'antd/lib/locale/zh_CN';
import { ConfigProvider } from 'antd';

insertCSS(
'tkestack-nav-logo',
Expand Down Expand Up @@ -566,7 +568,9 @@ export class Wrapper extends React.Component<ConsoleWrapperProps, ConsoleWrapper
);
}
return (
<PlatformContext.Provider value={{ type: this.props.platformType }}>{finalContent}</PlatformContext.Provider>
<PlatformContext.Provider value={{ type: this.props.platformType }}>
<ConfigProvider locale={zhCN}>{finalContent}</ConfigProvider>
</PlatformContext.Provider>
);
}

Expand Down
164 changes: 91 additions & 73 deletions web/console/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@vx/event": "0.0.179",
"@vx/shape": "0.0.181",
"@vx/tooltip": "0.0.179",
"antd": "^4.8.1",
"antd": "^4.8.5",
"array-move": "^2.1.0",
"compare-versions": "^3.6.0",
"d3": "^5.9.2",
Expand Down

0 comments on commit f81ffed

Please sign in to comment.