@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
|
@@ -641,17 +641,42 @@ var HttpBodyRespModel = /** @class */ (function () {
|
|
|
641
641
|
return HttpBodyRespModel;
|
|
642
642
|
}());
|
|
643
643
|
|
|
644
|
+
// let API_CONST = '';
|
|
645
|
+
// if (location.origin.includes('dashboard.neuapix'))
|
|
646
|
+
// API_CONST = 'https://api.neuapix.com';
|
|
647
|
+
// else if (location.origin.includes('dashboard-staging.neuapix'))
|
|
648
|
+
// API_CONST = 'https://api-staging.neuapix.com';
|
|
649
|
+
// else if (location.origin.includes('dashboard-qa.adlsandbox'))
|
|
650
|
+
// API_CONST = 'https://apibsp-qa.adlsandbox.net';
|
|
651
|
+
// else if (location.origin.includes('demo-dev.adlsandbox.net'))
|
|
652
|
+
// API_CONST = 'https://apibsp-dev.adlsandbox.net';
|
|
653
|
+
// else API_CONST = 'https://apibsp-dev.adlsandbox.net';
|
|
654
|
+
// export const environment = {
|
|
655
|
+
// production: false,
|
|
656
|
+
// api: API_CONST,
|
|
657
|
+
// };
|
|
644
658
|
var API_CONST = '';
|
|
645
|
-
|
|
659
|
+
var origin = location.origin;
|
|
660
|
+
// 1. Cek Production
|
|
661
|
+
if (origin.includes('dashboard.neuapix.com')) {
|
|
646
662
|
API_CONST = 'https://api.neuapix.com';
|
|
647
|
-
|
|
663
|
+
}
|
|
664
|
+
// 2. Cek Staging
|
|
665
|
+
else if (origin.includes('dashboard-staging')) {
|
|
648
666
|
API_CONST = 'https://api-staging.neuapix.com';
|
|
649
|
-
|
|
667
|
+
}
|
|
668
|
+
// 3. Cek QA
|
|
669
|
+
else if (origin.includes('dashboard-qa')) {
|
|
650
670
|
API_CONST = 'https://apibsp-qa.adlsandbox.net';
|
|
651
|
-
|
|
671
|
+
}
|
|
672
|
+
// 4. Cek Demo Dev secara spesifik
|
|
673
|
+
else if (origin.includes('demo-dev')) {
|
|
652
674
|
API_CONST = 'https://apibsp-dev.adlsandbox.net';
|
|
653
|
-
|
|
675
|
+
}
|
|
676
|
+
// 5. Default (Localhost atau lainnya)
|
|
677
|
+
else {
|
|
654
678
|
API_CONST = 'https://apibsp-dev.adlsandbox.net';
|
|
679
|
+
}
|
|
655
680
|
var environment = {
|
|
656
681
|
production: false,
|
|
657
682
|
api: API_CONST,
|
|
@@ -5268,11 +5293,11 @@ var NewNumberBasesComponent = /** @class */ (function () {
|
|
|
5268
5293
|
};
|
|
5269
5294
|
NewNumberBasesComponent.prototype.onFileSelected = function (event) {
|
|
5270
5295
|
var file = event.target.files;
|
|
5271
|
-
var MAXIMUM_SIZE =
|
|
5296
|
+
var MAXIMUM_SIZE = 10 * 1024 * 1024;
|
|
5272
5297
|
if (file.length === 0)
|
|
5273
5298
|
return;
|
|
5274
5299
|
if (file[0].size > MAXIMUM_SIZE) {
|
|
5275
|
-
this.toastr.error('Upload media failed, max size
|
|
5300
|
+
this.toastr.error('Upload media failed, max size 10mb');
|
|
5276
5301
|
return;
|
|
5277
5302
|
}
|
|
5278
5303
|
// this.uploadMediaService(file[0]);
|