diff --git a/Needlework.Net/Assets/libraries.json b/Needlework.Net/Assets/libraries.json new file mode 100644 index 0000000..ea81f39 --- /dev/null +++ b/Needlework.Net/Assets/libraries.json @@ -0,0 +1 @@ +[{"Repo":"GrrrLCU","Description":"A simple wrapper for the LCU. Grrr. x3","Language":"C#","Link":"https://github.com/BlossomiShymae/GrrrLCU"},{"Repo":"Kunc.RiotGames","Description":null,"Language":"C#","Link":"https://github.com/AoshiW/Kunc.RiotGames"},{"Repo":"rito","Description":"Rito is a simple, crossplatform (Windows and Linux) C++20 library interfacing with Riot services (i.e. Riot REST API and League of Legends client).","Language":"cpp","Link":"https://github.com/bartekprtc/rito"},{"Repo":"R4J","Description":"A Java library containing the API for every Riot game","Language":"Java","Link":"https://github.com/stelar7/R4J"},{"Repo":"hasagi-core","Description":"LCU library with auto-generated types for request parameters and responses","Language":"JavaScript","Link":"https://github.com/dysolix/hasagi-core"},{"Repo":"lcu-driver","Description":"Python3 helper for the League of Legends LCU API.","Language":"Python","Link":"https://github.com/sousa-andre/lcu-driver"},{"Repo":"willump","Description":"Python3 helper for the League of Legends LCU API.","Language":"Python","Link":"https://github.com/elliejs/Willump"},{"Repo":"Irelia","Description":"LoL LCU Wrapper for Rust, built on top of hyper!","Language":"Rust","Link":"https://github.com/AlsoSylv/Irelia"},{"Repo":"Shaco","Description":"League of Legends LCU wrapper for rust","Language":"Rust","Link":"https://github.com/Leastrio/Shaco"},{"Repo":"hasagi-core","Description":"LCU library with auto-generated types for request parameters and responses","Language":"TypeScript","Link":"https://github.com/dysolix/hasagi-core"},{"Repo":"hexgate","Description":"LCU API wrapper for League of Legends","Language":"TypeScript","Link":"https://github.com/cuppachino/hexgate"}] \ No newline at end of file diff --git a/Needlework.Net/Models/Library.cs b/Needlework.Net/Models/Library.cs new file mode 100644 index 0000000..6242124 --- /dev/null +++ b/Needlework.Net/Models/Library.cs @@ -0,0 +1,9 @@ +namespace Needlework.Net.Models; + +public class Library +{ + public required string Repo { get; init; } + public string? Description { get; init; } + public required string Language { get; init; } + public required string Link { get; init; } +} diff --git a/Needlework.Net/ViewModels/Pages/HomeViewModel.cs b/Needlework.Net/ViewModels/Pages/HomeViewModel.cs index a12150a..63c35db 100644 --- a/Needlework.Net/ViewModels/Pages/HomeViewModel.cs +++ b/Needlework.Net/ViewModels/Pages/HomeViewModel.cs @@ -1,10 +1,17 @@ -using CommunityToolkit.Mvvm.Input; +using Avalonia.Platform; +using CommunityToolkit.Mvvm.Input; +using Needlework.Net.Models; +using System; +using System.Collections.Generic; using System.Diagnostics; +using System.Text.Json; namespace Needlework.Net.ViewModels.Pages; public partial class HomeViewModel : PageBase { + public List Libraries { get; } = JsonSerializer.Deserialize>(AssetLoader.Open(new Uri($"avares://NeedleworkDotNet/Assets/libraries.json")))!; + public HomeViewModel() : base("Home", "home", int.MinValue) { } [RelayCommand] diff --git a/Needlework.Net/Views/MainWindow/MainWindowView.axaml b/Needlework.Net/Views/MainWindow/MainWindowView.axaml index b02bbd5..812a6c7 100644 --- a/Needlework.Net/Views/MainWindow/MainWindowView.axaml +++ b/Needlework.Net/Views/MainWindow/MainWindowView.axaml @@ -76,6 +76,7 @@ - + + + + + + + + + + Welcome to Needlework.Net + + Get started with LCU development by clicking on the endpoints tab in the left panel. - - + + + THE PROGRAM IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGMENT, OR OF FITNESS FOR A PARTICULAR PURPOSE. LICENSOR DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE PROGRAM WILL MEET YOUR REQUIREMENTS OR THAT OPERATION WILL BE UNINTERRUPTED OR ERROR FREE. LICENSOR MAKES NO WARRANTIES RESPECTING ANY HARM THAT MAY BE CAUSED BY MALICIOUS USE OF THIS SOFTWARE. LICENSOR FURTHER EXPRESSLY DISCLAIMS ANY WARRANTY OR REPRESENTATION TO AUTHORIZED USERS OR TO ANY THIRD PARTY. + + + + + + + Resources + + + + + + + + + © 2024 - Blossomi Shymae + MIT License + + + + - - © 2024 - Blossomi Shymae - MIT License - + Needlework.Net isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc. - - - - Needlework.Net isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc. - - - + + + + + Libraries + + + + + + + + - + + + + + + + + + + +