tnx-shared 5.8.2 → 5.8.4

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.
@@ -36742,9 +36742,9 @@
36742
36742
  else if (element.extension.toUpperCase() == '.MP4' || element.extension.toUpperCase() == '.AVI' || element.extension.toUpperCase() == '.MOV' || element.extension.toUpperCase() == '.WMV' || element.extension.toUpperCase() == '.FLV') {
36743
36743
  result = '<div style="width:100%; margin-bottom: 15px"><video style="display: block;margin-left: auto;margin-right: auto;" width="500" height="auto" controls><source src="' + this._fileObjectService.endPoint + '/v5/FileObject/public/' + element.id + '/download" type="video/mp4"></video></div>';
36744
36744
  }
36745
- else if (element.extension.toUpperCase() == '.PDF') {
36746
- result = '<div style="width:100%; margin-bottom: 15px"><iframe style="aspect-ratio: 9/16;"" src="' + this._fileObjectService.endPoint + '/v5/FileObject/public/' + element.id + '/download" width="100%"></iframe></div>';
36747
- }
36745
+ // else if (element.extension.toUpperCase() == '.PDF') {
36746
+ // result = '<div style="width:100%; margin-bottom: 15px"><iframe style="aspect-ratio: 9/16;"" src="' + this._fileObjectService.endPoint + '/v5/FileObject/public/' + element.id + '/download" width="100%"></iframe></div>';
36747
+ // }
36748
36748
  else {
36749
36749
  result = '<a style="width:100%; margin-bottom: 15px" href="' + this._fileObjectService.endPoint + '/v5/FileObject/public/' + element.id + '/download">' + element.name + '</a>';
36750
36750
  }
@@ -60464,7 +60464,7 @@
60464
60464
  }
60465
60465
  _a.label = 4;
60466
60466
  case 4:
60467
- pastedData = p1 + '<img src=' + imageUploaded[i] + '/>' + p2;
60467
+ pastedData = p1 + '<img src="' + imageUploaded[i] + '"/>' + p2;
60468
60468
  index = pastedData.indexOf('<v:imagedata ');
60469
60469
  i++;
60470
60470
  _a.label = 5;
@@ -60507,7 +60507,7 @@
60507
60507
  case 17:
60508
60508
  uploadImage = _b.sent();
60509
60509
  if (typeof uploadImage == 'string') {
60510
- result += '<img src=' + this._fileObjectService.getUrlImage(uploadImage) + '/>';
60510
+ result += '<img src="' + this._fileObjectService.getUrlImage(uploadImage) + '"/>';
60511
60511
  }
60512
60512
  else {
60513
60513
  this._notifierService.showWarning('Upload file thất bại');