@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.
- package/dist/PipelineFlowDetail.js +1 -1
- package/es/components/common/teambition/flow-job-btn/cardsMap.js +2 -1
- package/es/components/common/teambition/flow-job-btn/state-info/index.js +2 -2
- package/es/components/common/teambition/flow-job-btn/state-info-with-redline-new/index.js +5 -4
- package/package.json +1 -1
|
@@ -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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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:
|
|
492
|
+
href: replaceHostWithBase(statistic._COVERAGE_REPORT.url, reportLinkHost),
|
|
492
493
|
target: '_blank'
|
|
493
494
|
};
|
|
494
495
|
var text = [intl.get({
|