mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Adds the server-side theme repository and reworks the web theme engine onto it
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user