config-editor-base 2.1.3 → 2.1.4
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 +32 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -517,6 +517,34 @@ var checkS3EncryptedPasswordsNoKpub = function checkS3EncryptedPasswordsNoKpub(c
|
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
};
|
|
520
|
+
var checkWiFiEncryptedPasswordsNoKpub = function checkWiFiEncryptedPasswordsNoKpub(content) {
|
|
521
|
+
return function (dispatch) {
|
|
522
|
+
if (content.connect != undefined && content.connect.wifi != undefined && content.connect.wifi.keyformat != undefined && content.general != undefined && content.general.security != undefined) {
|
|
523
|
+
if (content.connect.wifi.keyformat != undefined) {
|
|
524
|
+
if (content.connect.wifi.keyformat == 1 && (content.general.security.kpub == undefined || content.general.security.kpub == "")) {
|
|
525
|
+
dispatch(set({
|
|
526
|
+
type: "warning",
|
|
527
|
+
message: "Your WiFi Key format is set to Encrypted, but you have not provided the Server public key. Please review the documentation on how to encrypt passwords",
|
|
528
|
+
autoClear: false
|
|
529
|
+
}));
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
var checkFileSplitOffsetPeriod = function checkFileSplitOffsetPeriod(content) {
|
|
536
|
+
return function (dispatch) {
|
|
537
|
+
if (content.log != undefined && content.log.file != undefined && content.log.file.split_time_period != undefined && content.log.file.split_time_offset != undefined) {
|
|
538
|
+
if (content.log.file.split_time_offset > content.log.file.split_time_period) {
|
|
539
|
+
dispatch(set({
|
|
540
|
+
type: "warning",
|
|
541
|
+
message: "Your log file split time offset is set larger than your file split time period. This is invalid and will cause the device to reject the Configuration File",
|
|
542
|
+
autoClear: false
|
|
543
|
+
}));
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
};
|
|
520
548
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
521
549
|
return function (dispatch) {
|
|
522
550
|
if (content.can_2 != undefined) {
|
|
@@ -525,6 +553,8 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
525
553
|
dispatch(checkConfigFiltersDisabled(content));
|
|
526
554
|
dispatch(checkConfigTls(content));
|
|
527
555
|
dispatch(checkS3EncryptedPasswordsNoKpub(content));
|
|
556
|
+
dispatch(checkWiFiEncryptedPasswordsNoKpub(content));
|
|
557
|
+
dispatch(checkFileSplitOffsetPeriod(content));
|
|
528
558
|
}
|
|
529
559
|
|
|
530
560
|
dispatch(setConfigContent(content));
|
|
@@ -628,6 +658,8 @@ var actions = {
|
|
|
628
658
|
checkConfigFiltersDisabled: checkConfigFiltersDisabled,
|
|
629
659
|
checkConfigTls: checkConfigTls,
|
|
630
660
|
checkS3EncryptedPasswordsNoKpub: checkS3EncryptedPasswordsNoKpub,
|
|
661
|
+
checkWiFiEncryptedPasswordsNoKpub: checkWiFiEncryptedPasswordsNoKpub,
|
|
662
|
+
checkFileSplitOffsetPeriod: checkFileSplitOffsetPeriod,
|
|
631
663
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
632
664
|
setUpdatedFormData: setUpdatedFormData,
|
|
633
665
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|