Adds the web theme engine

This commit is contained in:
BinaryAlley committed 2026-08-19 10:27:16 -07:00
1 parent 57e8e2ed65
commit 59de6e3df6
29 files changed
+2254 -4

No files matched your search

@@ -10,6 +10,7 @@ using Lumina.Presentation.Web.Common.Localization;
using Lumina.Presentation.Web.Common.Security;
using Lumina.Presentation.Web.Common.Services;
using Lumina.Presentation.Web.Common.Validation;
using Lumina.Presentation.Web.Core.Themes;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;
@@ -300,6 +301,11 @@ public static class PresentationWebLayerServices
services.AddHttpContextAccessor();
services.Configure<FormOptions>(options => options.MultipartBodyLengthLimit = 10 * 1024 * 1024);
services.AddSingleton<ThemeSettingsStore>();
services.AddSingleton<ThemeService>();
services.AddSingleton<ThemeTemplateEngine>();
services.AddSingleton<ThemePageRenderer>();
services.AddScoped<IAuthorizationHandler, InitializationHandler>();
services.AddScoped<IAuthorizationHandler, RoleAuthorizationHandler>();
services.AddScoped<IAuthorizationHandler, PermissionAuthorizationHandler>();