Render FAQ topics as cards, drop dead scoped CSS
This commit is contained in:
1 parent
2ea8856d65
commit
e38ebf078d
11 files changed
+260
-46
No files matched your search
@@ -43,6 +43,33 @@ public record Faq
|
||||
[JsonPropertyName("answer")]
|
||||
public required string Answer { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the sort order of the question within its topic.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The sort key; questions with smaller values appear first.
|
||||
/// </value>
|
||||
[JsonPropertyName("order")]
|
||||
public double Order { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether this entry is published and may be shown to visitors.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <see langword="true"/> when the entry is public, <see langword="false"/> for a
|
||||
/// draft that must stay hidden.
|
||||
/// </value>
|
||||
/// <remarks>
|
||||
/// Collection queries filter on <c>public=true</c> server-side, so entries loaded
|
||||
/// that way are always public and never need this checked. It matters only for the
|
||||
/// <c>faqs_via_topic</c> back-relation expand behind <see cref="FaqTopic.Faqs"/>:
|
||||
/// PocketBase does not apply the topic query's <c>public</c> filter to expanded
|
||||
/// child records, so a draft question would otherwise leak onto the topic page.
|
||||
/// That getter filters on this to keep drafts hidden.
|
||||
/// </remarks>
|
||||
[JsonPropertyName("public")]
|
||||
public bool Public { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the expanded relations returned by PocketBase, or <see langword="null"/>
|
||||
/// when the query did not expand any.
|
||||
|
||||
Reference in new issue
Block a user