component-shipinlv 1.0.35 → 1.0.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/dist/UI/LayoutContent.d.ts +18 -0
  2. package/dist/UI/LayoutContent.js +73 -0
  3. package/dist/UI/LayoutContent.less +60 -0
  4. package/dist/UI/PageContentWarp.less +1 -1
  5. package/dist/UI/PageLoading.d.ts +3 -0
  6. package/dist/UI/PageLoading.js +11 -0
  7. package/dist/UI/PageLoading.less +7 -0
  8. package/dist/VideoPublish/account-manage/home.d.ts +9 -0
  9. package/dist/VideoPublish/account-manage/home.js +170 -0
  10. package/dist/VideoPublish/account-manage/home.less +58 -0
  11. package/dist/VideoPublish/account-manage/index.d.ts +3 -0
  12. package/dist/VideoPublish/account-manage/index.js +56 -0
  13. package/dist/VideoPublish/account-manage/index.less +59 -0
  14. package/dist/VideoPublish/account-manage/list.d.ts +10 -0
  15. package/dist/VideoPublish/account-manage/list.js +428 -0
  16. package/dist/VideoPublish/account-manage/list.less +154 -0
  17. package/dist/VideoPublish/account-manage/setting/index.d.ts +6 -0
  18. package/dist/VideoPublish/account-manage/setting/index.js +69 -0
  19. package/dist/VideoPublish/account-manage/setting/index.less +9 -0
  20. package/dist/VideoPublish/create-task/base/index.d.ts +10 -0
  21. package/dist/VideoPublish/create-task/base/index.js +315 -0
  22. package/dist/VideoPublish/create-task/base/index.less +64 -0
  23. package/dist/VideoPublish/create-task/index.js +294 -0
  24. package/dist/VideoPublish/index.d.ts +1 -0
  25. package/dist/VideoPublish/index.js +40 -11
  26. package/dist/VideoPublish/log/index.d.ts +2 -0
  27. package/dist/VideoPublish/log/index.js +122 -0
  28. package/dist/VideoPublish/log/index.less +83 -0
  29. package/dist/VideoPublish/video-account/query.js +1 -0
  30. package/dist/component/markdown/github-markdown-light.less +1102 -0
  31. package/dist/component/markdown/index.d.ts +8 -0
  32. package/dist/component/markdown/index.js +69 -0
  33. package/dist/component/markdown/index.less +55 -0
  34. package/dist/component/video-platform/logo.d.ts +1 -0
  35. package/dist/component/video-platform/logo.js +6 -0
  36. package/dist/config/apiUrls.js +1 -1
  37. package/dist/index.d.ts +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/lib/accountManageSettingConfig.d.ts +2 -0
  40. package/dist/lib/accountManageSettingConfig.js +15 -0
  41. package/dist/lib/event.d.ts +7 -0
  42. package/dist/lib/event.js +59 -0
  43. package/dist/lib/getLocalUserInfo.d.ts +2 -0
  44. package/dist/lib/getLocalUserInfo.js +19 -0
  45. package/dist/lib/math.d.ts +38 -0
  46. package/dist/lib/math.js +146 -0
  47. package/dist/lib/sleep.d.ts +2 -0
  48. package/dist/lib/sleep.js +23 -0
  49. package/dist/lib/store.d.ts +7 -0
  50. package/dist/lib/store.js +36 -0
  51. package/dist/lib/toast.d.ts +2 -0
  52. package/dist/lib/toast.js +8 -0
  53. package/dist/lib/toastError.d.ts +2 -0
  54. package/dist/lib/toastError.js +8 -0
  55. package/dist/service/api/VideoPublishVideoAccountController.d.ts +13 -0
  56. package/dist/service/api/VideoPublishVideoAccountController.js +140 -0
  57. package/dist/types/PublishNpm.d.ts +36 -0
  58. package/dist/types/PublishNpm.js +0 -0
  59. package/dist/types/PublishTaskPlan.d.ts +41 -0
  60. package/dist/types/PublishTaskPlan.js +0 -0
  61. package/dist/types/User.d.ts +83 -0
  62. package/dist/types/VideoPublish.d.ts +4 -2
  63. package/dist/types/VideoPublishLog.d.ts +32 -0
  64. package/dist/types/VideoPublishLog.js +0 -0
  65. package/dist/typings/VideoPublishAccountManageSetting.d.ts +5 -0
  66. package/dist/typings/VideoPublishAccountManageSetting.js +0 -0
  67. package/dist/typings/VideoPublishVideoAccount.d.ts +69 -0
  68. package/dist/typings/VideoPublishVideoAccount.js +0 -0
  69. package/dist/window.d.ts +9 -0
  70. package/package.json +2 -1
  71. package/dist/VideoPublish/creat-task/index.js +0 -569
  72. /package/dist/VideoPublish/{creat-task → create-task}/hour-enabled.d.ts +0 -0
  73. /package/dist/VideoPublish/{creat-task → create-task}/hour-enabled.js +0 -0
  74. /package/dist/VideoPublish/{creat-task → create-task}/hour-enabled.less +0 -0
  75. /package/dist/VideoPublish/{creat-task → create-task}/index.css.d.ts +0 -0
  76. /package/dist/VideoPublish/{creat-task → create-task}/index.css.js +0 -0
  77. /package/dist/VideoPublish/{creat-task → create-task}/index.d.ts +0 -0
  78. /package/dist/VideoPublish/{creat-task → create-task}/select-list.css.d.ts +0 -0
  79. /package/dist/VideoPublish/{creat-task → create-task}/select-list.css.js +0 -0
  80. /package/dist/VideoPublish/{creat-task → create-task}/select-list.d.ts +0 -0
  81. /package/dist/VideoPublish/{creat-task → create-task}/select-list.js +0 -0
  82. /package/dist/VideoPublish/{creat-task → create-task}/task-list.css.d.ts +0 -0
  83. /package/dist/VideoPublish/{creat-task → create-task}/task-list.css.js +0 -0
  84. /package/dist/VideoPublish/{creat-task → create-task}/task-list.d.ts +0 -0
  85. /package/dist/VideoPublish/{creat-task → create-task}/task-list.js +0 -0
@@ -0,0 +1,428 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
4
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
+ import React, { useEffect, useState, useRef } from 'react';
6
+ import { Avatar, Button, Divider, Dropdown, Empty, Input, Popconfirm, Space, Tooltip } from 'antd';
7
+ import "./list.less";
8
+ import { PlusCircleOutlined, SearchOutlined, CloseOutlined } from '@ant-design/icons';
9
+ import { useRequest } from "@umijs/hooks";
10
+ import * as VideoPublishVideoAccountController from "../../service/api/VideoPublishVideoAccountController";
11
+ import PageContentWarp from "../../UI/PageContentWarp";
12
+ // import goAuth from "../../lib/goAuth";
13
+ import getLocalUserInfo from "../../lib/getLocalUserInfo";
14
+ import event from "../../lib/event";
15
+ import VideoPlatformLogo, { VideoPlatformList } from "../../component/video-platform/logo";
16
+ import toast from "../../lib/toast";
17
+ import Notification from "../../lib/notification";
18
+ import Money from "../../UI/Money";
19
+ import AccountManageSettingConfig from "../../lib/accountManageSettingConfig";
20
+ import VideoPlatform from "../../component/video-platform/logo";
21
+ import { jsx as _jsx } from "react/jsx-runtime";
22
+ import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ import { Fragment as _Fragment } from "react/jsx-runtime";
24
+ var HomePageAccountList = function HomePageAccountList(_ref) {
25
+ var apiUrl = _ref.apiUrl,
26
+ env = _ref.env,
27
+ _ref$onListData = _ref.onListData,
28
+ onListData = _ref$onListData === void 0 ? function () {} : _ref$onListData,
29
+ _ref$onCurrent = _ref.onCurrent,
30
+ onCurrent = _ref$onCurrent === void 0 ? function () {} : _ref$onCurrent;
31
+ var _useState = useState(getLocalUserInfo()),
32
+ _useState2 = _slicedToArray(_useState, 2),
33
+ userInfo = _useState2[0],
34
+ setUserInfo = _useState2[1];
35
+ var _useState3 = useState(0),
36
+ _useState4 = _slicedToArray(_useState3, 2),
37
+ currentId = _useState4[0],
38
+ setCurrentId = _useState4[1];
39
+ var _useState5 = useState(true),
40
+ _useState6 = _slicedToArray(_useState5, 2),
41
+ isOpen = _useState6[0],
42
+ setIsOpen = _useState6[1];
43
+ var _useState7 = useState([]),
44
+ _useState8 = _slicedToArray(_useState7, 2),
45
+ keywordList = _useState8[0],
46
+ setKeywordList = _useState8[1];
47
+ var _useState9 = useState(240),
48
+ _useState10 = _slicedToArray(_useState9, 2),
49
+ width = _useState10[0],
50
+ setWidth = _useState10[1];
51
+ var listDataRef = useRef([]);
52
+ var _useState11 = useState([]),
53
+ _useState12 = _slicedToArray(_useState11, 2),
54
+ platformMenuItems = _useState12[0],
55
+ setPlatformMenuItems = _useState12[1];
56
+ var _useState13 = useState(listDataRef.current),
57
+ _useState14 = _slicedToArray(_useState13, 2),
58
+ listData = _useState14[0],
59
+ setListData = _useState14[1];
60
+ var _useRequest = useRequest(function () {
61
+ return VideoPublishVideoAccountController.list({
62
+ current: 1,
63
+ pageSize: 100
64
+ }, {
65
+ env: env
66
+ });
67
+ }, {
68
+ manual: !userInfo.isLogin,
69
+ onSuccess: function onSuccess(result) {
70
+ listDataRef.current = result.list;
71
+ setListData(result.list);
72
+ onListData(result.list);
73
+ }
74
+ }),
75
+ loading = _useRequest.loading,
76
+ error = _useRequest.error,
77
+ run = _useRequest.run;
78
+ var _useRequest2 = useRequest(function (id) {
79
+ return VideoPublishVideoAccountController.del({
80
+ id: id
81
+ }, {
82
+ env: env
83
+ });
84
+ }, {
85
+ manual: true,
86
+ onSuccess: function onSuccess(result) {
87
+ var index = listDataRef.current.findIndex(function (item) {
88
+ return item.id == result.id;
89
+ });
90
+ if (index > -1) {
91
+ listDataRef.current.splice(index, 1);
92
+ }
93
+ setListData(_toConsumableArray(listDataRef.current));
94
+ onListData(_toConsumableArray(listDataRef.current));
95
+ }
96
+ }),
97
+ loadingDel = _useRequest2.loading,
98
+ runDel = _useRequest2.run;
99
+ var onCurrentId = function onCurrentId(id) {
100
+ if (id === currentId) {
101
+ setCurrentId(0);
102
+ onCurrent({
103
+ id: 0,
104
+ userId: 0,
105
+ platform: 'd',
106
+ groupId: 0,
107
+ uniqueId: 0,
108
+ accountId: '',
109
+ avatar: '',
110
+ bindPhone: '',
111
+ nickname: '',
112
+ signature: '',
113
+ isLoginValid: false,
114
+ followerCount: 0,
115
+ followingCount: 0,
116
+ favoritedCount: 0,
117
+ videoCount: 0,
118
+ created: 0,
119
+ updated: 0
120
+ });
121
+ return;
122
+ }
123
+ var index = listDataRef.current.findIndex(function (item) {
124
+ return item.id === id;
125
+ });
126
+ setCurrentId(id);
127
+ onCurrent(listDataRef.current[index]);
128
+ };
129
+ var _useRequest3 = useRequest(function (data) {
130
+ return VideoPublishVideoAccountController.create(data);
131
+ }, {
132
+ manual: true,
133
+ onSuccess: function onSuccess(result) {
134
+ toast('已经添加账户');
135
+ onSearch();
136
+ }
137
+ }),
138
+ loadingCreate = _useRequest3.loading,
139
+ runCreate = _useRequest3.run;
140
+ var onSearch = function onSearch(keyword) {
141
+ var _keyword$replace;
142
+ var list = (keyword === null || keyword === void 0 || (_keyword$replace = keyword.replace(/\s+/g, '')) === null || _keyword$replace === void 0 ? void 0 : _keyword$replace.split('')) || [];
143
+ setKeywordList(list);
144
+ };
145
+ var onAdd = /*#__PURE__*/function () {
146
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(platform) {
147
+ var _window$bridge;
148
+ var settingConfig, addAccountResult, postData;
149
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
150
+ while (1) switch (_context.prev = _context.next) {
151
+ case 0:
152
+ // if ( ! userInfo.isLogin ){
153
+ // const authResult = await goAuth()?.catch( err => {
154
+ //
155
+ // });
156
+ // if( ! authResult ){
157
+ // console.log('登录失败' );
158
+ // return;
159
+ // }
160
+ // }
161
+
162
+ console.log('onAdd:', platform);
163
+ toast('正在启动浏览器,请扫码登录', 6);
164
+
165
+ // const platformName = platform ; // == 'kuaishou' ? 'kwai' : '';
166
+ // const eventName = `amz-${ platform }-publish--add-account`;
167
+ // console.log('eventName:', eventName );
168
+ // window.bridge.ipcRenderer.sendMessage( eventName ); // 添加抖音账号
169
+ settingConfig = AccountManageSettingConfig();
170
+ _context.next = 5;
171
+ return (_window$bridge = window.bridge()) === null || _window$bridge === void 0 ? void 0 : _window$bridge.ipcRenderer.invoke('shipinlv-video-account-add', platform, settingConfig.isChromeOpen).catch(function (err) {
172
+ Notification.notificationError('获取账号信息错误' + ((err === null || err === void 0 ? void 0 : err.message) || JSON.stringify(err)));
173
+ });
174
+ case 5:
175
+ addAccountResult = _context.sent;
176
+ if (addAccountResult) {
177
+ _context.next = 8;
178
+ break;
179
+ }
180
+ return _context.abrupt("return");
181
+ case 8:
182
+ console.log('addAccountResult:', addAccountResult);
183
+ postData = {
184
+ detail: addAccountResult
185
+ };
186
+ runCreate(postData);
187
+ case 11:
188
+ case "end":
189
+ return _context.stop();
190
+ }
191
+ }, _callee);
192
+ }));
193
+ return function onAdd(_x) {
194
+ return _ref2.apply(this, arguments);
195
+ };
196
+ }();
197
+ useEffect(function () {
198
+ var platformMenuItems = [];
199
+ VideoPlatformList.forEach(function (item) {
200
+ platformMenuItems.push({
201
+ label: item.name,
202
+ key: item.platform,
203
+ disabled: item.disabled,
204
+ icon: /*#__PURE__*/_jsx(VideoPlatform, {
205
+ platform: item.platform,
206
+ showName: false
207
+ })
208
+ });
209
+ });
210
+ setPlatformMenuItems(platformMenuItems);
211
+ }, []);
212
+ var addButton = function addButton() {
213
+ return /*#__PURE__*/_jsx("div", {
214
+ className: "addButton",
215
+ children: /*#__PURE__*/_jsx(Dropdown, {
216
+ placement: "top",
217
+ menu: {
218
+ items: platformMenuItems,
219
+ onClick: function onClick(e) {
220
+ return onAdd(e.key);
221
+ }
222
+ },
223
+ children: /*#__PURE__*/_jsx(Button, {
224
+ icon: /*#__PURE__*/_jsx(PlusCircleOutlined, {}),
225
+ type: "primary",
226
+ children: "\u6DFB\u52A0\u89C6\u9891\u8D26\u53F7"
227
+ })
228
+ })
229
+ });
230
+ };
231
+ var onDel = function onDel(id) {
232
+ runDel(id);
233
+ };
234
+ useEffect(function () {
235
+ // 更新列表
236
+ event.on('account-list-update', function () {
237
+ run();
238
+ });
239
+ setInterval(function () {
240
+ run();
241
+ }, 5 * 60 * 1e3);
242
+ }, []);
243
+ useEffect(function () {
244
+ event.on('login', function () {
245
+ setUserInfo(getLocalUserInfo());
246
+ run();
247
+ });
248
+ event.on('logout', function () {
249
+ setUserInfo(getLocalUserInfo());
250
+ });
251
+
252
+ // window.bridge.ipcRenderer.on("amz-douyin-publish--account", (data: PublishNpm.AccountResult) => {
253
+ // console.log("账号日志 douyin: ", data);
254
+ // onAccountLogin( data );
255
+ // });
256
+ // window.bridge.ipcRenderer.on("amz-douyin-publish--log", (str: string) => {
257
+ // console.log("发布视频日志: ", str);
258
+ // });
259
+ // window.bridge.ipcRenderer.on("amz-douyin-publish--err", (error: PublishNpm.IpcRendererError ) => {
260
+ // console.log("发布视频错误日志: ", error );
261
+ // Notification.notificationError( '抖音-出现问题' , error.msg )
262
+ // });
263
+ //
264
+ // window.bridge.ipcRenderer.on("amz-kwai-publish--account", (data: PublishNpm.AccountResult) => {
265
+ // console.log("账号日志 kwai : ", data);
266
+ // onAccountLogin( data );
267
+ // });
268
+ // window.bridge.ipcRenderer.on("amz-kwai-publish--log", (str: string) => {
269
+ // console.log("发布视频日志: ", str)
270
+ // });
271
+ // window.bridge.ipcRenderer.on("amz-kwai-publish--err", (error: PublishNpm.IpcRendererError ) => {
272
+ // console.log("发布视频错误日志: ", error )
273
+ // });
274
+ }, []);
275
+ var loginValidAmount = listData.filter(function (item) {
276
+ return item.isLoginValid;
277
+ }).length;
278
+ var notLoginValidAmount = listData.filter(function (item) {
279
+ return !item.isLoginValid;
280
+ }).length;
281
+ return /*#__PURE__*/_jsx("div", {
282
+ className: "videoPublishAccountList",
283
+ style: {
284
+ width: width
285
+ },
286
+ children: userInfo.isLogin ? /*#__PURE__*/_jsxs(_Fragment, {
287
+ children: [/*#__PURE__*/_jsx("div", {
288
+ className: "search",
289
+ children: isOpen ? /*#__PURE__*/_jsxs(Space, {
290
+ size: 3,
291
+ children: [/*#__PURE__*/_jsx(Input, {
292
+ size: "small",
293
+ placeholder: "\u641C\u7D22\u8D26\u53F7\u540D\u79F0",
294
+ allowClear: true,
295
+ onChange: function onChange(e) {
296
+ onSearch(e.target.value);
297
+ }
298
+ }), /*#__PURE__*/_jsx(Divider, {
299
+ type: "vertical"
300
+ }), /*#__PURE__*/_jsx("a", {
301
+ className: "onList",
302
+ onClick: function onClick() {
303
+ return run();
304
+ },
305
+ children: /*#__PURE__*/_jsx(SearchOutlined, {})
306
+ })]
307
+ }) : /*#__PURE__*/_jsx("a", {
308
+ className: "onList",
309
+ onClick: function onClick() {
310
+ return run();
311
+ },
312
+ children: /*#__PURE__*/_jsx(SearchOutlined, {})
313
+ })
314
+ }), /*#__PURE__*/_jsxs(PageContentWarp, {
315
+ loading: loading,
316
+ error: error,
317
+ onReload: run,
318
+ className: "list ".concat(isOpen ? '' : "listMini"),
319
+ children: [listData.length > 0 && /*#__PURE__*/_jsx("section", {
320
+ children: listData.map(function (item, index) {
321
+ var shopName = [];
322
+ if (keywordList.length === 0) {
323
+ shopName.push(item.nickname);
324
+ } else {
325
+ var isSearchMatch = false;
326
+ item.nickname.split('').map(function (letter) {
327
+ if (keywordList.includes(letter)) {
328
+ isSearchMatch = true;
329
+ shopName.push( /*#__PURE__*/_jsx("span", {
330
+ className: "high",
331
+ children: letter
332
+ }, letter));
333
+ } else {
334
+ shopName.push(letter);
335
+ }
336
+ });
337
+ // 未搜索到
338
+ if (!isSearchMatch) {
339
+ return null;
340
+ }
341
+ }
342
+ return /*#__PURE__*/_jsxs("article", {
343
+ className: "".concat(item.isLoginValid ? "valid" : "invalid", " ").concat(currentId == item.id ? "active" : ''),
344
+ onClick: function onClick() {
345
+ return onCurrentId(item.id);
346
+ },
347
+ children: [/*#__PURE__*/_jsx("i", {
348
+ className: "index",
349
+ children: index + 1
350
+ }), /*#__PURE__*/_jsx(Popconfirm, {
351
+ title: "\u5220\u9664\u8D26\u6237",
352
+ description: "\u786E\u5B9A\u5220\u9664\u8D26\u6237\uFF1F\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u53D1\u5E03\u89C6\u9891\u4E86",
353
+ onConfirm: function onConfirm() {
354
+ return onDel(item.id);
355
+ },
356
+ children: /*#__PURE__*/_jsx("a", {
357
+ className: "del",
358
+ children: /*#__PURE__*/_jsx(CloseOutlined, {})
359
+ })
360
+ }), /*#__PURE__*/_jsxs("div", {
361
+ className: "avatar",
362
+ children: [/*#__PURE__*/_jsx(Avatar, {
363
+ className: "avatarUrl",
364
+ size: 46,
365
+ src: item.avatar || 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'
366
+ }), /*#__PURE__*/_jsx(Tooltip, {
367
+ title: item.isLoginValid ? '登录有效' : '登录失效',
368
+ children: /*#__PURE__*/_jsx("div", {
369
+ className: "isLoginValid"
370
+ })
371
+ })]
372
+ }), /*#__PURE__*/_jsxs("div", {
373
+ className: "shopName",
374
+ children: [/*#__PURE__*/_jsx(VideoPlatformLogo, {
375
+ platform: item.platform,
376
+ size: 14
377
+ }), shopName, /*#__PURE__*/_jsx("div", {
378
+ className: "uniqueId",
379
+ children: item.uniqueId
380
+ })]
381
+ })]
382
+ }, item.id);
383
+ })
384
+ }), listData.length == 0 && /*#__PURE__*/_jsxs("div", {
385
+ className: "empty",
386
+ children: [/*#__PURE__*/_jsx(Empty, {
387
+ description: "\u6682\u65E0\u7ED1\u5B9A\u8D26\u53F7",
388
+ image: Empty.PRESENTED_IMAGE_SIMPLE
389
+ }), addButton()]
390
+ })]
391
+ }), /*#__PURE__*/_jsxs("div", {
392
+ className: "submits",
393
+ children: [/*#__PURE__*/_jsx("div", {
394
+ className: "amount",
395
+ children: /*#__PURE__*/_jsx(Tooltip, {
396
+ title: /*#__PURE__*/_jsxs(_Fragment, {
397
+ children: ["\u672A\u767B\u5F55\uFF1A", notLoginValidAmount, " \u4E2A ", /*#__PURE__*/_jsx(Divider, {
398
+ type: "vertical"
399
+ }), " \u5DF2\u767B\u5F55 ", loginValidAmount, " \u4E2A"]
400
+ }),
401
+ children: /*#__PURE__*/_jsxs(Space, {
402
+ children: [/*#__PURE__*/_jsx("strong", {
403
+ className: "notLoginValid",
404
+ children: notLoginValidAmount
405
+ }), "/", /*#__PURE__*/_jsx("span", {
406
+ className: "loginValid",
407
+ children: /*#__PURE__*/_jsx(Money, {
408
+ pre: "",
409
+ value: loginValidAmount,
410
+ precision: 0,
411
+ end: "\u4E2A"
412
+ })
413
+ })]
414
+ })
415
+ })
416
+ }), listData.length > 0 && addButton()]
417
+ })]
418
+ }) : /*#__PURE__*/_jsxs(_Fragment, {
419
+ children: [/*#__PURE__*/_jsx("div", {
420
+ className: "list"
421
+ }), /*#__PURE__*/_jsx("div", {
422
+ className: "submits",
423
+ children: addButton()
424
+ })]
425
+ })
426
+ });
427
+ };
428
+ export default HomePageAccountList;
@@ -0,0 +1,154 @@
1
+ .videoPublishAccountList{
2
+ width: 200px;
3
+ display: flex;
4
+ flex-direction: column;
5
+ height: calc( 100vh - 56px - 28px );
6
+ border-right: 1px solid #E8E8E8;
7
+ position: relative;
8
+ transition: width 0.3s ease-in-out;
9
+
10
+ .search{
11
+ margin: 10px;
12
+ .onList{
13
+ color: #999;
14
+ font-size: 15px;
15
+ text-align: center;
16
+ display: block;
17
+ margin: 0 auto;
18
+ &:hover{
19
+ color: #722ed1;
20
+ }
21
+ }
22
+ }
23
+
24
+ .list{
25
+ flex: 2;
26
+ height: 100%; // calc(100vh - 10px);
27
+ overflow-y: auto;
28
+ .high{
29
+ color: #C00;
30
+ font-weight: bold;
31
+ }
32
+ .empty{
33
+ margin: 40% auto 0;
34
+ }
35
+ section{
36
+ padding: 5px;
37
+ article{
38
+ position: relative;
39
+ display: flex;
40
+ flex-direction: row;
41
+ cursor: pointer;
42
+ padding: 6px 10px;
43
+ margin: 3px 0;
44
+ border-radius: 5px;
45
+ .index{
46
+ position: absolute;
47
+ top: 10px;
48
+ right: 4px;
49
+ font-size: 12px;
50
+ font-style: normal;
51
+ opacity: 0.3;
52
+ }
53
+ .del{
54
+ position: absolute;
55
+ bottom: 7px;
56
+ right: 4px;
57
+ padding: 3px;
58
+ font-size: 12px;
59
+ color: #FFF;
60
+ border-radius: 3px;
61
+ background-color: #C00;
62
+ line-height: 1em;
63
+ display: none;
64
+ }
65
+ &:hover{
66
+ background-color: #dcf0f6;
67
+ .del{
68
+ display: inline-block;
69
+ }
70
+ }
71
+ &.active{
72
+ background-color: #b6e5f6;
73
+ color: #0063ed;
74
+ font-weight: bold;
75
+ }
76
+ &.valid{
77
+ .isLoginValid{
78
+ background-color: #00bc00;
79
+ }
80
+ .shopName{
81
+ color: #005a00;
82
+ }
83
+ }
84
+ &.invalid{
85
+ background-color: #e1e1e1;
86
+ .isLoginValid{
87
+ background-color: red;
88
+ }
89
+ .shopName{
90
+ color: #999;
91
+ font-weight: 300;
92
+ }
93
+ .avatarUrl{
94
+ opacity: 0.5;
95
+ filter: grayscale(100%);
96
+ }
97
+ }
98
+ .avatar{
99
+ position: relative;
100
+ width: 40px;
101
+ //box-shadow: 0 0 5px #EEE;
102
+ .isLoginValid{
103
+ position: absolute;
104
+ left: 35px;
105
+ top: 35px;
106
+ width: 8px;
107
+ height: 8px;
108
+ border-radius: 100px;
109
+ }
110
+ }
111
+ .shopName{
112
+ max-width: 150px;
113
+ color: #666;
114
+ display: inline-block;
115
+ text-overflow: ellipsis;
116
+ //line-height: 30px;
117
+ font-size: 14px;
118
+ padding: 4px 0 0 12px;
119
+ word-break: keep-all;
120
+ white-space: nowrap;
121
+ overflow: hidden;
122
+ }
123
+ .uniqueId{
124
+ padding: 3px 0 0;
125
+ font-size: 12px;
126
+ opacity: 0.6;
127
+ }
128
+ }
129
+ }
130
+ }
131
+ .submits{
132
+ box-shadow: 0 0 5px #EEE;
133
+ text-align: center;
134
+ padding: 12px 0 ;
135
+ display: flex;
136
+ margin: 0 12px 0 0;
137
+ flex-direction: row;
138
+ .amount{
139
+ flex: 2;
140
+ text-align: left;
141
+ font-size: 12px;
142
+ line-height: 32px;
143
+ .notLoginValid{
144
+ color: #C00;
145
+ }
146
+ .loginValid{
147
+ color: #00bc00;
148
+ }
149
+ }
150
+ }
151
+ .addButton{
152
+ text-align: center;
153
+ }
154
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface Props {
4
+ }
5
+ declare const AccountManageSettingPage: React.FC<Props>;
6
+ export default AccountManageSettingPage;
@@ -0,0 +1,69 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
+ import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
6
+ import React, { useEffect, useState } from 'react';
7
+ import { Form, Switch } from 'antd';
8
+ import "./index.less";
9
+ import LayoutContent from "../../../UI/LayoutContent";
10
+ import AccountManageSettingConfig from "../../../lib/accountManageSettingConfig";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ var AccountManageSettingPage = function AccountManageSettingPage(_ref) {
13
+ _objectDestructuringEmpty(_ref);
14
+ var _Form$useForm = Form.useForm(),
15
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
16
+ form = _Form$useForm2[0];
17
+ var _useState = useState(_objectSpread({}, AccountManageSettingConfig())),
18
+ _useState2 = _slicedToArray(_useState, 2),
19
+ formData = _useState2[0],
20
+ setFormData = _useState2[1];
21
+ var onFinish = function onFinish(data) {
22
+ AccountManageSettingConfig(data);
23
+ };
24
+ var onInit = /*#__PURE__*/function () {
25
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
27
+ while (1) switch (_context.prev = _context.next) {
28
+ case 0:
29
+ case "end":
30
+ return _context.stop();
31
+ }
32
+ }, _callee);
33
+ }));
34
+ return function onInit() {
35
+ return _ref2.apply(this, arguments);
36
+ };
37
+ }();
38
+ useEffect(function () {
39
+ onInit();
40
+ }, []);
41
+ return /*#__PURE__*/_jsx(LayoutContent, {
42
+ title: "\u8BBE\u7F6E",
43
+ subtitle: "",
44
+ className: "videoPublishAccountManageSetting",
45
+ children: /*#__PURE__*/_jsx(Form, {
46
+ form: form,
47
+ labelCol: {
48
+ span: 4
49
+ },
50
+ autoComplete: "off",
51
+ initialValues: _objectSpread({}, formData),
52
+ children: /*#__PURE__*/_jsx(Form.Item, {
53
+ label: "\u662F\u5426\u663E\u793A\u6D4F\u89C8\u5668",
54
+ name: "isChromeOpen",
55
+ extra: "\u8C03\u8BD5\u6D4B\u8BD5\u65F6\u6253\u5F00\uFF0C\u6B63\u5E38\u60C5\u51B5\u4E0B \u9690\u85CF\u6D4F\u89C8\u5668",
56
+ children: /*#__PURE__*/_jsx(Switch, {
57
+ checkedChildren: "\u663E\u793A\u6D4F\u89C8\u5668",
58
+ unCheckedChildren: "\u9690\u85CF\u6D4F\u89C8\u5668",
59
+ onChange: function onChange(isChromeOpen) {
60
+ formData.isChromeOpen = isChromeOpen;
61
+ setFormData(_objectSpread({}, formData));
62
+ onFinish(formData);
63
+ }
64
+ })
65
+ })
66
+ })
67
+ });
68
+ };
69
+ export default AccountManageSettingPage;
@@ -0,0 +1,9 @@
1
+ .videoPublishAccountManageSetting{
2
+
3
+ }
4
+
5
+ .select{
6
+ small{
7
+ color: #999;
8
+ }
9
+ }
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ interface Props {
4
+ disabled?: boolean;
5
+ createBaseData: VideoPublish.TaskCreateBaseData;
6
+ onCreateBaseData: (baseData: VideoPublish.TaskCreateBaseData) => void;
7
+ env?: Global.Env;
8
+ }
9
+ declare const VideoPublishCreateTaskBase: React.FC<Props>;
10
+ export default VideoPublishCreateTaskBase;