@adlfe/campaign-management-library 2.10.0 → 2.10.3
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/bundles/adlfe-campaign-management-library.umd.js +32 -7
- package/bundles/adlfe-campaign-management-library.umd.js.map +1 -1
- package/bundles/adlfe-campaign-management-library.umd.min.js +1 -1
- package/bundles/adlfe-campaign-management-library.umd.min.js.map +1 -1
- package/esm2015/environments/environment.js +31 -6
- package/esm2015/lib/campaign-management/modules/new-campaign/new-number-bases/new-number-bases.component.js +3 -3
- package/esm5/environments/environment.js +31 -6
- package/esm5/lib/campaign-management/modules/new-campaign/new-number-bases/new-number-bases.component.js +3 -3
- package/fesm2015/adlfe-campaign-management-library.js +32 -7
- package/fesm2015/adlfe-campaign-management-library.js.map +1 -1
- package/fesm5/adlfe-campaign-management-library.js +32 -7
- package/fesm5/adlfe-campaign-management-library.js.map +1 -1
- package/package.json +1 -1
|
@@ -820,17 +820,42 @@
|
|
|
820
820
|
return HttpBodyRespModel;
|
|
821
821
|
}());
|
|
822
822
|
|
|
823
|
+
// let API_CONST = '';
|
|
824
|
+
// if (location.origin.includes('dashboard.neuapix'))
|
|
825
|
+
// API_CONST = 'https://api.neuapix.com';
|
|
826
|
+
// else if (location.origin.includes('dashboard-staging.neuapix'))
|
|
827
|
+
// API_CONST = 'https://api-staging.neuapix.com';
|
|
828
|
+
// else if (location.origin.includes('dashboard-qa.adlsandbox'))
|
|
829
|
+
// API_CONST = 'https://apibsp-qa.adlsandbox.net';
|
|
830
|
+
// else if (location.origin.includes('demo-dev.adlsandbox.net'))
|
|
831
|
+
// API_CONST = 'https://apibsp-dev.adlsandbox.net';
|
|
832
|
+
// else API_CONST = 'https://apibsp-dev.adlsandbox.net';
|
|
833
|
+
// export const environment = {
|
|
834
|
+
// production: false,
|
|
835
|
+
// api: API_CONST,
|
|
836
|
+
// };
|
|
823
837
|
var API_CONST = '';
|
|
824
|
-
|
|
838
|
+
var origin = location.origin;
|
|
839
|
+
// 1. Cek Production
|
|
840
|
+
if (origin.includes('dashboard.neuapix.com')) {
|
|
825
841
|
API_CONST = 'https://api.neuapix.com';
|
|
826
|
-
|
|
842
|
+
}
|
|
843
|
+
// 2. Cek Staging
|
|
844
|
+
else if (origin.includes('dashboard-staging')) {
|
|
827
845
|
API_CONST = 'https://api-staging.neuapix.com';
|
|
828
|
-
|
|
846
|
+
}
|
|
847
|
+
// 3. Cek QA
|
|
848
|
+
else if (origin.includes('dashboard-qa')) {
|
|
829
849
|
API_CONST = 'https://apibsp-qa.adlsandbox.net';
|
|
830
|
-
|
|
850
|
+
}
|
|
851
|
+
// 4. Cek Demo Dev secara spesifik
|
|
852
|
+
else if (origin.includes('demo-dev')) {
|
|
831
853
|
API_CONST = 'https://apibsp-dev.adlsandbox.net';
|
|
832
|
-
|
|
854
|
+
}
|
|
855
|
+
// 5. Default (Localhost atau lainnya)
|
|
856
|
+
else {
|
|
833
857
|
API_CONST = 'https://apibsp-dev.adlsandbox.net';
|
|
858
|
+
}
|
|
834
859
|
var environment = {
|
|
835
860
|
production: false,
|
|
836
861
|
api: API_CONST,
|
|
@@ -5447,11 +5472,11 @@
|
|
|
5447
5472
|
};
|
|
5448
5473
|
NewNumberBasesComponent.prototype.onFileSelected = function (event) {
|
|
5449
5474
|
var file = event.target.files;
|
|
5450
|
-
var MAXIMUM_SIZE =
|
|
5475
|
+
var MAXIMUM_SIZE = 10 * 1024 * 1024;
|
|
5451
5476
|
if (file.length === 0)
|
|
5452
5477
|
return;
|
|
5453
5478
|
if (file[0].size > MAXIMUM_SIZE) {
|
|
5454
|
-
this.toastr.error('Upload media failed, max size
|
|
5479
|
+
this.toastr.error('Upload media failed, max size 10mb');
|
|
5455
5480
|
return;
|
|
5456
5481
|
}
|
|
5457
5482
|
// this.uploadMediaService(file[0]);
|