component-shipinlv 2.0.1 → 2.0.3
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/VideoPublish/create-task/getVideoGoodsUrl.d.ts +2 -0
- package/dist/VideoPublish/create-task/getVideoGoodsUrl.js +136 -0
- package/dist/VideoPublish/create-task/index.d.ts +1 -0
- package/dist/VideoPublish/create-task/index.js +136 -7
- package/dist/VideoPublish/create-task/index.less +75 -0
- package/dist/VideoPublish/create-task/select-list.js +4 -2
- package/dist/lib/Tool.d.ts +1 -0
- package/dist/lib/Tool.js +7 -0
- package/dist/service/video-api/FileController.d.ts +3 -0
- package/dist/service/video-api/FileController.js +23 -0
- package/dist/types/File.d.ts +4 -0
- package/dist/types/VideoPublish.d.ts +6 -0
- package/package.json +1 -1
- package/dist/VideoPublish/create-task/index.css.d.ts +0 -8
- package/dist/VideoPublish/create-task/index.css.js +0 -9
@@ -0,0 +1,136 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
|
+
import * as FileController from "../../service/video-api/FileController";
|
5
|
+
import Tool from "../../lib/Tool";
|
6
|
+
var getVideoGoodsUrl = /*#__PURE__*/function () {
|
7
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(selectList) {
|
8
|
+
var resultDataList, _iterator, _step, selectItem, resultData, folderPath, txtList, _iterator2, _step2, items, lineList, _iterator3, _step3, text, imageUrls, url;
|
9
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
10
|
+
while (1) switch (_context.prev = _context.next) {
|
11
|
+
case 0:
|
12
|
+
resultDataList = [];
|
13
|
+
_iterator = _createForOfIteratorHelper(selectList);
|
14
|
+
_context.prev = 2;
|
15
|
+
_iterator.s();
|
16
|
+
case 4:
|
17
|
+
if ((_step = _iterator.n()).done) {
|
18
|
+
_context.next = 41;
|
19
|
+
break;
|
20
|
+
}
|
21
|
+
selectItem = _step.value;
|
22
|
+
if (!selectItem.videoKindTag) {
|
23
|
+
_context.next = 9;
|
24
|
+
break;
|
25
|
+
}
|
26
|
+
resultDataList.push({
|
27
|
+
title: '',
|
28
|
+
url: ''
|
29
|
+
});
|
30
|
+
return _context.abrupt("continue", 39);
|
31
|
+
case 9:
|
32
|
+
resultData = {
|
33
|
+
title: '',
|
34
|
+
url: ''
|
35
|
+
};
|
36
|
+
folderPath = Tool.getDirByPath(selectItem.videoFinishUrl);
|
37
|
+
_context.next = 13;
|
38
|
+
return FileController.getFolderTxtListContent({
|
39
|
+
folderPath: folderPath
|
40
|
+
}).catch(function (err) {
|
41
|
+
console.log('获取视频 文件夹下的 记事本信息错误:' + (err === null || err === void 0 ? void 0 : err.message));
|
42
|
+
});
|
43
|
+
case 13:
|
44
|
+
txtList = _context.sent;
|
45
|
+
if (txtList) {
|
46
|
+
_context.next = 17;
|
47
|
+
break;
|
48
|
+
}
|
49
|
+
resultDataList.push(resultData);
|
50
|
+
return _context.abrupt("continue", 39);
|
51
|
+
case 17:
|
52
|
+
console.log('txtList:', txtList);
|
53
|
+
_iterator2 = _createForOfIteratorHelper(txtList);
|
54
|
+
_context.prev = 19;
|
55
|
+
_iterator2.s();
|
56
|
+
case 21:
|
57
|
+
if ((_step2 = _iterator2.n()).done) {
|
58
|
+
_context.next = 30;
|
59
|
+
break;
|
60
|
+
}
|
61
|
+
items = _step2.value;
|
62
|
+
lineList = items.content.split("\n");
|
63
|
+
if (!resultData.url) {
|
64
|
+
_context.next = 26;
|
65
|
+
break;
|
66
|
+
}
|
67
|
+
return _context.abrupt("break", 30);
|
68
|
+
case 26:
|
69
|
+
_iterator3 = _createForOfIteratorHelper(lineList);
|
70
|
+
try {
|
71
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
72
|
+
text = _step3.value;
|
73
|
+
imageUrls = text.match(/https?:\/\/[\da-z-_/.?&#@$%^*:()=+!`~,\[\]|]+/ig) || [];
|
74
|
+
url = imageUrls[0] || '';
|
75
|
+
if (url) {
|
76
|
+
if (url.indexOf('://v.douyin.com') > -1 || url.indexOf('://buyin.jinritemai.com') > -1) {
|
77
|
+
if (!resultData.url) {
|
78
|
+
resultData.url = url;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
} else {
|
82
|
+
if (text.length >= 3 && text.length <= 10) {
|
83
|
+
if (!resultData.title) {
|
84
|
+
resultData.title = text;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
} catch (err) {
|
90
|
+
_iterator3.e(err);
|
91
|
+
} finally {
|
92
|
+
_iterator3.f();
|
93
|
+
}
|
94
|
+
case 28:
|
95
|
+
_context.next = 21;
|
96
|
+
break;
|
97
|
+
case 30:
|
98
|
+
_context.next = 35;
|
99
|
+
break;
|
100
|
+
case 32:
|
101
|
+
_context.prev = 32;
|
102
|
+
_context.t0 = _context["catch"](19);
|
103
|
+
_iterator2.e(_context.t0);
|
104
|
+
case 35:
|
105
|
+
_context.prev = 35;
|
106
|
+
_iterator2.f();
|
107
|
+
return _context.finish(35);
|
108
|
+
case 38:
|
109
|
+
resultDataList.push(resultData);
|
110
|
+
case 39:
|
111
|
+
_context.next = 4;
|
112
|
+
break;
|
113
|
+
case 41:
|
114
|
+
_context.next = 46;
|
115
|
+
break;
|
116
|
+
case 43:
|
117
|
+
_context.prev = 43;
|
118
|
+
_context.t1 = _context["catch"](2);
|
119
|
+
_iterator.e(_context.t1);
|
120
|
+
case 46:
|
121
|
+
_context.prev = 46;
|
122
|
+
_iterator.f();
|
123
|
+
return _context.finish(46);
|
124
|
+
case 49:
|
125
|
+
return _context.abrupt("return", resultDataList);
|
126
|
+
case 50:
|
127
|
+
case "end":
|
128
|
+
return _context.stop();
|
129
|
+
}
|
130
|
+
}, _callee, null, [[2, 43, 46, 49], [19, 32, 35, 38]]);
|
131
|
+
}));
|
132
|
+
return function getVideoGoodsUrl(_x) {
|
133
|
+
return _ref.apply(this, arguments);
|
134
|
+
};
|
135
|
+
}();
|
136
|
+
export default getVideoGoodsUrl;
|
@@ -4,9 +4,9 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
6
6
|
import React, { useState } from "react";
|
7
|
-
import
|
8
|
-
import { Alert, Button, ConfigProvider, Divider, Form, Radio } from "antd";
|
9
|
-
import { PlusOutlined } from "@ant-design/icons";
|
7
|
+
import "./index.less";
|
8
|
+
import { Alert, Button, ConfigProvider, Divider, Form, Input, Radio, Select, Space, Tooltip } from "antd";
|
9
|
+
import { CheckOutlined, PlusOutlined, ShoppingCartOutlined, UnorderedListOutlined } from "@ant-design/icons";
|
10
10
|
import PageContentWarp from "../../UI/PageContentWarp";
|
11
11
|
import isInClient from "../../lib/isInClient";
|
12
12
|
import Tool from "../../lib/Tool";
|
@@ -17,6 +17,9 @@ import * as VideoPublishController from "../../service/api/VideoPublishControlle
|
|
17
17
|
import fileSelect from "../../base/fileSelect";
|
18
18
|
import VideoPublishCreateTaskBase from "./base";
|
19
19
|
import dayjs from "dayjs";
|
20
|
+
import VideoKindTag, { VideoKindTagList } from "../../component/videoKindTag";
|
21
|
+
import sleep from "../../lib/sleep";
|
22
|
+
import getVideoGoodsUrl from "./getVideoGoodsUrl";
|
20
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
21
24
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
22
25
|
var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
@@ -24,6 +27,9 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
24
27
|
productType = _ref.productType,
|
25
28
|
apiUrl = _ref.apiUrl,
|
26
29
|
env = _ref.env;
|
30
|
+
var _Form$useForm = Form.useForm(),
|
31
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
32
|
+
form = _Form$useForm2[0];
|
27
33
|
var _useState = useState({
|
28
34
|
videoFrom: productType ? 'task' : 'local',
|
29
35
|
taskFromProductType: productType,
|
@@ -91,7 +97,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
91
97
|
};
|
92
98
|
var onLocalList = /*#__PURE__*/function () {
|
93
99
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
94
|
-
var result, fileList;
|
100
|
+
var result, fileList, goodsUrlInfoList, isMatch;
|
95
101
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
96
102
|
while (1) switch (_context.prev = _context.next) {
|
97
103
|
case 0:
|
@@ -128,7 +134,35 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
128
134
|
});
|
129
135
|
setLocalSelectList(_toConsumableArray(localSelectList));
|
130
136
|
setLoadingSelectLocal(false);
|
131
|
-
|
137
|
+
_context.next = 14;
|
138
|
+
return getVideoGoodsUrl(localSelectList).catch(function (err) {});
|
139
|
+
case 14:
|
140
|
+
goodsUrlInfoList = _context.sent;
|
141
|
+
if (goodsUrlInfoList) {
|
142
|
+
_context.next = 17;
|
143
|
+
break;
|
144
|
+
}
|
145
|
+
return _context.abrupt("return");
|
146
|
+
case 17:
|
147
|
+
// 合并
|
148
|
+
console.log('goodsUrlInfoList:', goodsUrlInfoList);
|
149
|
+
isMatch = false;
|
150
|
+
goodsUrlInfoList.forEach(function (items, index) {
|
151
|
+
if (!items.url) {
|
152
|
+
return;
|
153
|
+
}
|
154
|
+
isMatch = true;
|
155
|
+
localSelectList[index].videoKindTag = 'shopping';
|
156
|
+
localSelectList[index].kindTagValue = items.url;
|
157
|
+
if (items.title) {
|
158
|
+
localSelectList[index].goodsTitle = items.title;
|
159
|
+
}
|
160
|
+
});
|
161
|
+
console.log('localSelectList:', localSelectList);
|
162
|
+
if (isMatch) {
|
163
|
+
setLocalSelectList(_toConsumableArray(localSelectList));
|
164
|
+
}
|
165
|
+
case 22:
|
132
166
|
case "end":
|
133
167
|
return _context.stop();
|
134
168
|
}
|
@@ -187,8 +221,21 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
187
221
|
console.log('create task onFinish values:', data);
|
188
222
|
runTask(data);
|
189
223
|
};
|
224
|
+
var onBatchSet = function onBatchSet(kind) {
|
225
|
+
(formData.videoFrom == 'local' ? localSelectList : taskSelectList).forEach(function (items) {
|
226
|
+
items[kind] = form.getFieldValue(kind);
|
227
|
+
});
|
228
|
+
if (formData.videoFrom == 'local') {
|
229
|
+
setLocalSelectList(_toConsumableArray(localSelectList));
|
230
|
+
} else {
|
231
|
+
setTaskSelectList(_toConsumableArray(taskSelectList));
|
232
|
+
}
|
233
|
+
console.log('taskSelectList:', taskSelectList);
|
234
|
+
Tool.toast('已经设置');
|
235
|
+
};
|
190
236
|
var formLabelSpan = 2;
|
191
|
-
return /*#__PURE__*/_jsx(
|
237
|
+
return /*#__PURE__*/_jsx("div", {
|
238
|
+
className: "videoPublishCreateTask",
|
192
239
|
children: /*#__PURE__*/_jsxs(PageContentWarp
|
193
240
|
// loading={loading}
|
194
241
|
// error={errorAccountList}
|
@@ -202,11 +249,14 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
202
249
|
width: 320
|
203
250
|
}
|
204
251
|
}), /*#__PURE__*/_jsxs(Form, {
|
252
|
+
form: form,
|
205
253
|
labelCol: {
|
206
254
|
span: formLabelSpan
|
207
255
|
},
|
208
256
|
initialValues: _objectSpread(_objectSpread({}, formData), {}, {
|
209
|
-
startTime: typeof formData.startTime === 'number' && formData.startTime > 946684800 ? dayjs(formData.startTime) : null
|
257
|
+
startTime: typeof formData.startTime === 'number' && formData.startTime > 946684800 ? dayjs(formData.startTime) : null,
|
258
|
+
// 仅仅暂时用,不提交
|
259
|
+
videoKindTag: ''
|
210
260
|
}),
|
211
261
|
disabled: disabled || loadingTask,
|
212
262
|
scrollToFirstError: true,
|
@@ -231,6 +281,85 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
|
|
231
281
|
children: "\u4EFB\u52A1\u89C6\u9891"
|
232
282
|
})]
|
233
283
|
})
|
284
|
+
}), /*#__PURE__*/_jsxs("div", {
|
285
|
+
className: "batchOperate",
|
286
|
+
children: [/*#__PURE__*/_jsx("div", {}), /*#__PURE__*/_jsxs(Space, {
|
287
|
+
size: 20,
|
288
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
289
|
+
title: "\u5728\u89C6\u9891\u7684\u540C\u6587\u4EF6\u5939\u653E\u4E00\u4E2A\u6587\u672C\u6587\u4EF6(.txt), \u91CC\u9762\u5199 \u5546\u54C1\u6807\u9898\u3001\u5546\u54C1\u94FE\u63A5\uFF0C\u7A0B\u5E8F\u4F1A\u81EA\u52A8\u8BFB\u51FA\u6765\uFF08\u56DE\u8F66\u6362\u884C\u533A\u5206\uFF09",
|
290
|
+
children: /*#__PURE__*/_jsx("a", {
|
291
|
+
children: /*#__PURE__*/_jsx(ShoppingCartOutlined, {
|
292
|
+
className: "shoppingCar"
|
293
|
+
})
|
294
|
+
})
|
295
|
+
}), /*#__PURE__*/_jsx(Divider, {
|
296
|
+
type: "vertical"
|
297
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
298
|
+
name: "title",
|
299
|
+
children: /*#__PURE__*/_jsx(Input, {
|
300
|
+
placeholder: "\u89C6\u9891\u6807\u9898 \u6279\u91CF\u8BBE\u7F6E\u3001\u6E05\u7A7A ",
|
301
|
+
className: "videoTitleInput",
|
302
|
+
allowClear: true,
|
303
|
+
addonAfter: /*#__PURE__*/_jsx("a", {
|
304
|
+
onClick: function onClick() {
|
305
|
+
return onBatchSet('title');
|
306
|
+
},
|
307
|
+
children: /*#__PURE__*/_jsx(CheckOutlined, {})
|
308
|
+
})
|
309
|
+
// onChange={ e => {
|
310
|
+
// batchFormData.title = e.target.value ;
|
311
|
+
// setBatchFormData({...batchFormData});
|
312
|
+
// }}
|
313
|
+
})
|
314
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
315
|
+
name: "videoKindTag",
|
316
|
+
children: /*#__PURE__*/_jsxs(Select, {
|
317
|
+
className: "videoKindTag",
|
318
|
+
onChange: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
319
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
320
|
+
while (1) switch (_context2.prev = _context2.next) {
|
321
|
+
case 0:
|
322
|
+
_context2.next = 2;
|
323
|
+
return sleep(300);
|
324
|
+
case 2:
|
325
|
+
onBatchSet('videoKindTag');
|
326
|
+
case 3:
|
327
|
+
case "end":
|
328
|
+
return _context2.stop();
|
329
|
+
}
|
330
|
+
}, _callee2);
|
331
|
+
})),
|
332
|
+
children: [/*#__PURE__*/_jsxs(Select.Option, {
|
333
|
+
value: "",
|
334
|
+
children: [/*#__PURE__*/_jsx(UnorderedListOutlined, {}), " \u6279\u91CF\u8BBE\u7F6E\u6807\u7B7E\u7C7B\u578B"]
|
335
|
+
}), VideoKindTagList.map(function (item) {
|
336
|
+
return /*#__PURE__*/_jsx(Select.Option, {
|
337
|
+
value: item.videoKindTag,
|
338
|
+
children: /*#__PURE__*/_jsx(VideoKindTag, {
|
339
|
+
videoKindTag: item.videoKindTag
|
340
|
+
})
|
341
|
+
}, item.videoKindTag);
|
342
|
+
})]
|
343
|
+
})
|
344
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
345
|
+
name: "goodsTitle",
|
346
|
+
children: /*#__PURE__*/_jsx(Input, {
|
347
|
+
placeholder: "\u5546\u54C1\u6807\u9898 \u6279\u91CF\u8BBE\u7F6E\u3001\u6E05\u7A7A ",
|
348
|
+
className: "goodsTitleInput",
|
349
|
+
allowClear: true,
|
350
|
+
addonAfter: /*#__PURE__*/_jsx("a", {
|
351
|
+
onClick: function onClick() {
|
352
|
+
return onBatchSet('goodsTitle');
|
353
|
+
},
|
354
|
+
children: /*#__PURE__*/_jsx(CheckOutlined, {})
|
355
|
+
})
|
356
|
+
// onChange={ e => {
|
357
|
+
// batchFormData.goodsTitle = e.target.value ;
|
358
|
+
// setBatchFormData({...batchFormData});
|
359
|
+
// }}
|
360
|
+
})
|
361
|
+
})]
|
362
|
+
})]
|
234
363
|
}), formData.videoFrom == 'local' && /*#__PURE__*/_jsxs(Form.Item, {
|
235
364
|
wrapperCol: {
|
236
365
|
offset: formLabelSpan
|
@@ -0,0 +1,75 @@
|
|
1
|
+
.videoPublishCreateTask {
|
2
|
+
padding: 0 12px 0 0;
|
3
|
+
display: flex;
|
4
|
+
flex-direction: column;
|
5
|
+
height: 100%;
|
6
|
+
.groupIcon{
|
7
|
+
color: blue;
|
8
|
+
}
|
9
|
+
.rateSelect{
|
10
|
+
width: 120px;
|
11
|
+
}
|
12
|
+
.normalVideo{
|
13
|
+
color: blue;
|
14
|
+
}
|
15
|
+
.shoppingCart{
|
16
|
+
color: #F60;
|
17
|
+
}
|
18
|
+
.selectFile{
|
19
|
+
padding: 12px 0 0;
|
20
|
+
}
|
21
|
+
.submits{
|
22
|
+
text-align: right;
|
23
|
+
padding: 0 0 36px 0;
|
24
|
+
}
|
25
|
+
.accountListWarp{
|
26
|
+
display: flex;
|
27
|
+
flex-direction: row;
|
28
|
+
.accountList{
|
29
|
+
flex: 2;
|
30
|
+
margin-left: 5px;
|
31
|
+
}
|
32
|
+
.renew{
|
33
|
+
font-size: 20px;
|
34
|
+
padding: 0 12px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.followerCount {
|
39
|
+
background-color: #F2F2F2;
|
40
|
+
border-radius: 3px;
|
41
|
+
font-size: smaller;
|
42
|
+
line-height: 1em;
|
43
|
+
margin-left: 3px;
|
44
|
+
padding: 2px 3px;
|
45
|
+
}
|
46
|
+
.notLoginValid {
|
47
|
+
margin-left: 5px;
|
48
|
+
|
49
|
+
}
|
50
|
+
.nicknameRemark {
|
51
|
+
color: #999;
|
52
|
+
padding: 0 3px;
|
53
|
+
}
|
54
|
+
|
55
|
+
.batchOperate{
|
56
|
+
display: flex;
|
57
|
+
flex-direction: row;
|
58
|
+
justify-content: space-between;
|
59
|
+
padding: 0 0 12px 0;
|
60
|
+
margin: -16px 0 0 0;
|
61
|
+
.ant-form-item{
|
62
|
+
margin-bottom: 0;
|
63
|
+
}
|
64
|
+
.shoppingCar{
|
65
|
+
font-size: 20px;
|
66
|
+
}
|
67
|
+
.videoTitleInput,
|
68
|
+
.goodsTitleInput{
|
69
|
+
width: 260px;
|
70
|
+
}
|
71
|
+
.videoKindTag{
|
72
|
+
width: 180px;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
@@ -289,8 +289,10 @@ var VideoPublishSelectList = function VideoPublishSelectList(_ref) {
|
|
289
289
|
rowKey: function rowKey(record, index) {
|
290
290
|
var encoder = new TextEncoder(); // 创建一个TextEncoder实例
|
291
291
|
var encoded = encoder.encode(JSON.stringify(record)); // 编码为UTF-8
|
292
|
-
|
293
|
-
|
292
|
+
var key = "".concat(index, "-").concat(encoded.join(''));
|
293
|
+
console.log("encoded key:", key); // 输出UTF-8编码的Uint8Array
|
294
|
+
|
295
|
+
return key;
|
294
296
|
},
|
295
297
|
loading: false,
|
296
298
|
columns: columns,
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -160,6 +160,7 @@ declare const Tool: {
|
|
160
160
|
getOsName(): Global.OsName;
|
161
161
|
OsPathSeparator(): string;
|
162
162
|
getTitleByPath(path: string): string;
|
163
|
+
getDirByPath(path: string): string;
|
163
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
164
165
|
notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
165
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
package/dist/lib/Tool.js
CHANGED
@@ -1139,6 +1139,13 @@ var Tool = _objectSpread(_objectSpread({
|
|
1139
1139
|
var splitWord = this.OsPathSeparator();
|
1140
1140
|
return path.slice(path.lastIndexOf(splitWord) + 1);
|
1141
1141
|
},
|
1142
|
+
/*
|
1143
|
+
* 获取 文件夹 路径,即不要名字
|
1144
|
+
* */
|
1145
|
+
getDirByPath: function getDirByPath(path) {
|
1146
|
+
var list = (path === null || path === void 0 ? void 0 : path.split(/[/\\]/)) || [];
|
1147
|
+
return list.slice(0, -1).join('/');
|
1148
|
+
},
|
1142
1149
|
h5Pay: function h5Pay(query) {
|
1143
1150
|
var data = JSON.stringify(_objectSpread({
|
1144
1151
|
payBackUrl: document.location.href
|
@@ -1 +1,4 @@
|
|
1
1
|
export declare function isExist(body: File.IsExistQuery, options?: ServicesApi.RequestOptions): Promise<File.IsExistResult>;
|
2
|
+
export declare function getFolderTxtListContent(body: {
|
3
|
+
folderPath: string;
|
4
|
+
}, options?: ServicesApi.RequestOptions): Promise<File.FolderTxtListContentList[]>;
|
@@ -24,4 +24,27 @@ function _isExist() {
|
|
24
24
|
}, _callee);
|
25
25
|
}));
|
26
26
|
return _isExist.apply(this, arguments);
|
27
|
+
}
|
28
|
+
export function getFolderTxtListContent(_x3, _x4) {
|
29
|
+
return _getFolderTxtListContent.apply(this, arguments);
|
30
|
+
}
|
31
|
+
function _getFolderTxtListContent() {
|
32
|
+
_getFolderTxtListContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
|
33
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
34
|
+
while (1) switch (_context2.prev = _context2.next) {
|
35
|
+
case 0:
|
36
|
+
return _context2.abrupt("return", request("_video-api/file/getFolderTxtListContent", _objectSpread({
|
37
|
+
method: 'POST',
|
38
|
+
headers: {
|
39
|
+
'Content-Type': 'application/json'
|
40
|
+
},
|
41
|
+
data: body
|
42
|
+
}, options || {})));
|
43
|
+
case 1:
|
44
|
+
case "end":
|
45
|
+
return _context2.stop();
|
46
|
+
}
|
47
|
+
}, _callee2);
|
48
|
+
}));
|
49
|
+
return _getFolderTxtListContent.apply(this, arguments);
|
27
50
|
}
|
package/dist/types/File.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare const _default: {
|
3
|
-
videoPublishCreateTask: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
4
|
-
followerCount: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
5
|
-
notLoginValid: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
|
6
|
-
nicknameRemark: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
7
|
-
};
|
8
|
-
export default _default;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
3
|
-
import styled from 'styled-components';
|
4
|
-
export default {
|
5
|
-
videoPublishCreateTask: styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 0 12px 0 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n .groupIcon{\n color: blue;\n }\n .rateSelect{\n width: 120px;\n }\n .normalVideo{\n color: blue;\n }\n .shoppingCart{\n color: #F60;\n }\n .selectFile{\n padding: 12px 0 0;\n }\n .submits{\n text-align: right;\n padding: 0 0 36px 0;\n }\n .accountListWarp{\n display: flex;\n flex-direction: row;\n .accountList{\n flex: 2;\n margin-left: 5px;\n }\n .renew{\n font-size: 20px;\n padding: 0 12px;\n }\n }\n "]))),
|
6
|
-
followerCount: styled.small(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: #F2F2F2;\n border-radius: 3px;\n font-size: smaller;\n line-height: 1em;\n margin-left: 3px;\n padding: 2px 3px;\n\n "]))),
|
7
|
-
notLoginValid: styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 5px;\n\n "]))),
|
8
|
-
nicknameRemark: styled.small(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: #999;\n padding: 0 3px;\n "])))
|
9
|
-
};
|