@devops-flow/devops-flow-pipeline-detail 0.0.38 → 0.0.40
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.css +1 -1
- package/dist/PipelineFlowDetail.js +2 -2
- package/es/components/common/teambition/avatar/index.js +1 -1
- package/es/components/common/teambition/flow-job-btn/stat-info-s-common/RememberConfirm.js +6 -8
- package/es/components/common/teambition/flow-job-new/utils/index.js +1 -1
- package/es/components/common/teambition/run-param-config-dialog/index.js +2 -2
- package/es/components/common/teambition/yunxiao-member/index.js +4 -6
- package/es/components/dashboardMain/components/machineGroupUpgrade/index.js +1 -1
- package/es/components/dashboardMain/components/maven-setting/NpmSelectRepoDialog.js +3 -3
- package/es/components/dashboardMain/components/search-panel/index.js +1 -1
- package/es/components/dashboardMain/enterprise-setting/utils.js +2 -3
- package/es/components/dashboardMain/index.js +1 -1
- package/es/components/dashboardMain/pipelines/index.js +1 -1
- package/es/components/detailMain/deployments/index.js +2 -2
- package/es/components/newbieTask/util.js +41 -41
- package/es/components/pipeline/new/index.js +2 -2
- package/es/contexts/pipeline.js +1 -1
- package/es/index.js +1 -1
- package/es/pages/dashboard/index.js +2 -2
- package/es/pages/detail/index.js +1 -1
- package/es/pages/new-detail/index.js +1 -1
- package/es/pages/new-detail/index.scss +1 -1
- package/es/pages/project/index.js +1 -1
- package/es/pages/tbNavigationInit/Invite/index.js +1 -4
- package/es/pages/tbNavigationInit/detail.js +1 -1
- package/es/style.js +1 -4
- package/es/utils/api/index.js +1 -9
- package/es/utils/apimap/index.js +9 -5
- package/es/utils/apimap/maps/uiless.js +3 -4
- package/es/utils/track/index.d.ts +1 -1
- package/es/utils/track/index.js +1 -1
- package/es/utils/track/init.js +2 -2
- package/package.json +1 -1
- package/dist/assets/2e7ded00f078fd4ec6492110af6d0a14.otf +0 -0
|
@@ -9,7 +9,7 @@ import Empty from "../empty";
|
|
|
9
9
|
import intl from "../../../../locale";
|
|
10
10
|
import { setLocalStorageCache } from "../../../../utils";
|
|
11
11
|
import "./index.scss";
|
|
12
|
-
var orgId =
|
|
12
|
+
var orgId = 'orgId';
|
|
13
13
|
var Tooltip = Balloon.Tooltip;
|
|
14
14
|
var AVATAR_CACHE_PREFIX = "AVATAR_USER_CACHE_PREFIX/" + orgId;
|
|
15
15
|
var UNKNOWN = intl.get({
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import _Box from "@alifd/next/es/box";
|
|
2
|
-
import _Button from "@alifd/next/es/button";
|
|
3
|
-
import _Dialog from "@alifd/next/es/dialog";
|
|
4
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
5
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
import { Box, Button, Dialog } from '@alifd/next';
|
|
6
4
|
import { uilessRequest } from '@alife/yunxiao-common';
|
|
7
5
|
import { Checkbox } from '@teamix/ui';
|
|
8
6
|
import React, { useState } from 'react';
|
|
@@ -45,7 +43,7 @@ function _getTrustPipelineReportConfig() {
|
|
|
45
43
|
export default function confirmOpenReportDialog(_ref) {
|
|
46
44
|
var url = _ref.url,
|
|
47
45
|
cb = _ref.cb;
|
|
48
|
-
var dialog =
|
|
46
|
+
var dialog = Dialog.alert({
|
|
49
47
|
title: intl.get({
|
|
50
48
|
id: 'rdc-tb-cd-assets.flow-job-btn.stat-info-s-common.RememberConfirm.AreYouSureYouWant',
|
|
51
49
|
defaultMessage: '确认打开此文件吗?'
|
|
@@ -97,7 +95,7 @@ function FooterOpts(_ref2) {
|
|
|
97
95
|
}));
|
|
98
96
|
return _saveNoTipAgain.apply(this, arguments);
|
|
99
97
|
}
|
|
100
|
-
return /*#__PURE__*/React.createElement(
|
|
98
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
101
99
|
direction: "row",
|
|
102
100
|
justify: "space-between"
|
|
103
101
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
@@ -108,17 +106,17 @@ function FooterOpts(_ref2) {
|
|
|
108
106
|
}, intl.get({
|
|
109
107
|
id: 'rdc-tb-cd-assets.flow-job-btn.stat-info-s-common.RememberConfirm.TrustReportUploadTaskNo',
|
|
110
108
|
defaultMessage: '信任报告上传任务,不再提示'
|
|
111
|
-
})), /*#__PURE__*/React.createElement(
|
|
109
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
112
110
|
direction: "row",
|
|
113
111
|
spacing: 8
|
|
114
|
-
}, /*#__PURE__*/React.createElement(
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
115
113
|
onClick: function onClick() {
|
|
116
114
|
getDialog().hide();
|
|
117
115
|
}
|
|
118
116
|
}, intl.get({
|
|
119
117
|
id: 'rdc-tb-cd-assets.flow-job-btn.stat-info-s-common.RememberConfirm.Cancel',
|
|
120
118
|
defaultMessage: '取消'
|
|
121
|
-
})), /*#__PURE__*/React.createElement(
|
|
119
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
122
120
|
type: "primary",
|
|
123
121
|
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
124
122
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -5,7 +5,7 @@ import { useEffect, useState } from 'react';
|
|
|
5
5
|
import exceed from "../../../../../utils/apimap";
|
|
6
6
|
import { setLocalStorageCache } from "../../../../../utils";
|
|
7
7
|
import intl from "../../../../../locale";
|
|
8
|
-
var orgId =
|
|
8
|
+
var orgId = 'orgId';
|
|
9
9
|
var AVATAR_CACHE_PREFIX = "AVATAR_USER_CACHE_PREFIX/" + orgId;
|
|
10
10
|
var AVATAR_CACHE_TIME = 5 * 60 * 1000; // 5 minutes
|
|
11
11
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _Message from "@alifd/next/es/message";
|
|
3
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
4
|
import React, { useState, useContext, useMemo, useEffect } from 'react';
|
|
@@ -15,6 +14,7 @@ import Context, { Provider } from "./context";
|
|
|
15
14
|
import "./index.scss";
|
|
16
15
|
import { createMapStorageWithLimit } from "../../../../utils";
|
|
17
16
|
import { cloneDeep } from 'lodash';
|
|
17
|
+
import { Message } from '@alifd/next';
|
|
18
18
|
import AppstackChangeRun from "./files/appstack-changerun";
|
|
19
19
|
var Column = YunxiaoTable.Column;
|
|
20
20
|
export var RUN_PARAM = 'run-param';
|
|
@@ -115,7 +115,7 @@ var RunParamConfig = function RunParamConfig(props) {
|
|
|
115
115
|
}
|
|
116
116
|
field.validate();
|
|
117
117
|
});
|
|
118
|
-
|
|
118
|
+
Message.show({
|
|
119
119
|
title: intl.get({
|
|
120
120
|
id: 'rdc-tb-cd-assets.teambition.run-param-config-dialog.LastRunParameterFilled',
|
|
121
121
|
defaultMessage: '已填充上次运行参数'
|
|
@@ -18,7 +18,7 @@ import intl from "../../../../locale";
|
|
|
18
18
|
import { ENV } from '@alife/yunxiao-common';
|
|
19
19
|
var PERMISSION_PIPELINE_ADMIN = 'tb.role.pipeline.admin';
|
|
20
20
|
var currentUser = window.AK_GLOBAL.currentUser;
|
|
21
|
-
var orgId =
|
|
21
|
+
var orgId = 'orgId';
|
|
22
22
|
var Tooltip = Balloon.Tooltip;
|
|
23
23
|
var Member = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
24
24
|
var _props$objType = props.objType,
|
|
@@ -219,9 +219,8 @@ var Member = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
219
219
|
};
|
|
220
220
|
var loaderTeamAndMember = function loaderTeamAndMember(member) {
|
|
221
221
|
return new Promise(function (resolve, reject) {
|
|
222
|
-
var _window$userInfos;
|
|
223
222
|
/** 新版v5底座 */
|
|
224
|
-
var useNewMemberApi =
|
|
223
|
+
var useNewMemberApi = true;
|
|
225
224
|
exceed.fetch({
|
|
226
225
|
api: useNewMemberApi ? 'uiless-get-memberAndteams-v5' : 'uiless-get-memberAndteams',
|
|
227
226
|
data: {
|
|
@@ -256,8 +255,7 @@ var Member = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
256
255
|
};
|
|
257
256
|
var getTeams = function getTeams() {
|
|
258
257
|
return new Promise(function (resolve) {
|
|
259
|
-
var
|
|
260
|
-
var useNewApi = ((_window$userInfos2 = window.userInfos) === null || _window$userInfos2 === void 0 ? void 0 : _window$userInfos2.env) === 'vpc';
|
|
258
|
+
var useNewApi = true;
|
|
261
259
|
exceed.fetch({
|
|
262
260
|
api: useNewApi ? 'uiless-get-teams-v5' : 'uiless-get-teams',
|
|
263
261
|
data: {
|
|
@@ -943,7 +941,7 @@ var Member = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
943
941
|
isAdmin: Number(currentUser.roleLevel) > 0,
|
|
944
942
|
defaultPage: getInvite() ? 'moreInvite' : 'home',
|
|
945
943
|
tabProps: [TeamTabProp],
|
|
946
|
-
v2:
|
|
944
|
+
v2: true,
|
|
947
945
|
customRoles: customRoles,
|
|
948
946
|
hasSync: !isVpc,
|
|
949
947
|
extraMemberTypes: getFeature('member.team') && !isVpc ? ['team', 'more_invite'] : [],
|
|
@@ -11,7 +11,7 @@ import { ConfirmDialog } from "./ConfirmDialog";
|
|
|
11
11
|
// 用户升级之前访问时设置 storage,成功后显示提示,关闭成功提示清除此 storage
|
|
12
12
|
import intl from "../../../../locale";
|
|
13
13
|
export var getRunnerUpgradeVisitedLsKey = function getRunnerUpgradeVisitedLsKey(purpose) {
|
|
14
|
-
return "RUNNER_UPGRADE_VISITED/" + purpose + "/org-"
|
|
14
|
+
return "RUNNER_UPGRADE_VISITED/" + purpose + "/org-orgId";
|
|
15
15
|
};
|
|
16
16
|
export function MachineGroupUpgrade(props) {
|
|
17
17
|
var purpose = props.purpose;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import _Form from "@alifd/next/es/form";
|
|
2
1
|
import { Dialog, Select, Message } from '@teamix/ui';
|
|
3
2
|
import React, { useEffect, useState } from 'react';
|
|
4
3
|
import exceed from "../../../../utils/apimap";
|
|
5
4
|
import intl from "../../../../locale";
|
|
6
|
-
|
|
5
|
+
import { Form } from '@alifd/next';
|
|
6
|
+
var FormItem = Form.Item;
|
|
7
7
|
export default function NpmSelectRepoDialog(props) {
|
|
8
8
|
var visible = props.visible,
|
|
9
9
|
setVisible = props.setVisible,
|
|
@@ -126,7 +126,7 @@ export default function NpmSelectRepoDialog(props) {
|
|
|
126
126
|
return saveNpmSettingsRepo();
|
|
127
127
|
}
|
|
128
128
|
// className={`${PREFIX}__repoSettings`}
|
|
129
|
-
}, /*#__PURE__*/React.createElement(
|
|
129
|
+
}, /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(FormItem, {
|
|
130
130
|
label: intl.get({
|
|
131
131
|
id: 'rdc-tb-cd-assets.components.npm-setting.npm-repo',
|
|
132
132
|
defaultMessage: 'Npm 仓库'
|
|
@@ -13,7 +13,7 @@ import "./index.scss";
|
|
|
13
13
|
var PREFIX = 'search-panel';
|
|
14
14
|
var Popup = Overlay.Popup;
|
|
15
15
|
var RangePicker = DatePicker.RangePicker;
|
|
16
|
-
var orgId =
|
|
16
|
+
var orgId = 'orgId';
|
|
17
17
|
var PIPELINE_SEARCH_MEMBERS = 'pipeline-search-members';
|
|
18
18
|
var SearchPanel = function SearchPanel(props) {
|
|
19
19
|
var trigger = props.trigger,
|
|
@@ -70,9 +70,8 @@ var ServiceConnection = Loadable({
|
|
|
70
70
|
});
|
|
71
71
|
var scGrayEnable = window.YUNXIAO_COMMON.serviceConnectionGrayRegion === 'true'; // 是否灰度
|
|
72
72
|
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
appId = _window$userInfos.appId;
|
|
73
|
+
var orgId = 'orgId';
|
|
74
|
+
var appId = 'appId';
|
|
76
75
|
var PERMISSION_VARIABLE_GROUP_CREATE = 'tb.role.variableGroup.create';
|
|
77
76
|
var PERMISSION_VARIABLE_GROUP_ADMIN = 'tb.role.variableGroup.admin';
|
|
78
77
|
var PERMISSION_TAG_CREATE = 'tb.role.tag.create';
|
|
@@ -31,7 +31,7 @@ var PIPELINE_PAGE_SORT = 'pipeline-page-sort';
|
|
|
31
31
|
var PIPELINE_SEARCH_NAME = 'pipeline-search-name';
|
|
32
32
|
var PERMISSION_PIPELINE_CREATE = 'tb.role.pipeline.create';
|
|
33
33
|
var PERMISSION_PIPELINE_GROUP_ADMIN = 'tb.role.pipelineGroup.admin';
|
|
34
|
-
var orgId =
|
|
34
|
+
var orgId = 'orgId';
|
|
35
35
|
var getHomePage = function getHomePage() {
|
|
36
36
|
return localStorage.getItem("homePage/flow/" + orgId) || '/my';
|
|
37
37
|
};
|
|
@@ -49,7 +49,7 @@ var NewPipelineDialog = Loadable({
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
var refObjectId = window.AK_GLOBAL.currentUser.workid;
|
|
52
|
-
var orgId =
|
|
52
|
+
var orgId = 'orgId';
|
|
53
53
|
var Tooltip = Balloon.Tooltip;
|
|
54
54
|
export var PERMISSION_PIPELINE_CREATE = 'tb.role.pipeline.create';
|
|
55
55
|
export var PERMISSION_PIPELINE_EDIT = 'tb.flow.pipeline.edit';
|
|
@@ -700,8 +700,8 @@ var Deployments = function Deployments(_ref2) {
|
|
|
700
700
|
downloadUrl = artifact.ARTIFACT_URL;
|
|
701
701
|
packageHost = artifact.packageHost;
|
|
702
702
|
if (downloadUrl) {
|
|
703
|
-
if (downloadUrl.indexOf("/api/protocol/"
|
|
704
|
-
var replace = downloadUrl.replace("/api/protocol/"
|
|
703
|
+
if (downloadUrl.indexOf("/api/protocol/orgId") > -1 && downloadUrl.indexOf("/packages-file/api/protocol/orgId") < 0) {
|
|
704
|
+
var replace = downloadUrl.replace("/api/protocol/orgId", '');
|
|
705
705
|
var urlWithHost = replace.substring(0, replace.indexOf('/files'));
|
|
706
706
|
var artifactName = downloadUrl.substring(downloadUrl.indexOf('/files/') + '/files/'.length, downloadUrl.indexOf('?'));
|
|
707
707
|
var _querystring$parse = querystring.parse(URL.parse(downloadUrl).query),
|
|
@@ -8,11 +8,11 @@ import tools from "../../utils";
|
|
|
8
8
|
import dayjs from 'dayjs';
|
|
9
9
|
import { uilessRequest } from '@alife/yunxiao-common';
|
|
10
10
|
import intl from "../../locale";
|
|
11
|
-
var
|
|
12
|
-
orgId =
|
|
13
|
-
appId =
|
|
14
|
-
accessToken =
|
|
15
|
-
host =
|
|
11
|
+
var _ref = {},
|
|
12
|
+
orgId = _ref.orgId,
|
|
13
|
+
appId = _ref.appId,
|
|
14
|
+
accessToken = _ref.accessToken,
|
|
15
|
+
host = _ref.host;
|
|
16
16
|
export { orgId, appId, accessToken, host };
|
|
17
17
|
export var buildCacheKey = function buildCacheKey(key) {
|
|
18
18
|
return key + "_" + orgId;
|
|
@@ -77,8 +77,8 @@ export var buildNewbieCardList = function buildNewbieCardList(taskStatus) {
|
|
|
77
77
|
if (taskStatus === void 0) {
|
|
78
78
|
taskStatus = {};
|
|
79
79
|
}
|
|
80
|
-
if ((isAdmin || taskStatus[inviteMemberCard.type]) && !defaultNewbieCardList.find(function (
|
|
81
|
-
var type =
|
|
80
|
+
if ((isAdmin || taskStatus[inviteMemberCard.type]) && !defaultNewbieCardList.find(function (_ref2) {
|
|
81
|
+
var type = _ref2.type;
|
|
82
82
|
return inviteMemberCard.type === type;
|
|
83
83
|
})) {
|
|
84
84
|
defaultNewbieCardList.push(inviteMemberCard);
|
|
@@ -86,12 +86,12 @@ export var buildNewbieCardList = function buildNewbieCardList(taskStatus) {
|
|
|
86
86
|
if (!Object.values(taskStatus).length) {
|
|
87
87
|
return defaultNewbieCardList;
|
|
88
88
|
}
|
|
89
|
-
var result = defaultNewbieCardList.filter(function (
|
|
90
|
-
var type =
|
|
89
|
+
var result = defaultNewbieCardList.filter(function (_ref3) {
|
|
90
|
+
var type = _ref3.type;
|
|
91
91
|
return taskStatus[type] !== 'complete';
|
|
92
92
|
});
|
|
93
|
-
return sortBy(result, function (
|
|
94
|
-
var type =
|
|
93
|
+
return sortBy(result, function (_ref4) {
|
|
94
|
+
var type = _ref4.type;
|
|
95
95
|
if (taskStatus[type]) {
|
|
96
96
|
return 1;
|
|
97
97
|
} else {
|
|
@@ -100,7 +100,7 @@ export var buildNewbieCardList = function buildNewbieCardList(taskStatus) {
|
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
export var setTaskCompleteStatus = /*#__PURE__*/function () {
|
|
103
|
-
var
|
|
103
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
104
104
|
var _yield$uilessRequest, data;
|
|
105
105
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
106
106
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -129,11 +129,11 @@ export var setTaskCompleteStatus = /*#__PURE__*/function () {
|
|
|
129
129
|
}, _callee);
|
|
130
130
|
}));
|
|
131
131
|
return function setTaskCompleteStatus() {
|
|
132
|
-
return
|
|
132
|
+
return _ref5.apply(this, arguments);
|
|
133
133
|
};
|
|
134
134
|
}();
|
|
135
135
|
export var getMemberNumber = /*#__PURE__*/function () {
|
|
136
|
-
var
|
|
136
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
137
137
|
var _yield$exceed$fetch, success, result;
|
|
138
138
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
139
139
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -160,11 +160,11 @@ export var getMemberNumber = /*#__PURE__*/function () {
|
|
|
160
160
|
}, _callee2);
|
|
161
161
|
}));
|
|
162
162
|
return function getMemberNumber() {
|
|
163
|
-
return
|
|
163
|
+
return _ref6.apply(this, arguments);
|
|
164
164
|
};
|
|
165
165
|
}();
|
|
166
166
|
export var hasAliyunBaseResourcePackageOrder = /*#__PURE__*/function () {
|
|
167
|
-
var
|
|
167
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
168
168
|
var _result$data;
|
|
169
169
|
var result, hasBaseResourcePackage;
|
|
170
170
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -194,11 +194,11 @@ export var hasAliyunBaseResourcePackageOrder = /*#__PURE__*/function () {
|
|
|
194
194
|
}, _callee3);
|
|
195
195
|
}));
|
|
196
196
|
return function hasAliyunBaseResourcePackageOrder() {
|
|
197
|
-
return
|
|
197
|
+
return _ref7.apply(this, arguments);
|
|
198
198
|
};
|
|
199
199
|
}();
|
|
200
200
|
export var getXW_enterpriseStatus = /*#__PURE__*/function () {
|
|
201
|
-
var
|
|
201
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
202
202
|
var _yield$uilessRequest2, _yield$uilessRequest3, data, hasBaseOrder, isXW_enterprise;
|
|
203
203
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
204
204
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -228,7 +228,7 @@ export var getXW_enterpriseStatus = /*#__PURE__*/function () {
|
|
|
228
228
|
}, _callee4);
|
|
229
229
|
}));
|
|
230
230
|
return function getXW_enterpriseStatus() {
|
|
231
|
-
return
|
|
231
|
+
return _ref8.apply(this, arguments);
|
|
232
232
|
};
|
|
233
233
|
}();
|
|
234
234
|
export var experimentFunction = function experimentFunction() {
|
|
@@ -236,8 +236,8 @@ export var experimentFunction = function experimentFunction() {
|
|
|
236
236
|
return !!experiment;
|
|
237
237
|
};
|
|
238
238
|
export var getUserNewbieTaskStatus = /*#__PURE__*/function () {
|
|
239
|
-
var
|
|
240
|
-
var
|
|
239
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
240
|
+
var _ref10, success, _ref10$result, result;
|
|
241
241
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
242
242
|
while (1) switch (_context5.prev = _context5.next) {
|
|
243
243
|
case 0:
|
|
@@ -253,10 +253,10 @@ export var getUserNewbieTaskStatus = /*#__PURE__*/function () {
|
|
|
253
253
|
}
|
|
254
254
|
_context5.t0 = {};
|
|
255
255
|
case 5:
|
|
256
|
-
|
|
257
|
-
success =
|
|
258
|
-
|
|
259
|
-
result =
|
|
256
|
+
_ref10 = _context5.t0;
|
|
257
|
+
success = _ref10.success;
|
|
258
|
+
_ref10$result = _ref10.result;
|
|
259
|
+
result = _ref10$result === void 0 ? {} : _ref10$result;
|
|
260
260
|
if (success) {
|
|
261
261
|
_context5.next = 11;
|
|
262
262
|
break;
|
|
@@ -271,16 +271,16 @@ export var getUserNewbieTaskStatus = /*#__PURE__*/function () {
|
|
|
271
271
|
}, _callee5);
|
|
272
272
|
}));
|
|
273
273
|
return function getUserNewbieTaskStatus() {
|
|
274
|
-
return
|
|
274
|
+
return _ref9.apply(this, arguments);
|
|
275
275
|
};
|
|
276
276
|
}();
|
|
277
277
|
export var setUserNewbieTaskStatus = /*#__PURE__*/function () {
|
|
278
|
-
var
|
|
279
|
-
var
|
|
278
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(_ref11) {
|
|
279
|
+
var _ref11$finishTask, finishTask, _ref11$closeTask, closeTask, config, _ref13, success, _ref13$result, result;
|
|
280
280
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
281
281
|
while (1) switch (_context6.prev = _context6.next) {
|
|
282
282
|
case 0:
|
|
283
|
-
|
|
283
|
+
_ref11$finishTask = _ref11.finishTask, finishTask = _ref11$finishTask === void 0 ? false : _ref11$finishTask, _ref11$closeTask = _ref11.closeTask, closeTask = _ref11$closeTask === void 0 ? false : _ref11$closeTask;
|
|
284
284
|
config = {
|
|
285
285
|
api: 'user.setUserNewbieTaskStatus',
|
|
286
286
|
data: {
|
|
@@ -299,10 +299,10 @@ export var setUserNewbieTaskStatus = /*#__PURE__*/function () {
|
|
|
299
299
|
}
|
|
300
300
|
_context6.t0 = {};
|
|
301
301
|
case 7:
|
|
302
|
-
|
|
303
|
-
success =
|
|
304
|
-
|
|
305
|
-
result =
|
|
302
|
+
_ref13 = _context6.t0;
|
|
303
|
+
success = _ref13.success;
|
|
304
|
+
_ref13$result = _ref13.result;
|
|
305
|
+
result = _ref13$result === void 0 ? {} : _ref13$result;
|
|
306
306
|
if (success) {
|
|
307
307
|
_context6.next = 13;
|
|
308
308
|
break;
|
|
@@ -317,12 +317,12 @@ export var setUserNewbieTaskStatus = /*#__PURE__*/function () {
|
|
|
317
317
|
}, _callee6);
|
|
318
318
|
}));
|
|
319
319
|
return function setUserNewbieTaskStatus(_x) {
|
|
320
|
-
return
|
|
320
|
+
return _ref12.apply(this, arguments);
|
|
321
321
|
};
|
|
322
322
|
}();
|
|
323
323
|
export var getOrgUserInfo = /*#__PURE__*/function () {
|
|
324
|
-
var
|
|
325
|
-
var config,
|
|
324
|
+
var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
|
325
|
+
var config, _ref15, success, _ref15$result, result;
|
|
326
326
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
327
327
|
while (1) switch (_context7.prev = _context7.next) {
|
|
328
328
|
case 0:
|
|
@@ -342,10 +342,10 @@ export var getOrgUserInfo = /*#__PURE__*/function () {
|
|
|
342
342
|
}
|
|
343
343
|
_context7.t0 = {};
|
|
344
344
|
case 6:
|
|
345
|
-
|
|
346
|
-
success =
|
|
347
|
-
|
|
348
|
-
result =
|
|
345
|
+
_ref15 = _context7.t0;
|
|
346
|
+
success = _ref15.success;
|
|
347
|
+
_ref15$result = _ref15.result;
|
|
348
|
+
result = _ref15$result === void 0 ? {} : _ref15$result;
|
|
349
349
|
if (success) {
|
|
350
350
|
_context7.next = 12;
|
|
351
351
|
break;
|
|
@@ -360,6 +360,6 @@ export var getOrgUserInfo = /*#__PURE__*/function () {
|
|
|
360
360
|
}, _callee7);
|
|
361
361
|
}));
|
|
362
362
|
return function getOrgUserInfo() {
|
|
363
|
-
return
|
|
363
|
+
return _ref14.apply(this, arguments);
|
|
364
364
|
};
|
|
365
365
|
}();
|
|
@@ -15,7 +15,7 @@ import registerOperation from "../../../pages/tbNavigationInit/operation";
|
|
|
15
15
|
import intl from "../../../locale";
|
|
16
16
|
import "./index.scss";
|
|
17
17
|
import { defaultSettings } from "./defaultSettings";
|
|
18
|
-
var orgId =
|
|
18
|
+
var orgId = 'orgId';
|
|
19
19
|
var currentTime = dayFormat(new Date().toString(), {
|
|
20
20
|
zh_CN: 'YYYY-MM-DD',
|
|
21
21
|
en_US: 'MMM, DD, YYYY'
|
|
@@ -212,7 +212,7 @@ var NewPipelineDialog = /*#__PURE__*/function (_Component) {
|
|
|
212
212
|
}
|
|
213
213
|
registerOperation();
|
|
214
214
|
setLocalStorageCache("homePage/flow/" + orgId, '/my', false);
|
|
215
|
-
setLocalStorageCache("
|
|
215
|
+
setLocalStorageCache("isFirstVisitFlow_orgId", "" + true, false);
|
|
216
216
|
var searchParams = buildParams(language, __createHelper);
|
|
217
217
|
if (_this.props.type === 'project') {
|
|
218
218
|
exceed.fetch({
|
package/es/contexts/pipeline.js
CHANGED
|
@@ -45,7 +45,7 @@ var getDefaultSidebarActiveNav = function getDefaultSidebarActiveNav() {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
if (/detail\/[0-9]+\/.*/.test(location.pathname)) {
|
|
48
|
-
var orgId =
|
|
48
|
+
var orgId = 'orgId';
|
|
49
49
|
var homePage = localStorage.getItem("homePage/flow/" + orgId) || '/my';
|
|
50
50
|
var pathArr = homePage.split('/');
|
|
51
51
|
if (homePage.startsWith('/groups') && pathArr[2]) {
|
package/es/index.js
CHANGED
|
@@ -77,7 +77,7 @@ var _ref = window.AK_GLOBAL || {},
|
|
|
77
77
|
_ref$neverCreatePipel = _ref.neverCreatePipeline,
|
|
78
78
|
neverCreatePipeline = _ref$neverCreatePipel === void 0 ? 'false' : _ref$neverCreatePipel,
|
|
79
79
|
currentUser = _ref.currentUser;
|
|
80
|
-
var orgId =
|
|
80
|
+
var orgId = 'orgId';
|
|
81
81
|
var JOIN_ORG_TIME = 'join-org-time';
|
|
82
82
|
var SESSION_LEAD_VISITED = "session-lead-visited/" + currentUser.workid;
|
|
83
83
|
var NEW_USER_GUIDE_VISIBLE = "NEW_USER_GUIDE_VISIBLE/" + currentUser.workid;
|
|
@@ -173,7 +173,7 @@ export default (function () {
|
|
|
173
173
|
};
|
|
174
174
|
}();
|
|
175
175
|
useEffect(function () {
|
|
176
|
-
|
|
176
|
+
!userJoinOrgTime && request();
|
|
177
177
|
}, [userJoinOrgTime]);
|
|
178
178
|
var renderNewbiTask = function renderNewbiTask() {
|
|
179
179
|
if (productDialogVisible) {
|
package/es/pages/detail/index.js
CHANGED
|
@@ -79,7 +79,7 @@ var Detail = function Detail(props) {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
useEffect(function () {
|
|
82
|
-
var key = "visited_detail_time/"
|
|
82
|
+
var key = "visited_detail_time/orgId";
|
|
83
83
|
var visitedDetailTime = getLocalStorageCache(key);
|
|
84
84
|
if (!visitedDetailTime) setLocalStorageCache(key, new Date().valueOf());
|
|
85
85
|
}, []);
|
|
@@ -42,7 +42,7 @@ var Detail = function Detail(props) {
|
|
|
42
42
|
}
|
|
43
43
|
}, [props.location]);
|
|
44
44
|
useEffect(function () {
|
|
45
|
-
var key = "visited_detail_time/"
|
|
45
|
+
var key = "visited_detail_time/orgId";
|
|
46
46
|
var visitedDetailTime = getLocalStorageCache(key);
|
|
47
47
|
if (!visitedDetailTime) setLocalStorageCache(key, new Date().valueOf());
|
|
48
48
|
return function () {
|
|
@@ -21,7 +21,7 @@ var EmptyLead = Lead.EmptyLead;
|
|
|
21
21
|
var _window$AK_GLOBAL$cur = window.AK_GLOBAL.currentUser,
|
|
22
22
|
refObjectId = _window$AK_GLOBAL$cur.workid,
|
|
23
23
|
permissions = _window$AK_GLOBAL$cur.permissions;
|
|
24
|
-
var orgId =
|
|
24
|
+
var orgId = 'orgId';
|
|
25
25
|
var PREFIX = 'project-pipelines';
|
|
26
26
|
export var PERMISSION_PIPELINE_EDIT = 'tb.flow.pipeline.edit';
|
|
27
27
|
var PERMISSION_PIPELINE_CREATE = 'tb.role.pipeline.create';
|
|
@@ -3,7 +3,7 @@ import track from "../../../utils/track";
|
|
|
3
3
|
import { getFeature } from "../../../utils";
|
|
4
4
|
import intl from "../../../locale";
|
|
5
5
|
import "./index.scss";
|
|
6
|
-
var orgId =
|
|
6
|
+
var orgId = 'orgId';
|
|
7
7
|
var Invite = function Invite() {
|
|
8
8
|
var onClick = function onClick() {
|
|
9
9
|
var nextUrl = encodeURIComponent(location.origin + "?org_id=" + orgId);
|
|
@@ -31,9 +31,6 @@ var getInvite = function getInvite() {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
var registerInvite = function registerInvite() {
|
|
34
|
-
if (window.userInfos.env !== 'aliyun') {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
34
|
if (getFeature('nav.invite')) {
|
|
38
35
|
var _window$AK_GLOBAL$cur;
|
|
39
36
|
if (Number((_window$AK_GLOBAL$cur = window.AK_GLOBAL.currentUser) === null || _window$AK_GLOBAL$cur === void 0 ? void 0 : _window$AK_GLOBAL$cur.roleLevel) >= 1) {
|
|
@@ -6,7 +6,7 @@ import ContextSwitcher from "./contextSwitcher/index";
|
|
|
6
6
|
import Star from "./star/index";
|
|
7
7
|
import intl from "../../locale";
|
|
8
8
|
import { getFeature } from "../../utils";
|
|
9
|
-
var orgId =
|
|
9
|
+
var orgId = 'orgId';
|
|
10
10
|
var Tooltip = Balloon.Tooltip;
|
|
11
11
|
export var updateTitle = function updateTitle(msg, title) {
|
|
12
12
|
if (window.__isEmbedInAppstack) return;
|
package/es/style.js
CHANGED
|
@@ -6,9 +6,6 @@ import '@alife/devops-ui/es/style';
|
|
|
6
6
|
import '@alife/teamix-text-avatar/es/style';
|
|
7
7
|
import '@alife/yunxiao-icon/es/style';
|
|
8
8
|
import '@alife/yunxiao-ai-panel/es/style';
|
|
9
|
-
|
|
10
|
-
import '@alifd/next/es/button/style';
|
|
11
|
-
import '@alifd/next/es/dialog/style';
|
|
9
|
+
|
|
12
10
|
import '@alife/yunxiao-avatar/es/style';
|
|
13
|
-
import '@alifd/next/es/message/style';
|
|
14
11
|
import '@alife/teamix-step-dialog/es/style';
|
package/es/utils/api/index.js
CHANGED
|
@@ -3,8 +3,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
3
3
|
import { Message } from '@teamix/ui';
|
|
4
4
|
import axios from 'axios';
|
|
5
5
|
import intl from "../../locale";
|
|
6
|
-
var
|
|
7
|
-
var apiHost = window.devopsConfig.apiHost;
|
|
6
|
+
var apiHost = '/devops/data/api.json';
|
|
8
7
|
// 默认拉取的日志行数
|
|
9
8
|
var DEFAULT_LIMIT = 1000;
|
|
10
9
|
var request = axios;
|
|
@@ -41,7 +40,6 @@ export var GetLatestPipelineRun = function GetLatestPipelineRun(pipelineId) {
|
|
|
41
40
|
method: 'GET',
|
|
42
41
|
actionPath: 'https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/runs/latestPipelineRun',
|
|
43
42
|
pathParams: {
|
|
44
|
-
organizationId: orgId,
|
|
45
43
|
pipelineId: pipelineId
|
|
46
44
|
}
|
|
47
45
|
};
|
|
@@ -56,7 +54,6 @@ export var GetPipelineJobSteps = function GetPipelineJobSteps(pipelineId, pipeli
|
|
|
56
54
|
method: 'GET',
|
|
57
55
|
actionPath: 'https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/steps',
|
|
58
56
|
pathParams: {
|
|
59
|
-
organizationId: orgId,
|
|
60
57
|
pipelineId: pipelineId,
|
|
61
58
|
pipelineRunId: pipelineRunId,
|
|
62
59
|
jobId: jobId
|
|
@@ -79,7 +76,6 @@ export var GetPipelineJobStepLog = function GetPipelineJobStepLog(_ref2) {
|
|
|
79
76
|
method: 'GET',
|
|
80
77
|
actionPath: 'https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/step/log',
|
|
81
78
|
pathParams: {
|
|
82
|
-
organizationId: orgId,
|
|
83
79
|
pipelineId: pipelineId,
|
|
84
80
|
pipelineRunId: pipelineRunId,
|
|
85
81
|
jobId: jobId,
|
|
@@ -108,7 +104,6 @@ export var RetryPipelineJobRun = function RetryPipelineJobRun(_ref3) {
|
|
|
108
104
|
method: 'PUT',
|
|
109
105
|
actionPath: 'https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/retry',
|
|
110
106
|
pathParams: {
|
|
111
|
-
organizationId: orgId,
|
|
112
107
|
pipelineId: pipelineId,
|
|
113
108
|
pipelineRunId: pipelineRunId,
|
|
114
109
|
jobId: jobId
|
|
@@ -127,7 +122,6 @@ export var SkipPipelineJobRun = function SkipPipelineJobRun(_ref4) {
|
|
|
127
122
|
method: 'PUT',
|
|
128
123
|
actionPath: 'https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/skip',
|
|
129
124
|
pathParams: {
|
|
130
|
-
organizationId: orgId,
|
|
131
125
|
pipelineId: pipelineId,
|
|
132
126
|
pipelineRunId: pipelineRunId,
|
|
133
127
|
jobId: jobId
|
|
@@ -146,7 +140,6 @@ export var StopPipelineJobRun = function StopPipelineJobRun(_ref5) {
|
|
|
146
140
|
method: 'PUT',
|
|
147
141
|
actionPath: 'https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/stop',
|
|
148
142
|
pathParams: {
|
|
149
|
-
organizationId: orgId,
|
|
150
143
|
pipelineId: pipelineId,
|
|
151
144
|
pipelineRunId: pipelineRunId,
|
|
152
145
|
jobId: jobId
|
|
@@ -165,7 +158,6 @@ export var StartPipelineJobRun = function StartPipelineJobRun(_ref6) {
|
|
|
165
158
|
method: 'POST',
|
|
166
159
|
actionPath: 'https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/start',
|
|
167
160
|
pathParams: {
|
|
168
|
-
organizationId: orgId,
|
|
169
161
|
pipelineId: pipelineId,
|
|
170
162
|
pipelineRunId: pipelineRunId,
|
|
171
163
|
jobId: jobId
|