diff --git a/Clients/TgDownloaderBlazor/.config/dotnet-tools.json b/Clients/TgDownloaderBlazor/.config/dotnet-tools.json new file mode 100644 index 00000000..9d58272e --- /dev/null +++ b/Clients/TgDownloaderBlazor/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "8.0.2", + "commands": [ + "dotnet-ef" + ] + } + } +} \ No newline at end of file diff --git a/Clients/TgDownloaderBlazor/Components/Pages/HomeComponent.razor.cs b/Clients/TgDownloaderBlazor/Components/Pages/HomeComponent.razor.cs deleted file mode 100644 index da193c57..00000000 --- a/Clients/TgDownloaderBlazor/Components/Pages/HomeComponent.razor.cs +++ /dev/null @@ -1,24 +0,0 @@ -// This is an independent project of an individual developer. Dear PVS-Studio, please check it. -// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com - -namespace TgDownloaderBlazor.Components.Pages; - -public sealed partial class HomeComponent : TgPageComponent -{ - #region Public and private fields, properties, constructor - - public static string AppVersionTitle { get; set; } = string.Empty; - public static string AppVersionShort { get; set; } = string.Empty; - public static string AppVersionFull { get; set; } = string.Empty; - - public HomeComponent() - { - AppVersionTitle = $"{TgLocale.AppTitleBlazor} " + - $"v{TgCommonUtils.GetTrimVersion(Assembly.GetExecutingAssembly().GetName().Version)}"; - AppVersionShort = $"v{TgCommonUtils.GetTrimVersion(Assembly.GetExecutingAssembly().GetName().Version)}"; - AppVersionFull = $"{TgLocale.AppVersion}: {AppVersionShort}"; - - } - - #endregion -} \ No newline at end of file diff --git a/Clients/TgDownloaderBlazor/Components/Routes.razor b/Clients/TgDownloaderBlazor/Components/Routes.razor deleted file mode 100644 index f756e19d..00000000 --- a/Clients/TgDownloaderBlazor/Components/Routes.razor +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/Clients/TgDownloaderBlazor/Components/AppComponent.razor b/Clients/TgDownloaderBlazor/Features/AppComponent.razor similarity index 82% rename from Clients/TgDownloaderBlazor/Components/AppComponent.razor rename to Clients/TgDownloaderBlazor/Features/AppComponent.razor index 70dd0a6c..265906f0 100644 --- a/Clients/TgDownloaderBlazor/Components/AppComponent.razor +++ b/Clients/TgDownloaderBlazor/Features/AppComponent.razor @@ -8,6 +8,7 @@ + diff --git a/Clients/TgDownloaderBlazor/Components/Pages/HomeComponent.razor b/Clients/TgDownloaderBlazor/Features/Home/HomeComponent.razor similarity index 100% rename from Clients/TgDownloaderBlazor/Components/Pages/HomeComponent.razor rename to Clients/TgDownloaderBlazor/Features/Home/HomeComponent.razor diff --git a/Clients/TgDownloaderBlazor/Features/Home/HomeComponent.razor.cs b/Clients/TgDownloaderBlazor/Features/Home/HomeComponent.razor.cs new file mode 100644 index 00000000..0a6e7981 --- /dev/null +++ b/Clients/TgDownloaderBlazor/Features/Home/HomeComponent.razor.cs @@ -0,0 +1,24 @@ +// This is an independent project of an individual developer. Dear PVS-Studio, please check it. +// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com + +namespace TgDownloaderBlazor.Features.Home; + +public sealed partial class HomeComponent : TgPageComponent +{ + #region Public and private fields, properties, constructor + + public static string AppVersionTitle { get; set; } = string.Empty; + public static string AppVersionShort { get; set; } = string.Empty; + public static string AppVersionFull { get; set; } = string.Empty; + + public HomeComponent() + { + AppVersionTitle = $"{TgLocale.AppTitleBlazor} " + + $"v{TgCommonUtils.GetTrimVersion(Assembly.GetExecutingAssembly().GetName().Version)}"; + AppVersionShort = $"v{TgCommonUtils.GetTrimVersion(Assembly.GetExecutingAssembly().GetName().Version)}"; + AppVersionFull = $"{TgLocale.AppVersion}: {AppVersionShort}"; + + } + + #endregion +} \ No newline at end of file diff --git a/Clients/TgDownloaderBlazor/Features/Layout/Header.razor b/Clients/TgDownloaderBlazor/Features/Layout/Header.razor new file mode 100644 index 00000000..b0deb2f4 --- /dev/null +++ b/Clients/TgDownloaderBlazor/Features/Layout/Header.razor @@ -0,0 +1,8 @@ +@page "/Header" +@inherits TgPageComponent + + \ No newline at end of file diff --git a/Clients/TgDownloaderBlazor/Features/Layout/Header.razor.cs b/Clients/TgDownloaderBlazor/Features/Layout/Header.razor.cs new file mode 100644 index 00000000..44b1a974 --- /dev/null +++ b/Clients/TgDownloaderBlazor/Features/Layout/Header.razor.cs @@ -0,0 +1,6 @@ +namespace TgDownloaderBlazor.Features.Layout; + +public sealed partial class Header : TgPageComponent +{ + +} diff --git a/Clients/TgDownloaderBlazor/Components/Layout/MainLayout.razor b/Clients/TgDownloaderBlazor/Features/Layout/MainLayout.razor similarity index 92% rename from Clients/TgDownloaderBlazor/Components/Layout/MainLayout.razor rename to Clients/TgDownloaderBlazor/Features/Layout/MainLayout.razor index 882fab11..202c86df 100644 --- a/Clients/TgDownloaderBlazor/Components/Layout/MainLayout.razor +++ b/Clients/TgDownloaderBlazor/Features/Layout/MainLayout.razor @@ -5,6 +5,7 @@ + @*
*@
@LocaleHelper.FieldTgDownloader diff --git a/Clients/TgDownloaderBlazor/Components/Layout/MainLayout.razor.cs b/Clients/TgDownloaderBlazor/Features/Layout/MainLayout.razor.cs similarity index 58% rename from Clients/TgDownloaderBlazor/Components/Layout/MainLayout.razor.cs rename to Clients/TgDownloaderBlazor/Features/Layout/MainLayout.razor.cs index 60431b60..bacb58c0 100644 --- a/Clients/TgDownloaderBlazor/Components/Layout/MainLayout.razor.cs +++ b/Clients/TgDownloaderBlazor/Features/Layout/MainLayout.razor.cs @@ -1,6 +1,6 @@ -namespace TgDownloaderBlazor.Components.Layout; +namespace TgDownloaderBlazor.Features.Layout; -public sealed partial class MainLayout +public sealed partial class MainLayout : LayoutComponentBase { #region Public and private fields, properties, constructor diff --git a/Clients/TgDownloaderBlazor/Components/Layout/MainLayout.razor.css b/Clients/TgDownloaderBlazor/Features/Layout/MainLayout.razor.css similarity index 100% rename from Clients/TgDownloaderBlazor/Components/Layout/MainLayout.razor.css rename to Clients/TgDownloaderBlazor/Features/Layout/MainLayout.razor.css diff --git a/Clients/TgDownloaderBlazor/Components/Layout/NavMenu.razor b/Clients/TgDownloaderBlazor/Features/Layout/NavMenu.razor similarity index 82% rename from Clients/TgDownloaderBlazor/Components/Layout/NavMenu.razor rename to Clients/TgDownloaderBlazor/Features/Layout/NavMenu.razor index 58714df4..ea3381aa 100644 --- a/Clients/TgDownloaderBlazor/Components/Layout/NavMenu.razor +++ b/Clients/TgDownloaderBlazor/Features/Layout/NavMenu.razor @@ -20,6 +20,11 @@ @TgLocale.MenuMainApps
+