Adds the server-side theme repository and reworks the web theme engine onto it

This commit is contained in:
BinaryAlley committed 2026-08-19 22:50:07 -07:00
1 parent 85928f7c3c
commit bf8faba24d
136 files changed
+6942 -1197

No files matched your search

@@ -0,0 +1,25 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Core.Themes.Management.Commands.InstallTheme;
using Lumina.Contracts.Requests.Themes;
using System.IO;
#endregion
namespace Lumina.Application.Common.Mapping.Themes;
/// <summary>
/// Extension methods for converting <see cref="InstallThemeRequest"/>.
/// </summary>
public static class InstallThemeRequestMapping
{
/// <summary>
/// Converts <paramref name="request"/> to <see cref="InstallThemeCommand"/>.
/// </summary>
/// <param name="request">The request to be converted.</param>
/// <param name="archive">The ZIP archive stream of the theme pack.</param>
/// <param name="fileName">The file name of the uploaded archive.</param>
/// <returns>The converted command.</returns>
public static InstallThemeCommand ToCommand(this InstallThemeRequest request, Stream? archive, string? fileName)
{
return new InstallThemeCommand(archive, fileName);
}
}