about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Web')
-rw-r--r--MatrixRoomUtils.Web/Pages/About.razor41
-rw-r--r--MatrixRoomUtils.Web/Shared/MainLayout.razor2
-rw-r--r--MatrixRoomUtils.Web/Shared/NavMenu.razor5
3 files changed, 47 insertions, 1 deletions
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
+
+<PageTitle>About</PageTitle>
+
+<h3>Rory&::MatrixUtils - About</h3>
+<hr/>
+<p>Rory&::MatrixRoomUtils is a "small" collection of tools to do not-so-everyday things.</p>
+<p>These range from joining rooms on dead homeservers, to managing your accounts and rooms, and creating rooms based on templates.</p>
+
+<br/><br/>
+<p>You can find the source code on <a href="https://git.rory.gay/MatrixRoomUtils.git/">my git server</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 (showBinDownload)
+{
+    <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 (showSrcDownload)
+{
+    <p>This deployment also serves a copy of the compiled, hosting-ready binaries at <a href="MRU-SRC.tar.xz">/MRU-SRC.tar.xz</a>!</p>
+}
+
+
+@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
diff --git a/MatrixRoomUtils.Web/Shared/MainLayout.razor b/MatrixRoomUtils.Web/Shared/MainLayout.razor
index 87442d8..da27978 100644
--- a/MatrixRoomUtils.Web/Shared/MainLayout.razor
+++ b/MatrixRoomUtils.Web/Shared/MainLayout.razor
@@ -29,7 +29,7 @@
     protected override async Task OnInitializedAsync()
     {
         using var hc = new HttpClient();
-        var hr = await hc.SendAsync(new(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU.tar.xz").AbsoluteUri));
+        var hr = await hc.SendAsync(new(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-BIN.tar.xz").AbsoluteUri));
         showDownload = hr.StatusCode == HttpStatusCode.OK;
         await base.OnInitializedAsync();
 
diff --git a/MatrixRoomUtils.Web/Shared/NavMenu.razor b/MatrixRoomUtils.Web/Shared/NavMenu.razor
index 18ea33d..0027901 100644
--- a/MatrixRoomUtils.Web/Shared/NavMenu.razor
+++ b/MatrixRoomUtils.Web/Shared/NavMenu.razor
@@ -15,6 +15,11 @@
             </NavLink>
         </div>
         <div class="nav-item px-3">
+            <NavLink class="nav-link" href="About">
+                <span class="oi oi-plus" aria-hidden="true"></span> About MRU
+            </NavLink>
+        </div>
+        <div class="nav-item px-3">
             <NavLink class="nav-link" href="Export">
                 <span class="oi oi-plus" aria-hidden="true"></span> Export data
             </NavLink>