mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 15:41:29 +01:00
* Remove deprecated CSS options Closes #5945. * Greenfield: Add brandColor to store APIs Closes #5946. * Migrate file IDs to URLs Closes #5953. * Greenfield: Add CSS and logo URL to store settings API Closes #5945. * Add migration test * Store and Server branding can reference file's via fileid:ID * Add PaymentSoundUrl to Store API --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
35 lines
893 B
C#
35 lines
893 B
C#
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; }
|
|
|
|
public string CustomThemeCssUrl { get; set; }
|
|
|
|
[Display(Name = "Logo")]
|
|
[JsonIgnore]
|
|
public IFormFile LogoFile { get; set; }
|
|
|
|
public string LogoUrl { get; set; }
|
|
}
|