8 Commits

Author SHA1 Message Date
ee1e241e8e Improve HttpHelper body handling and error reporting
HttpHelper.FetchAsync now supports HttpContent as a body parameter, allowing for more flexible request content. In MojangAPI.UploadSkinAsync, error messages now include the response body for better debugging.
2026-01-25 19:50:59 +01:00
15adb39115 Refactor HTTP requests to use HttpHelper utility
Introduced a new HttpHelper utility to centralize and standardize HTTP requests across the codebase, replacing direct usage of HttpClient. Updated authentication, asset, game, and Mojang API logic to use the new helper, improving maintainability and consistency. Also refactored game launch options for greater flexibility and configurability.
2026-01-25 18:54:11 +01:00
1ae8ee00db Add Minecraft game launch and asset management
Introduces core game logic for launching Minecraft, including asset, library, and Java runtime management. Adds Forge mod support, OS utilities, and file helpers. Updates frontend to handle game launch, log streaming, and UI feedback. Minor bugfixes and style improvements are also included.
2026-01-25 08:59:22 +01:00
26e78a82c0 Add game frame UI with play button and styling
Introduced a new 'game' frame in logged.html with a title and play button. Added corresponding CSS for layout and button styling in logged.css. Updated JS to show the game frame by default.
2026-01-24 23:50:28 +01:00
d2ae3122c9 Add Discord OAuth2 login and refactor authentication
Implemented Discord OAuth2 authentication flow with a new Discord.cs handler and integrated it into Program.cs. Refactored authentication logic to use shared JsonSerializerOptions from LauncherConstants. Updated BashUtils with cross-platform URL opening, improved MojangAPI to use shared HttpClient, and enhanced frontend login and log handling in logged.js and login.js.
2026-01-24 23:35:02 +01:00
4ffe3b47c2 Add MojangAPI integration for skin and cape management
Introduces MojangAPI utility for handling skin uploads, cape management, and username changes via new backend endpoints. Updates Program.cs to support new IPC commands for skin selection, uploading, cape toggling, and username changes. Refactors frontend (logged.js, logged.html, logged.css) to provide UI for skin uploads, cape selection, and username changes, including new styles and blank cape asset. Refactors UserRecord to allow username mutation.
2026-01-24 17:11:59 +01:00
2e2b126df8 Add profile cosmetics section and username change UI
Introduces a cosmetics section in the profile with articles for username, capes, and skin. Adds UI for changing username, including input and button, and updates related CSS for styling. JS now shows the profile frame on initialization.
2026-01-23 19:08:17 +01:00
b3827576da first commit 2026-01-23 15:55:56 +01:00