@plusscommunities/pluss-core-web 1.4.33-beta.0 → 1.4.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/dist/index.cjs.js +18 -9
- package/dist/index.esm.js +18 -9
- package/dist/index.umd.js +18 -9
- package/package.json +2 -4
- package/src/components/AudienceSelector.js +1 -1
- package/src/components/FileInput.js +1 -1
- package/src/components/ImageInput.js +2 -1
- package/src/config.js +2 -1
- package/src/helper/files/get1400.js +4 -0
- package/src/helper/files/getThumb300.js +4 -0
package/dist/index.cjs.js
CHANGED
|
@@ -72,7 +72,7 @@ var CoreConfig = {
|
|
|
72
72
|
colourBrandingMain: '',
|
|
73
73
|
colourBrandingOff: '',
|
|
74
74
|
colourBrandingApp: '',
|
|
75
|
-
defaultProfileImage: 'https://s3
|
|
75
|
+
defaultProfileImage: 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/3d2433c6419383beb1078036b7/tinydefaultprofile.png',
|
|
76
76
|
utcOffset: '',
|
|
77
77
|
hasAvailableNews: false,
|
|
78
78
|
newsHaveTags: true,
|
|
@@ -733,11 +733,20 @@ var getExtension = function getExtension(url) {
|
|
|
733
733
|
return fileSplit[fileSplit.length - 1].toLowerCase();
|
|
734
734
|
};
|
|
735
735
|
|
|
736
|
+
var isVideo = function isVideo(url) {
|
|
737
|
+
var extension = getExtension(url);
|
|
738
|
+
return ['mov', 'mp4'].includes(extension);
|
|
739
|
+
};
|
|
740
|
+
|
|
736
741
|
var get1400 = function get1400(url) {
|
|
737
742
|
if (!url) {
|
|
738
743
|
return url;
|
|
739
744
|
}
|
|
740
745
|
|
|
746
|
+
if (isVideo(url)) {
|
|
747
|
+
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';
|
|
748
|
+
}
|
|
749
|
+
|
|
741
750
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
742
751
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
743
752
|
}
|
|
@@ -793,6 +802,10 @@ var getThumb300 = function getThumb300(url) {
|
|
|
793
802
|
return url;
|
|
794
803
|
}
|
|
795
804
|
|
|
805
|
+
if (isVideo(url)) {
|
|
806
|
+
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';
|
|
807
|
+
}
|
|
808
|
+
|
|
796
809
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
797
810
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
798
811
|
}
|
|
@@ -819,11 +832,6 @@ var getThumb300 = function getThumb300(url) {
|
|
|
819
832
|
return url;
|
|
820
833
|
};
|
|
821
834
|
|
|
822
|
-
var isVideo = function isVideo(url) {
|
|
823
|
-
var extension = getExtension(url);
|
|
824
|
-
return ['mov', 'mp4'].includes(extension);
|
|
825
|
-
};
|
|
826
|
-
|
|
827
835
|
var getFirstName = function getFirstName(string) {
|
|
828
836
|
if (___default['default'].isEmpty(string)) {
|
|
829
837
|
return '';
|
|
@@ -5191,7 +5199,7 @@ var mapStateToProps$5 = function mapStateToProps() {
|
|
|
5191
5199
|
};
|
|
5192
5200
|
|
|
5193
5201
|
var FileInput = reactRedux.connect(mapStateToProps$5, {}, null, {
|
|
5194
|
-
|
|
5202
|
+
withRef: true
|
|
5195
5203
|
})(FileInputComponent);
|
|
5196
5204
|
|
|
5197
5205
|
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -6900,6 +6908,7 @@ var ImageInputComponent = /*#__PURE__*/function (_Component) {
|
|
|
6900
6908
|
value: function renderLibraryImage(image, index, allowDelete) {
|
|
6901
6909
|
var _this7 = this;
|
|
6902
6910
|
|
|
6911
|
+
console.log(image);
|
|
6903
6912
|
var classes = 'imageInput imageInput-hasImage imageInput-libraryImage';
|
|
6904
6913
|
|
|
6905
6914
|
if (image.Selected) {
|
|
@@ -7298,7 +7307,7 @@ var mapStateToProps$2 = function mapStateToProps(state) {
|
|
|
7298
7307
|
};
|
|
7299
7308
|
|
|
7300
7309
|
var ImageInput = reactRedux.connect(mapStateToProps$2, {}, null, {
|
|
7301
|
-
|
|
7310
|
+
withRef: true
|
|
7302
7311
|
})(ImageInputComponent);
|
|
7303
7312
|
|
|
7304
7313
|
function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }
|
|
@@ -9903,7 +9912,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9903
9912
|
var toExport = reactRedux.connect(null, {
|
|
9904
9913
|
setAuth: setAuth
|
|
9905
9914
|
}, null, {
|
|
9906
|
-
|
|
9915
|
+
withRef: true
|
|
9907
9916
|
})(AudienceSelector);
|
|
9908
9917
|
|
|
9909
9918
|
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }
|
package/dist/index.esm.js
CHANGED
|
@@ -42,7 +42,7 @@ var CoreConfig = {
|
|
|
42
42
|
colourBrandingMain: '',
|
|
43
43
|
colourBrandingOff: '',
|
|
44
44
|
colourBrandingApp: '',
|
|
45
|
-
defaultProfileImage: 'https://s3
|
|
45
|
+
defaultProfileImage: 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/3d2433c6419383beb1078036b7/tinydefaultprofile.png',
|
|
46
46
|
utcOffset: '',
|
|
47
47
|
hasAvailableNews: false,
|
|
48
48
|
newsHaveTags: true,
|
|
@@ -703,11 +703,20 @@ var getExtension = function getExtension(url) {
|
|
|
703
703
|
return fileSplit[fileSplit.length - 1].toLowerCase();
|
|
704
704
|
};
|
|
705
705
|
|
|
706
|
+
var isVideo = function isVideo(url) {
|
|
707
|
+
var extension = getExtension(url);
|
|
708
|
+
return ['mov', 'mp4'].includes(extension);
|
|
709
|
+
};
|
|
710
|
+
|
|
706
711
|
var get1400 = function get1400(url) {
|
|
707
712
|
if (!url) {
|
|
708
713
|
return url;
|
|
709
714
|
}
|
|
710
715
|
|
|
716
|
+
if (isVideo(url)) {
|
|
717
|
+
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';
|
|
718
|
+
}
|
|
719
|
+
|
|
711
720
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
712
721
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
713
722
|
}
|
|
@@ -763,6 +772,10 @@ var getThumb300 = function getThumb300(url) {
|
|
|
763
772
|
return url;
|
|
764
773
|
}
|
|
765
774
|
|
|
775
|
+
if (isVideo(url)) {
|
|
776
|
+
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';
|
|
777
|
+
}
|
|
778
|
+
|
|
766
779
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
767
780
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
768
781
|
}
|
|
@@ -789,11 +802,6 @@ var getThumb300 = function getThumb300(url) {
|
|
|
789
802
|
return url;
|
|
790
803
|
};
|
|
791
804
|
|
|
792
|
-
var isVideo = function isVideo(url) {
|
|
793
|
-
var extension = getExtension(url);
|
|
794
|
-
return ['mov', 'mp4'].includes(extension);
|
|
795
|
-
};
|
|
796
|
-
|
|
797
805
|
var getFirstName = function getFirstName(string) {
|
|
798
806
|
if (_.isEmpty(string)) {
|
|
799
807
|
return '';
|
|
@@ -5161,7 +5169,7 @@ var mapStateToProps$5 = function mapStateToProps() {
|
|
|
5161
5169
|
};
|
|
5162
5170
|
|
|
5163
5171
|
var FileInput = connect(mapStateToProps$5, {}, null, {
|
|
5164
|
-
|
|
5172
|
+
withRef: true
|
|
5165
5173
|
})(FileInputComponent);
|
|
5166
5174
|
|
|
5167
5175
|
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -6870,6 +6878,7 @@ var ImageInputComponent = /*#__PURE__*/function (_Component) {
|
|
|
6870
6878
|
value: function renderLibraryImage(image, index, allowDelete) {
|
|
6871
6879
|
var _this7 = this;
|
|
6872
6880
|
|
|
6881
|
+
console.log(image);
|
|
6873
6882
|
var classes = 'imageInput imageInput-hasImage imageInput-libraryImage';
|
|
6874
6883
|
|
|
6875
6884
|
if (image.Selected) {
|
|
@@ -7268,7 +7277,7 @@ var mapStateToProps$2 = function mapStateToProps(state) {
|
|
|
7268
7277
|
};
|
|
7269
7278
|
|
|
7270
7279
|
var ImageInput = connect(mapStateToProps$2, {}, null, {
|
|
7271
|
-
|
|
7280
|
+
withRef: true
|
|
7272
7281
|
})(ImageInputComponent);
|
|
7273
7282
|
|
|
7274
7283
|
function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -9873,7 +9882,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9873
9882
|
var toExport = connect(null, {
|
|
9874
9883
|
setAuth: setAuth
|
|
9875
9884
|
}, null, {
|
|
9876
|
-
|
|
9885
|
+
withRef: true
|
|
9877
9886
|
})(AudienceSelector);
|
|
9878
9887
|
|
|
9879
9888
|
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
package/dist/index.umd.js
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
colourBrandingMain: '',
|
|
41
41
|
colourBrandingOff: '',
|
|
42
42
|
colourBrandingApp: '',
|
|
43
|
-
defaultProfileImage: 'https://s3
|
|
43
|
+
defaultProfileImage: 'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/3d2433c6419383beb1078036b7/tinydefaultprofile.png',
|
|
44
44
|
utcOffset: '',
|
|
45
45
|
hasAvailableNews: false,
|
|
46
46
|
newsHaveTags: true,
|
|
@@ -701,11 +701,20 @@
|
|
|
701
701
|
return fileSplit[fileSplit.length - 1].toLowerCase();
|
|
702
702
|
};
|
|
703
703
|
|
|
704
|
+
var isVideo = function isVideo(url) {
|
|
705
|
+
var extension = getExtension(url);
|
|
706
|
+
return ['mov', 'mp4'].includes(extension);
|
|
707
|
+
};
|
|
708
|
+
|
|
704
709
|
var get1400 = function get1400(url) {
|
|
705
710
|
if (!url) {
|
|
706
711
|
return url;
|
|
707
712
|
}
|
|
708
713
|
|
|
714
|
+
if (isVideo(url)) {
|
|
715
|
+
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';
|
|
716
|
+
}
|
|
717
|
+
|
|
709
718
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
710
719
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
711
720
|
}
|
|
@@ -761,6 +770,10 @@
|
|
|
761
770
|
return url;
|
|
762
771
|
}
|
|
763
772
|
|
|
773
|
+
if (isVideo(url)) {
|
|
774
|
+
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';
|
|
775
|
+
}
|
|
776
|
+
|
|
764
777
|
if (url.indexOf('https://plussprdstorage.blob.core.windows.net/') !== -1) {
|
|
765
778
|
return url.replace('https://plussprdstorage.blob.core.windows.net/', 'https://plusscdn.azureedge.net/');
|
|
766
779
|
}
|
|
@@ -787,11 +800,6 @@
|
|
|
787
800
|
return url;
|
|
788
801
|
};
|
|
789
802
|
|
|
790
|
-
var isVideo = function isVideo(url) {
|
|
791
|
-
var extension = getExtension(url);
|
|
792
|
-
return ['mov', 'mp4'].includes(extension);
|
|
793
|
-
};
|
|
794
|
-
|
|
795
803
|
var getFirstName = function getFirstName(string) {
|
|
796
804
|
if (___default['default'].isEmpty(string)) {
|
|
797
805
|
return '';
|
|
@@ -5159,7 +5167,7 @@
|
|
|
5159
5167
|
};
|
|
5160
5168
|
|
|
5161
5169
|
var FileInput = reactRedux.connect(mapStateToProps$5, {}, null, {
|
|
5162
|
-
|
|
5170
|
+
withRef: true
|
|
5163
5171
|
})(FileInputComponent);
|
|
5164
5172
|
|
|
5165
5173
|
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -6868,6 +6876,7 @@
|
|
|
6868
6876
|
value: function renderLibraryImage(image, index, allowDelete) {
|
|
6869
6877
|
var _this7 = this;
|
|
6870
6878
|
|
|
6879
|
+
console.log(image);
|
|
6871
6880
|
var classes = 'imageInput imageInput-hasImage imageInput-libraryImage';
|
|
6872
6881
|
|
|
6873
6882
|
if (image.Selected) {
|
|
@@ -7266,7 +7275,7 @@
|
|
|
7266
7275
|
};
|
|
7267
7276
|
|
|
7268
7277
|
var ImageInput = reactRedux.connect(mapStateToProps$2, {}, null, {
|
|
7269
|
-
|
|
7278
|
+
withRef: true
|
|
7270
7279
|
})(ImageInputComponent);
|
|
7271
7280
|
|
|
7272
7281
|
function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }
|
|
@@ -9871,7 +9880,7 @@
|
|
|
9871
9880
|
var toExport = reactRedux.connect(null, {
|
|
9872
9881
|
setAuth: setAuth
|
|
9873
9882
|
}, null, {
|
|
9874
|
-
|
|
9883
|
+
withRef: true
|
|
9875
9884
|
})(AudienceSelector);
|
|
9876
9885
|
|
|
9877
9886
|
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-core-web",
|
|
3
|
-
"version": "1.4.33
|
|
3
|
+
"version": "1.4.33",
|
|
4
4
|
"description": "Core extension package for Pluss Communities platform",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,11 +39,9 @@
|
|
|
39
39
|
"react": "^16.14.0",
|
|
40
40
|
"react-dropzone": "^14.2.3",
|
|
41
41
|
"react-fontawesome": "^1.6.1",
|
|
42
|
+
"react-redux": "^5.0.6",
|
|
42
43
|
"react-router-dom": "^4.2.2",
|
|
43
44
|
"react-textarea-autosize": "^7.1.0-1"
|
|
44
45
|
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"react-redux": "^7.2.9"
|
|
47
|
-
},
|
|
48
46
|
"keywords": []
|
|
49
47
|
}
|
|
@@ -647,6 +647,6 @@ class AudienceSelector extends Component {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
const toExport = connect(null, { setAuth }, null, {
|
|
650
|
+
const toExport = connect(null, { setAuth }, null, { withRef: true })(AudienceSelector);
|
|
651
651
|
|
|
652
652
|
export { toExport as AudienceSelector };
|
|
@@ -329,5 +329,5 @@ const mapStateToProps = () => {
|
|
|
329
329
|
return {};
|
|
330
330
|
};
|
|
331
331
|
|
|
332
|
-
const FileInput = connect(mapStateToProps, {}, null, {
|
|
332
|
+
const FileInput = connect(mapStateToProps, {}, null, { withRef: true })(FileInputComponent);
|
|
333
333
|
export { FileInput };
|
|
@@ -626,6 +626,7 @@ class ImageInputComponent extends Component {
|
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
renderLibraryImage(image, index, allowDelete) {
|
|
629
|
+
console.log(image);
|
|
629
630
|
let classes = 'imageInput imageInput-hasImage imageInput-libraryImage';
|
|
630
631
|
if (image.Selected) {
|
|
631
632
|
classes += ' imageInput-librarySelected';
|
|
@@ -983,5 +984,5 @@ const mapStateToProps = (state) => {
|
|
|
983
984
|
};
|
|
984
985
|
};
|
|
985
986
|
|
|
986
|
-
const ImageInput = connect(mapStateToProps, {}, null, {
|
|
987
|
+
const ImageInput = connect(mapStateToProps, {}, null, { withRef: true })(ImageInputComponent);
|
|
987
988
|
export { ImageInput };
|
package/src/config.js
CHANGED
|
@@ -8,7 +8,8 @@ const CoreConfig = {
|
|
|
8
8
|
colourBrandingMain: '',
|
|
9
9
|
colourBrandingOff: '',
|
|
10
10
|
colourBrandingApp: '',
|
|
11
|
-
defaultProfileImage:
|
|
11
|
+
defaultProfileImage:
|
|
12
|
+
'https://pluss60-demo-uploads.s3.ap-southeast-2.amazonaws.com/uploads/users/ap-southeast-2:97769b56-25ec-41c0-a73c-6c2c4140f629/public/3d2433c6419383beb1078036b7/tinydefaultprofile.png',
|
|
12
13
|
utcOffset: '',
|
|
13
14
|
hasAvailableNews: false,
|
|
14
15
|
newsHaveTags: true,
|
|
@@ -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
|
}
|