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.modern.js
CHANGED
|
@@ -514,6 +514,34 @@ var checkS3EncryptedPasswordsNoKpub = function checkS3EncryptedPasswordsNoKpub(c
|
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
516
|
};
|
|
517
|
+
var checkWiFiEncryptedPasswordsNoKpub = function checkWiFiEncryptedPasswordsNoKpub(content) {
|
|
518
|
+
return function (dispatch) {
|
|
519
|
+
if (content.connect != undefined && content.connect.wifi != undefined && content.connect.wifi.keyformat != undefined && content.general != undefined && content.general.security != undefined) {
|
|
520
|
+
if (content.connect.wifi.keyformat != undefined) {
|
|
521
|
+
if (content.connect.wifi.keyformat == 1 && (content.general.security.kpub == undefined || content.general.security.kpub == "")) {
|
|
522
|
+
dispatch(set({
|
|
523
|
+
type: "warning",
|
|
524
|
+
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",
|
|
525
|
+
autoClear: false
|
|
526
|
+
}));
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
var checkFileSplitOffsetPeriod = function checkFileSplitOffsetPeriod(content) {
|
|
533
|
+
return function (dispatch) {
|
|
534
|
+
if (content.log != undefined && content.log.file != undefined && content.log.file.split_time_period != undefined && content.log.file.split_time_offset != undefined) {
|
|
535
|
+
if (content.log.file.split_time_offset > content.log.file.split_time_period) {
|
|
536
|
+
dispatch(set({
|
|
537
|
+
type: "warning",
|
|
538
|
+
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",
|
|
539
|
+
autoClear: false
|
|
540
|
+
}));
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
};
|
|
517
545
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
518
546
|
return function (dispatch) {
|
|
519
547
|
if (content.can_2 != undefined) {
|
|
@@ -522,6 +550,8 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
522
550
|
dispatch(checkConfigFiltersDisabled(content));
|
|
523
551
|
dispatch(checkConfigTls(content));
|
|
524
552
|
dispatch(checkS3EncryptedPasswordsNoKpub(content));
|
|
553
|
+
dispatch(checkWiFiEncryptedPasswordsNoKpub(content));
|
|
554
|
+
dispatch(checkFileSplitOffsetPeriod(content));
|
|
525
555
|
}
|
|
526
556
|
|
|
527
557
|
dispatch(setConfigContent(content));
|
|
@@ -625,6 +655,8 @@ var actions = {
|
|
|
625
655
|
checkConfigFiltersDisabled: checkConfigFiltersDisabled,
|
|
626
656
|
checkConfigTls: checkConfigTls,
|
|
627
657
|
checkS3EncryptedPasswordsNoKpub: checkS3EncryptedPasswordsNoKpub,
|
|
658
|
+
checkWiFiEncryptedPasswordsNoKpub: checkWiFiEncryptedPasswordsNoKpub,
|
|
659
|
+
checkFileSplitOffsetPeriod: checkFileSplitOffsetPeriod,
|
|
628
660
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
629
661
|
setUpdatedFormData: setUpdatedFormData,
|
|
630
662
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|