config-editor-base 2.7.0 → 2.7.2
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 +83 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +83 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -587,6 +587,60 @@ var checkMissingAPN = function checkMissingAPN(content) {
|
|
|
587
587
|
}
|
|
588
588
|
};
|
|
589
589
|
};
|
|
590
|
+
var checkIncorrectAPNTelekom = function checkIncorrectAPNTelekom(content) {
|
|
591
|
+
return function (dispatch) {
|
|
592
|
+
if (content.connect != undefined && content.connect.s3 != undefined && content.connect.s3.server != undefined && content.connect.cellular != undefined && content.connect.cellular.apn != undefined) {
|
|
593
|
+
if (content.connect.s3.server.endpoint != undefined && content.connect.cellular.apn != undefined) {
|
|
594
|
+
if (content.connect.s3.server.endpoint.includes("http") && content.connect.cellular.apn == "internet.v6.telekom") {
|
|
595
|
+
dispatch(set({
|
|
596
|
+
type: "warning",
|
|
597
|
+
message: "Your SIM APN is set to 'internet.v6.telekom', which is not compatible with the device - please set it to 'internet.telekom' instead",
|
|
598
|
+
autoClear: false
|
|
599
|
+
}));
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
var checkIncorrectAPNSuperSIM = function checkIncorrectAPNSuperSIM(content) {
|
|
606
|
+
return function (dispatch) {
|
|
607
|
+
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) {
|
|
608
|
+
if (content.connect.s3.server.region.includes("eu") && content.connect.cellular.apn == "super") {
|
|
609
|
+
dispatch(set({
|
|
610
|
+
type: "warning",
|
|
611
|
+
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",
|
|
612
|
+
autoClear: false
|
|
613
|
+
}));
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
var checkIncorrectRoamingSuperSIM = function checkIncorrectRoamingSuperSIM(content) {
|
|
619
|
+
return function (dispatch) {
|
|
620
|
+
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) {
|
|
621
|
+
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")) {
|
|
622
|
+
dispatch(set({
|
|
623
|
+
type: "warning",
|
|
624
|
+
message: "Roaming must be enabled when using a Super SIM",
|
|
625
|
+
autoClear: false
|
|
626
|
+
}));
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
var checkIncorrectAPNSpaces = function checkIncorrectAPNSpaces(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.endpoint != undefined) {
|
|
634
|
+
if (content.connect.s3.server.endpoint.includes("http") && (content.connect.cellular.apn.startsWith(" ") || content.connect.cellular.apn.endsWith(" "))) {
|
|
635
|
+
dispatch(set({
|
|
636
|
+
type: "warning",
|
|
637
|
+
message: "Your APN starts/ends with spaces - please review, as this is most likely not correct",
|
|
638
|
+
autoClear: false
|
|
639
|
+
}));
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
};
|
|
643
|
+
};
|
|
590
644
|
var checkFileSplitValue = function checkFileSplitValue(content) {
|
|
591
645
|
return function (dispatch) {
|
|
592
646
|
if (content.log != undefined && content.log.file != undefined && content.log.file.split_time_period != undefined) {
|
|
@@ -600,6 +654,19 @@ var checkFileSplitValue = function checkFileSplitValue(content) {
|
|
|
600
654
|
}
|
|
601
655
|
};
|
|
602
656
|
};
|
|
657
|
+
var checkGNSSEstimate = function checkGNSSEstimate(content) {
|
|
658
|
+
return function (dispatch) {
|
|
659
|
+
if (content.gnss != undefined && content.gnss.alignment != undefined && content.gnss.alignment.method != undefined) {
|
|
660
|
+
if (content.gnss.alignment.method == 1) {
|
|
661
|
+
dispatch(set({
|
|
662
|
+
type: "warning",
|
|
663
|
+
message: "Your GNSS IMU-mount alignment is set to 'Estimate' - note that the device will not record any GPS/IMU data in this mode",
|
|
664
|
+
autoClear: false
|
|
665
|
+
}));
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
};
|
|
603
670
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
604
671
|
return function (dispatch) {
|
|
605
672
|
if (content.can_2 != undefined) {
|
|
@@ -615,6 +682,11 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
615
682
|
dispatch(checkConfigTlsPort(content));
|
|
616
683
|
dispatch(checkFileSplitValue(content));
|
|
617
684
|
dispatch(checkMissingAPN(content));
|
|
685
|
+
dispatch(checkIncorrectAPNSuperSIM(content));
|
|
686
|
+
dispatch(checkIncorrectAPNTelekom(content));
|
|
687
|
+
dispatch(checkIncorrectAPNSpaces(content));
|
|
688
|
+
dispatch(checkGNSSEstimate(content));
|
|
689
|
+
dispatch(checkIncorrectRoamingSuperSIM(content));
|
|
618
690
|
dispatch(checkConfigControlSignalZeroScalingFactor(content));
|
|
619
691
|
}
|
|
620
692
|
dispatch(setConfigContent(content));
|
|
@@ -725,7 +797,12 @@ var actions = {
|
|
|
725
797
|
checkRTCAdjustment: checkRTCAdjustment,
|
|
726
798
|
checkConfigTlsPort: checkConfigTlsPort,
|
|
727
799
|
checkMissingAPN: checkMissingAPN,
|
|
800
|
+
checkIncorrectAPNTelekom: checkIncorrectAPNTelekom,
|
|
801
|
+
checkIncorrectAPNSuperSIM: checkIncorrectAPNSuperSIM,
|
|
802
|
+
checkIncorrectRoamingSuperSIM: checkIncorrectRoamingSuperSIM,
|
|
803
|
+
checkIncorrectAPNSpaces: checkIncorrectAPNSpaces,
|
|
728
804
|
checkFileSplitValue: checkFileSplitValue,
|
|
805
|
+
checkGNSSEstimate: checkGNSSEstimate,
|
|
729
806
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
730
807
|
setUpdatedFormData: setUpdatedFormData,
|
|
731
808
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|
|
@@ -18143,7 +18220,12 @@ var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
|
18143
18220
|
}, function () {});
|
|
18144
18221
|
};
|
|
18145
18222
|
_proto.testMergedFile = function testMergedFile() {
|
|
18146
|
-
var
|
|
18223
|
+
var overwriteMerge = function overwriteMerge(destinationArray, sourceArray, options) {
|
|
18224
|
+
return sourceArray;
|
|
18225
|
+
};
|
|
18226
|
+
var mergedConfigTemp = merge(this.props.formData, this.state.jsonFile, {
|
|
18227
|
+
arrayMerge: overwriteMerge
|
|
18228
|
+
});
|
|
18147
18229
|
this.setState({
|
|
18148
18230
|
mergedConfig: mergedConfigTemp
|
|
18149
18231
|
}, function () {
|