component-shipinlv 2.3.6 → 2.3.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/Auth/index.js +45 -26
- package/dist/AuthClient/qr/index.css.js +1 -1
- package/dist/PhonePublish/account-manage/home.d.ts +11 -0
- package/dist/PhonePublish/account-manage/home.js +243 -0
- package/dist/PhonePublish/account-manage/home.less +28 -0
- package/dist/PhonePublish/account-manage/index.d.ts +3 -0
- package/dist/PhonePublish/account-manage/index.js +56 -0
- package/dist/PhonePublish/account-manage/index.less +59 -0
- package/dist/PhonePublish/account-manage/list.d.ts +17 -0
- package/dist/PhonePublish/account-manage/list.js +443 -0
- package/dist/PhonePublish/account-manage/list.less +95 -0
- package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
- package/dist/PhonePublish/account-manage/setting/index.js +199 -0
- package/dist/PhonePublish/account-manage/setting/index.less +11 -0
- package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
- package/dist/PhonePublish/create-task/base/index.js +386 -0
- package/dist/PhonePublish/create-task/base/index.less +64 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
- package/dist/PhonePublish/create-task/hour-enabled.d.ts +9 -0
- package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
- package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
- package/dist/PhonePublish/create-task/index.d.ts +11 -0
- package/dist/PhonePublish/create-task/index.js +449 -0
- package/dist/PhonePublish/create-task/index.less +75 -0
- package/dist/PhonePublish/create-task/select-list.css.d.ts +5 -0
- package/dist/PhonePublish/create-task/select-list.css.js +6 -0
- package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
- package/dist/PhonePublish/create-task/select-list.js +304 -0
- package/dist/PhonePublish/create-task/task-list.css.d.ts +5 -0
- package/dist/PhonePublish/create-task/task-list.css.js +6 -0
- package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
- package/dist/PhonePublish/create-task/task-list.js +323 -0
- package/dist/PhonePublish/index.css.d.ts +2 -0
- package/dist/PhonePublish/index.css.js +35 -0
- package/dist/PhonePublish/index.d.ts +15 -0
- package/dist/PhonePublish/index.js +191 -0
- package/dist/PhonePublish/index.less +55 -0
- package/dist/PhonePublish/lib/chrome-quit.d.ts +2 -0
- package/dist/PhonePublish/lib/chrome-quit.js +20 -0
- package/dist/PhonePublish/log/index.d.ts +8 -0
- package/dist/PhonePublish/log/index.js +186 -0
- package/dist/PhonePublish/log/index.less +81 -0
- package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
- package/dist/PhonePublish/publish-task-plan/index.js +32 -0
- package/dist/PhonePublish/publish-task-plan/index.less +4 -0
- package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
- package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
- package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
- package/dist/PhonePublish/task-list/index.d.ts +8 -0
- package/dist/PhonePublish/task-list/index.js +224 -0
- package/dist/PhonePublish/task-list/index.less +8 -0
- package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
- package/dist/PhonePublish/task-list/plan/list.js +290 -0
- package/dist/PhonePublish/task-list/plan/list.less +87 -0
- package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/operate.js +145 -0
- package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/query.js +89 -0
- package/dist/PhonePublish/task-list/plan/query.less +9 -0
- package/dist/PhonePublish/task-list/plan/status.d.ts +13 -0
- package/dist/PhonePublish/task-list/plan/status.js +53 -0
- package/dist/PhonePublish/task-list/query.d.ts +8 -0
- package/dist/PhonePublish/task-list/query.js +76 -0
- package/dist/PhonePublish/task-list/query.less +19 -0
- package/dist/PhonePublish/task-list/who-can-view.d.ts +12 -0
- package/dist/PhonePublish/task-list/who-can-view.js +37 -0
- package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
- package/dist/PhonePublish/video-account/ban/index.js +94 -0
- package/dist/PhonePublish/video-account/ban/index.less +4 -0
- package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
- package/dist/PhonePublish/video-account/base-info.js +75 -0
- package/dist/PhonePublish/video-account/base-info.less +92 -0
- package/dist/PhonePublish/video-account/create.d.ts +8 -0
- package/dist/PhonePublish/video-account/create.js +174 -0
- package/dist/PhonePublish/video-account/group.d.ts +9 -0
- package/dist/PhonePublish/video-account/group.js +255 -0
- package/dist/PhonePublish/video-account/group.less +10 -0
- package/dist/PhonePublish/video-account/index.d.ts +8 -0
- package/dist/PhonePublish/video-account/index.js +403 -0
- package/dist/PhonePublish/video-account/index.less +92 -0
- package/dist/PhonePublish/video-account/query.d.ts +8 -0
- package/dist/PhonePublish/video-account/query.js +115 -0
- package/dist/PhonePublish/video-account/query.less +18 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.d.ts +7 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.d.ts +9 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
- package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
- package/dist/PhonePublish/video-publish-statistic/kind.d.ts +16 -0
- package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.d.ts +9 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
- package/dist/VideoPublish/account-manage/list.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/phone/index.d.ts +8 -0
- package/dist/phone/index.js +62 -0
- package/dist/phone/index.less +170 -0
- package/dist/typings.d.ts +1 -1
- package/package.json +1 -1
package/dist/Auth/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
4
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
5
6
|
import React, { useState, useEffect, useRef } from 'react';
|
6
7
|
import { WechatOutlined, RedoOutlined, UserOutlined } from '@ant-design/icons';
|
@@ -41,29 +42,33 @@ var Auth = function Auth(_ref) {
|
|
41
42
|
loading = _useState2[0],
|
42
43
|
setLoading = _useState2[1];
|
43
44
|
var qrWsRef = useRef();
|
44
|
-
var _useState3 = useState((loginTypeList
|
45
|
+
var _useState3 = useState(_toConsumableArray(loginTypeList)),
|
45
46
|
_useState4 = _slicedToArray(_useState3, 2),
|
46
|
-
|
47
|
-
|
48
|
-
var _useState5 = useState(
|
49
|
-
_useState6 = _slicedToArray(_useState5,
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
47
|
+
currentLoginTypeList = _useState4[0],
|
48
|
+
setCurrentLoginTypeList = _useState4[1];
|
49
|
+
var _useState5 = useState((currentLoginTypeList === null || currentLoginTypeList === void 0 ? void 0 : currentLoginTypeList[0]) || 'wechat'),
|
50
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
51
|
+
activeKey = _useState6[0],
|
52
|
+
setActiveKey = _useState6[1];
|
53
|
+
var _useState7 = useState("".concat(Tool.math.randWord(20))),
|
54
|
+
_useState8 = _slicedToArray(_useState7, 1),
|
55
|
+
loginId = _useState8[0];
|
56
|
+
var _useState9 = useState(''),
|
57
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
58
|
+
weQrUrl = _useState10[0],
|
59
|
+
setWeQrUrl = _useState10[1];
|
55
60
|
var isNextTryRef = useRef(activeKey === 'wechat');
|
56
61
|
|
57
62
|
// 要不要继续 try
|
58
|
-
var
|
59
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
60
|
-
isNextTry = _useState10[0],
|
61
|
-
setNextTry = _useState10[1];
|
62
|
-
var reTryCountRef = useRef(0);
|
63
|
-
var _useState11 = useState(0),
|
63
|
+
var _useState11 = useState(isNextTryRef.current),
|
64
64
|
_useState12 = _slicedToArray(_useState11, 2),
|
65
|
-
|
66
|
-
|
65
|
+
isNextTry = _useState12[0],
|
66
|
+
setNextTry = _useState12[1];
|
67
|
+
var reTryCountRef = useRef(0);
|
68
|
+
var _useState13 = useState(0),
|
69
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
70
|
+
reTryCount = _useState14[0],
|
71
|
+
setReTryCount = _useState14[1];
|
67
72
|
var timer = useRef(setTimeout(function () {}, 1));
|
68
73
|
var eventSourceRef = useRef(null);
|
69
74
|
var onLoginCancel = function onLoginCancel() {
|
@@ -238,7 +243,7 @@ var Auth = function Auth(_ref) {
|
|
238
243
|
_context3.next = 10;
|
239
244
|
break;
|
240
245
|
case 7:
|
241
|
-
if (!
|
246
|
+
if (!currentLoginTypeList.includes('wechat')) {
|
242
247
|
_context3.next = 10;
|
243
248
|
break;
|
244
249
|
}
|
@@ -254,14 +259,22 @@ var Auth = function Auth(_ref) {
|
|
254
259
|
return _ref4.apply(this, arguments);
|
255
260
|
};
|
256
261
|
}();
|
262
|
+
var onCallWechat = function onCallWechat() {
|
263
|
+
currentLoginTypeList.push('wechat');
|
264
|
+
setCurrentLoginTypeList(_toConsumableArray(currentLoginTypeList));
|
265
|
+
};
|
266
|
+
var onCallAccount = function onCallAccount() {
|
267
|
+
currentLoginTypeList.push('account', 'account-reg', 'account-login');
|
268
|
+
setCurrentLoginTypeList(_toConsumableArray(currentLoginTypeList));
|
269
|
+
};
|
257
270
|
useEffect(function () {
|
258
271
|
onInit();
|
259
272
|
return function () {
|
260
273
|
clearTimeout(timer.current);
|
261
274
|
};
|
262
275
|
}, []);
|
263
|
-
return /*#__PURE__*/
|
264
|
-
children: /*#__PURE__*/_jsxs(styles.LoginForm, {
|
276
|
+
return /*#__PURE__*/_jsxs(styles.AuthQrLogin, {
|
277
|
+
children: [/*#__PURE__*/_jsxs(styles.LoginForm, {
|
265
278
|
children: [/*#__PURE__*/_jsx(styles.WebTitle, {
|
266
279
|
children: /*#__PURE__*/_jsx("span", {
|
267
280
|
children: "\u767B\u5F55/\u6CE8\u518C"
|
@@ -271,11 +284,11 @@ var Auth = function Auth(_ref) {
|
|
271
284
|
onChange: function onChange(keyName) {
|
272
285
|
onTabChange(keyName);
|
273
286
|
},
|
274
|
-
children: [!((
|
287
|
+
children: [!((currentLoginTypeList === null || currentLoginTypeList === void 0 ? void 0 : currentLoginTypeList.length) > 0 && !currentLoginTypeList.includes('wechat')) && /*#__PURE__*/_jsx(Tabs.TabPane, {
|
275
288
|
tab: /*#__PURE__*/_jsxs(_Fragment, {
|
276
289
|
children: [/*#__PURE__*/_jsx(WechatOutlined, {}), " \u5FAE\u4FE1"]
|
277
290
|
}),
|
278
|
-
disabled: (
|
291
|
+
disabled: (currentLoginTypeList === null || currentLoginTypeList === void 0 ? void 0 : currentLoginTypeList.length) > 0 && !currentLoginTypeList.includes('wechat'),
|
279
292
|
children: /*#__PURE__*/_jsx(PageContentWarp, {
|
280
293
|
loading: loadingWeLoginQr || loading,
|
281
294
|
error: errorWeLoginQr,
|
@@ -326,7 +339,7 @@ var Auth = function Auth(_ref) {
|
|
326
339
|
className: "tab-icon",
|
327
340
|
children: [/*#__PURE__*/_jsx(UserOutlined, {}), " \u8D26\u6237"]
|
328
341
|
}),
|
329
|
-
disabled: !
|
342
|
+
disabled: !currentLoginTypeList.includes('account-login') && !currentLoginTypeList.includes('account'),
|
330
343
|
children: /*#__PURE__*/_jsx(AuthLoginReg, {
|
331
344
|
env: env,
|
332
345
|
apiUrl: apiUrl,
|
@@ -334,7 +347,7 @@ var Auth = function Auth(_ref) {
|
|
334
347
|
postData: postData,
|
335
348
|
productType: productType,
|
336
349
|
clientUniqueKeyList: clientUniqueKeyList,
|
337
|
-
accountRegDisabled: !
|
350
|
+
accountRegDisabled: !currentLoginTypeList.includes('account-reg'),
|
338
351
|
onSuccess: function onSuccess() {
|
339
352
|
return onLoginSuccess();
|
340
353
|
}
|
@@ -349,7 +362,13 @@ var Auth = function Auth(_ref) {
|
|
349
362
|
}
|
350
363
|
})
|
351
364
|
})]
|
352
|
-
})
|
365
|
+
}), /*#__PURE__*/_jsx("div", {
|
366
|
+
className: "callWechat",
|
367
|
+
onClick: onCallWechat
|
368
|
+
}), /*#__PURE__*/_jsx("div", {
|
369
|
+
className: "callAccount",
|
370
|
+
onClick: onCallAccount
|
371
|
+
})]
|
353
372
|
});
|
354
373
|
};
|
355
374
|
export default Auth;
|
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
3
3
|
import styled from 'styled-components';
|
4
4
|
export default {
|
5
|
-
AuthQrLogin: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-tabs-tab-btn{\n .anticon{\n margin-right: 6px;\n }\n }\n .weQrUrl{\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .qr{\n position: relative;\n display: block;\n margin: 12px auto 0;\n width: 230px;\n height: 230px;\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n &.qrAlipay{\n border: 3px solid #1677ff;\n }\n .reTry{\n position: absolute;\n z-index: 100;\n left: 0;\n top: 0;\n width: 100%;\n font-size: 80px;\n background-color: rgba( 255, 255, 255, 0.95 );\n text-align: center;\n line-height: 210px;\n height: 100%;\n a{\n display: block;\n }\n }\n }\n .alt{\n padding: 10px 0 0;\n color: #999;\n text-align: center;\n }\n .altWeb{\n padding: 16px 0 0;\n max-width: 300px;\n margin: 0 auto;\n .titles{\n text-align: center;\n font-weight: bold;\n }\n ul{\n margin: 0 10px;\n }\n\n }\n .percent{\n width: 100%;\n position: absolute;\n overflow: hidden;\n left: 0;\n bottom: 0;\n .warp{\n height: 4px;\n background-color: #1677ff;\n transition: all 1.6s ease-in-out;\n -webkit-transition: all 1.6s ease-in-out;\n }\n }\n "]))),
|
5
|
+
AuthQrLogin: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .ant-tabs-tab-btn{\n .anticon{\n margin-right: 6px;\n }\n }\n .weQrUrl{\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .qr{\n position: relative;\n display: block;\n margin: 12px auto 0;\n width: 230px;\n height: 230px;\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n &.qrAlipay{\n border: 3px solid #1677ff;\n }\n .reTry{\n position: absolute;\n z-index: 100;\n left: 0;\n top: 0;\n width: 100%;\n font-size: 80px;\n background-color: rgba( 255, 255, 255, 0.95 );\n text-align: center;\n line-height: 210px;\n height: 100%;\n a{\n display: block;\n }\n }\n }\n .alt{\n padding: 10px 0 0;\n color: #999;\n text-align: center;\n }\n .altWeb{\n padding: 16px 0 0;\n max-width: 300px;\n margin: 0 auto;\n .titles{\n text-align: center;\n font-weight: bold;\n }\n ul{\n margin: 0 10px;\n }\n\n }\n .percent{\n width: 100%;\n position: absolute;\n overflow: hidden;\n left: 0;\n bottom: 0;\n .warp{\n height: 4px;\n background-color: #1677ff;\n transition: all 1.6s ease-in-out;\n -webkit-transition: all 1.6s ease-in-out;\n }\n }\n\n .callWechat{\n position: absolute;\n left: 0;\n bottom: 0;\n background: #F6F6F6;\n width: 4px;\n height: 4px;\n }\n .callAccount{\n position: absolute;\n right: 0;\n bottom: 0;\n background: #F6F6F6;\n width: 4px;\n height: 4px;\n }\n\n "]))),
|
6
6
|
LoginForm: styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0 auto;\n padding: 0 0 5px 0 ;\n background-color: rgba(255, 255, 255, 0.75 );\n border-radius: 6px;\n "]))),
|
7
7
|
WebTitle: styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-weight: normal;\n font-size: 22px;\n text-align: center;\n padding: 0;\n margin: 6px 0 0 0;\n line-height: 1em;\n span{\n display: inline-block;\n padding-left: 5px;\n font-weight: lighter;\n font-size: 16px;\n }\n "]))),
|
8
8
|
WeQrUrlBox: styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-height: 240px !important;\n "])))
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './home.less';
|
3
|
+
interface Props {
|
4
|
+
apiUrl: string;
|
5
|
+
env?: Global.Env;
|
6
|
+
notVip: boolean;
|
7
|
+
onMenu: (key: string) => void;
|
8
|
+
canPublish?: boolean;
|
9
|
+
}
|
10
|
+
declare const VideoPublishAccountManageHomePage: React.FC<Props>;
|
11
|
+
export default VideoPublishAccountManageHomePage;
|
@@ -0,0 +1,243 @@
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
2
|
+
import React, { useState } from 'react';
|
3
|
+
import { Button, Divider, Empty, Form, Input, Result, Space } from 'antd';
|
4
|
+
import "./home.less";
|
5
|
+
import { VideoPlatform } from "../..";
|
6
|
+
import HomePageAccountList from "./list";
|
7
|
+
import Time from "../../UI/Time";
|
8
|
+
import Tool from "../../lib/Tool";
|
9
|
+
import openChrome from "../../lib/openChrome";
|
10
|
+
import AccountManageSettingConfig from "../../lib/accountManageSettingConfig";
|
11
|
+
import IPhone from "../../phone";
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
|
+
var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePage(_ref) {
|
16
|
+
var apiUrl = _ref.apiUrl,
|
17
|
+
env = _ref.env,
|
18
|
+
notVip = _ref.notVip,
|
19
|
+
onMenu = _ref.onMenu,
|
20
|
+
canPublish = _ref.canPublish;
|
21
|
+
var _useState = useState({
|
22
|
+
isBan: false,
|
23
|
+
videoFromFolder: "",
|
24
|
+
id: 0,
|
25
|
+
userId: 0,
|
26
|
+
platform: 'douyin',
|
27
|
+
groupId: 0,
|
28
|
+
uniqueId: '',
|
29
|
+
accountId: '',
|
30
|
+
avatar: '',
|
31
|
+
bindPhone: '',
|
32
|
+
groupName: "",
|
33
|
+
nicknameRemark: "",
|
34
|
+
nickname: '',
|
35
|
+
signature: '',
|
36
|
+
isLoginValid: false,
|
37
|
+
followerCount: 0,
|
38
|
+
followingCount: 0,
|
39
|
+
favoritedCount: 0,
|
40
|
+
videoCount: 0,
|
41
|
+
created: 0,
|
42
|
+
updated: 0,
|
43
|
+
chromeProfileName: '',
|
44
|
+
enabledActiveAccountMode: true,
|
45
|
+
proxyInfo: {}
|
46
|
+
}),
|
47
|
+
_useState2 = _slicedToArray(_useState, 2),
|
48
|
+
accountDetail = _useState2[0],
|
49
|
+
setAccountDetail = _useState2[1];
|
50
|
+
var items = [{
|
51
|
+
key: 'platform',
|
52
|
+
label: '平台',
|
53
|
+
children: /*#__PURE__*/_jsx(VideoPlatform, {
|
54
|
+
platform: accountDetail.platform,
|
55
|
+
showName: true
|
56
|
+
})
|
57
|
+
}, {
|
58
|
+
key: 'bindPhone',
|
59
|
+
label: '手机',
|
60
|
+
children: accountDetail.bindPhone
|
61
|
+
}, {
|
62
|
+
key: 'followerCount',
|
63
|
+
label: '粉丝',
|
64
|
+
children: accountDetail.followerCount
|
65
|
+
}, {
|
66
|
+
key: 'followingCount',
|
67
|
+
label: '关注',
|
68
|
+
children: accountDetail.followingCount
|
69
|
+
}, {
|
70
|
+
key: 'favoritedCount',
|
71
|
+
label: '收藏',
|
72
|
+
children: accountDetail.favoritedCount
|
73
|
+
}, {
|
74
|
+
key: 'videoCount',
|
75
|
+
label: '视频数',
|
76
|
+
children: accountDetail.videoCount
|
77
|
+
}, {
|
78
|
+
key: 'created',
|
79
|
+
label: '初次登录',
|
80
|
+
children: /*#__PURE__*/_jsx(Time, {
|
81
|
+
time: accountDetail.created
|
82
|
+
})
|
83
|
+
}, {
|
84
|
+
key: 'updated',
|
85
|
+
label: '最后更新',
|
86
|
+
children: /*#__PURE__*/_jsx(Time, {
|
87
|
+
time: accountDetail.updated
|
88
|
+
})
|
89
|
+
}, {
|
90
|
+
key: 'signature',
|
91
|
+
label: '个性签名',
|
92
|
+
children: accountDetail.signature
|
93
|
+
}];
|
94
|
+
var _useState3 = useState([]),
|
95
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
96
|
+
openMenuItems = _useState4[0],
|
97
|
+
setOpenMenuItems = _useState4[1];
|
98
|
+
var onOpen = function onOpen(key) {
|
99
|
+
// window.getBridge()?.openVideoAccountBrowser(
|
100
|
+
// accountDetail.platform,
|
101
|
+
// '',
|
102
|
+
// accountDetail.accountId,
|
103
|
+
// url,
|
104
|
+
// accountDetail.proxyInfo,
|
105
|
+
// );
|
106
|
+
var settingConfig = AccountManageSettingConfig();
|
107
|
+
var openUrl = '';
|
108
|
+
switch (key) {
|
109
|
+
case 'douyin-create':
|
110
|
+
openUrl = 'https://creator.douyin.com/creator-micro/content/manage';
|
111
|
+
break;
|
112
|
+
case 'kuaishou-create':
|
113
|
+
openUrl = 'https://cp.kuaishou.com/article/manage/video';
|
114
|
+
break;
|
115
|
+
}
|
116
|
+
openChrome({
|
117
|
+
action: 'view',
|
118
|
+
platform: accountDetail.platform,
|
119
|
+
platformAccountId: accountDetail.accountId,
|
120
|
+
nickname: accountDetail.nickname,
|
121
|
+
chromeProfileName: accountDetail.chromeProfileName,
|
122
|
+
taskId: 0,
|
123
|
+
url: openUrl,
|
124
|
+
proxyInfo: accountDetail.proxyInfo,
|
125
|
+
isOpen: true
|
126
|
+
}, false, env);
|
127
|
+
Tool.toast('正在打开浏览器, 请稍等...', 12);
|
128
|
+
};
|
129
|
+
var onOpenMenuItems = function onOpenMenuItems(platform) {
|
130
|
+
switch (platform) {
|
131
|
+
case 'douyin':
|
132
|
+
setOpenMenuItems([{
|
133
|
+
label: '创作者中心(发视频)',
|
134
|
+
key: 'douyin-create'
|
135
|
+
}]);
|
136
|
+
break;
|
137
|
+
case 'kuaishou':
|
138
|
+
setOpenMenuItems([{
|
139
|
+
label: '快手-创作者中心',
|
140
|
+
key: 'kuaishou-create'
|
141
|
+
}]);
|
142
|
+
break;
|
143
|
+
case 'tiktok':
|
144
|
+
setOpenMenuItems([{
|
145
|
+
label: 'Tiktok',
|
146
|
+
key: 'https://www.tiktok.com/'
|
147
|
+
}]);
|
148
|
+
break;
|
149
|
+
}
|
150
|
+
};
|
151
|
+
var MainKeyList = [
|
152
|
+
// 主屏幕 重启 回车键 打开键盘 复制 粘贴 剪切 全选 删除
|
153
|
+
{
|
154
|
+
command: 'main-screen',
|
155
|
+
label: '主屏幕'
|
156
|
+
}, {
|
157
|
+
command: 'reboot',
|
158
|
+
label: '重启'
|
159
|
+
}, {
|
160
|
+
command: 'keybo',
|
161
|
+
label: '打开键盘'
|
162
|
+
}, {
|
163
|
+
command: 'copy',
|
164
|
+
label: '复制'
|
165
|
+
}, {
|
166
|
+
command: 'paste',
|
167
|
+
label: '粘贴'
|
168
|
+
}, {
|
169
|
+
command: 'cut',
|
170
|
+
label: '剪切'
|
171
|
+
}, {
|
172
|
+
command: 'enter',
|
173
|
+
label: '回车键'
|
174
|
+
}, {
|
175
|
+
command: 'select-all',
|
176
|
+
label: '全选'
|
177
|
+
}, {
|
178
|
+
command: 'delete',
|
179
|
+
label: '删除'
|
180
|
+
}];
|
181
|
+
return /*#__PURE__*/_jsxs("div", {
|
182
|
+
className: "phonePublishHome",
|
183
|
+
children: [/*#__PURE__*/_jsx(HomePageAccountList, {
|
184
|
+
apiUrl: apiUrl,
|
185
|
+
env: env,
|
186
|
+
notVip: notVip,
|
187
|
+
currentAccountDetail: accountDetail,
|
188
|
+
onListData: function onListData(list) {
|
189
|
+
// accountListDataRef.current = list;
|
190
|
+
// setAccountListData( list )
|
191
|
+
},
|
192
|
+
onMenu: onMenu,
|
193
|
+
onCurrent: function onCurrent(detail) {
|
194
|
+
setAccountDetail(detail);
|
195
|
+
onOpenMenuItems(detail.platform);
|
196
|
+
}
|
197
|
+
}), /*#__PURE__*/_jsx("div", {
|
198
|
+
className: "contents",
|
199
|
+
children: accountDetail.id <= 0 ? canPublish ? /*#__PURE__*/_jsx(Empty, {
|
200
|
+
description: "\u8BF7\u9009\u62E9\u8D26\u53F7",
|
201
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE
|
202
|
+
}) : /*#__PURE__*/_jsx(Result, {
|
203
|
+
status: "403",
|
204
|
+
title: "\u6CA1\u6709\u81EA\u52A8\u53D1\u5E03\u6743\u9650\uFF0C\u8054\u7CFB\u4EE3\u7406\u8D2D\u4E70\u6FC0\u6D3B\u7801"
|
205
|
+
// title="下一版本,即将发布"
|
206
|
+
// subTitle="如有需要,请联系管理员开通"
|
207
|
+
,
|
208
|
+
extra: [/*#__PURE__*/_jsx(_Fragment, {})]
|
209
|
+
}) : /*#__PURE__*/_jsxs("div", {
|
210
|
+
className: "phoneContents",
|
211
|
+
children: [/*#__PURE__*/_jsx("div", {
|
212
|
+
className: "iPhone",
|
213
|
+
children: /*#__PURE__*/_jsx(IPhone, {})
|
214
|
+
}), /*#__PURE__*/_jsxs("div", {
|
215
|
+
className: "controlBox",
|
216
|
+
children: [/*#__PURE__*/_jsx(Divider, {
|
217
|
+
orientation: "left",
|
218
|
+
children: "\u70ED\u952E"
|
219
|
+
}), /*#__PURE__*/_jsx(Space, {
|
220
|
+
wrap: true,
|
221
|
+
children: MainKeyList.map(function (item, i) {
|
222
|
+
return /*#__PURE__*/_jsx(Button, {
|
223
|
+
children: item.label
|
224
|
+
}, item.command);
|
225
|
+
})
|
226
|
+
}), /*#__PURE__*/_jsx(Divider, {
|
227
|
+
orientation: "left",
|
228
|
+
children: "\u7535\u8111\u53D1\u9001\u6587\u672C\u624B\u673A"
|
229
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
230
|
+
children: /*#__PURE__*/_jsx(Input.TextArea, {
|
231
|
+
autoSize: {
|
232
|
+
minRows: 3
|
233
|
+
}
|
234
|
+
})
|
235
|
+
}), /*#__PURE__*/_jsx(Button, {
|
236
|
+
children: "\u53D1\u9001\u5230\u624B\u673A"
|
237
|
+
})]
|
238
|
+
})]
|
239
|
+
})
|
240
|
+
})]
|
241
|
+
});
|
242
|
+
};
|
243
|
+
export default VideoPublishAccountManageHomePage;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
.phonePublishHome{
|
2
|
+
margin: -12px 0 0 0;
|
3
|
+
padding: 0;
|
4
|
+
display: flex;
|
5
|
+
flex-direction: row;
|
6
|
+
height: 100%;
|
7
|
+
|
8
|
+
.homeIcon{
|
9
|
+
margin-left: 12px;
|
10
|
+
}
|
11
|
+
.contents{
|
12
|
+
flex: 2;
|
13
|
+
padding: 8px 12px 12px;
|
14
|
+
overflow: hidden;
|
15
|
+
height: 100%;
|
16
|
+
.phoneContents{
|
17
|
+
display: flex;
|
18
|
+
flex-direction: row;
|
19
|
+
.iPhone{
|
20
|
+
width: 375px;
|
21
|
+
}
|
22
|
+
.controlBox{
|
23
|
+
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import "./index.less";
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
+
var VideoPublishAccountManagePage = function VideoPublishAccountManagePage() {
|
5
|
+
// const MenuAllList = [
|
6
|
+
// {
|
7
|
+
// key: 'long-video-sales-create',
|
8
|
+
// icon: <VideoCameraAddOutlined />,
|
9
|
+
// label: '账号管理',
|
10
|
+
// children: (
|
11
|
+
// <AccountManageHomePage
|
12
|
+
// />
|
13
|
+
// ),
|
14
|
+
// },
|
15
|
+
//
|
16
|
+
// ];
|
17
|
+
//
|
18
|
+
// const [ menuList, setMenuList ] = useState<MenuList[]>([]);
|
19
|
+
//
|
20
|
+
// const [ activeKey, setActiveKey ] = useState('');
|
21
|
+
// const [ tabsItems, setTabsItems ] = useState<TabsProps['items']>([]);
|
22
|
+
//
|
23
|
+
// const onMenu = ( key: string ) => {
|
24
|
+
// setActiveKey( key );
|
25
|
+
// }
|
26
|
+
//
|
27
|
+
// const onInit = () => {
|
28
|
+
// const tabsItems: TabsProps['items'] = [];
|
29
|
+
// const menuList: MenuList[] = [];
|
30
|
+
// MenuAllList.forEach( items => {
|
31
|
+
//
|
32
|
+
// tabsItems.push( items );
|
33
|
+
//
|
34
|
+
// menuList.push({
|
35
|
+
// key: items.key,
|
36
|
+
// icon: items.icon,
|
37
|
+
// label: items.label,
|
38
|
+
// });
|
39
|
+
// });
|
40
|
+
//
|
41
|
+
//
|
42
|
+
// setTabsItems([...tabsItems]);
|
43
|
+
// setMenuList([...menuList]);
|
44
|
+
//
|
45
|
+
// setActiveKey( menuList[0]?.key || '' );
|
46
|
+
// }
|
47
|
+
//
|
48
|
+
// useEffect(() => {
|
49
|
+
// onInit();
|
50
|
+
// }, []);
|
51
|
+
|
52
|
+
return /*#__PURE__*/_jsx("div", {
|
53
|
+
className: "videoPublishAccountManage"
|
54
|
+
});
|
55
|
+
};
|
56
|
+
export default VideoPublishAccountManagePage;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
.videoPublishAccountManage{
|
2
|
+
padding: 0;
|
3
|
+
display: flex;
|
4
|
+
flex-direction: row;
|
5
|
+
height: 100%;
|
6
|
+
|
7
|
+
.menu{
|
8
|
+
width: 180px;
|
9
|
+
margin: 0 0 0 0;
|
10
|
+
padding: 0 10px 0 0;
|
11
|
+
border-right: 1px solid #E8E8E8;
|
12
|
+
:global{
|
13
|
+
.ant-menu-light{
|
14
|
+
background-color: transparent !important;
|
15
|
+
border-right: none !important;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.pageContents{
|
21
|
+
flex: 1;
|
22
|
+
padding: 12px 8px;
|
23
|
+
overflow-y: auto;
|
24
|
+
:global{
|
25
|
+
.my-tabs{
|
26
|
+
width: 100%;
|
27
|
+
> .ant-tabs-nav{
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
//}
|
33
|
+
//.contents{
|
34
|
+
// flex: 2;
|
35
|
+
// padding: 8px 12px 12px;
|
36
|
+
// overflow: hidden;
|
37
|
+
// border-bottom-left-radius: 6px;
|
38
|
+
// border-bottom-right-radius: 6px;
|
39
|
+
// height: 100%;
|
40
|
+
//
|
41
|
+
// :global{
|
42
|
+
// .ant-tabs-card >.ant-tabs-nav .ant-tabs-tab{
|
43
|
+
// padding: 1px 10px;
|
44
|
+
// }
|
45
|
+
// .ant-tabs-top >.ant-tabs-nav{
|
46
|
+
// margin: 0;
|
47
|
+
// }
|
48
|
+
// .ant-tabs-content-holder{
|
49
|
+
// background-color: #FFF;
|
50
|
+
// }
|
51
|
+
// .ant-tabs-content{
|
52
|
+
// height: 100%;
|
53
|
+
// }
|
54
|
+
// .ant-tabs-tabpane{
|
55
|
+
// height: 100%;
|
56
|
+
// }
|
57
|
+
// }
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './list.less';
|
3
|
+
interface Props {
|
4
|
+
apiUrl: string;
|
5
|
+
env?: Global.Env;
|
6
|
+
notVip: boolean;
|
7
|
+
currentAccountDetail: VideoPublishVideoAccount.List;
|
8
|
+
onMenu: (key: string) => void;
|
9
|
+
disabledDel?: boolean;
|
10
|
+
disabledAdd?: boolean;
|
11
|
+
disabledAddProxy?: boolean;
|
12
|
+
addonButton?: React.ReactNode;
|
13
|
+
onListData: (list: VideoPublishVideoAccount.List[]) => void;
|
14
|
+
onCurrent: (detail: VideoPublishVideoAccount.List) => void;
|
15
|
+
}
|
16
|
+
declare const HomePageAccountList: React.FC<Props>;
|
17
|
+
export default HomePageAccountList;
|