component-shipinlv 2.2.7 → 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.
- package/dist/ActiveAccountMode/hour-enabled.js +16 -6
- package/dist/ActiveAccountMode/setting.js +15 -2
- package/dist/ActiveAccountMode/task/index.js +1 -0
- package/dist/Auth/index.d.ts +1 -0
- package/dist/Auth/index.js +3 -1
- package/dist/AuthClient/login-reg.d.ts +1 -0
- package/dist/AuthClient/login-reg.js +2 -0
- package/dist/AuthClient/login.d.ts +1 -0
- package/dist/AuthClient/login.js +3 -1
- package/dist/AuthClient/qr/index.js +3 -1
- package/dist/VideoPublish/account-manage/list.d.ts +3 -0
- package/dist/VideoPublish/account-manage/list.js +26 -15
- package/dist/VideoPublish/account-manage/list.less +5 -0
- package/dist/VideoPublish/create-task/base/index.js +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/request.js +4 -1
- package/dist/service/typing.d.ts +1 -0
- package/dist/types/AutoMakeTaskSetting.d.ts +2 -0
- package/package.json +1 -1
@@ -1,4 +1,6 @@
|
|
1
|
-
import
|
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 =
|
21
|
+
var index = hourList.indexOf(hour);
|
16
22
|
if (index > -1) {
|
17
|
-
|
23
|
+
hourList.splice(index, 1);
|
18
24
|
} else {
|
19
|
-
|
25
|
+
hourList.push(hour);
|
20
26
|
}
|
21
|
-
onDayTimeHourList(
|
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(
|
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",
|
package/dist/Auth/index.d.ts
CHANGED
package/dist/Auth/index.js
CHANGED
@@ -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'),
|
@@ -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() {
|
package/dist/AuthClient/login.js
CHANGED
@@ -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,
|
@@ -6,6 +6,9 @@ interface Props {
|
|
6
6
|
currentAccountDetail: VideoPublishVideoAccount.List;
|
7
7
|
onMenu: (key: string) => void;
|
8
8
|
disabledDel?: boolean;
|
9
|
+
disabledAdd?: boolean;
|
10
|
+
disabledAddProxy?: boolean;
|
11
|
+
addonButton?: React.ReactNode;
|
9
12
|
onListData: (list: VideoPublishVideoAccount.List[]) => void;
|
10
13
|
onCurrent: (detail: VideoPublishVideoAccount.List) => void;
|
11
14
|
}
|
@@ -36,6 +36,9 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
36
36
|
onListData = _ref$onListData === void 0 ? function () {} : _ref$onListData,
|
37
37
|
currentAccountDetail = _ref.currentAccountDetail,
|
38
38
|
disabledDel = _ref.disabledDel,
|
39
|
+
disabledAddProxy = _ref.disabledAddProxy,
|
40
|
+
addonButton = _ref.addonButton,
|
41
|
+
disabledAdd = _ref.disabledAdd,
|
39
42
|
_ref$onCurrent = _ref.onCurrent,
|
40
43
|
onCurrent = _ref$onCurrent === void 0 ? function () {} : _ref$onCurrent;
|
41
44
|
var _useState = useState(getLocalUserInfo()),
|
@@ -305,10 +308,13 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
305
308
|
});
|
306
309
|
}, []);
|
307
310
|
var addButton = function addButton() {
|
311
|
+
if (disabledAdd) {
|
312
|
+
return '';
|
313
|
+
}
|
308
314
|
return /*#__PURE__*/_jsx("div", {
|
309
315
|
className: "addButton",
|
310
316
|
children: /*#__PURE__*/_jsxs(Space, {
|
311
|
-
children: [/*#__PURE__*/_jsx(Tooltip, {
|
317
|
+
children: [!disabledAddProxy && /*#__PURE__*/_jsx(Tooltip, {
|
312
318
|
title: "\u8BBE\u7F6E\u4EE3\u7406",
|
313
319
|
children: /*#__PURE__*/_jsx(Button, {
|
314
320
|
type: "primary",
|
@@ -438,7 +444,9 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
438
444
|
children: letter
|
439
445
|
}, letter));
|
440
446
|
} else {
|
441
|
-
shopName.push(
|
447
|
+
shopName.push( /*#__PURE__*/_jsx("span", {
|
448
|
+
children: letter
|
449
|
+
}, letter));
|
442
450
|
}
|
443
451
|
});
|
444
452
|
// 未搜索到
|
@@ -446,18 +454,21 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
446
454
|
return null;
|
447
455
|
}
|
448
456
|
}
|
449
|
-
return /*#__PURE__*/
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
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]
|
461
472
|
}, item.id);
|
462
473
|
})
|
463
474
|
}), listData.length == 0 && /*#__PURE__*/_jsxs("div", {
|
@@ -467,7 +478,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
467
478
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
468
479
|
}), addButton()]
|
469
480
|
})]
|
470
|
-
}), /*#__PURE__*/_jsxs("div", {
|
481
|
+
}), !disabledAdd && /*#__PURE__*/_jsxs("div", {
|
471
482
|
className: "submits",
|
472
483
|
children: [/*#__PURE__*/_jsx("div", {
|
473
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:
|
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:
|
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:
|
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:
|
282
|
+
max: 10000,
|
283
283
|
addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
|
284
284
|
addonAfter: "\u6761\u89C6\u9891"
|
285
285
|
})
|
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";
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -162,7 +162,7 @@ declare const Tool: {
|
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
getDirByPath(path: string): string;
|
164
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
165
|
-
notification(type: "
|
165
|
+
notification(type: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
168
168
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
package/dist/lib/request.js
CHANGED
@@ -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);
|
package/dist/service/typing.d.ts
CHANGED
@@ -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
|
}
|