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