@titaui/pc 1.7.86 → 1.7.87
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.
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.titaui-dialog .rc-dialog-header {
|
|
53
|
-
padding:
|
|
53
|
+
padding: 18px 32px;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.titaui-dialog .rc-dialog-body {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.titaui-dialog .rc-dialog-footer {
|
|
61
|
-
padding:
|
|
61
|
+
padding: 20px 32px;
|
|
62
62
|
display: flex;
|
|
63
63
|
justify-content: flex-end;
|
|
64
64
|
}
|
|
@@ -69,11 +69,13 @@ var Inform = function Inform(props) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
if (objType === _constant.EObjType.Task) {
|
|
72
|
+
// @ts-ignore
|
|
72
73
|
window.Talent.app.vent.trigger('global-pull-screen', objId, 'task');
|
|
73
74
|
return;
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
if (objType === _constant.EObjType.Remind) {
|
|
78
|
+
// @ts-ignore
|
|
77
79
|
window.Talent.app.vent.trigger('global-daily-detail-pull-screen', objId);
|
|
78
80
|
return;
|
|
79
81
|
}
|
|
@@ -81,30 +83,12 @@ var Inform = function Inform(props) {
|
|
|
81
83
|
if (messageType == 135) {
|
|
82
84
|
var redisKey = item.content.match(/redisKey=(\S*?)"/)[1]; // @ts-ignore
|
|
83
85
|
|
|
84
|
-
Talent.app.vent.trigger(
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (messageType === 99) {
|
|
89
|
-
var _options = {
|
|
90
|
-
width: 680,
|
|
91
|
-
showScroll: false,
|
|
92
|
-
type: 'message',
|
|
93
|
-
// 推屏类型
|
|
94
|
-
data: {
|
|
95
|
-
type: 'okrDashBoard',
|
|
96
|
-
// 消息类型
|
|
97
|
-
objId: item.messageId,
|
|
98
|
-
objType: messageType
|
|
99
|
-
}
|
|
100
|
-
}; // @ts-ignore
|
|
101
|
-
|
|
102
|
-
Talent.app.vent.trigger('openReactScreenPush', _options);
|
|
86
|
+
Talent.app.vent.trigger('open-weekly-report-modal', redisKey);
|
|
103
87
|
return;
|
|
104
88
|
} // 处理合并的消息
|
|
105
89
|
|
|
106
90
|
|
|
107
|
-
var isMessageMerging =
|
|
91
|
+
var isMessageMerging = [83, 93, 94, 95, 96, 97, 98, 99, 100, 131, 136, 13018, 30362].includes(messageType);
|
|
108
92
|
|
|
109
93
|
if (!isMessageMerging) {
|
|
110
94
|
if (messageType === _constant.informType.details) {
|
|
@@ -145,7 +129,7 @@ var Inform = function Inform(props) {
|
|
|
145
129
|
var _str = item.content.match(/\/\/.*?[\"|\']/gi);
|
|
146
130
|
|
|
147
131
|
if (!_str) return;
|
|
148
|
-
_str = _str.join(
|
|
132
|
+
_str = _str.join('');
|
|
149
133
|
|
|
150
134
|
var _url2 = _str.slice(0, _str.length - 1);
|
|
151
135
|
|
|
@@ -155,7 +139,7 @@ var Inform = function Inform(props) {
|
|
|
155
139
|
var _str2 = item.content.match(/https:.*?[\"|\']/gi);
|
|
156
140
|
|
|
157
141
|
if (!_str2) return;
|
|
158
|
-
_str2 = _str2.join(
|
|
142
|
+
_str2 = _str2.join('');
|
|
159
143
|
|
|
160
144
|
var _url3 = _str2.slice(0, _str2.length - 1);
|
|
161
145
|
|
|
@@ -178,56 +162,37 @@ var Inform = function Inform(props) {
|
|
|
178
162
|
}
|
|
179
163
|
}
|
|
180
164
|
|
|
181
|
-
var
|
|
165
|
+
var notificationType = 'e-report'; // E-周报提醒消息合并
|
|
166
|
+
|
|
167
|
+
var content = domRef.current.textContent;
|
|
182
168
|
|
|
183
169
|
if (messageType == '83') {
|
|
184
170
|
// 项目,目标进展提醒消息合并
|
|
185
|
-
|
|
171
|
+
notificationType = 'project-objective';
|
|
186
172
|
} else if (Number(messageType) > 93 && Number(messageType) <= 100) {
|
|
187
173
|
// OKR 仪表盘消息提醒
|
|
188
|
-
|
|
189
|
-
} else if (messageType == 131) {
|
|
190
|
-
|
|
174
|
+
notificationType = 'okr-dashBoard';
|
|
175
|
+
} else if (messageType == 131 || messageType == 136) {
|
|
176
|
+
notificationType = 'performance';
|
|
177
|
+
content = item.content;
|
|
191
178
|
}
|
|
192
179
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
objType: messageType,
|
|
203
|
-
startDate: '',
|
|
204
|
-
endDate: ''
|
|
180
|
+
_drawerManager["default"].open('NotificationMergeDetail', {
|
|
181
|
+
config: {
|
|
182
|
+
content: content,
|
|
183
|
+
messageId: item.messageId,
|
|
184
|
+
messageType: item.messageType,
|
|
185
|
+
notificationDate: item.createTime,
|
|
186
|
+
notificationType: notificationType,
|
|
187
|
+
objId: item.objId,
|
|
188
|
+
objType: item.objType
|
|
205
189
|
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
options.data.objType = messageType;
|
|
210
|
-
options.data.startDate = item.createTime;
|
|
211
|
-
} else if (messageType > 93 && messageType <= 100) {
|
|
212
|
-
options.data.startDate = item.createTime;
|
|
213
|
-
} else if (messageType == 131) {
|
|
214
|
-
options.data.objType = item.objId.split('_')[0];
|
|
215
|
-
options.data.startDate = item.objId.split('_')[1];
|
|
216
|
-
options.data.endDate = item.objId.split('_')[2];
|
|
217
|
-
} else {
|
|
218
|
-
var regex = /\((.+?)\)/g,
|
|
219
|
-
content = domRef.current.textContent;
|
|
220
|
-
var date = [];
|
|
221
|
-
date = content.match(regex);
|
|
222
|
-
options.data.startDate = date[0].slice(1, date[0].length - 1).split('-')[0]; // @ts-ignore
|
|
223
|
-
|
|
224
|
-
options.data.endDate = date[0].slice(1, date[0].length - 1).split('-')[1];
|
|
225
|
-
} // @ts-ignore
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
Talent.app.vent.trigger('openReactScreenPush', options);
|
|
190
|
+
}, {
|
|
191
|
+
width: 680
|
|
192
|
+
});
|
|
229
193
|
};
|
|
230
194
|
|
|
195
|
+
;
|
|
231
196
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
232
197
|
className: (0, _classnames["default"])("".concat(preCls, "__item"), _defineProperty({}, "".concat(preCls, "__item--scroll"), informs.length >= 4)),
|
|
233
198
|
key: item.messageId,
|
package/package.json
CHANGED
package/yarn-error.log
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
Arguments:
|
|
2
|
-
/usr/local/bin/node /usr/local/bin/yarn
|
|
3
|
-
|
|
4
|
-
PATH:
|
|
5
|
-
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/sbin
|
|
6
|
-
|
|
7
|
-
Yarn version:
|
|
8
|
-
1.22.10
|
|
9
|
-
|
|
10
|
-
Node version:
|
|
11
|
-
12.22.1
|
|
12
|
-
|
|
13
|
-
Platform:
|
|
14
|
-
darwin x64
|
|
15
|
-
|
|
16
|
-
Trace:
|
|
17
|
-
SyntaxError: /Users/yang/tita/titaui-pc/package.json: Unexpected token < in JSON at position 26
|
|
18
|
-
at JSON.parse (<anonymous>)
|
|
19
|
-
at /usr/local/lib/node_modules/yarn/lib/cli.js:1625:59
|
|
20
|
-
at Generator.next (<anonymous>)
|
|
21
|
-
at step (/usr/local/lib/node_modules/yarn/lib/cli.js:310:30)
|
|
22
|
-
at /usr/local/lib/node_modules/yarn/lib/cli.js:321:13
|
|
23
|
-
|
|
24
|
-
npm manifest:
|
|
25
|
-
{
|
|
26
|
-
"name": "@titaui/pc",
|
|
27
|
-
<<<<<<< HEAD
|
|
28
|
-
"version": "1.2.22",
|
|
29
|
-
=======
|
|
30
|
-
"version": "1.2.13",
|
|
31
|
-
>>>>>>> master
|
|
32
|
-
"nameCN": "",
|
|
33
|
-
"description": "",
|
|
34
|
-
"main": "src/index.js",
|
|
35
|
-
"scripts": {
|
|
36
|
-
"storybook": "start-storybook -p 6006 --no-dll",
|
|
37
|
-
"start": "dev_server=on webpack-dev-server --disableHostCheck=true --progress --colors --config webpack-stories.config.js",
|
|
38
|
-
"build-storybook": "build-storybook --docs --no-dll",
|
|
39
|
-
"build:es": "babel src -d es --ignore **/__tests__",
|
|
40
|
-
"build:lib": "cross-env OUTPUT_MODULE=commonjs babel src -d lib --ignore **/__tests__",
|
|
41
|
-
"build:umd": "webpack --config ./.scripts/webpack.umd.js",
|
|
42
|
-
"build": "npm run build:lib && npm run build:es && npm run build:umd"
|
|
43
|
-
},
|
|
44
|
-
"author": "",
|
|
45
|
-
"license": "ISC",
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"del": "^6.0.0",
|
|
48
|
-
"gulp": "^3.x",
|
|
49
|
-
"gulp-autoprefixer": "^7.0.1",
|
|
50
|
-
"gulp-babel": "^8.0.0",
|
|
51
|
-
"gulp-concat": "^2.6.1",
|
|
52
|
-
"gulp-cssbeautify": "^3.0.0",
|
|
53
|
-
"gulp-cssnano": "^2.1.3",
|
|
54
|
-
"gulp-filesize": "0.0.6",
|
|
55
|
-
"gulp-postcss": "^9.0.0",
|
|
56
|
-
"gulp-rename": "^2.0.0",
|
|
57
|
-
"gulp-replace": "^1.0.0",
|
|
58
|
-
"gulp-sass": "^4.1.0",
|
|
59
|
-
"gulp-sourcemaps": "^2.6.5",
|
|
60
|
-
"sass-resources-loader": "^2.2.1"
|
|
61
|
-
},
|
|
62
|
-
"dependencies": {
|
|
63
|
-
"@titaui/dagre": "^0.8.8-pre",
|
|
64
|
-
"@titaui/rc-tree2": "^4.1.15",
|
|
65
|
-
"@titaui/rc-trigger": "^5.2.5",
|
|
66
|
-
"@titaui/react-flow-renderer": "9.5.4",
|
|
67
|
-
"@titaui/toast": "^1.0.0",
|
|
68
|
-
"axios": "^0.21.1",
|
|
69
|
-
"classnames": "^2.2.6",
|
|
70
|
-
"clone-deep": "^4.0.1",
|
|
71
|
-
"d3-cloud": "^1.2.5",
|
|
72
|
-
"dayjs": "^1.10.4",
|
|
73
|
-
"html2canvas": "^1.0.0-rc.7",
|
|
74
|
-
"moment": "^2.29.1",
|
|
75
|
-
"qs": "^6.10.1",
|
|
76
|
-
"rc-checkbox": "^2.3.2",
|
|
77
|
-
"rc-dialog": "8.5.2",
|
|
78
|
-
"rc-drawer": "^4.3.1",
|
|
79
|
-
"rc-input-number": "^5.0.0",
|
|
80
|
-
"rc-pagination": "^3.1.6",
|
|
81
|
-
"rc-queue-anim": "1.4.1",
|
|
82
|
-
"rc-select": "^12.1.7",
|
|
83
|
-
"rc-switch": "^3.2.2",
|
|
84
|
-
"rc-table": "^7.13.2",
|
|
85
|
-
"rc-tabs": "^11.7.3",
|
|
86
|
-
"rc-tooltip": "^5.1.1",
|
|
87
|
-
"rc-tree": "^4.1.5",
|
|
88
|
-
"rc-trigger": "^5.2.3",
|
|
89
|
-
"rc-upload": "^4.2.0-alpha.0",
|
|
90
|
-
"rc-util": "^5.13.1",
|
|
91
|
-
"react-collapse": "^5.1.0",
|
|
92
|
-
"react-perfect-scrollbar": "^1.5.2",
|
|
93
|
-
"url-parse": "^1.5.1",
|
|
94
|
-
"uuid": "^3.1.0",
|
|
95
|
-
"wordcloud": "^1.2.2"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
yarn manifest:
|
|
100
|
-
No manifest
|
|
101
|
-
|
|
102
|
-
Lockfile:
|
|
103
|
-
No lockfile
|