@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
|
@@ -5348,7 +5348,7 @@ module.exports =
|
|
|
5348
5348
|
/* 69 */
|
|
5349
5349
|
/***/ function(module, exports, __webpack_require__) {
|
|
5350
5350
|
|
|
5351
|
-
|
|
5351
|
+
"use strict";
|
|
5352
5352
|
|
|
5353
5353
|
Object.defineProperty(exports, "__esModule", {
|
|
5354
5354
|
value: true
|
|
@@ -5391,13 +5391,15 @@ module.exports =
|
|
|
5391
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; }
|
|
5392
5392
|
|
|
5393
5393
|
function formatBytes(a, b) {
|
|
5394
|
-
if (0 === a) return "0 Bytes";
|
|
5394
|
+
if (0 === a) return "0 Bytes";
|
|
5395
|
+
var c = 1024,
|
|
5395
5396
|
d = b || 2,
|
|
5396
5397
|
e = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
|
|
5397
|
-
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];
|
|
5398
5400
|
}
|
|
5399
5401
|
|
|
5400
|
-
var extensionBlacklist = [
|
|
5402
|
+
var extensionBlacklist = ["zip", "tar", "gz"];
|
|
5401
5403
|
|
|
5402
5404
|
var FlatFile = function (_Component) {
|
|
5403
5405
|
_inherits(FlatFile, _Component);
|
|
@@ -5413,7 +5415,7 @@ module.exports =
|
|
|
5413
5415
|
try {
|
|
5414
5416
|
json = JSON.parse(content);
|
|
5415
5417
|
} catch (err) {
|
|
5416
|
-
console.log(
|
|
5418
|
+
console.log("err when trying to parse json = " + err);
|
|
5417
5419
|
}
|
|
5418
5420
|
if (json) {
|
|
5419
5421
|
var fields = [];
|
|
@@ -5432,7 +5434,7 @@ module.exports =
|
|
|
5432
5434
|
});
|
|
5433
5435
|
var meta = {
|
|
5434
5436
|
name: file.name,
|
|
5435
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
5437
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
5436
5438
|
byteSize: file.size,
|
|
5437
5439
|
properties: fields
|
|
5438
5440
|
};
|
|
@@ -5441,13 +5443,13 @@ module.exports =
|
|
|
5441
5443
|
};
|
|
5442
5444
|
|
|
5443
5445
|
_this.parseJsonLines = function (content) {
|
|
5444
|
-
var firstLine = content.substring(0, content.indexOf(
|
|
5445
|
-
return
|
|
5446
|
+
var firstLine = content.substring(0, content.indexOf("\n"));
|
|
5447
|
+
return "[" + firstLine + "]";
|
|
5446
5448
|
};
|
|
5447
5449
|
|
|
5448
5450
|
_this.parseCSV = function (file, csv, isXLS) {
|
|
5449
5451
|
if (isXLS && (!csv || csv === null)) {
|
|
5450
|
-
var err =
|
|
5452
|
+
var err = "Remove empty sheets- " + file.name;
|
|
5451
5453
|
alert(err);
|
|
5452
5454
|
throw new Error(err);
|
|
5453
5455
|
} else {
|
|
@@ -5458,7 +5460,7 @@ module.exports =
|
|
|
5458
5460
|
complete: function complete(result) {
|
|
5459
5461
|
resolve({
|
|
5460
5462
|
name: file.name,
|
|
5461
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
5463
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
5462
5464
|
byteSize: file.size,
|
|
5463
5465
|
properties: result.meta.fields.map(function (f) {
|
|
5464
5466
|
return {
|
|
@@ -5484,13 +5486,12 @@ module.exports =
|
|
|
5484
5486
|
var fileContents = [].concat(_toConsumableArray(_this.state.fileContents));
|
|
5485
5487
|
var contentCounter = 0;
|
|
5486
5488
|
fs.forEach(function (file) {
|
|
5487
|
-
var extension = file.name.substr(file.name.lastIndexOf(
|
|
5489
|
+
var extension = file.name.substr(file.name.lastIndexOf(".") + 1, file.name.length);
|
|
5488
5490
|
var blacklisted = extensionBlacklist.includes(extension);
|
|
5489
5491
|
if (!blacklisted) {
|
|
5490
|
-
var isXLS = extension ===
|
|
5492
|
+
var isXLS = extension === "xlsx" || extension === "xls";
|
|
5491
5493
|
var reader = new FileReader();
|
|
5492
5494
|
reader.onload = function (e) {
|
|
5493
|
-
|
|
5494
5495
|
// PARSE METADATA
|
|
5495
5496
|
var data = e.target.result;
|
|
5496
5497
|
var csv = null;
|
|
@@ -5501,9 +5502,9 @@ module.exports =
|
|
|
5501
5502
|
for (var i = 0; i < length; i++) {
|
|
5502
5503
|
binary += String.fromCharCode(bytes[i]);
|
|
5503
5504
|
}*/
|
|
5504
|
-
var workbook = _xlsx2.default.read(binary, { type:
|
|
5505
|
+
var workbook = _xlsx2.default.read(binary, { type: "binary" });
|
|
5505
5506
|
var sheetNames = workbook.SheetNames.filter(function (sn) {
|
|
5506
|
-
return sn !==
|
|
5507
|
+
return sn !== "Export Summary";
|
|
5507
5508
|
});
|
|
5508
5509
|
sheetNames.forEach(function (sn) {
|
|
5509
5510
|
csv = _xlsx2.default.utils.sheet_to_csv(workbook.Sheets[sn]);
|
|
@@ -5520,7 +5521,7 @@ module.exports =
|
|
|
5520
5521
|
}
|
|
5521
5522
|
});
|
|
5522
5523
|
});
|
|
5523
|
-
} else if (extension ===
|
|
5524
|
+
} else if (extension === "csv") {
|
|
5524
5525
|
_this.parseCSV(file, csv, null).then(function (csvMeta) {
|
|
5525
5526
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
5526
5527
|
counter += 1;
|
|
@@ -5529,9 +5530,9 @@ module.exports =
|
|
|
5529
5530
|
_this.props.onDrop();
|
|
5530
5531
|
}
|
|
5531
5532
|
});
|
|
5532
|
-
} else if (extension ===
|
|
5533
|
+
} else if (extension === "json" || extension === "jsonl") {
|
|
5533
5534
|
var d = data;
|
|
5534
|
-
if (extension ===
|
|
5535
|
+
if (extension === "jsonl") {
|
|
5535
5536
|
d = _this.parseJsonLines(data);
|
|
5536
5537
|
}
|
|
5537
5538
|
var fileMeta = _this.parseJsonFile(d, file);
|
|
@@ -5540,13 +5541,13 @@ module.exports =
|
|
|
5540
5541
|
counter += 1;
|
|
5541
5542
|
if (counter === fs.length) {
|
|
5542
5543
|
_this.setState({ meta: meta });
|
|
5543
|
-
|
|
5544
|
+
// this.props.onDrop();
|
|
5544
5545
|
}
|
|
5545
5546
|
}
|
|
5546
|
-
} else if (extension ===
|
|
5547
|
+
} else if (extension === "txt" || extension === "xml" || extension === "hdr") {
|
|
5547
5548
|
var csvMeta = {
|
|
5548
5549
|
name: file.name,
|
|
5549
|
-
type: file.name.substr(0, file.name.lastIndexOf(
|
|
5550
|
+
type: file.name.substr(0, file.name.lastIndexOf(".")).split(" ").join(""),
|
|
5550
5551
|
byteSize: file.size
|
|
5551
5552
|
};
|
|
5552
5553
|
meta = meta.concat(Object.assign({}, csvMeta, { fileType: extension }));
|
|
@@ -5571,7 +5572,7 @@ module.exports =
|
|
|
5571
5572
|
reader.readAsText(file);
|
|
5572
5573
|
}
|
|
5573
5574
|
} else {
|
|
5574
|
-
_this.setState({ dropError:
|
|
5575
|
+
_this.setState({ dropError: "File type not accepted." });
|
|
5575
5576
|
setTimeout(function () {
|
|
5576
5577
|
_this.setState({ dropError: null });
|
|
5577
5578
|
}, 3500);
|
|
@@ -5580,7 +5581,7 @@ module.exports =
|
|
|
5580
5581
|
};
|
|
5581
5582
|
|
|
5582
5583
|
_this.onReject = function () {
|
|
5583
|
-
_this.setState({ dropError:
|
|
5584
|
+
_this.setState({ dropError: "File is too big!" });
|
|
5584
5585
|
setTimeout(function () {
|
|
5585
5586
|
_this.setState({ dropError: null });
|
|
5586
5587
|
}, 3500);
|
|
@@ -5621,7 +5622,7 @@ module.exports =
|
|
|
5621
5622
|
fileContents: [],
|
|
5622
5623
|
uploading: false,
|
|
5623
5624
|
dropError: null,
|
|
5624
|
-
sortFileTableBy:
|
|
5625
|
+
sortFileTableBy: "uploadedTime", // name, byteSize, uploadedTime
|
|
5625
5626
|
isDeletingFile: null,
|
|
5626
5627
|
deleteModalOpen: false
|
|
5627
5628
|
};
|
|
@@ -5629,7 +5630,7 @@ module.exports =
|
|
|
5629
5630
|
}
|
|
5630
5631
|
|
|
5631
5632
|
_createClass(FlatFile, [{
|
|
5632
|
-
key:
|
|
5633
|
+
key: "render",
|
|
5633
5634
|
value: function render() {
|
|
5634
5635
|
var _this2 = this;
|
|
5635
5636
|
|
|
@@ -5658,7 +5659,7 @@ module.exports =
|
|
|
5658
5659
|
if (fileSchema && fileSchema.length) {
|
|
5659
5660
|
fileSchema = fileSchema.sort(function (a, b) {
|
|
5660
5661
|
var term = sortFileTableBy;
|
|
5661
|
-
if (term ===
|
|
5662
|
+
if (term === "uploadedTime") {
|
|
5662
5663
|
return a[term] < b[term];
|
|
5663
5664
|
}
|
|
5664
5665
|
return a[term] > b[term];
|
|
@@ -5675,71 +5676,105 @@ module.exports =
|
|
|
5675
5676
|
});
|
|
5676
5677
|
|
|
5677
5678
|
return _react2.default.createElement(
|
|
5678
|
-
|
|
5679
|
+
"div",
|
|
5679
5680
|
null,
|
|
5680
5681
|
_react2.default.createElement(
|
|
5681
|
-
|
|
5682
|
-
{ style: { display:
|
|
5682
|
+
"div",
|
|
5683
|
+
{ style: { display: "inline-block" } },
|
|
5683
5684
|
_react2.default.createElement(
|
|
5684
5685
|
_reactDropzone2.default,
|
|
5685
|
-
{
|
|
5686
|
-
|
|
5686
|
+
{
|
|
5687
|
+
onDropAccepted: this.onDrop,
|
|
5688
|
+
onDropRejected: this.onReject,
|
|
5689
|
+
className: "dropzone",
|
|
5690
|
+
maxSize: 1000000 * 1000 * 5 /*5 GB*/
|
|
5691
|
+
},
|
|
5687
5692
|
!dropError ? _react2.default.createElement(
|
|
5688
|
-
|
|
5693
|
+
"p",
|
|
5689
5694
|
null,
|
|
5690
|
-
|
|
5695
|
+
"Drop one or more files here, or click to select files to upload."
|
|
5691
5696
|
) : _react2.default.createElement(
|
|
5692
|
-
|
|
5693
|
-
{ style: { color:
|
|
5697
|
+
"p",
|
|
5698
|
+
{ style: { color: "#c9302c", fontWeight: "bold" } },
|
|
5694
5699
|
dropError
|
|
5695
5700
|
)
|
|
5696
5701
|
)
|
|
5697
5702
|
),
|
|
5698
5703
|
_react2.default.createElement(
|
|
5699
|
-
|
|
5700
|
-
{
|
|
5701
|
-
|
|
5704
|
+
"div",
|
|
5705
|
+
{
|
|
5706
|
+
style: {
|
|
5707
|
+
marginLeft: 30,
|
|
5708
|
+
display: "inline-block",
|
|
5709
|
+
verticalAlign: "top",
|
|
5710
|
+
maxWidth: "60%"
|
|
5711
|
+
}
|
|
5712
|
+
},
|
|
5702
5713
|
hasFile && _react2.default.createElement(
|
|
5703
|
-
|
|
5714
|
+
"aside",
|
|
5704
5715
|
null,
|
|
5705
5716
|
_react2.default.createElement(
|
|
5706
|
-
|
|
5717
|
+
"div",
|
|
5707
5718
|
null,
|
|
5708
5719
|
_react2.default.createElement(
|
|
5709
|
-
|
|
5710
|
-
{
|
|
5711
|
-
|
|
5720
|
+
"h3",
|
|
5721
|
+
{
|
|
5722
|
+
style: {
|
|
5723
|
+
marginTop: 10,
|
|
5724
|
+
display: "inline-block",
|
|
5725
|
+
verticalAlign: "top"
|
|
5726
|
+
}
|
|
5727
|
+
},
|
|
5728
|
+
"Dropped files"
|
|
5712
5729
|
),
|
|
5713
5730
|
_react2.default.createElement(
|
|
5714
5731
|
Button,
|
|
5715
5732
|
{
|
|
5716
|
-
type:
|
|
5733
|
+
type: "brand",
|
|
5717
5734
|
onClick: this.upload,
|
|
5718
|
-
style: {
|
|
5719
|
-
|
|
5735
|
+
style: {
|
|
5736
|
+
marginTop: 4,
|
|
5737
|
+
marginLeft: 20,
|
|
5738
|
+
verticalAlign: "top",
|
|
5739
|
+
height: 36
|
|
5740
|
+
},
|
|
5741
|
+
disabled: uploading
|
|
5742
|
+
},
|
|
5720
5743
|
_react2.default.createElement(
|
|
5721
|
-
|
|
5722
|
-
{
|
|
5723
|
-
|
|
5744
|
+
"span",
|
|
5745
|
+
{
|
|
5746
|
+
style: {
|
|
5747
|
+
display: "inline-block",
|
|
5748
|
+
verticalAlign: "top",
|
|
5749
|
+
marginTop: 3
|
|
5750
|
+
}
|
|
5751
|
+
},
|
|
5752
|
+
"Upload"
|
|
5724
5753
|
),
|
|
5725
|
-
|
|
5754
|
+
"\xA0\xA0",
|
|
5726
5755
|
_react2.default.createElement(UploadIcon, null)
|
|
5727
5756
|
),
|
|
5728
5757
|
uploading && _react2.default.createElement(
|
|
5729
|
-
|
|
5730
|
-
{
|
|
5758
|
+
"div",
|
|
5759
|
+
{
|
|
5760
|
+
style: {
|
|
5761
|
+
paddingLeft: 12,
|
|
5762
|
+
paddingTop: 12,
|
|
5763
|
+
display: "inline-block"
|
|
5764
|
+
}
|
|
5765
|
+
},
|
|
5731
5766
|
_react2.default.createElement(Spinner, null)
|
|
5732
5767
|
)
|
|
5733
5768
|
),
|
|
5734
5769
|
_react2.default.createElement(
|
|
5735
|
-
|
|
5770
|
+
"ul",
|
|
5736
5771
|
{ style: { padding: 0 } },
|
|
5737
5772
|
droppedFiles.map(function (f, i) {
|
|
5738
5773
|
return _react2.default.createElement(
|
|
5739
|
-
|
|
5740
|
-
{ key: i, style: { listStyle:
|
|
5774
|
+
"li",
|
|
5775
|
+
{ key: i, style: { listStyle: "none" } },
|
|
5741
5776
|
f.name,
|
|
5742
|
-
|
|
5777
|
+
" - ",
|
|
5743
5778
|
formatBytes(f.byteSize)
|
|
5744
5779
|
);
|
|
5745
5780
|
})
|
|
@@ -5747,124 +5782,144 @@ module.exports =
|
|
|
5747
5782
|
)
|
|
5748
5783
|
),
|
|
5749
5784
|
fileSchema && fileSchema.length > 0 && _react2.default.createElement(
|
|
5750
|
-
|
|
5751
|
-
{
|
|
5752
|
-
|
|
5753
|
-
|
|
5785
|
+
"div",
|
|
5786
|
+
{
|
|
5787
|
+
style: {
|
|
5788
|
+
marginTop: 20,
|
|
5789
|
+
width: "100%"
|
|
5790
|
+
}
|
|
5791
|
+
},
|
|
5754
5792
|
_react2.default.createElement(
|
|
5755
|
-
|
|
5793
|
+
"div",
|
|
5756
5794
|
{ style: { marginBottom: 4 } },
|
|
5757
5795
|
_react2.default.createElement(
|
|
5758
|
-
|
|
5796
|
+
"strong",
|
|
5759
5797
|
null,
|
|
5760
|
-
fileSchema.length +
|
|
5798
|
+
fileSchema.length + " file" + (fileSchema.length === 1 ? "" : "s")
|
|
5761
5799
|
),
|
|
5762
5800
|
_react2.default.createElement(
|
|
5763
|
-
|
|
5801
|
+
"strong",
|
|
5764
5802
|
null,
|
|
5765
|
-
|
|
5803
|
+
" uploaded"
|
|
5766
5804
|
)
|
|
5767
5805
|
),
|
|
5768
5806
|
_react2.default.createElement(
|
|
5769
|
-
|
|
5770
|
-
{
|
|
5807
|
+
"div",
|
|
5808
|
+
{ style: { height: 395, overflow: "auto" } },
|
|
5771
5809
|
_react2.default.createElement(
|
|
5772
|
-
|
|
5773
|
-
|
|
5810
|
+
_reactBootstrap.Table,
|
|
5811
|
+
{ bordered: true, condensed: true, className: "file-manager-table" },
|
|
5774
5812
|
_react2.default.createElement(
|
|
5775
|
-
|
|
5813
|
+
"thead",
|
|
5776
5814
|
null,
|
|
5777
5815
|
_react2.default.createElement(
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
return _this2.setState({ sortFileTableBy: 'name' });
|
|
5781
|
-
} },
|
|
5782
|
-
'Name'
|
|
5783
|
-
),
|
|
5784
|
-
_react2.default.createElement(
|
|
5785
|
-
'th',
|
|
5786
|
-
{ onClick: function onClick() {
|
|
5787
|
-
return _this2.setState({ sortFileTableBy: 'byteSize' });
|
|
5788
|
-
} },
|
|
5789
|
-
'Size'
|
|
5790
|
-
),
|
|
5791
|
-
_react2.default.createElement(
|
|
5792
|
-
'th',
|
|
5793
|
-
{ onClick: function onClick() {
|
|
5794
|
-
return _this2.setState({ sortFileTableBy: 'uploadedTime' });
|
|
5795
|
-
} },
|
|
5796
|
-
'Date uploaded'
|
|
5797
|
-
)
|
|
5798
|
-
)
|
|
5799
|
-
),
|
|
5800
|
-
_react2.default.createElement(
|
|
5801
|
-
'tbody',
|
|
5802
|
-
null,
|
|
5803
|
-
fileSchema.map(function (file, i) {
|
|
5804
|
-
return _react2.default.createElement(
|
|
5805
|
-
'tr',
|
|
5806
|
-
{ key: i },
|
|
5807
|
-
_react2.default.createElement(
|
|
5808
|
-
'td',
|
|
5809
|
-
null,
|
|
5810
|
-
_react2.default.createElement(
|
|
5811
|
-
'a',
|
|
5812
|
-
{ onClick: function onClick(e) {
|
|
5813
|
-
return _this2.downloadFile(e, file);
|
|
5814
|
-
} },
|
|
5815
|
-
file.name
|
|
5816
|
-
)
|
|
5817
|
-
),
|
|
5816
|
+
"tr",
|
|
5817
|
+
null,
|
|
5818
5818
|
_react2.default.createElement(
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5819
|
+
"th",
|
|
5820
|
+
{
|
|
5821
|
+
onClick: function onClick() {
|
|
5822
|
+
return _this2.setState({ sortFileTableBy: "name" });
|
|
5823
|
+
}
|
|
5824
|
+
},
|
|
5825
|
+
"Name"
|
|
5826
5826
|
),
|
|
5827
5827
|
_react2.default.createElement(
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5828
|
+
"th",
|
|
5829
|
+
{
|
|
5830
|
+
onClick: function onClick() {
|
|
5831
|
+
return _this2.setState({ sortFileTableBy: "byteSize" });
|
|
5832
|
+
}
|
|
5833
|
+
},
|
|
5834
|
+
"Size"
|
|
5831
5835
|
),
|
|
5832
5836
|
_react2.default.createElement(
|
|
5833
|
-
|
|
5834
|
-
{
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
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"
|
|
5840
5891
|
},
|
|
5841
|
-
|
|
5842
|
-
|
|
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
|
+
)
|
|
5843
5894
|
)
|
|
5844
|
-
)
|
|
5845
|
-
)
|
|
5846
|
-
|
|
5895
|
+
);
|
|
5896
|
+
})
|
|
5897
|
+
)
|
|
5847
5898
|
)
|
|
5848
5899
|
)
|
|
5849
5900
|
),
|
|
5850
5901
|
_react2.default.createElement(
|
|
5851
5902
|
Modal,
|
|
5852
|
-
{
|
|
5903
|
+
{
|
|
5904
|
+
opened: deleteModalOpenFile ? true : false,
|
|
5853
5905
|
hideModal: this.closeDeleteModal,
|
|
5854
5906
|
submitModal: this.actuallyDeleteFile,
|
|
5855
|
-
title:
|
|
5856
|
-
|
|
5907
|
+
title: "Delete File",
|
|
5908
|
+
danger: true,
|
|
5909
|
+
showCancel: true,
|
|
5910
|
+
submitLabel: "Delete"
|
|
5911
|
+
},
|
|
5857
5912
|
_react2.default.createElement(
|
|
5858
|
-
|
|
5859
|
-
{ style: { padding: 24, textAlign:
|
|
5860
|
-
|
|
5913
|
+
"div",
|
|
5914
|
+
{ style: { padding: 24, textAlign: "center" } },
|
|
5915
|
+
"Are you sure you want to delete",
|
|
5861
5916
|
_react2.default.createElement(
|
|
5862
|
-
|
|
5917
|
+
"strong",
|
|
5863
5918
|
null,
|
|
5864
|
-
|
|
5919
|
+
" ",
|
|
5865
5920
|
deleteModalOpenFile
|
|
5866
5921
|
),
|
|
5867
|
-
|
|
5922
|
+
"?"
|
|
5868
5923
|
)
|
|
5869
5924
|
)
|
|
5870
5925
|
);
|
|
@@ -5876,10 +5931,10 @@ module.exports =
|
|
|
5876
5931
|
|
|
5877
5932
|
var UploadIcon = function UploadIcon() {
|
|
5878
5933
|
return _react2.default.createElement(
|
|
5879
|
-
|
|
5880
|
-
{ fill:
|
|
5881
|
-
_react2.default.createElement(
|
|
5882
|
-
_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" })
|
|
5883
5938
|
);
|
|
5884
5939
|
};
|
|
5885
5940
|
|