diff --git a/Needlework.Net/Assets/about.png b/Needlework.Net/Assets/Users/blossomishymae.png similarity index 100% rename from Needlework.Net/Assets/about.png rename to Needlework.Net/Assets/Users/blossomishymae.png diff --git a/Needlework.Net/Assets/Users/community.png b/Needlework.Net/Assets/Users/community.png new file mode 100644 index 0000000..3ab9180 Binary files /dev/null and b/Needlework.Net/Assets/Users/community.png differ diff --git a/Needlework.Net/Assets/Users/dubble.png b/Needlework.Net/Assets/Users/dubble.png new file mode 100644 index 0000000..a5f781b Binary files /dev/null and b/Needlework.Net/Assets/Users/dubble.png differ diff --git a/Needlework.Net/Assets/Users/dysolix.png b/Needlework.Net/Assets/Users/dysolix.png new file mode 100644 index 0000000..1640c88 Binary files /dev/null and b/Needlework.Net/Assets/Users/dysolix.png differ diff --git a/Needlework.Net/Assets/Users/ray.png b/Needlework.Net/Assets/Users/ray.png new file mode 100644 index 0000000..7c04ceb Binary files /dev/null and b/Needlework.Net/Assets/Users/ray.png differ diff --git a/Needlework.Net/Needlework.Net.csproj b/Needlework.Net/Needlework.Net.csproj index 87abe05..edf3070 100644 --- a/Needlework.Net/Needlework.Net.csproj +++ b/Needlework.Net/Needlework.Net.csproj @@ -27,7 +27,7 @@ - + @@ -58,6 +58,7 @@ + diff --git a/Needlework.Net/ViewModels/AboutViewModel.cs b/Needlework.Net/ViewModels/AboutViewModel.cs index ebf0eae..bb34427 100644 --- a/Needlework.Net/ViewModels/AboutViewModel.cs +++ b/Needlework.Net/ViewModels/AboutViewModel.cs @@ -1,9 +1,26 @@ -namespace Needlework.Net.ViewModels +using CommunityToolkit.Mvvm.Input; +using System.Diagnostics; +using System.Net.Http; + +namespace Needlework.Net.ViewModels { - public class AboutViewModel : PageBase + public partial class AboutViewModel : PageBase { - public AboutViewModel() : base("About", "info-circle") + public HttpClient HttpClient { get; } + + public AboutViewModel(HttpClient httpClient) : base("About", "info-circle") { + HttpClient = httpClient; + } + + [RelayCommand] + private void OpenUrl(string url) + { + var process = new Process() + { + StartInfo = new ProcessStartInfo(url) { UseShellExecute = true } + }; + process.Start(); } } } diff --git a/Needlework.Net/Views/AboutView.axaml b/Needlework.Net/Views/AboutView.axaml index 4b3885c..9f22b2e 100644 --- a/Needlework.Net/Views/AboutView.axaml +++ b/Needlework.Net/Views/AboutView.axaml @@ -4,36 +4,164 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="using:Needlework.Net.ViewModels" xmlns:controls="using:Needlework.Net.Controls" + xmlns:i="https://github.com/projektanker/icons.avalonia" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="Needlework.Net.Views.AboutView" x:DataType="vm:AboutViewModel"> + + + + - - - - - - - - Blossomi Shymae + + + + + + + + + + Blossomi Shymae + + + + + + About + + Needlework.Net is the .NET rewrite of Needlework. This tool was made to help others with LCU development. Feel free to ask any questions + or help contribute to the project! Made with love. 💜 + + + - - - - About - - Needlework.Net is the .NET rewrite of Needlework. This tool was made to help others with LCU development. Feel free to ask any questions - or help contribute to the project! Made with love. 💜 - + + + + Thanks to the friends and people who made this tool possible... + + + + + + + + + + dysolix + + + + + + + For providing and hosting an auto-generated OpenAPI document of the LCU. + + + - - - - + + + + + + + + + Ray + + + + + + + For guidance, advice, or providing help via HextechDocs. + + + + + + + + + + + + + dubble + + + + + + + For encouraging me to publish Needlework. This project may never have seen the light of day without him. + + + + + + + + + + + + + Third Party Developer Community + + + + + + For providing numerous documentation on the LCU. + + + + + + +