Updated to latest moonlight and mooncore version. Done refactoring to async scheme and other changes. Recreated database migrations and cleaned models

This commit is contained in:
2025-09-22 12:13:57 +02:00
parent 91fb15a03e
commit 85392208c4
150 changed files with 2722 additions and 2726 deletions

View File

@@ -17,7 +17,4 @@ public class CreateNodeRequest
[Required(ErrorMessage = "You need to provide a ftp port")]
[Range(1, 65535, ErrorMessage = "You need to provide a valid ftp port")]
public int FtpPort { get; set; } = 2021;
public bool EnableTransparentMode { get; set; }
public bool EnableDynamicFirewall { get; set; }
}

View File

@@ -17,7 +17,4 @@ public class UpdateNodeRequest
[Required(ErrorMessage = "You need to provide a ftp port")]
[Range(1, 65535, ErrorMessage = "You need to provide a valid ftp port")]
public int FtpPort { get; set; }
public bool EnableTransparentMode { get; set; }
public bool EnableDynamicFirewall { get; set; }
}

View File

@@ -18,11 +18,6 @@ public class CreateServerRequest
[Range(1, int.MaxValue, ErrorMessage = "You need to provide a valid disk amount")]
public int Disk { get; set; }
public bool UseVirtualDisk { get; set; }
[Range(0, int.MaxValue, ErrorMessage = "You need to provide a valid bandwidth amount")]
public int Bandwidth { get; set; }
public string? StartupOverride { get; set; }
public int DockerImageIndex { get; set; } = -1;

View File

@@ -17,9 +17,6 @@ public class UpdateServerRequest
[Range(1, int.MaxValue, ErrorMessage = "You need to provide a valid disk amount")]
public int Disk { get; set; }
[Range(0, int.MaxValue, ErrorMessage = "You need to provide a valid bandwidth amount")]
public int Bandwidth { get; set; }
public string? StartupOverride { get; set; }

View File

@@ -1,5 +1,4 @@
using System.ComponentModel.DataAnnotations;
using MoonlightServers.Shared.Http.Requests.Admin.StarVariables;
namespace MoonlightServers.Shared.Http.Requests.Admin.Stars;

View File

@@ -1,6 +1,5 @@
using System.ComponentModel.DataAnnotations;
using MoonlightServers.Shared.Enums;
using MoonlightServers.Shared.Models;
namespace MoonlightServers.Shared.Http.Requests.Client.Servers.Shares;

View File

@@ -1,6 +1,3 @@
using MoonlightServers.Shared.Http.Responses.Admin.StarDockerImages;
using MoonlightServers.Shared.Http.Responses.Admin.StarVariables;
namespace MoonlightServers.Shared.Http.Responses.Admin.Stars;
public class StarResponse

View File

@@ -1,6 +1,5 @@
using MoonlightServers.Shared.Enums;
using MoonlightServers.Shared.Http.Responses.Client.Servers.Allocations;
using MoonlightServers.Shared.Models;
namespace MoonlightServers.Shared.Http.Responses.Client.Servers;

View File

@@ -1,5 +1,4 @@
using MoonlightServers.Shared.Enums;
using MoonlightServers.Shared.Models;
namespace MoonlightServers.Shared.Http.Responses.Client.Servers.Shares;