component-shipinlv 1.1.19 → 1.1.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/VideoPublish/account-manage/home.js +24 -17
- package/dist/VideoPublish/account-manage/list.js +53 -15
- package/dist/VideoPublish/proxy/create.js +8 -1
- package/dist/VideoPublish/proxy/list.js +11 -0
- package/dist/VideoPublish/proxy/select.d.ts +10 -0
- package/dist/VideoPublish/proxy/select.js +109 -0
- package/dist/VideoPublish/proxy/select.less +17 -0
- package/dist/VideoPublish/video-account/index.js +36 -3
- package/dist/component/video-platform/logo.js +14 -11
- package/dist/component/video-platform/logo.less +3 -0
- package/dist/service/api/VideoPublishVideoAccountController.d.ts +1 -0
- package/dist/service/api/VideoPublishVideoAccountController.js +23 -0
- package/dist/types/VideoPublish.d.ts +1 -0
- package/dist/types/VideoPublishVideoAccountProxy.d.ts +4 -0
- package/dist/typings.d.ts +1 -0
- package/package.json +1 -1
@@ -83,24 +83,30 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
|
|
83
83
|
label: '个性签名',
|
84
84
|
children: accountDetail.signature
|
85
85
|
}];
|
86
|
-
var _useState3 = useState([
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
openMenuItems = _useState4[0];
|
92
|
-
var onOpen = function onOpen(key) {
|
86
|
+
var _useState3 = useState([]),
|
87
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
88
|
+
openMenuItems = _useState4[0],
|
89
|
+
setOpenMenuItems = _useState4[1];
|
90
|
+
var onOpen = function onOpen(url) {
|
93
91
|
var _window$getBridge;
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
(
|
92
|
+
(_window$getBridge = window.getBridge()) === null || _window$getBridge === void 0 || _window$getBridge.openVideoAccountBrowser(accountDetail.platform, '', accountDetail.accountId, url);
|
93
|
+
Tool.toast('正在打开浏览器, 请稍等...', 8);
|
94
|
+
};
|
95
|
+
var onOpenMenuItems = function onOpenMenuItems(platform) {
|
96
|
+
switch (platform) {
|
97
|
+
case 'douyin':
|
98
|
+
setOpenMenuItems([{
|
99
|
+
label: '创作者中心(发视频)',
|
100
|
+
key: 'https://creator.douyin.com/creator-micro/home'
|
101
|
+
}]);
|
102
|
+
break;
|
103
|
+
case 'tiktok':
|
104
|
+
setOpenMenuItems([{
|
105
|
+
label: 'Tiktok',
|
106
|
+
key: 'https://www.tiktok.com/'
|
107
|
+
}]);
|
101
108
|
break;
|
102
109
|
}
|
103
|
-
Tool.toast('正在打开浏览器, 请稍等...', 8);
|
104
110
|
};
|
105
111
|
return /*#__PURE__*/_jsxs("div", {
|
106
112
|
className: "videoPublishAccountManageHome",
|
@@ -112,8 +118,9 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
|
|
112
118
|
// setAccountListData( list )
|
113
119
|
},
|
114
120
|
onMenu: onMenu,
|
115
|
-
onCurrent: function onCurrent(
|
116
|
-
|
121
|
+
onCurrent: function onCurrent(detail) {
|
122
|
+
setAccountDetail(detail);
|
123
|
+
onOpenMenuItems(detail.platform);
|
117
124
|
}
|
118
125
|
}), /*#__PURE__*/_jsx("div", {
|
119
126
|
className: "contents",
|
@@ -6,7 +6,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
6
|
import React, { useEffect, useState, useRef } from 'react';
|
7
7
|
import { Button, Divider, Dropdown, Empty, Input, Space, Tooltip } from 'antd';
|
8
8
|
import "./list.less";
|
9
|
-
import { PlusCircleOutlined, SearchOutlined } from '@ant-design/icons';
|
9
|
+
import { PlusCircleOutlined, SearchOutlined, GlobalOutlined } from '@ant-design/icons';
|
10
10
|
import { useRequest } from "@umijs/hooks";
|
11
11
|
import * as VideoPublishVideoAccountController from "../../service/api/VideoPublishVideoAccountController";
|
12
12
|
import PageContentWarp from "../../UI/PageContentWarp";
|
@@ -22,6 +22,7 @@ import VideoPlatform from "../../component/video-platform/logo";
|
|
22
22
|
import isInstalledChrome from "../../component/is-installed-chrome";
|
23
23
|
import Tool from "../../lib/Tool";
|
24
24
|
import VideoPublishVideoAccountBaseInfo from "../video-account/base-info";
|
25
|
+
import VideoPublishVideoAccountProxySelect from "../proxy/select";
|
25
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
26
27
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
27
28
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
@@ -63,6 +64,16 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
63
64
|
_useState14 = _slicedToArray(_useState13, 2),
|
64
65
|
listData = _useState14[0],
|
65
66
|
setListData = _useState14[1];
|
67
|
+
var _useState15 = useState({
|
68
|
+
id: 0,
|
69
|
+
ip: '',
|
70
|
+
port: 0,
|
71
|
+
username: '',
|
72
|
+
password: ''
|
73
|
+
}),
|
74
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
75
|
+
proxyInfo = _useState16[0],
|
76
|
+
setProxyInfo = _useState16[1];
|
66
77
|
var _useRequest = useRequest(function () {
|
67
78
|
return VideoPublishVideoAccountController.list({
|
68
79
|
current: 1,
|
@@ -177,7 +188,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
177
188
|
// window.bridge.ipcRenderer.sendMessage( eventName ); // 添加抖音账号
|
178
189
|
settingConfig = AccountManageSettingConfig();
|
179
190
|
_context.next = 9;
|
180
|
-
return (_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.ipcRenderer.invoke('shipinlv-video-account-add', platform, settingConfig.isChromeOpen).catch(function (err) {
|
191
|
+
return (_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.ipcRenderer.invoke('shipinlv-video-account-add', platform, proxyInfo, settingConfig.isChromeOpen).catch(function (err) {
|
181
192
|
Notification.notificationError('获取账号信息错误' + ((err === null || err === void 0 ? void 0 : err.message) || JSON.stringify(err)));
|
182
193
|
});
|
183
194
|
case 9:
|
@@ -203,6 +214,21 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
203
214
|
return _ref2.apply(this, arguments);
|
204
215
|
};
|
205
216
|
}();
|
217
|
+
var onProxy = function onProxy() {
|
218
|
+
var dialog = Tool.drawer({
|
219
|
+
title: '编辑代理',
|
220
|
+
content: /*#__PURE__*/_jsx(VideoPublishVideoAccountProxySelect, {
|
221
|
+
env: env,
|
222
|
+
nickname: "[\u5F85\u6DFB\u52A0]",
|
223
|
+
videoAccountProxyId: proxyInfo.id || 0,
|
224
|
+
onSuccess: function onSuccess(newVideoAccountProxyId, info) {
|
225
|
+
setProxyInfo(_objectSpread({}, info));
|
226
|
+
dialog.destroy();
|
227
|
+
}
|
228
|
+
}),
|
229
|
+
width: 680
|
230
|
+
});
|
231
|
+
};
|
206
232
|
useEffect(function () {
|
207
233
|
var platformMenuItems = [];
|
208
234
|
VideoPlatformList.forEach(function (item) {
|
@@ -224,19 +250,31 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
224
250
|
var addButton = function addButton() {
|
225
251
|
return /*#__PURE__*/_jsx("div", {
|
226
252
|
className: "addButton",
|
227
|
-
children: /*#__PURE__*/
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
253
|
+
children: /*#__PURE__*/_jsxs(Space, {
|
254
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
255
|
+
title: "\u8BBE\u7F6E\u4EE3\u7406",
|
256
|
+
children: /*#__PURE__*/_jsx(Button, {
|
257
|
+
type: "primary",
|
258
|
+
ghost: !proxyInfo.ip,
|
259
|
+
onClick: function onClick() {
|
260
|
+
return onProxy();
|
261
|
+
},
|
262
|
+
children: /*#__PURE__*/_jsx(GlobalOutlined, {})
|
263
|
+
})
|
264
|
+
}), /*#__PURE__*/_jsx(Dropdown, {
|
265
|
+
placement: "top",
|
266
|
+
menu: {
|
267
|
+
items: platformMenuItems,
|
268
|
+
onClick: function onClick(e) {
|
269
|
+
return onAdd(e.key);
|
270
|
+
}
|
271
|
+
},
|
272
|
+
children: /*#__PURE__*/_jsx(Button, {
|
273
|
+
icon: /*#__PURE__*/_jsx(PlusCircleOutlined, {}),
|
274
|
+
type: "primary",
|
275
|
+
children: "\u8D26\u53F7"
|
276
|
+
})
|
277
|
+
})]
|
240
278
|
})
|
241
279
|
});
|
242
280
|
};
|
@@ -1,7 +1,7 @@
|
|
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, InputNumber } from 'antd';
|
4
|
+
import { Button, Form, Input, InputNumber, Switch } from 'antd';
|
5
5
|
import { useRequest } from "@umijs/hooks";
|
6
6
|
import PageContentWarp from "../../UI/PageContentWarp";
|
7
7
|
import DialogDrawerFooter from "../../UI/DialogDrawerFooter";
|
@@ -140,6 +140,13 @@ var VideoPublishVideoAccountProxyCreate = function VideoPublishVideoAccountProxy
|
|
140
140
|
children: /*#__PURE__*/_jsx(Input, {
|
141
141
|
placeholder: "\u8F93\u5165IP\u5730\u5740 \u5F52\u5C5E\u5730\uFF0C\u53EA\u662F\u65B9\u4FBF\u7BA1\u7406"
|
142
142
|
})
|
143
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
144
|
+
name: "enabled",
|
145
|
+
label: "\u662F\u5426\u542F\u7528",
|
146
|
+
children: /*#__PURE__*/_jsx(Switch, {
|
147
|
+
unCheckedChildren: "\u5DF2\u7981\u7528",
|
148
|
+
checkedChildren: "\u5DF2\u542F\u7528"
|
149
|
+
})
|
143
150
|
}), /*#__PURE__*/_jsx(DialogDrawerFooter, {
|
144
151
|
children: /*#__PURE__*/_jsx(Button, {
|
145
152
|
type: "primary",
|
@@ -11,6 +11,7 @@ import { Button, Popconfirm, Popover, Space, Table, Tag } from "antd";
|
|
11
11
|
import LayoutContent from "../../UI/LayoutContent";
|
12
12
|
import VideoPublishVideoAccountProxyQuery from "./query";
|
13
13
|
import VideoPublishVideoAccountProxyCreate from "./create";
|
14
|
+
import { PlusCircleOutlined } from "@ant-design/icons";
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
15
16
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
16
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -215,6 +216,16 @@ var VideoPublishVideoAccountProxy = function VideoPublishVideoAccountProxy(_ref)
|
|
215
216
|
};
|
216
217
|
return /*#__PURE__*/_jsx(LayoutContent, {
|
217
218
|
title: "\u7F51\u7EDC\u4EE3\u7406",
|
219
|
+
subtitle: /*#__PURE__*/_jsx(Button, {
|
220
|
+
size: "small",
|
221
|
+
type: "link",
|
222
|
+
ghost: true,
|
223
|
+
icon: /*#__PURE__*/_jsx(PlusCircleOutlined, {}),
|
224
|
+
onClick: function onClick() {
|
225
|
+
return onCreate(0);
|
226
|
+
},
|
227
|
+
children: "\u6DFB\u52A0\u4EE3\u7406"
|
228
|
+
}),
|
218
229
|
extInfo: /*#__PURE__*/_jsx(VideoPublishVideoAccountProxyQuery, {
|
219
230
|
loading: loading,
|
220
231
|
defaultQuery: query,
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './select.less';
|
3
|
+
interface Props {
|
4
|
+
env?: Global.Env;
|
5
|
+
nickname: string;
|
6
|
+
videoAccountProxyId: number;
|
7
|
+
onSuccess: (id: number, proxyInfo: VideoPublishVideoAccountProxy.List) => void;
|
8
|
+
}
|
9
|
+
declare const VideoPublishVideoAccountProxySelect: React.FC<Props>;
|
10
|
+
export default VideoPublishVideoAccountProxySelect;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
2
|
+
import React, { useState } from 'react';
|
3
|
+
import { Button, Form, Select, Tag } from 'antd';
|
4
|
+
import { useRequest } from "@umijs/hooks";
|
5
|
+
import PageContentWarp from "../../UI/PageContentWarp";
|
6
|
+
import { AlignLeftOutlined } from "@ant-design/icons";
|
7
|
+
import DialogDrawerFooter from "../../UI/DialogDrawerFooter";
|
8
|
+
import "./select.less";
|
9
|
+
import * as VideoPublishVideoAccountProxyController from "../../service/api/VideoPublishVideoAccountProxyController";
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
12
|
+
var VideoPublishVideoAccountProxySelect = function VideoPublishVideoAccountProxySelect(_ref) {
|
13
|
+
var env = _ref.env,
|
14
|
+
nickname = _ref.nickname,
|
15
|
+
videoAccountProxyId = _ref.videoAccountProxyId,
|
16
|
+
onSuccess = _ref.onSuccess;
|
17
|
+
var _Form$useForm = Form.useForm(),
|
18
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
19
|
+
form = _Form$useForm2[0];
|
20
|
+
var _useState = useState([]),
|
21
|
+
_useState2 = _slicedToArray(_useState, 2),
|
22
|
+
listData = _useState2[0],
|
23
|
+
setListData = _useState2[1];
|
24
|
+
var _useRequest = useRequest(function () {
|
25
|
+
return VideoPublishVideoAccountProxyController.list({
|
26
|
+
current: 1,
|
27
|
+
pageSize: 100
|
28
|
+
}, {
|
29
|
+
env: env
|
30
|
+
});
|
31
|
+
}, {
|
32
|
+
onSuccess: function onSuccess(result) {
|
33
|
+
setListData(result.list);
|
34
|
+
form.setFieldsValue({
|
35
|
+
id: videoAccountProxyId
|
36
|
+
});
|
37
|
+
}
|
38
|
+
}),
|
39
|
+
loading = _useRequest.loading,
|
40
|
+
run = _useRequest.run;
|
41
|
+
var onFinish = function onFinish(values) {
|
42
|
+
var _listData$filter;
|
43
|
+
var item = ((_listData$filter = listData.filter(function (item) {
|
44
|
+
return item.id === values.id;
|
45
|
+
})) === null || _listData$filter === void 0 ? void 0 : _listData$filter[0]) || {
|
46
|
+
id: 0,
|
47
|
+
domain: '',
|
48
|
+
port: 0
|
49
|
+
};
|
50
|
+
onSuccess(values.id, item);
|
51
|
+
};
|
52
|
+
return /*#__PURE__*/_jsx(PageContentWarp, {
|
53
|
+
loading: loading,
|
54
|
+
className: "videoAccountGroupSelect",
|
55
|
+
children: /*#__PURE__*/_jsxs(Form, {
|
56
|
+
labelCol: {
|
57
|
+
span: 4
|
58
|
+
},
|
59
|
+
form: form,
|
60
|
+
disabled: loading,
|
61
|
+
onFinish: onFinish,
|
62
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
63
|
+
label: "\u8D26\u6237\u540D\u79F0",
|
64
|
+
children: /*#__PURE__*/_jsx("strong", {
|
65
|
+
children: nickname
|
66
|
+
})
|
67
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
68
|
+
name: "id",
|
69
|
+
label: "\u4EE3\u7406\u5217\u8868",
|
70
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
71
|
+
className: "videoAccountGroupSelectIp",
|
72
|
+
popupClassName: "videoAccountGroupSelectIp",
|
73
|
+
children: [/*#__PURE__*/_jsxs(Select.Option, {
|
74
|
+
value: 0,
|
75
|
+
children: [/*#__PURE__*/_jsx(AlignLeftOutlined, {}), " \u8BF7\u9009\u62E9\u7F51\u7EDC\u4EE3\u7406"]
|
76
|
+
}), listData.map(function (items) {
|
77
|
+
return /*#__PURE__*/_jsx(Select.Option, {
|
78
|
+
value: items.id,
|
79
|
+
disabled: !items.enabled,
|
80
|
+
children: /*#__PURE__*/_jsxs("div", {
|
81
|
+
className: "selectOption",
|
82
|
+
children: [/*#__PURE__*/_jsx("div", {
|
83
|
+
className: "ip",
|
84
|
+
children: items.ip
|
85
|
+
}), /*#__PURE__*/_jsx("div", {
|
86
|
+
className: "title",
|
87
|
+
children: items.title
|
88
|
+
}), /*#__PURE__*/_jsx("div", {
|
89
|
+
className: "area",
|
90
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
91
|
+
children: items.area
|
92
|
+
})
|
93
|
+
})]
|
94
|
+
})
|
95
|
+
}, items.id);
|
96
|
+
})]
|
97
|
+
})
|
98
|
+
}), /*#__PURE__*/_jsx(DialogDrawerFooter, {
|
99
|
+
children: /*#__PURE__*/_jsx(Button, {
|
100
|
+
type: "primary",
|
101
|
+
htmlType: "submit",
|
102
|
+
loading: loading,
|
103
|
+
children: "\u4FDD\u5B58"
|
104
|
+
})
|
105
|
+
})]
|
106
|
+
})
|
107
|
+
});
|
108
|
+
};
|
109
|
+
export default VideoPublishVideoAccountProxySelect;
|
@@ -5,6 +5,7 @@ import "./index.less";
|
|
5
5
|
import PageContentWarp from "../../UI/PageContentWarp";
|
6
6
|
import { useRequest } from "@umijs/hooks";
|
7
7
|
import * as VideoPublishController from "../../service/api/VideoPublishController";
|
8
|
+
import * as VideoPublishVideoAccountController from "../../service/api/VideoPublishVideoAccountController";
|
8
9
|
import { Avatar, Button, Divider, Space, Table, Tag } from "antd";
|
9
10
|
import VideoPublishVideoAccountListQuery from "./query";
|
10
11
|
import VideoPlatform from "../../component/video-platform/logo";
|
@@ -13,6 +14,7 @@ import { PlusCircleOutlined } from "@ant-design/icons";
|
|
13
14
|
import Tool from "../../lib/Tool";
|
14
15
|
import VideoAccountGroup from "./group";
|
15
16
|
import VideoAccountCreate from "./create";
|
17
|
+
import VideoPublishVideoAccountProxySelect from "../proxy/select";
|
16
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
17
19
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
18
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -176,9 +178,8 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
176
178
|
}), /*#__PURE__*/_jsx(Button, {
|
177
179
|
type: "link",
|
178
180
|
size: "small",
|
179
|
-
disabled: true,
|
180
181
|
onClick: function onClick() {
|
181
|
-
return onProxyEdit(id);
|
182
|
+
return onProxyEdit((record === null || record === void 0 ? void 0 : record.nickname) || '', id, record === null || record === void 0 ? void 0 : record.videoAccountProxyId);
|
182
183
|
},
|
183
184
|
children: "\u4EE3\u7406"
|
184
185
|
})]
|
@@ -203,11 +204,42 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
203
204
|
runVideoAccount = _useRequest.run,
|
204
205
|
loadingVideoAccount = _useRequest.loading,
|
205
206
|
errorVideoAccount = _useRequest.error;
|
207
|
+
var _useRequest2 = useRequest(function (data) {
|
208
|
+
return VideoPublishVideoAccountController.createProxy(data, {
|
209
|
+
env: env
|
210
|
+
});
|
211
|
+
}, {
|
212
|
+
manual: true,
|
213
|
+
onSuccess: function onSuccess(result) {
|
214
|
+
Tool.toast('代理保存成功');
|
215
|
+
runVideoAccount();
|
216
|
+
}
|
217
|
+
}),
|
218
|
+
loadingProxyCreate = _useRequest2.loading,
|
219
|
+
runProxyCreate = _useRequest2.run;
|
206
220
|
var _onQuery = function onQuery(query) {
|
207
221
|
setQuery(_objectSpread({}, query));
|
208
222
|
runVideoAccount(query);
|
209
223
|
};
|
210
|
-
var onProxyEdit = function onProxyEdit(
|
224
|
+
var onProxyEdit = function onProxyEdit(nickname, videoAccountId) {
|
225
|
+
var videoAccountProxyId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
226
|
+
var dialog = Tool.drawer({
|
227
|
+
title: '编辑代理',
|
228
|
+
content: /*#__PURE__*/_jsx(VideoPublishVideoAccountProxySelect, {
|
229
|
+
env: env,
|
230
|
+
nickname: nickname,
|
231
|
+
videoAccountProxyId: videoAccountProxyId,
|
232
|
+
onSuccess: function onSuccess(newVideoAccountProxyId) {
|
233
|
+
runProxyCreate({
|
234
|
+
videoAccountId: videoAccountId,
|
235
|
+
videoAccountProxyId: newVideoAccountProxyId
|
236
|
+
});
|
237
|
+
dialog.destroy();
|
238
|
+
}
|
239
|
+
}),
|
240
|
+
width: 680
|
241
|
+
});
|
242
|
+
};
|
211
243
|
var onCreateGroup = function onCreateGroup() {
|
212
244
|
var groupId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
213
245
|
var dialog = Tool.drawer({
|
@@ -249,6 +281,7 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
249
281
|
size: "small",
|
250
282
|
type: "primary",
|
251
283
|
ghost: true,
|
284
|
+
loading: loadingProxyCreate,
|
252
285
|
onClick: function onClick() {
|
253
286
|
return onCreateGroup(0);
|
254
287
|
},
|
@@ -11,22 +11,25 @@ export var VideoPlatformList = [{
|
|
11
11
|
// auth login
|
12
12
|
allowMainDomainList: ['douyin.com', 'iesdouyin.com']
|
13
13
|
}, {
|
14
|
-
platform: '
|
15
|
-
name: '
|
16
|
-
videoWebSiteUrl: 'https://
|
14
|
+
platform: 'tiktok',
|
15
|
+
name: 'Tiktok',
|
16
|
+
videoWebSiteUrl: 'https://www.tiktok.com/',
|
17
17
|
// auth login
|
18
|
-
allowMainDomainList: ['
|
19
|
-
},
|
18
|
+
allowMainDomainList: ['tiktok.com']
|
19
|
+
},
|
20
|
+
// {
|
21
|
+
// platform: 'buyin',
|
22
|
+
// name: '巨量百应',
|
23
|
+
// videoWebSiteUrl: 'https://buyin.jinritemai.com/dashboard/merch-picking-library', // auth login
|
24
|
+
// allowMainDomainList: [
|
25
|
+
// 'buyin.jinritemai.com',
|
26
|
+
// ],
|
27
|
+
// },
|
28
|
+
{
|
20
29
|
platform: 'kuaishou',
|
21
30
|
name: '快手',
|
22
31
|
videoWebSiteUrl: 'https://www.kuaishou.com/',
|
23
32
|
allowMainDomainList: ['kuaishou.com']
|
24
|
-
}, {
|
25
|
-
platform: 'tiktok',
|
26
|
-
name: 'Tiktok',
|
27
|
-
disabled: true,
|
28
|
-
videoWebSiteUrl: 'https://www.tiktok.com/',
|
29
|
-
allowMainDomainList: ['tiktok.com']
|
30
33
|
}
|
31
34
|
// {
|
32
35
|
// platform: 'bilibili',
|
@@ -13,3 +13,4 @@ export declare function del(body: {
|
|
13
13
|
}>;
|
14
14
|
export declare function detail(body: VideoPublishVideoAccount.DetailQuery, options?: Global.RequestOptions): Promise<VideoPublishVideoAccount.Detail>;
|
15
15
|
export declare function saveLoginStatus(body: VideoPublishVideoAccount.SaveLoginStatus, options?: Global.RequestOptions): Promise<boolean>;
|
16
|
+
export declare function createProxy(body: VideoPublishVideoAccountProxy.CreateProxyQuery, options?: Global.RequestOptions): Promise<boolean>;
|
@@ -188,4 +188,27 @@ function _saveLoginStatus() {
|
|
188
188
|
}, _callee8);
|
189
189
|
}));
|
190
190
|
return _saveLoginStatus.apply(this, arguments);
|
191
|
+
}
|
192
|
+
export function createProxy(_x17, _x18) {
|
193
|
+
return _createProxy.apply(this, arguments);
|
194
|
+
}
|
195
|
+
function _createProxy() {
|
196
|
+
_createProxy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(body, options) {
|
197
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
198
|
+
while (1) switch (_context9.prev = _context9.next) {
|
199
|
+
case 0:
|
200
|
+
return _context9.abrupt("return", request(PublishDomainApi("user/videoAccount/createProxy", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
201
|
+
method: 'POST',
|
202
|
+
headers: {
|
203
|
+
'Content-Type': 'application/json'
|
204
|
+
},
|
205
|
+
data: _objectSpread({}, body)
|
206
|
+
}, options || {})));
|
207
|
+
case 1:
|
208
|
+
case "end":
|
209
|
+
return _context9.stop();
|
210
|
+
}
|
211
|
+
}, _callee9);
|
212
|
+
}));
|
213
|
+
return _createProxy.apply(this, arguments);
|
191
214
|
}
|
package/dist/typings.d.ts
CHANGED