diff --git a/Moonlight/App/ApiClients/CloudPanel/CloudPanelApiHelper.cs b/Moonlight/App/ApiClients/CloudPanel/CloudPanelApiHelper.cs index fd6e99fb..cfa2b51d 100644 --- a/Moonlight/App/ApiClients/CloudPanel/CloudPanelApiHelper.cs +++ b/Moonlight/App/ApiClients/CloudPanel/CloudPanelApiHelper.cs @@ -1,6 +1,4 @@ -using Moonlight.App.Database.Entities; -using Moonlight.App.Models.Plesk.Resources; -using Newtonsoft.Json; +using Newtonsoft.Json; using RestSharp; namespace Moonlight.App.ApiClients.CloudPanel; diff --git a/Moonlight/App/Helpers/DaemonApiHelper.cs b/Moonlight/App/ApiClients/Daemon/DaemonApiHelper.cs similarity index 97% rename from Moonlight/App/Helpers/DaemonApiHelper.cs rename to Moonlight/App/ApiClients/Daemon/DaemonApiHelper.cs index b9ffdcce..7cdf11ae 100644 --- a/Moonlight/App/Helpers/DaemonApiHelper.cs +++ b/Moonlight/App/ApiClients/Daemon/DaemonApiHelper.cs @@ -3,7 +3,7 @@ using Moonlight.App.Exceptions; using Newtonsoft.Json; using RestSharp; -namespace Moonlight.App.Helpers; +namespace Moonlight.App.ApiClients.Daemon; public class DaemonApiHelper { diff --git a/Moonlight/App/Exceptions/DaemonException.cs b/Moonlight/App/ApiClients/Daemon/DaemonException.cs similarity index 93% rename from Moonlight/App/Exceptions/DaemonException.cs rename to Moonlight/App/ApiClients/Daemon/DaemonException.cs index 845c908f..58ca2e9e 100644 --- a/Moonlight/App/Exceptions/DaemonException.cs +++ b/Moonlight/App/ApiClients/Daemon/DaemonException.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Moonlight.App.Exceptions; +namespace Moonlight.App.ApiClients.Daemon; [Serializable] public class DaemonException : Exception diff --git a/Moonlight/App/Models/Daemon/Resources/ContainerStats.cs b/Moonlight/App/ApiClients/Daemon/Resources/ContainerStats.cs similarity index 86% rename from Moonlight/App/Models/Daemon/Resources/ContainerStats.cs rename to Moonlight/App/ApiClients/Daemon/Resources/ContainerStats.cs index db1a2c8a..b8b30c25 100644 --- a/Moonlight/App/Models/Daemon/Resources/ContainerStats.cs +++ b/Moonlight/App/ApiClients/Daemon/Resources/ContainerStats.cs @@ -1,4 +1,4 @@ -namespace Moonlight.App.Models.Daemon.Resources; +namespace Moonlight.App.ApiClients.Daemon.Resources; public class ContainerStats { diff --git a/Moonlight/App/Models/Daemon/Resources/CpuStats.cs b/Moonlight/App/ApiClients/Daemon/Resources/CpuStats.cs similarity index 71% rename from Moonlight/App/Models/Daemon/Resources/CpuStats.cs rename to Moonlight/App/ApiClients/Daemon/Resources/CpuStats.cs index 9282627e..ff72425f 100644 --- a/Moonlight/App/Models/Daemon/Resources/CpuStats.cs +++ b/Moonlight/App/ApiClients/Daemon/Resources/CpuStats.cs @@ -1,4 +1,4 @@ -namespace Moonlight.App.Models.Daemon.Resources; +namespace Moonlight.App.ApiClients.Daemon.Resources; public class CpuStats { diff --git a/Moonlight/App/Models/Daemon/Resources/DiskStats.cs b/Moonlight/App/ApiClients/Daemon/Resources/DiskStats.cs similarity index 77% rename from Moonlight/App/Models/Daemon/Resources/DiskStats.cs rename to Moonlight/App/ApiClients/Daemon/Resources/DiskStats.cs index ea19ae90..4bcd8467 100644 --- a/Moonlight/App/Models/Daemon/Resources/DiskStats.cs +++ b/Moonlight/App/ApiClients/Daemon/Resources/DiskStats.cs @@ -1,4 +1,4 @@ -namespace Moonlight.App.Models.Daemon.Resources; +namespace Moonlight.App.ApiClients.Daemon.Resources; public class DiskStats { diff --git a/Moonlight/App/Models/Daemon/Resources/MemoryStats.cs b/Moonlight/App/ApiClients/Daemon/Resources/MemoryStats.cs similarity index 85% rename from Moonlight/App/Models/Daemon/Resources/MemoryStats.cs rename to Moonlight/App/ApiClients/Daemon/Resources/MemoryStats.cs index 26823099..6e3a20bf 100644 --- a/Moonlight/App/Models/Daemon/Resources/MemoryStats.cs +++ b/Moonlight/App/ApiClients/Daemon/Resources/MemoryStats.cs @@ -1,4 +1,4 @@ -namespace Moonlight.App.Models.Daemon.Resources; +namespace Moonlight.App.ApiClients.Daemon.Resources; public class MemoryStats { diff --git a/Moonlight/App/Models/Google/Requests/GoogleOAuth2CodePayload.cs b/Moonlight/App/ApiClients/Google/Requests/GoogleOAuth2CodePayload.cs similarity index 90% rename from Moonlight/App/Models/Google/Requests/GoogleOAuth2CodePayload.cs rename to Moonlight/App/ApiClients/Google/Requests/GoogleOAuth2CodePayload.cs index 4d47dda2..a4ef4bb1 100644 --- a/Moonlight/App/Models/Google/Requests/GoogleOAuth2CodePayload.cs +++ b/Moonlight/App/ApiClients/Google/Requests/GoogleOAuth2CodePayload.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Google.Requests; +namespace Moonlight.App.ApiClients.Google.Requests; public class GoogleOAuth2CodePayload { diff --git a/Moonlight/App/Models/IpLocate/Resources/IpLocate.cs b/Moonlight/App/ApiClients/IpLocate/Resources/IpLocate.cs similarity index 94% rename from Moonlight/App/Models/IpLocate/Resources/IpLocate.cs rename to Moonlight/App/ApiClients/IpLocate/Resources/IpLocate.cs index 58e6ced2..d75717cf 100644 --- a/Moonlight/App/Models/IpLocate/Resources/IpLocate.cs +++ b/Moonlight/App/ApiClients/IpLocate/Resources/IpLocate.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.IpLocate.Resources; +namespace Moonlight.App.ApiClients.IpLocate.Resources; public class IpLocate { diff --git a/Moonlight/App/Helpers/PaperApiHelper.cs b/Moonlight/App/ApiClients/Paper/PaperApiHelper.cs similarity index 96% rename from Moonlight/App/Helpers/PaperApiHelper.cs rename to Moonlight/App/ApiClients/Paper/PaperApiHelper.cs index c8e1a3f8..601e1ac2 100644 --- a/Moonlight/App/Helpers/PaperApiHelper.cs +++ b/Moonlight/App/ApiClients/Paper/PaperApiHelper.cs @@ -2,7 +2,7 @@ using Newtonsoft.Json; using RestSharp; -namespace Moonlight.App.Helpers; +namespace Moonlight.App.ApiClients.Paper; public class PaperApiHelper { diff --git a/Moonlight/App/Exceptions/PaperException.cs b/Moonlight/App/ApiClients/Paper/PaperException.cs similarity index 84% rename from Moonlight/App/Exceptions/PaperException.cs rename to Moonlight/App/ApiClients/Paper/PaperException.cs index 02dbc4cf..da62fcd2 100644 --- a/Moonlight/App/Exceptions/PaperException.cs +++ b/Moonlight/App/ApiClients/Paper/PaperException.cs @@ -1,4 +1,4 @@ -namespace Moonlight.App.Exceptions; +namespace Moonlight.App.ApiClients.Paper; public class PaperException : Exception { diff --git a/Moonlight/App/Models/Paper/Resources/PaperBuilds.cs b/Moonlight/App/ApiClients/Paper/Resources/PaperBuilds.cs similarity index 87% rename from Moonlight/App/Models/Paper/Resources/PaperBuilds.cs rename to Moonlight/App/ApiClients/Paper/Resources/PaperBuilds.cs index 63b9cb4d..393b506d 100644 --- a/Moonlight/App/Models/Paper/Resources/PaperBuilds.cs +++ b/Moonlight/App/ApiClients/Paper/Resources/PaperBuilds.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Paper.Resources; +namespace Moonlight.App.ApiClients.Paper.Resources; public class PaperBuilds { diff --git a/Moonlight/App/Models/Paper/Resources/PaperVersions.cs b/Moonlight/App/ApiClients/Paper/Resources/PaperVersions.cs similarity index 88% rename from Moonlight/App/Models/Paper/Resources/PaperVersions.cs rename to Moonlight/App/ApiClients/Paper/Resources/PaperVersions.cs index 0cd29e5f..573b5786 100644 --- a/Moonlight/App/Models/Paper/Resources/PaperVersions.cs +++ b/Moonlight/App/ApiClients/Paper/Resources/PaperVersions.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Paper.Resources; +namespace Moonlight.App.ApiClients.Paper.Resources; public class PaperVersions { diff --git a/Moonlight/App/Models/Wings/PowerSignal.cs b/Moonlight/App/ApiClients/Wings/PowerSignal.cs similarity index 61% rename from Moonlight/App/Models/Wings/PowerSignal.cs rename to Moonlight/App/ApiClients/Wings/PowerSignal.cs index 921adc8e..b036b9d5 100644 --- a/Moonlight/App/Models/Wings/PowerSignal.cs +++ b/Moonlight/App/ApiClients/Wings/PowerSignal.cs @@ -1,4 +1,4 @@ -namespace Moonlight.App.Models.Wings; +namespace Moonlight.App.ApiClients.Wings; public enum PowerSignal { diff --git a/Moonlight/App/Models/Wings/Requests/CompressFiles.cs b/Moonlight/App/ApiClients/Wings/Requests/CompressFiles.cs similarity index 78% rename from Moonlight/App/Models/Wings/Requests/CompressFiles.cs rename to Moonlight/App/ApiClients/Wings/Requests/CompressFiles.cs index 2c866671..4a90c9dd 100644 --- a/Moonlight/App/Models/Wings/Requests/CompressFiles.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/CompressFiles.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class CompressFiles { diff --git a/Moonlight/App/Models/Wings/Requests/CreateBackup.cs b/Moonlight/App/ApiClients/Wings/Requests/CreateBackup.cs similarity index 83% rename from Moonlight/App/Models/Wings/Requests/CreateBackup.cs rename to Moonlight/App/ApiClients/Wings/Requests/CreateBackup.cs index 779abf1f..0d9aaae9 100644 --- a/Moonlight/App/Models/Wings/Requests/CreateBackup.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/CreateBackup.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class CreateBackup { diff --git a/Moonlight/App/Models/Wings/Requests/CreateDirectory.cs b/Moonlight/App/ApiClients/Wings/Requests/CreateDirectory.cs similarity index 79% rename from Moonlight/App/Models/Wings/Requests/CreateDirectory.cs rename to Moonlight/App/ApiClients/Wings/Requests/CreateDirectory.cs index 1dc6617c..424fc962 100644 --- a/Moonlight/App/Models/Wings/Requests/CreateDirectory.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/CreateDirectory.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class CreateDirectory { diff --git a/Moonlight/App/Models/Wings/Requests/CreateServer.cs b/Moonlight/App/ApiClients/Wings/Requests/CreateServer.cs similarity index 80% rename from Moonlight/App/Models/Wings/Requests/CreateServer.cs rename to Moonlight/App/ApiClients/Wings/Requests/CreateServer.cs index 7e939a4a..2cf980aa 100644 --- a/Moonlight/App/Models/Wings/Requests/CreateServer.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/CreateServer.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class CreateServer { diff --git a/Moonlight/App/Models/Wings/Requests/DecompressFile.cs b/Moonlight/App/ApiClients/Wings/Requests/DecompressFile.cs similarity index 78% rename from Moonlight/App/Models/Wings/Requests/DecompressFile.cs rename to Moonlight/App/ApiClients/Wings/Requests/DecompressFile.cs index 5fb7073d..298ec83a 100644 --- a/Moonlight/App/Models/Wings/Requests/DecompressFile.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/DecompressFile.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class DecompressFile { diff --git a/Moonlight/App/Models/Wings/Requests/DeleteFiles.cs b/Moonlight/App/ApiClients/Wings/Requests/DeleteFiles.cs similarity index 79% rename from Moonlight/App/Models/Wings/Requests/DeleteFiles.cs rename to Moonlight/App/ApiClients/Wings/Requests/DeleteFiles.cs index 9988ff0f..82d0d389 100644 --- a/Moonlight/App/Models/Wings/Requests/DeleteFiles.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/DeleteFiles.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class DeleteFiles { diff --git a/Moonlight/App/Models/Wings/Requests/RenameFiles.cs b/Moonlight/App/ApiClients/Wings/Requests/RenameFiles.cs similarity index 87% rename from Moonlight/App/Models/Wings/Requests/RenameFiles.cs rename to Moonlight/App/ApiClients/Wings/Requests/RenameFiles.cs index f565a32d..57c37bb7 100644 --- a/Moonlight/App/Models/Wings/Requests/RenameFiles.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/RenameFiles.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class RenameFiles { diff --git a/Moonlight/App/Models/Wings/Requests/RestoreBackup.cs b/Moonlight/App/ApiClients/Wings/Requests/RestoreBackup.cs similarity index 85% rename from Moonlight/App/Models/Wings/Requests/RestoreBackup.cs rename to Moonlight/App/ApiClients/Wings/Requests/RestoreBackup.cs index fcd7b8a1..18f0f51c 100644 --- a/Moonlight/App/Models/Wings/Requests/RestoreBackup.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/RestoreBackup.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class RestoreBackup { diff --git a/Moonlight/App/Models/Wings/Requests/ServerPower.cs b/Moonlight/App/ApiClients/Wings/Requests/ServerPower.cs similarity index 70% rename from Moonlight/App/Models/Wings/Requests/ServerPower.cs rename to Moonlight/App/ApiClients/Wings/Requests/ServerPower.cs index e877fb71..75ee64ce 100644 --- a/Moonlight/App/Models/Wings/Requests/ServerPower.cs +++ b/Moonlight/App/ApiClients/Wings/Requests/ServerPower.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Requests; +namespace Moonlight.App.ApiClients.Wings.Requests; public class ServerPower { diff --git a/Moonlight/App/Models/Wings/Resources/ListDirectory.cs b/Moonlight/App/ApiClients/Wings/Resources/ListDirectory.cs similarity index 92% rename from Moonlight/App/Models/Wings/Resources/ListDirectory.cs rename to Moonlight/App/ApiClients/Wings/Resources/ListDirectory.cs index d99e15d7..304c7656 100644 --- a/Moonlight/App/Models/Wings/Resources/ListDirectory.cs +++ b/Moonlight/App/ApiClients/Wings/Resources/ListDirectory.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Resources; +namespace Moonlight.App.ApiClients.Wings.Resources; public class ListDirectory { diff --git a/Moonlight/App/Models/Wings/Resources/ServerDetails.cs b/Moonlight/App/ApiClients/Wings/Resources/ServerDetails.cs similarity index 95% rename from Moonlight/App/Models/Wings/Resources/ServerDetails.cs rename to Moonlight/App/ApiClients/Wings/Resources/ServerDetails.cs index b14ac561..6756128a 100644 --- a/Moonlight/App/Models/Wings/Resources/ServerDetails.cs +++ b/Moonlight/App/ApiClients/Wings/Resources/ServerDetails.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Resources; +namespace Moonlight.App.ApiClients.Wings.Resources; public class ServerDetails { diff --git a/Moonlight/App/Models/Wings/Resources/SystemStatus.cs b/Moonlight/App/ApiClients/Wings/Resources/SystemStatus.cs similarity index 89% rename from Moonlight/App/Models/Wings/Resources/SystemStatus.cs rename to Moonlight/App/ApiClients/Wings/Resources/SystemStatus.cs index 26a30dea..66b4d4cc 100644 --- a/Moonlight/App/Models/Wings/Resources/SystemStatus.cs +++ b/Moonlight/App/ApiClients/Wings/Resources/SystemStatus.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Moonlight.App.Models.Wings.Resources; +namespace Moonlight.App.ApiClients.Wings.Resources; public class SystemStatus { diff --git a/Moonlight/App/Helpers/WingsApiHelper.cs b/Moonlight/App/ApiClients/Wings/WingsApiHelper.cs similarity index 99% rename from Moonlight/App/Helpers/WingsApiHelper.cs rename to Moonlight/App/ApiClients/Wings/WingsApiHelper.cs index 9611d645..bf727d53 100644 --- a/Moonlight/App/Helpers/WingsApiHelper.cs +++ b/Moonlight/App/ApiClients/Wings/WingsApiHelper.cs @@ -3,7 +3,7 @@ using Moonlight.App.Exceptions; using Newtonsoft.Json; using RestSharp; -namespace Moonlight.App.Helpers; +namespace Moonlight.App.ApiClients.Wings; public class WingsApiHelper { diff --git a/Moonlight/App/Exceptions/WingsException.cs b/Moonlight/App/ApiClients/Wings/WingsException.cs similarity index 93% rename from Moonlight/App/Exceptions/WingsException.cs rename to Moonlight/App/ApiClients/Wings/WingsException.cs index 92b83b3f..5cb1d789 100644 --- a/Moonlight/App/Exceptions/WingsException.cs +++ b/Moonlight/App/ApiClients/Wings/WingsException.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Moonlight.App.Exceptions; +namespace Moonlight.App.ApiClients.Wings; [Serializable] public class WingsException : Exception diff --git a/Moonlight/App/Exceptions/PleskException.cs b/Moonlight/App/Exceptions/PleskException.cs deleted file mode 100644 index 5ad8aa82..00000000 --- a/Moonlight/App/Exceptions/PleskException.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Runtime.Serialization; - -namespace Moonlight.App.Exceptions; - -[Serializable] -public class PleskException : Exception -{ - public int StatusCode { get; set; } - - public PleskException() - { - } - - public PleskException(string message, int statusCode) : base(message) - { - StatusCode = statusCode; - } - - public PleskException(string message) : base(message) - { - } - - public PleskException(string message, Exception inner) : base(message, inner) - { - } - - protected PleskException( - SerializationInfo info, - StreamingContext context) : base(info, context) - { - } -} \ No newline at end of file diff --git a/Moonlight/App/Helpers/ConfigUtils.cs b/Moonlight/App/Helpers/ConfigUtils.cs deleted file mode 100644 index 1f5196a4..00000000 --- a/Moonlight/App/Helpers/ConfigUtils.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Helpers; - -public class ConfigUtils -{ - public static void SaveConfigurationAsJson(IConfiguration configuration, string filePath) - { - // Serialize the configuration to a JSON object - var jsonObject = new Dictionary(); - foreach (var section in configuration.GetChildren()) - { - SerializeSection(section, jsonObject); - } - - // Convert the JSON object to a JSON string - var jsonString = JsonConvert.SerializeObject(jsonObject); - - // Write the JSON string to a file - File.WriteAllText(filePath, jsonString); - } - - private static void SerializeSection(IConfigurationSection section, IDictionary jsonObject) - { - var children = section.GetChildren(); - - if (!children.Any()) - { - // Leaf node - jsonObject[section.Key] = section.Value; - } - else - { - // Non-leaf node - var childObject = new Dictionary(); - foreach (var childSection in children) - { - SerializeSection(childSection, childObject); - } - jsonObject[section.Key] = childObject; - } - } -} \ No newline at end of file diff --git a/Moonlight/App/Helpers/Files/WingsFileAccess.cs b/Moonlight/App/Helpers/Files/WingsFileAccess.cs index b1c2296c..47acdc9d 100644 --- a/Moonlight/App/Helpers/Files/WingsFileAccess.cs +++ b/Moonlight/App/Helpers/Files/WingsFileAccess.cs @@ -1,7 +1,8 @@ using System.Web; +using Moonlight.App.ApiClients.Wings; +using Moonlight.App.ApiClients.Wings.Requests; +using Moonlight.App.ApiClients.Wings.Resources; using Moonlight.App.Database.Entities; -using Moonlight.App.Models.Wings.Requests; -using Moonlight.App.Models.Wings.Resources; using Moonlight.App.Services; using RestSharp; diff --git a/Moonlight/App/Http/Controllers/Api/Moonlight/ResourcesController.cs b/Moonlight/App/Http/Controllers/Api/Moonlight/ResourcesController.cs index 24dbdc26..329fa63a 100644 --- a/Moonlight/App/Http/Controllers/Api/Moonlight/ResourcesController.cs +++ b/Moonlight/App/Http/Controllers/Api/Moonlight/ResourcesController.cs @@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Mvc; using Moonlight.App.Helpers; using Moonlight.App.Models.Misc; using Moonlight.App.Services; +using Moonlight.App.Services.Files; using Moonlight.App.Services.LogServices; namespace Moonlight.App.Http.Controllers.Api.Moonlight; diff --git a/Moonlight/App/Models/Plesk/Requests/CliCall.cs b/Moonlight/App/Models/Plesk/Requests/CliCall.cs deleted file mode 100644 index c6fb06ee..00000000 --- a/Moonlight/App/Models/Plesk/Requests/CliCall.cs +++ /dev/null @@ -1,10 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Requests; - -public class CliCall -{ - [JsonProperty("params")] public List Params { get; set; } = new(); - - [JsonProperty("env")] public Dictionary Env { get; set; } = new(); -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Requests/CreateDatabase.cs b/Moonlight/App/Models/Plesk/Requests/CreateDatabase.cs deleted file mode 100644 index 11c9a0cb..00000000 --- a/Moonlight/App/Models/Plesk/Requests/CreateDatabase.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Requests; - -public class CreateDatabase -{ - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - - [JsonProperty("parent_domain")] public ParentDomainModel ParentDomain { get; set; } = new(); - - [JsonProperty("server_id")] - public int ServerId { get; set; } - - public class ParentDomainModel - { - [JsonProperty("name")] - public string Name { get; set; } - } -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Requests/CreateDatabaseUser.cs b/Moonlight/App/Models/Plesk/Requests/CreateDatabaseUser.cs deleted file mode 100644 index eca5dd38..00000000 --- a/Moonlight/App/Models/Plesk/Requests/CreateDatabaseUser.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Requests; - -public class CreateDatabaseUser -{ - [JsonProperty("login")] - public string Login { get; set; } - - [JsonProperty("password")] - public string Password { get; set; } - - [JsonProperty("database_id")] - public int DatabaseId { get; set; } -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Requests/CreateDomain.cs b/Moonlight/App/Models/Plesk/Requests/CreateDomain.cs deleted file mode 100644 index 1ef11caa..00000000 --- a/Moonlight/App/Models/Plesk/Requests/CreateDomain.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Requests; - -public class CreateDomain -{ - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("description")] - public string Description { get; set; } - - [JsonProperty("hosting_type")] - public string HostingType { get; set; } - - [JsonProperty("hosting_settings")] - public HostingSettingsModel HostingSettings { get; set; } - - [JsonProperty("owner_client")] - public OwnerClientModel OwnerClient { get; set; } - - [JsonProperty("plan")] - public PlanModel Plan { get; set; } - - public partial class HostingSettingsModel - { - [JsonProperty("ftp_login")] - public string FtpLogin { get; set; } - - [JsonProperty("ftp_password")] - public string FtpPassword { get; set; } - } - - public partial class OwnerClientModel - { - [JsonProperty("id")] - public long Id { get; set; } - } - - public partial class PlanModel - { - [JsonProperty("name")] - public string Name { get; set; } - } -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Resources/CliResult.cs b/Moonlight/App/Models/Plesk/Resources/CliResult.cs deleted file mode 100644 index 255ff8d4..00000000 --- a/Moonlight/App/Models/Plesk/Resources/CliResult.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Resources; - -public class CliResult -{ - [JsonProperty("code")] - public int Code { get; set; } - - [JsonProperty("stdout")] public string Stdout { get; set; } = ""; - - [JsonProperty("stderr")] public string Stderr { get; set; } = ""; -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Resources/Client.cs b/Moonlight/App/Models/Plesk/Resources/Client.cs deleted file mode 100644 index 8bf96ae2..00000000 --- a/Moonlight/App/Models/Plesk/Resources/Client.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Resources; - -public class Client -{ - [JsonProperty("id")] - public int Id { get; set; } - - [JsonProperty("created")] - public DateTimeOffset Created { get; set; } - - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("company")] - public string Company { get; set; } - - [JsonProperty("login")] - public string Login { get; set; } - - [JsonProperty("status")] - public long Status { get; set; } - - [JsonProperty("email")] - public string Email { get; set; } - - [JsonProperty("locale")] - public string Locale { get; set; } - - [JsonProperty("guid")] - public Guid Guid { get; set; } - - [JsonProperty("owner_login")] - public string OwnerLogin { get; set; } - - [JsonProperty("external_id")] - public string ExternalId { get; set; } - - [JsonProperty("description")] - public string Description { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Resources/CreateResult.cs b/Moonlight/App/Models/Plesk/Resources/CreateResult.cs deleted file mode 100644 index 54415aed..00000000 --- a/Moonlight/App/Models/Plesk/Resources/CreateResult.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Resources; - -public class CreateResult -{ - [JsonProperty("id")] - public int Id { get; set; } - - [JsonProperty("guid")] - public Guid Guid { get; set; } -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Resources/Database.cs b/Moonlight/App/Models/Plesk/Resources/Database.cs deleted file mode 100644 index 27a78993..00000000 --- a/Moonlight/App/Models/Plesk/Resources/Database.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Resources; - -public class Database -{ - [JsonProperty("id")] - public int Id { get; set; } - - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Resources/DatabaseServer.cs b/Moonlight/App/Models/Plesk/Resources/DatabaseServer.cs deleted file mode 100644 index a16ceabd..00000000 --- a/Moonlight/App/Models/Plesk/Resources/DatabaseServer.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Resources; - -public class DatabaseServer -{ - [JsonProperty("id")] - public int Id { get; set; } - - [JsonProperty("host")] - public string Host { get; set; } - - [JsonProperty("port")] - public int Port { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - - [JsonProperty("status")] - public string Status { get; set; } - - [JsonProperty("db_count")] - public int DbCount { get; set; } - - [JsonProperty("is_default")] - public bool IsDefault { get; set; } - - [JsonProperty("is_local")] - public bool IsLocal { get; set; } -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Resources/DatabaseUser.cs b/Moonlight/App/Models/Plesk/Resources/DatabaseUser.cs deleted file mode 100644 index 033a763b..00000000 --- a/Moonlight/App/Models/Plesk/Resources/DatabaseUser.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Resources; - -public class DatabaseUser -{ - [JsonProperty("id")] - public int Id { get; set; } - - [JsonProperty("login")] - public string Login { get; set; } - - [JsonProperty("database_id")] - public int DatabaseId { get; set; } -} \ No newline at end of file diff --git a/Moonlight/App/Models/Plesk/Resources/ServerStatus.cs b/Moonlight/App/Models/Plesk/Resources/ServerStatus.cs deleted file mode 100644 index 32962dbe..00000000 --- a/Moonlight/App/Models/Plesk/Resources/ServerStatus.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Newtonsoft.Json; - -namespace Moonlight.App.Models.Plesk.Resources; - -public class ServerStatus -{ - [JsonProperty("platform")] - public string Platform { get; set; } - - [JsonProperty("hostname")] - public string Hostname { get; set; } - - [JsonProperty("guid")] - public Guid Guid { get; set; } - - [JsonProperty("panel_version")] - public string PanelVersion { get; set; } -} \ No newline at end of file diff --git a/Moonlight/App/Services/CleanupService.cs b/Moonlight/App/Services/Background/CleanupService.cs similarity index 98% rename from Moonlight/App/Services/CleanupService.cs rename to Moonlight/App/Services/Background/CleanupService.cs index 1ccb78c9..6491db28 100644 --- a/Moonlight/App/Services/CleanupService.cs +++ b/Moonlight/App/Services/Background/CleanupService.cs @@ -1,16 +1,15 @@ -using System.Diagnostics; +using Logging.Net; using Microsoft.EntityFrameworkCore; using MineStatLib; +using Moonlight.App.ApiClients.Daemon.Resources; +using Moonlight.App.ApiClients.Wings; using Moonlight.App.Database.Entities; -using Moonlight.App.Models.Daemon.Resources; -using Moonlight.App.Models.Wings; +using Moonlight.App.Events; using Moonlight.App.Repositories; using Moonlight.App.Repositories.Servers; -using Logging.Net; -using Moonlight.App.Events; using Newtonsoft.Json; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Background; public class CleanupService { diff --git a/Moonlight/App/Services/DiscordNotificationService.cs b/Moonlight/App/Services/Background/DiscordNotificationService.cs similarity index 97% rename from Moonlight/App/Services/DiscordNotificationService.cs rename to Moonlight/App/Services/Background/DiscordNotificationService.cs index c0e1e9db..f8157ad4 100644 --- a/Moonlight/App/Services/DiscordNotificationService.cs +++ b/Moonlight/App/Services/Background/DiscordNotificationService.cs @@ -3,8 +3,9 @@ using Discord.Webhook; using Logging.Net; using Moonlight.App.Database.Entities; using Moonlight.App.Events; +using Moonlight.App.Services.Files; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Background; public class DiscordNotificationService { diff --git a/Moonlight/App/Services/ConfigService.cs b/Moonlight/App/Services/ConfigService.cs index 6aa11c43..94275e32 100644 --- a/Moonlight/App/Services/ConfigService.cs +++ b/Moonlight/App/Services/ConfigService.cs @@ -2,6 +2,7 @@ using Logging.Net; using Microsoft.Extensions.Primitives; using Moonlight.App.Helpers; +using Moonlight.App.Services.Files; namespace Moonlight.App.Services; @@ -74,9 +75,4 @@ public class ConfigService : IConfiguration get => Configuration[key]; set => Configuration[key] = value; } - - public void Save() - { - ConfigUtils.SaveConfigurationAsJson(Configuration, "..\\..\\appsettings.json"); - } } \ No newline at end of file diff --git a/Moonlight/App/Services/DiscordBot/Modules/ServerListComponentHandlerModule.cs b/Moonlight/App/Services/DiscordBot/Modules/ServerListComponentHandlerModule.cs index 1a529bc0..24bcb79d 100644 --- a/Moonlight/App/Services/DiscordBot/Modules/ServerListComponentHandlerModule.cs +++ b/Moonlight/App/Services/DiscordBot/Modules/ServerListComponentHandlerModule.cs @@ -2,7 +2,7 @@ using Discord.WebSocket; using Logging.Net; using Microsoft.EntityFrameworkCore; -using Moonlight.App.Models.Wings; +using Moonlight.App.ApiClients.Wings; using Moonlight.App.Repositories; using Moonlight.App.Repositories.Servers; diff --git a/Moonlight/App/Services/BucketService.cs b/Moonlight/App/Services/Files/BucketService.cs similarity index 94% rename from Moonlight/App/Services/BucketService.cs rename to Moonlight/App/Services/Files/BucketService.cs index a1417dfa..e85fdaa6 100644 --- a/Moonlight/App/Services/BucketService.cs +++ b/Moonlight/App/Services/Files/BucketService.cs @@ -1,7 +1,6 @@ -using Logging.Net; -using Moonlight.App.Helpers; +using Moonlight.App.Helpers; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Files; public class BucketService { diff --git a/Moonlight/App/Services/ResourceService.cs b/Moonlight/App/Services/Files/ResourceService.cs similarity index 94% rename from Moonlight/App/Services/ResourceService.cs rename to Moonlight/App/Services/Files/ResourceService.cs index 8b126340..5858fa9f 100644 --- a/Moonlight/App/Services/ResourceService.cs +++ b/Moonlight/App/Services/Files/ResourceService.cs @@ -1,6 +1,6 @@ using Moonlight.App.Database.Entities; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Files; public class ResourceService { diff --git a/Moonlight/App/Services/StorageService.cs b/Moonlight/App/Services/Files/StorageService.cs similarity index 97% rename from Moonlight/App/Services/StorageService.cs rename to Moonlight/App/Services/Files/StorageService.cs index f9474581..1bae49cc 100644 --- a/Moonlight/App/Services/StorageService.cs +++ b/Moonlight/App/Services/Files/StorageService.cs @@ -1,7 +1,7 @@ using Logging.Net; using Moonlight.App.Helpers; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Files; public class StorageService { diff --git a/Moonlight/App/Services/LogService.cs b/Moonlight/App/Services/LogServices/LogService.cs similarity index 95% rename from Moonlight/App/Services/LogService.cs rename to Moonlight/App/Services/LogServices/LogService.cs index 87a30a5f..10b1925a 100644 --- a/Moonlight/App/Services/LogService.cs +++ b/Moonlight/App/Services/LogServices/LogService.cs @@ -2,7 +2,7 @@ using Moonlight.App.Helpers; using Moonlight.App.Models.Misc; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.LogServices; public class LogService { diff --git a/Moonlight/App/Services/MailService.cs b/Moonlight/App/Services/Mail/MailService.cs similarity index 96% rename from Moonlight/App/Services/MailService.cs rename to Moonlight/App/Services/Mail/MailService.cs index 9bcab325..85e2d60c 100644 --- a/Moonlight/App/Services/MailService.cs +++ b/Moonlight/App/Services/Mail/MailService.cs @@ -1,13 +1,11 @@ -using System.Net; -using System.Net.Mail; -using Logging.Net; +using Logging.Net; using MimeKit; using Moonlight.App.Database.Entities; using Moonlight.App.Exceptions; using Moonlight.App.Helpers; using SmtpClient = MailKit.Net.Smtp.SmtpClient; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Mail; public class MailService { diff --git a/Moonlight/App/Services/TrashMailDetectorService.cs b/Moonlight/App/Services/Mail/TrashMailDetectorService.cs similarity index 96% rename from Moonlight/App/Services/TrashMailDetectorService.cs rename to Moonlight/App/Services/Mail/TrashMailDetectorService.cs index eba090b5..35d57aaf 100644 --- a/Moonlight/App/Services/TrashMailDetectorService.cs +++ b/Moonlight/App/Services/Mail/TrashMailDetectorService.cs @@ -1,7 +1,7 @@ using System.Net; using Logging.Net; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Mail; public class TrashMailDetectorService { diff --git a/Moonlight/App/Services/FabricService.cs b/Moonlight/App/Services/Minecraft/FabricService.cs similarity index 98% rename from Moonlight/App/Services/FabricService.cs rename to Moonlight/App/Services/Minecraft/FabricService.cs index 650ce155..8498a93b 100644 --- a/Moonlight/App/Services/FabricService.cs +++ b/Moonlight/App/Services/Minecraft/FabricService.cs @@ -3,7 +3,7 @@ using Moonlight.App.Helpers; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Minecraft; public class FabricService { diff --git a/Moonlight/App/Services/ForgeService.cs b/Moonlight/App/Services/Minecraft/ForgeService.cs similarity index 93% rename from Moonlight/App/Services/ForgeService.cs rename to Moonlight/App/Services/Minecraft/ForgeService.cs index 6171ef44..a268ec5d 100644 --- a/Moonlight/App/Services/ForgeService.cs +++ b/Moonlight/App/Services/Minecraft/ForgeService.cs @@ -1,7 +1,6 @@ using System.Text; -using Moonlight.App.Helpers; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Minecraft; public class ForgeService { diff --git a/Moonlight/App/Services/PaperService.cs b/Moonlight/App/Services/Minecraft/PaperService.cs similarity index 79% rename from Moonlight/App/Services/PaperService.cs rename to Moonlight/App/Services/Minecraft/PaperService.cs index 57d93d2c..239f9d6d 100644 --- a/Moonlight/App/Services/PaperService.cs +++ b/Moonlight/App/Services/Minecraft/PaperService.cs @@ -1,7 +1,7 @@ -using Moonlight.App.Helpers; -using Moonlight.App.Models.Paper.Resources; +using Moonlight.App.ApiClients.Paper; +using Moonlight.App.ApiClients.Paper.Resources; -namespace Moonlight.App.Services; +namespace Moonlight.App.Services.Minecraft; public class PaperService { diff --git a/Moonlight/App/Services/NodeService.cs b/Moonlight/App/Services/NodeService.cs index 87f0c307..a2607086 100644 --- a/Moonlight/App/Services/NodeService.cs +++ b/Moonlight/App/Services/NodeService.cs @@ -1,7 +1,9 @@ -using Moonlight.App.Database.Entities; +using Moonlight.App.ApiClients.Daemon; +using Moonlight.App.ApiClients.Daemon.Resources; +using Moonlight.App.ApiClients.Wings; +using Moonlight.App.ApiClients.Wings.Resources; +using Moonlight.App.Database.Entities; using Moonlight.App.Helpers; -using Moonlight.App.Models.Daemon.Resources; -using Moonlight.App.Models.Wings.Resources; using Moonlight.App.Repositories; namespace Moonlight.App.Services; diff --git a/Moonlight/App/Services/OAuth2/DiscordOAuth2Service.cs b/Moonlight/App/Services/OAuth2/DiscordOAuth2Service.cs index 4971b933..c387999e 100644 --- a/Moonlight/App/Services/OAuth2/DiscordOAuth2Service.cs +++ b/Moonlight/App/Services/OAuth2/DiscordOAuth2Service.cs @@ -2,7 +2,6 @@ using Logging.Net; using Moonlight.App.Database.Entities; using Moonlight.App.Exceptions; -using Moonlight.App.Models.Google.Requests; using Moonlight.App.Models.Misc; using RestSharp; diff --git a/Moonlight/App/Services/OAuth2/GoogleOAuth2Service.cs b/Moonlight/App/Services/OAuth2/GoogleOAuth2Service.cs index de742034..391308ab 100644 --- a/Moonlight/App/Services/OAuth2/GoogleOAuth2Service.cs +++ b/Moonlight/App/Services/OAuth2/GoogleOAuth2Service.cs @@ -1,8 +1,8 @@ using System.Text; using Logging.Net; +using Moonlight.App.ApiClients.Google.Requests; using Moonlight.App.Database.Entities; using Moonlight.App.Exceptions; -using Moonlight.App.Models.Google.Requests; using RestSharp; namespace Moonlight.App.Services.OAuth2; diff --git a/Moonlight/App/Services/ServerService.cs b/Moonlight/App/Services/ServerService.cs index d61ae7d4..fb9c4db0 100644 --- a/Moonlight/App/Services/ServerService.cs +++ b/Moonlight/App/Services/ServerService.cs @@ -1,4 +1,7 @@ using Microsoft.EntityFrameworkCore; +using Moonlight.App.ApiClients.Wings; +using Moonlight.App.ApiClients.Wings.Requests; +using Moonlight.App.ApiClients.Wings.Resources; using Moonlight.App.Database; using Moonlight.App.Database.Entities; using Moonlight.App.Events; @@ -6,9 +9,6 @@ using Moonlight.App.Exceptions; using Moonlight.App.Helpers; using Moonlight.App.Helpers.Files; using Moonlight.App.Models.Misc; -using Moonlight.App.Models.Wings; -using Moonlight.App.Models.Wings.Requests; -using Moonlight.App.Models.Wings.Resources; using Moonlight.App.Repositories; using Moonlight.App.Repositories.Servers; using Moonlight.App.Services.LogServices; diff --git a/Moonlight/App/Services/Sessions/IpLocateService.cs b/Moonlight/App/Services/Sessions/IpLocateService.cs index 26af179d..95d59a8c 100644 --- a/Moonlight/App/Services/Sessions/IpLocateService.cs +++ b/Moonlight/App/Services/Sessions/IpLocateService.cs @@ -1,5 +1,5 @@ using System.Net; -using Moonlight.App.Models.IpLocate.Resources; +using Moonlight.App.ApiClients.IpLocate.Resources; using Newtonsoft.Json; namespace Moonlight.App.Services.Sessions; diff --git a/Moonlight/App/Services/SupportChat/SupportChatAdminService.cs b/Moonlight/App/Services/SupportChat/SupportChatAdminService.cs index d77b355e..d9acc9ef 100644 --- a/Moonlight/App/Services/SupportChat/SupportChatAdminService.cs +++ b/Moonlight/App/Services/SupportChat/SupportChatAdminService.cs @@ -1,6 +1,7 @@ using Microsoft.AspNetCore.Components.Forms; using Moonlight.App.Database.Entities; using Moonlight.App.Events; +using Moonlight.App.Services.Files; using Moonlight.App.Services.Sessions; namespace Moonlight.App.Services.SupportChat; diff --git a/Moonlight/App/Services/SupportChat/SupportChatClientService.cs b/Moonlight/App/Services/SupportChat/SupportChatClientService.cs index c6a10f9c..1c4918fc 100644 --- a/Moonlight/App/Services/SupportChat/SupportChatClientService.cs +++ b/Moonlight/App/Services/SupportChat/SupportChatClientService.cs @@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Components.Forms; using Moonlight.App.Database.Entities; using Moonlight.App.Events; +using Moonlight.App.Services.Files; using Moonlight.App.Services.Sessions; namespace Moonlight.App.Services.SupportChat; diff --git a/Moonlight/App/Services/UserService.cs b/Moonlight/App/Services/UserService.cs index 81633b14..940f3c09 100644 --- a/Moonlight/App/Services/UserService.cs +++ b/Moonlight/App/Services/UserService.cs @@ -6,6 +6,7 @@ using Moonlight.App.Helpers; using Moonlight.App.Models.Misc; using Moonlight.App.Repositories; using Moonlight.App.Services.LogServices; +using Moonlight.App.Services.Mail; using Moonlight.App.Services.Sessions; namespace Moonlight.App.Services; diff --git a/Moonlight/App/Services/WebSpaceService.cs b/Moonlight/App/Services/WebSpaceService.cs index 91a3d718..1f1820b8 100644 --- a/Moonlight/App/Services/WebSpaceService.cs +++ b/Moonlight/App/Services/WebSpaceService.cs @@ -1,13 +1,10 @@ -using Logging.Net; -using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; using Moonlight.App.ApiClients.CloudPanel; using Moonlight.App.ApiClients.CloudPanel.Requests; using Moonlight.App.Database.Entities; using Moonlight.App.Exceptions; using Moonlight.App.Helpers; using Moonlight.App.Helpers.Files; -using Moonlight.App.Models.Plesk.Requests; -using Moonlight.App.Models.Plesk.Resources; using Moonlight.App.Repositories; using FileAccess = Moonlight.App.Helpers.Files.FileAccess; diff --git a/Moonlight/Moonlight.csproj b/Moonlight/Moonlight.csproj index a0d9713d..5b12d365 100644 --- a/Moonlight/Moonlight.csproj +++ b/Moonlight/Moonlight.csproj @@ -71,10 +71,8 @@ + - - - diff --git a/Moonlight/Program.cs b/Moonlight/Program.cs index c5da41f0..aba2a203 100644 --- a/Moonlight/Program.cs +++ b/Moonlight/Program.cs @@ -3,6 +3,9 @@ using BlazorTable; using CurrieTechnologies.Razor.SweetAlert2; using Logging.Net; using Moonlight.App.ApiClients.CloudPanel; +using Moonlight.App.ApiClients.Daemon; +using Moonlight.App.ApiClients.Paper; +using Moonlight.App.ApiClients.Wings; using Moonlight.App.Database; using Moonlight.App.Events; using Moonlight.App.Helpers; @@ -12,9 +15,13 @@ using Moonlight.App.Repositories.Domains; using Moonlight.App.Repositories.LogEntries; using Moonlight.App.Repositories.Servers; using Moonlight.App.Services; +using Moonlight.App.Services.Background; using Moonlight.App.Services.DiscordBot; +using Moonlight.App.Services.Files; using Moonlight.App.Services.Interop; using Moonlight.App.Services.LogServices; +using Moonlight.App.Services.Mail; +using Moonlight.App.Services.Minecraft; using Moonlight.App.Services.Notifications; using Moonlight.App.Services.OAuth2; using Moonlight.App.Services.Sessions; diff --git a/Moonlight/Shared/Components/ErrorBoundaries/SoftErrorBoundary.razor b/Moonlight/Shared/Components/ErrorBoundaries/SoftErrorBoundary.razor index bff6a292..6a417c56 100644 --- a/Moonlight/Shared/Components/ErrorBoundaries/SoftErrorBoundary.razor +++ b/Moonlight/Shared/Components/ErrorBoundaries/SoftErrorBoundary.razor @@ -3,6 +3,7 @@ @using Moonlight.App.Services @using Logging.Net @using Moonlight.App.ApiClients.CloudPanel +@using Moonlight.App.ApiClients.Wings @inherits ErrorBoundaryBase @inject AlertService AlertService diff --git a/Moonlight/Shared/Components/ServerControl/ServerFiles.razor b/Moonlight/Shared/Components/ServerControl/ServerFiles.razor index 63a30dab..6267a9b8 100644 --- a/Moonlight/Shared/Components/ServerControl/ServerFiles.razor +++ b/Moonlight/Shared/Components/ServerControl/ServerFiles.razor @@ -3,6 +3,7 @@ @using Moonlight.App.Helpers @using Moonlight.App.Helpers.Files @using Moonlight.App.Services +@using Moonlight.App.ApiClients.Wings @inject WingsApiHelper WingsApiHelper @inject WingsJwtHelper WingsJwtHelper diff --git a/Moonlight/Shared/Components/ServerControl/Settings/FabricVersionSetting.razor b/Moonlight/Shared/Components/ServerControl/Settings/FabricVersionSetting.razor index 0a22b159..ca337729 100644 --- a/Moonlight/Shared/Components/ServerControl/Settings/FabricVersionSetting.razor +++ b/Moonlight/Shared/Components/ServerControl/Settings/FabricVersionSetting.razor @@ -4,6 +4,7 @@ @using Moonlight.App.Repositories @using Moonlight.App.Repositories.Servers @using Moonlight.App.Helpers +@using Moonlight.App.Services.Minecraft @inject ServerService ServerService @inject ServerRepository ServerRepository diff --git a/Moonlight/Shared/Components/ServerControl/Settings/ForgeVersionSetting.razor b/Moonlight/Shared/Components/ServerControl/Settings/ForgeVersionSetting.razor index c1f75be4..115cd388 100644 --- a/Moonlight/Shared/Components/ServerControl/Settings/ForgeVersionSetting.razor +++ b/Moonlight/Shared/Components/ServerControl/Settings/ForgeVersionSetting.razor @@ -5,6 +5,7 @@ @using Moonlight.App.Repositories.Servers @using Logging.Net @using Moonlight.App.Helpers +@using Moonlight.App.Services.Minecraft @inject ServerService ServerService @inject ServerRepository ServerRepository diff --git a/Moonlight/Shared/Components/ServerControl/Settings/PaperVersionSetting.razor b/Moonlight/Shared/Components/ServerControl/Settings/PaperVersionSetting.razor index 1500f8f9..4d236d6d 100644 --- a/Moonlight/Shared/Components/ServerControl/Settings/PaperVersionSetting.razor +++ b/Moonlight/Shared/Components/ServerControl/Settings/PaperVersionSetting.razor @@ -4,6 +4,7 @@ @using Moonlight.App.Database.Entities @using Moonlight.App.Repositories @using Moonlight.App.Repositories.Servers +@using Moonlight.App.Services.Minecraft @inject ServerService ServerService @inject ServerRepository ServerRepository diff --git a/Moonlight/Shared/Components/WebsiteControl/WebSpaceDatabases.razor b/Moonlight/Shared/Components/WebsiteControl/WebSpaceDatabases.razor index 9645f2f1..7aa0b5cb 100644 --- a/Moonlight/Shared/Components/WebsiteControl/WebSpaceDatabases.razor +++ b/Moonlight/Shared/Components/WebsiteControl/WebSpaceDatabases.razor @@ -1,6 +1,5 @@ @using Moonlight.App.Database.Entities @using Moonlight.App.Models.Forms -@using Moonlight.App.Models.Plesk.Resources @using Moonlight.App.Services @inject SmartTranslateService SmartTranslateService diff --git a/Moonlight/Shared/Views/Admin/Nodes/Index.razor b/Moonlight/Shared/Views/Admin/Nodes/Index.razor index c18205b6..ad259578 100644 --- a/Moonlight/Shared/Views/Admin/Nodes/Index.razor +++ b/Moonlight/Shared/Views/Admin/Nodes/Index.razor @@ -1,12 +1,12 @@ @page "/admin/nodes" @using Moonlight.App.Repositories @using Moonlight.App.Database.Entities -@using Moonlight.App.Models.Wings.Resources @using Moonlight.Shared.Components.Navigations @using Moonlight.App.Services @using Moonlight.App.Services.Interop @using Logging.Net @using BlazorTable +@using Moonlight.App.ApiClients.Wings.Resources @inject NodeRepository NodeRepository @inject AlertService AlertService diff --git a/Moonlight/Shared/Views/Admin/Nodes/View.razor b/Moonlight/Shared/Views/Admin/Nodes/View.razor index 4b64b6dd..de6f61ab 100644 --- a/Moonlight/Shared/Views/Admin/Nodes/View.razor +++ b/Moonlight/Shared/Views/Admin/Nodes/View.razor @@ -3,9 +3,9 @@ @using Moonlight.App.Repositories @using Moonlight.App.Database.Entities @using Moonlight.App.Helpers -@using Moonlight.App.Models.Daemon.Resources -@using Moonlight.App.Models.Wings.Resources @using Moonlight.App.Services +@using Moonlight.App.ApiClients.Wings.Resources +@using Moonlight.App.ApiClients.Daemon.Resources @inject NodeRepository NodeRepository @inject NodeService NodeService diff --git a/Moonlight/Shared/Views/Admin/Servers/Cleanup.razor b/Moonlight/Shared/Views/Admin/Servers/Cleanup.razor index 360b8802..f4804368 100644 --- a/Moonlight/Shared/Views/Admin/Servers/Cleanup.razor +++ b/Moonlight/Shared/Views/Admin/Servers/Cleanup.razor @@ -4,6 +4,7 @@ @using Moonlight.App.Models.Misc @using Moonlight.App.Services.LogServices @using Moonlight.App.Events +@using Moonlight.App.Services.Background @inject CleanupService CleanupService @inject AuditLogService AuditLogService diff --git a/Moonlight/Shared/Views/Admin/Servers/Manager.razor b/Moonlight/Shared/Views/Admin/Servers/Manager.razor index 1c96755e..e399974b 100644 --- a/Moonlight/Shared/Views/Admin/Servers/Manager.razor +++ b/Moonlight/Shared/Views/Admin/Servers/Manager.razor @@ -4,10 +4,10 @@ @using Moonlight.App.Services @using Moonlight.App.Services.Interop @using Moonlight.App.Database.Entities -@using Moonlight.App.Models.Daemon.Resources -@using Moonlight.App.Models.Wings @using BlazorTable @using Microsoft.EntityFrameworkCore +@using Moonlight.App.ApiClients.Daemon.Resources +@using Moonlight.App.ApiClients.Wings @using Moonlight.App.Helpers @inject NodeRepository NodeRepository diff --git a/Moonlight/Shared/Views/Admin/Support/View.razor b/Moonlight/Shared/Views/Admin/Support/View.razor index a59c6a87..4edff144 100644 --- a/Moonlight/Shared/Views/Admin/Support/View.razor +++ b/Moonlight/Shared/Views/Admin/Support/View.razor @@ -5,6 +5,7 @@ @using Moonlight.App.Services @using Moonlight.App.Services.SupportChat @using System.Text.RegularExpressions +@using Moonlight.App.Services.Files @inject SupportChatAdminService AdminService @inject UserRepository UserRepository diff --git a/Moonlight/Shared/Views/Admin/Sys/Logs.razor b/Moonlight/Shared/Views/Admin/Sys/Logs.razor index deed919c..ac152a90 100644 --- a/Moonlight/Shared/Views/Admin/Sys/Logs.razor +++ b/Moonlight/Shared/Views/Admin/Sys/Logs.razor @@ -3,6 +3,7 @@ @using BlazorTable @using Moonlight.App.Models.Misc @using Moonlight.App.Services +@using Moonlight.App.Services.LogServices @using Moonlight.Shared.Components.Navigations @inject LogService LogService diff --git a/Moonlight/Shared/Views/Setup/Features.razor b/Moonlight/Shared/Views/Setup/Features.razor deleted file mode 100644 index 50febfd5..00000000 --- a/Moonlight/Shared/Views/Setup/Features.razor +++ /dev/null @@ -1,69 +0,0 @@ -@page "/setup/features" - -@using Moonlight.App.Services - -@inject ConfigService ConfigService -@inject NavigationManager NavigationManager -@inject SmartTranslateService SmartTranslateService - - -
-
- Configure features (3/4) -
-
-
- -
-
- - -
-
-
- -
-
-
- - - - -@code -{ - private bool EnableSupportChat - { - get => bool.Parse( - ConfigService - .GetSection("Moonlight") - .GetSection("SupportChat") - ["Enabled"]! - ); - set => ConfigService - .GetSection("Moonlight") - .GetSection("SupportChat") - ["Enabled"] = value.ToString(); - } - - private Task Save() - { - ConfigService.Save(); - NavigationManager.NavigateTo("/setup/final"); - - return Task.CompletedTask; - } -} \ No newline at end of file diff --git a/Moonlight/Shared/Views/Setup/Final.razor b/Moonlight/Shared/Views/Setup/Final.razor deleted file mode 100644 index b259144c..00000000 --- a/Moonlight/Shared/Views/Setup/Final.razor +++ /dev/null @@ -1,40 +0,0 @@ -@page "/setup/final" - -@using Moonlight.App.Services -@using Moonlight.App.Services.Interop - -@inject ConfigService ConfigService -@inject NavigationManager NavigationManager -@inject SmartTranslateService SmartTranslateService -@inject ToastService ToastService - - -
-
- Finalize installation (4/4) -
-
-
- - -
-
-
-
- - - - -@code -{ - private async Task Save() - { - ConfigService.GetSection("Moonlight")["SetupComplete"] = true.ToString(); - ConfigService.Save(); - await ToastService.Success(SmartTranslateService.Translate("Moonlight basic settings successfully configured")); - NavigationManager.NavigateTo("/"); - } -} \ No newline at end of file diff --git a/Moonlight/Shared/Views/Setup/Index.razor b/Moonlight/Shared/Views/Setup/Index.razor deleted file mode 100644 index dbdf13b4..00000000 --- a/Moonlight/Shared/Views/Setup/Index.razor +++ /dev/null @@ -1,53 +0,0 @@ -@page "/setup" -@using Moonlight.App.Services - -@inject ConfigService ConfigService -@inject NavigationManager NavigationManager -@inject SmartTranslateService SmartTranslateService - - -
-
- Configure basics (1/4) -
-
- -
- - - - -
-
- - - - Next - -
-
-
-
- - - - -@code -{ - private Task Save() - { - ConfigService.Save(); - NavigationManager.NavigateTo("/setup/users"); - - return Task.CompletedTask; - } -} \ No newline at end of file diff --git a/Moonlight/Shared/Views/Setup/Users.razor b/Moonlight/Shared/Views/Setup/Users.razor deleted file mode 100644 index ab887fcb..00000000 --- a/Moonlight/Shared/Views/Setup/Users.razor +++ /dev/null @@ -1,142 +0,0 @@ -@page "/setup/users" -@using Moonlight.App.Services -@using Microsoft.AspNetCore.Components -@using Moonlight.App.Database.Entities -@using Moonlight.App.Exceptions -@using Moonlight.App.Services.Interop -@using Logging.Net -@using Moonlight.App.Repositories - -@inject UserService UserService -@inject UserRepository UserRepository -@inject SmartTranslateService SmartTranslateService -@inject AlertService AlertService -@inject ToastService ToastService - - -
-
- Add admin accounts (2/4) -
-
- -
- - - - -
- -
- - - - -
- -
- - - - -
- -
- - - - -
- -
-
-
- - - - -@code -{ - private User NewUser = new(); - - private async Task Save() - { - try - { - await UserService.Register( - NewUser.Email, - NewUser.Password, - NewUser.FirstName, - NewUser.LastName - ); - - var user = UserRepository.Get().First(x => x.Email == NewUser.Email); - user.Admin = true; - UserRepository.Update(user); - - await ToastService.Success( - SmartTranslateService.Translate("User successfully created") - ); - } - catch (DisplayException e) - { - await AlertService.Error( - SmartTranslateService.Translate("Error"), - e.Message - ); - } - catch (Exception e) - { - await AlertService.Error( - SmartTranslateService.Translate("Error"), - SmartTranslateService.Translate("An error occured while creating user") - ); - - Logger.Error("Error while creating user"); - Logger.Error(e); - } - - NewUser = new(); - - await InvokeAsync(StateHasChanged); - } -} \ No newline at end of file diff --git a/Moonlight/Shared/Views/Support.razor b/Moonlight/Shared/Views/Support.razor index f292a271..d7395f4b 100644 --- a/Moonlight/Shared/Views/Support.razor +++ b/Moonlight/Shared/Views/Support.razor @@ -5,6 +5,7 @@ @using Moonlight.App.Services.SupportChat @using Logging.Net @using System.Text.RegularExpressions +@using Moonlight.App.Services.Files @inject ResourceService ResourceService @inject SupportChatClientService ClientService diff --git a/Moonlight/Shared/Views/Test.razor b/Moonlight/Shared/Views/Test.razor deleted file mode 100644 index 906f4241..00000000 --- a/Moonlight/Shared/Views/Test.razor +++ /dev/null @@ -1,12 +0,0 @@ -@page "/test" - - - - -@code -{ - private Task Load(LazyLoader arg) - { - throw new Exception("Nein"); - } -} diff --git a/Moonlight/resources/lang/de_de.lang b/Moonlight/resources/lang/de_de.lang deleted file mode 100644 index dc4f01e0..00000000 --- a/Moonlight/resources/lang/de_de.lang +++ /dev/null @@ -1,568 +0,0 @@ -Open support;Open support -About us;About us -Imprint;Imprint -Privacy;Privacy -Login;Login -Register;Register -Insert brand name...;Insert brand name... -Save and continue;Save and continue -Saving;Saving -Configure basics;Configure basics -Brand name;Brand name -test;test -Insert first name...;Insert first name... -Insert last name...;Insert last name... -Insert email address...;Insert email address... -Add;Add -Adding...;Adding... -Add admin accounts;Add admin accounts -First name;First name -Last name;Last name -Email address;Email address -Enter password;Enter password -Next;Next -Back;Back -Configure features;Configure features -Support chat;Support chat -Finish;Finish -Finalize installation;Finalize installation -Moonlight basic settings successfully configured;Moonlight basic settings successfully configured -Ooops. This page is crashed;Ooops. This page is crashed -This page is crashed. The error has been reported to the moonlight team. Meanwhile you can try reloading the page;This page is crashed. The error has been reported to the moonlight team. Meanwhile you can try reloading the page -Setup complete;Setup complete -It looks like this moonlight instance is ready to go;It looks like this moonlight instance is ready to go -User successfully created;User successfully created -Ooops. Your moonlight client is crashed;Ooops. Your moonlight client is crashed -This error has been reported to the moonlight team;This error has been reported to the moonlight team -Sign In;Sign In -Sign in to start with moonlight;Sign in to start with moonlight -Sign in with Discord;Sign in with Discord -Or with email;Or with email -Forgot password?;Forgot password? -Sign-in;Sign-in -Not registered yet?;Not registered yet? -Sign up;Sign up -Authenticating;Authenticating -Sign in with Google;Sign in with Google -Working;Working -Error;Error -Email and password combination not found;Email and password combination not found -Email;Email -Password;Password -Account settings;Account settings -Logout;Logout -Dashboard;Dashboard -Order;Order -Website;Website -Database;Database -Domain;Domain -Servers;Servers -Websites;Websites -Databases;Databases -Domains;Domains -Changelog;Changelog -Firstname;Firstname -Lastname;Lastname -Repeat password;Repeat password -Sign Up;Sign Up -Sign up to start with moonlight;Sign up to start with moonlight -Sign up with Discord;Sign up with Discord -Sign up with Google;Sign up with Google -Sign-up;Sign-up -Already registered?;Already registered? -Sign in;Sign in -Create something new;Create something new -Create a gameserver;Create a gameserver -A new gameserver in just a few minutes;A new gameserver in just a few minutes -Create a database;Create a database -A quick way to store your data and manage it from all around the world;A quick way to store your data and manage it from all around the world -Manage your services;Manage your services -Manage your gameservers;Manage your gameservers -Adjust your gameservers;Adjust your gameservers -Manage your databases;Manage your databases -Insert, delete and update the data in your databases;Insert, delete and update the data in your databases -Create a website;Create a website -Make your own websites with a webspace;Make your own websites with a webspace -Create a domain;Create a domain -Make your servvices accessible throught your own domain;Make your servvices accessible throught your own domain -Manage your websites;Manage your websites -Modify the content of your websites;Modify the content of your websites -Manage your domains;Manage your domains -Add, edit and delete dns records;Add, edit and delete dns records -Admin;Admin -System;System -Overview;Overview -Manager;Manager -Cleanup;Cleanup -Nodes;Nodes -Images;Images -aaPanel;aaPanel -Users;Users -Support;Support -Statistics;Statistics -No nodes found. Start with adding a new node;No nodes found. Start with adding a new node -Nodename;Nodename -FQDN;FQDN -Create;Create -Creating;Creating -Http port;Http port -Sftp port;Sftp port -Moonlight daemon port;Moonlight daemon port -SSL;SSL -CPU Usage;CPU Usage -In %;In % -Memory;Memory -Used / Available memory;Used / Available memory -Storage;Storage -Available storage;Available storage -Add a new node;Add a new node -Delete;Delete -Deleting;Deleting -Edit;Edit -Token Id;Token Id -Token;Token -Save;Save -Setup;Setup -Open a ssh connection to your node and enter;Open a ssh connection to your node and enter -and paste the config below. Then press STRG+O and STRG+X to save;and paste the config below. Then press STRG+O and STRG+X to save -Before configuring this node, install the daemon;Before configuring this node, install the daemon -Delete this node?;Delete this node? -Do you really want to delete this node;Do you really want to delete this node -Yes;Yes -No;No -Status;Status -Adding;Adding -Port;Port -Id;Id -Manage;Manage -Create new server;Create new server -No servers found;No servers found -Server name;Server name -Cpu cores;Cpu cores -Disk;Disk -Image;Image -Override startup;Override startup -Docker image;Docker image -CPU Cores (100% = 1 Core);CPU Cores (100% = 1 Core) -Server successfully created;Server successfully created -Name;Name -Cores;Cores -Owner;Owner -Value;Value -An unknown error occured;An unknown error occured -No allocation found;No allocation found -Identifier;Identifier -UuidIdentifier;UuidIdentifier -Override startup command;Override startup command -Loading;Loading -Offline;Offline -Connecting;Connecting -Start;Start -Restart;Restart -Stop;Stop -Shared IP;Shared IP -Server ID;Server ID -Cpu;Cpu -Console;Console -Files;Files -Backups;Backups -Network;Network -Plugins;Plugins -Settings;Settings -Enter command;Enter command -Execute;Execute -Checking disk space;Checking disk space -Updating config files;Updating config files -Checking file permissions;Checking file permissions -Downloading server image;Downloading server image -Downloaded server image;Downloaded server image -Starting;Starting -Online;Online -Kill;Kill -Stopping;Stopping -Search files and folders;Search files and folders -Launch WinSCP;Launch WinSCP -New folder;New folder -Upload;Upload -File name;File name -File size;File size -Last modified;Last modified -Cancel;Cancel -Canceling;Canceling -Running;Running -Loading backups;Loading backups -Started backup creation;Started backup creation -Backup is going to be created;Backup is going to be created -Rename;Rename -Move;Move -Archive;Archive -Unarchive;Unarchive -Download;Download -Starting download;Starting download -Backup successfully created;Backup successfully created -Restore;Restore -Copy url;Copy url -Backup deletion started;Backup deletion started -Backup successfully deleted;Backup successfully deleted -Primary;Primary -This feature is currently not available;This feature is currently not available -Send;Send -Sending;Sending -Welcome to the support chat. Ask your question here and we will help you;Welcome to the support chat. Ask your question here and we will help you - minutes ago; minutes ago -just now;just now -less than a minute ago;less than a minute ago -1 hour ago;1 hour ago -1 minute ago;1 minute ago -Failed;Failed - hours ago; hours ago -Open tickets;Open tickets -Actions;Actions -No support ticket is currently open;No support ticket is currently open -User information;User information -Close ticket;Close ticket -Closing;Closing -The support team has been notified. Please be patient;The support team has been notified. Please be patient -The ticket is now closed. Type a message to open it again;The ticket is now closed. Type a message to open it again -1 day ago;1 day ago -is typing;is typing -are typing;are typing -No domains available;No domains available -Shared domains;Shared domains -Shared domain;Shared domain -Shared domain successfully deleted;Shared domain successfully deleted -Shared domain successfully added;Shared domain successfully added -Domain name;Domain name -DNS records for;DNS records for -Fetching dns records;Fetching dns records -No dns records found;No dns records found -Content;Content -Priority;Priority -Ttl;Ttl -Enable cloudflare proxy;Enable cloudflare proxy -CF Proxy;CF Proxy - days ago; days ago -Cancle;Cancle -An unexpected error occured;An unexpected error occured -Testy;Testy -Error from cloudflare api;Error from cloudflare api -Profile;Profile -No subscription available;No subscription available -Buy;Buy -Redirecting;Redirecting -Apply;Apply -Applying code;Applying code -Invalid subscription code;Invalid subscription code -Cancel Subscription;Cancel Subscription -Active until;Active until -We will send you a notification upon subscription expiration;We will send you a notification upon subscription expiration -This token has been already used;This token has been already used -New login for;New login for -No records found for this day;No records found for this day -Change;Change -Changing;Changing -Minecraft version;Minecraft version -Build version;Build version -Server installation is currently running;Server installation is currently running -Selected;Selected -Move deleted;Move deleted -Delete selected;Delete selected -Log level;Log level -Log message;Log message -Time;Time -Version;Version -You are running moonlight version;You are running moonlight version -Operating system;Operating system -Moonlight is running on;Moonlight is running on -Memory usage;Memory usage -Moonlight is using;Moonlight is using -of memory;of memory -Cpu usage;Cpu usage -Refresh;Refresh -Send a message to all users;Send a message to all users -IP;IP -URL;URL -Device;Device -Change url;Change url -Message;Message -Enter message;Enter message -Enter the message to send;Enter the message to send -Confirm;Confirm -Are you sure?;Are you sure? -Enter url;Enter url -An unknown error occured while starting backup deletion;An unknown error occured while starting backup deletion -Success;Success -Backup URL successfully copied to your clipboard;Backup URL successfully copied to your clipboard -Backup restore started;Backup restore started -Backup successfully restored;Backup successfully restored -Register for;Register for -Core;Core -Logs;Logs -AuditLog;AuditLog -SecurityLog;SecurityLog -ErrorLog;ErrorLog -Resources;Resources -WinSCP cannot be launched here;WinSCP cannot be launched here -Create a new folder;Create a new folder -Enter a name;Enter a name -File upload complete;File upload complete -New server;New server -Sessions;Sessions -New user;New user -Created at;Created at -Mail template not found;Mail template not found -Missing admin permissions. This attempt has been logged ;) -Address;Address -City;City -State;State -Country;Country -Totp;Totp -Discord;Discord -Subscription;Subscription -None;None -No user with this id found;No user with this id found -Back to list;Back to list -New domain;New domain -Reset password;Reset password -Password reset;Password reset -Reset the password of your account;Reset the password of your account -Wrong here?;Wrong here? -A user with this email can not be found;A user with this email can not be found -Passwort reset successfull. Check your mail;Passwort reset successfull. Check your mail -Discord bot;Discord bot -New image;New image -Description;Description -Uuid;Uuid -Enter tag name;Enter tag name -Remove;Remove -No tags found;No tags found -Enter docker image name;Enter docker image name -Tags;Tags -Docker images;Docker images -Default image;Default image -Startup command;Startup command -Install container;Install container -Install entry;Install entry -Configuration files;Configuration files -Startup detection;Startup detection -Stop command;Stop command -Successfully saved image;Successfully saved image -No docker images found;No docker images found -Key;Key -Default value;Default value -Allocations;Allocations -No variables found;No variables found -Successfully added image;Successfully added image -Password change for;Password change for -of;of -New node;New node -Fqdn;Fqdn -Cores used;Cores used -used;used -5.15.90.1-microsoft-standard-WSL2 - amd64;5.15.90.1-microsoft-standard-WSL2 - amd64 -Host system information;Host system information -0;0 -Docker containers running;Docker containers running -details;details -1;1 -2;2 -DDos;DDos -No ddos attacks found;No ddos attacks found -Node;Node -Date;Date -DDos attack started;DDos attack started -packets;packets -DDos attack stopped;DDos attack stopped - packets; packets -Stop all;Stop all -Kill all;Kill all -Network in;Network in -Network out;Network out -Kill all servers;Kill all servers -Do you really want to kill all running servers?;Do you really want to kill all running servers? -Change power state for;Change power state for -to;to -Stop all servers;Stop all servers -Do you really want to stop all running servers?;Do you really want to stop all running servers? -Manage ;Manage -Manage user ;Manage user -Reloading;Reloading -Update;Update -Updating;Updating -Successfully updated user;Successfully updated user -Discord id;Discord id -Discord username;Discord username -Discord discriminator;Discord discriminator -The Name field is required.;The Name field is required. -An error occured while logging you in;An error occured while logging you in -You need to enter an email address;You need to enter an email address -You need to enter a password;You need to enter a password -You need to enter a password with minimum 8 characters in lenght;You need to enter a password with minimum 8 characters in lenght -Proccessing;Proccessing -The FirstName field is required.;The FirstName field is required. -The LastName field is required.;The LastName field is required. -The Address field is required.;The Address field is required. -The City field is required.;The City field is required. -The State field is required.;The State field is required. -The Country field is required.;The Country field is required. -Street and house number requered;Street and house number requered -Max lenght reached;Max lenght reached -Server;Server -stopped;stopped -Cleanups;Cleanups -executed;executed -Used clanup;Used clanup -Enable;Enable -Disabble;Disabble -Disable;Disable -Addons;Addons -Javascript version;Javascript version -Javascript file;Javascript file -Select javascript file to execute on start;Select javascript file to execute on start -Submit;Submit -Processing;Processing -Go up;Go up -Running cleanup;Running cleanup -servers;servers -Select folder to move the file(s) to;Select folder to move the file(s) to -Paper version;Paper version -Join2Start;Join2Start -Server reset;Server reset -Reset;Reset -Resetting;Resetting -Are you sure you want to reset this server?;Are you sure you want to reset this server? -Are you sure? This cannot be undone;Are you sure? This cannot be undone -Resetting server;Resetting server -Deleted file;Deleted file -Reinstalling server;Reinstalling server -Uploading files;Uploading files -complete;complete -Upload complete;Upload complete -Security;Security -Subscriptions;Subscriptions -2fa Code;2fa Code -Your account is secured with 2fa;Your account is secured with 2fa -anyone write a fancy text here?;anyone write a fancy text here? -Activate 2fa;Activate 2fa -2fa apps;2fa apps -Use an app like ;Use an app like -or;or -and scan the following QR Code;and scan the following QR Code -If you have trouble using the QR Code, select manual input in the app and enter your email and the following code:;If you have trouble using the QR Code, select manual input in the app and enter your email and the following code: -Finish activation;Finish activation -2fa Code requiered;2fa Code requiered -New password;New password -Secure your account;Secure your account -2fa adds another layer of security to your account. You have to enter a 6 digit code in order to login.;2fa adds another layer of security to your account. You have to enter a 6 digit code in order to login. -New subscription;New subscription -You need to enter a name;You need to enter a name -You need to enter a description;You need to enter a description -Add new limit;Add new limit -Create subscription;Create subscription -Options;Options -Amount;Amount -Do you really want to delete it?;Do you really want to delete it? -Loading your subscription;Loading your subscription -Searching for deploy node;Searching for deploy node -Searching for available images;Searching for available images -Server details;Server details -Configure your server;Configure your server -Default;Default -You reached the maximum amount of servers for every image of your subscription;You reached the maximum amount of servers for every image of your subscription -Personal information;Personal information -Enter code;Enter code -Server rename;Server rename -Create code;Create code -Save subscription;Save subscription -Enter your information;Enter your information -You need to enter your full name in order to use moonlight;You need to enter your full name in order to use moonlight -No node found;No node found -No node found to deploy to found;No node found to deploy to found -Node offline;Node offline -The node the server is running on is currently offline;The node the server is running on is currently offline -Server not found;Server not found -A server with that id cannot be found or you have no access for this server;A server with that id cannot be found or you have no access for this server -Compress;Compress -Decompress;Decompress -Moving;Moving -Compressing;Compressing -selected;selected -New website;New website -Plesk servers;Plesk servers -Base domain;Base domain -Plesk server;Plesk server -Ftp;Ftp -No SSL certificate found;No SSL certificate found -Ftp Host;Ftp Host -Ftp Port;Ftp Port -Ftp Username;Ftp Username -Ftp Password;Ftp Password -Use;Use -SSL Certificates;SSL Certificates -SSL certificates;SSL certificates -Issue certificate;Issue certificate -New plesk server;New plesk server -Api url;Api url -Host system offline;Host system offline -The host system the website is running on is currently offline;The host system the website is running on is currently offline -No SSL certificates found;No SSL certificates found -No databases found for this website;No databases found for this website -The name should be at least 8 characters long;The name should be at least 8 characters long -The name should only contain of lower case characters and numbers;The name should only contain of lower case characters and numbers -Error from plesk;Error from plesk -Host;Host -Username;Username -SRV records cannot be updated thanks to the cloudflare api client. Please delete the record and create a new one;SRV records cannot be updated thanks to the cloudflare api client. Please delete the record and create a new one -The User field is required.;The User field is required. -You need to specify a owner;You need to specify a owner -You need to specify a image;You need to specify a image -Api Url;Api Url -Api Key;Api Key -Duration;Duration -Enter duration of subscription;Enter duration of subscription -Copied code to clipboard;Copied code to clipboard -Invalid or expired subscription code;Invalid or expired subscription code -Current subscription;Current subscription -You need to specify a server image;You need to specify a server image -CPU;CPU -Hour;Hour -Day;Day -Month;Month -Year;Year -All time;All time -This function is not implemented;This function is not implemented -Domain details;Domain details -Configure your domain;Configure your domain -You reached the maximum amount of domains in your subscription;You reached the maximum amount of domains in your subscription -You need to specify a shared domain;You need to specify a shared domain -A domain with this name does already exist for this shared domain;A domain with this name does already exist for this shared domain -The Email field is required.;The Email field is required. -The Password field is required.;The Password field is required. -The ConfirmPassword field is required.;The ConfirmPassword field is required. -Passwords need to match;Passwords need to match -Cleanup exception;Cleanup exception -No shared domain found;No shared domain found -Searching for deploy plesk server;Searching for deploy plesk server -No plesk server found;No plesk server found -No plesk server found to deploy to;No plesk server found to deploy to -No node found to deploy to;No node found to deploy to -Website details;Website details -Configure your website;Configure your website -The name cannot be longer that 32 characters;The name cannot be longer that 32 characters -The name should only consist of lower case characters;The name should only consist of lower case characters -News;News -Title...;Title... -Enter text...;Enter text... -Saving...;Saving... -Deleting...;Deleting... -Delete post;Delete post -Do you really want to delete the post ";Do you really want to delete the post " -You have no domains;You have no domains -We were not able to find any domains associated with your account;We were not able to find any domains associated with your account -You have no websites;You have no websites -We were not able to find any websites associated with your account;We were not able to find any websites associated with your account -Guest;Guest -You need a domain;You need a domain -New post;New post -New entry;New entry -You reached the maximum amount of websites in your subscription;You reached the maximum amount of websites in your subscription diff --git a/Moonlight/resources/lang/en_us.lang b/Moonlight/resources/lang/en_us.lang deleted file mode 100644 index 2e2e1fcb..00000000 --- a/Moonlight/resources/lang/en_us.lang +++ /dev/null @@ -1,86 +0,0 @@ -Open support;Open support -About us;About us -Imprint;Imprint -Privacy;Privacy -Create;Create -Server;Server -Domain;Domain -Website;Website -Login;Login -Register;Register -Email;Email -Password;Password -Sign In;Sign In -Sign in to start with moonlight;Sign in to start with moonlight -Sign in with Discord;Sign in with Discord -Sign in with Google;Sign in with Google -Or with email;Or with email -Forgot password?;Forgot password? -Sign-in;Sign-in -Not registered yet?;Not registered yet? -Sign up;Sign up -Profile;Profile -Logout;Logout -Dashboard;Dashboard -Servers;Servers -Websites;Websites -Domains;Domains -Changelog;Changelog -Admin;Admin -System;System -Overview;Overview -Manager;Manager -Cleanup;Cleanup -Nodes;Nodes -Images;Images -Users;Users -Shared domains;Shared domains -Support;Support -Subscriptions;Subscriptions -Statistics;Statistics -Create something new;Create something new -Create a gameserver;Create a gameserver -A new gameserver in just a few minutes;A new gameserver in just a few minutes -Create a website;Create a website -Make your own websites with a webspace;Make your own websites with a webspace -Create a domain;Create a domain -Make your servvices accessible throught your own domain;Make your servvices accessible throught your own domain -Manage your services;Manage your services -Manage your gameservers;Manage your gameservers -Adjust your gameservers;Adjust your gameservers -Manage your websites;Manage your websites -Modify the content of your websites;Modify the content of your websites -Manage your domains;Manage your domains -Add, edit and delete dns records;Add, edit and delete dns records -New server;New server -Id;Id -Name;Name -Cores;Cores -Memory;Memory -Disk;Disk -Owner;Owner -Manage;Manage -Node offline;Node offline -The node the server is running on is currently offline;The node the server is running on is currently offline -Sessions;Sessions -New user;New user -First name;First name -Last name;Last name -Created at;Created at -Refresh;Refresh -Send a message to all users;Send a message to all users -IP;IP -URL;URL -Device;Device -Time;Time -Actions;Actions -Change url;Change url -Message;Message -Enter url;Enter url -Send;Send -Sending;Sending -Welcome to the support chat. Ask your question here and we will help you;Welcome to the support chat. Ask your question here and we will help you -less than a minute ago;less than a minute ago -The support team has been notified. Please be patient;The support team has been notified. Please be patient -is typing;is typing -Proccessing;Proccessing diff --git a/Moonlight/resources/mail/login.html b/Moonlight/resources/mail/login.html deleted file mode 100644 index 06748d96..00000000 --- a/Moonlight/resources/mail/login.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - New moonlight login - - -
- - - - - - - - - - - - -
-
-
- - Logo - -
-
-

Hey {{FirstName}}, there is a new login in your moonlight account

-

Here is all the data we collected

-

IP: {{Ip}}

-

Device: {{Device}}

-

Location: {{Location}}

-
- Open Moonlight - -
-
-

You need help?

-

We are happy to help!

-

More information at - endelon.link/support. -

-
-

Copyright 2022 Endelon Hosting

-
-
- - \ No newline at end of file diff --git a/Moonlight/resources/mail/passwordChange.html b/Moonlight/resources/mail/passwordChange.html deleted file mode 100644 index ae3e5a12..00000000 --- a/Moonlight/resources/mail/passwordChange.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Moonlight password change - - -
- - - - - - - - - - - - -
-
-
- - Logo - -
-
-

Hey {{FirstName}}, your password has been changed

-

If this was not you please contact us. Also here is the data we collected.

-

IP: {{Ip}}

-

Device: {{Device}}

-

Location: {{Location}}

-
- Open Moonlight - -
-
-

You need help?

-

We are happy to help!

-

More information at - endelon.link/support. -

-
-

Copyright 2023 Endelon Hosting

-
-
- - \ No newline at end of file diff --git a/Moonlight/resources/mail/passwordReset.html b/Moonlight/resources/mail/passwordReset.html deleted file mode 100644 index 9dd066c6..00000000 --- a/Moonlight/resources/mail/passwordReset.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Moonlight password reset - - -
- - - - - - - - - - - - -
-
-
- - Logo - -
-
-

Hey {{FirstName}}, your password has been resetted

-

Your new password is: {{Password}}

-

If this was not you please contact us. Also here is the data we collected.

-

IP: {{Ip}}

-

Device: {{Device}}

-

Location: {{Location}}

-
- Open Moonlight - -
-
-

You need help?

-

We are happy to help!

-

More information at - endelon.link/support. -

-
-

Copyright 2022 Endelon Hosting

-
-
- - \ No newline at end of file diff --git a/Moonlight/resources/mail/register.html b/Moonlight/resources/mail/register.html deleted file mode 100644 index 3ffbc507..00000000 --- a/Moonlight/resources/mail/register.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - Welcome - - -
- - - - - - - - - - - - -
-
-
- - Logo - -
-
-

Hey {{FirstName}}, welcome to moonlight

-

We are happy to welcome you in ;)

-
- Open Moonlight - -
-
-

You need help?

-

We are happy to help!

-

More information at - endelon.link/support. -

-
-

Copyright 2022 Endelon Hosting

-
-
- - \ No newline at end of file diff --git a/Moonlight/resources/public/images/logo.svg b/Moonlight/resources/public/images/logo.svg deleted file mode 100644 index 193ebfae..00000000 --- a/Moonlight/resources/public/images/logo.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Moonlight/resources/public/images/logolong.png b/Moonlight/resources/public/images/logolong.png deleted file mode 100644 index 1494f265..00000000 Binary files a/Moonlight/resources/public/images/logolong.png and /dev/null differ