Skip to content

Commit

Permalink
fix(console): upgrade install helm sh (tkestack#1582)
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-hnny committed Sep 17, 2021
1 parent cf4a674 commit 1254629
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ChartUsageGuideDialog extends React.Component<ChartUsageGuideDialog
}

componentWillReceiveProps(nextProps: ChartUsageGuideDialogProps) {
let { showDialog } = nextProps;
const { showDialog } = nextProps;
if (showDialog !== this.props.showDialog) {
this.setState({
showDialog: showDialog
Expand Down Expand Up @@ -90,7 +90,7 @@ export class ChartUsageGuideDialog extends React.Component<ChartUsageGuideDialog
<p>
<Trans>
本地安装 Helm 客户端, 更多可查看{' '}
<a href="https://helm.sh/docs/intro/quickstart/" target="_blank">
<a href="https://helm.sh/docs/intro/quickstart/" target="_blank" rel="noreferrer">
安装 Helm
</a>
.{' '}
Expand All @@ -100,7 +100,7 @@ export class ChartUsageGuideDialog extends React.Component<ChartUsageGuideDialog
<Clip target="#installHelm" className="copy-btn">
<Trans>复制</Trans>
</Clip>
<p id="installHelm">{`curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash`}</p>
<p id="installHelm">{`curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | DESIRED_VERSION=v3.6.2 bash`}</p>
</code>
</li>
<li>
Expand All @@ -119,7 +119,7 @@ export class ChartUsageGuideDialog extends React.Component<ChartUsageGuideDialog
<a
href="javascript:;"
onClick={() => {
let urlParams = router.resolve(this.props.route);
const urlParams = router.resolve(this.props.route);
router.navigate(Object.assign({}, urlParams, { sub: 'apikey', mode: '', tab: '' }), {});
}}
>
Expand All @@ -140,7 +140,9 @@ export class ChartUsageGuideDialog extends React.Component<ChartUsageGuideDialog
<p id="installHelmPush">{`helm plugin install https://github.com/chartmuseum/helm-push`}</p>
</code>
<p className="text-weak">
<Trans>如安装失败,可以手动下载后解压到$HOME/.local/share/helm/plugins,解压路径可以通过helm --help 查看</Trans>
<Trans>
如安装失败,可以手动下载后解压到$HOME/.local/share/helm/plugins,解压路径可以通过helm --help 查看
</Trans>
</p>
</li>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class ChartTablePanel extends React.Component<RootProps, any> {
<p>
<Trans>
本地安装 Helm 客户端, 更多可查看{' '}
<a href="https://helm.sh/docs/intro/quickstart/" target="_blank">
<a href="https://helm.sh/docs/intro/quickstart/" target="_blank" rel="noreferrer">
安装 Helm
</a>
.{' '}
Expand All @@ -165,7 +165,7 @@ export class ChartTablePanel extends React.Component<RootProps, any> {
<Clip target="#installHelm" className="copy-btn">
<Trans>复制</Trans>
</Clip>
<p id="installHelm">{`$ curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash`}</p>
<p id="installHelm">{`$ curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | DESIRED_VERSION=v3.6.2 bash`}</p>
</code>
</li>
<li>
Expand All @@ -184,7 +184,7 @@ export class ChartTablePanel extends React.Component<RootProps, any> {
<a
href="javascript:;"
onClick={() => {
let urlParams = router.resolve(this.props.route);
const urlParams = router.resolve(this.props.route);
router.navigate(Object.assign({}, urlParams, { sub: 'apikey', mode: '', tab: '' }), {});
}}
>
Expand Down

0 comments on commit 1254629

Please sign in to comment.