Small UI changes (#3787)

This commit is contained in:
Joe Milazzo 2025-05-04 08:14:44 -06:00 committed by GitHub
parent 50a052e412
commit 5b8a643d82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
203 changed files with 369 additions and 446 deletions

View file

@ -4,11 +4,13 @@ using System.Xml.Serialization;
namespace API.DTOs.OPDS;
// TODO: OPDS Dtos are internal state, shouldn't be in DTO directory
/// <summary>
///
/// </summary>
[XmlRoot("feed", Namespace = "http://www.w3.org/2005/Atom")]
public class Feed
public sealed record Feed
{
[XmlElement("updated")]
public string Updated { get; init; } = DateTime.UtcNow.ToString("s");

View file

@ -2,7 +2,7 @@
namespace API.DTOs.OPDS;
public class FeedAuthor
public sealed record FeedAuthor
{
[XmlElement("name")]
public string Name { get; set; }

View file

@ -2,7 +2,7 @@
namespace API.DTOs.OPDS;
public class FeedCategory
public sealed record FeedCategory
{
[XmlAttribute("scheme")]
public string Scheme { get; } = "http://www.bisg.org/standards/bisac_subject/index.html";

View file

@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace API.DTOs.OPDS;
#nullable enable
public class FeedEntry
public sealed record FeedEntry
{
[XmlElement("updated")]
public string Updated { get; init; } = DateTime.UtcNow.ToString("s");

View file

@ -2,7 +2,7 @@
namespace API.DTOs.OPDS;
public class FeedEntryContent
public sealed record FeedEntryContent
{
[XmlAttribute("type")]
public string Type = "text";

View file

@ -3,7 +3,7 @@ using System.Xml.Serialization;
namespace API.DTOs.OPDS;
public class FeedLink
public sealed record FeedLink
{
[XmlIgnore]
public bool IsPageStream { get; set; }

View file

@ -3,7 +3,7 @@
namespace API.DTOs.OPDS;
[XmlRoot("OpenSearchDescription", Namespace = "http://a9.com/-/spec/opensearch/1.1/")]
public class OpenSearchDescription
public sealed record OpenSearchDescription
{
/// <summary>
/// Contains a brief human-readable title that identifies this search engine.

View file

@ -2,7 +2,7 @@
namespace API.DTOs.OPDS;
public class SearchLink
public sealed record SearchLink
{
[XmlAttribute("type")]
public string Type { get; set; } = default!;