mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17: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,54 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.Infrastructure.Models.DTO.Themes;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the theme.json manifest of a theme pack.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("Id: {Id}, Name: {Name}")]
|
||||
public sealed class ThemeManifestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the supported schema version of the manifest.
|
||||
/// </summary>
|
||||
public int SchemaVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the unique identifier of the theme, a lowercase kebab-case value used by clients to reference it.
|
||||
/// </summary>
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display name of the theme.
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the description of the theme.
|
||||
/// </summary>
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the author of the theme.
|
||||
/// </summary>
|
||||
public string Author { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version of the theme, using semantic version form.
|
||||
/// </summary>
|
||||
public string Version { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the preview image path relative to the theme pack root, or <see langword="null"/> when the theme has no preview.
|
||||
/// </summary>
|
||||
public string? Preview { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the template mappings from template key to a file path under templates/.
|
||||
/// </summary>
|
||||
public Dictionary<string, string> Templates { get; set; } = new(StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
Reference in new issue
Block a user