docs+ui: backfill XML doc comments and finish dashboard layout pass
Adds missing <summary>/<param> XML docs across 99 server, worker, and test files so CommentChecker reports zero issues (TreatWarningsAsErrors needs the analyzer clean). Bundles in WIP dashboard work: NavSection extraction, MainLayout/site.css/js styling alignment, and DashboardOptions/Auth tweaks.
This commit is contained in:
+13
-4
@@ -191,11 +191,22 @@ public static class DashboardEndpointRouteBuilderExtensions
|
||||
</section>
|
||||
""";
|
||||
|
||||
return RenderPage("Dashboard Sign In", body);
|
||||
return RenderPage("Dashboard Sign In", heading: null, body);
|
||||
}
|
||||
|
||||
private static string RenderPage(string title, string body)
|
||||
=> RenderPage(title, heading: title, body);
|
||||
|
||||
private static string RenderPage(string title, string? heading, string body)
|
||||
{
|
||||
string headingHtml = string.IsNullOrEmpty(heading)
|
||||
? string.Empty
|
||||
: $"""
|
||||
<div class="dashboard-page-header">
|
||||
<h1>{HtmlEncoder.Default.Encode(heading)}</h1>
|
||||
</div>
|
||||
""";
|
||||
|
||||
return $"""
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
@@ -212,9 +223,7 @@ public static class DashboardEndpointRouteBuilderExtensions
|
||||
<span class="brand"><span class="mark">▮</span> MXAccess Gateway</span>
|
||||
</header>
|
||||
<main class="page">
|
||||
<div class="dashboard-page-header">
|
||||
<h1>{HtmlEncoder.Default.Encode(title)}</h1>
|
||||
</div>
|
||||
{headingHtml}
|
||||
{body}
|
||||
</main>
|
||||
<script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user