2024-02-21 20:54:39 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using BTCPayServer.Services;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.ServerViewModels;
|
|
|
|
|
|
|
|
public class BrandingViewModel
|
|
|
|
{
|
|
|
|
// Server
|
|
|
|
[Display(Name = "Server Name")]
|
|
|
|
public string ServerName { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Contact URL")]
|
|
|
|
public string ContactUrl { get; set; }
|
|
|
|
|
|
|
|
// Theme
|
|
|
|
[Display(Name = "Use custom theme")]
|
|
|
|
public bool CustomTheme { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Custom Theme Extension Type")]
|
|
|
|
public ThemeExtension CustomThemeExtension { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Custom Theme File")]
|
|
|
|
[JsonIgnore]
|
|
|
|
public IFormFile CustomThemeFile { get; set; }
|
|
|
|
|
2024-05-09 02:18:02 +02:00
|
|
|
public string CustomThemeCssUrl { get; set; }
|
2024-02-21 20:54:39 +01:00
|
|
|
|
|
|
|
[Display(Name = "Logo")]
|
|
|
|
[JsonIgnore]
|
|
|
|
public IFormFile LogoFile { get; set; }
|
|
|
|
|
2024-05-09 02:18:02 +02:00
|
|
|
public string LogoUrl { get; set; }
|
2024-02-21 20:54:39 +01:00
|
|
|
}
|