config-editor-base 2.7.1 → 2.7.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/dist/index.js +107 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +107 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -590,6 +590,86 @@ var checkMissingAPN = function checkMissingAPN(content) {
|
|
|
590
590
|
}
|
|
591
591
|
};
|
|
592
592
|
};
|
|
593
|
+
var checkMissingWiFi = function checkMissingWiFi(content) {
|
|
594
|
+
return function (dispatch) {
|
|
595
|
+
if (content.connect != undefined && content.connect.s3 != undefined && content.connect.s3.server != undefined && content.connect.wifi != undefined && content.connect.wifi.accesspoint != undefined) {
|
|
596
|
+
if (content.connect.s3.server.endpoint != undefined && content.connect.wifi.accesspoint.length == 0 && content.connect.s3.server.endpoint.includes("http")) {
|
|
597
|
+
dispatch(set({
|
|
598
|
+
type: "warning",
|
|
599
|
+
message: "Your S3 details appear populated, but you have added no WiFi details. Your device will therefore be unable to connect to your server.",
|
|
600
|
+
autoClear: false
|
|
601
|
+
}));
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
var checkMissingS3IfWiFi = function checkMissingS3IfWiFi(content) {
|
|
607
|
+
return function (dispatch) {
|
|
608
|
+
if (content.connect != undefined && content.connect.s3 != undefined && content.connect.s3.server != undefined && content.connect.wifi != undefined && content.connect.wifi.accesspoint != undefined) {
|
|
609
|
+
if (content.connect.wifi.accesspoint.length > 0 && content.connect.protocol != undefined && content.connect.protocol == 0 && (content.connect.s3.server.endpoint != undefined && !content.connect.s3.server.endpoint.includes("http") || content.connect.s3.server.endpoint == undefined)) {
|
|
610
|
+
dispatch(set({
|
|
611
|
+
type: "warning",
|
|
612
|
+
message: "Your have added WiFi details, but no S3 endpoint is added. Your device will therefore be unable to connect to your server.",
|
|
613
|
+
autoClear: false
|
|
614
|
+
}));
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
var checkIncorrectAPNTelekom = function checkIncorrectAPNTelekom(content) {
|
|
620
|
+
return function (dispatch) {
|
|
621
|
+
if (content.connect != undefined && content.connect.s3 != undefined && content.connect.s3.server != undefined && content.connect.cellular != undefined && content.connect.cellular.apn != undefined) {
|
|
622
|
+
if (content.connect.s3.server.endpoint != undefined && content.connect.cellular.apn != undefined) {
|
|
623
|
+
if (content.connect.s3.server.endpoint.includes("http") && content.connect.cellular.apn == "internet.v6.telekom") {
|
|
624
|
+
dispatch(set({
|
|
625
|
+
type: "warning",
|
|
626
|
+
message: "Your SIM APN is set to 'internet.v6.telekom', which is not compatible with the device - please set it to 'internet.telekom' instead",
|
|
627
|
+
autoClear: false
|
|
628
|
+
}));
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
var checkIncorrectAPNSuperSIM = function checkIncorrectAPNSuperSIM(content) {
|
|
635
|
+
return function (dispatch) {
|
|
636
|
+
if (content.connect != undefined && content.connect.s3 != undefined && content.connect.s3.server != undefined && content.connect.cellular != undefined && content.connect.cellular.apn != undefined && content.connect.s3.server.region != undefined) {
|
|
637
|
+
if (content.connect.s3.server.region.includes("eu") && content.connect.cellular.apn == "super") {
|
|
638
|
+
dispatch(set({
|
|
639
|
+
type: "warning",
|
|
640
|
+
message: "Your Super SIM APN is set to 'super', but your S3 region appears to be in EU - please set your APN to 'de1.super' for optimal speed",
|
|
641
|
+
autoClear: false
|
|
642
|
+
}));
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
var checkIncorrectRoamingSuperSIM = function checkIncorrectRoamingSuperSIM(content) {
|
|
648
|
+
return function (dispatch) {
|
|
649
|
+
if (content.connect != undefined && content.connect.s3 != undefined && content.connect.s3.server != undefined && content.connect.cellular != undefined && content.connect.cellular.apn != undefined && content.connect.cellular.roaming != undefined && content.connect.s3.server.endpoint != undefined) {
|
|
650
|
+
if (content.connect.s3.server.endpoint.includes("http") && content.connect.cellular.roaming == 0 && (content.connect.cellular.apn == "super" || content.connect.cellular.apn == "de1.super" || content.connect.cellular.apn == "sg.super")) {
|
|
651
|
+
dispatch(set({
|
|
652
|
+
type: "warning",
|
|
653
|
+
message: "Roaming must be enabled when using a Super SIM",
|
|
654
|
+
autoClear: false
|
|
655
|
+
}));
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
var checkIncorrectAPNSpaces = function checkIncorrectAPNSpaces(content) {
|
|
661
|
+
return function (dispatch) {
|
|
662
|
+
if (content.connect != undefined && content.connect.s3 != undefined && content.connect.s3.server != undefined && content.connect.cellular != undefined && content.connect.cellular.apn != undefined && content.connect.s3.server.endpoint != undefined) {
|
|
663
|
+
if (content.connect.s3.server.endpoint.includes("http") && (content.connect.cellular.apn.startsWith(" ") || content.connect.cellular.apn.endsWith(" "))) {
|
|
664
|
+
dispatch(set({
|
|
665
|
+
type: "warning",
|
|
666
|
+
message: "Your APN starts/ends with spaces - please review, as this is most likely not correct",
|
|
667
|
+
autoClear: false
|
|
668
|
+
}));
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
};
|
|
672
|
+
};
|
|
593
673
|
var checkFileSplitValue = function checkFileSplitValue(content) {
|
|
594
674
|
return function (dispatch) {
|
|
595
675
|
if (content.log != undefined && content.log.file != undefined && content.log.file.split_time_period != undefined) {
|
|
@@ -603,6 +683,19 @@ var checkFileSplitValue = function checkFileSplitValue(content) {
|
|
|
603
683
|
}
|
|
604
684
|
};
|
|
605
685
|
};
|
|
686
|
+
var checkGNSSEstimate = function checkGNSSEstimate(content) {
|
|
687
|
+
return function (dispatch) {
|
|
688
|
+
if (content.gnss != undefined && content.gnss.alignment != undefined && content.gnss.alignment.method != undefined) {
|
|
689
|
+
if (content.gnss.alignment.method == 1) {
|
|
690
|
+
dispatch(set({
|
|
691
|
+
type: "warning",
|
|
692
|
+
message: "Your GNSS IMU-mount alignment is set to 'Estimate' - note that the device will not record any GPS/IMU data in this mode",
|
|
693
|
+
autoClear: false
|
|
694
|
+
}));
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
};
|
|
606
699
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
607
700
|
return function (dispatch) {
|
|
608
701
|
if (content.can_2 != undefined) {
|
|
@@ -618,6 +711,13 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
618
711
|
dispatch(checkConfigTlsPort(content));
|
|
619
712
|
dispatch(checkFileSplitValue(content));
|
|
620
713
|
dispatch(checkMissingAPN(content));
|
|
714
|
+
dispatch(checkMissingWiFi(content));
|
|
715
|
+
dispatch(checkMissingS3IfWiFi(content));
|
|
716
|
+
dispatch(checkIncorrectAPNSuperSIM(content));
|
|
717
|
+
dispatch(checkIncorrectAPNTelekom(content));
|
|
718
|
+
dispatch(checkIncorrectAPNSpaces(content));
|
|
719
|
+
dispatch(checkGNSSEstimate(content));
|
|
720
|
+
dispatch(checkIncorrectRoamingSuperSIM(content));
|
|
621
721
|
dispatch(checkConfigControlSignalZeroScalingFactor(content));
|
|
622
722
|
}
|
|
623
723
|
dispatch(setConfigContent(content));
|
|
@@ -728,7 +828,14 @@ var actions = {
|
|
|
728
828
|
checkRTCAdjustment: checkRTCAdjustment,
|
|
729
829
|
checkConfigTlsPort: checkConfigTlsPort,
|
|
730
830
|
checkMissingAPN: checkMissingAPN,
|
|
831
|
+
checkMissingWiFi: checkMissingWiFi,
|
|
832
|
+
checkMissingS3IfWiFi: checkMissingS3IfWiFi,
|
|
833
|
+
checkIncorrectAPNTelekom: checkIncorrectAPNTelekom,
|
|
834
|
+
checkIncorrectAPNSuperSIM: checkIncorrectAPNSuperSIM,
|
|
835
|
+
checkIncorrectRoamingSuperSIM: checkIncorrectRoamingSuperSIM,
|
|
836
|
+
checkIncorrectAPNSpaces: checkIncorrectAPNSpaces,
|
|
731
837
|
checkFileSplitValue: checkFileSplitValue,
|
|
838
|
+
checkGNSSEstimate: checkGNSSEstimate,
|
|
732
839
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
733
840
|
setUpdatedFormData: setUpdatedFormData,
|
|
734
841
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|