From b4025cf084d1e8586568a7293188cbc6828df838 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 1 Mar 2025 21:20:30 -0600 Subject: [PATCH] continue configuration --- web/repertory/lib/widgets/mount_settings.dart | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/web/repertory/lib/widgets/mount_settings.dart b/web/repertory/lib/widgets/mount_settings.dart index 3fb130d0..0b5da7c6 100644 --- a/web/repertory/lib/widgets/mount_settings.dart +++ b/web/repertory/lib/widgets/mount_settings.dart @@ -73,6 +73,7 @@ class _MountSettingsWidgetState extends State { List commonSettings = []; List encryptConfigSettings = []; List hostConfigSettings = []; + List remoteConfigSettings = []; List remoteMountSettings = []; List s3ConfigSettings = []; List siaConfigSettings = []; @@ -200,6 +201,53 @@ class _MountSettingsWidgetState extends State { ); } }); + } else if (key == "RemoteConfig") { + value.forEach((subKey, subValue) { + if (subKey == "ApiPort") { + _addIntSetting( + remoteConfigSettings, + _settings?[key], + subKey, + subValue, + ); + } else if (subKey == "EncryptionToken") { + _addPasswordSetting( + remoteConfigSettings, + _settings?[key], + subKey, + subValue, + ); + } else if (subKey == "HostNameOrIp") { + _addStringSetting( + remoteConfigSettings, + _settings?[key], + subKey, + subValue, + Icons.computer, + ); + } else if (subKey == "MaxConnections") { + _addIntSetting( + remoteConfigSettings, + _settings?[key], + subKey, + subValue, + ); + } else if (subKey == "ReceiveTimeoutMs") { + _addIntSetting( + remoteConfigSettings, + _settings?[key], + subKey, + subValue, + ); + } else if (subKey == "SendTimeoutMs") { + _addIntSetting( + remoteConfigSettings, + _settings?[key], + subKey, + subValue, + ); + } + }); } else if (key == "RemoteMount") { value.forEach((subKey, subValue) { if (subKey == "ApiPort") { @@ -330,6 +378,11 @@ class _MountSettingsWidgetState extends State { title: const Text('Host Config'), tiles: hostConfigSettings, ), + if (remoteConfigSettings.isNotEmpty) + SettingsSection( + title: const Text('Remote Config'), + tiles: remoteConfigSettings, + ), if (remoteMountSettings.isNotEmpty) SettingsSection( title: const Text('Remote Mount'),