mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
⭐ feat(www): Add logic to the homepage and Steam integration (#258)
## Description <!-- Briefly describe the purpose and scope of your changes --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Upgraded API and authentication services with dynamic scaling, enhanced load balancing, and real-time interaction endpoints. - Introduced new commands to streamline local development and container builds. - Added new endpoints for retrieving Steam account information and managing connections. - Implemented a QR code authentication interface for Steam, enhancing user login experiences. - **Database Updates** - Rolled out comprehensive schema migrations that improve data integrity and indexing. - Introduced new tables for managing Steam user credentials and machine information. - **UI Enhancements** - Added refreshed animated assets and an improved QR code login flow for a more engaging experience. - Introduced new styled components for displaying friends and games. - **Maintenance** - Completed extensive refactoring and configuration updates to optimize performance and development workflows. - Updated logging configurations and improved error handling mechanisms. - Streamlined resource definitions in the configuration files. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
28
packages/steam/MachineInfo.cs
Normal file
28
packages/steam/MachineInfo.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Text;
|
||||
|
||||
namespace Steam;
|
||||
|
||||
/// <summary>
|
||||
/// Provides information about the machine that the application is running on.
|
||||
/// For Steam Guard purposes, these values must return consistent results when run
|
||||
/// on the same machine / in the same container / etc., otherwise it will be treated
|
||||
/// as a separate machine and you may need to reauthenticate.
|
||||
/// </summary>
|
||||
public class IMachineInfoProvider : SteamKit2.IMachineInfoProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a unique machine ID as binary data.
|
||||
/// </summary>
|
||||
/// <returns>The unique machine ID, or <c>null</c> if no such value could be found.</returns>
|
||||
public byte[]? GetMachineGuid() => Encoding.UTF8.GetBytes("Nestri-Machine");
|
||||
/// <summary>
|
||||
/// Provides the primary MAC address as binary data.
|
||||
/// </summary>
|
||||
/// <returns>The primary MAC address, or <c>null</c> if no such value could be found.</returns>
|
||||
public byte[]? GetMacAddress() => Encoding.UTF8.GetBytes("Nestri-MacAddress");
|
||||
/// <summary>
|
||||
/// Provides the boot disk's unique ID as binary data.
|
||||
/// </summary>
|
||||
/// <returns>The boot disk's unique ID, or <c>null</c> if no such value could be found.</returns>
|
||||
public byte[]? GetDiskId() => Encoding.UTF8.GetBytes("Nestri-DiskId");
|
||||
}
|
||||
Reference in New Issue
Block a user