MatrixRoomUtils

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

About.razor (1670B)


      1 @page "/About"
      2 @using System.Net
      3 @inject NavigationManager NavigationManager
      4 @inject ILocalStorageService LocalStorage
      5 
      6 <PageTitle>About</PageTitle>
      7 
      8 <h3>Rory&::MatrixUtils - About</h3>
      9 <hr/>
     10 <p>Rory&::MatrixRoomUtils is a "small" collection of tools to do not-so-everyday things.</p>
     11 <p>These range from joining rooms on dead homeservers, to managing your accounts and rooms, and creating rooms based on templates.</p>
     12 
     13 <br/><br/>
     14 <p>You can find the source code on <a href="https://git.rory.gay/MatrixRoomUtils.git/">my git server</a>.<br/></p>
     15 <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>
     16 @if (showBinDownload)
     17 {
     18     <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>
     19 }
     20 @if (showSrcDownload)
     21 {
     22     <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>
     23 }
     24 
     25 
     26 @code {
     27     private bool showBinDownload { get; set; } = false;
     28     private bool showSrcDownload { get; set; } = false;
     29 
     30     protected override async Task OnInitializedAsync()
     31     {
     32         using var hc = new HttpClient();
     33         var hr = await hc.SendAsync(new(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-BIN.tar.xz").AbsoluteUri));
     34         showBinDownload = hr.StatusCode == HttpStatusCode.OK;
     35         hr = await hc.SendAsync(new(HttpMethod.Head, NavigationManager.ToAbsoluteUri("/MRU-SRC.tar.xz").AbsoluteUri));
     36         showSrcDownload = hr.StatusCode == HttpStatusCode.OK;
     37         await base.OnInitializedAsync();
     38     }
     39 
     40 }