- Commentboxes work (marginals) + mouseover

- Basic Briefe Controller
- Generic XML reader
This commit is contained in:
schnulller
2022-05-19 01:09:49 +02:00
parent f1743fcf39
commit 2ed7265869
23 changed files with 1179 additions and 193 deletions

View File

@@ -0,0 +1,15 @@
namespace HaWeb.Models;
using HaDocument.Models;
public class BriefeMetaViewModel
{
public Meta Meta { get; private set; }
public string? ParsedSenders { get; set; }
public string? ParsedReceivers { get; set; }
public BriefeMetaViewModel(Meta meta)
{
Meta = meta;
}
}

View File

@@ -0,0 +1,24 @@
namespace HaWeb.Models;
public class BriefeViewModel
{
public string Id { get; private set; }
public string Index { get; private set; }
public BriefeMetaViewModel Meta { get; private set; }
public string? ParsedText { get; set; }
public string? ParsedLineCount { get; set; }
public string? ParsedMarginals { get; set; }
public string? ParsedTradition { get; set; }
public string? ParsedEdits { get; set; }
public BriefeMetaViewModel? Next { get; set; }
public BriefeMetaViewModel? Prev { get; set; }
public BriefeViewModel(string id, string index, BriefeMetaViewModel meta)
{
Id = id;
Index = index;
Meta = meta;
}
}

View File

@@ -1,5 +1,4 @@
namespace HaWeb.Models;
using HaDocument.Models;
public class RegisterViewModel {
public string Category { get; private set; }
@@ -8,7 +7,6 @@ public class RegisterViewModel {
public string? Search { get; set; } = null;
public bool? MaxSearch { get; set; } = null;
// TODO: no null-checks in the Page Logic
public List<CommentModel> ParsedComments { get; private set; }
public List<(string, string)>? AvailableCategories { get; set; } = null;
public List<(string, string)>? AvailableSideCategories { get; set; } = null;