From b9a08ec061f271df57d0a14667fe6af3d523db6b Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 24 Jan 2024 12:18:32 +0100 Subject: Removal of download links due to maintenance burden --- MatrixRoomUtils.Web/Pages/About.razor | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'MatrixRoomUtils.Web/Pages') 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 About @@ -13,24 +10,3 @@

You can find the source code on cgit.rory.gay.

You can also join the Matrix room for this project.

-@if (BinDownloadAvailable) { -

This deployment also serves a copy of the compiled, hosting-ready binaries at /MRU-BIN.tar.xz!

-} -@if (SrcDownloadAvailable) { -

This deployment also serves a copy of the source code at /MRU-SRC.tar.xz!

-} - -@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(); - } - -} -- cgit 1.5.1