@lingk/sync 1.1.53 → 1.1.54

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.
@@ -5131,11 +5131,14 @@ module.exports =
5131
5131
  onChange = _props.onChange,
5132
5132
  credsDisabledCheck = _props.credsDisabledCheck,
5133
5133
  inputs = _props.inputs,
5134
- onCheck = _props.onCheck;
5134
+ onCheck = _props.onCheck,
5135
+ checking = _props.checking,
5136
+ envCheckResult = _props.envCheckResult;
5135
5137
 
5136
5138
  var Input = inputs.Input;
5137
5139
  var Button = inputs.Button;
5138
5140
  var Select = inputs.Select;
5141
+ var Spinner = inputs.Spinner;
5139
5142
  var CodeMirror = codemirror && codemirror.Controlled;
5140
5143
 
5141
5144
  var CloudSQLTypes = [{ name: 'Postgres', satisfiesSearch: true, type: 'Postgres', title: 'Postgres' }, { name: 'MySQL', satisfiesSearch: true, type: 'MySQL', title: 'MySQL' }];
@@ -5214,6 +5217,16 @@ module.exports =
5214
5217
  ),
5215
5218
  '\xA0\xA0',
5216
5219
  _react2.default.createElement(Loop, null)
5220
+ ),
5221
+ index === 0 && checking && _react2.default.createElement(
5222
+ 'span',
5223
+ { style: { marginLeft: 10 } },
5224
+ _react2.default.createElement(Spinner, null)
5225
+ ),
5226
+ index === 0 && envCheckResult && _react2.default.createElement(
5227
+ 'span',
5228
+ { style: { marginLeft: 10 } },
5229
+ envCheckResult
5217
5230
  )
5218
5231
  );
5219
5232
  })
@@ -5462,10 +5475,10 @@ module.exports =
5462
5475
  deleteFlatFile: deleteFlatFile
5463
5476
  }) : isGoogle ? _react2.default.createElement(_google2.default, { config: config, creds: creds, onChange: this.onChange,
5464
5477
  credsDisabledCheck: credsDisabledCheck, inputs: inputs,
5465
- onCheck: check
5478
+ onCheck: check, envCheckResult: envCheckResult, checking: checking
5466
5479
  }) : isSFTP ? _react2.default.createElement(_sftp2.default, { config: config, creds: creds, onChange: this.onChange,
5467
5480
  credsDisabledCheck: credsDisabledCheck, inputs: inputs,
5468
- onCheck: check
5481
+ onCheck: check, envCheckResult: envCheckResult, checking: checking
5469
5482
  }) : isWebSocket ? _react2.default.createElement(_websocket2.default, { wizard: wizard, creds: creds, onChange: this.onChange, checking: checking, gencerts: gencerts,
5470
5483
  credsDisabledCheck: credsDisabledCheck, inputs: inputs, credKeyPress: this.credKeyPress,
5471
5484
  onCheck: check, actualCreds: this.state.actualCreds, envCheckResult: envCheckResult,
@@ -5574,6 +5587,16 @@ module.exports =
5574
5587
  '\xA0\xA0',
5575
5588
  _react2.default.createElement(Loop, null)
5576
5589
  ),
5590
+ index === 0 && noRootUrl && checking && _react2.default.createElement(
5591
+ 'span',
5592
+ { style: { marginLeft: 10 } },
5593
+ _react2.default.createElement(Spinner, null)
5594
+ ),
5595
+ index === 0 && noRootUrl && envCheckResult && _react2.default.createElement(
5596
+ 'span',
5597
+ { style: { marginLeft: 10 } },
5598
+ envCheckResult
5599
+ ),
5577
5600
  credType === 'password' && _react2.default.createElement(Key, { showPass: _this2.state.showPass,
5578
5601
  onClick: function onClick() {
5579
5602
  return _this2.setState({ showPass: !_this2.state.showPass });
@@ -6011,7 +6034,9 @@ module.exports =
6011
6034
  onCheck = _props2.onCheck,
6012
6035
  inputs = _props2.inputs,
6013
6036
  creds = _props2.creds,
6014
- onChange = _props2.onChange;
6037
+ onChange = _props2.onChange,
6038
+ checking = _props2.checking,
6039
+ envCheckResult = _props2.envCheckResult;
6015
6040
  var credentialType = this.state.credentialType;
6016
6041
 
6017
6042
 
@@ -6020,6 +6045,7 @@ module.exports =
6020
6045
  var Button = inputs.Button;
6021
6046
  var Input = inputs.Input;
6022
6047
  var Toggle = inputs.ToggleButtonGroup;
6048
+ var Spinner = inputs.Spinner;
6023
6049
 
6024
6050
  var credentials = config && config.credentials.filter(function (o) {
6025
6051
  if (o === 'privateKey') {
@@ -6051,7 +6077,17 @@ module.exports =
6051
6077
  null,
6052
6078
  credentials && _react2.default.createElement(
6053
6079
  'div',
6054
- { style: { marginLeft: 0 } },
6080
+ { style: { display: 'inline-block' } },
6081
+ _react2.default.createElement(
6082
+ 'div',
6083
+ { style: { marginLeft: 15, marginTop: 40, float: 'right' } },
6084
+ checking && _react2.default.createElement(Spinner, null),
6085
+ envCheckResult && _react2.default.createElement(
6086
+ 'span',
6087
+ null,
6088
+ envCheckResult
6089
+ )
6090
+ ),
6055
6091
  _react2.default.createElement(
6056
6092
  'div',
6057
6093
  { style: { display: 'inline-block', marginLeft: 16 } },
@@ -6067,9 +6103,6 @@ module.exports =
6067
6103
  })
6068
6104
  ),
6069
6105
  credentials.map(function (credType, index) {
6070
-
6071
- console.log(creds[credType]);
6072
-
6073
6106
  return _react2.default.createElement(
6074
6107
  'div',
6075
6108
  { key: index, style: { marginTop: 8 } },