config-editor-base 2.2.5 → 2.2.7
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.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -515,7 +515,6 @@ var checkFileSplitOffsetPeriod = function checkFileSplitOffsetPeriod(content) {
|
|
|
515
515
|
};
|
|
516
516
|
var checkRTCAdjustment = function checkRTCAdjustment(content) {
|
|
517
517
|
return function (dispatch) {
|
|
518
|
-
console.log("content.rtc.adjustment", content.rtc.adjustment);
|
|
519
518
|
if (content.connect != undefined && content.rtc != undefined && content.rtc.adjustment != undefined && content.rtc.adjustment > 400) {
|
|
520
519
|
dispatch(set({
|
|
521
520
|
type: "warning",
|
|
@@ -540,6 +539,22 @@ var checkConfigTlsPort = function checkConfigTlsPort(content) {
|
|
|
540
539
|
}
|
|
541
540
|
};
|
|
542
541
|
};
|
|
542
|
+
var checkMissingAPN = function checkMissingAPN(content) {
|
|
543
|
+
return function (dispatch) {
|
|
544
|
+
if (content.connect != undefined && content.connect.s3 != undefined && content.connect.s3.server != undefined && content.connect.cellular != undefined && content.connect.cellular.apn != undefined) {
|
|
545
|
+
console.log("content.connect.cellular.apn", content.connect.cellular.apn);
|
|
546
|
+
if (content.connect.s3.server.endpoint != undefined && content.connect.cellular.apn != undefined) {
|
|
547
|
+
if (content.connect.s3.server.endpoint.includes("http") && content.connect.cellular.apn == "") {
|
|
548
|
+
dispatch(set({
|
|
549
|
+
type: "warning",
|
|
550
|
+
message: "Your SIM APN is blank. This is most likely incorrect and may result in the device being unable to connect. Please add the APN if it exists",
|
|
551
|
+
autoClear: false
|
|
552
|
+
}));
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
};
|
|
543
558
|
var checkFileSplitValue = function checkFileSplitValue(content) {
|
|
544
559
|
return function (dispatch) {
|
|
545
560
|
if (content.log != undefined && content.log.file != undefined && content.log.file.split_time_period != undefined) {
|
|
@@ -567,6 +582,7 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
567
582
|
dispatch(checkRTCAdjustment(content));
|
|
568
583
|
dispatch(checkConfigTlsPort(content));
|
|
569
584
|
dispatch(checkFileSplitValue(content));
|
|
585
|
+
dispatch(checkMissingAPN(content));
|
|
570
586
|
}
|
|
571
587
|
dispatch(setConfigContent(content));
|
|
572
588
|
var blob = new Blob([JSON.stringify(content, null, 2)], {
|
|
@@ -674,6 +690,7 @@ var actions = {
|
|
|
674
690
|
checkFileSplitOffsetPeriod: checkFileSplitOffsetPeriod,
|
|
675
691
|
checkRTCAdjustment: checkRTCAdjustment,
|
|
676
692
|
checkConfigTlsPort: checkConfigTlsPort,
|
|
693
|
+
checkMissingAPN: checkMissingAPN,
|
|
677
694
|
checkFileSplitValue: checkFileSplitValue,
|
|
678
695
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
679
696
|
setUpdatedFormData: setUpdatedFormData,
|