about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-01-24 12:18:32 +0100
committerRory& <root@rory.gay>2024-01-24 12:19:08 +0100
commitb9a08ec061f271df57d0a14667fe6af3d523db6b (patch)
treeec048a950ba3874ec2f7e7a70dcb2f4fc892998e /MatrixRoomUtils.Web/Pages
parentMinor cleanup of file tree (diff)
downloadMatrixUtils-b9a08ec061f271df57d0a14667fe6af3d523db6b.tar.xz
Removal of download links due to maintenance burden
Diffstat (limited to 'MatrixRoomUtils.Web/Pages')
-rw-r--r--MatrixRoomUtils.Web/Pages/About.razor24
1 files changed, 0 insertions, 24 deletions
diff --git a/MatrixRoomUtils.Web/Pages/About.razor b/MatrixRoomUtils.Web/Pages/About.razor

index 59368af..18d7c3f 100644 --- a/MatrixRoomUtils.Web/Pages/About.razor +++ b/MatrixRoomUtils.Web/Pages/About.razor
@@ -1,7 +1,4 @@ @page "/About" -@using System.Net -@inject NavigationManager NavigationManager -@inject ILocalStorageService LocalStorage <PageTitle>About</PageTitle> @@ -13,24 +10,3 @@ <br/><br/> <p>You can find the source code on <a href="https://cgit.rory.gay/matrix/MatrixRoomUtils.git/">cgit.rory.gay</a>.<br/></p> <p>You can also join the <a href="https://matrix.to/#/%23mru%3Arory.gay?via=rory.gay&via=matrix.org&via=feline.support">Matrix room</a> for this project.</p> -@if (BinDownloadAvailable) { - <p>This deployment also serves a copy of the compiled, hosting-ready binaries at <a href="/MRU-BIN.tar.xz">/MRU-BIN.tar.xz</a>!</p> -} -@if (SrcDownloadAvailable) { - <p>This deployment also serves a copy of the source code at <a href="/MRU-SRC.tar.xz">/MRU-SRC.tar.xz</a>!</p> -} - -@code { - private bool BinDownloadAvailable { get; set; } - private bool SrcDownloadAvailable { get; set; } - - protected override async Task OnInitializedAsync() { - using var hc = new HttpClient(); - var hr = await hc.SendAsync(new HttpRequestMessage(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-BIN.tar.xz").AbsoluteUri)); - BinDownloadAvailable = hr.StatusCode == HttpStatusCode.OK; - hr = await hc.SendAsync(new HttpRequestMessage(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-SRC.tar.xz").AbsoluteUri)); - SrcDownloadAvailable = hr.StatusCode == HttpStatusCode.OK; - await base.OnInitializedAsync(); - } - -}