component-shipinlv 1.3.6 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/VideoPublish/account-manage/home.js +1 -1
- package/dist/VideoPublish/account-manage/list.js +1 -1
- package/dist/VideoPublish/account-manage/setting/index.js +2 -0
- package/dist/VideoPublish/publish-task-plan/tool.js +66 -12
- package/dist/VideoPublish/video-publish-statistic/index.js +18 -3
- package/dist/VideoPublish/video-publish-statistic/{list.js → operation/list.js} +5 -5
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.d.ts +7 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +228 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.less +105 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.d.ts +8 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +57 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.less +3 -0
- package/dist/component/isFileExist.d.ts +2 -0
- package/dist/component/isFileExist.js +50 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/getPublishExtensionDir.d.ts +2 -0
- package/dist/lib/getPublishExtensionDir.js +55 -0
- package/dist/lib/openChrome.d.ts +1 -1
- package/dist/lib/openChrome.js +210 -113
- package/dist/lib/video-api/open-chrome.js +3 -1
- package/dist/service/local/VideoPublishTaskController.js +1 -1
- package/dist/service/video-api/BaseController.d.ts +1 -0
- package/dist/service/video-api/BaseController.js +27 -0
- package/dist/service/video-api/FileController.d.ts +1 -0
- package/dist/service/video-api/FileController.js +27 -0
- package/dist/types/File.d.ts +8 -0
- package/dist/types/File.js +0 -0
- package/dist/types/VideoPublishLog.d.ts +1 -1
- package/dist/types/VideoPublishVideoAccount.d.ts +1 -0
- package/dist/types/VidepApiBase.d.ts +5 -0
- package/dist/types/VidepApiBase.js +0 -0
- package/package.json +1 -1
- /package/dist/VideoPublish/video-publish-statistic/{list.d.ts → operation/list.d.ts} +0 -0
- /package/dist/VideoPublish/video-publish-statistic/{list.less → operation/list.less} +0 -0
- /package/dist/VideoPublish/video-publish-statistic/{query.d.ts → operation/query.d.ts} +0 -0
- /package/dist/VideoPublish/video-publish-statistic/{query.js → operation/query.js} +0 -0
- /package/dist/VideoPublish/video-publish-statistic/{query.less → operation/query.less} +0 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
|
+
import * as FileController from "../service/video-api/FileController";
|
4
|
+
var isFileExist = /*#__PURE__*/function () {
|
5
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(filePath) {
|
6
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
7
|
+
while (1) switch (_context2.prev = _context2.next) {
|
8
|
+
case 0:
|
9
|
+
return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
|
10
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
|
11
|
+
var result;
|
12
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
13
|
+
while (1) switch (_context.prev = _context.next) {
|
14
|
+
case 0:
|
15
|
+
_context.next = 2;
|
16
|
+
return FileController.isExist({
|
17
|
+
filePath: filePath
|
18
|
+
}).catch(function (err) {
|
19
|
+
reject(err);
|
20
|
+
});
|
21
|
+
case 2:
|
22
|
+
result = _context.sent;
|
23
|
+
if (result) {
|
24
|
+
_context.next = 5;
|
25
|
+
break;
|
26
|
+
}
|
27
|
+
return _context.abrupt("return");
|
28
|
+
case 5:
|
29
|
+
resolve(result);
|
30
|
+
case 6:
|
31
|
+
case "end":
|
32
|
+
return _context.stop();
|
33
|
+
}
|
34
|
+
}, _callee);
|
35
|
+
}));
|
36
|
+
return function (_x2, _x3) {
|
37
|
+
return _ref2.apply(this, arguments);
|
38
|
+
};
|
39
|
+
}()));
|
40
|
+
case 1:
|
41
|
+
case "end":
|
42
|
+
return _context2.stop();
|
43
|
+
}
|
44
|
+
}, _callee2);
|
45
|
+
}));
|
46
|
+
return function isFileExist(_x) {
|
47
|
+
return _ref.apply(this, arguments);
|
48
|
+
};
|
49
|
+
}();
|
50
|
+
export default isFileExist;
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -161,7 +161,7 @@ declare const Tool: {
|
|
161
161
|
OsPathSeparator(): string;
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
h5Pay(query: Pay.H5PayQuery): void;
|
164
|
-
notification(type: "
|
164
|
+
notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
165
165
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
|
+
import { getLocalVideoServerDir } from "../service/video-api/BaseController";
|
4
|
+
var getPublishExtensionDir = /*#__PURE__*/function () {
|
5
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(env) {
|
6
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
7
|
+
while (1) switch (_context2.prev = _context2.next) {
|
8
|
+
case 0:
|
9
|
+
return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
|
10
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
|
11
|
+
var result, dir;
|
12
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
13
|
+
while (1) switch (_context.prev = _context.next) {
|
14
|
+
case 0:
|
15
|
+
_context.next = 2;
|
16
|
+
return getLocalVideoServerDir().catch(function (err) {
|
17
|
+
reject(err);
|
18
|
+
});
|
19
|
+
case 2:
|
20
|
+
result = _context.sent;
|
21
|
+
if (result) {
|
22
|
+
_context.next = 5;
|
23
|
+
break;
|
24
|
+
}
|
25
|
+
return _context.abrupt("return");
|
26
|
+
case 5:
|
27
|
+
if (!(env === 'local')) {
|
28
|
+
_context.next = 7;
|
29
|
+
break;
|
30
|
+
}
|
31
|
+
return _context.abrupt("return", resolve('/Volumes/Data/Web/shipinlv/chrome-shipinlv-video-publish/public'));
|
32
|
+
case 7:
|
33
|
+
dir = result.dirPath + '/../../../chrome-publish-plugin';
|
34
|
+
resolve(dir);
|
35
|
+
case 9:
|
36
|
+
case "end":
|
37
|
+
return _context.stop();
|
38
|
+
}
|
39
|
+
}, _callee);
|
40
|
+
}));
|
41
|
+
return function (_x2, _x3) {
|
42
|
+
return _ref2.apply(this, arguments);
|
43
|
+
};
|
44
|
+
}()));
|
45
|
+
case 1:
|
46
|
+
case "end":
|
47
|
+
return _context2.stop();
|
48
|
+
}
|
49
|
+
}, _callee2);
|
50
|
+
}));
|
51
|
+
return function getPublishExtensionDir(_x) {
|
52
|
+
return _ref.apply(this, arguments);
|
53
|
+
};
|
54
|
+
}();
|
55
|
+
export default getPublishExtensionDir;
|
package/dist/lib/openChrome.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const openChrome: (query: ChromeOperate.PropsQuery, isNew: boolean) => Promise<
|
1
|
+
declare const openChrome: (query: ChromeOperate.PropsQuery, isNew: boolean, env: Global.Env | '' | undefined) => Promise<unknown>;
|
2
2
|
export default openChrome;
|
package/dist/lib/openChrome.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
4
|
import AccountManageSettingConfig from "./accountManageSettingConfig";
|
4
5
|
import param from "../component/param";
|
@@ -8,139 +9,235 @@ import userAgent from "./user-agent";
|
|
8
9
|
import VideoApiOpenChrome from "./video-api/open-chrome";
|
9
10
|
import sleep from "./sleep";
|
10
11
|
import VideoApiQuitChrome from "./video-api/quit-chrome";
|
12
|
+
import event from "./event";
|
13
|
+
import * as VideoPublishCrawlerTaskController from "../service/api/VideoPublishCrawlerTaskController";
|
14
|
+
import * as LocalVideoPublishTaskController from "../service/local/VideoPublishTaskController";
|
15
|
+
import getPublishExtensionDir from "./getPublishExtensionDir";
|
16
|
+
|
11
17
|
// @isNew: 只有 新建账户,才要 isNew
|
12
18
|
var openChrome = /*#__PURE__*/function () {
|
13
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
14
|
-
var settingConfig
|
15
|
-
return _regeneratorRuntime().wrap(function
|
16
|
-
while (1) switch (
|
19
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(query, isNew, env) {
|
20
|
+
var settingConfig;
|
21
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
22
|
+
while (1) switch (_context3.prev = _context3.next) {
|
17
23
|
case 0:
|
18
24
|
settingConfig = AccountManageSettingConfig();
|
19
25
|
if (!query.chromePath) {
|
20
26
|
query.chromePath = settingConfig.chromePath;
|
21
27
|
}
|
22
28
|
if (query.chromePath) {
|
23
|
-
|
29
|
+
_context3.next = 5;
|
24
30
|
break;
|
25
31
|
}
|
26
32
|
notification.notificationError('没找到 Google 浏览器', '请设置 谷歌浏览器地址,或者重新安装 https://google.cn/chrome/');
|
27
|
-
return
|
33
|
+
return _context3.abrupt("return");
|
28
34
|
case 5:
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
35
|
+
return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
|
36
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(resolve, reject) {
|
37
|
+
var data, cmdResult;
|
38
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
39
|
+
while (1) switch (_context2.prev = _context2.next) {
|
40
|
+
case 0:
|
41
|
+
_context2.next = 2;
|
42
|
+
return getOpenQuery(query, isNew, settingConfig, env).catch(function (err) {
|
43
|
+
reject(err);
|
44
|
+
});
|
45
|
+
case 2:
|
46
|
+
data = _context2.sent;
|
47
|
+
if (data) {
|
48
|
+
_context2.next = 5;
|
49
|
+
break;
|
50
|
+
}
|
51
|
+
return _context2.abrupt("return");
|
52
|
+
case 5:
|
53
|
+
if (!query.chromeProfileName) {
|
54
|
+
_context2.next = 10;
|
55
|
+
break;
|
56
|
+
}
|
57
|
+
_context2.next = 8;
|
58
|
+
return VideoApiQuitChrome({
|
59
|
+
platform: query.platform,
|
60
|
+
platformVideoAccountId: query.platformAccountId,
|
61
|
+
chromeProfileName: query.chromeProfileName
|
62
|
+
}).catch(function (err) {
|
63
|
+
console.warn('关闭 chrome 失败', query);
|
64
|
+
});
|
65
|
+
case 8:
|
66
|
+
_context2.next = 10;
|
67
|
+
return sleep(2e3);
|
68
|
+
case 10:
|
69
|
+
_context2.next = 12;
|
70
|
+
return VideoApiOpenChrome({
|
71
|
+
commandList: data.commandList
|
72
|
+
}).catch( /*#__PURE__*/function () {
|
73
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(err) {
|
74
|
+
var sendData;
|
75
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
76
|
+
while (1) switch (_context.prev = _context.next) {
|
77
|
+
case 0:
|
78
|
+
console.log('open chrome err:', err);
|
79
|
+
notification.notificationError('打开 Google 浏览器 失败', err === null || err === void 0 ? void 0 : err.message);
|
80
|
+
sendData = {
|
81
|
+
success: false,
|
82
|
+
platform: query.platform,
|
83
|
+
platformAccountId: query.platformAccountId,
|
84
|
+
code: 'open-chrome-fail',
|
85
|
+
message: (err === null || err === void 0 ? void 0 : err.message) || JSON.stringify(err),
|
86
|
+
taskId: query.taskId,
|
87
|
+
taskType: 'publish-video'
|
88
|
+
};
|
89
|
+
event.run('publish-video-log-publish-video', sendData);
|
90
|
+
|
91
|
+
// 发消息 , 不管结果,无论失败
|
92
|
+
LocalVideoPublishTaskController.sendMessageToPort(_objectSpread({}, sendData));
|
93
|
+
VideoPublishCrawlerTaskController.report(_objectSpread({}, sendData), {
|
94
|
+
// env: this.env,
|
95
|
+
});
|
96
|
+
_context.next = 8;
|
97
|
+
return sleep(2e3);
|
98
|
+
case 8:
|
99
|
+
reject(err);
|
100
|
+
|
101
|
+
// VideoPublishCrawlerTaskController.report({
|
102
|
+
// success: false,
|
103
|
+
// code: 'open-chrome-fail',
|
104
|
+
// message: err?.message,
|
105
|
+
//
|
106
|
+
// taskType: '',
|
107
|
+
// taskId: query.taskId,
|
108
|
+
// platform: query.platform,
|
109
|
+
// platformAccountId: query.platformAccountId,
|
110
|
+
// },{
|
111
|
+
// // env,
|
112
|
+
// });
|
113
|
+
case 9:
|
114
|
+
case "end":
|
115
|
+
return _context.stop();
|
116
|
+
}
|
117
|
+
}, _callee);
|
118
|
+
}));
|
119
|
+
return function (_x6) {
|
120
|
+
return _ref3.apply(this, arguments);
|
121
|
+
};
|
122
|
+
}());
|
123
|
+
case 12:
|
124
|
+
cmdResult = _context2.sent;
|
125
|
+
console.log("cmd:", query);
|
126
|
+
if (cmdResult) {
|
127
|
+
_context2.next = 16;
|
128
|
+
break;
|
129
|
+
}
|
130
|
+
return _context2.abrupt("return");
|
131
|
+
case 16:
|
132
|
+
resolve(true);
|
133
|
+
case 17:
|
134
|
+
case "end":
|
135
|
+
return _context2.stop();
|
136
|
+
}
|
137
|
+
}, _callee2);
|
138
|
+
}));
|
139
|
+
return function (_x4, _x5) {
|
140
|
+
return _ref2.apply(this, arguments);
|
141
|
+
};
|
142
|
+
}()));
|
143
|
+
case 6:
|
77
144
|
case "end":
|
78
|
-
return
|
145
|
+
return _context3.stop();
|
79
146
|
}
|
80
|
-
},
|
147
|
+
}, _callee3);
|
81
148
|
}));
|
82
|
-
return function openChrome(_x, _x2) {
|
149
|
+
return function openChrome(_x, _x2, _x3) {
|
83
150
|
return _ref.apply(this, arguments);
|
84
151
|
};
|
85
152
|
}();
|
86
|
-
var getOpenQuery = function
|
87
|
-
var
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
cmdList.push("-n");
|
119
|
-
}
|
120
|
-
cmdList.push("-a", "".concat(query.chromePath || 'Google Chrome'), "--args");
|
121
|
-
if (!query.isOpen) {
|
122
|
-
cmdList.push("--headless");
|
153
|
+
var getOpenQuery = /*#__PURE__*/function () {
|
154
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(query, isNew, settingConfig, env) {
|
155
|
+
var cmdList, url, openUrl, chromeProfileDir, publishExtensionDir;
|
156
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
157
|
+
while (1) switch (_context4.prev = _context4.next) {
|
158
|
+
case 0:
|
159
|
+
cmdList = [];
|
160
|
+
url = query.url; // todo
|
161
|
+
query.isOpen = true;
|
162
|
+
openUrl = url + ((url === null || url === void 0 ? void 0 : url.indexOf('?')) === -1 ? '?' : '&') + param({
|
163
|
+
_shipinlvFrom: 'auto',
|
164
|
+
_action: query.action || '',
|
165
|
+
_platformAccountId: query.platformAccountId,
|
166
|
+
_nickname: query.nickname || '',
|
167
|
+
_chromeProfileName: query.chromeProfileName || ''
|
168
|
+
});
|
169
|
+
chromeProfileDir = settingConfig.chromeUserDataDir + '/' + query.chromeProfileName;
|
170
|
+
_context4.t0 = Tool.getOsName();
|
171
|
+
_context4.next = _context4.t0 === "windows" ? 8 : _context4.t0 === "darwin" ? 11 : 16;
|
172
|
+
break;
|
173
|
+
case 8:
|
174
|
+
// 艹,屎一样的 windows cmd
|
175
|
+
// powershell -NoProfile -Command "Start-Process -FilePath 'C:\Program Files\Google\Chrome\Application\chrome.exe'"
|
176
|
+
// cmdList.push( "cmd", "/c", "start" );
|
177
|
+
// cmdList.push( "powershell", "-NoProfile", "-Command", "\"Start-Process", "-FilePath" );
|
178
|
+
if (query.chromePath) {
|
179
|
+
cmdList.push("".concat(query.chromePath));
|
180
|
+
} else {
|
181
|
+
cmdList.push("chrome");
|
182
|
+
}
|
183
|
+
if (!query.isOpen) {
|
184
|
+
cmdList.push("--headless=old");
|
123
185
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
186
|
+
// --disable-gpu是为了解决一些在无头模式下可能出现的GPU相关的问题
|
187
|
+
cmdList.push("--disable-gpu");
|
188
|
+
}
|
189
|
+
return _context4.abrupt("break", 17);
|
190
|
+
case 11:
|
191
|
+
cmdList = ["open"];
|
192
|
+
if (isNew) {
|
193
|
+
cmdList.push("-n");
|
194
|
+
}
|
195
|
+
cmdList.push("-a", "".concat(query.chromePath || 'Google Chrome'), "--args");
|
196
|
+
if (!query.isOpen) {
|
197
|
+
cmdList.push("--headless");
|
131
198
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
199
|
+
// --disable-gpu是为了解决一些在无头模式下可能出现的GPU相关的问题
|
200
|
+
cmdList.push("--disable-gpu");
|
201
|
+
}
|
202
|
+
return _context4.abrupt("break", 17);
|
203
|
+
case 16:
|
204
|
+
notification.notificationError('不支持的系统', '发布不支持此系统');
|
205
|
+
case 17:
|
206
|
+
// 尺寸
|
207
|
+
cmdList.push("--window-position=".concat(-window.screen.width + 20, ",10"));
|
208
|
+
cmdList.push("--window-size=".concat(window.screen.width, ",").concat(window.screen.height - 100));
|
209
|
+
cmdList.push("--user-data-dir=".concat(chromeProfileDir));
|
210
|
+
cmdList.push("--user-agent=".concat(userAgent()));
|
136
211
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
212
|
+
// 不要检查
|
213
|
+
cmdList.push('--no-first-run', '--no-default-browser-check', '--disable-default-apps');
|
214
|
+
_context4.next = 24;
|
215
|
+
return getPublishExtensionDir(env).catch(function (err) {
|
216
|
+
notification.notificationError('获取插件地址失败', err.message);
|
217
|
+
});
|
218
|
+
case 24:
|
219
|
+
publishExtensionDir = _context4.sent;
|
220
|
+
if (publishExtensionDir) {
|
221
|
+
_context4.next = 27;
|
222
|
+
break;
|
223
|
+
}
|
224
|
+
return _context4.abrupt("return", Promise.reject(new Error('获取插件地址失败')));
|
225
|
+
case 27:
|
226
|
+
cmdList.push("--load-extension=".concat(publishExtensionDir));
|
227
|
+
cmdList.push("".concat(openUrl));
|
228
|
+
console.log('profileName:', cmdList, chromeProfileDir);
|
229
|
+
return _context4.abrupt("return", {
|
230
|
+
commandList: cmdList,
|
231
|
+
chromeProfileDir: chromeProfileDir
|
232
|
+
});
|
233
|
+
case 31:
|
234
|
+
case "end":
|
235
|
+
return _context4.stop();
|
236
|
+
}
|
237
|
+
}, _callee4);
|
238
|
+
}));
|
239
|
+
return function getOpenQuery(_x7, _x8, _x9, _x10) {
|
240
|
+
return _ref4.apply(this, arguments);
|
144
241
|
};
|
145
|
-
};
|
242
|
+
}();
|
146
243
|
export default openChrome;
|
@@ -13,7 +13,9 @@ var VideoApiOpenChrome = /*#__PURE__*/function () {
|
|
13
13
|
while (1) switch (_context.prev = _context.next) {
|
14
14
|
case 0:
|
15
15
|
_context.next = 2;
|
16
|
-
return VideoApiOpenChromeController.openChrome(query
|
16
|
+
return VideoApiOpenChromeController.openChrome(query, {
|
17
|
+
timeout: 60e3
|
18
|
+
}).catch(function (err) {
|
17
19
|
// if( err?.name === "shipinlv-client-not-run" ){
|
18
20
|
// return reject( err );
|
19
21
|
// }
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function getLocalVideoServerDir(body?: {}, options?: ServicesApi.RequestOptions): Promise<VideoApiBase.LocalVideoServerDir>;
|
@@ -0,0 +1,27 @@
|
|
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 function getLocalVideoServerDir(_x, _x2) {
|
6
|
+
return _getLocalVideoServerDir.apply(this, arguments);
|
7
|
+
}
|
8
|
+
function _getLocalVideoServerDir() {
|
9
|
+
_getLocalVideoServerDir = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
|
10
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
11
|
+
while (1) switch (_context.prev = _context.next) {
|
12
|
+
case 0:
|
13
|
+
return _context.abrupt("return", request("_video-api/base/getLocalVideoServerDir", _objectSpread({
|
14
|
+
method: 'POST',
|
15
|
+
headers: {
|
16
|
+
'Content-Type': 'application/json'
|
17
|
+
},
|
18
|
+
data: body
|
19
|
+
}, options || {})));
|
20
|
+
case 1:
|
21
|
+
case "end":
|
22
|
+
return _context.stop();
|
23
|
+
}
|
24
|
+
}, _callee);
|
25
|
+
}));
|
26
|
+
return _getLocalVideoServerDir.apply(this, arguments);
|
27
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function isExist(body: File.IsExistQuery, options?: ServicesApi.RequestOptions): Promise<File.IsExistResult>;
|
@@ -0,0 +1,27 @@
|
|
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 function isExist(_x, _x2) {
|
6
|
+
return _isExist.apply(this, arguments);
|
7
|
+
}
|
8
|
+
function _isExist() {
|
9
|
+
_isExist = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
|
10
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
11
|
+
while (1) switch (_context.prev = _context.next) {
|
12
|
+
case 0:
|
13
|
+
return _context.abrupt("return", request("_video-api/file/isExist", _objectSpread({
|
14
|
+
method: 'POST',
|
15
|
+
headers: {
|
16
|
+
'Content-Type': 'application/json'
|
17
|
+
},
|
18
|
+
data: body
|
19
|
+
}, options || {})));
|
20
|
+
case 1:
|
21
|
+
case "end":
|
22
|
+
return _context.stop();
|
23
|
+
}
|
24
|
+
}, _callee);
|
25
|
+
}));
|
26
|
+
return _isExist.apply(this, arguments);
|
27
|
+
}
|
File without changes
|
File without changes
|
package/package.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|