component-shipinlv 2.3.2 → 2.3.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.
@@ -18,7 +18,6 @@ import toast from "../../lib/toast";
18
18
  import Money from "../../UI/Money";
19
19
  import AccountManageSettingConfig from "../../lib/accountManageSettingConfig";
20
20
  import VideoPlatform from "../../component/video-platform/logo";
21
- import isInstalledChrome from "../../component/is-installed-chrome";
22
21
  import Tool from "../../lib/Tool";
23
22
  import VideoPublishVideoAccountBaseInfo from "../video-account/base-info";
24
23
  import VideoPublishVideoAccountProxySelect from "../proxy/select";
@@ -195,31 +194,29 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
195
194
  Tool.toast("\u4E0D\u662F\u4F1A\u5458\uFF0C\u53EA\u80FD\u6DFB\u52A0 ".concat(NotVipCanAddAccountCount, "\u4E2A\u8D26\u6237"));
196
195
  return _context.abrupt("return");
197
196
  case 4:
198
- if (isInstalledChrome()) {
199
- _context.next = 8;
200
- break;
201
- }
202
- Tool.toast('没有安装谷歌浏览器(Chrome),请安装');
203
- onMenu('setting');
204
- return _context.abrupt("return");
205
- case 8:
197
+ // if( ! isInstalledChrome() ){
198
+ // Tool.toast('没有安装谷歌浏览器(Chrome),请安装');
199
+ // onMenu('setting');
200
+ // return;
201
+ // }
202
+
206
203
  console.log('onAdd:', platform);
207
204
  settingConfig = AccountManageSettingConfig();
208
205
  if (settingConfig.chromeUserDataDir) {
209
- _context.next = 14;
206
+ _context.next = 10;
210
207
  break;
211
208
  }
212
209
  notification.notificationError('请先设置:“谷歌浏览器 - 多开位置”', '选个稍微大点的盘存储,每个用户会有几百M的数据');
213
210
  onMenu('setting');
214
211
  return _context.abrupt("return");
215
- case 14:
212
+ case 10:
216
213
  if (!(listData.length >= 200)) {
217
- _context.next = 17;
214
+ _context.next = 13;
218
215
  break;
219
216
  }
220
217
  notification.notificationError('这电脑绑定到上限了', '每台电脑最多绑定 200 个账号');
221
218
  return _context.abrupt("return");
222
- case 17:
219
+ case 13:
223
220
  toast('正在启动浏览器,请扫码登录', 12);
224
221
 
225
222
  // const platformName = platform ; // == 'kuaishou' ? 'kwai' : '';
@@ -231,12 +228,12 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
231
228
  chromeProfileName = Date.now() + '-' + Tool.math.randWord(16);
232
229
  videoPlatformInfo = VideoPlatformDict[platform];
233
230
  if (videoPlatformInfo) {
234
- _context.next = 23;
231
+ _context.next = 19;
235
232
  break;
236
233
  }
237
234
  toast('请配置信息:' + platform);
238
235
  return _context.abrupt("return");
239
- case 23:
236
+ case 19:
240
237
  openChrome({
241
238
  action: 'add-account',
242
239
  platform: platform,
@@ -250,7 +247,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
250
247
  proxyInfo: proxyInfo,
251
248
  isOpen: true // settingConfig.isChromeOpen,
252
249
  }, true, env);
253
- case 24:
250
+ case 20:
254
251
  case "end":
255
252
  return _context.stop();
256
253
  }
@@ -4,11 +4,10 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
6
6
  import React, { useEffect, useState } from 'react';
7
- import { ConfigProvider, Divider, Form, InputNumber, Modal, Space, Switch, Tag, TimePicker, Tooltip } from 'antd';
7
+ import { ConfigProvider, Divider, Form, InputNumber, Modal, Space, Switch, Tag, TimePicker } from 'antd';
8
8
  import "./index.less";
9
9
  import LayoutContent from "../../../UI/LayoutContent";
10
10
  import AccountManageSettingConfig from "../../../lib/accountManageSettingConfig";
11
- import FileSelect from "../../../component/file-select";
12
11
  import Tool from "../../../lib/Tool";
13
12
  import FolderSelect from "../../../component/folder-select";
14
13
  import dayjs from "dayjs";
@@ -101,30 +100,6 @@ var AccountManageSettingPage = function AccountManageSettingPage(_ref) {
101
100
  _onFinish(formData);
102
101
  }
103
102
  })
104
- }), /*#__PURE__*/_jsx(Form.Item, {
105
- label: "\u8C37\u6B4C\u6D4F\u89C8\u5668\uFF08Chrome\uFF09\u4F4D\u7F6E"
106
- // name="disabledApplyTask"
107
- ,
108
- extra: /*#__PURE__*/_jsxs("div", {
109
- children: ["\u4E0B\u8F7D\u5730\u5740", /*#__PURE__*/_jsx(Tooltip, {
110
- title: "https://google.cn/chrome/",
111
- children: /*#__PURE__*/_jsx("a", {
112
- children: " https://google.cn/chrome/"
113
- })
114
- })]
115
- }),
116
- children: /*#__PURE__*/_jsx(FileSelect, {
117
- path: formData.chromePath,
118
- disabled: false,
119
- placeholder: "\u8BF7\u9009\u62E9 Chrome \u6D4F\u89C8\u5668\u8DEF\u5F84",
120
- allowClear: false,
121
- extName: extName,
122
- onFinish: function onFinish(chromePath) {
123
- formData.chromePath = chromePath;
124
- setFormData(_objectSpread({}, formData));
125
- _onFinish(formData);
126
- }
127
- })
128
103
  }), /*#__PURE__*/_jsx(Form.Item, {
129
104
  label: "\u8C37\u6B4C\u6D4F\u89C8\u5668 - \u591A\u5F00\u4F4D\u7F6E",
130
105
  children: /*#__PURE__*/_jsx(FolderSelect, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",