config-editor-base 2.1.9 → 2.2.1
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.modern.js
CHANGED
|
@@ -230,6 +230,8 @@ var handleUploadedFile = function handleUploadedFile(file, dropdown, schemaAry,
|
|
|
230
230
|
if (contentJSON != null) {
|
|
231
231
|
switch (true) {
|
|
232
232
|
case type == "uischema" && isValidUISchema(file.name):
|
|
233
|
+
console.log("contentJSON", contentJSON);
|
|
234
|
+
console.log("fileNameDisplay", fileNameDisplay);
|
|
233
235
|
dispatch(setUISchemaContent(contentJSON));
|
|
234
236
|
dispatch(resetLocalUISchemaList());
|
|
235
237
|
dispatch(setUISchemaFile([fileNameDisplay]));
|
|
@@ -343,6 +345,7 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
|
|
|
343
345
|
console.log("Unable to load embedded Rule Schema");
|
|
344
346
|
}
|
|
345
347
|
if (uiSchemaAryFiltered && uiSchemaAryFiltered.length) {
|
|
348
|
+
console.log("uiSchemaAryFiltered", uiSchemaAryFiltered);
|
|
346
349
|
dispatch(resetUISchemaList());
|
|
347
350
|
dispatch(setUISchemaFile(uiSchemaAryFiltered));
|
|
348
351
|
dispatch(setUISchemaContent(loadFile(uiSchemaAryFiltered[0])));
|
|
@@ -510,6 +513,18 @@ var checkFileSplitOffsetPeriod = function checkFileSplitOffsetPeriod(content) {
|
|
|
510
513
|
}
|
|
511
514
|
};
|
|
512
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
|
+
};
|
|
513
528
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
514
529
|
return function (dispatch) {
|
|
515
530
|
if (content.can_2 != undefined) {
|
|
@@ -521,6 +536,7 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
521
536
|
dispatch(checkS3EncryptedPasswordsNoKpub(content));
|
|
522
537
|
dispatch(checkWiFiEncryptedPasswordsNoKpub(content));
|
|
523
538
|
dispatch(checkFileSplitOffsetPeriod(content));
|
|
539
|
+
dispatch(checkRTCAdjustment(content));
|
|
524
540
|
}
|
|
525
541
|
dispatch(setConfigContent(content));
|
|
526
542
|
var blob = new Blob([JSON.stringify(content, null, 2)], {
|
|
@@ -626,6 +642,7 @@ var actions = {
|
|
|
626
642
|
checkS3EncryptedPasswordsNoKpub: checkS3EncryptedPasswordsNoKpub,
|
|
627
643
|
checkWiFiEncryptedPasswordsNoKpub: checkWiFiEncryptedPasswordsNoKpub,
|
|
628
644
|
checkFileSplitOffsetPeriod: checkFileSplitOffsetPeriod,
|
|
645
|
+
checkRTCAdjustment: checkRTCAdjustment,
|
|
629
646
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
630
647
|
setUpdatedFormData: setUpdatedFormData,
|
|
631
648
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|