diff --git a/Lantean.QBTMud/Components/FilesTab.razor b/Lantean.QBTMud/Components/FilesTab.razor index 1f0e8b2..d466cf2 100644 --- a/Lantean.QBTMud/Components/FilesTab.razor +++ b/Lantean.QBTMud/Components/FilesTab.razor @@ -2,6 +2,7 @@ Rename +
@@ -22,6 +23,7 @@ +
- + @if (MainData?.LostConnection == true) { - qBittorrent client is not reachable + qBittorrent client is not reachable } - @DisplayHelpers.Size(MainData?.ServerState.FreeSpaceOnDisk, "Free space: ") - - DHT @(MainData?.ServerState.DHTNodes ?? 0) nodes - + @DisplayHelpers.Size(MainData?.ServerState.FreeSpaceOnDisk, "Free space: ") + + DHT @(MainData?.ServerState.DHTNodes ?? 0) nodes + @{ var (icon, colour) = GetConnectionIcon(MainData?.ServerState.ConnectionStatus); } - + - + @DisplayHelpers.Size(MainData?.ServerState.DownloadInfoSpeed, null, "/s") diff --git a/Lantean.QBTMud/Layout/MainLayout.razor b/Lantean.QBTMud/Layout/MainLayout.razor index c3299cf..656ef2f 100644 --- a/Lantean.QBTMud/Layout/MainLayout.razor +++ b/Lantean.QBTMud/Layout/MainLayout.razor @@ -23,16 +23,15 @@ - @if (IsDebug) - { - - - - } + + + - @Body + + @Body + diff --git a/Lantean.QBTMud/Layout/MainLayout.razor.cs b/Lantean.QBTMud/Layout/MainLayout.razor.cs index 0486957..a080a43 100644 --- a/Lantean.QBTMud/Layout/MainLayout.razor.cs +++ b/Lantean.QBTMud/Layout/MainLayout.razor.cs @@ -44,12 +44,6 @@ namespace Lantean.QBTMud.Layout protected MudTheme Theme { get; set; } -#if DEBUG - private bool IsDebug { get; } = true; -#else - private bool IsDebug { get; } = false; -#endif - public MainLayout() { Theme = new MudTheme(); @@ -96,9 +90,9 @@ namespace Lantean.QBTMud.Layout return Task.CompletedTask; } - public Task NotifyBrowserViewportChangeAsync(BrowserViewportEventArgs browserViewportEventArgs) + public async Task NotifyBrowserViewportChangeAsync(BrowserViewportEventArgs browserViewportEventArgs) { - if (browserViewportEventArgs.Breakpoint == Breakpoint.Sm && DrawerOpen) + if (browserViewportEventArgs.Breakpoint <= Breakpoint.Sm) { DrawerOpen = false; } @@ -107,7 +101,17 @@ namespace Lantean.QBTMud.Layout DrawerOpen = true; } - return Task.CompletedTask; + if (ErrorBoundary?.Errors.Count > 0) + { + ErrorDrawerOpen = true; + } + else + { + await Task.Delay(250); + ErrorDrawerOpen = false; + } + + await InvokeAsync(StateHasChanged); } protected void ToggleErrorDrawer() diff --git a/Lantean.QBTMud/Pages/About.razor b/Lantean.QBTMud/Pages/About.razor index 02b30cd..03dbfb8 100644 --- a/Lantean.QBTMud/Pages/About.razor +++ b/Lantean.QBTMud/Pages/About.razor @@ -12,89 +12,96 @@ -
- - - -
- qBittorrent @QBittorrentVersion + + + + + + + +
+
+ + qBittorrent @QBittorrentVersion +
+ + + An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar. + + + Copyright © 2006-2024 The qBittorrent project + +
+ Home Page: + + qbittorrent.org + +
+ +
+ Bug Tracker: + + bugs.qbittorrent.org + +
+ +
+ Forum: + + forum.qbittorrent.org + +
- - - An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar. - - - - Copyright © 2006-2024 The qBittorrent project - - - - Home Page - - - https://www.qbittorrent.org - - - - Bug Tracker - - - https://bugs.qbittorrent.org - - - - Forum - - - https://forum.qbittorrent.org -
-
+ - Current maintainer + Current maintainer - - Name + + Name - + Sledgehammer999 - - Nationality + + Nationality - + Greece - - E-mail + + E-mail - + sledgehammer999@qbittorrent.org - Original author + Original author - - Name + + Name - + Christophe Dumez - - Nationality + + Nationality - + France - - E-mail + + E-mail - + chris@qbittorrent.org @@ -118,7 +125,7 @@ (the list might not be up to date) - Arabic: SDERAWI (abz8868@msn.com), sn51234 (nesseyan@gmail.com) and Ibrahim Saed ibraheem_alex(Transifex) + Arabic: SDERAWI (abz8868@msn.com), sn51234 (nesseyan@gmail.com) and Ibrahim Saed ibraheem_alex(Transifex) Armenian: Hrant Ohanyan (hrantohanyan@mail.am) Basque: Xabier Aramendi (azpidatziak@gmail.com) Belarusian: Mihas Varantsou (meequz@gmail.com) @@ -1058,38 +1065,38 @@ qBittorrent was built with the following libraries: - + Qt - + @QtVersion - + Libtorrent - + @LibtorrentVersion - + Boost - + @BoostVersion - + OpenSSL - + @OpensslVersion - + zlib - + @ZlibVersion diff --git a/Lantean.QBTMud/Pages/Details.razor b/Lantean.QBTMud/Pages/Details.razor index 6d74bd5..3b899dd 100644 --- a/Lantean.QBTMud/Pages/Details.razor +++ b/Lantean.QBTMud/Pages/Details.razor @@ -1,6 +1,7 @@ @page "/details/{hash}" @layout DetailsLayout +
@if (!DrawerOpen) { @@ -14,6 +15,7 @@ @Name +
@if (ShowTabs) { diff --git a/Lantean.QBTMud/Pages/Search.razor b/Lantean.QBTMud/Pages/Search.razor index 85a3c73..321c4f2 100644 --- a/Lantean.QBTMud/Pages/Search.razor +++ b/Lantean.QBTMud/Pages/Search.razor @@ -18,7 +18,7 @@ - + @foreach (var (value, name) in Categories) { @@ -30,17 +30,21 @@ } - + All - + @if (Plugins.Count > 0) + { + + + } @foreach (var (value, name) in Plugins) { @name } - + @(_searchId is null ? "Search" : "Stop") diff --git a/Lantean.QBTMud/Pages/TorrentList.razor b/Lantean.QBTMud/Pages/TorrentList.razor index 35ecf77..5913f47 100644 --- a/Lantean.QBTMud/Pages/TorrentList.razor +++ b/Lantean.QBTMud/Pages/TorrentList.razor @@ -7,6 +7,7 @@ +
@@ -18,6 +19,7 @@ +