@plusscommunities/pluss-core-web 1.4.35-auth.0 → 1.4.36-auth.0
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/dist/index.cjs.js +13 -5
- package/dist/index.esm.js +13 -5
- package/dist/index.umd.js +13 -5
- package/package.json +1 -1
- package/src/helper/files/get1400.js +4 -0
- package/src/helper/files/getThumb300.js +4 -0
package/dist/index.cjs.js
CHANGED
|
@@ -798,11 +798,20 @@ var getExtension = function getExtension(url) {
|
|
|
798
798
|
return fileSplit[fileSplit.length - 1].toLowerCase();
|
|
799
799
|
};
|
|
800
800
|
|
|
801
|
+
var isVideo = function isVideo(url) {
|
|
802
|
+
var extension = getExtension(url);
|
|
803
|
+
return ['mov', 'mp4'].includes(extension);
|
|
804
|
+
};
|
|
805
|
+
|
|
801
806
|
var get1400 = function get1400(url) {
|
|
802
807
|
if (!url) {
|
|
803
808
|
return url;
|
|
804
809
|
}
|
|
805
810
|
|
|
811
|
+
if (isVideo(url)) {
|
|
812
|
+
return 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/9d0bbec64614b1ed654a03f7e7/movie.jpg';
|
|
813
|
+
}
|
|
814
|
+
|
|
806
815
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
807
816
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
808
817
|
}
|
|
@@ -858,6 +867,10 @@ var getThumb300 = function getThumb300(url) {
|
|
|
858
867
|
return url;
|
|
859
868
|
}
|
|
860
869
|
|
|
870
|
+
if (isVideo(url)) {
|
|
871
|
+
return 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/9d0bbec64614b1ed654a03f7e7/movie.jpg';
|
|
872
|
+
}
|
|
873
|
+
|
|
861
874
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
862
875
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
863
876
|
}
|
|
@@ -884,11 +897,6 @@ var getThumb300 = function getThumb300(url) {
|
|
|
884
897
|
return url;
|
|
885
898
|
};
|
|
886
899
|
|
|
887
|
-
var isVideo = function isVideo(url) {
|
|
888
|
-
var extension = getExtension(url);
|
|
889
|
-
return ['mov', 'mp4'].includes(extension);
|
|
890
|
-
};
|
|
891
|
-
|
|
892
900
|
var getFirstName = function getFirstName(string) {
|
|
893
901
|
if (___default['default'].isEmpty(string)) {
|
|
894
902
|
return '';
|
package/dist/index.esm.js
CHANGED
|
@@ -768,11 +768,20 @@ var getExtension = function getExtension(url) {
|
|
|
768
768
|
return fileSplit[fileSplit.length - 1].toLowerCase();
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
+
var isVideo = function isVideo(url) {
|
|
772
|
+
var extension = getExtension(url);
|
|
773
|
+
return ['mov', 'mp4'].includes(extension);
|
|
774
|
+
};
|
|
775
|
+
|
|
771
776
|
var get1400 = function get1400(url) {
|
|
772
777
|
if (!url) {
|
|
773
778
|
return url;
|
|
774
779
|
}
|
|
775
780
|
|
|
781
|
+
if (isVideo(url)) {
|
|
782
|
+
return 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/9d0bbec64614b1ed654a03f7e7/movie.jpg';
|
|
783
|
+
}
|
|
784
|
+
|
|
776
785
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
777
786
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
778
787
|
}
|
|
@@ -828,6 +837,10 @@ var getThumb300 = function getThumb300(url) {
|
|
|
828
837
|
return url;
|
|
829
838
|
}
|
|
830
839
|
|
|
840
|
+
if (isVideo(url)) {
|
|
841
|
+
return 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/9d0bbec64614b1ed654a03f7e7/movie.jpg';
|
|
842
|
+
}
|
|
843
|
+
|
|
831
844
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
832
845
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
833
846
|
}
|
|
@@ -854,11 +867,6 @@ var getThumb300 = function getThumb300(url) {
|
|
|
854
867
|
return url;
|
|
855
868
|
};
|
|
856
869
|
|
|
857
|
-
var isVideo = function isVideo(url) {
|
|
858
|
-
var extension = getExtension(url);
|
|
859
|
-
return ['mov', 'mp4'].includes(extension);
|
|
860
|
-
};
|
|
861
|
-
|
|
862
870
|
var getFirstName = function getFirstName(string) {
|
|
863
871
|
if (_.isEmpty(string)) {
|
|
864
872
|
return '';
|
package/dist/index.umd.js
CHANGED
|
@@ -766,11 +766,20 @@
|
|
|
766
766
|
return fileSplit[fileSplit.length - 1].toLowerCase();
|
|
767
767
|
};
|
|
768
768
|
|
|
769
|
+
var isVideo = function isVideo(url) {
|
|
770
|
+
var extension = getExtension(url);
|
|
771
|
+
return ['mov', 'mp4'].includes(extension);
|
|
772
|
+
};
|
|
773
|
+
|
|
769
774
|
var get1400 = function get1400(url) {
|
|
770
775
|
if (!url) {
|
|
771
776
|
return url;
|
|
772
777
|
}
|
|
773
778
|
|
|
779
|
+
if (isVideo(url)) {
|
|
780
|
+
return 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/9d0bbec64614b1ed654a03f7e7/movie.jpg';
|
|
781
|
+
}
|
|
782
|
+
|
|
774
783
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
775
784
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
776
785
|
}
|
|
@@ -826,6 +835,10 @@
|
|
|
826
835
|
return url;
|
|
827
836
|
}
|
|
828
837
|
|
|
838
|
+
if (isVideo(url)) {
|
|
839
|
+
return 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/9d0bbec64614b1ed654a03f7e7/movie.jpg';
|
|
840
|
+
}
|
|
841
|
+
|
|
829
842
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
830
843
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
831
844
|
}
|
|
@@ -852,11 +865,6 @@
|
|
|
852
865
|
return url;
|
|
853
866
|
};
|
|
854
867
|
|
|
855
|
-
var isVideo = function isVideo(url) {
|
|
856
|
-
var extension = getExtension(url);
|
|
857
|
-
return ['mov', 'mp4'].includes(extension);
|
|
858
|
-
};
|
|
859
|
-
|
|
860
868
|
var getFirstName = function getFirstName(string) {
|
|
861
869
|
if (___default['default'].isEmpty(string)) {
|
|
862
870
|
return '';
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import Config from '../../config';
|
|
2
2
|
import getExtension from './getExtension';
|
|
3
|
+
import isVideo from './isVideo';
|
|
3
4
|
|
|
4
5
|
const get1400 = (url) => {
|
|
5
6
|
if (!url) {
|
|
6
7
|
return url;
|
|
7
8
|
}
|
|
9
|
+
if (isVideo(url)) {
|
|
10
|
+
return 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/9d0bbec64614b1ed654a03f7e7/movie.jpg';
|
|
11
|
+
}
|
|
8
12
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
9
13
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
10
14
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import Config from '../../config';
|
|
2
2
|
import getExtension from './getExtension';
|
|
3
|
+
import isVideo from './isVideo';
|
|
3
4
|
|
|
4
5
|
const getThumb300 = (url) => {
|
|
5
6
|
if (!url) {
|
|
6
7
|
return url;
|
|
7
8
|
}
|
|
9
|
+
if (isVideo(url)) {
|
|
10
|
+
return 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/9d0bbec64614b1ed654a03f7e7/movie.jpg';
|
|
11
|
+
}
|
|
8
12
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
9
13
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
10
14
|
}
|