component-shipinlv 2.2.6 → 2.2.8

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 (42) hide show
  1. package/dist/ActiveAccountMode/hour-enabled.js +16 -6
  2. package/dist/ActiveAccountMode/setting.js +15 -2
  3. package/dist/ActiveAccountMode/task/index.js +3 -1
  4. package/dist/Auth/index.d.ts +1 -0
  5. package/dist/Auth/index.js +3 -1
  6. package/dist/AuthClient/login-reg.d.ts +1 -0
  7. package/dist/AuthClient/login-reg.js +2 -0
  8. package/dist/AuthClient/login.d.ts +1 -0
  9. package/dist/AuthClient/login.js +3 -1
  10. package/dist/AuthClient/qr/index.js +3 -1
  11. package/dist/VideoPublish/account-manage/home.js +3 -0
  12. package/dist/VideoPublish/account-manage/list.d.ts +4 -0
  13. package/dist/VideoPublish/account-manage/list.js +27 -14
  14. package/dist/VideoPublish/account-manage/list.less +5 -0
  15. package/dist/VideoPublish/create-task/base/index.js +4 -4
  16. package/dist/VideoPublish/task-list/plan/list.js +2 -0
  17. package/dist/VideoPublish/task-list/plan/operate.js +2 -1
  18. package/dist/VideoPublish/task-list/plan/query.js +41 -1
  19. package/dist/VideoPublish/task-list/plan/query.less +6 -0
  20. package/dist/VideoPublish/task-list/plan/status.js +1 -1
  21. package/dist/VideoPublish/video-account/base-info.d.ts +1 -0
  22. package/dist/VideoPublish/video-account/base-info.js +6 -2
  23. package/dist/VideoPublish/video-account/create.js +2 -2
  24. package/dist/VideoPublish/video-account/index.js +13 -9
  25. package/dist/VideoPublish/video-account/index.less +10 -0
  26. package/dist/VideoPublish/video-account/query.js +21 -0
  27. package/dist/VideoPublish/video-account/query.less +3 -0
  28. package/dist/component/AccountBan/index.d.ts +7 -0
  29. package/dist/component/AccountBan/index.js +10 -0
  30. package/dist/component/AccountBan/index.less +12 -0
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +1 -0
  33. package/dist/lib/accountManageSettingConfig.js +2 -2
  34. package/dist/lib/fs.js +2 -1
  35. package/dist/lib/request.js +4 -1
  36. package/dist/lib/save-path.js +19 -15
  37. package/dist/service/typing.d.ts +1 -0
  38. package/dist/types/AutoMakeTaskSetting.d.ts +2 -0
  39. package/dist/types/VideoPublish.d.ts +1 -0
  40. package/dist/types/VideoPublishTaskPlan.d.ts +2 -0
  41. package/dist/types/VideoPublishVideoAccount.d.ts +1 -0
  42. package/package.json +1 -1
@@ -1,4 +1,6 @@
1
- import React from "react";
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import React, { useEffect, useState } from "react";
2
4
  import "./hour-enabled.less";
3
5
  import { Col, Row } from "antd";
4
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -8,18 +10,26 @@ var VideoPublishCreateTaskHourSelect = function VideoPublishCreateTaskHourSelect
8
10
  dayTimeHourList = _ref.dayTimeHourList,
9
11
  _ref$onDayTimeHourLis = _ref.onDayTimeHourList,
10
12
  onDayTimeHourList = _ref$onDayTimeHourLis === void 0 ? function () {} : _ref$onDayTimeHourLis;
13
+ var _useState = useState(_toConsumableArray(dayTimeHourList)),
14
+ _useState2 = _slicedToArray(_useState, 2),
15
+ hourList = _useState2[0],
16
+ setHourList = _useState2[1];
11
17
  var onHour = function onHour(hour) {
12
18
  if (disabled) {
13
19
  return;
14
20
  }
15
- var index = dayTimeHourList.indexOf(hour);
21
+ var index = hourList.indexOf(hour);
16
22
  if (index > -1) {
17
- dayTimeHourList.splice(index, 1);
23
+ hourList.splice(index, 1);
18
24
  } else {
19
- dayTimeHourList.push(hour);
25
+ hourList.push(hour);
20
26
  }
21
- onDayTimeHourList(dayTimeHourList);
27
+ onDayTimeHourList(hourList);
22
28
  };
29
+ useEffect(function () {
30
+ setHourList(_toConsumableArray(dayTimeHourList));
31
+ onDayTimeHourList(dayTimeHourList);
32
+ }, [dayTimeHourList]);
23
33
  return /*#__PURE__*/_jsx("div", {
24
34
  className: "videoPublishCreatTaskHourSelect",
25
35
  children: /*#__PURE__*/_jsx(Row, {
@@ -28,7 +38,7 @@ var VideoPublishCreateTaskHourSelect = function VideoPublishCreateTaskHourSelect
28
38
  return /*#__PURE__*/_jsx(Col, {
29
39
  span: 3,
30
40
  children: /*#__PURE__*/_jsxs("div", {
31
- className: "itemsHour ".concat(disabled ? 'disabled' : '', " ").concat(dayTimeHourList !== null && dayTimeHourList !== void 0 && dayTimeHourList.includes(hour) ? 'active' : ''),
41
+ className: "itemsHour ".concat(disabled ? 'disabled' : '', " ").concat(hourList !== null && hourList !== void 0 && hourList.includes(hour) ? 'active' : ''),
32
42
  onClick: function onClick() {
33
43
  return onHour(hour);
34
44
  },
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  import React, { useEffect, useState } from 'react';
6
- import { Button, ConfigProvider, Divider, Form, InputNumber, Switch } from 'antd';
6
+ import { Button, ConfigProvider, Divider, Form, InputNumber, Radio, Switch } from 'antd';
7
7
  import "./setting.less";
8
8
  import LayoutContent from "../UI/LayoutContent";
9
9
  import { useRequest } from "@umijs/hooks";
@@ -40,6 +40,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
40
40
  // videoRootFolder: '',
41
41
  publishMaxDay: 2,
42
42
  enabled: true,
43
+ publishCoverFrom: '',
43
44
  isPublishFinishDelVideo: true
44
45
  // ...Tool.store.get('publishMake-setting'),
45
46
  }),
@@ -178,7 +179,7 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
178
179
  max: 100,
179
180
  disabled: !enabled,
180
181
  addonBefore: "\u6BCF\u5929\u6700\u591A",
181
- addonAfter: "\u4E2A",
182
+ addonAfter: "\u4E2A\u89C6\u9891",
182
183
  onChange: function onChange(e) {
183
184
  setCanPost(true);
184
185
  }
@@ -197,6 +198,18 @@ var ActiveAccountModeSetting = function ActiveAccountModeSetting(_ref) {
197
198
  setCanPost(true);
198
199
  }
199
200
  })
201
+ }), /*#__PURE__*/_jsx(Form.Item, {
202
+ label: "\u5C01\u9762\u6765\u6E90",
203
+ name: "publishCoverFrom",
204
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
205
+ children: [/*#__PURE__*/_jsx(Radio, {
206
+ value: "",
207
+ children: "\u7CFB\u7EDF\u667A\u80FD\u63A8\u8350"
208
+ }), /*#__PURE__*/_jsx(Radio, {
209
+ value: "video-first-frame",
210
+ children: "\u89C6\u9891\u7B2C\u4E00\u5E27"
211
+ })]
212
+ })
200
213
  }), /*#__PURE__*/_jsx(Form.Item, {
201
214
  label: "\u53D1\u5E03\u5B8C\u6210\u540E",
202
215
  name: "isPublishFinishDelVideo",
@@ -25,6 +25,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
25
25
  timeAreaRandOffsetPercent: 15,
26
26
  publishMaxDay: 2,
27
27
  enabled: true,
28
+ publishCoverFrom: '',
28
29
  isPublishFinishDelVideo: true
29
30
  });
30
31
  _defineProperty(this, "env", 'prod');
@@ -772,10 +773,11 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
772
773
  console.log('newFilePath:', newFilePath);
773
774
  return _context12.abrupt("return", new Promise( /*#__PURE__*/function () {
774
775
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(resolve, reject) {
776
+ var _window$getBridge2;
775
777
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
776
778
  while (1) switch (_context11.prev = _context11.next) {
777
779
  case 0:
778
- window.getBridge().fs.rename(videoPath, newFilePath, function (err) {
780
+ (_window$getBridge2 = window.getBridge()) === null || _window$getBridge2 === void 0 || _window$getBridge2.fs.rename(videoPath, newFilePath, function (err) {
779
781
  if (err) {
780
782
  console.log('videoRename err:', err);
781
783
  reject(err);
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  productType: string;
4
+ apiUrl?: string;
4
5
  clientUniqueKeyList: string[];
5
6
  loginTypeList: Global.AuthClientLoginType[];
6
7
  domain?: string;
@@ -26,6 +26,7 @@ var FromWhere = 'web';
26
26
  // 逐渐弃用 AuthClient ,使用 本函数
27
27
  var Auth = function Auth(_ref) {
28
28
  var productType = _ref.productType,
29
+ apiUrl = _ref.apiUrl,
29
30
  clientUniqueKeyList = _ref.clientUniqueKeyList,
30
31
  loginTypeList = _ref.loginTypeList,
31
32
  env = _ref.env,
@@ -265,7 +266,7 @@ var Auth = function Auth(_ref) {
265
266
  onChange: function onChange(keyName) {
266
267
  onTabChange(keyName);
267
268
  },
268
- children: [/*#__PURE__*/_jsx(Tabs.TabPane, {
269
+ children: [!((loginTypeList === null || loginTypeList === void 0 ? void 0 : loginTypeList.length) > 0 && !loginTypeList.includes('wechat')) && /*#__PURE__*/_jsx(Tabs.TabPane, {
269
270
  tab: /*#__PURE__*/_jsxs(_Fragment, {
270
271
  children: [/*#__PURE__*/_jsx(WechatOutlined, {}), " \u5FAE\u4FE1"]
271
272
  }),
@@ -323,6 +324,7 @@ var Auth = function Auth(_ref) {
323
324
  disabled: !loginTypeList.includes('account-login'),
324
325
  children: /*#__PURE__*/_jsx(AuthLoginReg, {
325
326
  env: env,
327
+ apiUrl: apiUrl,
326
328
  productType: productType,
327
329
  clientUniqueKeyList: clientUniqueKeyList,
328
330
  accountRegDisabled: !loginTypeList.includes('account-reg'),
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface Props {
3
3
  env?: Global.Env;
4
4
  productType: string;
5
+ apiUrl?: string;
5
6
  clientUniqueKeyList: string[];
6
7
  activeKeyDefault?: 'login' | 'reg' | string;
7
8
  accountRegDisabled?: boolean;
@@ -10,6 +10,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
10
10
  var AuthLoginReg = function AuthLoginReg(_ref) {
11
11
  var env = _ref.env,
12
12
  productType = _ref.productType,
13
+ apiUrl = _ref.apiUrl,
13
14
  clientUniqueKeyList = _ref.clientUniqueKeyList,
14
15
  _ref$activeKeyDefault = _ref.activeKeyDefault,
15
16
  activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
@@ -47,6 +48,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
47
48
  tab: "\u767B\u5F55",
48
49
  children: /*#__PURE__*/_jsx(AuthLogin, {
49
50
  env: env,
51
+ apiUrl: apiUrl,
50
52
  productType: productType,
51
53
  clientUniqueKeyList: clientUniqueKeyList,
52
54
  onSuccess: function onSuccess() {
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  env?: Global.Env;
4
+ apiUrl?: string;
4
5
  productType: string;
5
6
  clientUniqueKeyList: string[];
6
7
  onSuccess: () => void;
@@ -45,6 +45,7 @@ var tailFormItemLayout = {
45
45
  };
46
46
  var AuthReg = function AuthReg(_ref) {
47
47
  var env = _ref.env,
48
+ apiUrl = _ref.apiUrl,
48
49
  productType = _ref.productType,
49
50
  clientUniqueKeyList = _ref.clientUniqueKeyList,
50
51
  _ref$onSuccess = _ref.onSuccess,
@@ -66,7 +67,8 @@ var AuthReg = function AuthReg(_ref) {
66
67
  unbind: unbind,
67
68
  inviteUserId: Tool.getInviteUserId()
68
69
  }), {
69
- env: env
70
+ env: env,
71
+ apiUrl: apiUrl
70
72
  });
71
73
  }, {
72
74
  manual: true,
@@ -322,7 +322,9 @@ var LoginQr = function LoginQr(_ref) {
322
322
  children: [/*#__PURE__*/_jsx(UserOutlined, {}), "\u8D26\u6237"]
323
323
  }),
324
324
  disabled: accountDisabled,
325
- children: /*#__PURE__*/_jsx(AuthLoginReg, {
325
+ children: /*#__PURE__*/_jsx(AuthLoginReg
326
+ // apiUrl={ apiUrl }
327
+ , {
326
328
  productType: productType,
327
329
  clientUniqueKeyList: clientUniqueKeyList,
328
330
  accountRegDisabled: accountRegDisabled,
@@ -195,6 +195,9 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
195
195
  }), /*#__PURE__*/_jsx("div", {
196
196
  className: "userId",
197
197
  children: accountDetail.uniqueId
198
+ }), /*#__PURE__*/_jsx("div", {
199
+ className: "nicknameRemark",
200
+ children: accountDetail.nicknameRemark
198
201
  })]
199
202
  })]
200
203
  }), /*#__PURE__*/_jsx(Descriptions, {
@@ -5,6 +5,10 @@ interface Props {
5
5
  env?: Global.Env;
6
6
  currentAccountDetail: VideoPublishVideoAccount.List;
7
7
  onMenu: (key: string) => void;
8
+ disabledDel?: boolean;
9
+ disabledAdd?: boolean;
10
+ disabledAddProxy?: boolean;
11
+ addonButton?: React.ReactNode;
8
12
  onListData: (list: VideoPublishVideoAccount.List[]) => void;
9
13
  onCurrent: (detail: VideoPublishVideoAccount.List) => void;
10
14
  }
@@ -35,6 +35,10 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
35
35
  _ref$onListData = _ref.onListData,
36
36
  onListData = _ref$onListData === void 0 ? function () {} : _ref$onListData,
37
37
  currentAccountDetail = _ref.currentAccountDetail,
38
+ disabledDel = _ref.disabledDel,
39
+ disabledAddProxy = _ref.disabledAddProxy,
40
+ addonButton = _ref.addonButton,
41
+ disabledAdd = _ref.disabledAdd,
38
42
  _ref$onCurrent = _ref.onCurrent,
39
43
  onCurrent = _ref$onCurrent === void 0 ? function () {} : _ref$onCurrent;
40
44
  var _useState = useState(getLocalUserInfo()),
@@ -304,10 +308,13 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
304
308
  });
305
309
  }, []);
306
310
  var addButton = function addButton() {
311
+ if (disabledAdd) {
312
+ return '';
313
+ }
307
314
  return /*#__PURE__*/_jsx("div", {
308
315
  className: "addButton",
309
316
  children: /*#__PURE__*/_jsxs(Space, {
310
- children: [/*#__PURE__*/_jsx(Tooltip, {
317
+ children: [!disabledAddProxy && /*#__PURE__*/_jsx(Tooltip, {
311
318
  title: "\u8BBE\u7F6E\u4EE3\u7406",
312
319
  children: /*#__PURE__*/_jsx(Button, {
313
320
  type: "primary",
@@ -437,7 +444,9 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
437
444
  children: letter
438
445
  }, letter));
439
446
  } else {
440
- shopName.push(letter);
447
+ shopName.push( /*#__PURE__*/_jsx("span", {
448
+ children: letter
449
+ }, letter));
441
450
  }
442
451
  });
443
452
  // 未搜索到
@@ -445,17 +454,21 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
445
454
  return null;
446
455
  }
447
456
  }
448
- return /*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
449
- id: item.id,
450
- className: currentId == item.id ? "active" : '',
451
- index: index,
452
- accountInfo: _objectSpread({}, item),
453
- onDel: function onDel(id) {
454
- return _onDel(id);
455
- },
456
- onClick: function onClick() {
457
- return onCurrentId(item.id);
458
- }
457
+ return /*#__PURE__*/_jsxs("div", {
458
+ className: "accountManageListItems",
459
+ children: [/*#__PURE__*/_jsx(VideoPublishVideoAccountBaseInfo, {
460
+ id: item.id,
461
+ className: currentId == item.id ? "active" : '',
462
+ index: index,
463
+ accountInfo: _objectSpread({}, item),
464
+ disabledDel: disabledDel,
465
+ onDel: function onDel(id) {
466
+ return _onDel(id);
467
+ },
468
+ onClick: function onClick() {
469
+ return onCurrentId(item.id);
470
+ }
471
+ }, item.id), addonButton]
459
472
  }, item.id);
460
473
  })
461
474
  }), listData.length == 0 && /*#__PURE__*/_jsxs("div", {
@@ -465,7 +478,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
465
478
  image: Empty.PRESENTED_IMAGE_SIMPLE
466
479
  }), addButton()]
467
480
  })]
468
- }), /*#__PURE__*/_jsxs("div", {
481
+ }), !disabledAdd && /*#__PURE__*/_jsxs("div", {
469
482
  className: "submits",
470
483
  children: [/*#__PURE__*/_jsx("div", {
471
484
  className: "amount",
@@ -26,6 +26,11 @@
26
26
  height: 100%; // calc(100vh - 10px);
27
27
  overflow-y: auto;
28
28
  padding: 10px 0;
29
+ .accountManageListItems{
30
+ position: relative;
31
+ //padding: 0 0 6px 0;
32
+ border-bottom: 1px solid #F0F0F0;
33
+ }
29
34
  &::-webkit-scrollbar {
30
35
  width: 2px; /* 滚动条的宽度 */
31
36
  }
@@ -204,7 +204,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
204
204
  children: /*#__PURE__*/_jsx(InputNumber, {
205
205
  precision: 0,
206
206
  min: 0,
207
- max: 100,
207
+ max: 10000,
208
208
  addonBefore: /*#__PURE__*/_jsxs(Select, {
209
209
  className: "rateSelect",
210
210
  value: createBaseData.normalVideoRateType,
@@ -228,7 +228,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
228
228
  children: /*#__PURE__*/_jsx(InputNumber, {
229
229
  precision: 0,
230
230
  min: 1,
231
- max: 500,
231
+ max: 10000,
232
232
  addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
233
233
  addonAfter: "\u6761\u89C6\u9891"
234
234
  })
@@ -255,7 +255,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
255
255
  children: /*#__PURE__*/_jsx(InputNumber, {
256
256
  precision: 0,
257
257
  min: 1,
258
- max: 200,
258
+ max: 10000,
259
259
  addonBefore: /*#__PURE__*/_jsxs(Select, {
260
260
  className: "rateSelect",
261
261
  value: createBaseData.salesVideoRateType,
@@ -279,7 +279,7 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
279
279
  children: /*#__PURE__*/_jsx(InputNumber, {
280
280
  precision: 0,
281
281
  min: 1,
282
- max: 200,
282
+ max: 10000,
283
283
  addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
284
284
  addonAfter: "\u6761\u89C6\u9891"
285
285
  })
@@ -46,6 +46,8 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
46
46
  pagination = _useState4[0],
47
47
  setPagination = _useState4[1];
48
48
  var _useState5 = useState({
49
+ isBan: '',
50
+ status: '',
49
51
  startTime: startTime,
50
52
  // Date.now(),
51
53
  endTime: endTime //Date.now(),
@@ -29,10 +29,11 @@ var VideoPublishTaskPlanOperate = function VideoPublishTaskPlanOperate(_ref) {
29
29
  newFilePath = videoPathInfo.slice(0, -1).join('/') + "/".concat(newName);
30
30
  return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
31
31
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
32
+ var _window$getBridge;
32
33
  return _regeneratorRuntime().wrap(function _callee$(_context) {
33
34
  while (1) switch (_context.prev = _context.next) {
34
35
  case 0:
35
- window.getBridge().fs.rename(videoPath, newFilePath, function (err) {
36
+ (_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 || _window$getBridge.fs.rename(videoPath, newFilePath, function (err) {
36
37
  if (err) {
37
38
  console.log('video Rename err:', err);
38
39
  reject(err);
@@ -1,8 +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, Input, Space } from "antd";
4
+ import { Button, Form, Input, Select, Space, Tag } from "antd";
5
5
  import "./query.less";
6
+ import { UnorderedListOutlined } from "@ant-design/icons";
7
+ import VideoPublishTaskPlanStatus, { VideoPublishTaskPlanStatusList } from "./status";
6
8
  import { jsx as _jsx } from "react/jsx-runtime";
7
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
10
  var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref) {
@@ -27,7 +29,45 @@ var VideoPublishTaskPlanListQuery = function VideoPublishTaskPlanListQuery(_ref)
27
29
  initialValues: _objectSpread({}, query),
28
30
  onFinish: onFinish,
29
31
  children: /*#__PURE__*/_jsxs(Space, {
32
+ wrap: true,
30
33
  children: [/*#__PURE__*/_jsx(Form.Item, {
34
+ name: "isBan",
35
+ className: "isBan",
36
+ children: /*#__PURE__*/_jsxs(Select, {
37
+ children: [/*#__PURE__*/_jsxs(Select, {
38
+ value: "",
39
+ children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u5C01\u7981\u72B6\u6001"]
40
+ }), /*#__PURE__*/_jsx(Select, {
41
+ value: "0",
42
+ children: /*#__PURE__*/_jsx(Tag, {
43
+ color: "green",
44
+ children: "\u6B63\u5E38"
45
+ })
46
+ }), /*#__PURE__*/_jsx(Select, {
47
+ value: "1",
48
+ children: /*#__PURE__*/_jsx(Tag, {
49
+ color: "red",
50
+ children: "\u88AB\u7981"
51
+ })
52
+ })]
53
+ })
54
+ }), /*#__PURE__*/_jsx(Form.Item, {
55
+ name: "status",
56
+ className: "status",
57
+ children: /*#__PURE__*/_jsxs(Select, {
58
+ children: [/*#__PURE__*/_jsxs(Select.Option, {
59
+ value: "",
60
+ children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u6240\u6709\u53D1\u5E03\u72B6\u6001"]
61
+ }), VideoPublishTaskPlanStatusList.map(function (items) {
62
+ return /*#__PURE__*/_jsx(Select.Option, {
63
+ value: items.status,
64
+ children: /*#__PURE__*/_jsx(VideoPublishTaskPlanStatus, {
65
+ status: items.status
66
+ })
67
+ }, items.status);
68
+ })]
69
+ })
70
+ }), /*#__PURE__*/_jsx(Form.Item, {
31
71
  name: "keyword",
32
72
  children: /*#__PURE__*/_jsx(Input
33
73
  // value={ query.keyword }
@@ -1,3 +1,9 @@
1
1
  .videoPublishTaskPlanListQuery{
2
+ .isBan{
3
+ width: 150px;
4
+ }
2
5
 
6
+ .status{
7
+ width: 200px;
8
+ }
3
9
  }
@@ -29,7 +29,7 @@ export var VideoPublishTaskPlanStatusList = [{
29
29
  status: 'repeal',
30
30
  icon: /*#__PURE__*/_jsx(StopOutlined, {}),
31
31
  title: '已废除',
32
- color: '#F60'
32
+ color: '#555'
33
33
  }];
34
34
  var VideoPublishTaskPlanStatusDict = function () {
35
35
  var dict = {};
@@ -5,6 +5,7 @@ interface Props {
5
5
  className?: string;
6
6
  index?: number;
7
7
  accountInfo?: VideoPublishVideoAccount.BaseInfo;
8
+ disabledDel?: boolean;
8
9
  onDel?: (id: number) => void;
9
10
  onClick?: () => void;
10
11
  }
@@ -3,6 +3,7 @@ import "./base-info.less";
3
3
  import { Avatar, Popconfirm, Tooltip } from "antd";
4
4
  import VideoPlatformLogo from "../../component/video-platform/logo";
5
5
  import { CloseOutlined } from "@ant-design/icons";
6
+ import AccountBan from "../../component/AccountBan";
6
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
7
8
  import { Fragment as _Fragment } from "react/jsx-runtime";
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,6 +13,7 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
12
13
  className = _ref$className === void 0 ? '' : _ref$className,
13
14
  index = _ref.index,
14
15
  accountInfo = _ref.accountInfo,
16
+ disabledDel = _ref.disabledDel,
15
17
  _ref$onClick = _ref.onClick,
16
18
  _onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
17
19
  _ref$onDel = _ref.onDel,
@@ -30,7 +32,7 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
30
32
  children: [typeof index === 'number' && /*#__PURE__*/_jsx("i", {
31
33
  className: "index",
32
34
  children: index + 1
33
- }), typeof id === 'number' && /*#__PURE__*/_jsx(Popconfirm, {
35
+ }), typeof id === 'number' && !disabledDel && /*#__PURE__*/_jsx(Popconfirm, {
34
36
  title: "\u5220\u9664\u8D26\u6237",
35
37
  description: "\u786E\u5B9A\u5220\u9664\u8D26\u6237\uFF1F\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u53D1\u5E03\u89C6\u9891\u4E86",
36
38
  onConfirm: function onConfirm() {
@@ -54,7 +56,9 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
54
56
  })]
55
57
  }), /*#__PURE__*/_jsxs("div", {
56
58
  className: "shopName",
57
- children: [/*#__PURE__*/_jsx(VideoPlatformLogo, {
59
+ children: [(accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.isBan) && /*#__PURE__*/_jsx(AccountBan, {
60
+ isBan: accountInfo.isBan
61
+ }), /*#__PURE__*/_jsx(VideoPlatformLogo, {
58
62
  platform: (accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.platform) || '',
59
63
  size: 12
60
64
  }), accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.nickname, /*#__PURE__*/_jsx("div", {
@@ -146,8 +146,8 @@ var VideoAccountCreate = function VideoAccountCreate(_ref) {
146
146
  name: "nicknameRemark",
147
147
  label: "\u8D26\u53F7\u5907\u6CE8",
148
148
  rules: [{
149
- max: 6,
150
- message: '最多6个字符'
149
+ max: 20,
150
+ message: '最多20个字符'
151
151
  }],
152
152
  children: /*#__PURE__*/_jsx(Input, {
153
153
  placeholder: "\u8F93\u5165\u8D26\u53F7\u5907\u6CE8"
@@ -7,7 +7,7 @@ import PageContentWarp from "../../UI/PageContentWarp";
7
7
  import { useRequest } from "@umijs/hooks";
8
8
  import * as VideoPublishController from "../../service/api/VideoPublishController";
9
9
  import * as VideoPublishVideoAccountController from "../../service/api/VideoPublishVideoAccountController";
10
- import { Avatar, Button, Divider, Space, Table, Tag } from "antd";
10
+ import { Avatar, Button, Divider, Space, Table, Tag, Tooltip } from "antd";
11
11
  import VideoPublishVideoAccountListQuery from "./query";
12
12
  import VideoPlatform from "../../component/video-platform/logo";
13
13
  import Money from "../../UI/Money";
@@ -20,8 +20,8 @@ import SavePath from "../../lib/save-path";
20
20
  import dayjs from "dayjs";
21
21
  import VideoAccountBan from "./ban";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
- import { Fragment as _Fragment } from "react/jsx-runtime";
24
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { Fragment as _Fragment } from "react/jsx-runtime";
25
25
  var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
26
26
  var disabled = _ref.disabled,
27
27
  env = _ref.env;
@@ -42,7 +42,8 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
42
42
  var _useState5 = useState({
43
43
  isLoginValid: '',
44
44
  keyword: '',
45
- platform: ''
45
+ platform: '',
46
+ isBan: ''
46
47
  }),
47
48
  _useState6 = _slicedToArray(_useState5, 2),
48
49
  query = _useState6[0],
@@ -99,12 +100,14 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
99
100
  children: [/*#__PURE__*/_jsx("strong", {
100
101
  className: "nickname",
101
102
  children: (record === null || record === void 0 ? void 0 : record.nickname) || '-'
102
- }), (record === null || record === void 0 ? void 0 : record.nicknameRemark) && /*#__PURE__*/_jsxs(_Fragment, {
103
- children: [/*#__PURE__*/_jsx(Divider, {
104
- type: "vertical"
105
- }), /*#__PURE__*/_jsx(Tag, {
106
- children: record === null || record === void 0 ? void 0 : record.nicknameRemark
107
- })]
103
+ }), (record === null || record === void 0 ? void 0 : record.nicknameRemark) && /*#__PURE__*/_jsx("div", {
104
+ children: /*#__PURE__*/_jsx(Tooltip, {
105
+ title: "\u5907\u6CE8\uFF1A".concat(record === null || record === void 0 ? void 0 : record.nicknameRemark),
106
+ children: /*#__PURE__*/_jsx("div", {
107
+ className: "nicknameRemark",
108
+ children: record === null || record === void 0 ? void 0 : record.nicknameRemark
109
+ })
110
+ })
108
111
  }), /*#__PURE__*/_jsx("div", {
109
112
  className: "userId",
110
113
  children: record === null || record === void 0 ? void 0 : record.accountId
@@ -183,6 +186,7 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
183
186
  return /*#__PURE__*/_jsx("div", {
184
187
  className: "videoFromFolder",
185
188
  children: /*#__PURE__*/_jsx(SavePath, {
189
+ size: "small",
186
190
  path: videoFromFolder,
187
191
  placeholder: "\u8BF7\u9009\u62E9\u672C\u5730\u89C6\u9891\u6587\u4EF6\u5939",
188
192
  hiddenOpenDir: false
@@ -13,6 +13,16 @@
13
13
  box-shadow: 0 0 3px #AAA;
14
14
  }
15
15
  }
16
+ .nicknameRemark{
17
+ max-width: 110px;
18
+ overflow: hidden;
19
+ text-overflow: ellipsis;
20
+ white-space: nowrap;
21
+ word-break: keep-all;
22
+ //line-height: 1em;
23
+ vertical-align: middle;
24
+ font-size: 12px;
25
+ }
16
26
  .info{
17
27
  margin: 0 0 0 10px;
18
28
  .nickname{
@@ -50,6 +50,27 @@ var VideoPublishVideoAccountListQuery = function VideoPublishVideoAccountListQue
50
50
  }, item.platform);
51
51
  })]
52
52
  })
53
+ }), /*#__PURE__*/_jsx(Form.Item, {
54
+ name: "isBan",
55
+ className: "isBan",
56
+ children: /*#__PURE__*/_jsxs(Select, {
57
+ children: [/*#__PURE__*/_jsxs(Select, {
58
+ value: "",
59
+ children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u5C01\u7981\u72B6\u6001"]
60
+ }), /*#__PURE__*/_jsx(Select, {
61
+ value: "0",
62
+ children: /*#__PURE__*/_jsx(Tag, {
63
+ color: "green",
64
+ children: "\u6B63\u5E38"
65
+ })
66
+ }), /*#__PURE__*/_jsx(Select, {
67
+ value: "1",
68
+ children: /*#__PURE__*/_jsx(Tag, {
69
+ color: "red",
70
+ children: "\u88AB\u7981"
71
+ })
72
+ })]
73
+ })
53
74
  }), /*#__PURE__*/_jsx(Form.Item, {
54
75
  name: "isLoginValid",
55
76
  className: "isLoginValid",
@@ -11,5 +11,8 @@
11
11
  width: 150px;
12
12
  }
13
13
 
14
+ .isBan{
15
+ width: 150px;
16
+ }
14
17
 
15
18
  }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ interface Props {
4
+ isBan?: boolean;
5
+ }
6
+ declare const AccountBan: React.FC<Props>;
7
+ export default AccountBan;
@@ -0,0 +1,10 @@
1
+ import "./index.less";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ var AccountBan = function AccountBan(_ref) {
4
+ var isBan = _ref.isBan;
5
+ return isBan ? /*#__PURE__*/_jsx("span", {
6
+ className: "account-ban",
7
+ children: "\u88AB\u7981"
8
+ }) : null;
9
+ };
10
+ export default AccountBan;
@@ -0,0 +1,12 @@
1
+ .account-ban{
2
+ position: relative;
3
+ display: inline-block;
4
+ background-color: #C00;
5
+ color: #fff;
6
+ padding: 2px 4px;
7
+ line-height: 1em;
8
+ border-radius: 2px;
9
+ font-size: 12px;
10
+ margin: 0 5px 0 0;
11
+ vertical-align: middle;
12
+ }
package/dist/index.d.ts CHANGED
@@ -26,4 +26,5 @@ export { default as soundInfo } from './base/soundInfo';
26
26
  export { default as fileListContent } from './base/fileListContent';
27
27
  export { default as fileList } from './base/fileList';
28
28
  export { default as VideoStudy } from './video-study';
29
+ export { default as HomePageAccountList } from './VideoPublish/account-manage/list';
29
30
  export { default as getWorkServerUploadToken } from './lib/getWorkServerUploadToken';
package/dist/index.js CHANGED
@@ -30,4 +30,5 @@ export { default as soundInfo } from "./base/soundInfo";
30
30
  export { default as fileListContent } from "./base/fileListContent";
31
31
  export { default as fileList } from "./base/fileList";
32
32
  export { default as VideoStudy } from "./video-study";
33
+ export { default as HomePageAccountList } from "./VideoPublish/account-manage/list";
33
34
  export { default as getWorkServerUploadToken } from "./lib/getWorkServerUploadToken";
@@ -2,12 +2,12 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import store from "./store";
3
3
  var AccountManageSettingConfigKey = 'account-manage-setting';
4
4
  var AccountManageSettingConfig = function AccountManageSettingConfig(data) {
5
- var _window$getBridge, _window, _window$getBridge$cal, _window$getBridge$cal2;
5
+ var _window$getBridge, _window, _window$getBridge$get;
6
6
  if (data) {
7
7
  store.set(AccountManageSettingConfigKey, _objectSpread({}, data));
8
8
  return data;
9
9
  }
10
- var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge$cal = (_window$getBridge$cal2 = _window$getBridge.call(_window)).getChromiumPath) === null || _window$getBridge$cal === void 0 ? void 0 : _window$getBridge$cal.call(_window$getBridge$cal2)) || '';
10
+ var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 || (_window$getBridge$get = _window$getBridge.getChromiumPath) === null || _window$getBridge$get === void 0 ? void 0 : _window$getBridge$get.call(_window$getBridge)) || '';
11
11
 
12
12
  // console.log('AccountManageSettingConfig get:', chromePath );
13
13
 
package/dist/lib/fs.js CHANGED
@@ -4,7 +4,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
4
  import { VideoMineType } from "./allow-mine-type";
5
5
  import getFileExt from "./getFileExt";
6
6
  export var fs = function fs() {
7
- return window.getBridge().fs;
7
+ var _window$getBridge;
8
+ return (_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.fs;
8
9
  };
9
10
  var path = function path() {
10
11
  return window.getBridge().path;
@@ -26,7 +26,7 @@ var requestApi = /*#__PURE__*/function () {
26
26
  api = _args.length > 0 && _args[0] !== undefined ? _args[0] : '';
27
27
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
28
28
  // 要请求的 url
29
- url = getApiUrl(api, options === null || options === void 0 ? void 0 : options.env);
29
+ url = options !== null && options !== void 0 && options.apiUrl ? (options === null || options === void 0 ? void 0 : options.apiUrl) + (api === null || api === void 0 ? void 0 : api.toLocaleLowerCase()) : getApiUrl(api, options === null || options === void 0 ? void 0 : options.env);
30
30
  console.log('makeAjax int 20 url:', url, options);
31
31
 
32
32
  // const params = options.method === 'GET' ? options.data : {};
@@ -72,6 +72,9 @@ var requestApi = /*#__PURE__*/function () {
72
72
  error.name = result.code;
73
73
  error.stack = result.data;
74
74
  if (['staff-not-login', 'not-login'].includes((result === null || result === void 0 ? void 0 : result.code) || '')) {
75
+ if (!(options !== null && options !== void 0 && options.silent)) {
76
+ Tool.toastError(result.message);
77
+ }
75
78
  // 未登录,跳走;
76
79
  goAuth(result.authType);
77
80
  reject(error);
@@ -2,7 +2,7 @@ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import React, { useEffect, useRef, useState } from 'react';
5
- import { Input, Button, Space } from 'antd';
5
+ import { Input, Button, Space, Tooltip } from 'antd';
6
6
  import "./save-path.less";
7
7
  import { FolderOpenOutlined, FolderOutlined } from '@ant-design/icons';
8
8
  import Tool from "./Tool";
@@ -149,20 +149,24 @@ var SavePath = function SavePath(_ref) {
149
149
  }), /*#__PURE__*/_jsx("div", {
150
150
  className: "option",
151
151
  children: /*#__PURE__*/_jsxs(Space, {
152
- children: [/*#__PURE__*/_jsx(Button, {
153
- size: size,
154
- onClick: onSelectDir,
155
- loading: loadingSelectDir,
156
- icon: /*#__PURE__*/_jsx(FolderOutlined, {}),
157
- disabled: disabled,
158
- children: path ? '更改' : '选择'
159
- }), !hiddenOpenDir && /*#__PURE__*/_jsx(Button, {
160
- size: size,
161
- onClick: onOpenDir,
162
- loading: loadingOpenDir,
163
- disabled: !path || disabled,
164
- icon: /*#__PURE__*/_jsx(FolderOpenOutlined, {}),
165
- children: "\u6253\u5F00"
152
+ children: [/*#__PURE__*/_jsx(Tooltip, {
153
+ title: path ? '更改' : '选择',
154
+ children: /*#__PURE__*/_jsx(Button, {
155
+ size: size,
156
+ onClick: onSelectDir,
157
+ loading: loadingSelectDir,
158
+ disabled: disabled,
159
+ children: /*#__PURE__*/_jsx(FolderOutlined, {})
160
+ })
161
+ }), !hiddenOpenDir && /*#__PURE__*/_jsx(Tooltip, {
162
+ title: "\u6253\u5F00",
163
+ children: /*#__PURE__*/_jsx(Button, {
164
+ size: size,
165
+ onClick: onOpenDir,
166
+ loading: loadingOpenDir,
167
+ disabled: !path || disabled,
168
+ children: /*#__PURE__*/_jsx(FolderOpenOutlined, {})
169
+ })
166
170
  })]
167
171
  })
168
172
  })]
@@ -8,6 +8,7 @@ declare namespace ServicesApi {
8
8
  interface RequestOptions {
9
9
  silent?: boolean;
10
10
  timeout?: number;
11
+ apiUrl?: string;
11
12
  [key: string]: any;
12
13
  }
13
14
  }
@@ -5,6 +5,7 @@ declare namespace ActiveAccountModeSetting {
5
5
  timeAreaRandOffsetPercent: number;
6
6
  publishMaxDay: number;
7
7
  enabled: boolean;
8
+ publishCoverFrom: string;
8
9
  isPublishFinishDelVideo: boolean;
9
10
  }
10
11
  interface SettingForm {
@@ -13,6 +14,7 @@ declare namespace ActiveAccountModeSetting {
13
14
  timeAreaRandOffsetPercent: number;
14
15
  publishMaxDay: number;
15
16
  enabled: boolean;
17
+ publishCoverFrom: string;
16
18
  isPublishFinishDelVideo: boolean;
17
19
  }
18
20
  }
@@ -87,6 +87,7 @@ declare namespace VideoPublish {
87
87
  }
88
88
  interface VideoAccountListQuery {
89
89
  isLoginValid: '' | '1' | '0';
90
+ isBan: '' | '1' | '0';
90
91
  keyword: string;
91
92
  platform: string;
92
93
  }
@@ -20,6 +20,8 @@ declare namespace VideoPublishTaskPlan {
20
20
  accountInfo: VideoPublishVideoAccount.BaseInfo;
21
21
  }
22
22
  interface ListQuery {
23
+ isBan: '' | '1' | '0';
24
+ status: '' | '1' | '0';
23
25
  startTime: number;
24
26
  endTime: number;
25
27
  }
@@ -19,6 +19,7 @@ declare namespace VideoPublishVideoAccount {
19
19
  "avatar": string;
20
20
  "nickname": string;
21
21
  "nicknameRemark": string;
22
+ isBan?: boolean;
22
23
  }
23
24
  interface BanQuery {
24
25
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",