From 53c4630f489d9a33e574a414b161b2773a41dd6d Mon Sep 17 00:00:00 2001 From: John E Date: Wed, 8 Jul 2026 16:09:34 -0400 Subject: [PATCH] docs: fix typos Signed-off-by: John E --- .../HaystackApp/Mail Plugin/MailPluginManager.swift | 2 +- .../HaystackApp/Views/AccessoryListEntry.swift | 12 ++++++------ .../HaystackApp/Views/ManageAccessoriesView.swift | 2 +- .../HaystackApp/Views/OpenHaystackMainView.swift | 4 ++-- .../OpenHaystackTests/MicrocontrollerTests.swift | 2 +- .../lib/deployment/deployment_email.dart | 2 +- .../lib/deployment/deployment_linux_hci.dart | 2 +- .../lib/item_management/item_file_import.dart | 10 +++++----- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/OpenHaystack/OpenHaystack/HaystackApp/Mail Plugin/MailPluginManager.swift b/OpenHaystack/OpenHaystack/HaystackApp/Mail Plugin/MailPluginManager.swift index 1736e27a..a6a1738a 100644 --- a/OpenHaystack/OpenHaystack/HaystackApp/Mail Plugin/MailPluginManager.swift +++ b/OpenHaystack/OpenHaystack/HaystackApp/Mail Plugin/MailPluginManager.swift @@ -60,7 +60,7 @@ struct MailPluginManager { panel.prompt = "Install" panel.canCreateDirectories = true panel.showsTagField = false - panel.message = "OpenHaystack has no right to access the directory to install the plug-in automatically. By clicking install you grant the persmission." + panel.message = "OpenHaystack has no right to access the directory to install the plug-in automatically. By clicking install you grant the permission." if FileManager.default.fileExists(atPath: self.pluginsFolderURL.path) { panel.directoryURL = self.pluginsFolderURL diff --git a/OpenHaystack/OpenHaystack/HaystackApp/Views/AccessoryListEntry.swift b/OpenHaystack/OpenHaystack/HaystackApp/Views/AccessoryListEntry.swift index e35d8950..9c71fcde 100644 --- a/OpenHaystack/OpenHaystack/HaystackApp/Views/AccessoryListEntry.swift +++ b/OpenHaystack/OpenHaystack/HaystackApp/Views/AccessoryListEntry.swift @@ -115,7 +115,7 @@ struct AccessoryListEntry: View { pasteboard.prepareForNewContents(with: .currentHostOnly) pasteboard.setString(publicKey.base64EncodedString(), forType: .string) } catch { - os_log("Failed extracing public key %@", String(describing: error)) + os_log("Failed extracting public key %@", String(describing: error)) assert(false) } } @@ -127,7 +127,7 @@ struct AccessoryListEntry: View { pasteboard.prepareForNewContents(with: .currentHostOnly) pasteboard.setString(publicKey.base64EncodedString(), forType: .string) } catch { - os_log("Failed extracing public key %@", String(describing: error)) + os_log("Failed extracting public key %@", String(describing: error)) assert(false) } } @@ -139,7 +139,7 @@ struct AccessoryListEntry: View { pasteboard.prepareForNewContents(with: .currentHostOnly) pasteboard.setString(keyID, forType: .string) } catch { - os_log("Failed extracing public key %@", String(describing: error)) + os_log("Failed extracting public key %@", String(describing: error)) assert(false) } } @@ -161,7 +161,7 @@ struct AccessoryListEntry: View { pasteboard.setString(string, forType: .string) } } catch { - os_log("Failed extracing public key %@", String(describing: error)) + os_log("Failed extracting public key %@", String(describing: error)) assert(false) } } @@ -177,7 +177,7 @@ struct AccessoryListEntry: View { pasteboard.prepareForNewContents(with: .currentHostOnly) pasteboard.setString("Symmetric key: \(symmetricKeyString)\n Uncompressed public key: \(publicKeyString) ", forType: .string) } catch { - os_log("Failed extracing public key %@", String(describing: error)) + os_log("Failed extracting public key %@", String(describing: error)) assert(false) } } @@ -191,7 +191,7 @@ struct AccessoryListEntry: View { pasteboard.prepareForNewContents(with: .currentHostOnly) pasteboard.setString("Symmetric key: \(symmetricKey.base64EncodedString())\n Uncompressed public key: \(publicKey.base64EncodedString()) ", forType: .string) } catch { - os_log("Failed extracing public key %@", String(describing: error)) + os_log("Failed extracting public key %@", String(describing: error)) assert(false) } } diff --git a/OpenHaystack/OpenHaystack/HaystackApp/Views/ManageAccessoriesView.swift b/OpenHaystack/OpenHaystack/HaystackApp/Views/ManageAccessoriesView.swift index f87bbd49..8be9164f 100644 --- a/OpenHaystack/OpenHaystack/HaystackApp/Views/ManageAccessoriesView.swift +++ b/OpenHaystack/OpenHaystack/HaystackApp/Views/ManageAccessoriesView.swift @@ -117,7 +117,7 @@ struct ManageAccessoriesView: View { VStack { Text("Select target") .font(.title) - Text("Please select to which device you want to deply") + Text("Please select to which device you want to deploy") .padding(.bottom, 4) VStack { diff --git a/OpenHaystack/OpenHaystack/HaystackApp/Views/OpenHaystackMainView.swift b/OpenHaystack/OpenHaystack/HaystackApp/Views/OpenHaystackMainView.swift index e864d3b9..cfb778f7 100644 --- a/OpenHaystack/OpenHaystack/HaystackApp/Views/OpenHaystackMainView.swift +++ b/OpenHaystack/OpenHaystack/HaystackApp/Views/OpenHaystackMainView.swift @@ -350,7 +350,7 @@ struct OpenHaystackMainView: View { dismissButton: Alert.Button.okay()) case .deployedSuccessfully: return Alert( - title: Text("Deploy successfull"), + title: Text("Deploy successful"), message: Text("This device will now be tracked by all iPhones and you can use this app to find its last reported location"), dismissButton: Alert.Button.okay()) case .deletionFailed: @@ -381,7 +381,7 @@ struct OpenHaystackMainView: View { title: Text("Mail Plugin installation failed"), message: Text( "To access the location reports of your devices an Apple Mail plugin is necessary" - + "\nThe installtion of this plugin has failed.\n\n Please download it manually unzip it and move it to /Library/Mail/Bundles"), + + "\nThe installation of this plugin has failed.\n\n Please download it manually unzip it and move it to /Library/Mail/Bundles"), primaryButton: .default( Text("Download plug-in"), action: { diff --git a/OpenHaystack/OpenHaystackTests/MicrocontrollerTests.swift b/OpenHaystack/OpenHaystackTests/MicrocontrollerTests.swift index de95f0cb..296184bc 100644 --- a/OpenHaystack/OpenHaystackTests/MicrocontrollerTests.swift +++ b/OpenHaystack/OpenHaystackTests/MicrocontrollerTests.swift @@ -37,7 +37,7 @@ class MicrocontrollerTests: XCTestCase { let pattern = Data([0xa, 0xb, 0xc, 0xd, 0xe, 0xf, 0x0, 0x1]) let key = Data([1, 1, 1, 1, 1, 1, 1, 1]) _ = try MicrobitController.patchFirmware(firmware, pattern: pattern, with: key) - XCTFail("Should thrown an erorr before") + XCTFail("Should thrown an error before") } catch PatchingError.patternNotFound { // This should be thrown } catch { diff --git a/openhaystack-mobile/lib/deployment/deployment_email.dart b/openhaystack-mobile/lib/deployment/deployment_email.dart index 4c2cb4bb..7bb68657 100644 --- a/openhaystack-mobile/lib/deployment/deployment_email.dart +++ b/openhaystack-mobile/lib/deployment/deployment_email.dart @@ -74,7 +74,7 @@ class DeploymentEmail { String mailContent = 'Linux HCI Deployment:\n\n' 'Requirements\n' 'Install the hcitool software on a Bluetooth Low Energy Linux device, ' - 'for example a Raspberry Pi. Additionally Pyhton 3 needs to be ' + 'for example a Raspberry Pi. Additionally Python 3 needs to be ' 'installed.\n\n' 'Download\n' 'Next download the python script that configures the HCI tool to ' diff --git a/openhaystack-mobile/lib/deployment/deployment_linux_hci.dart b/openhaystack-mobile/lib/deployment/deployment_linux_hci.dart index 98853058..1a931382 100644 --- a/openhaystack-mobile/lib/deployment/deployment_linux_hci.dart +++ b/openhaystack-mobile/lib/deployment/deployment_linux_hci.dart @@ -21,7 +21,7 @@ class DeploymentInstructionsLinux extends StatelessWidget { title: Text('Requirements'), content: Text('Install the hcitool software on a Bluetooth ' 'Low Energy Linux device, for example a Raspberry Pi. ' - 'Additionally Pyhton 3 needs to be installed.'), + 'Additionally Python 3 needs to be installed.'), ), Step( title: const Text('Download'), diff --git a/openhaystack-mobile/lib/item_management/item_file_import.dart b/openhaystack-mobile/lib/item_management/item_file_import.dart index 9740fdb8..ef723fd9 100644 --- a/openhaystack-mobile/lib/item_management/item_file_import.dart +++ b/openhaystack-mobile/lib/item_management/item_file_import.dart @@ -15,7 +15,7 @@ class ItemFileImport extends StatefulWidget { final String filePath; /// Lets the user select which accessories to import from a file. - /// + /// /// Displays the accessories contained in the import file. /// The user can then select the accessories to import. const ItemFileImport({ @@ -55,7 +55,7 @@ class _ItemFileImportState extends State { hasError = true; errorText = 'Invalid file path. Please select another file.'; }); - + return; } @@ -117,7 +117,7 @@ class _ItemFileImportState extends State { } } - var nrOfImports = selected?.fold(0, + var nrOfImports = selected?.fold(0, (previousValue, element) => element ? previousValue + 1 : previousValue) ?? 0; if (nrOfImports > 0) { var snackbar = SnackBar( @@ -174,12 +174,12 @@ class _ItemFileImportState extends State { child: Column( children: [ Text( - 'An error occured.', + 'An error occurred.', style: Theme.of(context).textTheme.headline5, ), Padding( padding: const EdgeInsets.only(top: 8.0), - child: Text(errorText ?? 'An unknown error occured. Please try again.'), + child: Text(errorText ?? 'An unknown error occurred. Please try again.'), ), ], ),