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.js
CHANGED
|
@@ -233,6 +233,8 @@ var handleUploadedFile = function handleUploadedFile(file, dropdown, schemaAry,
|
|
|
233
233
|
if (contentJSON != null) {
|
|
234
234
|
switch (true) {
|
|
235
235
|
case type == "uischema" && isValidUISchema(file.name):
|
|
236
|
+
console.log("contentJSON", contentJSON);
|
|
237
|
+
console.log("fileNameDisplay", fileNameDisplay);
|
|
236
238
|
dispatch(setUISchemaContent(contentJSON));
|
|
237
239
|
dispatch(resetLocalUISchemaList());
|
|
238
240
|
dispatch(setUISchemaFile([fileNameDisplay]));
|
|
@@ -346,6 +348,7 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
|
|
|
346
348
|
console.log("Unable to load embedded Rule Schema");
|
|
347
349
|
}
|
|
348
350
|
if (uiSchemaAryFiltered && uiSchemaAryFiltered.length) {
|
|
351
|
+
console.log("uiSchemaAryFiltered", uiSchemaAryFiltered);
|
|
349
352
|
dispatch(resetUISchemaList());
|
|
350
353
|
dispatch(setUISchemaFile(uiSchemaAryFiltered));
|
|
351
354
|
dispatch(setUISchemaContent(loadFile(uiSchemaAryFiltered[0])));
|
|
@@ -513,6 +516,18 @@ var checkFileSplitOffsetPeriod = function checkFileSplitOffsetPeriod(content) {
|
|
|
513
516
|
}
|
|
514
517
|
};
|
|
515
518
|
};
|
|
519
|
+
var checkRTCAdjustment = function checkRTCAdjustment(content) {
|
|
520
|
+
return function (dispatch) {
|
|
521
|
+
console.log("content.rtc.adjustment", content.rtc.adjustment);
|
|
522
|
+
if (content.connect != undefined && content.rtc != undefined && content.rtc.adjustment != undefined && content.rtc.adjustment > 400) {
|
|
523
|
+
dispatch(set({
|
|
524
|
+
type: "warning",
|
|
525
|
+
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",
|
|
526
|
+
autoClear: false
|
|
527
|
+
}));
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
};
|
|
516
531
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
517
532
|
return function (dispatch) {
|
|
518
533
|
if (content.can_2 != undefined) {
|
|
@@ -524,6 +539,7 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
524
539
|
dispatch(checkS3EncryptedPasswordsNoKpub(content));
|
|
525
540
|
dispatch(checkWiFiEncryptedPasswordsNoKpub(content));
|
|
526
541
|
dispatch(checkFileSplitOffsetPeriod(content));
|
|
542
|
+
dispatch(checkRTCAdjustment(content));
|
|
527
543
|
}
|
|
528
544
|
dispatch(setConfigContent(content));
|
|
529
545
|
var blob = new Blob([JSON.stringify(content, null, 2)], {
|
|
@@ -629,6 +645,7 @@ var actions = {
|
|
|
629
645
|
checkS3EncryptedPasswordsNoKpub: checkS3EncryptedPasswordsNoKpub,
|
|
630
646
|
checkWiFiEncryptedPasswordsNoKpub: checkWiFiEncryptedPasswordsNoKpub,
|
|
631
647
|
checkFileSplitOffsetPeriod: checkFileSplitOffsetPeriod,
|
|
648
|
+
checkRTCAdjustment: checkRTCAdjustment,
|
|
632
649
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
633
650
|
setUpdatedFormData: setUpdatedFormData,
|
|
634
651
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|