@lingk/sync 1.1.35 → 1.1.37

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.
@@ -116,9 +116,9 @@ module.exports =
116
116
 
117
117
  'use strict'
118
118
 
119
- var base64 = __webpack_require__(64)
120
- var ieee754 = __webpack_require__(68)
121
- var isArray = __webpack_require__(69)
119
+ var base64 = __webpack_require__(65)
120
+ var ieee754 = __webpack_require__(69)
121
+ var isArray = __webpack_require__(70)
122
122
 
123
123
  exports.Buffer = Buffer
124
124
  exports.SlowBuffer = SlowBuffer
@@ -3465,7 +3465,7 @@ module.exports =
3465
3465
 
3466
3466
  var _react2 = _interopRequireDefault(_react);
3467
3467
 
3468
- var _clipboard = __webpack_require__(53);
3468
+ var _clipboard = __webpack_require__(54);
3469
3469
 
3470
3470
  var _clipboard2 = _interopRequireDefault(_clipboard);
3471
3471
 
@@ -3617,11 +3617,11 @@ module.exports =
3617
3617
 
3618
3618
  var _reactDropzone2 = _interopRequireDefault(_reactDropzone);
3619
3619
 
3620
- var _papaparse = __webpack_require__(74);
3620
+ var _papaparse = __webpack_require__(75);
3621
3621
 
3622
3622
  var _papaparse2 = _interopRequireDefault(_papaparse);
3623
3623
 
3624
- var _xlsx = __webpack_require__(73);
3624
+ var _xlsx = __webpack_require__(74);
3625
3625
 
3626
3626
  var _xlsx2 = _interopRequireDefault(_xlsx);
3627
3627
 
@@ -4146,7 +4146,7 @@ module.exports =
4146
4146
 
4147
4147
  var _react2 = _interopRequireDefault(_react);
4148
4148
 
4149
- __webpack_require__(67);
4149
+ __webpack_require__(68);
4150
4150
 
4151
4151
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4152
4152
 
@@ -4159,8 +4159,8 @@ module.exports =
4159
4159
  // SKIP ON SERVER-SIDE RENDERING
4160
4160
  var codemirror = null;
4161
4161
  if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
4162
- codemirror = __webpack_require__(75);
4163
- __webpack_require__(66);
4162
+ codemirror = __webpack_require__(76);
4163
+ __webpack_require__(67);
4164
4164
  }
4165
4165
 
4166
4166
  function unCamelize(text) {
@@ -4346,6 +4346,10 @@ module.exports =
4346
4346
 
4347
4347
  var _oauth2 = _interopRequireDefault(_oauth);
4348
4348
 
4349
+ var _sftp = __webpack_require__(53);
4350
+
4351
+ var _sftp2 = _interopRequireDefault(_sftp);
4352
+
4349
4353
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4350
4354
 
4351
4355
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -4490,6 +4494,9 @@ module.exports =
4490
4494
  }) : isGoogle ? _react2.default.createElement(_google2.default, { config: config, creds: creds, onChange: this.onChange,
4491
4495
  credsDisabledCheck: credsDisabledCheck, inputs: inputs,
4492
4496
  onCheck: check
4497
+ }) : isSFTP ? _react2.default.createElement(_sftp2.default, { config: config, creds: creds, onChange: this.onChange,
4498
+ credsDisabledCheck: credsDisabledCheck, inputs: inputs,
4499
+ onCheck: check
4493
4500
  }) : _react2.default.createElement(
4494
4501
  'div',
4495
4502
  null,
@@ -4929,6 +4936,150 @@ module.exports =
4929
4936
 
4930
4937
  /***/ },
4931
4938
  /* 53 */
4939
+ /***/ function(module, exports, __webpack_require__) {
4940
+
4941
+ 'use strict';
4942
+
4943
+ Object.defineProperty(exports, "__esModule", {
4944
+ value: true
4945
+ });
4946
+
4947
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4948
+
4949
+ var _react = __webpack_require__(1);
4950
+
4951
+ var _react2 = _interopRequireDefault(_react);
4952
+
4953
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4954
+
4955
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4956
+
4957
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
4958
+
4959
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
4960
+
4961
+ function unCamelize(text) {
4962
+ return text.replace(/([A-Z])/g, ' $1').replace(/^./, function (str) {
4963
+ return str.toUpperCase();
4964
+ });
4965
+ }
4966
+
4967
+ var Key = function Key(_ref) {
4968
+ var onClick = _ref.onClick,
4969
+ showPass = _ref.showPass;
4970
+
4971
+ return _react2.default.createElement(
4972
+ 'svg',
4973
+ { onClick: onClick, style: showPass ? { fill: '#3a91dcb3' } : {},
4974
+ height: '24', width: '24', className: 'pass-key-svg', viewBox: '0 0 24 24' },
4975
+ _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),
4976
+ _react2.default.createElement('path', { d: 'M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z' })
4977
+ );
4978
+ };
4979
+
4980
+ var Loop = function Loop() {
4981
+ return _react2.default.createElement(
4982
+ 'svg',
4983
+ { fill: '#FFFFFF', height: '18', viewBox: '0 0 24 24', width: '18',
4984
+ style: { marginTop: -1 } },
4985
+ _react2.default.createElement('path', { d: 'M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z' }),
4986
+ _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })
4987
+ );
4988
+ };
4989
+
4990
+ var SFTP = function (_Component) {
4991
+ _inherits(SFTP, _Component);
4992
+
4993
+ function SFTP() {
4994
+ _classCallCheck(this, SFTP);
4995
+
4996
+ var _this = _possibleConstructorReturn(this, (SFTP.__proto__ || Object.getPrototypeOf(SFTP)).call(this));
4997
+
4998
+ _this.state = {
4999
+ credentialType: 'password', // password or ssl
5000
+ showPass: false
5001
+ };
5002
+ return _this;
5003
+ }
5004
+
5005
+ _createClass(SFTP, [{
5006
+ key: 'render',
5007
+ value: function render() {
5008
+ var _this2 = this;
5009
+
5010
+ var _props = this.props,
5011
+ config = _props.config,
5012
+ onCheck = _props.onCheck,
5013
+ inputs = _props.inputs,
5014
+ credsDisabledCheck = _props.credsDisabledCheck,
5015
+ creds = _props.creds,
5016
+ onChange = _props.onChange;
5017
+ var credentialType = this.state.credentialType;
5018
+
5019
+
5020
+ var Button = inputs.Button;
5021
+ var Spinner = inputs.Spinner;
5022
+ var Input = inputs.Input;
5023
+
5024
+ return _react2.default.createElement(
5025
+ 'div',
5026
+ null,
5027
+ config.credentials && _react2.default.createElement(
5028
+ 'div',
5029
+ { style: { marginLeft: 0 } },
5030
+ _react2.default.createElement(
5031
+ 'div',
5032
+ { style: { display: 'inline-block', marginLeft: 16 } },
5033
+ config.credentials.map(function (credType, index) {
5034
+ return _react2.default.createElement(
5035
+ 'div',
5036
+ { key: index, style: { marginTop: 8 } },
5037
+ _react2.default.createElement(
5038
+ 'label',
5039
+ { htmlFor: credType, className: 'labelz', style: { fontWeight: 'normal' } },
5040
+ unCamelize(credType)
5041
+ ),
5042
+ _react2.default.createElement('br', null),
5043
+ _react2.default.createElement(Input, { name: credType,
5044
+ datatype: credType === 'password' && !_this2.state.showPass ? 'password' : null,
5045
+ value: creds[credType] || '',
5046
+ onChange: onChange }),
5047
+ index === 0 && _react2.default.createElement(
5048
+ Button,
5049
+ { type: 'brand',
5050
+ onClick: function onClick() {
5051
+ return onCheck(creds);
5052
+ },
5053
+ style: { marginLeft: 8, marginBottom: 4, height: 30, lineHeight: '10px', marginTop: -1 },
5054
+ disabled: credsDisabledCheck },
5055
+ _react2.default.createElement(
5056
+ 'span',
5057
+ { style: { display: 'inline-block', verticalAlign: 'top', marginTop: 3 } },
5058
+ 'Test Connection'
5059
+ ),
5060
+ '\xA0\xA0',
5061
+ _react2.default.createElement(Loop, null)
5062
+ ),
5063
+ credType === 'password' && _react2.default.createElement(Key, { showPass: _this2.state.showPass,
5064
+ onClick: function onClick() {
5065
+ return _this2.setState({ showPass: !_this2.state.showPass });
5066
+ }
5067
+ })
5068
+ );
5069
+ })
5070
+ )
5071
+ )
5072
+ );
5073
+ }
5074
+ }]);
5075
+
5076
+ return SFTP;
5077
+ }(_react.Component);
5078
+
5079
+ exports.default = SFTP;
5080
+
5081
+ /***/ },
5082
+ /* 54 */
4932
5083
  /***/ function(module, exports, __webpack_require__) {
4933
5084
 
4934
5085
  "use strict";
@@ -5109,7 +5260,6 @@ module.exports =
5109
5260
  });
5110
5261
 
5111
5262
  /***/ },
5112
- /* 54 */,
5113
5263
  /* 55 */,
5114
5264
  /* 56 */,
5115
5265
  /* 57 */,
@@ -5119,7 +5269,8 @@ module.exports =
5119
5269
  /* 61 */,
5120
5270
  /* 62 */,
5121
5271
  /* 63 */,
5122
- /* 64 */
5272
+ /* 64 */,
5273
+ /* 65 */
5123
5274
  /***/ function(module, exports) {
5124
5275
 
5125
5276
  'use strict'
@@ -5239,7 +5390,7 @@ module.exports =
5239
5390
 
5240
5391
 
5241
5392
  /***/ },
5242
- /* 65 */
5393
+ /* 66 */
5243
5394
  /***/ function(module, exports, __webpack_require__) {
5244
5395
 
5245
5396
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
@@ -14904,7 +15055,7 @@ module.exports =
14904
15055
 
14905
15056
 
14906
15057
  /***/ },
14907
- /* 66 */
15058
+ /* 67 */
14908
15059
  /***/ function(module, exports, __webpack_require__) {
14909
15060
 
14910
15061
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
@@ -14912,7 +15063,7 @@ module.exports =
14912
15063
 
14913
15064
  (function(mod) {
14914
15065
  if (true) // CommonJS
14915
- mod(__webpack_require__(65));
15066
+ mod(__webpack_require__(66));
14916
15067
  else if (typeof define == "function" && define.amd) // AMD
14917
15068
  define(["../../lib/codemirror"], mod);
14918
15069
  else // Plain browser env
@@ -15765,13 +15916,13 @@ module.exports =
15765
15916
 
15766
15917
 
15767
15918
  /***/ },
15768
- /* 67 */
15919
+ /* 68 */
15769
15920
  /***/ function(module, exports) {
15770
15921
 
15771
15922
  // removed by extract-text-webpack-plugin
15772
15923
 
15773
15924
  /***/ },
15774
- /* 68 */
15925
+ /* 69 */
15775
15926
  /***/ function(module, exports) {
15776
15927
 
15777
15928
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
@@ -15861,7 +16012,7 @@ module.exports =
15861
16012
 
15862
16013
 
15863
16014
  /***/ },
15864
- /* 69 */
16015
+ /* 70 */
15865
16016
  /***/ function(module, exports) {
15866
16017
 
15867
16018
  var toString = {}.toString;
@@ -15872,7 +16023,7 @@ module.exports =
15872
16023
 
15873
16024
 
15874
16025
  /***/ },
15875
- /* 70 */
16026
+ /* 71 */
15876
16027
  /***/ function(module, exports) {
15877
16028
 
15878
16029
  // shim for using process in browser
@@ -16058,7 +16209,7 @@ module.exports =
16058
16209
 
16059
16210
 
16060
16211
  /***/ },
16061
- /* 71 */
16212
+ /* 72 */
16062
16213
  /***/ function(module, exports) {
16063
16214
 
16064
16215
  /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;
@@ -16066,7 +16217,7 @@ module.exports =
16066
16217
  /* WEBPACK VAR INJECTION */}.call(exports, {}))
16067
16218
 
16068
16219
  /***/ },
16069
- /* 72 */
16220
+ /* 73 */
16070
16221
  /***/ function(module, exports, __webpack_require__) {
16071
16222
 
16072
16223
  var require;var require;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(Buffer, global) {/*
@@ -16085,7 +16236,7 @@ module.exports =
16085
16236
  */
16086
16237
  (function(e){
16087
16238
  if("object"==typeof exports&&"undefined"!=typeof module&&"undefined"==typeof DO_NOT_EXPORT_JSZIP)module.exports=e();
16088
- else if("function"=="function"&&__webpack_require__(71)&&"undefined"==typeof DO_NOT_EXPORT_JSZIP){JSZipSync=e();!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (e), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}
16239
+ else if("function"=="function"&&__webpack_require__(72)&&"undefined"==typeof DO_NOT_EXPORT_JSZIP){JSZipSync=e();!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (e), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}
16089
16240
  else{
16090
16241
  var f;
16091
16242
  "undefined"!=typeof window?f=window:
@@ -25072,7 +25223,7 @@ module.exports =
25072
25223
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17).Buffer, (function() { return this; }())))
25073
25224
 
25074
25225
  /***/ },
25075
- /* 73 */
25226
+ /* 74 */
25076
25227
  /***/ function(module, exports, __webpack_require__) {
25077
25228
 
25078
25229
  /* WEBPACK VAR INJECTION */(function(global, Buffer, process) {/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
@@ -27185,7 +27336,7 @@ module.exports =
27185
27336
  if(typeof JSZipSync !== 'undefined') jszip = JSZipSync;
27186
27337
  if(true) {
27187
27338
  if(typeof module !== 'undefined' && module.exports) {
27188
- if(typeof jszip === 'undefined') jszip = __webpack_require__(72);
27339
+ if(typeof jszip === 'undefined') jszip = __webpack_require__(73);
27189
27340
  }
27190
27341
  }
27191
27342
 
@@ -27806,7 +27957,7 @@ module.exports =
27806
27957
  var crypto;
27807
27958
  if(typeof _crypto !== 'undefined') crypto = _crypto;
27808
27959
  else if(true) {
27809
- try { crypto = __webpack_require__(76); }
27960
+ try { crypto = __webpack_require__(77); }
27810
27961
  catch(e) { crypto = null; }
27811
27962
  }
27812
27963
 
@@ -45179,7 +45330,7 @@ module.exports =
45179
45330
  })(utils);
45180
45331
 
45181
45332
  if(has_buf && "function" != 'undefined') (function() {
45182
- var Readable = __webpack_require__(77).Readable;
45333
+ var Readable = __webpack_require__(78).Readable;
45183
45334
 
45184
45335
  var write_csv_stream = function(sheet, opts) {
45185
45336
  var stream = Readable();
@@ -45324,24 +45475,24 @@ module.exports =
45324
45475
  /*exported XLS, ODS */
45325
45476
  var XLS = XLSX, ODS = XLSX;
45326
45477
 
45327
- /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(17).Buffer, __webpack_require__(70)))
45478
+ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(17).Buffer, __webpack_require__(71)))
45328
45479
 
45329
45480
  /***/ },
45330
- /* 74 */
45481
+ /* 75 */
45331
45482
  /***/ function(module, exports) {
45332
45483
 
45333
45484
  module.exports = require("papaparse");
45334
45485
 
45335
45486
  /***/ },
45336
- /* 75 */
45487
+ /* 76 */
45337
45488
  /***/ function(module, exports) {
45338
45489
 
45339
45490
  module.exports = require("react-codemirror2");
45340
45491
 
45341
45492
  /***/ },
45342
- /* 76 */
45343
- 29,
45344
45493
  /* 77 */
45494
+ 29,
45495
+ /* 78 */
45345
45496
  29
45346
45497
  /******/ ])));
45347
45498
  //# sourceMappingURL=credentialSections.js.map