config-editor-base 2.2.0 → 2.2.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 +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -392,7 +392,7 @@ var checkConfigTransmitPeriodDelay = function checkConfigTransmitPeriodDelay(con
|
|
|
392
392
|
for (var i = 1; i < 3; i++) {
|
|
393
393
|
if (content["can_" + i].transmit != undefined) {
|
|
394
394
|
var transmitListFiltered = content["can_" + i].transmit.filter(function (e) {
|
|
395
|
-
return e.period > 0 && e.period
|
|
395
|
+
return e.period > 0 && e.period <= e.delay;
|
|
396
396
|
});
|
|
397
397
|
if (transmitListFiltered.length > 0) {
|
|
398
398
|
dispatch(set({
|
|
@@ -513,6 +513,18 @@ var checkFileSplitOffsetPeriod = function checkFileSplitOffsetPeriod(content) {
|
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
515
|
};
|
|
516
|
+
var checkRTCAdjustment = function checkRTCAdjustment(content) {
|
|
517
|
+
return function (dispatch) {
|
|
518
|
+
console.log("content.rtc.adjustment", content.rtc.adjustment);
|
|
519
|
+
if (content.connect != undefined && content.rtc != undefined && content.rtc.adjustment != undefined && content.rtc.adjustment > 400) {
|
|
520
|
+
dispatch(set({
|
|
521
|
+
type: "warning",
|
|
522
|
+
message: "Your RTC Adjustment value exceeds 400 seconds (this field is intended for small drift corrections, not e.g. time zone adjustments). Large values may cause issues with S3 connectivity",
|
|
523
|
+
autoClear: false
|
|
524
|
+
}));
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
};
|
|
516
528
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
517
529
|
return function (dispatch) {
|
|
518
530
|
if (content.can_2 != undefined) {
|
|
@@ -524,6 +536,7 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
524
536
|
dispatch(checkS3EncryptedPasswordsNoKpub(content));
|
|
525
537
|
dispatch(checkWiFiEncryptedPasswordsNoKpub(content));
|
|
526
538
|
dispatch(checkFileSplitOffsetPeriod(content));
|
|
539
|
+
dispatch(checkRTCAdjustment(content));
|
|
527
540
|
}
|
|
528
541
|
dispatch(setConfigContent(content));
|
|
529
542
|
var blob = new Blob([JSON.stringify(content, null, 2)], {
|
|
@@ -629,6 +642,7 @@ var actions = {
|
|
|
629
642
|
checkS3EncryptedPasswordsNoKpub: checkS3EncryptedPasswordsNoKpub,
|
|
630
643
|
checkWiFiEncryptedPasswordsNoKpub: checkWiFiEncryptedPasswordsNoKpub,
|
|
631
644
|
checkFileSplitOffsetPeriod: checkFileSplitOffsetPeriod,
|
|
645
|
+
checkRTCAdjustment: checkRTCAdjustment,
|
|
632
646
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
633
647
|
setUpdatedFormData: setUpdatedFormData,
|
|
634
648
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|