quasar-ui-danx 0.3.32 → 0.3.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.3.32",
3
+ "version": "0.3.33",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -73,7 +73,8 @@ function isVideo(file) {
73
73
  }
74
74
 
75
75
  function getPreviewUrl(file) {
76
- return file.transcodes?.compress?.url || file.blobUrl || file.url;
76
+ const transcodes = file?.transcodes;
77
+ return transcodes?.mp4?.url || transcodes?.compress?.url || file.blobUrl || file.url;
77
78
  }
78
79
 
79
80
  function getThumbUrl(file) {
@@ -170,7 +170,6 @@ const isPdf = computed(() => !!mimeType.value.match(/^application\/pdf/));
170
170
  const previewUrl = computed(() => {
171
171
  const transcodes = computedImage.value?.transcodes;
172
172
 
173
- console.log("calc preview", transcodes, computedImage.value);
174
173
  if (isVideo.value && transcodes?.mp4?.url) {
175
174
  return transcodes.mp4.url;
176
175
  }