From 50d6afe5f9931c3c19a3038f5b638c4e505a3364 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 4 May 2023 21:14:33 +0200 Subject: Add license, deploy src --- MatrixRoomUtils.Web/Pages/About.razor | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 MatrixRoomUtils.Web/Pages/About.razor (limited to 'MatrixRoomUtils.Web/Pages') diff --git a/MatrixRoomUtils.Web/Pages/About.razor b/MatrixRoomUtils.Web/Pages/About.razor new file mode 100644 index 0000000..fc9128e --- /dev/null +++ b/MatrixRoomUtils.Web/Pages/About.razor @@ -0,0 +1,41 @@ +@page "/About" +@using MatrixRoomUtils.Web.Shared.IndexComponents +@using System.Net +@inject NavigationManager NavigationManager +@inject ILocalStorageService LocalStorage + +About + +

Rory&::MatrixUtils - About

+
+

Rory&::MatrixRoomUtils is a "small" collection of tools to do not-so-everyday things.

+

These range from joining rooms on dead homeservers, to managing your accounts and rooms, and creating rooms based on templates.

+ +

+

You can find the source code on my git server.

+

You can also join the Matrix room for this project.

+@if (showBinDownload) +{ +

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

+} +@if (showSrcDownload) +{ +

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

+} + + +@code { + private bool showBinDownload { get; set; } = false; + private bool showSrcDownload { get; set; } = false; + + protected override async Task OnInitializedAsync() + { + using var hc = new HttpClient(); + var hr = await hc.SendAsync(new(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-BIN.tar.xz").AbsoluteUri)); + showBinDownload = hr.StatusCode == HttpStatusCode.OK; + hr = await hc.SendAsync(new(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-SRC.tar.xz").AbsoluteUri)); + showSrcDownload = hr.StatusCode == HttpStatusCode.OK; + await base.OnInitializedAsync(); + } + +} \ No newline at end of file -- cgit 1.5.1