Drop HTMX (unpkg, no integrity); guard against third-party assets (#61)
This commit is contained in:
parent
70a2038435
commit
7813426e6d
10 changed files with 143 additions and 24 deletions
|
|
@ -14,12 +14,7 @@
|
|||
governance pressure, and recent team activity in one place.
|
||||
</p>
|
||||
</div>
|
||||
<button class="button secondary"
|
||||
hx-get="@Url.Page("/App/Index", "Summary")"
|
||||
hx-target="#summary-cards"
|
||||
hx-swap="outerHTML">
|
||||
Refresh snapshot
|
||||
</button>
|
||||
<a class="button secondary" href="@Url.Page("/App/Index")">Refresh snapshot</a>
|
||||
</div>
|
||||
|
||||
<div id="summary-cards">
|
||||
|
|
|
|||
|
|
@ -18,11 +18,4 @@ public sealed class IndexModel(
|
|||
Actor = await actorAccessor.GetAsync(cancellationToken);
|
||||
Snapshot = await snapshotService.GetAsync(Actor.UserAccount?.Id, cancellationToken);
|
||||
}
|
||||
|
||||
public async Task<PartialViewResult> OnGetSummaryAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
Actor = await actorAccessor.GetAsync(cancellationToken);
|
||||
Snapshot = await snapshotService.GetAsync(Actor.UserAccount?.Id, cancellationToken);
|
||||
return Partial("_SummaryCards", Snapshot);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
</article>
|
||||
<article class="status-card">
|
||||
<span>Stack</span>
|
||||
<strong>ASP.NET Core 8 + Razor Pages + HTMX</strong>
|
||||
<strong>ASP.NET Core 8 + Razor Pages</strong>
|
||||
</article>
|
||||
<article class="status-card">
|
||||
<span>System of record</span>
|
||||
|
|
|
|||
|
|
@ -28,15 +28,15 @@
|
|||
</p>
|
||||
|
||||
<div class="mill-actions">
|
||||
<form method="post" asp-page-handler="Up" asp-antiforgery="false" hx-boost="false">
|
||||
<form method="post" asp-page-handler="Up" asp-antiforgery="false">
|
||||
<button class="button" type="submit">Up</button>
|
||||
</form>
|
||||
<form method="post" asp-page-handler="Down" asp-antiforgery="false" hx-boost="false">
|
||||
<form method="post" asp-page-handler="Down" asp-antiforgery="false">
|
||||
<button class="button" type="submit">Down</button>
|
||||
</form>
|
||||
@if (stance is not null)
|
||||
{
|
||||
<form method="post" asp-page-handler="Retract" asp-antiforgery="false" hx-boost="false">
|
||||
<form method="post" asp-page-handler="Retract" asp-antiforgery="false">
|
||||
<button class="button ghost" type="submit">Retract</button>
|
||||
</form>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/Bifrost.Web.styles.css" asp-append-version="true" />
|
||||
</head>
|
||||
<body hx-boost="true">
|
||||
<body>
|
||||
<div class="shell">
|
||||
<header class="topbar">
|
||||
<a class="brand" asp-page="/Index">
|
||||
|
|
@ -62,7 +62,6 @@
|
|||
</main>
|
||||
</div>
|
||||
|
||||
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Reference in a new issue