@lingk/sync 2.1.1 → 2.2.1

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.
package/build/main.js CHANGED
@@ -8976,7 +8976,15 @@ module.exports =
8976
8976
  className: "labelz",
8977
8977
  style: { fontWeight: "normal" }
8978
8978
  },
8979
- "SSH Key"
8979
+ "SSH Key (RSA Private Key wthout Passphrase)"
8980
+ ) : credType === "filePattern" ? _react2.default.createElement(
8981
+ "label",
8982
+ {
8983
+ htmlFor: credType,
8984
+ className: "labelz",
8985
+ style: { fontWeight: "normal" }
8986
+ },
8987
+ "File Naming Pattern (i.e. *.* or *.csv)"
8980
8988
  ) : _react2.default.createElement(
8981
8989
  "label",
8982
8990
  {
@@ -56616,7 +56624,9 @@ module.exports =
56616
56624
  _this.state = {
56617
56625
  selectedProvider: null,
56618
56626
  sourceEnvChecking: null,
56619
- destinationEnvChecking: null
56627
+ destinationEnvChecking: null,
56628
+ sourceShowConnectionLink: false,
56629
+ destinationShowConnectionLink: false
56620
56630
  };
56621
56631
  _this.check = _this.check.bind(_this);
56622
56632
  _this.tryGetCredentialAndCheck = _this.tryGetCredentialAndCheck.bind(_this);
@@ -56780,6 +56790,7 @@ module.exports =
56780
56790
  var m = modes[resIndex % 2];
56781
56791
  if (resIndex === 0 || resIndex === 1) {
56782
56792
  // main creds
56793
+
56783
56794
  if (cred && cred.credentialsJson) {
56784
56795
  var modeCreds = cred.credentialsJson;
56785
56796
  change(m + "Credentials", modeCreds);
@@ -56790,7 +56801,9 @@ module.exports =
56790
56801
  }
56791
56802
  _this4.check(m, env, modeCreds, isReload, extraQuery, cred.key);
56792
56803
  } else {
56793
- _this4.setState(_defineProperty({}, m + "EnvChecking", false));
56804
+ var _this4$setState;
56805
+
56806
+ _this4.setState((_this4$setState = {}, _defineProperty(_this4$setState, m + "EnvChecking", false), _defineProperty(_this4$setState, m + "ShowConnectionLink", true), _this4$setState));
56794
56807
  }
56795
56808
  } else {
56796
56809
  // adapter secret if exists
@@ -56872,10 +56885,12 @@ module.exports =
56872
56885
  change = _props10.change;
56873
56886
 
56874
56887
  var modes = ["source", "destination"];
56875
- var selectedProvider = this.state.selectedProvider;
56888
+ var _state = this.state,
56889
+ selectedProvider = _state.selectedProvider,
56890
+ sourceShowConnectionLink = _state.sourceShowConnectionLink,
56891
+ destinationShowConnectionLink = _state.destinationShowConnectionLink;
56876
56892
 
56877
56893
  var notAllMetadata = !(wizard["sourceMetadata"] && wizard["sourceMetadata"].length > 0) || !(wizard["destinationMetadata"] && wizard["destinationMetadata"].length > 0);
56878
-
56879
56894
  return _react2.default.createElement(
56880
56895
  "form",
56881
56896
  { onKeyPress: function onKeyPress(e) {
@@ -56945,9 +56960,7 @@ module.exports =
56945
56960
  _react2.default.createElement(
56946
56961
  "div",
56947
56962
  {
56948
- onClick: function onClick() {
56949
- return _this6.selectProvider(step[m + "Provider"]);
56950
- },
56963
+ // onClick={() => this.selectProvider(step[`${m}Provider`])}
56951
56964
  className: "env-section-header"
56952
56965
  },
56953
56966
  _react2.default.createElement(EnvCheckIcons, {
@@ -56963,7 +56976,7 @@ module.exports =
56963
56976
  step[m + "Config"].label || step[m + "Provider"]
56964
56977
  )
56965
56978
  ),
56966
- wizard[m + "Metadata"] && _react2.default.createElement(
56979
+ wizard[m + "Metadata"] ? _react2.default.createElement(
56967
56980
  "div",
56968
56981
  {
56969
56982
  className: "env-inspect-button",
@@ -56982,12 +56995,27 @@ module.exports =
56982
56995
  className: "env-inspect-eye",
56983
56996
  height: "24",
56984
56997
  viewBox: "0 0 24 24",
56985
- width: "24"
56998
+ width: "24",
56999
+ style: { marginTop: 0 }
56986
57000
  },
56987
57001
  _react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
56988
57002
  _react2.default.createElement("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" })
56989
57003
  )
56990
- ),
57004
+ ) : _this6.state[m + "ShowConnectionLink"] ? _react2.default.createElement(
57005
+ "div",
57006
+ {
57007
+ className: "env-inspect-button",
57008
+ style: { width: 180 },
57009
+ onClick: function onClick() {
57010
+ return window.location.href = "../../env/" + formValues["environmentId"];
57011
+ }
57012
+ },
57013
+ _react2.default.createElement(
57014
+ "span",
57015
+ null,
57016
+ "Configure connection"
57017
+ )
57018
+ ) : null,
56991
57019
  _react2.default.createElement(
56992
57020
  _CSSTransitionGroup2.default,
56993
57021
  {
@@ -57244,26 +57272,14 @@ module.exports =
57244
57272
  !checking && _react2.default.createElement(
57245
57273
  "svg",
57246
57274
  {
57247
- x: "0px",
57248
- y: "0px",
57249
- viewBox: "0 0 1000 1000",
57250
- height: "16",
57251
- width: "16",
57252
- style: {
57253
- marginLeft: 4,
57254
- marginTop: 3,
57255
- transform: "rotate(" + (isSelected ? -90 : 0) + "deg)",
57256
- transition: "all 0.1s"
57257
- }
57275
+ fill: "#EA5A5A",
57276
+ height: "24",
57277
+ viewBox: "0 0 24 24",
57278
+ width: "24",
57279
+ xmlns: "http://www.w3.org/2000/svg"
57258
57280
  },
57259
- _react2.default.createElement(
57260
- "g",
57261
- { transform: "matrix(1 0 0 -1 1000 -536) rotate(180)" },
57262
- _react2.default.createElement("path", {
57263
- d: "M978.4,833.3L877.5,732.9c-7.7-7.7-16.8-11.5-27.4-11.5c-10.5,0-19.7,3.8-27.4,11.5L500,1055.8L177.2,732.9c-7.7-7.7-16.8-11.5-27.4-11.5s-19.7,3.8-27.4,11.5L21.6,833.3C13.9,841,10,850.2,10,860.9c0,10.7,3.9,20,11.6,27.7l451.1,450.5c7.7,7.7,16.8,11.6,27.4,11.6c10.5,0,19.7-3.9,27.4-11.6l451.1-450.5c7.7-7.7,11.6-16.9,11.6-27.7C990,850.2,986.1,841,978.4,833.3z",
57264
- fill: "grey"
57265
- })
57266
- )
57281
+ _react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
57282
+ _react2.default.createElement("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" })
57267
57283
  )
57268
57284
  )
57269
57285
  );