@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
|
@@ -5230,29 +5230,6 @@ module.exports =
|
|
|
5230
5230
|
},
|
|
5231
5231
|
"Production"
|
|
5232
5232
|
),
|
|
5233
|
-
_react2.default.createElement(
|
|
5234
|
-
Button,
|
|
5235
|
-
{
|
|
5236
|
-
type: "brand",
|
|
5237
|
-
onClick: function onClick() {
|
|
5238
|
-
return onCheck(creds);
|
|
5239
|
-
},
|
|
5240
|
-
style: Object.assign({ marginLeft: 8 }, btnStyle)
|
|
5241
|
-
},
|
|
5242
|
-
_react2.default.createElement(
|
|
5243
|
-
"span",
|
|
5244
|
-
{
|
|
5245
|
-
style: {
|
|
5246
|
-
display: "inline-block",
|
|
5247
|
-
verticalAlign: "top",
|
|
5248
|
-
marginTop: 3
|
|
5249
|
-
}
|
|
5250
|
-
},
|
|
5251
|
-
"Test Connection"
|
|
5252
|
-
),
|
|
5253
|
-
"\xA0\xA0",
|
|
5254
|
-
_react2.default.createElement(Loop, null)
|
|
5255
|
-
),
|
|
5256
5233
|
_react2.default.createElement(
|
|
5257
5234
|
"div",
|
|
5258
5235
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -5260,8 +5237,6 @@ module.exports =
|
|
|
5260
5237
|
envCheckResult && _react2.default.createElement(
|
|
5261
5238
|
"span",
|
|
5262
5239
|
null,
|
|
5263
|
-
envCheckResult,
|
|
5264
|
-
" ",
|
|
5265
5240
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
5266
5241
|
)
|
|
5267
5242
|
)
|
|
@@ -5914,7 +5889,7 @@ module.exports =
|
|
|
5914
5889
|
/* 70 */
|
|
5915
5890
|
/***/ function(module, exports, __webpack_require__) {
|
|
5916
5891
|
|
|
5917
|
-
|
|
5892
|
+
"use strict";
|
|
5918
5893
|
|
|
5919
5894
|
Object.defineProperty(exports, "__esModule", {
|
|
5920
5895
|
value: true
|
|
@@ -5938,13 +5913,13 @@ module.exports =
|
|
|
5938
5913
|
|
|
5939
5914
|
// SKIP ON SERVER-SIDE RENDERING
|
|
5940
5915
|
var codemirror = null;
|
|
5941
|
-
if (typeof window !==
|
|
5916
|
+
if (typeof window !== "undefined" && typeof window.navigator !== "undefined") {
|
|
5942
5917
|
codemirror = __webpack_require__(39);
|
|
5943
5918
|
__webpack_require__(30);
|
|
5944
5919
|
}
|
|
5945
5920
|
|
|
5946
5921
|
function unCamelize(text) {
|
|
5947
|
-
return text.replace(/([A-Z])/g,
|
|
5922
|
+
return text.replace(/([A-Z])/g, " $1").replace(/^./, function (str) {
|
|
5948
5923
|
return str.toUpperCase();
|
|
5949
5924
|
});
|
|
5950
5925
|
}
|
|
@@ -5964,7 +5939,7 @@ module.exports =
|
|
|
5964
5939
|
}
|
|
5965
5940
|
|
|
5966
5941
|
_createClass(Google, [{
|
|
5967
|
-
key:
|
|
5942
|
+
key: "render",
|
|
5968
5943
|
value: function render() {
|
|
5969
5944
|
var _this2 = this;
|
|
5970
5945
|
|
|
@@ -5985,93 +5960,101 @@ module.exports =
|
|
|
5985
5960
|
var Spinner = inputs.Spinner;
|
|
5986
5961
|
var CodeMirror = codemirror && codemirror.Controlled;
|
|
5987
5962
|
|
|
5988
|
-
var CloudSQLTypes = [{
|
|
5963
|
+
var CloudSQLTypes = [{
|
|
5964
|
+
name: "Postgres",
|
|
5965
|
+
satisfiesSearch: true,
|
|
5966
|
+
type: "Postgres",
|
|
5967
|
+
title: "Postgres"
|
|
5968
|
+
}, { name: "MySQL", satisfiesSearch: true, type: "MySQL", title: "MySQL" }];
|
|
5989
5969
|
|
|
5990
|
-
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] ===
|
|
5970
|
+
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] === "json";
|
|
5991
5971
|
|
|
5992
5972
|
return _react2.default.createElement(
|
|
5993
|
-
|
|
5973
|
+
"div",
|
|
5994
5974
|
null,
|
|
5995
5975
|
config.credentials && _react2.default.createElement(
|
|
5996
|
-
|
|
5976
|
+
"div",
|
|
5997
5977
|
{ style: { marginLeft: 1 } },
|
|
5998
5978
|
_react2.default.createElement(
|
|
5999
|
-
|
|
6000
|
-
{ htmlFor:
|
|
5979
|
+
"label",
|
|
5980
|
+
{ htmlFor: "creds" },
|
|
6001
5981
|
config.label || config.type,
|
|
6002
|
-
|
|
5982
|
+
" Credentials"
|
|
6003
5983
|
),
|
|
6004
|
-
_react2.default.createElement(
|
|
5984
|
+
_react2.default.createElement("br", null),
|
|
6005
5985
|
_react2.default.createElement(
|
|
6006
|
-
|
|
6007
|
-
{
|
|
5986
|
+
"div",
|
|
5987
|
+
{
|
|
5988
|
+
style: { display: "inline-block", marginLeft: 16, width: "100%" }
|
|
5989
|
+
},
|
|
6008
5990
|
config.credentials.map(function (credType, index) {
|
|
6009
5991
|
return _react2.default.createElement(
|
|
6010
|
-
|
|
6011
|
-
{ key: index, style: { marginTop: 8, width:
|
|
5992
|
+
"div",
|
|
5993
|
+
{ key: index, style: { marginTop: 8, width: "100%" } },
|
|
6012
5994
|
_react2.default.createElement(
|
|
6013
|
-
|
|
6014
|
-
{
|
|
6015
|
-
|
|
5995
|
+
"label",
|
|
5996
|
+
{
|
|
5997
|
+
htmlFor: credType,
|
|
5998
|
+
className: "labelz",
|
|
5999
|
+
style: { fontWeight: "normal" }
|
|
6000
|
+
},
|
|
6001
|
+
credType !== "json" ? unCamelize(credType) : "API key (paste json or drag-and-drop file)"
|
|
6016
6002
|
),
|
|
6017
|
-
_react2.default.createElement(
|
|
6018
|
-
credType !==
|
|
6019
|
-
|
|
6020
|
-
{
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6003
|
+
_react2.default.createElement("br", null),
|
|
6004
|
+
credType !== "json" ? _react2.default.createElement(
|
|
6005
|
+
"div",
|
|
6006
|
+
{
|
|
6007
|
+
style: {
|
|
6008
|
+
display: "inline-block",
|
|
6009
|
+
width: credType !== "databaseType" ? 300 : 164
|
|
6010
|
+
}
|
|
6011
|
+
},
|
|
6012
|
+
credType !== "databaseType" ? _react2.default.createElement(Input, {
|
|
6013
|
+
name: credType,
|
|
6014
|
+
datatype: credType === "password" && !_this2.state.showPass ? "password" : null,
|
|
6015
|
+
value: creds[credType] || "",
|
|
6016
|
+
onChange: onChange
|
|
6017
|
+
}) : _react2.default.createElement(Select, {
|
|
6018
|
+
vals: CloudSQLTypes,
|
|
6019
|
+
fieldPropLabel: "name",
|
|
6020
|
+
label: creds[credType] || "Database Types",
|
|
6025
6021
|
onSelect: function onSelect(v) {
|
|
6026
6022
|
return onChange({ target: { name: credType, value: v } });
|
|
6027
6023
|
},
|
|
6028
|
-
size:
|
|
6024
|
+
size: "small",
|
|
6025
|
+
style: {
|
|
6026
|
+
width: 160,
|
|
6027
|
+
height: 31,
|
|
6028
|
+
textAlign: "left"
|
|
6029
|
+
}
|
|
6029
6030
|
})
|
|
6030
|
-
) : _react2.default.createElement(CodeMirror, {
|
|
6031
|
-
|
|
6031
|
+
) : _react2.default.createElement(CodeMirror, {
|
|
6032
|
+
value: creds[credType],
|
|
6033
|
+
className: "env-creds-json-codemirror",
|
|
6032
6034
|
options: {
|
|
6033
6035
|
lineNumbers: true,
|
|
6034
|
-
theme:
|
|
6035
|
-
mode:
|
|
6036
|
+
theme: "default",
|
|
6037
|
+
mode: "javascript",
|
|
6036
6038
|
dragDrop: true
|
|
6037
6039
|
},
|
|
6038
6040
|
onBeforeChange: function onBeforeChange(e, d, v) {
|
|
6039
6041
|
return onChange({ target: { name: credType, value: v } });
|
|
6040
6042
|
}
|
|
6041
6043
|
}),
|
|
6042
|
-
credType ===
|
|
6044
|
+
credType === "password" && _react2.default.createElement(Key, {
|
|
6045
|
+
showPass: _this2.state.showPass,
|
|
6043
6046
|
onClick: function onClick() {
|
|
6044
6047
|
return _this2.setState({ showPass: !_this2.state.showPass });
|
|
6045
6048
|
}
|
|
6046
6049
|
}),
|
|
6047
|
-
index === 0 && _react2.default.createElement(
|
|
6048
|
-
Button,
|
|
6049
|
-
{ type: 'brand',
|
|
6050
|
-
onClick: function onClick() {
|
|
6051
|
-
return onCheck(creds);
|
|
6052
|
-
},
|
|
6053
|
-
style: { marginLeft: onlyJson ? 0 : 8, marginTop: onlyJson ? 8 : 0,
|
|
6054
|
-
marginBottom: 2, height: 30, lineHeight: '10px'
|
|
6055
|
-
},
|
|
6056
|
-
disabled: credsDisabledCheck },
|
|
6057
|
-
_react2.default.createElement(
|
|
6058
|
-
'span',
|
|
6059
|
-
{ style: { display: 'inline-block', verticalAlign: 'top', marginTop: 3 } },
|
|
6060
|
-
'Test Connection'
|
|
6061
|
-
),
|
|
6062
|
-
'\xA0\xA0',
|
|
6063
|
-
_react2.default.createElement(Loop, null)
|
|
6064
|
-
),
|
|
6065
6050
|
index === 0 && checking && _react2.default.createElement(
|
|
6066
|
-
|
|
6051
|
+
"span",
|
|
6067
6052
|
{ style: { marginLeft: 10 } },
|
|
6068
6053
|
_react2.default.createElement(Spinner, null)
|
|
6069
6054
|
),
|
|
6070
6055
|
index === 0 && envCheckResult && _react2.default.createElement(
|
|
6071
|
-
|
|
6056
|
+
"span",
|
|
6072
6057
|
{ style: { marginLeft: 10 } },
|
|
6073
|
-
envCheckResult,
|
|
6074
|
-
' ',
|
|
6075
6058
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
6076
6059
|
)
|
|
6077
6060
|
);
|
|
@@ -6087,11 +6070,16 @@ module.exports =
|
|
|
6087
6070
|
|
|
6088
6071
|
var Loop = function Loop() {
|
|
6089
6072
|
return _react2.default.createElement(
|
|
6090
|
-
|
|
6091
|
-
{
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6073
|
+
"svg",
|
|
6074
|
+
{
|
|
6075
|
+
fill: "#FFFFFF",
|
|
6076
|
+
height: "18",
|
|
6077
|
+
viewBox: "0 0 24 24",
|
|
6078
|
+
width: "18",
|
|
6079
|
+
style: { marginTop: -1 }
|
|
6080
|
+
},
|
|
6081
|
+
_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" }),
|
|
6082
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
|
6095
6083
|
);
|
|
6096
6084
|
};
|
|
6097
6085
|
|
|
@@ -6100,11 +6088,17 @@ module.exports =
|
|
|
6100
6088
|
showPass = _ref.showPass;
|
|
6101
6089
|
|
|
6102
6090
|
return _react2.default.createElement(
|
|
6103
|
-
|
|
6104
|
-
{
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6091
|
+
"svg",
|
|
6092
|
+
{
|
|
6093
|
+
onClick: onClick,
|
|
6094
|
+
style: showPass ? { fill: "#3a91dcb3" } : {},
|
|
6095
|
+
height: "24",
|
|
6096
|
+
width: "24",
|
|
6097
|
+
className: "pass-key-svg",
|
|
6098
|
+
viewBox: "0 0 24 24"
|
|
6099
|
+
},
|
|
6100
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
6101
|
+
_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" })
|
|
6108
6102
|
);
|
|
6109
6103
|
};
|
|
6110
6104
|
|
|
@@ -6493,36 +6487,6 @@ module.exports =
|
|
|
6493
6487
|
onChange: this.onChange
|
|
6494
6488
|
})
|
|
6495
6489
|
),
|
|
6496
|
-
_react2.default.createElement(
|
|
6497
|
-
Button,
|
|
6498
|
-
{
|
|
6499
|
-
type: "brand",
|
|
6500
|
-
onClick: function onClick() {
|
|
6501
|
-
return check(_this2.state.actualCreds);
|
|
6502
|
-
},
|
|
6503
|
-
style: {
|
|
6504
|
-
marginLeft: 8,
|
|
6505
|
-
marginBottom: 2,
|
|
6506
|
-
height: 30,
|
|
6507
|
-
lineHeight: "10px",
|
|
6508
|
-
marginTop: -1
|
|
6509
|
-
},
|
|
6510
|
-
disabled: !hasEndpoint || credsDisabledCheck
|
|
6511
|
-
},
|
|
6512
|
-
_react2.default.createElement(
|
|
6513
|
-
"span",
|
|
6514
|
-
{
|
|
6515
|
-
style: {
|
|
6516
|
-
display: "inline-block",
|
|
6517
|
-
verticalAlign: "top",
|
|
6518
|
-
marginTop: 3
|
|
6519
|
-
}
|
|
6520
|
-
},
|
|
6521
|
-
"Test Connection"
|
|
6522
|
-
),
|
|
6523
|
-
"\xA0\xA0",
|
|
6524
|
-
_react2.default.createElement(Loop, null)
|
|
6525
|
-
),
|
|
6526
6490
|
_react2.default.createElement(
|
|
6527
6491
|
"div",
|
|
6528
6492
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -6530,8 +6494,6 @@ module.exports =
|
|
|
6530
6494
|
envCheckResult && _react2.default.createElement(
|
|
6531
6495
|
"span",
|
|
6532
6496
|
null,
|
|
6533
|
-
envCheckResult,
|
|
6534
|
-
" ",
|
|
6535
6497
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult }),
|
|
6536
6498
|
" "
|
|
6537
6499
|
)
|
|
@@ -6588,36 +6550,6 @@ module.exports =
|
|
|
6588
6550
|
value: _this2.state.actualCreds[credType] || "",
|
|
6589
6551
|
onChange: _this2.onChange
|
|
6590
6552
|
}),
|
|
6591
|
-
index === 0 && noRootUrl && _react2.default.createElement(
|
|
6592
|
-
Button,
|
|
6593
|
-
{
|
|
6594
|
-
type: "brand",
|
|
6595
|
-
onClick: function onClick() {
|
|
6596
|
-
return check(_this2.state.actualCreds);
|
|
6597
|
-
},
|
|
6598
|
-
style: {
|
|
6599
|
-
marginLeft: 8,
|
|
6600
|
-
marginBottom: 4,
|
|
6601
|
-
height: 30,
|
|
6602
|
-
lineHeight: "10px",
|
|
6603
|
-
marginTop: -1
|
|
6604
|
-
},
|
|
6605
|
-
disabled: credsDisabledCheck
|
|
6606
|
-
},
|
|
6607
|
-
_react2.default.createElement(
|
|
6608
|
-
"span",
|
|
6609
|
-
{
|
|
6610
|
-
style: {
|
|
6611
|
-
display: "inline-block",
|
|
6612
|
-
verticalAlign: "top",
|
|
6613
|
-
marginTop: 3
|
|
6614
|
-
}
|
|
6615
|
-
},
|
|
6616
|
-
"Test Connection"
|
|
6617
|
-
),
|
|
6618
|
-
"\xA0\xA0",
|
|
6619
|
-
_react2.default.createElement(Loop, null)
|
|
6620
|
-
),
|
|
6621
6553
|
index === 0 && noRootUrl && checking && _react2.default.createElement(
|
|
6622
6554
|
"span",
|
|
6623
6555
|
{ style: { marginLeft: 10 } },
|
|
@@ -6626,8 +6558,6 @@ module.exports =
|
|
|
6626
6558
|
index === 0 && noRootUrl && envCheckResult && _react2.default.createElement(
|
|
6627
6559
|
"span",
|
|
6628
6560
|
{ style: { marginLeft: 10 } },
|
|
6629
|
-
envCheckResult,
|
|
6630
|
-
" ",
|
|
6631
6561
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
6632
6562
|
),
|
|
6633
6563
|
credType === "password" && _react2.default.createElement(Key, {
|
|
@@ -6904,29 +6834,6 @@ module.exports =
|
|
|
6904
6834
|
},
|
|
6905
6835
|
"Production"
|
|
6906
6836
|
),
|
|
6907
|
-
_react2.default.createElement(
|
|
6908
|
-
Button,
|
|
6909
|
-
{
|
|
6910
|
-
type: "brand",
|
|
6911
|
-
onClick: function onClick() {
|
|
6912
|
-
return onCheck(creds, formValues && formValues.includeSystemResources ? "?all=true" : "");
|
|
6913
|
-
},
|
|
6914
|
-
style: Object.assign({ marginLeft: 8 }, btnStyle)
|
|
6915
|
-
},
|
|
6916
|
-
_react2.default.createElement(
|
|
6917
|
-
"span",
|
|
6918
|
-
{
|
|
6919
|
-
style: {
|
|
6920
|
-
display: "inline-block",
|
|
6921
|
-
verticalAlign: "top",
|
|
6922
|
-
marginTop: 3
|
|
6923
|
-
}
|
|
6924
|
-
},
|
|
6925
|
-
"Test Connection"
|
|
6926
|
-
),
|
|
6927
|
-
"\xA0\xA0",
|
|
6928
|
-
_react2.default.createElement(Loop, null)
|
|
6929
|
-
),
|
|
6930
6837
|
_react2.default.createElement(
|
|
6931
6838
|
"div",
|
|
6932
6839
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -6934,8 +6841,6 @@ module.exports =
|
|
|
6934
6841
|
envCheckResult && _react2.default.createElement(
|
|
6935
6842
|
"span",
|
|
6936
6843
|
null,
|
|
6937
|
-
envCheckResult,
|
|
6938
|
-
" ",
|
|
6939
6844
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
6940
6845
|
)
|
|
6941
6846
|
),
|
|
@@ -7237,8 +7142,6 @@ module.exports =
|
|
|
7237
7142
|
envCheckResult && _react2.default.createElement(
|
|
7238
7143
|
"span",
|
|
7239
7144
|
null,
|
|
7240
|
-
envCheckResult,
|
|
7241
|
-
" ",
|
|
7242
7145
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult }),
|
|
7243
7146
|
" "
|
|
7244
7147
|
)
|
|
@@ -7301,36 +7204,6 @@ module.exports =
|
|
|
7301
7204
|
value: creds[credType] || "",
|
|
7302
7205
|
onChange: onChange
|
|
7303
7206
|
}),
|
|
7304
|
-
index === 0 && _react2.default.createElement(
|
|
7305
|
-
Button,
|
|
7306
|
-
{
|
|
7307
|
-
type: "brand",
|
|
7308
|
-
onClick: function onClick() {
|
|
7309
|
-
return onCheck(creds);
|
|
7310
|
-
},
|
|
7311
|
-
style: {
|
|
7312
|
-
marginLeft: 8,
|
|
7313
|
-
marginBottom: 4,
|
|
7314
|
-
height: 30,
|
|
7315
|
-
lineHeight: "10px",
|
|
7316
|
-
marginTop: -1
|
|
7317
|
-
},
|
|
7318
|
-
disabled: credsDisabledCheck
|
|
7319
|
-
},
|
|
7320
|
-
_react2.default.createElement(
|
|
7321
|
-
"span",
|
|
7322
|
-
{
|
|
7323
|
-
style: {
|
|
7324
|
-
display: "inline-block",
|
|
7325
|
-
verticalAlign: "top",
|
|
7326
|
-
marginTop: 3
|
|
7327
|
-
}
|
|
7328
|
-
},
|
|
7329
|
-
"Test Connection"
|
|
7330
|
-
),
|
|
7331
|
-
"\xA0\xA0",
|
|
7332
|
-
_react2.default.createElement(Loop, null)
|
|
7333
|
-
),
|
|
7334
7207
|
credType === "password" && _react2.default.createElement(Key, {
|
|
7335
7208
|
showPass: _this2.state.showPass,
|
|
7336
7209
|
onClick: function onClick() {
|