@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
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
|
)
|
|
@@ -7131,7 +7106,7 @@ module.exports =
|
|
|
7131
7106
|
/* 69 */
|
|
7132
7107
|
/***/ function(module, exports, __webpack_require__) {
|
|
7133
7108
|
|
|
7134
|
-
|
|
7109
|
+
"use strict";
|
|
7135
7110
|
|
|
7136
7111
|
Object.defineProperty(exports, "__esModule", {
|
|
7137
7112
|
value: true
|
|
@@ -7174,13 +7149,15 @@ module.exports =
|
|
|
7174
7149
|
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; }
|
|
7175
7150
|
|
|
7176
7151
|
function formatBytes(a, b) {
|
|
7177
|
-
if (0 === a) return "0 Bytes";
|
|
7152
|
+
if (0 === a) return "0 Bytes";
|
|
7153
|
+
var c = 1024,
|
|
7178
7154
|
d = b || 2,
|
|
7179
7155
|
e = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
|
|
7180
|
-
f = Math.floor(Math.log(a) / Math.log(c));
|
|
7156
|
+
f = Math.floor(Math.log(a) / Math.log(c));
|
|
7157
|
+
return parseFloat((a / Math.pow(c, f)).toFixed(d)) + " " + e[f];
|
|
7181
7158
|
}
|
|
7182
7159
|
|
|
7183
|
-
var extensionBlacklist = [
|
|
7160
|
+
var extensionBlacklist = ["zip", "tar", "gz"];
|
|
7184
7161
|
|
|
7185
7162
|
var FlatFile = function (_Component) {
|
|
7186
7163
|
_inherits(FlatFile, _Component);
|
|
@@ -7196,7 +7173,7 @@ module.exports =
|
|
|
7196
7173
|
try {
|
|
7197
7174
|
json = JSON.parse(content);
|
|
7198
7175
|
} catch (err) {
|
|
7199
|
-
console.log(
|
|
7176
|
+
console.log("err when trying to parse json = " + err);
|
|
7200
7177
|
}
|
|
7201
7178
|
if (json) {
|
|
7202
7179
|
var fields = [];
|
|
@@ -7215,7 +7192,7 @@ module.exports =
|
|
|
7215
7192
|
});
|
|
7216
7193
|
var meta = {
|
|
7217
7194
|
name: file.name,
|
|
7218
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
7195
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
7219
7196
|
byteSize: file.size,
|
|
7220
7197
|
properties: fields
|
|
7221
7198
|
};
|
|
@@ -7224,13 +7201,13 @@ module.exports =
|
|
|
7224
7201
|
};
|
|
7225
7202
|
|
|
7226
7203
|
_this.parseJsonLines = function (content) {
|
|
7227
|
-
var firstLine = content.substring(0, content.indexOf(
|
|
7228
|
-
return
|
|
7204
|
+
var firstLine = content.substring(0, content.indexOf("\n"));
|
|
7205
|
+
return "[" + firstLine + "]";
|
|
7229
7206
|
};
|
|
7230
7207
|
|
|
7231
7208
|
_this.parseCSV = function (file, csv, isXLS) {
|
|
7232
7209
|
if (isXLS && (!csv || csv === null)) {
|
|
7233
|
-
var err =
|
|
7210
|
+
var err = "Remove empty sheets- " + file.name;
|
|
7234
7211
|
alert(err);
|
|
7235
7212
|
throw new Error(err);
|
|
7236
7213
|
} else {
|
|
@@ -7241,7 +7218,7 @@ module.exports =
|
|
|
7241
7218
|
complete: function complete(result) {
|
|
7242
7219
|
resolve({
|
|
7243
7220
|
name: file.name,
|
|
7244
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
7221
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
7245
7222
|
byteSize: file.size,
|
|
7246
7223
|
properties: result.meta.fields.map(function (f) {
|
|
7247
7224
|
return {
|
|
@@ -7267,13 +7244,12 @@ module.exports =
|
|
|
7267
7244
|
var fileContents = [].concat(_toConsumableArray(_this.state.fileContents));
|
|
7268
7245
|
var contentCounter = 0;
|
|
7269
7246
|
fs.forEach(function (file) {
|
|
7270
|
-
var extension = file.name.substr(file.name.lastIndexOf(
|
|
7247
|
+
var extension = file.name.substr(file.name.lastIndexOf(".") + 1, file.name.length);
|
|
7271
7248
|
var blacklisted = extensionBlacklist.includes(extension);
|
|
7272
7249
|
if (!blacklisted) {
|
|
7273
|
-
var isXLS = extension ===
|
|
7250
|
+
var isXLS = extension === "xlsx" || extension === "xls";
|
|
7274
7251
|
var reader = new FileReader();
|
|
7275
7252
|
reader.onload = function (e) {
|
|
7276
|
-
|
|
7277
7253
|
// PARSE METADATA
|
|
7278
7254
|
var data = e.target.result;
|
|
7279
7255
|
var csv = null;
|
|
@@ -7284,9 +7260,9 @@ module.exports =
|
|
|
7284
7260
|
for (var i = 0; i < length; i++) {
|
|
7285
7261
|
binary += String.fromCharCode(bytes[i]);
|
|
7286
7262
|
}*/
|
|
7287
|
-
var workbook = _xlsx2.default.read(binary, { type:
|
|
7263
|
+
var workbook = _xlsx2.default.read(binary, { type: "binary" });
|
|
7288
7264
|
var sheetNames = workbook.SheetNames.filter(function (sn) {
|
|
7289
|
-
return sn !==
|
|
7265
|
+
return sn !== "Export Summary";
|
|
7290
7266
|
});
|
|
7291
7267
|
sheetNames.forEach(function (sn) {
|
|
7292
7268
|
csv = _xlsx2.default.utils.sheet_to_csv(workbook.Sheets[sn]);
|
|
@@ -7303,7 +7279,7 @@ module.exports =
|
|
|
7303
7279
|
}
|
|
7304
7280
|
});
|
|
7305
7281
|
});
|
|
7306
|
-
} else if (extension ===
|
|
7282
|
+
} else if (extension === "csv") {
|
|
7307
7283
|
_this.parseCSV(file, csv, null).then(function (csvMeta) {
|
|
7308
7284
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
7309
7285
|
counter += 1;
|
|
@@ -7312,9 +7288,9 @@ module.exports =
|
|
|
7312
7288
|
_this.props.onDrop();
|
|
7313
7289
|
}
|
|
7314
7290
|
});
|
|
7315
|
-
} else if (extension ===
|
|
7291
|
+
} else if (extension === "json" || extension === "jsonl") {
|
|
7316
7292
|
var d = data;
|
|
7317
|
-
if (extension ===
|
|
7293
|
+
if (extension === "jsonl") {
|
|
7318
7294
|
d = _this.parseJsonLines(data);
|
|
7319
7295
|
}
|
|
7320
7296
|
var fileMeta = _this.parseJsonFile(d, file);
|
|
@@ -7323,13 +7299,13 @@ module.exports =
|
|
|
7323
7299
|
counter += 1;
|
|
7324
7300
|
if (counter === fs.length) {
|
|
7325
7301
|
_this.setState({ meta: meta });
|
|
7326
|
-
|
|
7302
|
+
// this.props.onDrop();
|
|
7327
7303
|
}
|
|
7328
7304
|
}
|
|
7329
|
-
} else if (extension ===
|
|
7305
|
+
} else if (extension === "txt" || extension === "xml" || extension === "hdr") {
|
|
7330
7306
|
var csvMeta = {
|
|
7331
7307
|
name: file.name,
|
|
7332
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
7308
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
7333
7309
|
byteSize: file.size
|
|
7334
7310
|
};
|
|
7335
7311
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
@@ -7354,7 +7330,7 @@ module.exports =
|
|
|
7354
7330
|
reader.readAsText(file);
|
|
7355
7331
|
}
|
|
7356
7332
|
} else {
|
|
7357
|
-
_this.setState({ dropError:
|
|
7333
|
+
_this.setState({ dropError: "File type not accepted." });
|
|
7358
7334
|
setTimeout(function () {
|
|
7359
7335
|
_this.setState({ dropError: null });
|
|
7360
7336
|
}, 3500);
|
|
@@ -7363,7 +7339,7 @@ module.exports =
|
|
|
7363
7339
|
};
|
|
7364
7340
|
|
|
7365
7341
|
_this.onReject = function () {
|
|
7366
|
-
_this.setState({ dropError:
|
|
7342
|
+
_this.setState({ dropError: "File is too big!" });
|
|
7367
7343
|
setTimeout(function () {
|
|
7368
7344
|
_this.setState({ dropError: null });
|
|
7369
7345
|
}, 3500);
|
|
@@ -7404,7 +7380,7 @@ module.exports =
|
|
|
7404
7380
|
fileContents: [],
|
|
7405
7381
|
uploading: false,
|
|
7406
7382
|
dropError: null,
|
|
7407
|
-
sortFileTableBy:
|
|
7383
|
+
sortFileTableBy: "uploadedTime", // name, byteSize, uploadedTime
|
|
7408
7384
|
isDeletingFile: null,
|
|
7409
7385
|
deleteModalOpen: false
|
|
7410
7386
|
};
|
|
@@ -7412,7 +7388,7 @@ module.exports =
|
|
|
7412
7388
|
}
|
|
7413
7389
|
|
|
7414
7390
|
_createClass(FlatFile, [{
|
|
7415
|
-
key:
|
|
7391
|
+
key: "render",
|
|
7416
7392
|
value: function render() {
|
|
7417
7393
|
var _this2 = this;
|
|
7418
7394
|
|
|
@@ -7441,7 +7417,7 @@ module.exports =
|
|
|
7441
7417
|
if (fileSchema && fileSchema.length) {
|
|
7442
7418
|
fileSchema = fileSchema.sort(function (a, b) {
|
|
7443
7419
|
var term = sortFileTableBy;
|
|
7444
|
-
if (term ===
|
|
7420
|
+
if (term === "uploadedTime") {
|
|
7445
7421
|
return a[term] < b[term];
|
|
7446
7422
|
}
|
|
7447
7423
|
return a[term] > b[term];
|
|
@@ -7458,71 +7434,105 @@ module.exports =
|
|
|
7458
7434
|
});
|
|
7459
7435
|
|
|
7460
7436
|
return _react2.default.createElement(
|
|
7461
|
-
|
|
7437
|
+
"div",
|
|
7462
7438
|
null,
|
|
7463
7439
|
_react2.default.createElement(
|
|
7464
|
-
|
|
7465
|
-
{ style: { display:
|
|
7440
|
+
"div",
|
|
7441
|
+
{ style: { display: "inline-block" } },
|
|
7466
7442
|
_react2.default.createElement(
|
|
7467
7443
|
_reactDropzone2.default,
|
|
7468
|
-
{
|
|
7469
|
-
|
|
7444
|
+
{
|
|
7445
|
+
onDropAccepted: this.onDrop,
|
|
7446
|
+
onDropRejected: this.onReject,
|
|
7447
|
+
className: "dropzone",
|
|
7448
|
+
maxSize: 1000000 * 1000 * 5 /*5 GB*/
|
|
7449
|
+
},
|
|
7470
7450
|
!dropError ? _react2.default.createElement(
|
|
7471
|
-
|
|
7451
|
+
"p",
|
|
7472
7452
|
null,
|
|
7473
|
-
|
|
7453
|
+
"Drop one or more files here, or click to select files to upload."
|
|
7474
7454
|
) : _react2.default.createElement(
|
|
7475
|
-
|
|
7476
|
-
{ style: { color:
|
|
7455
|
+
"p",
|
|
7456
|
+
{ style: { color: "#c9302c", fontWeight: "bold" } },
|
|
7477
7457
|
dropError
|
|
7478
7458
|
)
|
|
7479
7459
|
)
|
|
7480
7460
|
),
|
|
7481
7461
|
_react2.default.createElement(
|
|
7482
|
-
|
|
7483
|
-
{
|
|
7484
|
-
|
|
7462
|
+
"div",
|
|
7463
|
+
{
|
|
7464
|
+
style: {
|
|
7465
|
+
marginLeft: 30,
|
|
7466
|
+
display: "inline-block",
|
|
7467
|
+
verticalAlign: "top",
|
|
7468
|
+
maxWidth: "60%"
|
|
7469
|
+
}
|
|
7470
|
+
},
|
|
7485
7471
|
hasFile && _react2.default.createElement(
|
|
7486
|
-
|
|
7472
|
+
"aside",
|
|
7487
7473
|
null,
|
|
7488
7474
|
_react2.default.createElement(
|
|
7489
|
-
|
|
7475
|
+
"div",
|
|
7490
7476
|
null,
|
|
7491
7477
|
_react2.default.createElement(
|
|
7492
|
-
|
|
7493
|
-
{
|
|
7494
|
-
|
|
7478
|
+
"h3",
|
|
7479
|
+
{
|
|
7480
|
+
style: {
|
|
7481
|
+
marginTop: 10,
|
|
7482
|
+
display: "inline-block",
|
|
7483
|
+
verticalAlign: "top"
|
|
7484
|
+
}
|
|
7485
|
+
},
|
|
7486
|
+
"Dropped files"
|
|
7495
7487
|
),
|
|
7496
7488
|
_react2.default.createElement(
|
|
7497
7489
|
Button,
|
|
7498
7490
|
{
|
|
7499
|
-
type:
|
|
7491
|
+
type: "brand",
|
|
7500
7492
|
onClick: this.upload,
|
|
7501
|
-
style: {
|
|
7502
|
-
|
|
7493
|
+
style: {
|
|
7494
|
+
marginTop: 4,
|
|
7495
|
+
marginLeft: 20,
|
|
7496
|
+
verticalAlign: "top",
|
|
7497
|
+
height: 36
|
|
7498
|
+
},
|
|
7499
|
+
disabled: uploading
|
|
7500
|
+
},
|
|
7503
7501
|
_react2.default.createElement(
|
|
7504
|
-
|
|
7505
|
-
{
|
|
7506
|
-
|
|
7502
|
+
"span",
|
|
7503
|
+
{
|
|
7504
|
+
style: {
|
|
7505
|
+
display: "inline-block",
|
|
7506
|
+
verticalAlign: "top",
|
|
7507
|
+
marginTop: 3
|
|
7508
|
+
}
|
|
7509
|
+
},
|
|
7510
|
+
"Upload"
|
|
7507
7511
|
),
|
|
7508
|
-
|
|
7512
|
+
"\xA0\xA0",
|
|
7509
7513
|
_react2.default.createElement(UploadIcon, null)
|
|
7510
7514
|
),
|
|
7511
7515
|
uploading && _react2.default.createElement(
|
|
7512
|
-
|
|
7513
|
-
{
|
|
7516
|
+
"div",
|
|
7517
|
+
{
|
|
7518
|
+
style: {
|
|
7519
|
+
paddingLeft: 12,
|
|
7520
|
+
paddingTop: 12,
|
|
7521
|
+
display: "inline-block"
|
|
7522
|
+
}
|
|
7523
|
+
},
|
|
7514
7524
|
_react2.default.createElement(Spinner, null)
|
|
7515
7525
|
)
|
|
7516
7526
|
),
|
|
7517
7527
|
_react2.default.createElement(
|
|
7518
|
-
|
|
7528
|
+
"ul",
|
|
7519
7529
|
{ style: { padding: 0 } },
|
|
7520
7530
|
droppedFiles.map(function (f, i) {
|
|
7521
7531
|
return _react2.default.createElement(
|
|
7522
|
-
|
|
7523
|
-
{ key: i, style: { listStyle:
|
|
7532
|
+
"li",
|
|
7533
|
+
{ key: i, style: { listStyle: "none" } },
|
|
7524
7534
|
f.name,
|
|
7525
|
-
|
|
7535
|
+
" - ",
|
|
7526
7536
|
formatBytes(f.byteSize)
|
|
7527
7537
|
);
|
|
7528
7538
|
})
|
|
@@ -7530,124 +7540,144 @@ module.exports =
|
|
|
7530
7540
|
)
|
|
7531
7541
|
),
|
|
7532
7542
|
fileSchema && fileSchema.length > 0 && _react2.default.createElement(
|
|
7533
|
-
|
|
7534
|
-
{
|
|
7535
|
-
|
|
7536
|
-
|
|
7543
|
+
"div",
|
|
7544
|
+
{
|
|
7545
|
+
style: {
|
|
7546
|
+
marginTop: 20,
|
|
7547
|
+
width: "100%"
|
|
7548
|
+
}
|
|
7549
|
+
},
|
|
7537
7550
|
_react2.default.createElement(
|
|
7538
|
-
|
|
7551
|
+
"div",
|
|
7539
7552
|
{ style: { marginBottom: 4 } },
|
|
7540
7553
|
_react2.default.createElement(
|
|
7541
|
-
|
|
7554
|
+
"strong",
|
|
7542
7555
|
null,
|
|
7543
|
-
fileSchema.length +
|
|
7556
|
+
fileSchema.length + " file" + (fileSchema.length === 1 ? "" : "s")
|
|
7544
7557
|
),
|
|
7545
7558
|
_react2.default.createElement(
|
|
7546
|
-
|
|
7559
|
+
"strong",
|
|
7547
7560
|
null,
|
|
7548
|
-
|
|
7561
|
+
" uploaded"
|
|
7549
7562
|
)
|
|
7550
7563
|
),
|
|
7551
7564
|
_react2.default.createElement(
|
|
7552
|
-
|
|
7553
|
-
{
|
|
7565
|
+
"div",
|
|
7566
|
+
{ style: { height: 395, overflow: "auto" } },
|
|
7554
7567
|
_react2.default.createElement(
|
|
7555
|
-
|
|
7556
|
-
|
|
7568
|
+
_reactBootstrap.Table,
|
|
7569
|
+
{ bordered: true, condensed: true, className: "file-manager-table" },
|
|
7557
7570
|
_react2.default.createElement(
|
|
7558
|
-
|
|
7571
|
+
"thead",
|
|
7559
7572
|
null,
|
|
7560
7573
|
_react2.default.createElement(
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
return _this2.setState({ sortFileTableBy: 'name' });
|
|
7564
|
-
} },
|
|
7565
|
-
'Name'
|
|
7566
|
-
),
|
|
7567
|
-
_react2.default.createElement(
|
|
7568
|
-
'th',
|
|
7569
|
-
{ onClick: function onClick() {
|
|
7570
|
-
return _this2.setState({ sortFileTableBy: 'byteSize' });
|
|
7571
|
-
} },
|
|
7572
|
-
'Size'
|
|
7573
|
-
),
|
|
7574
|
-
_react2.default.createElement(
|
|
7575
|
-
'th',
|
|
7576
|
-
{ onClick: function onClick() {
|
|
7577
|
-
return _this2.setState({ sortFileTableBy: 'uploadedTime' });
|
|
7578
|
-
} },
|
|
7579
|
-
'Date uploaded'
|
|
7580
|
-
)
|
|
7581
|
-
)
|
|
7582
|
-
),
|
|
7583
|
-
_react2.default.createElement(
|
|
7584
|
-
'tbody',
|
|
7585
|
-
null,
|
|
7586
|
-
fileSchema.map(function (file, i) {
|
|
7587
|
-
return _react2.default.createElement(
|
|
7588
|
-
'tr',
|
|
7589
|
-
{ key: i },
|
|
7590
|
-
_react2.default.createElement(
|
|
7591
|
-
'td',
|
|
7592
|
-
null,
|
|
7593
|
-
_react2.default.createElement(
|
|
7594
|
-
'a',
|
|
7595
|
-
{ onClick: function onClick(e) {
|
|
7596
|
-
return _this2.downloadFile(e, file);
|
|
7597
|
-
} },
|
|
7598
|
-
file.name
|
|
7599
|
-
)
|
|
7600
|
-
),
|
|
7574
|
+
"tr",
|
|
7575
|
+
null,
|
|
7601
7576
|
_react2.default.createElement(
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7577
|
+
"th",
|
|
7578
|
+
{
|
|
7579
|
+
onClick: function onClick() {
|
|
7580
|
+
return _this2.setState({ sortFileTableBy: "name" });
|
|
7581
|
+
}
|
|
7582
|
+
},
|
|
7583
|
+
"Name"
|
|
7609
7584
|
),
|
|
7610
7585
|
_react2.default.createElement(
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7586
|
+
"th",
|
|
7587
|
+
{
|
|
7588
|
+
onClick: function onClick() {
|
|
7589
|
+
return _this2.setState({ sortFileTableBy: "byteSize" });
|
|
7590
|
+
}
|
|
7591
|
+
},
|
|
7592
|
+
"Size"
|
|
7614
7593
|
),
|
|
7615
7594
|
_react2.default.createElement(
|
|
7616
|
-
|
|
7617
|
-
{
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7595
|
+
"th",
|
|
7596
|
+
{
|
|
7597
|
+
onClick: function onClick() {
|
|
7598
|
+
return _this2.setState({ sortFileTableBy: "uploadedTime" });
|
|
7599
|
+
}
|
|
7600
|
+
},
|
|
7601
|
+
"Date uploaded"
|
|
7602
|
+
)
|
|
7603
|
+
)
|
|
7604
|
+
),
|
|
7605
|
+
_react2.default.createElement(
|
|
7606
|
+
"tbody",
|
|
7607
|
+
null,
|
|
7608
|
+
fileSchema.map(function (file, i) {
|
|
7609
|
+
return _react2.default.createElement(
|
|
7610
|
+
"tr",
|
|
7611
|
+
{ key: i },
|
|
7612
|
+
_react2.default.createElement(
|
|
7613
|
+
"td",
|
|
7614
|
+
null,
|
|
7615
|
+
_react2.default.createElement(
|
|
7616
|
+
"a",
|
|
7617
|
+
{ onClick: function onClick(e) {
|
|
7618
|
+
return _this2.downloadFile(e, file);
|
|
7619
|
+
} },
|
|
7620
|
+
file.name
|
|
7621
|
+
)
|
|
7622
|
+
),
|
|
7623
|
+
_react2.default.createElement(
|
|
7624
|
+
"td",
|
|
7625
|
+
null,
|
|
7626
|
+
_react2.default.createElement(
|
|
7627
|
+
"span",
|
|
7628
|
+
null,
|
|
7629
|
+
formatBytes(file.byteSize)
|
|
7630
|
+
)
|
|
7631
|
+
),
|
|
7632
|
+
_react2.default.createElement(
|
|
7633
|
+
"td",
|
|
7634
|
+
null,
|
|
7635
|
+
(0, _moment2.default)(file.uploadedTime).format("MMM Do, h:mm a")
|
|
7636
|
+
),
|
|
7637
|
+
_react2.default.createElement(
|
|
7638
|
+
"td",
|
|
7639
|
+
{ style: { width: 24 } },
|
|
7640
|
+
!(isDeletingFile === file.name) && _react2.default.createElement(
|
|
7641
|
+
"svg",
|
|
7642
|
+
{
|
|
7643
|
+
style: { width: 18, height: 18 },
|
|
7644
|
+
onClick: function onClick() {
|
|
7645
|
+
return _this2.deleteFlatFile(file.name);
|
|
7646
|
+
},
|
|
7647
|
+
className: "delete-flat-file",
|
|
7648
|
+
viewBox: "0 0 60 60"
|
|
7623
7649
|
},
|
|
7624
|
-
|
|
7625
|
-
|
|
7650
|
+
_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" })
|
|
7651
|
+
)
|
|
7626
7652
|
)
|
|
7627
|
-
)
|
|
7628
|
-
)
|
|
7629
|
-
|
|
7653
|
+
);
|
|
7654
|
+
})
|
|
7655
|
+
)
|
|
7630
7656
|
)
|
|
7631
7657
|
)
|
|
7632
7658
|
),
|
|
7633
7659
|
_react2.default.createElement(
|
|
7634
7660
|
Modal,
|
|
7635
|
-
{
|
|
7661
|
+
{
|
|
7662
|
+
opened: deleteModalOpenFile ? true : false,
|
|
7636
7663
|
hideModal: this.closeDeleteModal,
|
|
7637
7664
|
submitModal: this.actuallyDeleteFile,
|
|
7638
|
-
title:
|
|
7639
|
-
|
|
7665
|
+
title: "Delete File",
|
|
7666
|
+
danger: true,
|
|
7667
|
+
showCancel: true,
|
|
7668
|
+
submitLabel: "Delete"
|
|
7669
|
+
},
|
|
7640
7670
|
_react2.default.createElement(
|
|
7641
|
-
|
|
7642
|
-
{ style: { padding: 24, textAlign:
|
|
7643
|
-
|
|
7671
|
+
"div",
|
|
7672
|
+
{ style: { padding: 24, textAlign: "center" } },
|
|
7673
|
+
"Are you sure you want to delete",
|
|
7644
7674
|
_react2.default.createElement(
|
|
7645
|
-
|
|
7675
|
+
"strong",
|
|
7646
7676
|
null,
|
|
7647
|
-
|
|
7677
|
+
" ",
|
|
7648
7678
|
deleteModalOpenFile
|
|
7649
7679
|
),
|
|
7650
|
-
|
|
7680
|
+
"?"
|
|
7651
7681
|
)
|
|
7652
7682
|
)
|
|
7653
7683
|
);
|
|
@@ -7659,10 +7689,10 @@ module.exports =
|
|
|
7659
7689
|
|
|
7660
7690
|
var UploadIcon = function UploadIcon() {
|
|
7661
7691
|
return _react2.default.createElement(
|
|
7662
|
-
|
|
7663
|
-
{ fill:
|
|
7664
|
-
_react2.default.createElement(
|
|
7665
|
-
_react2.default.createElement(
|
|
7692
|
+
"svg",
|
|
7693
|
+
{ fill: "#FFF", height: "24", viewBox: "0 0 24 24", width: "24" },
|
|
7694
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
7695
|
+
_react2.default.createElement("path", { d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" })
|
|
7666
7696
|
);
|
|
7667
7697
|
};
|
|
7668
7698
|
|
|
@@ -7672,7 +7702,7 @@ module.exports =
|
|
|
7672
7702
|
/* 70 */
|
|
7673
7703
|
/***/ function(module, exports, __webpack_require__) {
|
|
7674
7704
|
|
|
7675
|
-
|
|
7705
|
+
"use strict";
|
|
7676
7706
|
|
|
7677
7707
|
Object.defineProperty(exports, "__esModule", {
|
|
7678
7708
|
value: true
|
|
@@ -7696,13 +7726,13 @@ module.exports =
|
|
|
7696
7726
|
|
|
7697
7727
|
// SKIP ON SERVER-SIDE RENDERING
|
|
7698
7728
|
var codemirror = null;
|
|
7699
|
-
if (typeof window !==
|
|
7729
|
+
if (typeof window !== "undefined" && typeof window.navigator !== "undefined") {
|
|
7700
7730
|
codemirror = __webpack_require__(39);
|
|
7701
7731
|
__webpack_require__(30);
|
|
7702
7732
|
}
|
|
7703
7733
|
|
|
7704
7734
|
function unCamelize(text) {
|
|
7705
|
-
return text.replace(/([A-Z])/g,
|
|
7735
|
+
return text.replace(/([A-Z])/g, " $1").replace(/^./, function (str) {
|
|
7706
7736
|
return str.toUpperCase();
|
|
7707
7737
|
});
|
|
7708
7738
|
}
|
|
@@ -7722,7 +7752,7 @@ module.exports =
|
|
|
7722
7752
|
}
|
|
7723
7753
|
|
|
7724
7754
|
_createClass(Google, [{
|
|
7725
|
-
key:
|
|
7755
|
+
key: "render",
|
|
7726
7756
|
value: function render() {
|
|
7727
7757
|
var _this2 = this;
|
|
7728
7758
|
|
|
@@ -7743,93 +7773,101 @@ module.exports =
|
|
|
7743
7773
|
var Spinner = inputs.Spinner;
|
|
7744
7774
|
var CodeMirror = codemirror && codemirror.Controlled;
|
|
7745
7775
|
|
|
7746
|
-
var CloudSQLTypes = [{
|
|
7776
|
+
var CloudSQLTypes = [{
|
|
7777
|
+
name: "Postgres",
|
|
7778
|
+
satisfiesSearch: true,
|
|
7779
|
+
type: "Postgres",
|
|
7780
|
+
title: "Postgres"
|
|
7781
|
+
}, { name: "MySQL", satisfiesSearch: true, type: "MySQL", title: "MySQL" }];
|
|
7747
7782
|
|
|
7748
|
-
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] ===
|
|
7783
|
+
var onlyJson = config.credentials && config.credentials.length === 1 && config.credentials[0] === "json";
|
|
7749
7784
|
|
|
7750
7785
|
return _react2.default.createElement(
|
|
7751
|
-
|
|
7786
|
+
"div",
|
|
7752
7787
|
null,
|
|
7753
7788
|
config.credentials && _react2.default.createElement(
|
|
7754
|
-
|
|
7789
|
+
"div",
|
|
7755
7790
|
{ style: { marginLeft: 1 } },
|
|
7756
7791
|
_react2.default.createElement(
|
|
7757
|
-
|
|
7758
|
-
{ htmlFor:
|
|
7792
|
+
"label",
|
|
7793
|
+
{ htmlFor: "creds" },
|
|
7759
7794
|
config.label || config.type,
|
|
7760
|
-
|
|
7795
|
+
" Credentials"
|
|
7761
7796
|
),
|
|
7762
|
-
_react2.default.createElement(
|
|
7797
|
+
_react2.default.createElement("br", null),
|
|
7763
7798
|
_react2.default.createElement(
|
|
7764
|
-
|
|
7765
|
-
{
|
|
7799
|
+
"div",
|
|
7800
|
+
{
|
|
7801
|
+
style: { display: "inline-block", marginLeft: 16, width: "100%" }
|
|
7802
|
+
},
|
|
7766
7803
|
config.credentials.map(function (credType, index) {
|
|
7767
7804
|
return _react2.default.createElement(
|
|
7768
|
-
|
|
7769
|
-
{ key: index, style: { marginTop: 8, width:
|
|
7805
|
+
"div",
|
|
7806
|
+
{ key: index, style: { marginTop: 8, width: "100%" } },
|
|
7770
7807
|
_react2.default.createElement(
|
|
7771
|
-
|
|
7772
|
-
{
|
|
7773
|
-
|
|
7808
|
+
"label",
|
|
7809
|
+
{
|
|
7810
|
+
htmlFor: credType,
|
|
7811
|
+
className: "labelz",
|
|
7812
|
+
style: { fontWeight: "normal" }
|
|
7813
|
+
},
|
|
7814
|
+
credType !== "json" ? unCamelize(credType) : "API key (paste json or drag-and-drop file)"
|
|
7774
7815
|
),
|
|
7775
|
-
_react2.default.createElement(
|
|
7776
|
-
credType !==
|
|
7777
|
-
|
|
7778
|
-
{
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7816
|
+
_react2.default.createElement("br", null),
|
|
7817
|
+
credType !== "json" ? _react2.default.createElement(
|
|
7818
|
+
"div",
|
|
7819
|
+
{
|
|
7820
|
+
style: {
|
|
7821
|
+
display: "inline-block",
|
|
7822
|
+
width: credType !== "databaseType" ? 300 : 164
|
|
7823
|
+
}
|
|
7824
|
+
},
|
|
7825
|
+
credType !== "databaseType" ? _react2.default.createElement(Input, {
|
|
7826
|
+
name: credType,
|
|
7827
|
+
datatype: credType === "password" && !_this2.state.showPass ? "password" : null,
|
|
7828
|
+
value: creds[credType] || "",
|
|
7829
|
+
onChange: onChange
|
|
7830
|
+
}) : _react2.default.createElement(Select, {
|
|
7831
|
+
vals: CloudSQLTypes,
|
|
7832
|
+
fieldPropLabel: "name",
|
|
7833
|
+
label: creds[credType] || "Database Types",
|
|
7783
7834
|
onSelect: function onSelect(v) {
|
|
7784
7835
|
return onChange({ target: { name: credType, value: v } });
|
|
7785
7836
|
},
|
|
7786
|
-
size:
|
|
7837
|
+
size: "small",
|
|
7838
|
+
style: {
|
|
7839
|
+
width: 160,
|
|
7840
|
+
height: 31,
|
|
7841
|
+
textAlign: "left"
|
|
7842
|
+
}
|
|
7787
7843
|
})
|
|
7788
|
-
) : _react2.default.createElement(CodeMirror, {
|
|
7789
|
-
|
|
7844
|
+
) : _react2.default.createElement(CodeMirror, {
|
|
7845
|
+
value: creds[credType],
|
|
7846
|
+
className: "env-creds-json-codemirror",
|
|
7790
7847
|
options: {
|
|
7791
7848
|
lineNumbers: true,
|
|
7792
|
-
theme:
|
|
7793
|
-
mode:
|
|
7849
|
+
theme: "default",
|
|
7850
|
+
mode: "javascript",
|
|
7794
7851
|
dragDrop: true
|
|
7795
7852
|
},
|
|
7796
7853
|
onBeforeChange: function onBeforeChange(e, d, v) {
|
|
7797
7854
|
return onChange({ target: { name: credType, value: v } });
|
|
7798
7855
|
}
|
|
7799
7856
|
}),
|
|
7800
|
-
credType ===
|
|
7857
|
+
credType === "password" && _react2.default.createElement(Key, {
|
|
7858
|
+
showPass: _this2.state.showPass,
|
|
7801
7859
|
onClick: function onClick() {
|
|
7802
7860
|
return _this2.setState({ showPass: !_this2.state.showPass });
|
|
7803
7861
|
}
|
|
7804
7862
|
}),
|
|
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
7863
|
index === 0 && checking && _react2.default.createElement(
|
|
7824
|
-
|
|
7864
|
+
"span",
|
|
7825
7865
|
{ style: { marginLeft: 10 } },
|
|
7826
7866
|
_react2.default.createElement(Spinner, null)
|
|
7827
7867
|
),
|
|
7828
7868
|
index === 0 && envCheckResult && _react2.default.createElement(
|
|
7829
|
-
|
|
7869
|
+
"span",
|
|
7830
7870
|
{ style: { marginLeft: 10 } },
|
|
7831
|
-
envCheckResult,
|
|
7832
|
-
' ',
|
|
7833
7871
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
7834
7872
|
)
|
|
7835
7873
|
);
|
|
@@ -7845,11 +7883,16 @@ module.exports =
|
|
|
7845
7883
|
|
|
7846
7884
|
var Loop = function Loop() {
|
|
7847
7885
|
return _react2.default.createElement(
|
|
7848
|
-
|
|
7849
|
-
{
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7886
|
+
"svg",
|
|
7887
|
+
{
|
|
7888
|
+
fill: "#FFFFFF",
|
|
7889
|
+
height: "18",
|
|
7890
|
+
viewBox: "0 0 24 24",
|
|
7891
|
+
width: "18",
|
|
7892
|
+
style: { marginTop: -1 }
|
|
7893
|
+
},
|
|
7894
|
+
_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" }),
|
|
7895
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
|
7853
7896
|
);
|
|
7854
7897
|
};
|
|
7855
7898
|
|
|
@@ -7858,11 +7901,17 @@ module.exports =
|
|
|
7858
7901
|
showPass = _ref.showPass;
|
|
7859
7902
|
|
|
7860
7903
|
return _react2.default.createElement(
|
|
7861
|
-
|
|
7862
|
-
{
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7904
|
+
"svg",
|
|
7905
|
+
{
|
|
7906
|
+
onClick: onClick,
|
|
7907
|
+
style: showPass ? { fill: "#3a91dcb3" } : {},
|
|
7908
|
+
height: "24",
|
|
7909
|
+
width: "24",
|
|
7910
|
+
className: "pass-key-svg",
|
|
7911
|
+
viewBox: "0 0 24 24"
|
|
7912
|
+
},
|
|
7913
|
+
_react2.default.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
7914
|
+
_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
7915
|
);
|
|
7867
7916
|
};
|
|
7868
7917
|
|
|
@@ -8251,36 +8300,6 @@ module.exports =
|
|
|
8251
8300
|
onChange: this.onChange
|
|
8252
8301
|
})
|
|
8253
8302
|
),
|
|
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
8303
|
_react2.default.createElement(
|
|
8285
8304
|
"div",
|
|
8286
8305
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -8288,8 +8307,6 @@ module.exports =
|
|
|
8288
8307
|
envCheckResult && _react2.default.createElement(
|
|
8289
8308
|
"span",
|
|
8290
8309
|
null,
|
|
8291
|
-
envCheckResult,
|
|
8292
|
-
" ",
|
|
8293
8310
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult }),
|
|
8294
8311
|
" "
|
|
8295
8312
|
)
|
|
@@ -8346,36 +8363,6 @@ module.exports =
|
|
|
8346
8363
|
value: _this2.state.actualCreds[credType] || "",
|
|
8347
8364
|
onChange: _this2.onChange
|
|
8348
8365
|
}),
|
|
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
8366
|
index === 0 && noRootUrl && checking && _react2.default.createElement(
|
|
8380
8367
|
"span",
|
|
8381
8368
|
{ style: { marginLeft: 10 } },
|
|
@@ -8384,8 +8371,6 @@ module.exports =
|
|
|
8384
8371
|
index === 0 && noRootUrl && envCheckResult && _react2.default.createElement(
|
|
8385
8372
|
"span",
|
|
8386
8373
|
{ style: { marginLeft: 10 } },
|
|
8387
|
-
envCheckResult,
|
|
8388
|
-
" ",
|
|
8389
8374
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
8390
8375
|
),
|
|
8391
8376
|
credType === "password" && _react2.default.createElement(Key, {
|
|
@@ -8662,29 +8647,6 @@ module.exports =
|
|
|
8662
8647
|
},
|
|
8663
8648
|
"Production"
|
|
8664
8649
|
),
|
|
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
8650
|
_react2.default.createElement(
|
|
8689
8651
|
"div",
|
|
8690
8652
|
{ style: { display: "inline-block", marginLeft: 12 } },
|
|
@@ -8692,8 +8654,6 @@ module.exports =
|
|
|
8692
8654
|
envCheckResult && _react2.default.createElement(
|
|
8693
8655
|
"span",
|
|
8694
8656
|
null,
|
|
8695
|
-
envCheckResult,
|
|
8696
|
-
" ",
|
|
8697
8657
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
|
|
8698
8658
|
)
|
|
8699
8659
|
),
|
|
@@ -8995,8 +8955,6 @@ module.exports =
|
|
|
8995
8955
|
envCheckResult && _react2.default.createElement(
|
|
8996
8956
|
"span",
|
|
8997
8957
|
null,
|
|
8998
|
-
envCheckResult,
|
|
8999
|
-
" ",
|
|
9000
8958
|
_react2.default.createElement(EnvCheckIcons, { result: envCheckResult }),
|
|
9001
8959
|
" "
|
|
9002
8960
|
)
|
|
@@ -9059,36 +9017,6 @@ module.exports =
|
|
|
9059
9017
|
value: creds[credType] || "",
|
|
9060
9018
|
onChange: onChange
|
|
9061
9019
|
}),
|
|
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
9020
|
credType === "password" && _react2.default.createElement(Key, {
|
|
9093
9021
|
showPass: _this2.state.showPass,
|
|
9094
9022
|
onClick: function onClick() {
|