@lingk/sync 1.1.44 → 1.1.46

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.
@@ -4548,11 +4548,11 @@ module.exports =
4548
4548
 
4549
4549
  var _reactDropzone2 = _interopRequireDefault(_reactDropzone);
4550
4550
 
4551
- var _papaparse = __webpack_require__(106);
4551
+ var _papaparse = __webpack_require__(107);
4552
4552
 
4553
4553
  var _papaparse2 = _interopRequireDefault(_papaparse);
4554
4554
 
4555
- var _xlsx = __webpack_require__(105);
4555
+ var _xlsx = __webpack_require__(106);
4556
4556
 
4557
4557
  var _xlsx2 = _interopRequireDefault(_xlsx);
4558
4558
 
@@ -4579,7 +4579,7 @@ module.exports =
4579
4579
  f = Math.floor(Math.log(a) / Math.log(c));return parseFloat((a / Math.pow(c, f)).toFixed(d)) + " " + e[f];
4580
4580
  }
4581
4581
 
4582
- var extensionBlacklist = ['xml', 'zip', 'tar', 'gz'];
4582
+ var extensionBlacklist = ['zip', 'tar', 'gz'];
4583
4583
 
4584
4584
  var FlatFile = function (_Component) {
4585
4585
  _inherits(FlatFile, _Component);
@@ -4721,6 +4721,18 @@ module.exports =
4721
4721
  _this.props.onDrop();
4722
4722
  }
4723
4723
  }
4724
+ } else if (extension === 'txt' || extension === 'xml') {
4725
+ var csvMeta = {
4726
+ name: file.name,
4727
+ type: file.name.substr(0, file.name.lastIndexOf('.')).split(' ').join(''),
4728
+ byteSize: file.size
4729
+ };
4730
+ meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
4731
+ counter += 1;
4732
+ if (counter === fs.length) {
4733
+ _this.setState({ meta: meta });
4734
+ _this.props.onDrop();
4735
+ }
4724
4736
  }
4725
4737
 
4726
4738
  // ADD TO CONTENTS, TO UPLOAD
@@ -5329,7 +5341,11 @@ module.exports =
5329
5341
  creds = _props.creds,
5330
5342
  config = _props.config;
5331
5343
 
5332
- if (config.type === 'LingkWebSocket') {
5344
+ if (config.type === 'SFTP') {
5345
+ this.setState({ actualCreds: Object.assign({}, creds, {
5346
+ filePattern: '*.*'
5347
+ }) });
5348
+ } else if (config.type === 'LingkWebSocket') {
5333
5349
  this.setState({ actualCreds: Object.assign({}, creds, {
5334
5350
  rootUrl: creds.rootUrl || 'wss://'
5335
5351
  }) });
@@ -5380,7 +5396,9 @@ module.exports =
5380
5396
  formValues = _props2.formValues,
5381
5397
  change = _props2.change,
5382
5398
  downloadFileFromAws = _props2.downloadFileFromAws,
5383
- deleteFlatFile = _props2.deleteFlatFile;
5399
+ deleteFlatFile = _props2.deleteFlatFile,
5400
+ gencerts = _props2.gencerts,
5401
+ downloadcerts = _props2.downloadcerts;
5384
5402
 
5385
5403
  var Button = inputs.Button;
5386
5404
  var Spinner = inputs.Spinner;
@@ -5442,9 +5460,10 @@ module.exports =
5442
5460
  }) : isSFTP ? _react2.default.createElement(_sftp2.default, { config: config, creds: creds, onChange: this.onChange,
5443
5461
  credsDisabledCheck: credsDisabledCheck, inputs: inputs,
5444
5462
  onCheck: check
5445
- }) : isWebSocket ? _react2.default.createElement(_websocket2.default, { creds: creds, onChange: this.onChange, checking: checking,
5463
+ }) : isWebSocket ? _react2.default.createElement(_websocket2.default, { wizard: wizard, creds: creds, onChange: this.onChange, checking: checking, gencerts: gencerts,
5446
5464
  credsDisabledCheck: credsDisabledCheck, inputs: inputs, credKeyPress: this.credKeyPress,
5447
- onCheck: check, actualCreds: this.state.actualCreds, envCheckResult: envCheckResult }) : _react2.default.createElement(
5465
+ onCheck: check, actualCreds: this.state.actualCreds, envCheckResult: envCheckResult,
5466
+ downloadcerts: downloadcerts }) : _react2.default.createElement(
5448
5467
  'div',
5449
5468
  null,
5450
5469
  !noRootUrl && _react2.default.createElement(
@@ -6134,6 +6153,10 @@ module.exports =
6134
6153
 
6135
6154
  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; }
6136
6155
 
6156
+ var images = {
6157
+ ajax_loader_small: __webpack_require__(103)
6158
+ };
6159
+
6137
6160
  var WebSocket = function (_Component) {
6138
6161
  _inherits(WebSocket, _Component);
6139
6162
 
@@ -6147,6 +6170,7 @@ module.exports =
6147
6170
  key: 'render',
6148
6171
  value: function render() {
6149
6172
  var _props = this.props,
6173
+ wizard = _props.wizard,
6150
6174
  creds = _props.creds,
6151
6175
  checking = _props.checking,
6152
6176
  onChange = _props.onChange,
@@ -6155,69 +6179,167 @@ module.exports =
6155
6179
  onCheck = _props.onCheck,
6156
6180
  credKeyPress = _props.credKeyPress,
6157
6181
  actualCreds = _props.actualCreds,
6158
- envCheckResult = _props.envCheckResult;
6159
-
6182
+ envCheckResult = _props.envCheckResult,
6183
+ gencerts = _props.gencerts,
6184
+ downloadcerts = _props.downloadcerts;
6160
6185
 
6186
+ var showDownload = wizard.showDownload;
6161
6187
  var Input = inputs.Input;
6162
6188
  var Spinner = inputs.Spinner;
6163
6189
  var Button = inputs.Button;
6164
6190
  var hasEndpoint = creds && creds.rootUrl && creds.rootUrl.length > 8 && creds.query;
6191
+ var hasDNnHOST = creds && creds.domainName && creds.Host;
6165
6192
 
6166
6193
  return _react2.default.createElement(
6167
6194
  'div',
6168
- { style: { marginLeft: 16 } },
6195
+ null,
6196
+ _react2.default.createElement(
6197
+ 'div',
6198
+ { style: { fontSize: 16 } },
6199
+ '1.Generate Websocket Certificates'
6200
+ ),
6169
6201
  _react2.default.createElement(
6170
6202
  'div',
6171
- { style: { display: 'inline-block', width: 300 } },
6203
+ { style: { fontSize: 10 } },
6204
+ 'For Apache Nifi Authentication'
6205
+ ),
6206
+ _react2.default.createElement(
6207
+ 'div',
6208
+ { style: { display: 'inline-block' } },
6172
6209
  _react2.default.createElement(
6173
- 'label',
6174
- { htmlFor: 'rootUrl', className: 'labelz' },
6175
- 'Data Source Endpoint'
6210
+ 'div',
6211
+ { style: { marginTop: 10 }, className: 'labelz' },
6212
+ _react2.default.createElement(
6213
+ 'strong',
6214
+ null,
6215
+ 'Domain Name/Public IP Address'
6216
+ )
6176
6217
  ),
6177
- _react2.default.createElement(Input, { name: 'rootUrl',
6218
+ _react2.default.createElement(Input, { name: 'domainName',
6178
6219
  onKeyPress: credKeyPress,
6179
- value: actualCreds.rootUrl || '',
6180
- onChange: onChange })
6220
+ value: actualCreds.domainName || '',
6221
+ onChange: onChange,
6222
+ placeholder: "localhost",
6223
+ style: { height: 26, width: 220 } })
6181
6224
  ),
6182
- _react2.default.createElement('br', null),
6183
- _react2.default.createElement('br', null),
6184
6225
  _react2.default.createElement(
6185
6226
  'div',
6186
- { style: { display: 'inline-block', width: 300 } },
6227
+ { style: { display: 'inline-block' } },
6187
6228
  _react2.default.createElement(
6188
- 'label',
6189
- { htmlFor: 'rootUrl', className: 'labelz' },
6190
- 'Enter Sample Query'
6229
+ 'div',
6230
+ { className: 'labelz' },
6231
+ '\xA0\xA0\xA0',
6232
+ _react2.default.createElement(
6233
+ 'strong',
6234
+ null,
6235
+ 'Host'
6236
+ )
6191
6237
  ),
6192
- _react2.default.createElement(Input, { name: 'query',
6238
+ '\xA0\xA0\xA0',
6239
+ _react2.default.createElement(Input, { name: 'Host',
6193
6240
  onKeyPress: credKeyPress,
6194
- value: actualCreds.query || '',
6195
- onChange: onChange })
6241
+ value: actualCreds.Host || '',
6242
+ onChange: onChange,
6243
+ placeholder: "localhost 127.0.0.1",
6244
+ style: { height: 26, width: 220 } })
6196
6245
  ),
6197
6246
  _react2.default.createElement(
6198
- Button,
6199
- {
6200
- type: 'brand',
6201
- onClick: function onClick() {
6202
- return onCheck(creds);
6203
- },
6204
- style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px', marginTop: -1 },
6205
- disabled: !hasEndpoint || credsDisabledCheck },
6247
+ 'div',
6248
+ null,
6206
6249
  _react2.default.createElement(
6207
- 'span',
6208
- { style: { display: 'inline-block', verticalAlign: 'top', marginTop: 3 } },
6209
- 'Test Connection'
6250
+ Button,
6251
+ { type: 'brand',
6252
+ style: { margin: '18px 0', width: 130 },
6253
+ disabled: !hasDNnHOST,
6254
+ onClick: function onClick() {
6255
+ return gencerts(creds);
6256
+ }
6257
+ },
6258
+ !wizard.isSaving ? 'Generate Certs' : _react2.default.createElement('img', { alt: 'small-spinner', src: images.ajax_loader_small, height: '8' })
6210
6259
  ),
6211
- '\xA0\xA0'
6260
+ ' \xA0\xA0\xA0',
6261
+ showDownload && _react2.default.createElement(
6262
+ 'strong',
6263
+ null,
6264
+ 'Download Certs: ',
6265
+ _react2.default.createElement(
6266
+ 'a',
6267
+ { onClick: downloadcerts, style: { cursor: 'pointer', marginTop: -10 } },
6268
+ 'Click Here'
6269
+ )
6270
+ )
6212
6271
  ),
6213
6272
  _react2.default.createElement(
6214
6273
  'div',
6215
- { style: { display: 'inline-block', marginLeft: 12 } },
6216
- checking && _react2.default.createElement(Spinner, null),
6217
- envCheckResult && _react2.default.createElement(
6218
- 'span',
6219
- null,
6220
- envCheckResult
6274
+ { style: { fontSize: 16 } },
6275
+ '2.Test Your Connection'
6276
+ ),
6277
+ _react2.default.createElement(
6278
+ 'div',
6279
+ { style: { marginTop: 8 } },
6280
+ _react2.default.createElement(
6281
+ 'div',
6282
+ { style: { display: 'inline-block' } },
6283
+ _react2.default.createElement(
6284
+ 'label',
6285
+ { htmlFor: 'rootUrl', className: 'labelz' },
6286
+ 'Data Source Endpoint'
6287
+ ),
6288
+ _react2.default.createElement(
6289
+ 'div',
6290
+ { style: { fontSize: 10 } },
6291
+ 'Must match the External Domain Name/IP Address of the certificate.'
6292
+ ),
6293
+ _react2.default.createElement(Input, { name: 'rootUrl',
6294
+ onKeyPress: credKeyPress,
6295
+ value: actualCreds.rootUrl || '',
6296
+ onChange: onChange })
6297
+ ),
6298
+ _react2.default.createElement('br', null),
6299
+ _react2.default.createElement('br', null),
6300
+ _react2.default.createElement(
6301
+ 'div',
6302
+ { style: { display: 'inline-block', width: 300 } },
6303
+ _react2.default.createElement(
6304
+ 'label',
6305
+ { htmlFor: 'rootUrl', className: 'labelz' },
6306
+ 'Enter Sample Query'
6307
+ ),
6308
+ _react2.default.createElement('textarea', { rows: '2', cols: '46', placeholder: 'Database Query',
6309
+ onChange: onChange,
6310
+ name: 'query',
6311
+ onKeyPress: credKeyPress,
6312
+ value: actualCreds.query || '' })
6313
+ ),
6314
+ _react2.default.createElement(
6315
+ 'div',
6316
+ { style: { display: 'inline' } },
6317
+ _react2.default.createElement(
6318
+ Button,
6319
+ {
6320
+ type: 'brand',
6321
+ onClick: function onClick() {
6322
+ return onCheck(creds);
6323
+ },
6324
+ style: { marginBottom: 2, height: 30, lineHeight: '10px', marginTop: -3, marginLeft: 5 },
6325
+ disabled: !hasEndpoint || credsDisabledCheck },
6326
+ _react2.default.createElement(
6327
+ 'span',
6328
+ { style: { display: 'inline-block', verticalAlign: 'top', marginTop: 3 } },
6329
+ 'Test Connection'
6330
+ ),
6331
+ '\xA0\xA0'
6332
+ )
6333
+ ),
6334
+ _react2.default.createElement(
6335
+ 'div',
6336
+ { style: { display: 'inline', marginLeft: 12 } },
6337
+ checking && _react2.default.createElement(Spinner, null),
6338
+ envCheckResult && _react2.default.createElement(
6339
+ 'span',
6340
+ null,
6341
+ envCheckResult
6342
+ )
6221
6343
  )
6222
6344
  )
6223
6345
  );
@@ -16585,6 +16707,12 @@ module.exports =
16585
16707
  /* 101 */,
16586
16708
  /* 102 */,
16587
16709
  /* 103 */
16710
+ /***/ function(module, exports) {
16711
+
16712
+ module.exports = "data:image/gif;base64,R0lGODlhEAALAPQAAP////////7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/gAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA"
16713
+
16714
+ /***/ },
16715
+ /* 104 */
16588
16716
  /***/ function(module, exports) {
16589
16717
 
16590
16718
  /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;
@@ -16592,7 +16720,7 @@ module.exports =
16592
16720
  /* WEBPACK VAR INJECTION */}.call(exports, {}))
16593
16721
 
16594
16722
  /***/ },
16595
- /* 104 */
16723
+ /* 105 */
16596
16724
  /***/ function(module, exports, __webpack_require__) {
16597
16725
 
16598
16726
  var require;var require;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(Buffer, global) {/*
@@ -16611,7 +16739,7 @@ module.exports =
16611
16739
  */
16612
16740
  (function(e){
16613
16741
  if("object"==typeof exports&&"undefined"!=typeof module&&"undefined"==typeof DO_NOT_EXPORT_JSZIP)module.exports=e();
16614
- else if("function"=="function"&&__webpack_require__(103)&&"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__));}
16742
+ else if("function"=="function"&&__webpack_require__(104)&&"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__));}
16615
16743
  else{
16616
16744
  var f;
16617
16745
  "undefined"!=typeof window?f=window:
@@ -25598,7 +25726,7 @@ module.exports =
25598
25726
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(29).Buffer, (function() { return this; }())))
25599
25727
 
25600
25728
  /***/ },
25601
- /* 105 */
25729
+ /* 106 */
25602
25730
  /***/ function(module, exports, __webpack_require__) {
25603
25731
 
25604
25732
  /* WEBPACK VAR INJECTION */(function(global, Buffer, process) {/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
@@ -27711,7 +27839,7 @@ module.exports =
27711
27839
  if(typeof JSZipSync !== 'undefined') jszip = JSZipSync;
27712
27840
  if(true) {
27713
27841
  if(typeof module !== 'undefined' && module.exports) {
27714
- if(typeof jszip === 'undefined') jszip = __webpack_require__(104);
27842
+ if(typeof jszip === 'undefined') jszip = __webpack_require__(105);
27715
27843
  }
27716
27844
  }
27717
27845
 
@@ -28332,7 +28460,7 @@ module.exports =
28332
28460
  var crypto;
28333
28461
  if(typeof _crypto !== 'undefined') crypto = _crypto;
28334
28462
  else if(true) {
28335
- try { crypto = __webpack_require__(107); }
28463
+ try { crypto = __webpack_require__(108); }
28336
28464
  catch(e) { crypto = null; }
28337
28465
  }
28338
28466
 
@@ -45703,7 +45831,7 @@ module.exports =
45703
45831
  })(utils);
45704
45832
 
45705
45833
  if(has_buf && "function" != 'undefined') (function() {
45706
- var Readable = __webpack_require__(108).Readable;
45834
+ var Readable = __webpack_require__(109).Readable;
45707
45835
 
45708
45836
  var write_csv_stream = function(sheet, opts) {
45709
45837
  var stream = Readable();
@@ -45851,15 +45979,15 @@ module.exports =
45851
45979
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(29).Buffer, __webpack_require__(100)))
45852
45980
 
45853
45981
  /***/ },
45854
- /* 106 */
45982
+ /* 107 */
45855
45983
  /***/ function(module, exports) {
45856
45984
 
45857
45985
  module.exports = require("papaparse");
45858
45986
 
45859
45987
  /***/ },
45860
- /* 107 */
45861
- 52,
45862
45988
  /* 108 */
45989
+ 52,
45990
+ /* 109 */
45863
45991
  52
45864
45992
  /******/ ])));
45865
45993
  //# sourceMappingURL=credentialSections.js.map