Removes the option to disable theme scripts

This commit is contained in:
BinaryAlley committed 2026-08-21 11:47:16 -07:00
1 parent 531450b3db
commit 15945c2e56
17 files changed
+15 -201

No files matched your search

@@ -22,11 +22,6 @@ public sealed class ThemeAdminDto
/// </summary>
public required string CurrentThemeId { get; init; }
/// <summary>
/// Gets or sets a value indicating whether theme templates may load script files.
/// </summary>
public required bool AllowThemeScripts { get; init; }
/// <summary>
/// Gets or sets the maximum allowed size of a theme archive, in bytes.
/// </summary>
@@ -9,11 +9,9 @@ namespace Lumina.Presentation.Web.Common.DTO.Themes;
/// Data transfer object for the theme engine settings returned by the remote API.
/// </summary>
/// <param name="MaxArchiveBytes">The maximum allowed size of a theme archive, in bytes.</param>
/// <param name="AllowThemeScripts">Whether theme templates may contain script elements and theme assets may include script files.</param>
/// <param name="DefaultThemeId">The identifier of the theme selected when no valid current theme is available.</param>
[DebuggerDisplay("MaxArchiveBytes: {MaxArchiveBytes}")]
public sealed record ThemeSettingsResponseDto(
long MaxArchiveBytes,
bool AllowThemeScripts,
string DefaultThemeId
);
@@ -58,7 +58,6 @@ public class GetThemesEndpoint : BaseEndpoint<EmptyRequest, IResult>
{
Themes = themes,
CurrentThemeId = currentTheme.Id,
AllowThemeScripts = settings.AllowThemeScripts,
MaxArchiveBytes = settings.MaxArchiveBytes
};
return JsonSuccess(themeAdmin);