component-shipinlv 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/dist/AuthClient/qr/index.css.js +1 -1
  2. package/dist/UI/DialogDrawerFooter.css.js +1 -1
  3. package/dist/UI/FileSize.css.d.ts +5 -0
  4. package/dist/UI/FileSize.css.js +6 -0
  5. package/dist/UI/FileSize.d.ts +10 -0
  6. package/dist/UI/FileSize.js +63 -0
  7. package/dist/UI/LoadError.css.js +1 -1
  8. package/dist/UI/Time.d.ts +8 -0
  9. package/dist/UI/Time.js +19 -0
  10. package/dist/UI/duration.css.d.ts +5 -0
  11. package/dist/UI/duration.css.js +6 -0
  12. package/dist/UI/duration.d.ts +6 -0
  13. package/dist/UI/duration.js +49 -0
  14. package/dist/UI/text-input.d.ts +13 -0
  15. package/dist/UI/text-input.js +108 -0
  16. package/dist/UI/text-input.less +19 -0
  17. package/dist/VideoPublish/creat-task/index.css.d.ts +5 -0
  18. package/dist/VideoPublish/creat-task/index.css.js +6 -0
  19. package/dist/VideoPublish/creat-task/index.d.ts +8 -0
  20. package/dist/VideoPublish/creat-task/index.js +454 -0
  21. package/dist/VideoPublish/creat-task/select-list.css.d.ts +5 -0
  22. package/dist/VideoPublish/creat-task/select-list.css.js +6 -0
  23. package/dist/VideoPublish/creat-task/select-list.d.ts +8 -0
  24. package/dist/VideoPublish/creat-task/select-list.js +258 -0
  25. package/dist/VideoPublish/creat-task/task-list.css.d.ts +5 -0
  26. package/dist/VideoPublish/creat-task/task-list.css.js +6 -0
  27. package/dist/VideoPublish/creat-task/task-list.d.ts +9 -0
  28. package/dist/VideoPublish/creat-task/task-list.js +300 -0
  29. package/dist/VideoPublish/index.css.d.ts +5 -0
  30. package/dist/VideoPublish/index.css.js +6 -0
  31. package/dist/VideoPublish/index.d.ts +9 -0
  32. package/dist/VideoPublish/index.js +106 -0
  33. package/dist/VideoPublish/index.less +38 -0
  34. package/dist/VideoPublish/task-list/index.d.ts +7 -0
  35. package/dist/VideoPublish/task-list/index.js +120 -0
  36. package/dist/VideoPublish/task-list/index.less +5 -0
  37. package/dist/VideoPublish/video-account/index.d.ts +7 -0
  38. package/dist/VideoPublish/video-account/index.js +109 -0
  39. package/dist/VideoPublish/video-account/index.less +5 -0
  40. package/dist/asset/image/platform/bilibili.png +0 -0
  41. package/dist/asset/image/platform/douyin.png +0 -0
  42. package/dist/asset/image/platform/douyu.png +0 -0
  43. package/dist/asset/image/platform/huya.png +0 -0
  44. package/dist/asset/image/platform/kuaishou.png +0 -0
  45. package/dist/asset/image/platform/youtube.png +0 -0
  46. package/dist/component/media-kind.d.ts +10 -0
  47. package/dist/component/media-kind.js +24 -0
  48. package/dist/component/media-show.d.ts +13 -0
  49. package/dist/component/media-show.js +84 -0
  50. package/dist/component/media-show.less +53 -0
  51. package/dist/component/video-platform/logo.d.ts +22 -0
  52. package/dist/component/video-platform/logo.js +72 -0
  53. package/dist/component/video-platform/logo.less +42 -0
  54. package/dist/component/videoKindTag/index.d.ts +13 -0
  55. package/dist/component/videoKindTag/index.js +44 -0
  56. package/dist/global.less +4 -0
  57. package/dist/index.d.ts +5 -0
  58. package/dist/index.js +5 -0
  59. package/dist/join-client/index.css.js +1 -1
  60. package/dist/lib/Tool.d.ts +4 -1
  61. package/dist/lib/Tool.js +39 -0
  62. package/dist/lib/component/getImageUrl.d.ts +2 -0
  63. package/dist/lib/component/getImageUrl.js +8 -0
  64. package/dist/lib/component/getSoundUrl.d.ts +2 -0
  65. package/dist/lib/component/getSoundUrl.js +9 -0
  66. package/dist/lib/component/getVideoUrl.d.ts +2 -0
  67. package/dist/lib/component/getVideoUrl.js +9 -0
  68. package/dist/lib/isInClient.js +2 -1
  69. package/dist/lib/request.js +1 -1
  70. package/dist/service/api/VideoPublishController.d.ts +11 -0
  71. package/dist/service/api/VideoPublishController.js +85 -0
  72. package/dist/service/api/VideoPublishTaskController.d.ts +8 -0
  73. package/dist/service/api/VideoPublishTaskController.js +29 -0
  74. package/dist/types/VideoPublish.d.ts +112 -0
  75. package/dist/types/VideoPublish.js +0 -0
  76. package/dist/typings.d.ts +3 -0
  77. package/package.json +1 -1
@@ -0,0 +1,72 @@
1
+ import React from 'react';
2
+ import "./logo.less";
3
+
4
+ // https://olived.app/zh-hans/olivetv/#bilibili
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ export var VideoPlatformLogoList = [{
8
+ platform: 'douyin',
9
+ name: '抖音',
10
+ videoWebSiteUrl: 'https://www.douyin.com/user/self?showTab=post',
11
+ // auth login
12
+ allowMainDomainList: ['douyin.com', 'iesdouyin.com']
13
+ }, {
14
+ platform: 'kuaishou',
15
+ name: '快手',
16
+ videoWebSiteUrl: 'https://www.kuaishou.com/',
17
+ allowMainDomainList: ['kuaishou.com']
18
+ }, {
19
+ platform: 'bilibili',
20
+ name: '哔哩哔哩',
21
+ videoWebSiteUrl: 'https://www.bilibili.com/',
22
+ allowMainDomainList: ['bilibili.com']
23
+ }, {
24
+ platform: 'douyu',
25
+ name: '斗鱼',
26
+ videoWebSiteUrl: 'https://www.douyu.com/',
27
+ allowMainDomainList: ['douyu.com']
28
+ }, {
29
+ platform: 'huya',
30
+ name: '虎牙',
31
+ videoWebSiteUrl: 'https://www.huya.com/',
32
+ allowMainDomainList: ['huya.com']
33
+ }, {
34
+ platform: 'youtube',
35
+ name: 'YouTuBe',
36
+ videoWebSiteUrl: 'https://www.youtube.com/',
37
+ allowMainDomainList: ['youtube.com']
38
+ }];
39
+ export var VideoPlatformLogoDict = function () {
40
+ var dict = {};
41
+ VideoPlatformLogoList.forEach(function (item) {
42
+ dict[item.platform] = item;
43
+ });
44
+ return dict;
45
+ }();
46
+ var VideoPlatformLogo = function VideoPlatformLogo(_ref) {
47
+ var platform = _ref.platform,
48
+ _ref$size = _ref.size,
49
+ size = _ref$size === void 0 ? 16 : _ref$size,
50
+ _ref$className = _ref.className,
51
+ className = _ref$className === void 0 ? '' : _ref$className,
52
+ _ref$disabled = _ref.disabled,
53
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
54
+ showName = _ref.showName;
55
+ var itemData = VideoPlatformLogoDict[platform] || {
56
+ name: platform
57
+ };
58
+ return /*#__PURE__*/_jsxs("span", {
59
+ className: "videoPlatformLogo ".concat(disabled ? 'disabled' : '', " ").concat(className),
60
+ children: [/*#__PURE__*/_jsx("span", {
61
+ className: "logo ".concat(platform || '', " "),
62
+ style: {
63
+ width: size,
64
+ height: size
65
+ }
66
+ }), showName && /*#__PURE__*/_jsx("span", {
67
+ className: "name",
68
+ children: itemData === null || itemData === void 0 ? void 0 : itemData.name
69
+ })]
70
+ });
71
+ };
72
+ export default VideoPlatformLogo;
@@ -0,0 +1,42 @@
1
+ .videoPlatformLogo{
2
+ display: inline-block;
3
+ &.disabled{
4
+ .logo{
5
+ opacity: 0.3;
6
+ }
7
+ }
8
+ .logo{
9
+ display: inline-block;
10
+ vertical-align: middle;
11
+ position: relative;
12
+ top: -0.1em;
13
+ background-size: cover;
14
+ background-position: center;
15
+ background-repeat: no-repeat;
16
+ margin-right: 4px;
17
+ border-radius: 100px;
18
+ &.douyin{
19
+ background-image: url("../../asset/image/platform/douyin.png");
20
+ }
21
+ &.kuaishou{
22
+ background-image: url("../../asset/image/platform/kuaishou.png");
23
+ }
24
+ &.douyu{
25
+ background-image: url("../../asset/image/platform/douyu.png");
26
+ }
27
+ &.huya{
28
+ background-image: url("../../asset/image/platform/huya.png");
29
+ }
30
+ &.bilibili{
31
+ background-image: url("../../asset/image/platform/bilibili.png");
32
+ }
33
+ &.youtube{
34
+ background-image: url("../../asset/image/platform/youtube.png");
35
+ }
36
+ }
37
+
38
+ .name{
39
+ //vertical-align: middle;
40
+ display: inline-block;
41
+ }
42
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface VideoKindTagList {
3
+ videoKindTag: VideoPublish.VideoKindTag;
4
+ title: string;
5
+ color: string;
6
+ icon: React.ReactNode;
7
+ }
8
+ export declare const VideoKindTagList: VideoKindTagList[];
9
+ interface Props {
10
+ videoKindTag: VideoPublish.VideoKindTag;
11
+ }
12
+ declare const VideoKindTag: React.FC<Props>;
13
+ export default VideoKindTag;
@@ -0,0 +1,44 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import React from 'react';
3
+ import { Tag } from 'antd';
4
+ import { ShoppingCartOutlined, GlobalOutlined, AppstoreAddOutlined } from '@ant-design/icons';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ // 'shopping' | 'location' | 'min-app'
8
+ var Dict = {
9
+ shopping: {
10
+ title: '购物车',
11
+ color: 'orange',
12
+ icon: /*#__PURE__*/_jsx(ShoppingCartOutlined, {})
13
+ },
14
+ location: {
15
+ title: '定位',
16
+ color: 'blue',
17
+ icon: /*#__PURE__*/_jsx(GlobalOutlined, {})
18
+ },
19
+ 'min-app': {
20
+ title: '小程序',
21
+ color: 'green',
22
+ icon: /*#__PURE__*/_jsx(AppstoreAddOutlined, {})
23
+ }
24
+ };
25
+ export var VideoKindTagList = function () {
26
+ var list = [];
27
+ for (var videoKindTag in Dict) {
28
+ list.push(_objectSpread({
29
+ videoKindTag: videoKindTag
30
+ }, Dict[videoKindTag]));
31
+ }
32
+ return list;
33
+ }();
34
+ var VideoKindTag = function VideoKindTag(_ref) {
35
+ var _ref$videoKindTag = _ref.videoKindTag,
36
+ videoKindTag = _ref$videoKindTag === void 0 ? '' : _ref$videoKindTag;
37
+ var items = Dict[videoKindTag] || {};
38
+ var title = items.title || videoKindTag;
39
+ return title ? /*#__PURE__*/_jsxs(Tag, {
40
+ color: items.color,
41
+ children: [items.icon, " ", title]
42
+ }) : null;
43
+ };
44
+ export default VideoKindTag;
package/dist/global.less CHANGED
@@ -2,3 +2,7 @@
2
2
  //.ant-modal-confirm-btns{
3
3
  // display: none !important;
4
4
  //}
5
+
6
+ #root{
7
+ min-height: 100vh;
8
+ }
package/dist/index.d.ts CHANGED
@@ -8,6 +8,11 @@ export { default as Product } from './Product';
8
8
  export { default as JoinClient } from './join-client';
9
9
  export { default as renewalVip } from './renewal-vip';
10
10
  export { default as VipList } from './VipList';
11
+ export { default as VideoPublish } from './VideoPublish';
12
+ export { default as VideoPublishCreateTask } from './VideoPublish/creat-task';
13
+ export { default as VideoPublishVideoAccount } from './VideoPublish/video-account';
14
+ export { default as VideoKindTag } from './component/videoKindTag';
15
+ export { VideoKindTagList } from './component/videoKindTag';
11
16
  export { default as fileSelect } from './base/fileSelect';
12
17
  export { default as folderOpen } from './base/folderOpen';
13
18
  export { default as folderSelect } from './base/folderSelect';
package/dist/index.js CHANGED
@@ -10,6 +10,11 @@ export { default as Product } from "./Product";
10
10
  export { default as JoinClient } from "./join-client";
11
11
  export { default as renewalVip } from "./renewal-vip";
12
12
  export { default as VipList } from "./VipList";
13
+ export { default as VideoPublish } from "./VideoPublish";
14
+ export { default as VideoPublishCreateTask } from "./VideoPublish/creat-task";
15
+ export { default as VideoPublishVideoAccount } from "./VideoPublish/video-account";
16
+ export { default as VideoKindTag } from "./component/videoKindTag";
17
+ export { VideoKindTagList } from "./component/videoKindTag";
13
18
  export { default as fileSelect } from "./base/fileSelect";
14
19
  export { default as folderOpen } from "./base/folderOpen";
15
20
  export { default as folderSelect } from "./base/folderSelect";
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
2
2
  var _templateObject;
3
3
  import styled from 'styled-components';
4
4
  export default {
5
- div: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :global{\n .clientStatus{\n .loading{\n opacity: 0.7;\n }\n\n .downloading{\n margin-left: 12px;\n }\n\n .working{\n color: green;\n }\n }\n "])))
5
+ div: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .clientStatus{\n .loading{\n opacity: 0.7;\n }\n\n .downloading{\n margin-left: 12px;\n }\n\n .working{\n color: green;\n }\n "])))
6
6
  };
@@ -157,8 +157,11 @@ declare const Tool: {
157
157
  getTimeOffset(): any;
158
158
  setTimeOffset(serverTime: number): void;
159
159
  getTime(): number;
160
+ getOsName(): "windows" | "darwin" | "ios" | "android" | "linux" | "Unknown OS";
161
+ OsPathSeparator(): string;
162
+ getTitleByPath(path: string): string;
160
163
  h5Pay(query: Pay.H5PayQuery): void;
161
- notification(type: "info" | "error" | "success" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
164
+ notification(type: "error" | "success" | "warning" | "info", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
162
165
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
163
166
  notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
164
167
  notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
package/dist/lib/Tool.js CHANGED
@@ -1097,6 +1097,45 @@ var Tool = _objectSpread(_objectSpread({
1097
1097
  // 毫秒
1098
1098
  return Date.now() - Tool.getTimeOffset();
1099
1099
  },
1100
+ getOsName: function getOsName() {
1101
+ var userAgent = navigator.userAgent || window.opera;
1102
+
1103
+ // Windows
1104
+ if (/windows/i.test(userAgent)) {
1105
+ return "windows";
1106
+ }
1107
+ // macOS
1108
+ if (/mac/i.test(userAgent)) {
1109
+ return "darwin";
1110
+ }
1111
+
1112
+ // iOS
1113
+ if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
1114
+ return "ios";
1115
+ }
1116
+
1117
+ // Android
1118
+ if (/android/i.test(userAgent)) {
1119
+ return "android";
1120
+ }
1121
+ // Linux
1122
+ if (/linux/i.test(userAgent)) {
1123
+ return "linux";
1124
+ }
1125
+
1126
+ // 未知操作系统
1127
+ return "Unknown OS";
1128
+ },
1129
+ OsPathSeparator: function OsPathSeparator() {
1130
+ if (this.getOsName() === 'windows') {
1131
+ return "\\";
1132
+ }
1133
+ return "/";
1134
+ },
1135
+ getTitleByPath: function getTitleByPath(path) {
1136
+ var splitWord = this.OsPathSeparator();
1137
+ return path.slice(path.lastIndexOf(splitWord) + 1);
1138
+ },
1100
1139
  h5Pay: function h5Pay(query) {
1101
1140
  var data = JSON.stringify(_objectSpread({
1102
1141
  payBackUrl: document.location.href
@@ -0,0 +1,2 @@
1
+ declare const getImageUrl: (url: string) => string;
2
+ export default getImageUrl;
@@ -0,0 +1,8 @@
1
+ import { getMainPort } from "../getApiUrl";
2
+ var getImageUrl = function getImageUrl(url) {
3
+ // windows
4
+ // let url = urlQuery.replace(/\\/g, '\\\\');
5
+
6
+ return /^(\/)|^([a-z]:)/i.test(url) ? "http://127.0.0.1:".concat(getMainPort(), "/image/preview?filePath=").concat(encodeURIComponent(url)) : url;
7
+ };
8
+ export default getImageUrl;
@@ -0,0 +1,2 @@
1
+ declare const getVideoUrl: (url?: string) => string;
2
+ export default getVideoUrl;
@@ -0,0 +1,9 @@
1
+ import { getMainPort } from "../getApiUrl";
2
+ var getVideoUrl = function getVideoUrl() {
3
+ var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
4
+ // windows
5
+ // let url = urlQuery.replace(/\\/g, '\\\\');
6
+
7
+ return /^(\/)|^([a-z]:)/i.test(url) ? "http://127.0.0.1:".concat(getMainPort(), "/sound/preview?filePath=").concat(encodeURIComponent(url)) : url;
8
+ };
9
+ export default getVideoUrl;
@@ -0,0 +1,2 @@
1
+ declare const getVideoUrl: (url?: string) => string;
2
+ export default getVideoUrl;
@@ -0,0 +1,9 @@
1
+ import { getMainPort } from "../getApiUrl";
2
+ var getVideoUrl = function getVideoUrl() {
3
+ var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
4
+ // windows
5
+ // let url = urlQuery.replace(/\\/g, '\\\\');
6
+
7
+ return /^(\/)|^([a-z]:)/i.test(url) ? "http://127.0.0.1:".concat(getMainPort(), "/video/preview?filePath=").concat(encodeURIComponent(url)) : url;
8
+ };
9
+ export default getVideoUrl;
@@ -1,4 +1,5 @@
1
1
  var isInClient = function isInClient() {
2
- return typeof window !== 'undefined';
2
+ // return typeof window !== 'undefined';
3
+ return !!window.navigator.userAgent.match(/shipinlv/i);
3
4
  };
4
5
  export default isInClient;
@@ -69,7 +69,7 @@ var requestApi = function requestApi() {
69
69
  console.log('request component shipinlv:', JSON.stringify(err), url);
70
70
  if (!((_err = err) !== null && _err !== void 0 && _err.response) && url.indexOf("http://127.0.0.1:".concat(getMainPort())) === 0) {
71
71
  err.name = "shipinlv-client-not-run";
72
- err.message = "\u8BF7\u5148\u6253\u5F00\u7535\u8111\u4E0A\u5DF2\u5B89\u88C5\u7684\uFF1A\u3010\u89C6\u9891\u9A74\u5DE5\u5177\u7BB1\u3011\uFF0C\u518D\u64CD\u4F5C";
72
+ err.message = "\u8FDE\u63A5\u672C\u5730\u670D\u52A1\u5931\u8D25\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u542F\u8F6F\u4EF6";
73
73
  reject(err);
74
74
  return;
75
75
  }
@@ -0,0 +1,11 @@
1
+ export declare function videoAccountList(body: {
2
+ current: number;
3
+ pageSize: number;
4
+ }, options?: Global.RequestOptions): Promise<VideoPublish.VideoAccountResult>;
5
+ export declare function taskCreate(body: VideoPublish.TaskCreate, options?: Global.RequestOptions): Promise<VideoPublish.VideoAccountResult>;
6
+ interface TaskListQuery extends VideoPublish.TaskListQuery {
7
+ current: number;
8
+ pageSize: number;
9
+ }
10
+ export declare function taskList(body: TaskListQuery, options?: Global.RequestOptions): Promise<VideoPublish.TaskListResult>;
11
+ export {};
@@ -0,0 +1,85 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ var ApiUrls = {
6
+ local: {
7
+ api: 'http://localhost:61805/'
8
+ },
9
+ prod: {
10
+ api: 'https://api-video-publish.shipinlv.com/'
11
+ }
12
+ };
13
+ var PublishDomainApi = function PublishDomainApi(apiName, env) {
14
+ // @ts-ignore
15
+ return (ApiUrls[env].api || 'https://api-video-publish.shipinlv.com/') + (apiName === null || apiName === void 0 ? void 0 : apiName.toLocaleLowerCase());
16
+ };
17
+ export function videoAccountList(_x, _x2) {
18
+ return _videoAccountList.apply(this, arguments);
19
+ }
20
+ function _videoAccountList() {
21
+ _videoAccountList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
22
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
23
+ while (1) switch (_context.prev = _context.next) {
24
+ case 0:
25
+ return _context.abrupt("return", request(PublishDomainApi("user/videoAccount/list", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
26
+ method: 'POST',
27
+ headers: {
28
+ 'Content-Type': 'application/json'
29
+ },
30
+ data: _objectSpread({}, body)
31
+ }, options || {})));
32
+ case 1:
33
+ case "end":
34
+ return _context.stop();
35
+ }
36
+ }, _callee);
37
+ }));
38
+ return _videoAccountList.apply(this, arguments);
39
+ }
40
+ export function taskCreate(_x3, _x4) {
41
+ return _taskCreate.apply(this, arguments);
42
+ }
43
+ function _taskCreate() {
44
+ _taskCreate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
45
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
46
+ while (1) switch (_context2.prev = _context2.next) {
47
+ case 0:
48
+ return _context2.abrupt("return", request(PublishDomainApi("user/publishTask/create", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
49
+ method: 'POST',
50
+ headers: {
51
+ 'Content-Type': 'application/json'
52
+ },
53
+ data: _objectSpread({}, body)
54
+ }, options || {})));
55
+ case 1:
56
+ case "end":
57
+ return _context2.stop();
58
+ }
59
+ }, _callee2);
60
+ }));
61
+ return _taskCreate.apply(this, arguments);
62
+ }
63
+ export function taskList(_x5, _x6) {
64
+ return _taskList.apply(this, arguments);
65
+ }
66
+ function _taskList() {
67
+ _taskList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(body, options) {
68
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
69
+ while (1) switch (_context3.prev = _context3.next) {
70
+ case 0:
71
+ return _context3.abrupt("return", request(PublishDomainApi("user/publishTask/list", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
72
+ method: 'POST',
73
+ headers: {
74
+ 'Content-Type': 'application/json'
75
+ },
76
+ data: _objectSpread({}, body)
77
+ }, options || {})));
78
+ case 1:
79
+ case "end":
80
+ return _context3.stop();
81
+ }
82
+ }, _callee3);
83
+ }));
84
+ return _taskList.apply(this, arguments);
85
+ }
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ 'long-video-sales': (apiUrl: string, body: {
3
+ taskStatus: string;
4
+ current: number;
5
+ pageSize: number;
6
+ }, options?: Global.RequestOptions) => Promise<VideoPublish.TaskListResult>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export default {
6
+ 'long-video-sales': function () {
7
+ var _longVideoSales = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(apiUrl, body, options) {
8
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9
+ while (1) switch (_context.prev = _context.next) {
10
+ case 0:
11
+ return _context.abrupt("return", request(apiUrl, _objectSpread({
12
+ method: 'POST',
13
+ headers: {
14
+ 'Content-Type': 'application/json'
15
+ },
16
+ data: _objectSpread({}, body)
17
+ }, options || {})));
18
+ case 1:
19
+ case "end":
20
+ return _context.stop();
21
+ }
22
+ }, _callee);
23
+ }));
24
+ function longVideoSales(_x, _x2, _x3) {
25
+ return _longVideoSales.apply(this, arguments);
26
+ }
27
+ return longVideoSales;
28
+ }()
29
+ };
@@ -0,0 +1,112 @@
1
+ /// <reference types="react" />
2
+ declare namespace VideoPublish {
3
+ type ProductType = 'long-video-sales';
4
+ type VideoKindTag = 'shopping' | 'location' | 'min-app';
5
+ interface CreateTaskList {
6
+ id: number;
7
+ title: string;
8
+ videoSize: number;
9
+ videoDuration: number;
10
+ taskStatus: string;
11
+ accountId: string;
12
+ accountNickname: string;
13
+ introduction: string;
14
+ videoKindTag: '' | VideoKindTag;
15
+ kindTagValue: string;
16
+ finishUrl?: string;
17
+ videoFinishUrl?: string;
18
+ }
19
+ interface TaskListResult {
20
+ list: TaskList[];
21
+ pagination: Global.Pagination;
22
+ }
23
+ interface TaskList {
24
+ id: number;
25
+ title: string;
26
+ videoSize: number;
27
+ videoDuration: number;
28
+ taskStatus: string;
29
+ accountId: string;
30
+ accountNickname: string;
31
+ introduction: string;
32
+ videoKindTag: '' | VideoKindTag;
33
+ kindTagValue: string;
34
+ videoFinishUrl: string;
35
+ }
36
+ interface VideoSelectList {
37
+ id: number;
38
+ title: string;
39
+ videoSize: number;
40
+ videoDuration: number;
41
+ videoFinishUrl: string;
42
+ introduction: string;
43
+ videoKindTag: '' | VideoKindTag;
44
+ kindTagValue: string;
45
+ }
46
+ interface VideoAccountResult {
47
+ list: VideoAccountList[];
48
+ pagination: Global.Pagination;
49
+ }
50
+ interface VideoAccountList {
51
+ id: number;
52
+ userId: number;
53
+ platform: string;
54
+ groupId: number;
55
+ groupName: string;
56
+ uniqueId: string;
57
+ accountId: string;
58
+ avatar: string;
59
+ bindPhone: string;
60
+ nickname: string;
61
+ signature: string;
62
+ isLoginValid: true;
63
+ followerCount: number;
64
+ followingCount: number;
65
+ favoritedCount: number;
66
+ videoCount: number;
67
+ created: number;
68
+ updated: number;
69
+ }
70
+ interface TreeVideoAccount {
71
+ title: React.ReactNode;
72
+ value: string;
73
+ key: string;
74
+ children: TreeVideoAccountChildren[];
75
+ }
76
+ interface TreeVideoAccountChildren {
77
+ title: React.ReactNode;
78
+ value: string;
79
+ key: string;
80
+ children?: TreeVideoAccountChildren[];
81
+ }
82
+ interface PublishVideoList {
83
+ taskId: number;
84
+ productType: string;
85
+ title: string;
86
+ videoUrl: string;
87
+ introduction: string;
88
+ videoKindTag: '' | VideoKindTag;
89
+ kindTagValue: string;
90
+ }
91
+ interface TaskCreate {
92
+ videoFrom: 'task' | 'local';
93
+ normalVideoRate: number;
94
+ normalVideoRateType: 'hour' | 'day';
95
+ normalDayMaxCount: number;
96
+ salesVideoRate: number;
97
+ salesVideoRateType: 'hour' | 'day';
98
+ salesDayMaxCount: number;
99
+ accountList: string[];
100
+ videoList: {
101
+ taskId: number;
102
+ productType: string;
103
+ videoUrl: string;
104
+ title: string;
105
+ introduction: string;
106
+ videoKindTag: '' | VideoKindTag;
107
+ kindTagValue: string;
108
+ }[];
109
+ }
110
+ interface TaskListQuery {
111
+ }
112
+ }
File without changes
package/dist/typings.d.ts CHANGED
@@ -2,6 +2,7 @@ declare namespace Global {
2
2
  export type Env = 'local' | 'pre' | 'prod';
3
3
  type AuthClientLoginType = 'wechat' | 'account-login' | 'account-reg' | 'alipay';
4
4
  export type ProductKind = 'vip' | 'vip-card' | string;
5
+ type VideoPlatformKind = string;
5
6
  interface RequestResult{
6
7
  code: string;
7
8
  success?: boolean;
@@ -24,6 +25,8 @@ declare namespace Global {
24
25
  total: number;
25
26
  simple?: boolean;
26
27
  more?: boolean;
28
+ showQuickJumper?: boolean;
29
+ showSizeChanger?: boolean;
27
30
  }
28
31
 
29
32
  interface ApiResult<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",