@lingk/sync 2.0.14 → 2.0.15
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/credentialSections.js +84 -211
- package/build/credentialSections.js.map +1 -1
- package/build/css/main.css +454 -459
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/loadData.js.map +1 -1
- package/build/main.js +84 -211
- package/build/main.js.map +1 -1
- package/build/metadataDropdown.js.map +1 -1
- package/build/metadataFunctions.js.map +1 -1
- package/build/reducer.js.map +1 -1
- package/build/saveData.js.map +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -6988,29 +6988,6 @@ module.exports =
|
|
|
6988
6988
|
},
|
|
6989
6989
|
"Production"
|
|
6990
6990
|
),
|
|
6991
|
-
_react2.default.createElement(
|
|
6992
|
-
Button,
|
|
6993
|
-
{
|
|
6994
|
-
type: "brand",
|
|
6995
|
-
onClick: function onClick() {
|
|
6996
|
-
return onCheck(creds);
|
|
6997
|
-
},
|
|
6998
|
-
style: Object.assign({ marginLeft: 8 }, btnStyle)
|
|
6999
|
-
},
|
|
7000
|
-
_react2.default.createElement(
|
|
7001
|
-
"span",
|
|
7002
|
-
{
|
|
7003
|
-
style: {
|
|
7004
|
-
display: "inline-block",
|
|
7005
|
-
verticalAlign: "top",
|
|
7006
|
-
marginTop: 3
|
|
7007
|
-
}
|
|
7008
|
-
},
|
|
7009
|
-
"Test Connection"
|
|
7010
|
-
),
|
|
7011
|
-
"\xA0\xA0",
|
|
7012
|
-
_react2.default.createElement(Loop, null)
|
|
7013
|
-
),
|
|
7014
6991
|
_react2.default.createElement(
|
|
7015
6992
|
"div",
|
|
7016
6993
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -7018,8 +6995,6 @@ module.exports =
|
|
|
7018
6995
|
envCheckResult && _react2.default.createElement(
|
|
7019
6996
|
"span",
|
|
7020
6997
|
null,
|
|
7021
|
-
envCheckResult,
|
|
7022
|
-
" ",
|
|
7023
6998
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
7024
6999
|
)
|
|
7025
7000
|
)
|
|
@@ -7672,7 +7647,7 @@ module.exports =
|
|
|
7672
7647
|
/* 70 */
|
|
7673
7648
|
/***/ function(module, exports, __webpack_require__) {
|
|
7674
7649
|
|
|
7675
|
-
|
|
7650
|
+
"use strict";
|
|
7676
7651
|
|
|
7677
7652
|
Object.defineProperty(exports, "__esModule", {
|
|
7678
7653
|
value: true
|
|
@@ -7696,13 +7671,13 @@ module.exports =
|
|
|
7696
7671
|
|
|
7697
7672
|
// SKIP ON SERVER-SIDE RENDERING
|
|
7698
7673
|
var codemirror = null;
|
|
7699
|
-
if (typeof window !==
|
|
7674
|
+
if (typeof window !== "undefined" && typeof window.navigator !== "undefined") {
|
|
7700
7675
|
codemirror = __webpack_require__(39);
|
|
7701
7676
|
__webpack_require__(30);
|
|
7702
7677
|
}
|
|
7703
7678
|
|
|
7704
7679
|
function unCamelize(text) {
|
|
7705
|
-
return text.replace(/([A-Z])/g,
|
|
7680
|
+
return text.replace(/([A-Z])/g, " $1").replace(/^./, function (str) {
|
|
7706
7681
|
return str.toUpperCase();
|
|
7707
7682
|
});
|
|
7708
7683
|
}
|
|
@@ -7722,7 +7697,7 @@ module.exports =
|
|
|
7722
7697
|
}
|
|
7723
7698
|
|
|
7724
7699
|
_createClass(Google, [{
|
|
7725
|
-
key:
|
|
7700
|
+
key: "render",
|
|
7726
7701
|
value: function render() {
|
|
7727
7702
|
var _this2 = this;
|
|
7728
7703
|
|
|
@@ -7743,93 +7718,101 @@ module.exports =
|
|
|
7743
7718
|
var Spinner = inputs.Spinner;
|
|
7744
7719
|
var CodeMirror = codemirror && codemirror.Controlled;
|
|
7745
7720
|
|
|
7746
|
-
var CloudSQLTypes = [{
|
|
7721
|
+
var CloudSQLTypes = [{
|
|
7722
|
+
name: "Postgres",
|
|
7723
|
+
satisfiesSearch: true,
|
|
7724
|
+
type: "Postgres",
|
|
7725
|
+
title: "Postgres"
|
|
7726
|
+
}, { name: "MySQL", satisfiesSearch: true, type: "MySQL", title: "MySQL" }];
|
|
7747
7727
|
|
|
7748
|
-
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] ===
|
|
7728
|
+
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] === "json";
|
|
7749
7729
|
|
|
7750
7730
|
return _react2.default.createElement(
|
|
7751
|
-
|
|
7731
|
+
"div",
|
|
7752
7732
|
null,
|
|
7753
7733
|
config.credentials && _react2.default.createElement(
|
|
7754
|
-
|
|
7734
|
+
"div",
|
|
7755
7735
|
{ style: { marginLeft: 1 } },
|
|
7756
7736
|
_react2.default.createElement(
|
|
7757
|
-
|
|
7758
|
-
{ htmlFor:
|
|
7737
|
+
"label",
|
|
7738
|
+
{ htmlFor: "creds" },
|
|
7759
7739
|
config.label || config.type,
|
|
7760
|
-
|
|
7740
|
+
" Credentials"
|
|
7761
7741
|
),
|
|
7762
|
-
_react2.default.createElement(
|
|
7742
|
+
_react2.default.createElement("br", null),
|
|
7763
7743
|
_react2.default.createElement(
|
|
7764
|
-
|
|
7765
|
-
{
|
|
7744
|
+
"div",
|
|
7745
|
+
{
|
|
7746
|
+
style: { display: "inline-block", marginLeft: 16, width: "100%" }
|
|
7747
|
+
},
|
|
7766
7748
|
config.credentials.map(function (credType, index) {
|
|
7767
7749
|
return _react2.default.createElement(
|
|
7768
|
-
|
|
7769
|
-
{ key: index, style: { marginTop: 8, width:
|
|
7750
|
+
"div",
|
|
7751
|
+
{ key: index, style: { marginTop: 8, width: "100%" } },
|
|
7770
7752
|
_react2.default.createElement(
|
|
7771
|
-
|
|
7772
|
-
{
|
|
7773
|
-
|
|
7753
|
+
"label",
|
|
7754
|
+
{
|
|
7755
|
+
htmlFor: credType,
|
|
7756
|
+
className: "labelz",
|
|
7757
|
+
style: { fontWeight: "normal" }
|
|
7758
|
+
},
|
|
7759
|
+
credType !== "json" ? unCamelize(credType) : "API key (paste json or drag-and-drop file)"
|
|
7774
7760
|
),
|
|
7775
|
-
_react2.default.createElement(
|
|
7776
|
-
credType !==
|
|
7777
|
-
|
|
7778
|
-
{
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7761
|
+
_react2.default.createElement("br", null),
|
|
7762
|
+
credType !== "json" ? _react2.default.createElement(
|
|
7763
|
+
"div",
|
|
7764
|
+
{
|
|
7765
|
+
style: {
|
|
7766
|
+
display: "inline-block",
|
|
7767
|
+
width: credType !== "databaseType" ? 300 : 164
|
|
7768
|
+
}
|
|
7769
|
+
},
|
|
7770
|
+
credType !== "databaseType" ? _react2.default.createElement(Input, {
|
|
7771
|
+
name: credType,
|
|
7772
|
+
datatype: credType === "password" && !_this2.state.showPass ? "password" : null,
|
|
7773
|
+
value: creds[credType] || "",
|
|
7774
|
+
onChange: onChange
|
|
7775
|
+
}) : _react2.default.createElement(Select, {
|
|
7776
|
+
vals: CloudSQLTypes,
|
|
7777
|
+
fieldPropLabel: "name",
|
|
7778
|
+
label: creds[credType] || "Database Types",
|
|
7783
7779
|
onSelect: function onSelect(v) {
|
|
7784
7780
|
return onChange({ target: { name: credType, value: v } });
|
|
7785
7781
|
},
|
|
7786
|
-
size:
|
|
7782
|
+
size: "small",
|
|
7783
|
+
style: {
|
|
7784
|
+
width: 160,
|
|
7785
|
+
height: 31,
|
|
7786
|
+
textAlign: "left"
|
|
7787
|
+
}
|
|
7787
7788
|
})
|
|
7788
|
-
) : _react2.default.createElement(CodeMirror, {
|
|
7789
|
-
|
|
7789
|
+
) : _react2.default.createElement(CodeMirror, {
|
|
7790
|
+
value: creds[credType],
|
|
7791
|
+
className: "env-creds-json-codemirror",
|
|
7790
7792
|
options: {
|
|
7791
7793
|
lineNumbers: true,
|
|
7792
|
-
theme:
|
|
7793
|
-
mode:
|
|
7794
|
+
theme: "default",
|
|
7795
|
+
mode: "javascript",
|
|
7794
7796
|
dragDrop: true
|
|
7795
7797
|
},
|
|
7796
7798
|
onBeforeChange: function onBeforeChange(e, d, v) {
|
|
7797
7799
|
return onChange({ target: { name: credType, value: v } });
|
|
7798
7800
|
}
|
|
7799
7801
|
}),
|
|
7800
|
-
credType ===
|
|
7802
|
+
credType === "password" && _react2.default.createElement(Key, {
|
|
7803
|
+
showPass: _this2.state.showPass,
|
|
7801
7804
|
onClick: function onClick() {
|
|
7802
7805
|
return _this2.setState({ showPass: !_this2.state.showPass });
|
|
7803
7806
|
}
|
|
7804
7807
|
}),
|
|
7805
|
-
index === 0 && _react2.default.createElement(
|
|
7806
|
-
Button,
|
|
7807
|
-
{ type: 'brand',
|
|
7808
|
-
onClick: function onClick() {
|
|
7809
|
-
return onCheck(creds);
|
|
7810
|
-
},
|
|
7811
|
-
style: { marginLeft: onlyJson ? 0 : 8, marginTop: onlyJson ? 8 : 0,
|
|
7812
|
-
marginBottom: 2, height: 30, lineHeight: '10px'
|
|
7813
|
-
},
|
|
7814
|
-
disabled: credsDisabledCheck },
|
|
7815
|
-
_react2.default.createElement(
|
|
7816
|
-
'span',
|
|
7817
|
-
{ style: { display: 'inline-block', verticalAlign: 'top', marginTop: 3 } },
|
|
7818
|
-
'Test Connection'
|
|
7819
|
-
),
|
|
7820
|
-
'\xA0\xA0',
|
|
7821
|
-
_react2.default.createElement(Loop, null)
|
|
7822
|
-
),
|
|
7823
7808
|
index === 0 && checking && _react2.default.createElement(
|
|
7824
|
-
|
|
7809
|
+
"span",
|
|
7825
7810
|
{ style: { marginLeft: 10 } },
|
|
7826
7811
|
_react2.default.createElement(Spinner, null)
|
|
7827
7812
|
),
|
|
7828
7813
|
index === 0 && envCheckResult && _react2.default.createElement(
|
|
7829
|
-
|
|
7814
|
+
"span",
|
|
7830
7815
|
{ style: { marginLeft: 10 } },
|
|
7831
|
-
envCheckResult,
|
|
7832
|
-
' ',
|
|
7833
7816
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
7834
7817
|
)
|
|
7835
7818
|
);
|
|
@@ -7845,11 +7828,16 @@ module.exports =
|
|
|
7845
7828
|
|
|
7846
7829
|
var Loop = function Loop() {
|
|
7847
7830
|
return _react2.default.createElement(
|
|
7848
|
-
|
|
7849
|
-
{
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7831
|
+
"svg",
|
|
7832
|
+
{
|
|
7833
|
+
fill: "#FFFFFF",
|
|
7834
|
+
height: "18",
|
|
7835
|
+
viewBox: "0 0 24 24",
|
|
7836
|
+
width: "18",
|
|
7837
|
+
style: { marginTop: -1 }
|
|
7838
|
+
},
|
|
7839
|
+
_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" }),
|
|
7840
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
|
7853
7841
|
);
|
|
7854
7842
|
};
|
|
7855
7843
|
|
|
@@ -7858,11 +7846,17 @@ module.exports =
|
|
|
7858
7846
|
showPass = _ref.showPass;
|
|
7859
7847
|
|
|
7860
7848
|
return _react2.default.createElement(
|
|
7861
|
-
|
|
7862
|
-
{
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7849
|
+
"svg",
|
|
7850
|
+
{
|
|
7851
|
+
onClick: onClick,
|
|
7852
|
+
style: showPass ? { fill: "#3a91dcb3" } : {},
|
|
7853
|
+
height: "24",
|
|
7854
|
+
width: "24",
|
|
7855
|
+
className: "pass-key-svg",
|
|
7856
|
+
viewBox: "0 0 24 24"
|
|
7857
|
+
},
|
|
7858
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
7859
|
+
_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" })
|
|
7866
7860
|
);
|
|
7867
7861
|
};
|
|
7868
7862
|
|
|
@@ -8251,36 +8245,6 @@ module.exports =
|
|
|
8251
8245
|
onChange: this.onChange
|
|
8252
8246
|
})
|
|
8253
8247
|
),
|
|
8254
|
-
_react2.default.createElement(
|
|
8255
|
-
Button,
|
|
8256
|
-
{
|
|
8257
|
-
type: "brand",
|
|
8258
|
-
onClick: function onClick() {
|
|
8259
|
-
return check(_this2.state.actualCreds);
|
|
8260
|
-
},
|
|
8261
|
-
style: {
|
|
8262
|
-
marginLeft: 8,
|
|
8263
|
-
marginBottom: 2,
|
|
8264
|
-
height: 30,
|
|
8265
|
-
lineHeight: "10px",
|
|
8266
|
-
marginTop: -1
|
|
8267
|
-
},
|
|
8268
|
-
disabled: !hasEndpoint || credsDisabledCheck
|
|
8269
|
-
},
|
|
8270
|
-
_react2.default.createElement(
|
|
8271
|
-
"span",
|
|
8272
|
-
{
|
|
8273
|
-
style: {
|
|
8274
|
-
display: "inline-block",
|
|
8275
|
-
verticalAlign: "top",
|
|
8276
|
-
marginTop: 3
|
|
8277
|
-
}
|
|
8278
|
-
},
|
|
8279
|
-
"Test Connection"
|
|
8280
|
-
),
|
|
8281
|
-
"\xA0\xA0",
|
|
8282
|
-
_react2.default.createElement(Loop, null)
|
|
8283
|
-
),
|
|
8284
8248
|
_react2.default.createElement(
|
|
8285
8249
|
"div",
|
|
8286
8250
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -8288,8 +8252,6 @@ module.exports =
|
|
|
8288
8252
|
envCheckResult && _react2.default.createElement(
|
|
8289
8253
|
"span",
|
|
8290
8254
|
null,
|
|
8291
|
-
envCheckResult,
|
|
8292
|
-
" ",
|
|
8293
8255
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult }),
|
|
8294
8256
|
" "
|
|
8295
8257
|
)
|
|
@@ -8346,36 +8308,6 @@ module.exports =
|
|
|
8346
8308
|
value: _this2.state.actualCreds[credType] || "",
|
|
8347
8309
|
onChange: _this2.onChange
|
|
8348
8310
|
}),
|
|
8349
|
-
index === 0 && noRootUrl && _react2.default.createElement(
|
|
8350
|
-
Button,
|
|
8351
|
-
{
|
|
8352
|
-
type: "brand",
|
|
8353
|
-
onClick: function onClick() {
|
|
8354
|
-
return check(_this2.state.actualCreds);
|
|
8355
|
-
},
|
|
8356
|
-
style: {
|
|
8357
|
-
marginLeft: 8,
|
|
8358
|
-
marginBottom: 4,
|
|
8359
|
-
height: 30,
|
|
8360
|
-
lineHeight: "10px",
|
|
8361
|
-
marginTop: -1
|
|
8362
|
-
},
|
|
8363
|
-
disabled: credsDisabledCheck
|
|
8364
|
-
},
|
|
8365
|
-
_react2.default.createElement(
|
|
8366
|
-
"span",
|
|
8367
|
-
{
|
|
8368
|
-
style: {
|
|
8369
|
-
display: "inline-block",
|
|
8370
|
-
verticalAlign: "top",
|
|
8371
|
-
marginTop: 3
|
|
8372
|
-
}
|
|
8373
|
-
},
|
|
8374
|
-
"Test Connection"
|
|
8375
|
-
),
|
|
8376
|
-
"\xA0\xA0",
|
|
8377
|
-
_react2.default.createElement(Loop, null)
|
|
8378
|
-
),
|
|
8379
8311
|
index === 0 && noRootUrl && checking && _react2.default.createElement(
|
|
8380
8312
|
"span",
|
|
8381
8313
|
{ style: { marginLeft: 10 } },
|
|
@@ -8384,8 +8316,6 @@ module.exports =
|
|
|
8384
8316
|
index === 0 && noRootUrl && envCheckResult && _react2.default.createElement(
|
|
8385
8317
|
"span",
|
|
8386
8318
|
{ style: { marginLeft: 10 } },
|
|
8387
|
-
envCheckResult,
|
|
8388
|
-
" ",
|
|
8389
8319
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
8390
8320
|
),
|
|
8391
8321
|
credType === "password" && _react2.default.createElement(Key, {
|
|
@@ -8662,29 +8592,6 @@ module.exports =
|
|
|
8662
8592
|
},
|
|
8663
8593
|
"Production"
|
|
8664
8594
|
),
|
|
8665
|
-
_react2.default.createElement(
|
|
8666
|
-
Button,
|
|
8667
|
-
{
|
|
8668
|
-
type: "brand",
|
|
8669
|
-
onClick: function onClick() {
|
|
8670
|
-
return onCheck(creds, formValues && formValues.includeSystemResources ? "?all=true" : "");
|
|
8671
|
-
},
|
|
8672
|
-
style: Object.assign({ marginLeft: 8 }, btnStyle)
|
|
8673
|
-
},
|
|
8674
|
-
_react2.default.createElement(
|
|
8675
|
-
"span",
|
|
8676
|
-
{
|
|
8677
|
-
style: {
|
|
8678
|
-
display: "inline-block",
|
|
8679
|
-
verticalAlign: "top",
|
|
8680
|
-
marginTop: 3
|
|
8681
|
-
}
|
|
8682
|
-
},
|
|
8683
|
-
"Test Connection"
|
|
8684
|
-
),
|
|
8685
|
-
"\xA0\xA0",
|
|
8686
|
-
_react2.default.createElement(Loop, null)
|
|
8687
|
-
),
|
|
8688
8595
|
_react2.default.createElement(
|
|
8689
8596
|
"div",
|
|
8690
8597
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -8692,8 +8599,6 @@ module.exports =
|
|
|
8692
8599
|
envCheckResult && _react2.default.createElement(
|
|
8693
8600
|
"span",
|
|
8694
8601
|
null,
|
|
8695
|
-
envCheckResult,
|
|
8696
|
-
" ",
|
|
8697
8602
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
8698
8603
|
)
|
|
8699
8604
|
),
|
|
@@ -8995,8 +8900,6 @@ module.exports =
|
|
|
8995
8900
|
envCheckResult && _react2.default.createElement(
|
|
8996
8901
|
"span",
|
|
8997
8902
|
null,
|
|
8998
|
-
envCheckResult,
|
|
8999
|
-
" ",
|
|
9000
8903
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult }),
|
|
9001
8904
|
" "
|
|
9002
8905
|
)
|
|
@@ -9059,36 +8962,6 @@ module.exports =
|
|
|
9059
8962
|
value: creds[credType] || "",
|
|
9060
8963
|
onChange: onChange
|
|
9061
8964
|
}),
|
|
9062
|
-
index === 0 && _react2.default.createElement(
|
|
9063
|
-
Button,
|
|
9064
|
-
{
|
|
9065
|
-
type: "brand",
|
|
9066
|
-
onClick: function onClick() {
|
|
9067
|
-
return onCheck(creds);
|
|
9068
|
-
},
|
|
9069
|
-
style: {
|
|
9070
|
-
marginLeft: 8,
|
|
9071
|
-
marginBottom: 4,
|
|
9072
|
-
height: 30,
|
|
9073
|
-
lineHeight: "10px",
|
|
9074
|
-
marginTop: -1
|
|
9075
|
-
},
|
|
9076
|
-
disabled: credsDisabledCheck
|
|
9077
|
-
},
|
|
9078
|
-
_react2.default.createElement(
|
|
9079
|
-
"span",
|
|
9080
|
-
{
|
|
9081
|
-
style: {
|
|
9082
|
-
display: "inline-block",
|
|
9083
|
-
verticalAlign: "top",
|
|
9084
|
-
marginTop: 3
|
|
9085
|
-
}
|
|
9086
|
-
},
|
|
9087
|
-
"Test Connection"
|
|
9088
|
-
),
|
|
9089
|
-
"\xA0\xA0",
|
|
9090
|
-
_react2.default.createElement(Loop, null)
|
|
9091
|
-
),
|
|
9092
8965
|
credType === "password" && _react2.default.createElement(Key, {
|
|
9093
8966
|
showPass: _this2.state.showPass,
|
|
9094
8967
|
onClick: function onClick() {
|