diff options
author | Rory& <root@rory.gay> | 2024-01-24 12:18:32 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-01-24 12:19:08 +0100 |
commit | b9a08ec061f271df57d0a14667fe6af3d523db6b (patch) | |
tree | ec048a950ba3874ec2f7e7a70dcb2f4fc892998e /MatrixRoomUtils.Web/Shared/MainLayout.razor | |
parent | Minor cleanup of file tree (diff) | |
download | MatrixUtils-b9a08ec061f271df57d0a14667fe6af3d523db6b.tar.xz |
Removal of download links due to maintenance burden
Diffstat (limited to 'MatrixRoomUtils.Web/Shared/MainLayout.razor')
-rw-r--r-- | MatrixRoomUtils.Web/Shared/MainLayout.razor | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/MatrixRoomUtils.Web/Shared/MainLayout.razor b/MatrixRoomUtils.Web/Shared/MainLayout.razor index 74db805..2322af1 100644 --- a/MatrixRoomUtils.Web/Shared/MainLayout.razor +++ b/MatrixRoomUtils.Web/Shared/MainLayout.razor @@ -9,36 +9,12 @@ <main> <div class="top-row px-4"> <PortableDevTools></PortableDevTools> - <a href="https://cgit.rory.gay/MatrixRoomUtils.git/" target="_blank">Git</a> + <a href="https://cgit.rory.gay/matrix/MatrixRoomUtils.git/" target="_blank">Git</a> <a href="https://matrix.to/#/%23mru%3Arory.gay?via=rory.gay&via=matrix.org&via=feline.support" target="_blank">Matrix</a> - @if (showDownload) { - <a href="/MRU.tar.xz" target="_blank">Download</a> - } </div> <article class="Content px-4"> @Body </article> </main> -</div> - -@code { - private bool showDownload { 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)); - showDownload = hr.StatusCode == HttpStatusCode.OK; - - // TODO: fix console logging toggle - // if (!LocalStorageWrapper.Settings.DeveloperSettings.EnableConsoleLogging) { - // Console.WriteLine("Console logging disabled!"); - // var sw = new StringWriter(); - // Console.SetOut(sw); - // Console.SetError(sw); - // } - - await base.OnInitializedAsync(); - } - -} \ No newline at end of file +</div> \ No newline at end of file |