component-shipinlv 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Auth/index.js +7 -3
- package/dist/AuthClient/qr/index.js +7 -3
- package/dist/VideoPublish/account-manage/home.js +3 -4
- package/dist/VideoPublish/account-manage/list.js +2 -2
- package/dist/VideoPublish/publish-task-plan/tool.js +6 -5
- package/dist/component/is-installed-chrome.js +2 -2
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/accountManageSettingConfig.js +2 -2
- package/dist/lib/request.js +2 -2
- package/dist/window.d.ts +1 -1
- package/package.json +1 -1
package/dist/Auth/index.js
CHANGED
@@ -229,12 +229,16 @@ var Auth = function Auth(_ref) {
|
|
229
229
|
return h5WePublicLogin();
|
230
230
|
case 4:
|
231
231
|
setLoading(false);
|
232
|
-
_context3.next =
|
232
|
+
_context3.next = 10;
|
233
233
|
break;
|
234
234
|
case 7:
|
235
|
-
|
235
|
+
if (!loginTypeList.includes('wechat')) {
|
236
|
+
_context3.next = 10;
|
237
|
+
break;
|
238
|
+
}
|
239
|
+
_context3.next = 10;
|
236
240
|
return runWeLoginQr();
|
237
|
-
case
|
241
|
+
case 10:
|
238
242
|
case "end":
|
239
243
|
return _context3.stop();
|
240
244
|
}
|
@@ -232,12 +232,16 @@ var LoginQr = function LoginQr(_ref) {
|
|
232
232
|
return h5WePublicLogin();
|
233
233
|
case 4:
|
234
234
|
setLoading(false);
|
235
|
-
_context3.next =
|
235
|
+
_context3.next = 10;
|
236
236
|
break;
|
237
237
|
case 7:
|
238
|
-
|
238
|
+
if (wechatDisabled) {
|
239
|
+
_context3.next = 10;
|
240
|
+
break;
|
241
|
+
}
|
242
|
+
_context3.next = 10;
|
239
243
|
return runWeLoginQr();
|
240
|
-
case
|
244
|
+
case 10:
|
241
245
|
case "end":
|
242
246
|
return _context3.stop();
|
243
247
|
}
|
@@ -112,10 +112,9 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
|
|
112
112
|
description: "\u8BF7\u9009\u62E9\u8D26\u53F7",
|
113
113
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
114
114
|
}) : /*#__PURE__*/_jsx(Result, {
|
115
|
-
status: "403"
|
116
|
-
|
117
|
-
|
118
|
-
title: "\u4E0B\u4E00\u7248\u672C\uFF0C\u5373\u5C06\u53D1\u5E03"
|
115
|
+
status: "403",
|
116
|
+
title: "\u6CA1\u6709\u81EA\u52A8\u53D1\u5E03\u6743\u9650\uFF0C\u8054\u7CFB\u4EE3\u7406\u8D2D\u4E70\u6FC0\u6D3B\u7801"
|
117
|
+
// title="下一版本,即将发布"
|
119
118
|
// subTitle="如有需要,请联系管理员开通"
|
120
119
|
,
|
121
120
|
extra: [/*#__PURE__*/_jsx(_Fragment, {})]
|
@@ -151,7 +151,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
151
151
|
};
|
152
152
|
var onAdd = /*#__PURE__*/function () {
|
153
153
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(platform) {
|
154
|
-
var _window$
|
154
|
+
var _window$getBridge, _window;
|
155
155
|
var settingConfig, addAccountResult, postData;
|
156
156
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
157
157
|
while (1) switch (_context.prev = _context.next) {
|
@@ -173,7 +173,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
173
173
|
// window.bridge.ipcRenderer.sendMessage( eventName ); // 添加抖音账号
|
174
174
|
settingConfig = AccountManageSettingConfig();
|
175
175
|
_context.next = 9;
|
176
|
-
return (_window$
|
176
|
+
return (_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.ipcRenderer.invoke('shipinlv-video-account-add', platform, settingConfig.isChromeOpen).catch(function (err) {
|
177
177
|
Notification.notificationError('获取账号信息错误' + ((err === null || err === void 0 ? void 0 : err.message) || JSON.stringify(err)));
|
178
178
|
});
|
179
179
|
case 9:
|
@@ -23,8 +23,9 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
|
|
23
23
|
key: "onInit",
|
24
24
|
value: function onInit() {
|
25
25
|
var _this = this,
|
26
|
-
_window$
|
27
|
-
_window
|
26
|
+
_window$getBridge,
|
27
|
+
_window,
|
28
|
+
_window$getBridge$onL;
|
28
29
|
setInterval(function () {
|
29
30
|
if (_this.isPublishing) {
|
30
31
|
return;
|
@@ -33,7 +34,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
|
|
33
34
|
}, 2e3);
|
34
35
|
|
35
36
|
// 桥
|
36
|
-
(_window$
|
37
|
+
(_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge = _window$getBridge.call(_window)) === null || _window$getBridge === void 0 || (_window$getBridge$onL = _window$getBridge.onLog) === null || _window$getBridge$onL === void 0 || _window$getBridge$onL.call(_window$getBridge, function (query) {
|
37
38
|
event.run('shipinlv-video-publish-log', query);
|
38
39
|
});
|
39
40
|
}
|
@@ -251,7 +252,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
|
|
251
252
|
case 2:
|
252
253
|
return _context7.abrupt("return", new Promise( /*#__PURE__*/function () {
|
253
254
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(resolve, reject) {
|
254
|
-
var _window$
|
255
|
+
var _window$getBridge2, _window2;
|
255
256
|
var settingConfig, publishResult, errLog, err;
|
256
257
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
257
258
|
while (1) switch (_context6.prev = _context6.next) {
|
@@ -259,7 +260,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
|
|
259
260
|
settingConfig = AccountManageSettingConfig();
|
260
261
|
console.log('settingConfig 1:', settingConfig);
|
261
262
|
_context6.next = 4;
|
262
|
-
return (_window$
|
263
|
+
return (_window$getBridge2 = (_window2 = window).getBridge) === null || _window$getBridge2 === void 0 ? void 0 : _window$getBridge2.call(_window2).videoPublish({
|
263
264
|
platformVideoAccountId: platformVideoAccountId,
|
264
265
|
platform: platform,
|
265
266
|
open: settingConfig.isChromeOpen,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
var isInstalledChrome = function isInstalledChrome() {
|
2
|
-
var _window$
|
3
|
-
return !!((_window$
|
2
|
+
var _window$getBridge, _window;
|
3
|
+
return !!((_window$getBridge = (_window = window).getBridge) !== null && _window$getBridge !== void 0 && _window$getBridge.call(_window).getChromiumPath());
|
4
4
|
};
|
5
5
|
export default isInstalledChrome;
|
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;
|
@@ -2,13 +2,13 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import store from "./store";
|
3
3
|
var AccountManageSettingConfigKey = 'account-manage-setting';
|
4
4
|
var AccountManageSettingConfig = function AccountManageSettingConfig(data) {
|
5
|
-
var _window$
|
5
|
+
var _window$getBridge, _window;
|
6
6
|
if (data) {
|
7
7
|
store.set(AccountManageSettingConfigKey, _objectSpread({}, data));
|
8
8
|
return data;
|
9
9
|
}
|
10
10
|
console.log('AccountManageSettingConfig get');
|
11
|
-
var chromePath = (_window$
|
11
|
+
var chromePath = (_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.call(_window).getChromiumPath();
|
12
12
|
var outData = _objectSpread({
|
13
13
|
isChromeOpen: false,
|
14
14
|
disabledApplyTask: false,
|
package/dist/lib/request.js
CHANGED
@@ -6,7 +6,7 @@ import getApiUrl, { getApiEnv, getMainPort } from "./getApiUrl";
|
|
6
6
|
import goAuth from "./goAuth";
|
7
7
|
import Tool from "./Tool";
|
8
8
|
var requestApi = function requestApi() {
|
9
|
-
var _window$
|
9
|
+
var _window$getBridge, _window, _window$getBridge$cal, _window$getBridge$cal2;
|
10
10
|
var api = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
11
11
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
12
12
|
// 要请求的 url
|
@@ -20,7 +20,7 @@ var requestApi = function requestApi() {
|
|
20
20
|
var postUrl = url + (url.indexOf('?') === -1 ? '?' : '&') + '_token_=' + token;
|
21
21
|
|
22
22
|
// clientId
|
23
|
-
postUrl += "&clientUniqueKey=".concat(((_window$
|
23
|
+
postUrl += "&clientUniqueKey=".concat(((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge$cal = (_window$getBridge$cal2 = _window$getBridge.call(_window)).getClientUniqueKey) === null || _window$getBridge$cal === void 0 ? void 0 : _window$getBridge$cal.call(_window$getBridge$cal2)) || '');
|
24
24
|
|
25
25
|
// 追加环境参数
|
26
26
|
var env = getApiEnv(options === null || options === void 0 ? void 0 : options.env);
|
package/dist/window.d.ts
CHANGED