component-shipinlv 1.3.11 → 2.0.0
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/VideoPublish/account-manage/list.js +1 -1
- package/dist/VideoPublish/create-task/base/index.js +26 -2
- package/dist/VideoPublish/create-task/index.js +2 -1
- package/dist/VideoPublish/index.js +2 -1
- package/dist/VideoPublish/index.less +1 -1
- package/dist/VideoPublish/log/index.js +2 -1
- package/dist/VideoPublish/publish-task-plan/tool.js +1 -1
- package/dist/VideoPublish/task-list/index.js +5 -2
- package/dist/VideoPublish/task-list/plan/list.d.ts +1 -0
- package/dist/VideoPublish/task-list/plan/list.js +5 -3
- package/dist/VideoPublish/task-list/query.js +20 -1
- package/dist/VideoPublish/video-publish-statistic/index.js +2 -1
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.d.ts +1 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +9 -5
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +20 -1
- package/dist/component/media-show/render.js +2 -1
- package/dist/component/video-platform/logo.js +2 -2
- package/dist/component/video-platform/logo.less +1 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/openChrome.js +3 -1
- package/dist/lib/request.js +3 -1
- package/dist/service/api/VideoPublishStatisticPublishController.d.ts +3 -0
- package/dist/service/api/VideoPublishTaskPlanController.d.ts +1 -0
- package/dist/types/VideoPublish.d.ts +3 -0
- package/dist/types/VideoPublishStatistic.d.ts +2 -0
- package/package.json +1 -1
|
@@ -446,7 +446,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
|
446
446
|
return /*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
|
|
447
447
|
id: item.id,
|
|
448
448
|
className: currentId == item.id ? "active" : '',
|
|
449
|
-
index: index
|
|
449
|
+
index: index,
|
|
450
450
|
accountInfo: _objectSpread({}, item),
|
|
451
451
|
onDel: function onDel(id) {
|
|
452
452
|
return _onDel(id);
|
|
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
5
5
|
import React, { useState } from "react";
|
|
6
6
|
import "./index.less";
|
|
7
7
|
import { Divider, Tag, Form, Tooltip, InputNumber, Select, Radio, DatePicker, ConfigProvider, Switch } from "antd";
|
|
8
|
-
import { RedoOutlined, ShoppingOutlined, UsergroupAddOutlined, VideoCameraOutlined } from "@ant-design/icons";
|
|
8
|
+
import { QuestionCircleOutlined, RedoOutlined, ShoppingOutlined, UsergroupAddOutlined, VideoCameraOutlined } from "@ant-design/icons";
|
|
9
9
|
import PageContentWarp from "../../../UI/PageContentWarp";
|
|
10
10
|
import { TreeSelect } from 'antd';
|
|
11
11
|
import Tool from "../../../lib/Tool";
|
|
@@ -148,7 +148,8 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
|
|
|
148
148
|
children: /*#__PURE__*/_jsx(TreeSelect, {
|
|
149
149
|
treeDefaultExpandAll: true,
|
|
150
150
|
disabled: loadingAccountList || treeVideoAccountData.length === 0,
|
|
151
|
-
treeData: treeVideoAccountData
|
|
151
|
+
treeData: treeVideoAccountData,
|
|
152
|
+
listHeight: 320
|
|
152
153
|
// value={ [] }
|
|
153
154
|
,
|
|
154
155
|
onChange: function onChange(idList) {
|
|
@@ -168,6 +169,29 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
|
|
|
168
169
|
children: /*#__PURE__*/_jsx(RedoOutlined, {})
|
|
169
170
|
})
|
|
170
171
|
})]
|
|
172
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
173
|
+
label: "\u53D1\u5E03\u987A\u5E8F",
|
|
174
|
+
name: "publishOrder",
|
|
175
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
176
|
+
disabled: true,
|
|
177
|
+
children: [/*#__PURE__*/_jsxs(Radio, {
|
|
178
|
+
value: "",
|
|
179
|
+
children: ["\u6309\u4EFB\u52A1\u63D0\u4EA4\u987A\u5E8F", /*#__PURE__*/_jsxs(Tooltip, {
|
|
180
|
+
title: "\u6839\u636E\u63D0\u4EA4\u53D1\u5E03\u4EFB\u52A1\u7684\u987A\u5E8F\u53D1\uFF08\u65E2\uFF1A\u5148\u63D0\u4EA4\u7684\u5148\u53D1\u5E03\uFF0C \u540E\u63D0\u4EA4\u7684\u540E\u53D1\u5E03\uFF09",
|
|
181
|
+
children: [" ", /*#__PURE__*/_jsxs("a", {
|
|
182
|
+
children: [" ", /*#__PURE__*/_jsx(QuestionCircleOutlined, {})]
|
|
183
|
+
})]
|
|
184
|
+
})]
|
|
185
|
+
}), /*#__PURE__*/_jsxs(Radio, {
|
|
186
|
+
value: "loop-account",
|
|
187
|
+
children: ["\u6309\u8D26\u6237\u5FAA\u73AF", /*#__PURE__*/_jsxs(Tooltip, {
|
|
188
|
+
title: "\u7B2C\u4E00\u4E2A\u8D26\u6237\u53D1\u4E00\u4E2A\u89C6\u9891\uFF0C\u63A5\u7740\u7B2C\u4E8C\u4E2A\u8D26\u6237\u53D1\u4E00\u4E2A\uFF0C\u4E00\u76F4\u5FAA\u73AF\uFF08\u65E2\uFF1A\u6BCF\u4E2A\u8D26\u6237\u8F6E\u6D41\u5148\u53D1\u4E00\u4E2A\uFF0C\u6700\u5927\u9650\u5236\u4FDD\u8BC1\u6BCF\u4E2A\u8D26\u6237\u81F3\u5C11\u90FD\u6709\u89C6\u9891\uFF09",
|
|
189
|
+
children: [" ", /*#__PURE__*/_jsxs("a", {
|
|
190
|
+
children: [" ", /*#__PURE__*/_jsx(QuestionCircleOutlined, {})]
|
|
191
|
+
})]
|
|
192
|
+
})]
|
|
193
|
+
})]
|
|
194
|
+
})
|
|
171
195
|
}), /*#__PURE__*/_jsxs(Divider, {
|
|
172
196
|
orientation: "left",
|
|
173
197
|
children: [/*#__PURE__*/_jsx(VideoCameraOutlined, {
|
|
@@ -33,8 +33,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
|
33
33
|
normalDayMaxCount: 1,
|
|
34
34
|
normalVideoKindRateType: '',
|
|
35
35
|
whoCanView: '0',
|
|
36
|
-
noTopicIsUserRecommendTopic:
|
|
36
|
+
noTopicIsUserRecommendTopic: true,
|
|
37
37
|
startTime: null,
|
|
38
|
+
publishOrder: '',
|
|
38
39
|
salesVideoRate: 2,
|
|
39
40
|
salesVideoRateType: 'hour',
|
|
40
41
|
salesDayMaxCount: 2,
|
|
@@ -104,7 +104,8 @@ var VideoPublish = function VideoPublish(_ref) {
|
|
|
104
104
|
// disabled: ! canPublish,
|
|
105
105
|
children: /*#__PURE__*/_jsx(VideoPublishTaskPlanList, {
|
|
106
106
|
env: env,
|
|
107
|
-
publishTaskId: 0
|
|
107
|
+
publishTaskId: 0,
|
|
108
|
+
timeFromKind: "updated"
|
|
108
109
|
})
|
|
109
110
|
}, {
|
|
110
111
|
key: 'statistic',
|
|
@@ -42,7 +42,8 @@ var VideoPublishLog = function VideoPublishLog(_ref) {
|
|
|
42
42
|
wait: '<ClockCircleOutlined class="icon icon-wait" />',
|
|
43
43
|
warn: '<WarningFilled class="icon icon-warn" />',
|
|
44
44
|
fail: '<CloseSquareFilled class="icon icon-fail" />',
|
|
45
|
-
success: '<CheckCircleFilled class="icon icon-success" />'
|
|
45
|
+
success: '<CheckCircleFilled class="icon icon-success" />',
|
|
46
|
+
finish: '<CheckCircleFilled class="icon icon-success" />'
|
|
46
47
|
};
|
|
47
48
|
var onLogDo = function onLogDo(data) {
|
|
48
49
|
console.log('log data:', data);
|
|
@@ -186,7 +186,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
|
|
|
186
186
|
coverExist = _context2.sent;
|
|
187
187
|
if (!coverExist || !coverExist.isExist) {
|
|
188
188
|
item.publishVideo.publishCoverUrl = '';
|
|
189
|
-
errExistLog.message = '
|
|
189
|
+
errExistLog.message = '预判定:封面文件 本身已经不存在(可能被清理删除),将采用系统推荐封面<Divider />';
|
|
190
190
|
this.onLog(errExistLog);
|
|
191
191
|
}
|
|
192
192
|
case 22:
|
|
@@ -37,7 +37,9 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
|
37
37
|
var _useState5 = useState({
|
|
38
38
|
startTime: 0,
|
|
39
39
|
// Date.now(),
|
|
40
|
-
endTime: 0
|
|
40
|
+
endTime: 0,
|
|
41
|
+
//Date.now(),
|
|
42
|
+
timeFromKind: 'publishTime'
|
|
41
43
|
// taskStatus: '',
|
|
42
44
|
// keyword: '',
|
|
43
45
|
}),
|
|
@@ -170,7 +172,8 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
|
|
|
170
172
|
title: '发布任务计划',
|
|
171
173
|
content: /*#__PURE__*/_jsx(VideoPublishTaskPlanList, {
|
|
172
174
|
env: env,
|
|
173
|
-
publishTaskId: publishTaskId
|
|
175
|
+
publishTaskId: publishTaskId,
|
|
176
|
+
timeFromKind: query.timeFromKind
|
|
174
177
|
}),
|
|
175
178
|
width: 1200
|
|
176
179
|
});
|
|
@@ -27,7 +27,8 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
|
27
27
|
_ref$startTime = _ref.startTime,
|
|
28
28
|
startTime = _ref$startTime === void 0 ? 0 : _ref$startTime,
|
|
29
29
|
_ref$endTime = _ref.endTime,
|
|
30
|
-
endTime = _ref$endTime === void 0 ? 0 : _ref$endTime
|
|
30
|
+
endTime = _ref$endTime === void 0 ? 0 : _ref$endTime,
|
|
31
|
+
timeFromKind = _ref.timeFromKind;
|
|
31
32
|
var _useState = useState([]),
|
|
32
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33
34
|
listData = _useState2[0],
|
|
@@ -179,7 +180,7 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
|
179
180
|
}
|
|
180
181
|
}, {
|
|
181
182
|
title: /*#__PURE__*/_jsx(_Fragment, {
|
|
182
|
-
children: "\
|
|
183
|
+
children: "\u5B9A\u65F6"
|
|
183
184
|
}),
|
|
184
185
|
dataIndex: 'publishTime',
|
|
185
186
|
key: 'publishTime',
|
|
@@ -230,6 +231,7 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
|
230
231
|
}, postQuery), {}, {
|
|
231
232
|
startTime: postQuery.startTime > 10000 ? Math.floor(dayjs(postQuery.startTime).startOf('date').valueOf() * 0.001) || 0 : 0,
|
|
232
233
|
endTime: postQuery.endTime > 10000 ? Math.floor(dayjs(postQuery.endTime).endOf('date').valueOf() * 0.001) || 0 : 0,
|
|
234
|
+
timeFromKind: timeFromKind,
|
|
233
235
|
current: current,
|
|
234
236
|
pageSize: pagination.pageSize
|
|
235
237
|
}), {
|
|
@@ -248,7 +250,7 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
|
248
250
|
loading: loadingTaskList,
|
|
249
251
|
error: errorTaskList,
|
|
250
252
|
onReload: runTaskList,
|
|
251
|
-
title: "\u4EFB\u52A1\u8BA1\u5212",
|
|
253
|
+
title: "\u4EFB\u52A1\u8BA1\u5212" + timeFromKind,
|
|
252
254
|
className: "videoPublishTaskPlanList",
|
|
253
255
|
extInfo: /*#__PURE__*/_jsx(VideoPublishTaskPlanListQuery, {
|
|
254
256
|
defaultQuery: query,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import { Button, DatePicker, Form, Space } from "antd";
|
|
4
|
+
import { Button, DatePicker, Form, Select, Space } from "antd";
|
|
5
5
|
import "./query.less";
|
|
6
|
+
import { ClockCircleOutlined, ExclamationCircleOutlined, SendOutlined } from "@ant-design/icons";
|
|
6
7
|
import dayjs from "dayjs";
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -35,6 +36,24 @@ var VideoPublishTaskListQuery = function VideoPublishTaskListQuery(_ref) {
|
|
|
35
36
|
onFinish: onFinish,
|
|
36
37
|
children: /*#__PURE__*/_jsxs(Space, {
|
|
37
38
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
|
39
|
+
name: "timeFromKind",
|
|
40
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
|
41
|
+
style: {
|
|
42
|
+
width: 160
|
|
43
|
+
},
|
|
44
|
+
value: form,
|
|
45
|
+
children: [/*#__PURE__*/_jsxs(Select.Option, {
|
|
46
|
+
value: "created",
|
|
47
|
+
children: [/*#__PURE__*/_jsx(ExclamationCircleOutlined, {}), " \u6309\u521B\u5EFA\u65F6\u95F4"]
|
|
48
|
+
}), /*#__PURE__*/_jsxs(Select.Option, {
|
|
49
|
+
value: "updated",
|
|
50
|
+
children: [/*#__PURE__*/_jsx(SendOutlined, {}), " \u6309\u53D1\u5E03\u65F6\u95F4"]
|
|
51
|
+
}), /*#__PURE__*/_jsxs(Select.Option, {
|
|
52
|
+
value: "publishTime",
|
|
53
|
+
children: [/*#__PURE__*/_jsx(ClockCircleOutlined, {}), " \u6309\u5B9A\u65F6\u65F6\u95F4"]
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
38
57
|
children: /*#__PURE__*/_jsx(DatePicker.RangePicker, {
|
|
39
58
|
defaultValue: query.startTime > 0 ? [query.startTime <= 0 ? null : dayjs(query.startTime), query.endTime <= 0 ? null : dayjs(query.endTime)] : undefined,
|
|
40
59
|
disabledDate: function disabledDate(currentDate) {
|
|
@@ -13,7 +13,8 @@ var VideoPublishStatisticPublish = function VideoPublishStatisticPublish(_ref) {
|
|
|
13
13
|
key: 'publish-video',
|
|
14
14
|
label: '发布任务',
|
|
15
15
|
children: /*#__PURE__*/_jsx(VideoPublishStatisticPublishList, {
|
|
16
|
-
env: getApiEnv()
|
|
16
|
+
env: getApiEnv(),
|
|
17
|
+
timeFromKind: "updated"
|
|
17
18
|
})
|
|
18
19
|
}, {
|
|
19
20
|
key: 'operation',
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import "./list.less";
|
|
3
3
|
interface Props {
|
|
4
4
|
env?: Global.Env;
|
|
5
|
+
timeFromKind: VideoPublishStatisticPublish.TimeFromKind;
|
|
5
6
|
}
|
|
6
7
|
declare const VideoPublishStatisticPublishList: React.FC<Props>;
|
|
7
8
|
export default VideoPublishStatisticPublishList;
|
|
@@ -16,7 +16,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
18
|
var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList(_ref) {
|
|
19
|
-
var env = _ref.env
|
|
19
|
+
var env = _ref.env,
|
|
20
|
+
_ref$timeFromKind = _ref.timeFromKind,
|
|
21
|
+
timeFromKind = _ref$timeFromKind === void 0 ? 'updated' : _ref$timeFromKind;
|
|
20
22
|
var _useState = useState([]),
|
|
21
23
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22
24
|
listData = _useState2[0],
|
|
@@ -33,6 +35,7 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
|
33
35
|
pagination = _useState4[0],
|
|
34
36
|
setPagination = _useState4[1];
|
|
35
37
|
var _useState5 = useState({
|
|
38
|
+
timeFromKind: timeFromKind,
|
|
36
39
|
startTime: Date.now(),
|
|
37
40
|
endTime: Date.now()
|
|
38
41
|
// taskStatus: '',
|
|
@@ -173,8 +176,8 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
|
173
176
|
var postQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : query;
|
|
174
177
|
var current = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : pagination.current;
|
|
175
178
|
return VideoPublishPublishStatisticController.list(_objectSpread(_objectSpread({}, postQuery), {}, {
|
|
176
|
-
startTime: postQuery.startTime >
|
|
177
|
-
endTime: postQuery.endTime >
|
|
179
|
+
startTime: postQuery.startTime > 10000 ? Math.floor(dayjs(postQuery.startTime).startOf('date').valueOf() * 0.001) || 0 : 0,
|
|
180
|
+
endTime: postQuery.endTime > 10000 ? Math.floor(dayjs(postQuery.endTime).endOf('date').valueOf() * 0.001) || 0 : 0,
|
|
178
181
|
current: current,
|
|
179
182
|
pageSize: pagination.pageSize
|
|
180
183
|
}), {
|
|
@@ -216,7 +219,8 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
|
216
219
|
publishTaskId: 0,
|
|
217
220
|
accountId: accountId,
|
|
218
221
|
startTime: query.startTime,
|
|
219
|
-
endTime: query.endTime
|
|
222
|
+
endTime: query.endTime,
|
|
223
|
+
timeFromKind: query.timeFromKind
|
|
220
224
|
}),
|
|
221
225
|
width: 1200
|
|
222
226
|
});
|
|
@@ -225,7 +229,7 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
|
|
|
225
229
|
loading: loadingTaskList,
|
|
226
230
|
error: errorTaskList,
|
|
227
231
|
onReload: runTaskList,
|
|
228
|
-
title: "\u53D1\u5E03\u7EDF\u8BA1",
|
|
232
|
+
title: "\u53D1\u5E03\u7EDF\u8BA1" + query.timeFromKind,
|
|
229
233
|
className: "video-publish-statistic-list",
|
|
230
234
|
extInfo: /*#__PURE__*/_jsx(VideoPublishStatisticPublishListQuery, {
|
|
231
235
|
defaultQuery: query,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import { Button, DatePicker, Form, Space } from "antd";
|
|
4
|
+
import { Button, DatePicker, Form, Select, Space } from "antd";
|
|
5
5
|
import "./query.less";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
|
+
import { ClockCircleOutlined, ExclamationCircleOutlined, SendOutlined } from "@ant-design/icons";
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublishListQuery(_ref) {
|
|
@@ -35,6 +36,24 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
|
|
|
35
36
|
onFinish: onFinish,
|
|
36
37
|
children: /*#__PURE__*/_jsxs(Space, {
|
|
37
38
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
|
39
|
+
name: "timeFromKind",
|
|
40
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
|
41
|
+
style: {
|
|
42
|
+
width: 160
|
|
43
|
+
},
|
|
44
|
+
value: form,
|
|
45
|
+
children: [/*#__PURE__*/_jsxs(Select.Option, {
|
|
46
|
+
value: "created",
|
|
47
|
+
children: [/*#__PURE__*/_jsx(ExclamationCircleOutlined, {}), " \u6309\u521B\u5EFA\u65F6\u95F4"]
|
|
48
|
+
}), /*#__PURE__*/_jsxs(Select.Option, {
|
|
49
|
+
value: "updated",
|
|
50
|
+
children: [/*#__PURE__*/_jsx(SendOutlined, {}), " \u6309\u53D1\u5E03\u65F6\u95F4"]
|
|
51
|
+
}), /*#__PURE__*/_jsxs(Select.Option, {
|
|
52
|
+
value: "publishTime",
|
|
53
|
+
children: [/*#__PURE__*/_jsx(ClockCircleOutlined, {}), " \u6309\u5B9A\u65F6\u65F6\u95F4"]
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
38
57
|
children: /*#__PURE__*/_jsx(DatePicker.RangePicker, {
|
|
39
58
|
defaultValue: query.startTime > 10000 ? [query.startTime <= 0 ? null : dayjs(query.startTime), query.endTime <= 0 ? null : dayjs(query.endTime)] : [dayjs(), dayjs()],
|
|
40
59
|
disabledDate: function disabledDate(currentDate) {
|
|
@@ -5,6 +5,7 @@ import React, { useEffect, useState } from "react";
|
|
|
5
5
|
import "./render.less";
|
|
6
6
|
import Tool from "../../lib/Tool";
|
|
7
7
|
import getVideoUrl from "../../lib/component/getVideoUrl";
|
|
8
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -105,7 +106,7 @@ export var MediaShowRender = function MediaShowRender(_ref) {
|
|
|
105
106
|
})
|
|
106
107
|
})
|
|
107
108
|
})]
|
|
108
|
-
}) :
|
|
109
|
+
}) : /*#__PURE__*/_jsx(LoadingOutlined, {})
|
|
109
110
|
});
|
|
110
111
|
};
|
|
111
112
|
export default MediaShowRender;
|
|
@@ -86,9 +86,9 @@ var VideoPlatform = function VideoPlatform(_ref) {
|
|
|
86
86
|
var itemData = VideoPlatformDict[platform] || {
|
|
87
87
|
name: platform
|
|
88
88
|
};
|
|
89
|
-
return /*#__PURE__*/_jsxs("
|
|
89
|
+
return /*#__PURE__*/_jsxs("i", {
|
|
90
90
|
className: "videoPlatformLogo ".concat(disabled ? 'disabled' : '', " ").concat(className),
|
|
91
|
-
children: [/*#__PURE__*/_jsx("
|
|
91
|
+
children: [/*#__PURE__*/_jsx("i", {
|
|
92
92
|
className: "logo ".concat(platform || '', " "),
|
|
93
93
|
style: {
|
|
94
94
|
width: size,
|
package/dist/lib/Tool.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ declare const Tool: {
|
|
|
161
161
|
OsPathSeparator(): string;
|
|
162
162
|
getTitleByPath(path: string): string;
|
|
163
163
|
h5Pay(query: Pay.H5PayQuery): void;
|
|
164
|
-
notification(type: "
|
|
164
|
+
notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
|
165
165
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
|
166
166
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
|
167
167
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
package/dist/lib/openChrome.js
CHANGED
|
@@ -164,7 +164,9 @@ var getOpenQuery = /*#__PURE__*/function () {
|
|
|
164
164
|
_action: query.action || '',
|
|
165
165
|
_platformAccountId: query.platformAccountId,
|
|
166
166
|
_nickname: query.nickname || '',
|
|
167
|
-
_chromeProfileName: query.chromeProfileName || ''
|
|
167
|
+
_chromeProfileName: query.chromeProfileName || '',
|
|
168
|
+
_shipinlvMainPort: window.__ShipinlvMainPort || 0,
|
|
169
|
+
_shipinlvLocalServerPort: window.__ShipinlvLocalServerPort || 0
|
|
168
170
|
});
|
|
169
171
|
chromeProfileDir = settingConfig.chromeUserDataDir + '/' + query.chromeProfileName;
|
|
170
172
|
_context4.t0 = Tool.getOsName();
|
package/dist/lib/request.js
CHANGED
|
@@ -99,7 +99,9 @@ var requestApi = /*#__PURE__*/function () {
|
|
|
99
99
|
if (['Failed to fetch', 'http error'].includes((_err2 = err) === null || _err2 === void 0 ? void 0 : _err2.message)) {
|
|
100
100
|
err.message = '发生了一些问题,请稍后重试';
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
if (!(options !== null && options !== void 0 && options.silent)) {
|
|
103
|
+
Tool.toastError(err.message);
|
|
104
|
+
}
|
|
103
105
|
onError(pageUrl, url, err.message, JSON.stringify(err), options === null || options === void 0 ? void 0 : options.silent);
|
|
104
106
|
reject(err);
|
|
105
107
|
});
|
|
@@ -6,6 +6,7 @@ declare namespace VideoPublish {
|
|
|
6
6
|
type VideoFrom = 'local' | 'task';
|
|
7
7
|
type VideoRateType = 'hour' | 'day';
|
|
8
8
|
type WhoCanView = '0' | '1' | '2';
|
|
9
|
+
type PublishOrder = '' | 'loop-account';
|
|
9
10
|
interface CreateTaskList {
|
|
10
11
|
id: number;
|
|
11
12
|
title: string;
|
|
@@ -127,10 +128,12 @@ declare namespace VideoPublish {
|
|
|
127
128
|
whoCanView: WhoCanView;
|
|
128
129
|
noTopicIsUserRecommendTopic: boolean;
|
|
129
130
|
startTime: number | null;
|
|
131
|
+
publishOrder: PublishOrder;
|
|
130
132
|
hourEnabled: number[];
|
|
131
133
|
}
|
|
132
134
|
interface TaskListQuery {
|
|
133
135
|
startTime: number;
|
|
134
136
|
endTime: number;
|
|
137
|
+
timeFromKind: VideoPublishStatisticPublish.TimeFromKind;
|
|
135
138
|
}
|
|
136
139
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare namespace VideoPublishStatisticPublish {
|
|
2
|
+
type TimeFromKind = 'created' | 'updated' | 'publishTime';
|
|
2
3
|
interface List {
|
|
3
4
|
finishAmount: number;
|
|
4
5
|
progressAmount: number;
|
|
@@ -10,6 +11,7 @@ declare namespace VideoPublishStatisticPublish {
|
|
|
10
11
|
pagination: Global.Pagination;
|
|
11
12
|
}
|
|
12
13
|
interface ListQuery {
|
|
14
|
+
timeFromKind: TimeFromKind;
|
|
13
15
|
startTime: number;
|
|
14
16
|
endTime: number;
|
|
15
17
|
}
|