@devops-flow/devops-flow-pipeline-detail 0.0.58 → 0.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,7 +116,8 @@ export var buildButtonComponentWrapper = function buildButtonComponentWrapper(_r
116
116
  return function (restProps) {
117
117
  var button = StateInfoWithRedline[mode];
118
118
  return button ? button(_extends({}, props, restProps, {
119
- id: restProps.key
119
+ id: restProps.key,
120
+ reportLinkHost: reportLinkHost
120
121
  })) : null;
121
122
  };
122
123
  case 'DEPLOY_ORDER':
@@ -7,7 +7,7 @@ import Avatar from "../../avatar";
7
7
  import { BaiscIconFont } from "../../icon-font";
8
8
  import intl from "../../../../../locale";
9
9
  import "./index.scss";
10
- import { replaceHost, replaceHostWithBase } from "../replaceHost";
10
+ import { replaceHostWithBase } from "../replaceHost";
11
11
  import { CommonButton, StatInfoItem } from "../stat-info-s-common/common";
12
12
  import confirmOpenReportDialog, { getTrustPipelineReportConfig } from "../stat-info-s-common/RememberConfirm";
13
13
  import ConfigContext from "../../../../../contexts/config";
@@ -450,7 +450,7 @@ var StateInfoButton = function StateInfoButton(args) {
450
450
  if (statistic.Total && statistic.PassedRate && statistic.LineCoverageRate) {
451
451
  var coverageLink = {
452
452
  component: 'a',
453
- href: replaceHost(statistic._COVERAGE_REPORT.url),
453
+ href: replaceHostWithBase(statistic._COVERAGE_REPORT.url, reportLinkHost),
454
454
  target: '_blank'
455
455
  };
456
456
  var text = [intl.get({
@@ -5,7 +5,7 @@ import { Title, YunxiaoIcon } from '@alife/devops-ui';
5
5
  import { BaiscIconFont } from "../../icon-font";
6
6
  import intl from "../../../../../locale";
7
7
  import "./index.scss";
8
- import { replaceHost, replaceHostWithBase } from "../replaceHost";
8
+ import { replaceHostWithBase } from "../replaceHost";
9
9
  import { CommonButton, StatInfoItem } from "../stat-info-s-common/common";
10
10
  import confirmOpenReportDialog, { getTrustPipelineReportConfig } from "../stat-info-s-common/RememberConfirm";
11
11
  import ConfigContext from "../../../../../contexts/config";
@@ -470,7 +470,8 @@ var StateInfoButton = function StateInfoButton(props) {
470
470
  var data = props.data,
471
471
  id = props.id,
472
472
  name = props.name,
473
- hasMore = props.hasMore;
473
+ hasMore = props.hasMore,
474
+ reportLinkHost = props.reportLinkHost;
474
475
  var _JSON$parse = JSON.parse(data),
475
476
  statistic = _JSON$parse.statInfoMap;
476
477
  if (!statistic._REPORT && !statistic._COVERAGE_REPORT) {
@@ -478,7 +479,7 @@ var StateInfoButton = function StateInfoButton(props) {
478
479
  }
479
480
  var link = {
480
481
  component: 'a',
481
- href: replaceHost(statistic._REPORT.url),
482
+ href: replaceHostWithBase(statistic._REPORT.url, reportLinkHost),
482
483
  target: '_blank',
483
484
  text: true
484
485
  };
@@ -488,7 +489,7 @@ var StateInfoButton = function StateInfoButton(props) {
488
489
  if (statistic.Total && statistic.PassedRate && statistic.LineCoverageRate) {
489
490
  var coverageLink = {
490
491
  component: 'a',
491
- href: replaceHost(statistic._COVERAGE_REPORT.url),
492
+ href: replaceHostWithBase(statistic._COVERAGE_REPORT.url, reportLinkHost),
492
493
  target: '_blank'
493
494
  };
494
495
  var text = [intl.get({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devops-flow/devops-flow-pipeline-detail",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "flow 流水线详情",
5
5
  "medusaName": "rdc-tb-cd-assets",
6
6
  "main": "dist/PipelineFlowDetail.js",