Recreated solution with web app template. Improved theme. Switched to ShadcnBlazor library
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.ApiKeys;
|
||||
|
||||
public class ApiKeyResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string[] Permissions { get; set; } = [];
|
||||
public DateTimeOffset ExpiresAt { get; set; }
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.ApiKeys;
|
||||
|
||||
public class CreateApiKeyResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Secret { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string[] Permissions { get; set; } = [];
|
||||
public DateTimeOffset ExpiresAt { get; set; }
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.Hangfire;
|
||||
|
||||
public class HangfireStatsResponse
|
||||
{
|
||||
public long Servers { get; set; }
|
||||
public long Recurring { get; set; }
|
||||
public long Enqueued { get; set; }
|
||||
public long Queues { get; set; }
|
||||
public long Scheduled { get; set; }
|
||||
public long Processing { get; set; }
|
||||
public long Succeeded { get; set; }
|
||||
public long Failed { get; set; }
|
||||
public long Deleted { get; set; }
|
||||
public long? Retries { get; set; }
|
||||
public long? Awaiting { get; set; }
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.Sys;
|
||||
|
||||
public class DiagnoseProvideResponse
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.Sys;
|
||||
|
||||
public class DownloadUrlResponse
|
||||
{
|
||||
public string Url { get; set; }
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.Sys;
|
||||
|
||||
public class FileSystemEntryResponse
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public bool IsFolder { get; set; }
|
||||
public long Size { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.Sys;
|
||||
|
||||
public class SystemOverviewResponse
|
||||
{
|
||||
public int CpuUsage { get; set; }
|
||||
public long MemoryUsage { get; set; }
|
||||
public string OperatingSystem { get; set; }
|
||||
public TimeSpan Uptime { get; set; }
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using Moonlight.Shared.Misc;
|
||||
|
||||
namespace Moonlight.Shared.Http.Responses.Admin;
|
||||
|
||||
public class ThemeResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Author { get; set; }
|
||||
public string Version { get; set; }
|
||||
|
||||
public string? UpdateUrl { get; set; }
|
||||
public string? DonateUrl { get; set; }
|
||||
|
||||
public ApplicationTheme Content { get; set; }
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.Users;
|
||||
|
||||
public class UserResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string[] Permissions { get; set; }
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class AuthClaimResponse
|
||||
{
|
||||
// ReSharper disable once UnusedMember.Global
|
||||
// Its used by the json serializer ^^
|
||||
public AuthClaimResponse()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public AuthClaimResponse(string type, string value)
|
||||
{
|
||||
Type = type;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public string Type { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class AuthSchemeResponse
|
||||
{
|
||||
public string DisplayName { get; set; }
|
||||
public string Identifier { get; set; }
|
||||
}
|
||||
3
Moonlight.Shared/Http/Responses/Auth/ClaimResponse.cs
Normal file
3
Moonlight.Shared/Http/Responses/Auth/ClaimResponse.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public record ClaimResponse(string Type, string Value);
|
||||
3
Moonlight.Shared/Http/Responses/Auth/SchemeResponse.cs
Normal file
3
Moonlight.Shared/Http/Responses/Auth/SchemeResponse.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public record SchemeResponse(string Name, string DisplayName);
|
||||
3
Moonlight.Shared/Http/Responses/PagedData.cs
Normal file
3
Moonlight.Shared/Http/Responses/PagedData.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace Moonlight.Shared.Http.Responses;
|
||||
|
||||
public record PagedData<T>(T[] Data, int TotalLength);
|
||||
3
Moonlight.Shared/Http/Responses/Users/UserResponse.cs
Normal file
3
Moonlight.Shared/Http/Responses/Users/UserResponse.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Users;
|
||||
|
||||
public record UserResponse(int Id, string Username, string Email);
|
||||
Reference in New Issue
Block a user