component-shipinlv 2.0.18 → 2.1.1

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.
Files changed (61) hide show
  1. package/dist/ActiveAccountMode/hour-enabled.d.ts +9 -0
  2. package/dist/ActiveAccountMode/hour-enabled.js +42 -0
  3. package/dist/ActiveAccountMode/hour-enabled.less +24 -0
  4. package/dist/ActiveAccountMode/index.d.ts +7 -0
  5. package/dist/ActiveAccountMode/index.js +12 -0
  6. package/dist/ActiveAccountMode/index.less +0 -0
  7. package/dist/ActiveAccountMode/setting.d.ts +8 -0
  8. package/dist/ActiveAccountMode/setting.js +235 -0
  9. package/dist/ActiveAccountMode/setting.less +39 -0
  10. package/dist/ActiveAccountMode/task/index.d.ts +36 -0
  11. package/dist/ActiveAccountMode/task/index.js +819 -0
  12. package/dist/Auth/index.js +2 -0
  13. package/dist/VideoPublish/account-manage/home.js +1 -0
  14. package/dist/VideoPublish/account-manage/list.js +3 -2
  15. package/dist/VideoPublish/create-task/base/index.js +1 -1
  16. package/dist/VideoPublish/index.js +11 -1
  17. package/dist/VideoPublish/index.less +2 -2
  18. package/dist/VideoPublish/proxy/list.js +2 -1
  19. package/dist/VideoPublish/proxy/select.js +2 -1
  20. package/dist/VideoPublish/publish-task-plan/tool.js +1 -1
  21. package/dist/VideoPublish/task-list/index.js +3 -2
  22. package/dist/VideoPublish/task-list/plan/list.js +3 -2
  23. package/dist/VideoPublish/task-list/plan/query.js +15 -11
  24. package/dist/VideoPublish/video-account/create.js +1 -1
  25. package/dist/VideoPublish/video-account/group.js +1 -1
  26. package/dist/VideoPublish/video-account/index.js +58 -7
  27. package/dist/VideoPublish/video-publish-statistic/operation/list.js +2 -1
  28. package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +4 -2
  29. package/dist/VideoPublish/video-publish-statistic/publish-plan/query.d.ts +1 -0
  30. package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +4 -1
  31. package/dist/VideoPublish/video-topic/index.js +2 -2
  32. package/dist/VipCompare/index.js +2 -2
  33. package/dist/config/apiUrls.js +1 -1
  34. package/dist/lib/Tool.js +7 -0
  35. package/dist/lib/allow-mine-type.d.ts +4 -0
  36. package/dist/lib/allow-mine-type.js +19 -0
  37. package/dist/lib/file-type.d.ts +2 -0
  38. package/dist/lib/file-type.js +156 -0
  39. package/dist/lib/fs.d.ts +14 -0
  40. package/dist/lib/fs.js +479 -0
  41. package/dist/lib/getFileExt.d.ts +2 -0
  42. package/dist/lib/getFileExt.js +6 -0
  43. package/dist/lib/save-path.d.ts +17 -0
  44. package/dist/lib/save-path.js +173 -0
  45. package/dist/lib/save-path.less +21 -0
  46. package/dist/service/api/ActiveAccountModeSettingController.d.ts +2 -0
  47. package/dist/service/api/ActiveAccountModeSettingController.js +53 -0
  48. package/dist/service/api/PublishTaskPlanStatisticController.d.ts +1 -0
  49. package/dist/service/api/PublishTaskPlanStatisticController.js +28 -0
  50. package/dist/service/api/VideoPublishController.d.ts +4 -0
  51. package/dist/service/api/VideoPublishController.js +23 -0
  52. package/dist/types/AutoMakeTaskSetting.d.ts +18 -0
  53. package/dist/types/AutoMakeTaskSetting.js +0 -0
  54. package/dist/types/PublishTaskPlanStatistic.d.ts +15 -0
  55. package/dist/types/PublishTaskPlanStatistic.js +0 -0
  56. package/dist/types/VideoPublish.d.ts +1 -0
  57. package/dist/typings/VideoPublishVideoAccount.d.ts +1 -0
  58. package/dist/typings.d.ts +1 -0
  59. package/dist/video-study/index.js +2 -1
  60. package/dist/window.d.ts +5 -0
  61. package/package.json +1 -1
@@ -306,6 +306,8 @@ var Auth = function Auth(_ref) {
306
306
  children: "1\u3001\u628A\u672C\u9875\u7F51\u5740\u590D\u5236\u5230\u5FAE\u4FE1\u91CC\u9762\u6253\u5F00"
307
307
  }), /*#__PURE__*/_jsx("li", {
308
308
  children: "2\u3001\u8BF7\u7528\u5FAE\u4FE1\u626B\u7801\u767B\u5F55"
309
+ }), /*#__PURE__*/_jsx("li", {
310
+ children: "3\u3001\u628A\u672C\u9875\u7F51\u5740\u590D\u5236\u5230\u5FAE\u4FE1\u91CC\u9762\u6253\u5F00"
309
311
  })]
310
312
  })]
311
313
  }) : /*#__PURE__*/_jsx("div", {
@@ -18,6 +18,7 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
18
18
  onMenu = _ref.onMenu,
19
19
  canPublish = _ref.canPublish;
20
20
  var _useState = useState({
21
+ videoFromFolder: "",
21
22
  id: 0,
22
23
  userId: 0,
23
24
  platform: 'douyin',
@@ -87,8 +87,8 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
87
87
  manual: !userInfo.isLogin,
88
88
  onSuccess: function onSuccess(result) {
89
89
  listDataRef.current = result.list;
90
- setListData(result.list);
91
- onListData(result.list);
90
+ setListData(_toConsumableArray(result.list));
91
+ onListData(_toConsumableArray(result.list));
92
92
  }
93
93
  }),
94
94
  loading = _useRequest.loading,
@@ -139,6 +139,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
139
139
  created: 0,
140
140
  updated: 0,
141
141
  chromeProfileName: '',
142
+ videoFromFolder: '',
142
143
  proxyInfo: {}
143
144
  });
144
145
  return;
@@ -47,7 +47,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
47
47
  title: /*#__PURE__*/_jsxs(_Fragment, {
48
48
  children: [/*#__PURE__*/_jsx(UsergroupAddOutlined, {
49
49
  className: "groupIcon"
50
- }), " ", items.groupName || '默认分组']
50
+ }), " ", items.groupName || '默认']
51
51
  }),
52
52
  value: "group-".concat(items.groupId),
53
53
  key: "group-".concat(items.groupId),
@@ -4,7 +4,7 @@ import "./index.less";
4
4
  import { Menu, Tabs } from "antd";
5
5
  import VideoPublishCreateTask from "./create-task";
6
6
  import isInClient from "../lib/isInClient";
7
- import { BorderlessTableOutlined, ClockCircleOutlined, FileSearchOutlined, FileTextOutlined, GlobalOutlined, PieChartOutlined, QuestionCircleOutlined, SettingOutlined, UsergroupAddOutlined, VideoCameraAddOutlined } from "@ant-design/icons";
7
+ import { BorderlessTableOutlined, ClockCircleOutlined, FieldTimeOutlined, FileSearchOutlined, FileTextOutlined, GlobalOutlined, PieChartOutlined, QuestionCircleOutlined, SettingOutlined, UsergroupAddOutlined, VideoCameraAddOutlined } from "@ant-design/icons";
8
8
  import VideoPublishVideoAccount from "./video-account";
9
9
  import VideoPublishTaskList from "./task-list";
10
10
  import VideoPublishLog from "./log";
@@ -17,6 +17,7 @@ import VideoPublishTaskPlanList from "./task-list/plan/list";
17
17
  import VideoPublishStatisticPublish from "./video-publish-statistic";
18
18
  import saveSid from "../lib/saveSid";
19
19
  import VideoStudyPage from "../video-study";
20
+ import ActiveAccountMode from "../ActiveAccountMode";
20
21
  import { jsx as _jsx } from "react/jsx-runtime";
21
22
  import { jsxs as _jsxs } from "react/jsx-runtime";
22
23
  var VideoPublish = function VideoPublish(_ref) {
@@ -61,6 +62,15 @@ var VideoPublish = function VideoPublish(_ref) {
61
62
  disabled: disabled,
62
63
  env: env
63
64
  })
65
+ }, {
66
+ key: 'activeAccountMode',
67
+ icon: /*#__PURE__*/_jsx(FieldTimeOutlined, {}),
68
+ label: '养号模式',
69
+ forceRender: true,
70
+ children: /*#__PURE__*/_jsx(ActiveAccountMode, {
71
+ disabled: disabled,
72
+ env: env
73
+ })
64
74
  }, {
65
75
  key: 'topic',
66
76
  icon: /*#__PURE__*/_jsx(BorderlessTableOutlined, {}),
@@ -35,11 +35,11 @@
35
35
  flex: 1;
36
36
  padding: 16px 16px 40px 16px ;
37
37
  overflow-y: auto;
38
-
38
+ min-height: 60vh;
39
39
  .my-tabs {
40
40
  width: 100%;
41
41
  .ktv-ai-pageContentBox{
42
- >h2{
42
+ > h2{
43
43
  margin-top: 0;
44
44
  }
45
45
  }
@@ -1,5 +1,6 @@
1
1
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
5
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
6
  import React, { useState } from 'react';
@@ -176,7 +177,7 @@ var VideoPublishVideoAccountProxy = function VideoPublishVideoAccountProxy(_ref)
176
177
  });
177
178
  }, {
178
179
  onSuccess: function onSuccess(result) {
179
- setListData(result.list);
180
+ setListData(_toConsumableArray(result.list));
180
181
  }
181
182
  }),
182
183
  loading = _useRequest.loading,
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
3
  import React, { useState } from 'react';
3
4
  import { Button, Form, Select, Tag } from 'antd';
@@ -30,7 +31,7 @@ var VideoPublishVideoAccountProxySelect = function VideoPublishVideoAccountProxy
30
31
  });
31
32
  }, {
32
33
  onSuccess: function onSuccess(result) {
33
- setListData(result.list);
34
+ setListData(_toConsumableArray(result.list));
34
35
  form.setFieldsValue({
35
36
  id: videoAccountProxyId
36
37
  });
@@ -511,7 +511,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
511
511
  _this = this;
512
512
  return _context9.abrupt("return", new Promise(function (resolve, reject) {
513
513
  var isOpened = false;
514
- var sse = new SSE("http://localhost:".concat(window.__ShipinlvLocalServerPort || 61806, "/").concat("chrome/applyForPublishTaskSse".toLocaleLowerCase(), "?") + param({
514
+ var sse = new SSE("http://localhost:".concat(window.__ShipinlvLocalServerPort || 61805, "/").concat("chrome/applyForPublishTaskSse".toLocaleLowerCase(), "?") + param({
515
515
  data: JSON.stringify(_objectSpread(_objectSpread({}, query), {}, {
516
516
  proxyInfo: proxyInfo
517
517
  }))
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -160,8 +161,8 @@ var VideoPublishTaskList = function VideoPublishTaskList(_ref) {
160
161
  });
161
162
  }, {
162
163
  onSuccess: function onSuccess(result) {
163
- setListData(result.list);
164
- setPagination(result.pagination);
164
+ setListData(_toConsumableArray(result.list));
165
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
165
166
  }
166
167
  }),
167
168
  runTaskList = _useRequest.run,
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -239,8 +240,8 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
239
240
  });
240
241
  }, {
241
242
  onSuccess: function onSuccess(result) {
242
- setListData(result.list);
243
- setPagination(result.pagination);
243
+ setListData(_toConsumableArray(result.list));
244
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
244
245
  }
245
246
  }),
246
247
  runTaskList = _useRequest.run,
@@ -1,10 +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, Form, Space } from "antd";
4
+ import { Button, Form, Input, Space } from "antd";
5
5
  import "./query.less";
6
- import dayjs from "dayjs";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref) {
9
9
  var defaultQuery = _ref.defaultQuery,
10
10
  _ref$onQuery = _ref.onQuery,
@@ -16,12 +16,6 @@ var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref)
16
16
  _useState2 = _slicedToArray(_useState, 2),
17
17
  query = _useState2[0],
18
18
  setQuery = _useState2[1];
19
- var todayEnd = dayjs(dayjs(Date.now()).format('YYYY-MM-DD 23:59:59')).valueOf();
20
- var onTime = function onTime(startTime, endTime) {
21
- query.startTime = startTime;
22
- query.endTime = endTime;
23
- setQuery(_objectSpread({}, query));
24
- };
25
19
  var onFinish = function onFinish() {
26
20
  var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
27
21
  onQuery(_objectSpread(_objectSpread({}, query), values));
@@ -32,12 +26,22 @@ var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref)
32
26
  form: form,
33
27
  initialValues: _objectSpread({}, query),
34
28
  onFinish: onFinish,
35
- children: /*#__PURE__*/_jsx(Space, {
36
- children: /*#__PURE__*/_jsx(Button, {
29
+ children: /*#__PURE__*/_jsxs(Space, {
30
+ children: [/*#__PURE__*/_jsx(Form.Item, {
31
+ name: "keyword",
32
+ children: /*#__PURE__*/_jsx(Input
33
+ // value={ query.keyword }
34
+ , {
35
+ placeholder: "\u641C\u7D22\u8D26\u6237\u540D",
36
+ allowClear: true
37
+ // onChange={ e => onKeyWord( e.target.value ) }
38
+ // onPressEnter={ ( e ) => onSearch( e.target ) }
39
+ })
40
+ }), /*#__PURE__*/_jsx(Button, {
37
41
  type: "primary",
38
42
  htmlType: "submit",
39
43
  children: "\u641C\u7D22"
40
- })
44
+ })]
41
45
  })
42
46
  })
43
47
  });
@@ -133,7 +133,7 @@ var VideoAccountCreate = function VideoAccountCreate(_ref) {
133
133
  children: [/*#__PURE__*/_jsx(Select.Option, {
134
134
  value: 0,
135
135
  children: /*#__PURE__*/_jsx(Tag, {
136
- children: "\u9ED8\u8BA4\u5206\u7EC4"
136
+ children: "\u9ED8\u8BA4"
137
137
  })
138
138
  }), groupList.map(function (items, index) {
139
139
  return /*#__PURE__*/_jsx(Select.Option, {
@@ -38,7 +38,7 @@ var VideoAccountGroup = function VideoAccountGroup(_ref) {
38
38
  groupList.push({
39
39
  _key: '-1',
40
40
  id: -1,
41
- name: '默认分组',
41
+ name: '默认',
42
42
  isChange: false
43
43
  });
44
44
  result.forEach(function (items) {
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -15,6 +16,7 @@ import Tool from "../../lib/Tool";
15
16
  import VideoAccountGroup from "./group";
16
17
  import VideoAccountCreate from "./create";
17
18
  import VideoPublishVideoAccountProxySelect from "../proxy/select";
19
+ import SavePath from "../../lib/save-path";
18
20
  import { jsx as _jsx } from "react/jsx-runtime";
19
21
  import { Fragment as _Fragment } from "react/jsx-runtime";
20
22
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -63,7 +65,7 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
63
65
  return /*#__PURE__*/_jsx(Tag, {
64
66
  className: "groupName",
65
67
  color: record !== null && record !== void 0 && record.groupName ? 'blue' : '',
66
- children: (record === null || record === void 0 ? void 0 : record.groupName) || '默认分组'
68
+ children: (record === null || record === void 0 ? void 0 : record.groupName) || '默认'
67
69
  });
68
70
  }
69
71
  }, {
@@ -109,7 +111,7 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
109
111
  });
110
112
  }
111
113
  }, {
112
- title: '网络代理',
114
+ title: '代理',
113
115
  dataIndex: 'proxyInfo',
114
116
  key: 'proxyInfo',
115
117
  render: function render(proxyInfo, record) {
@@ -131,7 +133,7 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
131
133
  }
132
134
  }, {
133
135
  title: /*#__PURE__*/_jsx(_Fragment, {
134
- children: "\u662F\u5426\u767B\u5F55"
136
+ children: "\u767B\u5F55\u6001"
135
137
  }),
136
138
  dataIndex: 'isLoginValid',
137
139
  key: 'isLoginValid',
@@ -146,12 +148,12 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
146
148
  }
147
149
  }, {
148
150
  title: /*#__PURE__*/_jsx(_Fragment, {
149
- children: "\u89C6\u9891\u6570\u91CF"
151
+ children: "\u89C6\u9891\u91CF"
150
152
  }),
151
153
  dataIndex: 'videoCount',
152
154
  key: 'videoCount'
153
155
  }, {
154
- title: '粉丝数',
156
+ title: '粉丝',
155
157
  dataIndex: 'followerCount',
156
158
  key: 'followerCount',
157
159
  render: function render(followerCount) {
@@ -162,6 +164,28 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
162
164
  precision: 1
163
165
  });
164
166
  }
167
+ }, {
168
+ title: '养号模式的视频文件夹',
169
+ dataIndex: 'videoFromFolder',
170
+ key: 'videoFromFolder',
171
+ render: function render(videoFromFolder, record) {
172
+ var i = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
173
+ return /*#__PURE__*/_jsx("div", {
174
+ className: "videoFromFolder",
175
+ children: /*#__PURE__*/_jsx(SavePath, {
176
+ path: videoFromFolder,
177
+ placeholder: "\u8BF7\u9009\u62E9\u672C\u5730\u89C6\u9891\u6587\u4EF6\u5939",
178
+ hiddenOpenDir: false
179
+ // disabled={ ! enabled }
180
+ ,
181
+ onChange: function onChange(videoFromFolder) {
182
+ console.log('formData:', videoFromFolder);
183
+ // onVideoFromFolderCreate( id, e );
184
+ onVideoFromFolder(i, videoFromFolder);
185
+ }
186
+ })
187
+ });
188
+ }
165
189
  }, {
166
190
  title: '操作',
167
191
  dataIndex: 'id',
@@ -197,8 +221,8 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
197
221
  });
198
222
  }, {
199
223
  onSuccess: function onSuccess(result) {
200
- setListData(result.list);
201
- setPagination(result.pagination);
224
+ setListData(_toConsumableArray(result.list));
225
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
202
226
  }
203
227
  }),
204
228
  runVideoAccount = _useRequest.run,
@@ -217,10 +241,37 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
217
241
  }),
218
242
  loadingProxyCreate = _useRequest2.loading,
219
243
  runProxyCreate = _useRequest2.run;
244
+ var _useRequest3 = useRequest(function (id, videoFromFolder) {
245
+ return VideoPublishController.videoFromFolderCreate({
246
+ id: id,
247
+ videoFromFolder: videoFromFolder
248
+ }, {
249
+ env: env
250
+ });
251
+ }, {
252
+ manual: true,
253
+ onSuccess: function onSuccess(result) {
254
+ Tool.toast('已保存');
255
+ // listData.forEach( ( items, i) => {
256
+ // if( items.id !== result.id ){
257
+ // return;
258
+ // }
259
+ // listData[ i ].items = result.items;
260
+ // });
261
+ // setListData([...listData]);
262
+ }
263
+ }),
264
+ runVideoFromFolder = _useRequest3.run,
265
+ loadingVideoFromFolder = _useRequest3.loading;
220
266
  var _onQuery = function onQuery(query) {
221
267
  setQuery(_objectSpread({}, query));
222
268
  runVideoAccount(query);
223
269
  };
270
+ var onVideoFromFolder = function onVideoFromFolder(i, videoFromFolder) {
271
+ listData[i].videoFromFolder = videoFromFolder;
272
+ setListData(_toConsumableArray(listData));
273
+ runVideoFromFolder(listData[i].id, videoFromFolder);
274
+ };
224
275
  var onProxyEdit = function onProxyEdit(nickname, videoAccountId) {
225
276
  var videoAccountProxyId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
226
277
  var dialog = Tool.drawer({
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -166,7 +167,7 @@ var VideoPublishStatisticOperationList = function VideoPublishStatisticOperation
166
167
  });
167
168
  }, {
168
169
  onSuccess: function onSuccess(result) {
169
- setListData(result.list);
170
+ setListData(_toConsumableArray(result.list));
170
171
  // setPagination( result.pagination );
171
172
  }
172
173
  }),
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
1
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
4
  import React, { useState } from "react";
@@ -185,8 +186,8 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
185
186
  });
186
187
  }, {
187
188
  onSuccess: function onSuccess(result) {
188
- setListData(result.list);
189
- setPagination(result.pagination);
189
+ setListData(_toConsumableArray(result.list));
190
+ setPagination(_objectSpread(_objectSpread({}, pagination), result.pagination));
190
191
  amountInfo.finish = 0;
191
192
  amountInfo.fail = 0;
192
193
  amountInfo.progress = 0;
@@ -232,6 +233,7 @@ var VideoPublishStatisticPublishList = function VideoPublishStatisticPublishList
232
233
  title: "\u53D1\u5E03\u7EDF\u8BA1",
233
234
  className: "video-publish-statistic-list",
234
235
  extInfo: /*#__PURE__*/_jsx(VideoPublishStatisticPublishListQuery, {
236
+ loading: loadingTaskList,
235
237
  defaultQuery: query,
236
238
  onQuery: function onQuery(query) {
237
239
  return _onQuery(query);
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import './query.less';
3
3
  interface Props {
4
+ loading: boolean;
4
5
  defaultQuery: VideoPublishStatisticPublish.ListQuery;
5
6
  onQuery: (query: VideoPublishStatisticPublish.ListQuery) => void;
6
7
  }
@@ -8,7 +8,8 @@ import { ClockCircleOutlined, ExclamationCircleOutlined, SendOutlined } from "@a
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
10
  var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublishListQuery(_ref) {
11
- var defaultQuery = _ref.defaultQuery,
11
+ var loading = _ref.loading,
12
+ defaultQuery = _ref.defaultQuery,
12
13
  _ref$onQuery = _ref.onQuery,
13
14
  onQuery = _ref$onQuery === void 0 ? function () {} : _ref$onQuery;
14
15
  var _Form$useForm = Form.useForm(),
@@ -33,6 +34,7 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
33
34
  children: /*#__PURE__*/_jsx(Form, {
34
35
  form: form,
35
36
  initialValues: _objectSpread({}, query),
37
+ disabled: loading,
36
38
  onFinish: onFinish,
37
39
  children: /*#__PURE__*/_jsxs(Space, {
38
40
  children: [/*#__PURE__*/_jsx(Form.Item, {
@@ -67,6 +69,7 @@ var VideoPublishStatisticPublishListQuery = function VideoPublishStatisticPublis
67
69
  }), /*#__PURE__*/_jsx(Button, {
68
70
  type: "primary",
69
71
  htmlType: "submit",
72
+ loading: loading,
70
73
  children: "\u641C\u7D22"
71
74
  })]
72
75
  })
@@ -1,7 +1,7 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
1
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
5
5
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
6
  import React, { useState } from "react";
7
7
  import "./index.less";
@@ -37,7 +37,7 @@ var VideoPublishTaskVideoTopic = function VideoPublishTaskVideoTopic(_ref) {
37
37
  });
38
38
  }, {
39
39
  onSuccess: function onSuccess(result) {
40
- setListData(result);
40
+ setListData(_toConsumableArray(result));
41
41
  }
42
42
  }),
43
43
  run = _useRequest.run,
@@ -1,6 +1,6 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
2
  import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
3
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
4
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  import React, { useEffect, useState } from 'react';
6
6
  import { Table, Popover, Tag } from 'antd';
@@ -168,7 +168,7 @@ var VipCompare = function VipCompare(_ref) {
168
168
  manual: !isInClient(),
169
169
  onSuccess: function onSuccess(result) {
170
170
  // @ts-ignore
171
- setListData(result.list || result);
171
+ setListData(_toConsumableArray(result.list || result));
172
172
  }
173
173
  }),
174
174
  loading = _useRequest2.loading,
@@ -1,5 +1,5 @@
1
1
  // 业务服务器 api
2
- export var currentEnv = 'local';
2
+ export var currentEnv = 'prod';
3
3
  var ApiUrls = {
4
4
  local: {
5
5
  api: 'http://localhost:9999/',
package/dist/lib/Tool.js CHANGED
@@ -1163,6 +1163,13 @@ if (window) {
1163
1163
  // Tool.GData = window._GData;
1164
1164
 
1165
1165
  window._Tool = Tool;
1166
+ setTimeout(function () {
1167
+ if (!window.getBridge) {
1168
+ window.getBridge = function () {
1169
+ return window.bridge;
1170
+ };
1171
+ }
1172
+ }, 1e3);
1166
1173
  }
1167
1174
  Tool.onWindowError();
1168
1175
  export default Tool;
@@ -0,0 +1,4 @@
1
+ export declare const SoundMineType: string[];
2
+ export declare const ImageMineType: string[];
3
+ export declare const VideoMineType: string[];
4
+ export declare const GetMineTypeKind: (path: string) => Global.MineTypeKind;
@@ -0,0 +1,19 @@
1
+ import FileType from "./file-type";
2
+ export var SoundMineType = ['mp3', 'wav', 'flac', 'ape', 'alac', 'mp3', 'aac', 'ogg'];
3
+ export var ImageMineType = ['jpg', 'jpeg', 'png', 'webp' // 'gif',
4
+ ];
5
+
6
+ export var VideoMineType = ['mp4', 'mv4', 'wmv', 'rm', 'rmvb', '3gp', 'mpeg', 'mov', 'm4v', 'avi', 'mkv', 'flv', 'vob', 'webm'];
7
+ export var GetMineTypeKind = function GetMineTypeKind(path) {
8
+ var extName = FileType(path);
9
+ if (VideoMineType.includes(extName)) {
10
+ return 'video';
11
+ }
12
+ if (ImageMineType.includes(extName)) {
13
+ return 'image';
14
+ }
15
+ if (SoundMineType.includes(extName)) {
16
+ return 'sound';
17
+ }
18
+ return '';
19
+ };
@@ -0,0 +1,2 @@
1
+ declare const FileType: (fileUrl?: string, mineType?: string) => string;
2
+ export default FileType;