component-sanzhizhou 1.3.7 → 1.3.9

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.
@@ -7,7 +7,7 @@ var h5WePublicLogin = /*#__PURE__*/function () {
7
7
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8
8
  while (1) switch (_context.prev = _context.next) {
9
9
  case 0:
10
- document.location.replace("https://wechat-auth.shipinlv.com/auth/wechat/login?url=".concat(encodeURIComponent(document.location.href)));
10
+ document.location.replace("https://wechat-auth.sanzhizhou.com/auth/wechat/login?url=".concat(encodeURIComponent(document.location.href)));
11
11
  return _context.abrupt("return");
12
12
  case 2:
13
13
  case "end":
@@ -1,5 +1,5 @@
1
1
  var DealerUrlDict = {
2
- 1: 'shipinlv.com',
2
+ 1: 'sanzhizhou.com',
3
3
  6: 'shipinhu.com',
4
4
  18: 'douzhuli.shop',
5
5
  21: 'douxidong.com'
@@ -25,7 +25,7 @@ var fileList = /*#__PURE__*/function () {
25
25
  }, {
26
26
  silent: true
27
27
  }).catch(function (err) {
28
- if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
28
+ if ((err === null || err === void 0 ? void 0 : err.name) === "sanzhizhou-client-not-run") {
29
29
  return reject(err);
30
30
  }
31
31
  console.log('open In Folder err:', err);
@@ -25,7 +25,7 @@ var fileListContent = /*#__PURE__*/function () {
25
25
  }, {
26
26
  silent: true
27
27
  }).catch(function (err) {
28
- if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
28
+ if ((err === null || err === void 0 ? void 0 : err.name) === "sanzhizhou-client-not-run") {
29
29
  return reject(err);
30
30
  }
31
31
  console.log('open In Folder err:', err);
@@ -18,7 +18,7 @@ var fileSelect = /*#__PURE__*/function () {
18
18
  }, {
19
19
  silent: true
20
20
  }).catch(function (err) {
21
- if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
21
+ if ((err === null || err === void 0 ? void 0 : err.name) === "sanzhizhou-client-not-run") {
22
22
  return reject(err);
23
23
  }
24
24
  console.log('open In Folder err:', err);
@@ -18,7 +18,7 @@ var folderCreate = /*#__PURE__*/function () {
18
18
  }, {
19
19
  silent: true
20
20
  }).catch(function (err) {
21
- if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
21
+ if ((err === null || err === void 0 ? void 0 : err.name) === "sanzhizhou-client-not-run") {
22
22
  return reject(err);
23
23
  }
24
24
  console.log('create In Folder err:', err);
@@ -18,7 +18,7 @@ var folderOpen = /*#__PURE__*/function () {
18
18
  }, {
19
19
  silent: true
20
20
  }).catch(function (err) {
21
- if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
21
+ if ((err === null || err === void 0 ? void 0 : err.name) === "sanzhizhou-client-not-run") {
22
22
  return reject(err);
23
23
  }
24
24
  console.log('open In Folder err:', err);
@@ -18,7 +18,7 @@ var folderSelect = /*#__PURE__*/function () {
18
18
  }, {
19
19
  silent: true
20
20
  }).catch(function (err) {
21
- if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
21
+ if ((err === null || err === void 0 ? void 0 : err.name) === "sanzhizhou-client-not-run") {
22
22
  return reject(err);
23
23
  }
24
24
  console.log('open In Folder err:', err);
@@ -18,7 +18,7 @@ var openInFolder = /*#__PURE__*/function () {
18
18
  }, {
19
19
  silent: true
20
20
  }).catch(function (err) {
21
- if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
21
+ if ((err === null || err === void 0 ? void 0 : err.name) === "sanzhizhou-client-not-run") {
22
22
  return reject(err);
23
23
  }
24
24
  console.log('open In Folder err:', err);
@@ -19,7 +19,7 @@ var soundInfo = /*#__PURE__*/function () {
19
19
  }, {
20
20
  silent: true
21
21
  }).catch(function (err) {
22
- if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
22
+ if ((err === null || err === void 0 ? void 0 : err.name) === "sanzhizhou-client-not-run") {
23
23
  return reject(err);
24
24
  }
25
25
  console.log('open In Folder err:', err);
@@ -8,7 +8,7 @@ var Markdown = function Markdown(_ref) {
8
8
  var _ref$content = _ref.content,
9
9
  content = _ref$content === void 0 ? '' : _ref$content;
10
10
  return /*#__PURE__*/React.createElement("div", {
11
- className: "shipinlv-markdown markdown-body "
11
+ className: "sanzhizhou-markdown markdown-body "
12
12
  }, /*#__PURE__*/React.createElement(MarkdownToJsx, {
13
13
  options: {
14
14
  disableParsingRawHTML: false,
@@ -1,4 +1,4 @@
1
- .shipinlv-markdown{
1
+ .sanzhizhou-markdown{
2
2
  position: relative;
3
3
  line-height: 1.5em;
4
4
  word-break: break-all;
@@ -1,5 +1,15 @@
1
+ var _process;
1
2
  // 业务服务器 api
2
- export var currentEnv = 'prod';
3
+ // export const currentEnv: Global.Env = 'prod';
4
+ var isProduction = ((_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.NODE_ENV) === 'production';
5
+ export var currentEnv = function () {
6
+ var env = 'local';
7
+ // 防止发布搞错
8
+ if (isProduction) {
9
+ env = 'prod';
10
+ }
11
+ return env;
12
+ }();
3
13
  var ApiUrls = {
4
14
  local: {
5
15
  api: 'http://localhost:51818/',
package/dist/lib/Tool.js CHANGED
@@ -23,7 +23,7 @@ import PostMessage from "./postMessage";
23
23
  var packageJson = require("../../package.json");
24
24
  var store = {
25
25
  key: function key() {
26
- return ""; // _shipinlv_
26
+ return ""; // _sanzhizhou_
27
27
  },
28
28
  get: function get(name) {
29
29
  var getData;
@@ -1145,7 +1145,7 @@ var Tool = _objectSpread(_objectSpread({
1145
1145
  var data = JSON.stringify(_objectSpread({
1146
1146
  payBackUrl: document.location.href
1147
1147
  }, query));
1148
- document.location.href = 'https://pay.shipinlv.com/pay/we-h5?data=' + encodeURIComponent(data);
1148
+ document.location.href = 'https://pay.sanzhizhou.com/pay/we-h5?data=' + encodeURIComponent(data);
1149
1149
  }
1150
1150
  });
1151
1151
 
@@ -8,10 +8,10 @@ var envData = function envData() {
8
8
  return ((_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.WebBaseConfig) === null || _window3 === void 0 ? void 0 : _window3.currentEnv) || currentEnv;
9
9
  };
10
10
  export var getMainPort = function getMainPort() {
11
- return window.__ShipinlvMainPort || 61800;
11
+ return window.__SanzhizhouMainPort || 61800;
12
12
  };
13
13
  export var getLocalServerPort = function getLocalServerPort() {
14
- return window.__ShipinlvLocalServerPort || 61806;
14
+ return window.__SanzhizhouLocalServerPort || 61806;
15
15
  };
16
16
  var getApiUrl = function getApiUrl() {
17
17
  var _domain;
@@ -28,7 +28,7 @@ var getPublishExtensionDir = /*#__PURE__*/function () {
28
28
  _context.next = 7;
29
29
  break;
30
30
  }
31
- return _context.abrupt("return", resolve('/Volumes/Data/Web/shipinlv/chrome-shipinlv-video-publish/public'));
31
+ return _context.abrupt("return", resolve('/Volumes/Data/Web/sanzhizhou/chrome-sanzhizhou-video-publish/public'));
32
32
  case 7:
33
33
  dir = result.dirPath + '/../../../chrome-publish-plugin';
34
34
  resolve(dir);
@@ -161,13 +161,13 @@ var getOpenQuery = /*#__PURE__*/function () {
161
161
  url = query.url; // todo
162
162
  query.isOpen = true;
163
163
  openUrl = url + ((url === null || url === void 0 ? void 0 : url.indexOf('?')) === -1 ? '?' : '&') + param({
164
- _shipinlvFrom: 'auto',
164
+ _sanzhizhouFrom: 'auto',
165
165
  _action: query.action || '',
166
166
  _platformAccountId: query.platformAccountId,
167
167
  _nickname: query.nickname || '',
168
168
  _chromeProfileName: query.chromeProfileName || '',
169
- _shipinlvMainPort: window.__ShipinlvMainPort || 0,
170
- _shipinlvLocalServerPort: window.__ShipinlvLocalServerPort || 0
169
+ _sanzhizhouMainPort: window.__SanzhizhouMainPort || 0,
170
+ _sanzhizhouLocalServerPort: window.__SanzhizhouLocalServerPort || 0
171
171
  });
172
172
  chromeProfileDir = settingConfig.chromeUserDataDir + '/' + query.chromeProfileName;
173
173
  _context4.t0 = Tool.getOsName();
@@ -92,9 +92,9 @@ var requestApi = /*#__PURE__*/function () {
92
92
  if (!err) {
93
93
  err = new Error();
94
94
  }
95
- console.log('request component shipinlv:', JSON.stringify(err), url);
95
+ console.log('request component sanzhizhou:', JSON.stringify(err), url);
96
96
  if (!((_err = err) !== null && _err !== void 0 && _err.response) && url.indexOf("http://127.0.0.1:".concat(getMainPort())) === 0) {
97
- err.name = "shipinlv-client-not-run";
97
+ err.name = "sanzhizhou-client-not-run";
98
98
  err.message = formatMessage('连接本地服务失败,请尝试重启软件');
99
99
  reject(err);
100
100
  return;
@@ -16,7 +16,7 @@ var VideoApiOpenChrome = /*#__PURE__*/function () {
16
16
  return VideoApiOpenChromeController.openChrome(query, {
17
17
  timeout: 60e3
18
18
  }).catch(function (err) {
19
- // if( err?.name === "shipinlv-client-not-run" ){
19
+ // if( err?.name === "sanzhizhou-client-not-run" ){
20
20
  // return reject( err );
21
21
  // }
22
22
  console.log('open In Folder err:', err);
@@ -15,7 +15,7 @@ var VideoApiQuitChrome = /*#__PURE__*/function () {
15
15
  case 0:
16
16
  _context.next = 2;
17
17
  return VideoApiOpenChromeController.quitChrome(query).catch(function (err) {
18
- // if( err?.name === "shipinlv-client-not-run" ){
18
+ // if( err?.name === "sanzhizhou-client-not-run" ){
19
19
  // return reject( err );
20
20
  // }
21
21
  console.log('open In Folder err:', err);
@@ -7,14 +7,14 @@ var ApiUrls = {
7
7
  api: 'http://localhost:51805/'
8
8
  },
9
9
  prod: {
10
- api: 'https://api-video-publish.shipinlv.com/'
10
+ api: 'https://api-video-publish.sanzhizhou.com/'
11
11
  }
12
12
  };
13
13
  export var PublishDomainApi = function PublishDomainApi(apiName, env) {
14
14
  var _ApiUrls$env;
15
15
  console.log('PublishDomainApi:', apiName, env);
16
16
  // @ts-ignore
17
- return (((_ApiUrls$env = ApiUrls[env]) === null || _ApiUrls$env === void 0 ? void 0 : _ApiUrls$env.api) || 'https://api-video-publish.shipinlv.com/') + (apiName === null || apiName === void 0 ? void 0 : apiName.toLocaleLowerCase());
17
+ return (((_ApiUrls$env = ApiUrls[env]) === null || _ApiUrls$env === void 0 ? void 0 : _ApiUrls$env.api) || 'https://api-video-publish.sanzhizhou.com/') + (apiName === null || apiName === void 0 ? void 0 : apiName.toLocaleLowerCase());
18
18
  };
19
19
  export function videoAccountList(_x, _x2) {
20
20
  return _videoAccountList.apply(this, arguments);
@@ -13,7 +13,7 @@ function _chromeQuit() {
13
13
  while (1) switch (_context.prev = _context.next) {
14
14
  case 0:
15
15
  setting = AccountManageSettingConfig();
16
- return _context.abrupt("return", request("http://127.0.0.1:".concat(window.__ShipinlvLocalServerPort, "/chrome/quit"), _objectSpread({
16
+ return _context.abrupt("return", request("http://127.0.0.1:".concat(window.__SanzhizhouLocalServerPort, "/chrome/quit"), _objectSpread({
17
17
  method: 'POST',
18
18
  headers: {
19
19
  'Content-Type': 'application/json'
package/dist/typings.d.ts CHANGED
@@ -44,7 +44,7 @@ declare namespace Global {
44
44
  [key: string]: any;
45
45
  }
46
46
 
47
- type WebKind = 'douzhuli' | 'douxidong' | 'shipinlv';
47
+ type WebKind = 'douzhuli' | 'douxidong' | 'sanzhizhou';
48
48
  interface WebBaseConfig{
49
49
  currentEnv: Global.CurrentEnv;
50
50
  appEnv: Global.CurrentEnv;
@@ -55,7 +55,7 @@ declare namespace Global {
55
55
 
56
56
  douzhuli: WebBaseConfigItem;
57
57
  douxidong: WebBaseConfigItem;
58
- shipinlv: WebBaseConfigItem;
58
+ sanzhizhou: WebBaseConfigItem;
59
59
  }
60
60
 
61
61
  interface WebBaseConfigItem{
package/dist/window.d.ts CHANGED
@@ -5,8 +5,8 @@ declare interface Window{
5
5
  __onBindWindowError: boolean;
6
6
  __wxjs_environment: string;
7
7
  __recordError: any;
8
- __ShipinlvMainPort: number;
9
- __ShipinlvLocalServerPort: number;
8
+ __SanzhizhouMainPort: number;
9
+ __SanzhizhouLocalServerPort: number;
10
10
  __events: {
11
11
  name: string;
12
12
  fn: ( data?: any ) => void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-sanzhizhou",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",