From feec0173bdc17d4603a489831dab51bdcb07b378 Mon Sep 17 00:00:00 2001 From: "Angel D. Munoz" Date: Wed, 22 Nov 2023 22:56:04 -0600 Subject: [PATCH] Switch to structs, change icon signature (#2) This pull request includes several changes to the codebase. The main changes are: Switching to using structs instead of classes for improved performance and memory efficiency. Updating the icon signature to match the new struct implementation. Switch to a valid protocol This pull request updates the protocol used in the codebase from "mandadin-web" to "web+mandadin". This change ensures that the protocol follows the correct format and is compatible with other systems. Add FsToolkit, add The Blunt Parser This pull request adds the FsToolkit.ErrorHandling and TheBlunt packages to the project. These packages provide additional functionality and error handling capabilities. Add Parser module for checkbox parsing This pull request introduces a new Parser module for parsing checkboxes in the codebase. This module allows for more efficient and accurate parsing of checkbox data. Add logging --- src/Mandadin.Client/Mandadin.Client.fsproj | 7 +- src/Mandadin.Client/Modals.fs | 12 +-- src/Mandadin.Client/Parser.fs | 76 ++++++++++++++++++ src/Mandadin.Client/Parser.fsi | 7 ++ src/Mandadin.Client/Startup.fs | 29 +++++-- src/Mandadin.Client/Types.fs | 33 ++++---- src/Mandadin.Client/Views/Import.fs | 78 ++++++++++--------- src/Mandadin.Client/Views/Notes.fs | 8 +- src/Mandadin.Client/Views/TrackListItems.fs | 10 +-- src/Mandadin.Client/Views/TrackLists.fs | 46 +++++++---- .../wwwroot/manifest.webmanifest | 2 +- 11 files changed, 221 insertions(+), 87 deletions(-) create mode 100644 src/Mandadin.Client/Parser.fs create mode 100644 src/Mandadin.Client/Parser.fsi diff --git a/src/Mandadin.Client/Mandadin.Client.fsproj b/src/Mandadin.Client/Mandadin.Client.fsproj index 4de225b..78a5ddf 100644 --- a/src/Mandadin.Client/Mandadin.Client.fsproj +++ b/src/Mandadin.Client/Mandadin.Client.fsproj @@ -1,4 +1,4 @@ - + net8.0 @@ -8,6 +8,8 @@ + + @@ -20,6 +22,9 @@ + + +