@lingk/sync 2.0.14 → 2.0.16
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 +284 -356
- 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 +284 -356
- 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
|
)
|
|
@@ -5373,7 +5348,7 @@ module.exports =
|
|
|
5373
5348
|
/* 69 */
|
|
5374
5349
|
/***/ function(module, exports, __webpack_require__) {
|
|
5375
5350
|
|
|
5376
|
-
|
|
5351
|
+
"use strict";
|
|
5377
5352
|
|
|
5378
5353
|
Object.defineProperty(exports, "__esModule", {
|
|
5379
5354
|
value: true
|
|
@@ -5416,13 +5391,15 @@ module.exports =
|
|
|
5416
5391
|
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; }
|
|
5417
5392
|
|
|
5418
5393
|
function formatBytes(a, b) {
|
|
5419
|
-
if (0 === a) return "0 Bytes";
|
|
5394
|
+
if (0 === a) return "0 Bytes";
|
|
5395
|
+
var c = 1024,
|
|
5420
5396
|
d = b || 2,
|
|
5421
5397
|
e = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
|
|
5422
|
-
f = Math.floor(Math.log(a) / Math.log(c));
|
|
5398
|
+
f = Math.floor(Math.log(a) / Math.log(c));
|
|
5399
|
+
return parseFloat((a / Math.pow(c, f)).toFixed(d)) + " " + e[f];
|
|
5423
5400
|
}
|
|
5424
5401
|
|
|
5425
|
-
var extensionBlacklist = [
|
|
5402
|
+
var extensionBlacklist = ["zip", "tar", "gz"];
|
|
5426
5403
|
|
|
5427
5404
|
var FlatFile = function (_Component) {
|
|
5428
5405
|
_inherits(FlatFile, _Component);
|
|
@@ -5438,7 +5415,7 @@ module.exports =
|
|
|
5438
5415
|
try {
|
|
5439
5416
|
json = JSON.parse(content);
|
|
5440
5417
|
} catch (err) {
|
|
5441
|
-
console.log(
|
|
5418
|
+
console.log("err when trying to parse json = " + err);
|
|
5442
5419
|
}
|
|
5443
5420
|
if (json) {
|
|
5444
5421
|
var fields = [];
|
|
@@ -5457,7 +5434,7 @@ module.exports =
|
|
|
5457
5434
|
});
|
|
5458
5435
|
var meta = {
|
|
5459
5436
|
name: file.name,
|
|
5460
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
5437
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
5461
5438
|
byteSize: file.size,
|
|
5462
5439
|
properties: fields
|
|
5463
5440
|
};
|
|
@@ -5466,13 +5443,13 @@ module.exports =
|
|
|
5466
5443
|
};
|
|
5467
5444
|
|
|
5468
5445
|
_this.parseJsonLines = function (content) {
|
|
5469
|
-
var firstLine = content.substring(0, content.indexOf(
|
|
5470
|
-
return
|
|
5446
|
+
var firstLine = content.substring(0, content.indexOf("\n"));
|
|
5447
|
+
return "[" + firstLine + "]";
|
|
5471
5448
|
};
|
|
5472
5449
|
|
|
5473
5450
|
_this.parseCSV = function (file, csv, isXLS) {
|
|
5474
5451
|
if (isXLS && (!csv || csv === null)) {
|
|
5475
|
-
var err =
|
|
5452
|
+
var err = "Remove empty sheets- " + file.name;
|
|
5476
5453
|
alert(err);
|
|
5477
5454
|
throw new Error(err);
|
|
5478
5455
|
} else {
|
|
@@ -5483,7 +5460,7 @@ module.exports =
|
|
|
5483
5460
|
complete: function complete(result) {
|
|
5484
5461
|
resolve({
|
|
5485
5462
|
name: file.name,
|
|
5486
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
5463
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
5487
5464
|
byteSize: file.size,
|
|
5488
5465
|
properties: result.meta.fields.map(function (f) {
|
|
5489
5466
|
return {
|
|
@@ -5509,13 +5486,12 @@ module.exports =
|
|
|
5509
5486
|
var fileContents = [].concat(_toConsumableArray(_this.state.fileContents));
|
|
5510
5487
|
var contentCounter = 0;
|
|
5511
5488
|
fs.forEach(function (file) {
|
|
5512
|
-
var extension = file.name.substr(file.name.lastIndexOf(
|
|
5489
|
+
var extension = file.name.substr(file.name.lastIndexOf(".") + 1, file.name.length);
|
|
5513
5490
|
var blacklisted = extensionBlacklist.includes(extension);
|
|
5514
5491
|
if (!blacklisted) {
|
|
5515
|
-
var isXLS = extension ===
|
|
5492
|
+
var isXLS = extension === "xlsx" || extension === "xls";
|
|
5516
5493
|
var reader = new FileReader();
|
|
5517
5494
|
reader.onload = function (e) {
|
|
5518
|
-
|
|
5519
5495
|
// PARSE METADATA
|
|
5520
5496
|
var data = e.target.result;
|
|
5521
5497
|
var csv = null;
|
|
@@ -5526,9 +5502,9 @@ module.exports =
|
|
|
5526
5502
|
for (var i = 0; i < length; i++) {
|
|
5527
5503
|
binary += String.fromCharCode(bytes[i]);
|
|
5528
5504
|
}*/
|
|
5529
|
-
var workbook = _xlsx2.default.read(binary, { type:
|
|
5505
|
+
var workbook = _xlsx2.default.read(binary, { type: "binary" });
|
|
5530
5506
|
var sheetNames = workbook.SheetNames.filter(function (sn) {
|
|
5531
|
-
return sn !==
|
|
5507
|
+
return sn !== "Export Summary";
|
|
5532
5508
|
});
|
|
5533
5509
|
sheetNames.forEach(function (sn) {
|
|
5534
5510
|
csv = _xlsx2.default.utils.sheet_to_csv(workbook.Sheets[sn]);
|
|
@@ -5545,7 +5521,7 @@ module.exports =
|
|
|
5545
5521
|
}
|
|
5546
5522
|
});
|
|
5547
5523
|
});
|
|
5548
|
-
} else if (extension ===
|
|
5524
|
+
} else if (extension === "csv") {
|
|
5549
5525
|
_this.parseCSV(file, csv, null).then(function (csvMeta) {
|
|
5550
5526
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
5551
5527
|
counter += 1;
|
|
@@ -5554,9 +5530,9 @@ module.exports =
|
|
|
5554
5530
|
_this.props.onDrop();
|
|
5555
5531
|
}
|
|
5556
5532
|
});
|
|
5557
|
-
} else if (extension ===
|
|
5533
|
+
} else if (extension === "json" || extension === "jsonl") {
|
|
5558
5534
|
var d = data;
|
|
5559
|
-
if (extension ===
|
|
5535
|
+
if (extension === "jsonl") {
|
|
5560
5536
|
d = _this.parseJsonLines(data);
|
|
5561
5537
|
}
|
|
5562
5538
|
var fileMeta = _this.parseJsonFile(d, file);
|
|
@@ -5565,13 +5541,13 @@ module.exports =
|
|
|
5565
5541
|
counter += 1;
|
|
5566
5542
|
if (counter === fs.length) {
|
|
5567
5543
|
_this.setState({ meta: meta });
|
|
5568
|
-
|
|
5544
|
+
// this.props.onDrop();
|
|
5569
5545
|
}
|
|
5570
5546
|
}
|
|
5571
|
-
} else if (extension ===
|
|
5547
|
+
} else if (extension === "txt" || extension === "xml" || extension === "hdr") {
|
|
5572
5548
|
var csvMeta = {
|
|
5573
5549
|
name: file.name,
|
|
5574
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
5550
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
5575
5551
|
byteSize: file.size
|
|
5576
5552
|
};
|
|
5577
5553
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
@@ -5596,7 +5572,7 @@ module.exports =
|
|
|
5596
5572
|
reader.readAsText(file);
|
|
5597
5573
|
}
|
|
5598
5574
|
} else {
|
|
5599
|
-
_this.setState({ dropError:
|
|
5575
|
+
_this.setState({ dropError: "File type not accepted." });
|
|
5600
5576
|
setTimeout(function () {
|
|
5601
5577
|
_this.setState({ dropError: null });
|
|
5602
5578
|
}, 3500);
|
|
@@ -5605,7 +5581,7 @@ module.exports =
|
|
|
5605
5581
|
};
|
|
5606
5582
|
|
|
5607
5583
|
_this.onReject = function () {
|
|
5608
|
-
_this.setState({ dropError:
|
|
5584
|
+
_this.setState({ dropError: "File is too big!" });
|
|
5609
5585
|
setTimeout(function () {
|
|
5610
5586
|
_this.setState({ dropError: null });
|
|
5611
5587
|
}, 3500);
|
|
@@ -5646,7 +5622,7 @@ module.exports =
|
|
|
5646
5622
|
fileContents: [],
|
|
5647
5623
|
uploading: false,
|
|
5648
5624
|
dropError: null,
|
|
5649
|
-
sortFileTableBy:
|
|
5625
|
+
sortFileTableBy: "uploadedTime", // name, byteSize, uploadedTime
|
|
5650
5626
|
isDeletingFile: null,
|
|
5651
5627
|
deleteModalOpen: false
|
|
5652
5628
|
};
|
|
@@ -5654,7 +5630,7 @@ module.exports =
|
|
|
5654
5630
|
}
|
|
5655
5631
|
|
|
5656
5632
|
_createClass(FlatFile, [{
|
|
5657
|
-
key:
|
|
5633
|
+
key: "render",
|
|
5658
5634
|
value: function render() {
|
|
5659
5635
|
var _this2 = this;
|
|
5660
5636
|
|
|
@@ -5683,7 +5659,7 @@ module.exports =
|
|
|
5683
5659
|
if (fileSchema && fileSchema.length) {
|
|
5684
5660
|
fileSchema = fileSchema.sort(function (a, b) {
|
|
5685
5661
|
var term = sortFileTableBy;
|
|
5686
|
-
if (term ===
|
|
5662
|
+
if (term === "uploadedTime") {
|
|
5687
5663
|
return a[term] < b[term];
|
|
5688
5664
|
}
|
|
5689
5665
|
return a[term] > b[term];
|
|
@@ -5700,71 +5676,105 @@ module.exports =
|
|
|
5700
5676
|
});
|
|
5701
5677
|
|
|
5702
5678
|
return _react2.default.createElement(
|
|
5703
|
-
|
|
5679
|
+
"div",
|
|
5704
5680
|
null,
|
|
5705
5681
|
_react2.default.createElement(
|
|
5706
|
-
|
|
5707
|
-
{ style: { display:
|
|
5682
|
+
"div",
|
|
5683
|
+
{ style: { display: "inline-block" } },
|
|
5708
5684
|
_react2.default.createElement(
|
|
5709
5685
|
_reactDropzone2.default,
|
|
5710
|
-
{
|
|
5711
|
-
|
|
5686
|
+
{
|
|
5687
|
+
onDropAccepted: this.onDrop,
|
|
5688
|
+
onDropRejected: this.onReject,
|
|
5689
|
+
className: "dropzone",
|
|
5690
|
+
maxSize: 1000000 * 1000 * 5 /*5 GB*/
|
|
5691
|
+
},
|
|
5712
5692
|
!dropError ? _react2.default.createElement(
|
|
5713
|
-
|
|
5693
|
+
"p",
|
|
5714
5694
|
null,
|
|
5715
|
-
|
|
5695
|
+
"Drop one or more files here, or click to select files to upload."
|
|
5716
5696
|
) : _react2.default.createElement(
|
|
5717
|
-
|
|
5718
|
-
{ style: { color:
|
|
5697
|
+
"p",
|
|
5698
|
+
{ style: { color: "#c9302c", fontWeight: "bold" } },
|
|
5719
5699
|
dropError
|
|
5720
5700
|
)
|
|
5721
5701
|
)
|
|
5722
5702
|
),
|
|
5723
5703
|
_react2.default.createElement(
|
|
5724
|
-
|
|
5725
|
-
{
|
|
5726
|
-
|
|
5704
|
+
"div",
|
|
5705
|
+
{
|
|
5706
|
+
style: {
|
|
5707
|
+
marginLeft: 30,
|
|
5708
|
+
display: "inline-block",
|
|
5709
|
+
verticalAlign: "top",
|
|
5710
|
+
maxWidth: "60%"
|
|
5711
|
+
}
|
|
5712
|
+
},
|
|
5727
5713
|
hasFile && _react2.default.createElement(
|
|
5728
|
-
|
|
5714
|
+
"aside",
|
|
5729
5715
|
null,
|
|
5730
5716
|
_react2.default.createElement(
|
|
5731
|
-
|
|
5717
|
+
"div",
|
|
5732
5718
|
null,
|
|
5733
5719
|
_react2.default.createElement(
|
|
5734
|
-
|
|
5735
|
-
{
|
|
5736
|
-
|
|
5720
|
+
"h3",
|
|
5721
|
+
{
|
|
5722
|
+
style: {
|
|
5723
|
+
marginTop: 10,
|
|
5724
|
+
display: "inline-block",
|
|
5725
|
+
verticalAlign: "top"
|
|
5726
|
+
}
|
|
5727
|
+
},
|
|
5728
|
+
"Dropped files"
|
|
5737
5729
|
),
|
|
5738
5730
|
_react2.default.createElement(
|
|
5739
5731
|
Button,
|
|
5740
5732
|
{
|
|
5741
|
-
type:
|
|
5733
|
+
type: "brand",
|
|
5742
5734
|
onClick: this.upload,
|
|
5743
|
-
style: {
|
|
5744
|
-
|
|
5735
|
+
style: {
|
|
5736
|
+
marginTop: 4,
|
|
5737
|
+
marginLeft: 20,
|
|
5738
|
+
verticalAlign: "top",
|
|
5739
|
+
height: 36
|
|
5740
|
+
},
|
|
5741
|
+
disabled: uploading
|
|
5742
|
+
},
|
|
5745
5743
|
_react2.default.createElement(
|
|
5746
|
-
|
|
5747
|
-
{
|
|
5748
|
-
|
|
5744
|
+
"span",
|
|
5745
|
+
{
|
|
5746
|
+
style: {
|
|
5747
|
+
display: "inline-block",
|
|
5748
|
+
verticalAlign: "top",
|
|
5749
|
+
marginTop: 3
|
|
5750
|
+
}
|
|
5751
|
+
},
|
|
5752
|
+
"Upload"
|
|
5749
5753
|
),
|
|
5750
|
-
|
|
5754
|
+
"\xA0\xA0",
|
|
5751
5755
|
_react2.default.createElement(UploadIcon, null)
|
|
5752
5756
|
),
|
|
5753
5757
|
uploading && _react2.default.createElement(
|
|
5754
|
-
|
|
5755
|
-
{
|
|
5758
|
+
"div",
|
|
5759
|
+
{
|
|
5760
|
+
style: {
|
|
5761
|
+
paddingLeft: 12,
|
|
5762
|
+
paddingTop: 12,
|
|
5763
|
+
display: "inline-block"
|
|
5764
|
+
}
|
|
5765
|
+
},
|
|
5756
5766
|
_react2.default.createElement(Spinner, null)
|
|
5757
5767
|
)
|
|
5758
5768
|
),
|
|
5759
5769
|
_react2.default.createElement(
|
|
5760
|
-
|
|
5770
|
+
"ul",
|
|
5761
5771
|
{ style: { padding: 0 } },
|
|
5762
5772
|
droppedFiles.map(function (f, i) {
|
|
5763
5773
|
return _react2.default.createElement(
|
|
5764
|
-
|
|
5765
|
-
{ key: i, style: { listStyle:
|
|
5774
|
+
"li",
|
|
5775
|
+
{ key: i, style: { listStyle: "none" } },
|
|
5766
5776
|
f.name,
|
|
5767
|
-
|
|
5777
|
+
" - ",
|
|
5768
5778
|
formatBytes(f.byteSize)
|
|
5769
5779
|
);
|
|
5770
5780
|
})
|
|
@@ -5772,124 +5782,144 @@ module.exports =
|
|
|
5772
5782
|
)
|
|
5773
5783
|
),
|
|
5774
5784
|
fileSchema && fileSchema.length > 0 && _react2.default.createElement(
|
|
5775
|
-
|
|
5776
|
-
{
|
|
5777
|
-
|
|
5778
|
-
|
|
5785
|
+
"div",
|
|
5786
|
+
{
|
|
5787
|
+
style: {
|
|
5788
|
+
marginTop: 20,
|
|
5789
|
+
width: "100%"
|
|
5790
|
+
}
|
|
5791
|
+
},
|
|
5779
5792
|
_react2.default.createElement(
|
|
5780
|
-
|
|
5793
|
+
"div",
|
|
5781
5794
|
{ style: { marginBottom: 4 } },
|
|
5782
5795
|
_react2.default.createElement(
|
|
5783
|
-
|
|
5796
|
+
"strong",
|
|
5784
5797
|
null,
|
|
5785
|
-
fileSchema.length +
|
|
5798
|
+
fileSchema.length + " file" + (fileSchema.length === 1 ? "" : "s")
|
|
5786
5799
|
),
|
|
5787
5800
|
_react2.default.createElement(
|
|
5788
|
-
|
|
5801
|
+
"strong",
|
|
5789
5802
|
null,
|
|
5790
|
-
|
|
5803
|
+
" uploaded"
|
|
5791
5804
|
)
|
|
5792
5805
|
),
|
|
5793
5806
|
_react2.default.createElement(
|
|
5794
|
-
|
|
5795
|
-
{
|
|
5807
|
+
"div",
|
|
5808
|
+
{ style: { height: 395, overflow: "auto" } },
|
|
5796
5809
|
_react2.default.createElement(
|
|
5797
|
-
|
|
5798
|
-
|
|
5810
|
+
_reactBootstrap.Table,
|
|
5811
|
+
{ bordered: true, condensed: true, className: "file-manager-table" },
|
|
5799
5812
|
_react2.default.createElement(
|
|
5800
|
-
|
|
5813
|
+
"thead",
|
|
5801
5814
|
null,
|
|
5802
5815
|
_react2.default.createElement(
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
return _this2.setState({ sortFileTableBy: 'name' });
|
|
5806
|
-
} },
|
|
5807
|
-
'Name'
|
|
5808
|
-
),
|
|
5809
|
-
_react2.default.createElement(
|
|
5810
|
-
'th',
|
|
5811
|
-
{ onClick: function onClick() {
|
|
5812
|
-
return _this2.setState({ sortFileTableBy: 'byteSize' });
|
|
5813
|
-
} },
|
|
5814
|
-
'Size'
|
|
5815
|
-
),
|
|
5816
|
-
_react2.default.createElement(
|
|
5817
|
-
'th',
|
|
5818
|
-
{ onClick: function onClick() {
|
|
5819
|
-
return _this2.setState({ sortFileTableBy: 'uploadedTime' });
|
|
5820
|
-
} },
|
|
5821
|
-
'Date uploaded'
|
|
5822
|
-
)
|
|
5823
|
-
)
|
|
5824
|
-
),
|
|
5825
|
-
_react2.default.createElement(
|
|
5826
|
-
'tbody',
|
|
5827
|
-
null,
|
|
5828
|
-
fileSchema.map(function (file, i) {
|
|
5829
|
-
return _react2.default.createElement(
|
|
5830
|
-
'tr',
|
|
5831
|
-
{ key: i },
|
|
5832
|
-
_react2.default.createElement(
|
|
5833
|
-
'td',
|
|
5834
|
-
null,
|
|
5835
|
-
_react2.default.createElement(
|
|
5836
|
-
'a',
|
|
5837
|
-
{ onClick: function onClick(e) {
|
|
5838
|
-
return _this2.downloadFile(e, file);
|
|
5839
|
-
} },
|
|
5840
|
-
file.name
|
|
5841
|
-
)
|
|
5842
|
-
),
|
|
5816
|
+
"tr",
|
|
5817
|
+
null,
|
|
5843
5818
|
_react2.default.createElement(
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5819
|
+
"th",
|
|
5820
|
+
{
|
|
5821
|
+
onClick: function onClick() {
|
|
5822
|
+
return _this2.setState({ sortFileTableBy: "name" });
|
|
5823
|
+
}
|
|
5824
|
+
},
|
|
5825
|
+
"Name"
|
|
5851
5826
|
),
|
|
5852
5827
|
_react2.default.createElement(
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5828
|
+
"th",
|
|
5829
|
+
{
|
|
5830
|
+
onClick: function onClick() {
|
|
5831
|
+
return _this2.setState({ sortFileTableBy: "byteSize" });
|
|
5832
|
+
}
|
|
5833
|
+
},
|
|
5834
|
+
"Size"
|
|
5856
5835
|
),
|
|
5857
5836
|
_react2.default.createElement(
|
|
5858
|
-
|
|
5859
|
-
{
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5837
|
+
"th",
|
|
5838
|
+
{
|
|
5839
|
+
onClick: function onClick() {
|
|
5840
|
+
return _this2.setState({ sortFileTableBy: "uploadedTime" });
|
|
5841
|
+
}
|
|
5842
|
+
},
|
|
5843
|
+
"Date uploaded"
|
|
5844
|
+
)
|
|
5845
|
+
)
|
|
5846
|
+
),
|
|
5847
|
+
_react2.default.createElement(
|
|
5848
|
+
"tbody",
|
|
5849
|
+
null,
|
|
5850
|
+
fileSchema.map(function (file, i) {
|
|
5851
|
+
return _react2.default.createElement(
|
|
5852
|
+
"tr",
|
|
5853
|
+
{ key: i },
|
|
5854
|
+
_react2.default.createElement(
|
|
5855
|
+
"td",
|
|
5856
|
+
null,
|
|
5857
|
+
_react2.default.createElement(
|
|
5858
|
+
"a",
|
|
5859
|
+
{ onClick: function onClick(e) {
|
|
5860
|
+
return _this2.downloadFile(e, file);
|
|
5861
|
+
} },
|
|
5862
|
+
file.name
|
|
5863
|
+
)
|
|
5864
|
+
),
|
|
5865
|
+
_react2.default.createElement(
|
|
5866
|
+
"td",
|
|
5867
|
+
null,
|
|
5868
|
+
_react2.default.createElement(
|
|
5869
|
+
"span",
|
|
5870
|
+
null,
|
|
5871
|
+
formatBytes(file.byteSize)
|
|
5872
|
+
)
|
|
5873
|
+
),
|
|
5874
|
+
_react2.default.createElement(
|
|
5875
|
+
"td",
|
|
5876
|
+
null,
|
|
5877
|
+
(0, _moment2.default)(file.uploadedTime).format("MMM Do, h:mm a")
|
|
5878
|
+
),
|
|
5879
|
+
_react2.default.createElement(
|
|
5880
|
+
"td",
|
|
5881
|
+
{ style: { width: 24 } },
|
|
5882
|
+
!(isDeletingFile === file.name) && _react2.default.createElement(
|
|
5883
|
+
"svg",
|
|
5884
|
+
{
|
|
5885
|
+
style: { width: 18, height: 18 },
|
|
5886
|
+
onClick: function onClick() {
|
|
5887
|
+
return _this2.deleteFlatFile(file.name);
|
|
5888
|
+
},
|
|
5889
|
+
className: "delete-flat-file",
|
|
5890
|
+
viewBox: "0 0 60 60"
|
|
5865
5891
|
},
|
|
5866
|
-
|
|
5867
|
-
|
|
5892
|
+
_react2.default.createElement("path", { d: "M 15.674663,15.572746 L 44.587629,44.485711 M 45.118838,15.420972 L 15.522889,45.016920" })
|
|
5893
|
+
)
|
|
5868
5894
|
)
|
|
5869
|
-
)
|
|
5870
|
-
)
|
|
5871
|
-
|
|
5895
|
+
);
|
|
5896
|
+
})
|
|
5897
|
+
)
|
|
5872
5898
|
)
|
|
5873
5899
|
)
|
|
5874
5900
|
),
|
|
5875
5901
|
_react2.default.createElement(
|
|
5876
5902
|
Modal,
|
|
5877
|
-
{
|
|
5903
|
+
{
|
|
5904
|
+
opened: deleteModalOpenFile ? true : false,
|
|
5878
5905
|
hideModal: this.closeDeleteModal,
|
|
5879
5906
|
submitModal: this.actuallyDeleteFile,
|
|
5880
|
-
title:
|
|
5881
|
-
|
|
5907
|
+
title: "Delete File",
|
|
5908
|
+
danger: true,
|
|
5909
|
+
showCancel: true,
|
|
5910
|
+
submitLabel: "Delete"
|
|
5911
|
+
},
|
|
5882
5912
|
_react2.default.createElement(
|
|
5883
|
-
|
|
5884
|
-
{ style: { padding: 24, textAlign:
|
|
5885
|
-
|
|
5913
|
+
"div",
|
|
5914
|
+
{ style: { padding: 24, textAlign: "center" } },
|
|
5915
|
+
"Are you sure you want to delete",
|
|
5886
5916
|
_react2.default.createElement(
|
|
5887
|
-
|
|
5917
|
+
"strong",
|
|
5888
5918
|
null,
|
|
5889
|
-
|
|
5919
|
+
" ",
|
|
5890
5920
|
deleteModalOpenFile
|
|
5891
5921
|
),
|
|
5892
|
-
|
|
5922
|
+
"?"
|
|
5893
5923
|
)
|
|
5894
5924
|
)
|
|
5895
5925
|
);
|
|
@@ -5901,10 +5931,10 @@ module.exports =
|
|
|
5901
5931
|
|
|
5902
5932
|
var UploadIcon = function UploadIcon() {
|
|
5903
5933
|
return _react2.default.createElement(
|
|
5904
|
-
|
|
5905
|
-
{ fill:
|
|
5906
|
-
_react2.default.createElement(
|
|
5907
|
-
_react2.default.createElement(
|
|
5934
|
+
"svg",
|
|
5935
|
+
{ fill: "#FFF", height: "24", viewBox: "0 0 24 24", width: "24" },
|
|
5936
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
5937
|
+
_react2.default.createElement("path", { d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" })
|
|
5908
5938
|
);
|
|
5909
5939
|
};
|
|
5910
5940
|
|
|
@@ -5914,7 +5944,7 @@ module.exports =
|
|
|
5914
5944
|
/* 70 */
|
|
5915
5945
|
/***/ function(module, exports, __webpack_require__) {
|
|
5916
5946
|
|
|
5917
|
-
|
|
5947
|
+
"use strict";
|
|
5918
5948
|
|
|
5919
5949
|
Object.defineProperty(exports, "__esModule", {
|
|
5920
5950
|
value: true
|
|
@@ -5938,13 +5968,13 @@ module.exports =
|
|
|
5938
5968
|
|
|
5939
5969
|
// SKIP ON SERVER-SIDE RENDERING
|
|
5940
5970
|
var codemirror = null;
|
|
5941
|
-
if (typeof window !==
|
|
5971
|
+
if (typeof window !== "undefined" && typeof window.navigator !== "undefined") {
|
|
5942
5972
|
codemirror = __webpack_require__(39);
|
|
5943
5973
|
__webpack_require__(30);
|
|
5944
5974
|
}
|
|
5945
5975
|
|
|
5946
5976
|
function unCamelize(text) {
|
|
5947
|
-
return text.replace(/([A-Z])/g,
|
|
5977
|
+
return text.replace(/([A-Z])/g, " $1").replace(/^./, function (str) {
|
|
5948
5978
|
return str.toUpperCase();
|
|
5949
5979
|
});
|
|
5950
5980
|
}
|
|
@@ -5964,7 +5994,7 @@ module.exports =
|
|
|
5964
5994
|
}
|
|
5965
5995
|
|
|
5966
5996
|
_createClass(Google, [{
|
|
5967
|
-
key:
|
|
5997
|
+
key: "render",
|
|
5968
5998
|
value: function render() {
|
|
5969
5999
|
var _this2 = this;
|
|
5970
6000
|
|
|
@@ -5985,93 +6015,101 @@ module.exports =
|
|
|
5985
6015
|
var Spinner = inputs.Spinner;
|
|
5986
6016
|
var CodeMirror = codemirror && codemirror.Controlled;
|
|
5987
6017
|
|
|
5988
|
-
var CloudSQLTypes = [{
|
|
6018
|
+
var CloudSQLTypes = [{
|
|
6019
|
+
name: "Postgres",
|
|
6020
|
+
satisfiesSearch: true,
|
|
6021
|
+
type: "Postgres",
|
|
6022
|
+
title: "Postgres"
|
|
6023
|
+
}, { name: "MySQL", satisfiesSearch: true, type: "MySQL", title: "MySQL" }];
|
|
5989
6024
|
|
|
5990
|
-
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] ===
|
|
6025
|
+
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] === "json";
|
|
5991
6026
|
|
|
5992
6027
|
return _react2.default.createElement(
|
|
5993
|
-
|
|
6028
|
+
"div",
|
|
5994
6029
|
null,
|
|
5995
6030
|
config.credentials && _react2.default.createElement(
|
|
5996
|
-
|
|
6031
|
+
"div",
|
|
5997
6032
|
{ style: { marginLeft: 1 } },
|
|
5998
6033
|
_react2.default.createElement(
|
|
5999
|
-
|
|
6000
|
-
{ htmlFor:
|
|
6034
|
+
"label",
|
|
6035
|
+
{ htmlFor: "creds" },
|
|
6001
6036
|
config.label || config.type,
|
|
6002
|
-
|
|
6037
|
+
" Credentials"
|
|
6003
6038
|
),
|
|
6004
|
-
_react2.default.createElement(
|
|
6039
|
+
_react2.default.createElement("br", null),
|
|
6005
6040
|
_react2.default.createElement(
|
|
6006
|
-
|
|
6007
|
-
{
|
|
6041
|
+
"div",
|
|
6042
|
+
{
|
|
6043
|
+
style: { display: "inline-block", marginLeft: 16, width: "100%" }
|
|
6044
|
+
},
|
|
6008
6045
|
config.credentials.map(function (credType, index) {
|
|
6009
6046
|
return _react2.default.createElement(
|
|
6010
|
-
|
|
6011
|
-
{ key: index, style: { marginTop: 8, width:
|
|
6047
|
+
"div",
|
|
6048
|
+
{ key: index, style: { marginTop: 8, width: "100%" } },
|
|
6012
6049
|
_react2.default.createElement(
|
|
6013
|
-
|
|
6014
|
-
{
|
|
6015
|
-
|
|
6050
|
+
"label",
|
|
6051
|
+
{
|
|
6052
|
+
htmlFor: credType,
|
|
6053
|
+
className: "labelz",
|
|
6054
|
+
style: { fontWeight: "normal" }
|
|
6055
|
+
},
|
|
6056
|
+
credType !== "json" ? unCamelize(credType) : "API key (paste json or drag-and-drop file)"
|
|
6016
6057
|
),
|
|
6017
|
-
_react2.default.createElement(
|
|
6018
|
-
credType !==
|
|
6019
|
-
|
|
6020
|
-
{
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6058
|
+
_react2.default.createElement("br", null),
|
|
6059
|
+
credType !== "json" ? _react2.default.createElement(
|
|
6060
|
+
"div",
|
|
6061
|
+
{
|
|
6062
|
+
style: {
|
|
6063
|
+
display: "inline-block",
|
|
6064
|
+
width: credType !== "databaseType" ? 300 : 164
|
|
6065
|
+
}
|
|
6066
|
+
},
|
|
6067
|
+
credType !== "databaseType" ? _react2.default.createElement(Input, {
|
|
6068
|
+
name: credType,
|
|
6069
|
+
datatype: credType === "password" && !_this2.state.showPass ? "password" : null,
|
|
6070
|
+
value: creds[credType] || "",
|
|
6071
|
+
onChange: onChange
|
|
6072
|
+
}) : _react2.default.createElement(Select, {
|
|
6073
|
+
vals: CloudSQLTypes,
|
|
6074
|
+
fieldPropLabel: "name",
|
|
6075
|
+
label: creds[credType] || "Database Types",
|
|
6025
6076
|
onSelect: function onSelect(v) {
|
|
6026
6077
|
return onChange({ target: { name: credType, value: v } });
|
|
6027
6078
|
},
|
|
6028
|
-
size:
|
|
6079
|
+
size: "small",
|
|
6080
|
+
style: {
|
|
6081
|
+
width: 160,
|
|
6082
|
+
height: 31,
|
|
6083
|
+
textAlign: "left"
|
|
6084
|
+
}
|
|
6029
6085
|
})
|
|
6030
|
-
) : _react2.default.createElement(CodeMirror, {
|
|
6031
|
-
|
|
6086
|
+
) : _react2.default.createElement(CodeMirror, {
|
|
6087
|
+
value: creds[credType],
|
|
6088
|
+
className: "env-creds-json-codemirror",
|
|
6032
6089
|
options: {
|
|
6033
6090
|
lineNumbers: true,
|
|
6034
|
-
theme:
|
|
6035
|
-
mode:
|
|
6091
|
+
theme: "default",
|
|
6092
|
+
mode: "javascript",
|
|
6036
6093
|
dragDrop: true
|
|
6037
6094
|
},
|
|
6038
6095
|
onBeforeChange: function onBeforeChange(e, d, v) {
|
|
6039
6096
|
return onChange({ target: { name: credType, value: v } });
|
|
6040
6097
|
}
|
|
6041
6098
|
}),
|
|
6042
|
-
credType ===
|
|
6099
|
+
credType === "password" && _react2.default.createElement(Key, {
|
|
6100
|
+
showPass: _this2.state.showPass,
|
|
6043
6101
|
onClick: function onClick() {
|
|
6044
6102
|
return _this2.setState({ showPass: !_this2.state.showPass });
|
|
6045
6103
|
}
|
|
6046
6104
|
}),
|
|
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
6105
|
index === 0 && checking && _react2.default.createElement(
|
|
6066
|
-
|
|
6106
|
+
"span",
|
|
6067
6107
|
{ style: { marginLeft: 10 } },
|
|
6068
6108
|
_react2.default.createElement(Spinner, null)
|
|
6069
6109
|
),
|
|
6070
6110
|
index === 0 && envCheckResult && _react2.default.createElement(
|
|
6071
|
-
|
|
6111
|
+
"span",
|
|
6072
6112
|
{ style: { marginLeft: 10 } },
|
|
6073
|
-
envCheckResult,
|
|
6074
|
-
' ',
|
|
6075
6113
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
6076
6114
|
)
|
|
6077
6115
|
);
|
|
@@ -6087,11 +6125,16 @@ module.exports =
|
|
|
6087
6125
|
|
|
6088
6126
|
var Loop = function Loop() {
|
|
6089
6127
|
return _react2.default.createElement(
|
|
6090
|
-
|
|
6091
|
-
{
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6128
|
+
"svg",
|
|
6129
|
+
{
|
|
6130
|
+
fill: "#FFFFFF",
|
|
6131
|
+
height: "18",
|
|
6132
|
+
viewBox: "0 0 24 24",
|
|
6133
|
+
width: "18",
|
|
6134
|
+
style: { marginTop: -1 }
|
|
6135
|
+
},
|
|
6136
|
+
_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" }),
|
|
6137
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
|
6095
6138
|
);
|
|
6096
6139
|
};
|
|
6097
6140
|
|
|
@@ -6100,11 +6143,17 @@ module.exports =
|
|
|
6100
6143
|
showPass = _ref.showPass;
|
|
6101
6144
|
|
|
6102
6145
|
return _react2.default.createElement(
|
|
6103
|
-
|
|
6104
|
-
{
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6146
|
+
"svg",
|
|
6147
|
+
{
|
|
6148
|
+
onClick: onClick,
|
|
6149
|
+
style: showPass ? { fill: "#3a91dcb3" } : {},
|
|
6150
|
+
height: "24",
|
|
6151
|
+
width: "24",
|
|
6152
|
+
className: "pass-key-svg",
|
|
6153
|
+
viewBox: "0 0 24 24"
|
|
6154
|
+
},
|
|
6155
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
6156
|
+
_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
6157
|
);
|
|
6109
6158
|
};
|
|
6110
6159
|
|
|
@@ -6493,36 +6542,6 @@ module.exports =
|
|
|
6493
6542
|
onChange: this.onChange
|
|
6494
6543
|
})
|
|
6495
6544
|
),
|
|
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
6545
|
_react2.default.createElement(
|
|
6527
6546
|
"div",
|
|
6528
6547
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -6530,8 +6549,6 @@ module.exports =
|
|
|
6530
6549
|
envCheckResult && _react2.default.createElement(
|
|
6531
6550
|
"span",
|
|
6532
6551
|
null,
|
|
6533
|
-
envCheckResult,
|
|
6534
|
-
" ",
|
|
6535
6552
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult }),
|
|
6536
6553
|
" "
|
|
6537
6554
|
)
|
|
@@ -6588,36 +6605,6 @@ module.exports =
|
|
|
6588
6605
|
value: _this2.state.actualCreds[credType] || "",
|
|
6589
6606
|
onChange: _this2.onChange
|
|
6590
6607
|
}),
|
|
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
6608
|
index === 0 && noRootUrl && checking && _react2.default.createElement(
|
|
6622
6609
|
"span",
|
|
6623
6610
|
{ style: { marginLeft: 10 } },
|
|
@@ -6626,8 +6613,6 @@ module.exports =
|
|
|
6626
6613
|
index === 0 && noRootUrl && envCheckResult && _react2.default.createElement(
|
|
6627
6614
|
"span",
|
|
6628
6615
|
{ style: { marginLeft: 10 } },
|
|
6629
|
-
envCheckResult,
|
|
6630
|
-
" ",
|
|
6631
6616
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
6632
6617
|
),
|
|
6633
6618
|
credType === "password" && _react2.default.createElement(Key, {
|
|
@@ -6904,29 +6889,6 @@ module.exports =
|
|
|
6904
6889
|
},
|
|
6905
6890
|
"Production"
|
|
6906
6891
|
),
|
|
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
6892
|
_react2.default.createElement(
|
|
6931
6893
|
"div",
|
|
6932
6894
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -6934,8 +6896,6 @@ module.exports =
|
|
|
6934
6896
|
envCheckResult && _react2.default.createElement(
|
|
6935
6897
|
"span",
|
|
6936
6898
|
null,
|
|
6937
|
-
envCheckResult,
|
|
6938
|
-
" ",
|
|
6939
6899
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
6940
6900
|
)
|
|
6941
6901
|
),
|
|
@@ -7237,8 +7197,6 @@ module.exports =
|
|
|
7237
7197
|
envCheckResult && _react2.default.createElement(
|
|
7238
7198
|
"span",
|
|
7239
7199
|
null,
|
|
7240
|
-
envCheckResult,
|
|
7241
|
-
" ",
|
|
7242
7200
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult }),
|
|
7243
7201
|
" "
|
|
7244
7202
|
)
|
|
@@ -7301,36 +7259,6 @@ module.exports =
|
|
|
7301
7259
|
value: creds[credType] || "",
|
|
7302
7260
|
onChange: onChange
|
|
7303
7261
|
}),
|
|
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
7262
|
credType === "password" && _react2.default.createElement(Key, {
|
|
7335
7263
|
showPass: _this2.state.showPass,
|
|
7336
7264
|
onClick: function onClick() {
|