@lingk/sync 2.0.15 → 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 +200 -145
- package/build/credentialSections.js.map +1 -1
- 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 +200 -145
- 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
|
@@ -7106,7 +7106,7 @@ module.exports =
|
|
|
7106
7106
|
/* 69 */
|
|
7107
7107
|
/***/ function(module, exports, __webpack_require__) {
|
|
7108
7108
|
|
|
7109
|
-
|
|
7109
|
+
"use strict";
|
|
7110
7110
|
|
|
7111
7111
|
Object.defineProperty(exports, "__esModule", {
|
|
7112
7112
|
value: true
|
|
@@ -7149,13 +7149,15 @@ module.exports =
|
|
|
7149
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; }
|
|
7150
7150
|
|
|
7151
7151
|
function formatBytes(a, b) {
|
|
7152
|
-
if (0 === a) return "0 Bytes";
|
|
7152
|
+
if (0 === a) return "0 Bytes";
|
|
7153
|
+
var c = 1024,
|
|
7153
7154
|
d = b || 2,
|
|
7154
7155
|
e = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
|
|
7155
|
-
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];
|
|
7156
7158
|
}
|
|
7157
7159
|
|
|
7158
|
-
var extensionBlacklist = [
|
|
7160
|
+
var extensionBlacklist = ["zip", "tar", "gz"];
|
|
7159
7161
|
|
|
7160
7162
|
var FlatFile = function (_Component) {
|
|
7161
7163
|
_inherits(FlatFile, _Component);
|
|
@@ -7171,7 +7173,7 @@ module.exports =
|
|
|
7171
7173
|
try {
|
|
7172
7174
|
json = JSON.parse(content);
|
|
7173
7175
|
} catch (err) {
|
|
7174
|
-
console.log(
|
|
7176
|
+
console.log("err when trying to parse json = " + err);
|
|
7175
7177
|
}
|
|
7176
7178
|
if (json) {
|
|
7177
7179
|
var fields = [];
|
|
@@ -7190,7 +7192,7 @@ module.exports =
|
|
|
7190
7192
|
});
|
|
7191
7193
|
var meta = {
|
|
7192
7194
|
name: file.name,
|
|
7193
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
7195
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
7194
7196
|
byteSize: file.size,
|
|
7195
7197
|
properties: fields
|
|
7196
7198
|
};
|
|
@@ -7199,13 +7201,13 @@ module.exports =
|
|
|
7199
7201
|
};
|
|
7200
7202
|
|
|
7201
7203
|
_this.parseJsonLines = function (content) {
|
|
7202
|
-
var firstLine = content.substring(0, content.indexOf(
|
|
7203
|
-
return
|
|
7204
|
+
var firstLine = content.substring(0, content.indexOf("\n"));
|
|
7205
|
+
return "[" + firstLine + "]";
|
|
7204
7206
|
};
|
|
7205
7207
|
|
|
7206
7208
|
_this.parseCSV = function (file, csv, isXLS) {
|
|
7207
7209
|
if (isXLS && (!csv || csv === null)) {
|
|
7208
|
-
var err =
|
|
7210
|
+
var err = "Remove empty sheets- " + file.name;
|
|
7209
7211
|
alert(err);
|
|
7210
7212
|
throw new Error(err);
|
|
7211
7213
|
} else {
|
|
@@ -7216,7 +7218,7 @@ module.exports =
|
|
|
7216
7218
|
complete: function complete(result) {
|
|
7217
7219
|
resolve({
|
|
7218
7220
|
name: file.name,
|
|
7219
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
7221
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
7220
7222
|
byteSize: file.size,
|
|
7221
7223
|
properties: result.meta.fields.map(function (f) {
|
|
7222
7224
|
return {
|
|
@@ -7242,13 +7244,12 @@ module.exports =
|
|
|
7242
7244
|
var fileContents = [].concat(_toConsumableArray(_this.state.fileContents));
|
|
7243
7245
|
var contentCounter = 0;
|
|
7244
7246
|
fs.forEach(function (file) {
|
|
7245
|
-
var extension = file.name.substr(file.name.lastIndexOf(
|
|
7247
|
+
var extension = file.name.substr(file.name.lastIndexOf(".") + 1, file.name.length);
|
|
7246
7248
|
var blacklisted = extensionBlacklist.includes(extension);
|
|
7247
7249
|
if (!blacklisted) {
|
|
7248
|
-
var isXLS = extension ===
|
|
7250
|
+
var isXLS = extension === "xlsx" || extension === "xls";
|
|
7249
7251
|
var reader = new FileReader();
|
|
7250
7252
|
reader.onload = function (e) {
|
|
7251
|
-
|
|
7252
7253
|
// PARSE METADATA
|
|
7253
7254
|
var data = e.target.result;
|
|
7254
7255
|
var csv = null;
|
|
@@ -7259,9 +7260,9 @@ module.exports =
|
|
|
7259
7260
|
for (var i = 0; i < length; i++) {
|
|
7260
7261
|
binary += String.fromCharCode(bytes[i]);
|
|
7261
7262
|
}*/
|
|
7262
|
-
var workbook = _xlsx2.default.read(binary, { type:
|
|
7263
|
+
var workbook = _xlsx2.default.read(binary, { type: "binary" });
|
|
7263
7264
|
var sheetNames = workbook.SheetNames.filter(function (sn) {
|
|
7264
|
-
return sn !==
|
|
7265
|
+
return sn !== "Export Summary";
|
|
7265
7266
|
});
|
|
7266
7267
|
sheetNames.forEach(function (sn) {
|
|
7267
7268
|
csv = _xlsx2.default.utils.sheet_to_csv(workbook.Sheets[sn]);
|
|
@@ -7278,7 +7279,7 @@ module.exports =
|
|
|
7278
7279
|
}
|
|
7279
7280
|
});
|
|
7280
7281
|
});
|
|
7281
|
-
} else if (extension ===
|
|
7282
|
+
} else if (extension === "csv") {
|
|
7282
7283
|
_this.parseCSV(file, csv, null).then(function (csvMeta) {
|
|
7283
7284
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
7284
7285
|
counter += 1;
|
|
@@ -7287,9 +7288,9 @@ module.exports =
|
|
|
7287
7288
|
_this.props.onDrop();
|
|
7288
7289
|
}
|
|
7289
7290
|
});
|
|
7290
|
-
} else if (extension ===
|
|
7291
|
+
} else if (extension === "json" || extension === "jsonl") {
|
|
7291
7292
|
var d = data;
|
|
7292
|
-
if (extension ===
|
|
7293
|
+
if (extension === "jsonl") {
|
|
7293
7294
|
d = _this.parseJsonLines(data);
|
|
7294
7295
|
}
|
|
7295
7296
|
var fileMeta = _this.parseJsonFile(d, file);
|
|
@@ -7298,13 +7299,13 @@ module.exports =
|
|
|
7298
7299
|
counter += 1;
|
|
7299
7300
|
if (counter === fs.length) {
|
|
7300
7301
|
_this.setState({ meta: meta });
|
|
7301
|
-
|
|
7302
|
+
// this.props.onDrop();
|
|
7302
7303
|
}
|
|
7303
7304
|
}
|
|
7304
|
-
} else if (extension ===
|
|
7305
|
+
} else if (extension === "txt" || extension === "xml" || extension === "hdr") {
|
|
7305
7306
|
var csvMeta = {
|
|
7306
7307
|
name: file.name,
|
|
7307
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
7308
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
7308
7309
|
byteSize: file.size
|
|
7309
7310
|
};
|
|
7310
7311
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
@@ -7329,7 +7330,7 @@ module.exports =
|
|
|
7329
7330
|
reader.readAsText(file);
|
|
7330
7331
|
}
|
|
7331
7332
|
} else {
|
|
7332
|
-
_this.setState({ dropError:
|
|
7333
|
+
_this.setState({ dropError: "File type not accepted." });
|
|
7333
7334
|
setTimeout(function () {
|
|
7334
7335
|
_this.setState({ dropError: null });
|
|
7335
7336
|
}, 3500);
|
|
@@ -7338,7 +7339,7 @@ module.exports =
|
|
|
7338
7339
|
};
|
|
7339
7340
|
|
|
7340
7341
|
_this.onReject = function () {
|
|
7341
|
-
_this.setState({ dropError:
|
|
7342
|
+
_this.setState({ dropError: "File is too big!" });
|
|
7342
7343
|
setTimeout(function () {
|
|
7343
7344
|
_this.setState({ dropError: null });
|
|
7344
7345
|
}, 3500);
|
|
@@ -7379,7 +7380,7 @@ module.exports =
|
|
|
7379
7380
|
fileContents: [],
|
|
7380
7381
|
uploading: false,
|
|
7381
7382
|
dropError: null,
|
|
7382
|
-
sortFileTableBy:
|
|
7383
|
+
sortFileTableBy: "uploadedTime", // name, byteSize, uploadedTime
|
|
7383
7384
|
isDeletingFile: null,
|
|
7384
7385
|
deleteModalOpen: false
|
|
7385
7386
|
};
|
|
@@ -7387,7 +7388,7 @@ module.exports =
|
|
|
7387
7388
|
}
|
|
7388
7389
|
|
|
7389
7390
|
_createClass(FlatFile, [{
|
|
7390
|
-
key:
|
|
7391
|
+
key: "render",
|
|
7391
7392
|
value: function render() {
|
|
7392
7393
|
var _this2 = this;
|
|
7393
7394
|
|
|
@@ -7416,7 +7417,7 @@ module.exports =
|
|
|
7416
7417
|
if (fileSchema && fileSchema.length) {
|
|
7417
7418
|
fileSchema = fileSchema.sort(function (a, b) {
|
|
7418
7419
|
var term = sortFileTableBy;
|
|
7419
|
-
if (term ===
|
|
7420
|
+
if (term === "uploadedTime") {
|
|
7420
7421
|
return a[term] < b[term];
|
|
7421
7422
|
}
|
|
7422
7423
|
return a[term] > b[term];
|
|
@@ -7433,71 +7434,105 @@ module.exports =
|
|
|
7433
7434
|
});
|
|
7434
7435
|
|
|
7435
7436
|
return _react2.default.createElement(
|
|
7436
|
-
|
|
7437
|
+
"div",
|
|
7437
7438
|
null,
|
|
7438
7439
|
_react2.default.createElement(
|
|
7439
|
-
|
|
7440
|
-
{ style: { display:
|
|
7440
|
+
"div",
|
|
7441
|
+
{ style: { display: "inline-block" } },
|
|
7441
7442
|
_react2.default.createElement(
|
|
7442
7443
|
_reactDropzone2.default,
|
|
7443
|
-
{
|
|
7444
|
-
|
|
7444
|
+
{
|
|
7445
|
+
onDropAccepted: this.onDrop,
|
|
7446
|
+
onDropRejected: this.onReject,
|
|
7447
|
+
className: "dropzone",
|
|
7448
|
+
maxSize: 1000000 * 1000 * 5 /*5 GB*/
|
|
7449
|
+
},
|
|
7445
7450
|
!dropError ? _react2.default.createElement(
|
|
7446
|
-
|
|
7451
|
+
"p",
|
|
7447
7452
|
null,
|
|
7448
|
-
|
|
7453
|
+
"Drop one or more files here, or click to select files to upload."
|
|
7449
7454
|
) : _react2.default.createElement(
|
|
7450
|
-
|
|
7451
|
-
{ style: { color:
|
|
7455
|
+
"p",
|
|
7456
|
+
{ style: { color: "#c9302c", fontWeight: "bold" } },
|
|
7452
7457
|
dropError
|
|
7453
7458
|
)
|
|
7454
7459
|
)
|
|
7455
7460
|
),
|
|
7456
7461
|
_react2.default.createElement(
|
|
7457
|
-
|
|
7458
|
-
{
|
|
7459
|
-
|
|
7462
|
+
"div",
|
|
7463
|
+
{
|
|
7464
|
+
style: {
|
|
7465
|
+
marginLeft: 30,
|
|
7466
|
+
display: "inline-block",
|
|
7467
|
+
verticalAlign: "top",
|
|
7468
|
+
maxWidth: "60%"
|
|
7469
|
+
}
|
|
7470
|
+
},
|
|
7460
7471
|
hasFile && _react2.default.createElement(
|
|
7461
|
-
|
|
7472
|
+
"aside",
|
|
7462
7473
|
null,
|
|
7463
7474
|
_react2.default.createElement(
|
|
7464
|
-
|
|
7475
|
+
"div",
|
|
7465
7476
|
null,
|
|
7466
7477
|
_react2.default.createElement(
|
|
7467
|
-
|
|
7468
|
-
{
|
|
7469
|
-
|
|
7478
|
+
"h3",
|
|
7479
|
+
{
|
|
7480
|
+
style: {
|
|
7481
|
+
marginTop: 10,
|
|
7482
|
+
display: "inline-block",
|
|
7483
|
+
verticalAlign: "top"
|
|
7484
|
+
}
|
|
7485
|
+
},
|
|
7486
|
+
"Dropped files"
|
|
7470
7487
|
),
|
|
7471
7488
|
_react2.default.createElement(
|
|
7472
7489
|
Button,
|
|
7473
7490
|
{
|
|
7474
|
-
type:
|
|
7491
|
+
type: "brand",
|
|
7475
7492
|
onClick: this.upload,
|
|
7476
|
-
style: {
|
|
7477
|
-
|
|
7493
|
+
style: {
|
|
7494
|
+
marginTop: 4,
|
|
7495
|
+
marginLeft: 20,
|
|
7496
|
+
verticalAlign: "top",
|
|
7497
|
+
height: 36
|
|
7498
|
+
},
|
|
7499
|
+
disabled: uploading
|
|
7500
|
+
},
|
|
7478
7501
|
_react2.default.createElement(
|
|
7479
|
-
|
|
7480
|
-
{
|
|
7481
|
-
|
|
7502
|
+
"span",
|
|
7503
|
+
{
|
|
7504
|
+
style: {
|
|
7505
|
+
display: "inline-block",
|
|
7506
|
+
verticalAlign: "top",
|
|
7507
|
+
marginTop: 3
|
|
7508
|
+
}
|
|
7509
|
+
},
|
|
7510
|
+
"Upload"
|
|
7482
7511
|
),
|
|
7483
|
-
|
|
7512
|
+
"\xA0\xA0",
|
|
7484
7513
|
_react2.default.createElement(UploadIcon, null)
|
|
7485
7514
|
),
|
|
7486
7515
|
uploading && _react2.default.createElement(
|
|
7487
|
-
|
|
7488
|
-
{
|
|
7516
|
+
"div",
|
|
7517
|
+
{
|
|
7518
|
+
style: {
|
|
7519
|
+
paddingLeft: 12,
|
|
7520
|
+
paddingTop: 12,
|
|
7521
|
+
display: "inline-block"
|
|
7522
|
+
}
|
|
7523
|
+
},
|
|
7489
7524
|
_react2.default.createElement(Spinner, null)
|
|
7490
7525
|
)
|
|
7491
7526
|
),
|
|
7492
7527
|
_react2.default.createElement(
|
|
7493
|
-
|
|
7528
|
+
"ul",
|
|
7494
7529
|
{ style: { padding: 0 } },
|
|
7495
7530
|
droppedFiles.map(function (f, i) {
|
|
7496
7531
|
return _react2.default.createElement(
|
|
7497
|
-
|
|
7498
|
-
{ key: i, style: { listStyle:
|
|
7532
|
+
"li",
|
|
7533
|
+
{ key: i, style: { listStyle: "none" } },
|
|
7499
7534
|
f.name,
|
|
7500
|
-
|
|
7535
|
+
" - ",
|
|
7501
7536
|
formatBytes(f.byteSize)
|
|
7502
7537
|
);
|
|
7503
7538
|
})
|
|
@@ -7505,124 +7540,144 @@ module.exports =
|
|
|
7505
7540
|
)
|
|
7506
7541
|
),
|
|
7507
7542
|
fileSchema && fileSchema.length > 0 && _react2.default.createElement(
|
|
7508
|
-
|
|
7509
|
-
{
|
|
7510
|
-
|
|
7511
|
-
|
|
7543
|
+
"div",
|
|
7544
|
+
{
|
|
7545
|
+
style: {
|
|
7546
|
+
marginTop: 20,
|
|
7547
|
+
width: "100%"
|
|
7548
|
+
}
|
|
7549
|
+
},
|
|
7512
7550
|
_react2.default.createElement(
|
|
7513
|
-
|
|
7551
|
+
"div",
|
|
7514
7552
|
{ style: { marginBottom: 4 } },
|
|
7515
7553
|
_react2.default.createElement(
|
|
7516
|
-
|
|
7554
|
+
"strong",
|
|
7517
7555
|
null,
|
|
7518
|
-
fileSchema.length +
|
|
7556
|
+
fileSchema.length + " file" + (fileSchema.length === 1 ? "" : "s")
|
|
7519
7557
|
),
|
|
7520
7558
|
_react2.default.createElement(
|
|
7521
|
-
|
|
7559
|
+
"strong",
|
|
7522
7560
|
null,
|
|
7523
|
-
|
|
7561
|
+
" uploaded"
|
|
7524
7562
|
)
|
|
7525
7563
|
),
|
|
7526
7564
|
_react2.default.createElement(
|
|
7527
|
-
|
|
7528
|
-
{
|
|
7565
|
+
"div",
|
|
7566
|
+
{ style: { height: 395, overflow: "auto" } },
|
|
7529
7567
|
_react2.default.createElement(
|
|
7530
|
-
|
|
7531
|
-
|
|
7568
|
+
_reactBootstrap.Table,
|
|
7569
|
+
{ bordered: true, condensed: true, className: "file-manager-table" },
|
|
7532
7570
|
_react2.default.createElement(
|
|
7533
|
-
|
|
7571
|
+
"thead",
|
|
7534
7572
|
null,
|
|
7535
7573
|
_react2.default.createElement(
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
return _this2.setState({ sortFileTableBy: 'name' });
|
|
7539
|
-
} },
|
|
7540
|
-
'Name'
|
|
7541
|
-
),
|
|
7542
|
-
_react2.default.createElement(
|
|
7543
|
-
'th',
|
|
7544
|
-
{ onClick: function onClick() {
|
|
7545
|
-
return _this2.setState({ sortFileTableBy: 'byteSize' });
|
|
7546
|
-
} },
|
|
7547
|
-
'Size'
|
|
7548
|
-
),
|
|
7549
|
-
_react2.default.createElement(
|
|
7550
|
-
'th',
|
|
7551
|
-
{ onClick: function onClick() {
|
|
7552
|
-
return _this2.setState({ sortFileTableBy: 'uploadedTime' });
|
|
7553
|
-
} },
|
|
7554
|
-
'Date uploaded'
|
|
7555
|
-
)
|
|
7556
|
-
)
|
|
7557
|
-
),
|
|
7558
|
-
_react2.default.createElement(
|
|
7559
|
-
'tbody',
|
|
7560
|
-
null,
|
|
7561
|
-
fileSchema.map(function (file, i) {
|
|
7562
|
-
return _react2.default.createElement(
|
|
7563
|
-
'tr',
|
|
7564
|
-
{ key: i },
|
|
7565
|
-
_react2.default.createElement(
|
|
7566
|
-
'td',
|
|
7567
|
-
null,
|
|
7568
|
-
_react2.default.createElement(
|
|
7569
|
-
'a',
|
|
7570
|
-
{ onClick: function onClick(e) {
|
|
7571
|
-
return _this2.downloadFile(e, file);
|
|
7572
|
-
} },
|
|
7573
|
-
file.name
|
|
7574
|
-
)
|
|
7575
|
-
),
|
|
7574
|
+
"tr",
|
|
7575
|
+
null,
|
|
7576
7576
|
_react2.default.createElement(
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7577
|
+
"th",
|
|
7578
|
+
{
|
|
7579
|
+
onClick: function onClick() {
|
|
7580
|
+
return _this2.setState({ sortFileTableBy: "name" });
|
|
7581
|
+
}
|
|
7582
|
+
},
|
|
7583
|
+
"Name"
|
|
7584
7584
|
),
|
|
7585
7585
|
_react2.default.createElement(
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7586
|
+
"th",
|
|
7587
|
+
{
|
|
7588
|
+
onClick: function onClick() {
|
|
7589
|
+
return _this2.setState({ sortFileTableBy: "byteSize" });
|
|
7590
|
+
}
|
|
7591
|
+
},
|
|
7592
|
+
"Size"
|
|
7589
7593
|
),
|
|
7590
7594
|
_react2.default.createElement(
|
|
7591
|
-
|
|
7592
|
-
{
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
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"
|
|
7598
7649
|
},
|
|
7599
|
-
|
|
7600
|
-
|
|
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
|
+
)
|
|
7601
7652
|
)
|
|
7602
|
-
)
|
|
7603
|
-
)
|
|
7604
|
-
|
|
7653
|
+
);
|
|
7654
|
+
})
|
|
7655
|
+
)
|
|
7605
7656
|
)
|
|
7606
7657
|
)
|
|
7607
7658
|
),
|
|
7608
7659
|
_react2.default.createElement(
|
|
7609
7660
|
Modal,
|
|
7610
|
-
{
|
|
7661
|
+
{
|
|
7662
|
+
opened: deleteModalOpenFile ? true : false,
|
|
7611
7663
|
hideModal: this.closeDeleteModal,
|
|
7612
7664
|
submitModal: this.actuallyDeleteFile,
|
|
7613
|
-
title:
|
|
7614
|
-
|
|
7665
|
+
title: "Delete File",
|
|
7666
|
+
danger: true,
|
|
7667
|
+
showCancel: true,
|
|
7668
|
+
submitLabel: "Delete"
|
|
7669
|
+
},
|
|
7615
7670
|
_react2.default.createElement(
|
|
7616
|
-
|
|
7617
|
-
{ style: { padding: 24, textAlign:
|
|
7618
|
-
|
|
7671
|
+
"div",
|
|
7672
|
+
{ style: { padding: 24, textAlign: "center" } },
|
|
7673
|
+
"Are you sure you want to delete",
|
|
7619
7674
|
_react2.default.createElement(
|
|
7620
|
-
|
|
7675
|
+
"strong",
|
|
7621
7676
|
null,
|
|
7622
|
-
|
|
7677
|
+
" ",
|
|
7623
7678
|
deleteModalOpenFile
|
|
7624
7679
|
),
|
|
7625
|
-
|
|
7680
|
+
"?"
|
|
7626
7681
|
)
|
|
7627
7682
|
)
|
|
7628
7683
|
);
|
|
@@ -7634,10 +7689,10 @@ module.exports =
|
|
|
7634
7689
|
|
|
7635
7690
|
var UploadIcon = function UploadIcon() {
|
|
7636
7691
|
return _react2.default.createElement(
|
|
7637
|
-
|
|
7638
|
-
{ fill:
|
|
7639
|
-
_react2.default.createElement(
|
|
7640
|
-
_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" })
|
|
7641
7696
|
);
|
|
7642
7697
|
};
|
|
7643
7698
|
|