Added support chat. Added resource service. Added server backups

This commit is contained in:
Marcel Baumgartner
2023-02-21 21:22:40 +01:00
parent c3eadf9133
commit 0b6882d3f8
26 changed files with 2408 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ using Moonlight.App.Repositories.Servers;
using Moonlight.App.Services;
using Moonlight.App.Services.Interop;
using Moonlight.App.Services.Sessions;
using Moonlight.App.Services.Support;
namespace Moonlight
{
@@ -36,6 +37,7 @@ namespace Moonlight
builder.Services.AddScoped<AuditLogRepository>();
builder.Services.AddScoped<DatabaseRepository>();
builder.Services.AddScoped<ImageRepository>();
builder.Services.AddScoped<SupportMessageRepository>();
// Services
builder.Services.AddSingleton<ConfigService>();
@@ -53,10 +55,16 @@ namespace Moonlight
builder.Services.AddScoped<ServerService>();
builder.Services.AddSingleton<PaperService>();
builder.Services.AddScoped<ClipboardService>();
builder.Services.AddSingleton<ResourceService>();
builder.Services.AddScoped<AuditLogService>();
builder.Services.AddScoped<SystemAuditLogService>();
// Support
builder.Services.AddSingleton<SupportServerService>();
builder.Services.AddScoped<SupportAdminServer>();
builder.Services.AddScoped<SupportClientService>();
// Helpers
builder.Services.AddSingleton<SmartTranslateHelper>();
builder.Services.AddScoped<WingsApiHelper>();
@@ -88,6 +96,9 @@ namespace Moonlight
app.MapBlazorHub();
app.MapFallbackToPage("/_Host");
// Support service
var supportServerService = app.Services.GetRequiredService<SupportServerService>();
app.Run();
}