diff --git a/src/FluentHub.App/App.xaml.cs b/src/FluentHub.App/App.xaml.cs index 200b6c2a3..a1f48afed 100644 --- a/src/FluentHub.App/App.xaml.cs +++ b/src/FluentHub.App/App.xaml.cs @@ -1,20 +1,14 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Utils; -using FluentHub.App.Services; +using CommunityToolkit.WinUI; using FluentHub.App.ViewModels; -using Microsoft.Extensions.Hosting; -using Microsoft.UI; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Navigation; -using Microsoft.UI.Windowing; using Microsoft.Windows.AppLifecycle; +using Serilog; using Windows.ApplicationModel; using Windows.Storage; -using CommunityToolkit.WinUI; -using FluentHub.App.ViewModels.Repositories.Codes; -using Serilog; namespace FluentHub.App { diff --git a/src/FluentHub.App/Converters/HexColorCodeToSolidColorBrushConverter.cs b/src/FluentHub.App/Converters/HexColorCodeToSolidColorBrushConverter.cs index 80b64e99e..f5b8ccb6f 100644 --- a/src/FluentHub.App/Converters/HexColorCodeToSolidColorBrushConverter.cs +++ b/src/FluentHub.App/Converters/HexColorCodeToSolidColorBrushConverter.cs @@ -1,9 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using Windows.UI; using Microsoft.UI.Xaml.Data; using Microsoft.UI.Xaml.Media; +using Windows.UI; namespace FluentHub.App.Converters { diff --git a/src/FluentHub.App/Converters/ObjectToStringConverter.cs b/src/FluentHub.App/Converters/ObjectToStringConverter.cs index 1195b96d6..83c026eaa 100644 --- a/src/FluentHub.App/Converters/ObjectToStringConverter.cs +++ b/src/FluentHub.App/Converters/ObjectToStringConverter.cs @@ -1,7 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Data; namespace FluentHub.App.Converters diff --git a/src/FluentHub.App/Data/Items/NavigationBarItem.cs b/src/FluentHub.App/Data/Items/NavigationBarItem.cs index f680ef24d..b8973dff9 100644 --- a/src/FluentHub.App/Data/Items/NavigationBarItem.cs +++ b/src/FluentHub.App/Data/Items/NavigationBarItem.cs @@ -5,7 +5,7 @@ namespace FluentHub.App.Data.Items { public class NavigationBarItem { - public string? Text{ get; set; } + public string? Text { get; set; } public string? Glyph { get; set; } diff --git a/src/FluentHub.App/Data/Models/CheckRunGroupModel.cs b/src/FluentHub.App/Data/Models/CheckRunGroupModel.cs index de208fb28..1d467d9a8 100644 --- a/src/FluentHub.App/Data/Models/CheckRunGroupModel.cs +++ b/src/FluentHub.App/Data/Models/CheckRunGroupModel.cs @@ -1,12 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace FluentHub.App.Models { public class CheckRunGroupModel diff --git a/src/FluentHub.App/Data/Models/CheckRunItemModel.cs b/src/FluentHub.App/Data/Models/CheckRunItemModel.cs index 5d1a24109..4d3725ede 100644 --- a/src/FluentHub.App/Data/Models/CheckRunItemModel.cs +++ b/src/FluentHub.App/Data/Models/CheckRunItemModel.cs @@ -1,12 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace FluentHub.App.Models { public class CheckRunItemModel diff --git a/src/FluentHub.App/Dialogs/AccountSwitching.xaml.cs b/src/FluentHub.App/Dialogs/AccountSwitching.xaml.cs index e9d0bbf64..8be6bdde2 100644 --- a/src/FluentHub.App/Dialogs/AccountSwitching.xaml.cs +++ b/src/FluentHub.App/Dialogs/AccountSwitching.xaml.cs @@ -1,8 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Dialogs; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/Dialogs/CreateNewRepositoryDialog.xaml.cs b/src/FluentHub.App/Dialogs/CreateNewRepositoryDialog.xaml.cs index 4ca47812e..c06d2acd4 100644 --- a/src/FluentHub.App/Dialogs/CreateNewRepositoryDialog.xaml.cs +++ b/src/FluentHub.App/Dialogs/CreateNewRepositoryDialog.xaml.cs @@ -1,20 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Controls.Primitives; -using Microsoft.UI.Xaml.Data; -using Microsoft.UI.Xaml.Input; -using Microsoft.UI.Xaml.Media; -using Microsoft.UI.Xaml.Navigation; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; -using Windows.Foundation; -using Windows.Foundation.Collections; namespace FluentHub.App.Dialogs { diff --git a/src/FluentHub.App/Dialogs/EditPinnedRepositoriesDialog.xaml.cs b/src/FluentHub.App/Dialogs/EditPinnedRepositoriesDialog.xaml.cs index 5e1301a6e..e8e4fe6a5 100644 --- a/src/FluentHub.App/Dialogs/EditPinnedRepositoriesDialog.xaml.cs +++ b/src/FluentHub.App/Dialogs/EditPinnedRepositoriesDialog.xaml.cs @@ -1,9 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Services; using FluentHub.App.ViewModels.Dialogs; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; namespace FluentHub.App.Dialogs diff --git a/src/FluentHub.App/Dialogs/EditUserProfileDialog.xaml.cs b/src/FluentHub.App/Dialogs/EditUserProfileDialog.xaml.cs index 52d630313..397f1fd9d 100644 --- a/src/FluentHub.App/Dialogs/EditUserProfileDialog.xaml.cs +++ b/src/FluentHub.App/Dialogs/EditUserProfileDialog.xaml.cs @@ -1,9 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Services; using FluentHub.App.ViewModels.Dialogs; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; namespace FluentHub.App.Dialogs diff --git a/src/FluentHub.App/Dialogs/ExceptionStackTraceDialog.xaml.cs b/src/FluentHub.App/Dialogs/ExceptionStackTraceDialog.xaml.cs index d3389585f..774284ddb 100644 --- a/src/FluentHub.App/Dialogs/ExceptionStackTraceDialog.xaml.cs +++ b/src/FluentHub.App/Dialogs/ExceptionStackTraceDialog.xaml.cs @@ -1,9 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Dialogs; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; namespace FluentHub.App.Dialogs diff --git a/src/FluentHub.App/Extensions/EnumExtensions.cs b/src/FluentHub.App/Extensions/EnumExtensions.cs index ddc4702b2..38cbe4b4a 100644 --- a/src/FluentHub.App/Extensions/EnumExtensions.cs +++ b/src/FluentHub.App/Extensions/EnumExtensions.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; namespace FluentHub.App.Extensions diff --git a/src/FluentHub.App/Extensions/LinqExtensions.cs b/src/FluentHub.App/Extensions/LinqExtensions.cs index 3b286888c..3f43b8117 100644 --- a/src/FluentHub.App/Extensions/LinqExtensions.cs +++ b/src/FluentHub.App/Extensions/LinqExtensions.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace FluentHub.App.Extensions +namespace FluentHub.App.Extensions { public static class LinqExtensions { diff --git a/src/FluentHub.App/Extensions/StringExtensions.cs b/src/FluentHub.App/Extensions/StringExtensions.cs index 9b25a8632..bb45568f8 100644 --- a/src/FluentHub.App/Extensions/StringExtensions.cs +++ b/src/FluentHub.App/Extensions/StringExtensions.cs @@ -1,8 +1,5 @@ using Microsoft.Windows.ApplicationModel.Resources; -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO; namespace FluentHub.App.Extensions { diff --git a/src/FluentHub.App/GlobalUsings.cs b/src/FluentHub.App/GlobalUsings.cs index b24bb253f..dbbad8f5b 100644 --- a/src/FluentHub.App/GlobalUsings.cs +++ b/src/FluentHub.App/GlobalUsings.cs @@ -2,23 +2,11 @@ // Licensed under the MIT License. See the LICENSE. // Default -global using global::System; -global using global::System.Collections.Generic; -global using global::System.Collections.ObjectModel; -global using global::System.Linq; -global using global::System.Text; -global using global::System.Threading; -global using global::System.Threading.Tasks; - -// Generic -global using global::Microsoft.Extensions.DependencyInjection; - // Windows Community Toolkit global using global::CommunityToolkit.Mvvm.ComponentModel; global using global::CommunityToolkit.Mvvm.DependencyInjection; global using global::CommunityToolkit.Mvvm.Input; global using global::CommunityToolkit.Mvvm.Messaging; - // FluentHub global using global::FluentHub.App.Data.EventArgs; global using global::FluentHub.App.Data.Factories; @@ -30,8 +18,16 @@ global using global::FluentHub.Core.Data.Enums; global using global::FluentHub.Octokit.Models.v3; global using global::FluentHub.Octokit.Models.v4; - +global using global::Humanizer; +// Generic +global using global::Microsoft.Extensions.DependencyInjection; // Third-party global using global::Octokit.GraphQL; +global using global::System; +global using global::System.Collections.Generic; +global using global::System.Collections.ObjectModel; +global using global::System.Linq; +global using global::System.Text; +global using global::System.Threading; +global using global::System.Threading.Tasks; global using OctokitOriginal = global::Octokit; -global using global::Humanizer; diff --git a/src/FluentHub.App/Helpers/AppLifecycleHelper.cs b/src/FluentHub.App/Helpers/AppLifecycleHelper.cs index 7944b215f..1606493cc 100644 --- a/src/FluentHub.App/Helpers/AppLifecycleHelper.cs +++ b/src/FluentHub.App/Helpers/AppLifecycleHelper.cs @@ -2,16 +2,11 @@ // Licensed under the MIT License. See the LICENSE. using FluentHub.App.Utils; -using FluentHub.App.Services; using FluentHub.App.ViewModels; using Microsoft.Extensions.Hosting; using Microsoft.UI; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Navigation; using Microsoft.UI.Windowing; -using Microsoft.Windows.AppLifecycle; -using Windows.ApplicationModel; -using Windows.Storage; +using Microsoft.UI.Xaml; using Serilog; namespace FluentHub.App.Helpers diff --git a/src/FluentHub.App/Helpers/DateTimeDurationHelpers.cs b/src/FluentHub.App/Helpers/DateTimeDurationHelpers.cs index 381ae45e5..389147e62 100644 --- a/src/FluentHub.App/Helpers/DateTimeDurationHelpers.cs +++ b/src/FluentHub.App/Helpers/DateTimeDurationHelpers.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace FluentHub.App.Helpers +namespace FluentHub.App.Helpers { public static class DateTimeDurationHelpers { diff --git a/src/FluentHub.App/Helpers/ExternalResourcesHelpers.cs b/src/FluentHub.App/Helpers/ExternalResourcesHelpers.cs index 66a9fe2ee..542eb6a94 100644 --- a/src/FluentHub.App/Helpers/ExternalResourcesHelpers.cs +++ b/src/FluentHub.App/Helpers/ExternalResourcesHelpers.cs @@ -1,9 +1,3 @@ -using FluentHub.App.Models; -using System.Diagnostics; -using Windows.Storage; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Markup; - namespace FluentHub.App.Helpers { // TODO: Not supported helpers diff --git a/src/FluentHub.App/Helpers/MentionHelpers.cs b/src/FluentHub.App/Helpers/MentionHelpers.cs index 3889d34e4..3c70fa625 100644 --- a/src/FluentHub.App/Helpers/MentionHelpers.cs +++ b/src/FluentHub.App/Helpers/MentionHelpers.cs @@ -1,12 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Windows.UI.Text; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Documents; - namespace FluentHub.App.Helpers { // TODO: Not supported helpers diff --git a/src/FluentHub.App/Helpers/NativeWinApiHelper.cs b/src/FluentHub.App/Helpers/NativeWinApiHelper.cs index 981547e92..ddd44e0b9 100644 --- a/src/FluentHub.App/Helpers/NativeWinApiHelper.cs +++ b/src/FluentHub.App/Helpers/NativeWinApiHelper.cs @@ -1,8 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading.Tasks; -using Windows.Foundation.Collections; +using System.Runtime.InteropServices; namespace FluentHub.App.Helpers { diff --git a/src/FluentHub.App/Helpers/ResourceHelpers.cs b/src/FluentHub.App/Helpers/ResourceHelpers.cs index 09b3e9ef3..54ed26aa7 100644 --- a/src/FluentHub.App/Helpers/ResourceHelpers.cs +++ b/src/FluentHub.App/Helpers/ResourceHelpers.cs @@ -1,5 +1,5 @@ -using Windows.ApplicationModel.Resources; using Microsoft.UI.Xaml.Markup; +using Windows.ApplicationModel.Resources; namespace FluentHub.App.Helpers { diff --git a/src/FluentHub.App/Helpers/ThemeHelpers.cs b/src/FluentHub.App/Helpers/ThemeHelpers.cs index 2c93cc61b..39c8deaae 100644 --- a/src/FluentHub.App/Helpers/ThemeHelpers.cs +++ b/src/FluentHub.App/Helpers/ThemeHelpers.cs @@ -1,13 +1,11 @@ using CommunityToolkit.WinUI; using FluentHub.App.Extensions; -using System; -using Windows.UI; -using Microsoft.UI.Dispatching; +using Microsoft.UI; using Microsoft.UI.Windowing; using Microsoft.UI.Xaml; using Windows.Storage; +using Windows.UI; using Windows.UI.ViewManagement; -using Microsoft.UI; namespace FluentHub.App.Helpers { diff --git a/src/FluentHub.App/MainWindow.xaml.cs b/src/FluentHub.App/MainWindow.xaml.cs index f23a3fa56..0fcd0a69f 100644 --- a/src/FluentHub.App/MainWindow.xaml.cs +++ b/src/FluentHub.App/MainWindow.xaml.cs @@ -1,7 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Models; using FluentHub.App.ViewModels.SignIn; using Microsoft.UI; using Microsoft.UI.Windowing; diff --git a/src/FluentHub.App/Program.cs b/src/FluentHub.App/Program.cs index 8a9daa9cd..cbf8baa75 100644 --- a/src/FluentHub.App/Program.cs +++ b/src/FluentHub.App/Program.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. See the LICENSE. using FluentHub.App.Extensions; -using FluentHub.App.Helpers; using Microsoft.UI.Dispatching; using Microsoft.UI.Xaml; using Microsoft.Windows.AppLifecycle; diff --git a/src/FluentHub.App/UserControls/BlockButtons/CodeBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/CodeBlockButton.xaml.cs index 909921f86..164f1e3f1 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/CodeBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/CodeBlockButton.xaml.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls.BlockButtons; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; namespace FluentHub.App.UserControls.BlockButtons diff --git a/src/FluentHub.App/UserControls/BlockButtons/CommitBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/CommitBlockButton.xaml.cs index 9b447b36f..7f5c725a1 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/CommitBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/CommitBlockButton.xaml.cs @@ -1,9 +1,6 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Controls.Primitives; namespace FluentHub.App.UserControls.BlockButtons { diff --git a/src/FluentHub.App/UserControls/BlockButtons/DiscussionBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/DiscussionBlockButton.xaml.cs index 95cd66d42..3d3d8c51a 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/DiscussionBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/DiscussionBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/BlockButtons/IssueBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/IssueBlockButton.xaml.cs index 1040a363a..7a9b07e45 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/IssueBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/IssueBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; @@ -24,7 +22,7 @@ public IssueBlockButtonViewModel ViewModel ViewModel?.LoadContents(); } } - + public IssueBlockButton() { InitializeComponent(); diff --git a/src/FluentHub.App/UserControls/BlockButtons/NotificationBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/NotificationBlockButton.xaml.cs index 35d17ab42..ec432f99c 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/NotificationBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/NotificationBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/BlockButtons/OrgBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/OrgBlockButton.xaml.cs index b6f6b6892..b5ddc3863 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/OrgBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/OrgBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/BlockButtons/PackageBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/PackageBlockButton.xaml.cs index 6d36caf3a..6051c73fc 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/PackageBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/PackageBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/BlockButtons/ProjectBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/ProjectBlockButton.xaml.cs index 20c43a810..d03cb584e 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/ProjectBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/ProjectBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/BlockButtons/PullBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/PullBlockButton.xaml.cs index 8fb9307f8..5c40e3058 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/PullBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/PullBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/BlockButtons/RepoBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/RepoBlockButton.xaml.cs index ff788e01c..ad962298b 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/RepoBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/RepoBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/BlockButtons/UserBlockButton.xaml.cs b/src/FluentHub.App/UserControls/BlockButtons/UserBlockButton.xaml.cs index 69a701e8b..6f67b545f 100644 --- a/src/FluentHub.App/UserControls/BlockButtons/UserBlockButton.xaml.cs +++ b/src/FluentHub.App/UserControls/BlockButtons/UserBlockButton.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.BlockButtons; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/BranchName.xaml.cs b/src/FluentHub.App/UserControls/BranchName.xaml.cs index cef33ee4d..7d31f9f38 100644 --- a/src/FluentHub.App/UserControls/BranchName.xaml.cs +++ b/src/FluentHub.App/UserControls/BranchName.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/DiffBlock.xaml.cs b/src/FluentHub.App/UserControls/DiffBlock.xaml.cs index 90c7f247c..d088652fd 100644 --- a/src/FluentHub.App/UserControls/DiffBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/DiffBlock.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/FeedBlocks/ActivityBlock.xaml.cs b/src/FluentHub.App/UserControls/FeedBlocks/ActivityBlock.xaml.cs index 0a7d0a00e..aa603f63d 100644 --- a/src/FluentHub.App/UserControls/FeedBlocks/ActivityBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/FeedBlocks/ActivityBlock.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.FeedBlocks; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/FeedBlocks/SingleCommentBlock.xaml.cs b/src/FluentHub.App/UserControls/FeedBlocks/SingleCommentBlock.xaml.cs index 56fd3fe5d..0a4e26824 100644 --- a/src/FluentHub.App/UserControls/FeedBlocks/SingleCommentBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/FeedBlocks/SingleCommentBlock.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.FeedBlocks; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/FeedBlocks/SingleCommitBlock.xaml.cs b/src/FluentHub.App/UserControls/FeedBlocks/SingleCommitBlock.xaml.cs index 5dd8c47f1..36e1a10ef 100644 --- a/src/FluentHub.App/UserControls/FeedBlocks/SingleCommitBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/FeedBlocks/SingleCommitBlock.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.FeedBlocks; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/FeedBlocks/SingleReleaseBlock.xaml.cs b/src/FluentHub.App/UserControls/FeedBlocks/SingleReleaseBlock.xaml.cs index afb895aa3..6d7e316b4 100644 --- a/src/FluentHub.App/UserControls/FeedBlocks/SingleReleaseBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/FeedBlocks/SingleReleaseBlock.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.FeedBlocks; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/FileContentBlock.xaml.cs b/src/FluentHub.App/UserControls/FileContentBlock.xaml.cs index 10ae0d4ed..38b64bc52 100644 --- a/src/FluentHub.App/UserControls/FileContentBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/FileContentBlock.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories; using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; diff --git a/src/FluentHub.App/UserControls/FileNavigationBlock.xaml.cs b/src/FluentHub.App/UserControls/FileNavigationBlock.xaml.cs index 67667b69f..a9d635c42 100644 --- a/src/FluentHub.App/UserControls/FileNavigationBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/FileNavigationBlock.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories; using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; diff --git a/src/FluentHub.App/UserControls/GitCloneFlyout.xaml.cs b/src/FluentHub.App/UserControls/GitCloneFlyout.xaml.cs index 3b19d1d94..a74dedec5 100644 --- a/src/FluentHub.App/UserControls/GitCloneFlyout.xaml.cs +++ b/src/FluentHub.App/UserControls/GitCloneFlyout.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/IssueCommentBlock.xaml.cs b/src/FluentHub.App/UserControls/IssueCommentBlock.xaml.cs index 079aa5036..ab463e1da 100644 --- a/src/FluentHub.App/UserControls/IssueCommentBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/IssueCommentBlock.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Extensions; -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/LatestCommitBlock.xaml.cs b/src/FluentHub.App/UserControls/LatestCommitBlock.xaml.cs index ab7e23893..4862569b4 100644 --- a/src/FluentHub.App/UserControls/LatestCommitBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/LatestCommitBlock.xaml.cs @@ -1,7 +1,5 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls; using FluentHub.App.ViewModels.Repositories; +using FluentHub.App.ViewModels.UserControls; using FluentHub.App.Views.Repositories.Commits; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/LoadErrorDisplay.xaml.cs b/src/FluentHub.App/UserControls/LoadErrorDisplay.xaml.cs index 342a287ba..5651f5dec 100644 --- a/src/FluentHub.App/UserControls/LoadErrorDisplay.xaml.cs +++ b/src/FluentHub.App/UserControls/LoadErrorDisplay.xaml.cs @@ -1,11 +1,9 @@ using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using System.IO; -using Windows.System; using Windows.Storage; +using Windows.System; namespace FluentHub.App.UserControls { @@ -85,7 +83,7 @@ private void SetCurrentTabItem() currentItem.Description = "Something went wrong"; } - private void NotifyErrorContent() + private void NotifyErrorContent() { var messenger = Ioc.Default.GetRequiredService(); diff --git a/src/FluentHub.App/UserControls/Overview/AppSettingsOverview.xaml.cs b/src/FluentHub.App/UserControls/Overview/AppSettingsOverview.xaml.cs index 169930385..789cac70c 100644 --- a/src/FluentHub.App/UserControls/Overview/AppSettingsOverview.xaml.cs +++ b/src/FluentHub.App/UserControls/Overview/AppSettingsOverview.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/Overview/OrganizationProfileOverview.xaml.cs b/src/FluentHub.App/UserControls/Overview/OrganizationProfileOverview.xaml.cs index a8e816c1d..d4bbc80a7 100644 --- a/src/FluentHub.App/UserControls/Overview/OrganizationProfileOverview.xaml.cs +++ b/src/FluentHub.App/UserControls/Overview/OrganizationProfileOverview.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/Overview/PullRequestOverview.xaml.cs b/src/FluentHub.App/UserControls/Overview/PullRequestOverview.xaml.cs index f971da5d9..67f6e914a 100644 --- a/src/FluentHub.App/UserControls/Overview/PullRequestOverview.xaml.cs +++ b/src/FluentHub.App/UserControls/Overview/PullRequestOverview.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/Overview/RepositoryOverview.xaml.cs b/src/FluentHub.App/UserControls/Overview/RepositoryOverview.xaml.cs index 6938f595b..069b195f0 100644 --- a/src/FluentHub.App/UserControls/Overview/RepositoryOverview.xaml.cs +++ b/src/FluentHub.App/UserControls/Overview/RepositoryOverview.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; @@ -29,7 +27,7 @@ public RepositoryOverviewViewModel ViewModel #endregion public RepositoryOverview() => InitializeComponent(); - + private void OnRepoPageNavViewItemInvoked(NavigationView sender, NavigationViewItemInvokedEventArgs args) { var service = Ioc.Default.GetRequiredService(); diff --git a/src/FluentHub.App/UserControls/Overview/UserProfileOverview.xaml.cs b/src/FluentHub.App/UserControls/Overview/UserProfileOverview.xaml.cs index a73f54b0d..b8a280c6a 100644 --- a/src/FluentHub.App/UserControls/Overview/UserProfileOverview.xaml.cs +++ b/src/FluentHub.App/UserControls/Overview/UserProfileOverview.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/PrimerControls/Avatar.xaml.cs b/src/FluentHub.App/UserControls/PrimerControls/Avatar.xaml.cs index b5587c5c2..5be0a90b2 100644 --- a/src/FluentHub.App/UserControls/PrimerControls/Avatar.xaml.cs +++ b/src/FluentHub.App/UserControls/PrimerControls/Avatar.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/PrimerControls/CounterLabel.xaml.cs b/src/FluentHub.App/UserControls/PrimerControls/CounterLabel.xaml.cs index 7b43438a8..db4dddc6c 100644 --- a/src/FluentHub.App/UserControls/PrimerControls/CounterLabel.xaml.cs +++ b/src/FluentHub.App/UserControls/PrimerControls/CounterLabel.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/PrimerControls/IssueLabelToken.xaml.cs b/src/FluentHub.App/UserControls/PrimerControls/IssueLabelToken.xaml.cs index f54dd63b2..596d87d31 100644 --- a/src/FluentHub.App/UserControls/PrimerControls/IssueLabelToken.xaml.cs +++ b/src/FluentHub.App/UserControls/PrimerControls/IssueLabelToken.xaml.cs @@ -1,7 +1,4 @@ using CommunityToolkit.WinUI.UI.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media; @@ -71,7 +68,7 @@ public string Size _ => 20D, // same as medium }; - Context.CornerRadius = new(Context.TokenHeight/2); + Context.CornerRadius = new(Context.TokenHeight / 2); Context.Margin = value switch { diff --git a/src/FluentHub.App/UserControls/PrimerControls/Label.xaml.cs b/src/FluentHub.App/UserControls/PrimerControls/Label.xaml.cs index edae03ee7..8ca59c354 100644 --- a/src/FluentHub.App/UserControls/PrimerControls/Label.xaml.cs +++ b/src/FluentHub.App/UserControls/PrimerControls/Label.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/PrimerControls/Octicon.xaml.cs b/src/FluentHub.App/UserControls/PrimerControls/Octicon.xaml.cs index f2813762c..0697adc94 100644 --- a/src/FluentHub.App/UserControls/PrimerControls/Octicon.xaml.cs +++ b/src/FluentHub.App/UserControls/PrimerControls/Octicon.xaml.cs @@ -1,19 +1,5 @@ using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Controls.Primitives; -using Microsoft.UI.Xaml.Data; -using Microsoft.UI.Xaml.Input; -using Microsoft.UI.Xaml.Media; -using Microsoft.UI.Xaml.Navigation; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; -using System.Security.Permissions; -using Windows.Foundation; -using Windows.Foundation.Collections; -using CommunityToolkit.WinUI.UI; namespace FluentHub.App.UserControls.PrimerControls { diff --git a/src/FluentHub.App/UserControls/PrimerControls/StateLabel.xaml.cs b/src/FluentHub.App/UserControls/PrimerControls/StateLabel.xaml.cs index e4ceb59c3..1f3f35146 100644 --- a/src/FluentHub.App/UserControls/PrimerControls/StateLabel.xaml.cs +++ b/src/FluentHub.App/UserControls/PrimerControls/StateLabel.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media; diff --git a/src/FluentHub.App/UserControls/PrimerControls/StyledOcticon.xaml.cs b/src/FluentHub.App/UserControls/PrimerControls/StyledOcticon.xaml.cs index bb6dc41dd..fcc7aa93a 100644 --- a/src/FluentHub.App/UserControls/PrimerControls/StyledOcticon.xaml.cs +++ b/src/FluentHub.App/UserControls/PrimerControls/StyledOcticon.xaml.cs @@ -1,9 +1,4 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls.Overview; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media; namespace FluentHub.App.UserControls.PrimerControls { diff --git a/src/FluentHub.App/UserControls/PrimerControls/Timeline.xaml.cs b/src/FluentHub.App/UserControls/PrimerControls/Timeline.xaml.cs index 60d81f9f2..b891af2f3 100644 --- a/src/FluentHub.App/UserControls/PrimerControls/Timeline.xaml.cs +++ b/src/FluentHub.App/UserControls/PrimerControls/Timeline.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls.Overview; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media; diff --git a/src/FluentHub.App/UserControls/ReadmeContentBlock.xaml.cs b/src/FluentHub.App/UserControls/ReadmeContentBlock.xaml.cs index 32e8c9554..a2715a1cf 100644 --- a/src/FluentHub.App/UserControls/ReadmeContentBlock.xaml.cs +++ b/src/FluentHub.App/UserControls/ReadmeContentBlock.xaml.cs @@ -1,6 +1,4 @@ using FluentHub.App.Extensions; -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories; using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; diff --git a/src/FluentHub.App/UserControls/ReferencedSubjectButton.xaml.cs b/src/FluentHub.App/UserControls/ReferencedSubjectButton.xaml.cs index 429266f2d..f5a7b4c73 100644 --- a/src/FluentHub.App/UserControls/ReferencedSubjectButton.xaml.cs +++ b/src/FluentHub.App/UserControls/ReferencedSubjectButton.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/SearchResultSidebar.xaml.cs b/src/FluentHub.App/UserControls/SearchResultSidebar.xaml.cs index fcd7dd49e..810807623 100644 --- a/src/FluentHub.App/UserControls/SearchResultSidebar.xaml.cs +++ b/src/FluentHub.App/UserControls/SearchResultSidebar.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/UserControls/SettingsBlockControl.xaml.cs b/src/FluentHub.App/UserControls/SettingsBlockControl.xaml.cs index e0688e1d4..732f4d376 100644 --- a/src/FluentHub.App/UserControls/SettingsBlockControl.xaml.cs +++ b/src/FluentHub.App/UserControls/SettingsBlockControl.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Markup; diff --git a/src/FluentHub.App/UserControls/SettingsDisplayControl.xaml.cs b/src/FluentHub.App/UserControls/SettingsDisplayControl.xaml.cs index 528c49645..1c5328885 100644 --- a/src/FluentHub.App/UserControls/SettingsDisplayControl.xaml.cs +++ b/src/FluentHub.App/UserControls/SettingsDisplayControl.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Markup; diff --git a/src/FluentHub.App/UserControls/Shimmer/Shimmer.cs b/src/FluentHub.App/UserControls/Shimmer/Shimmer.cs index 197e9aa3c..643d958b5 100644 --- a/src/FluentHub.App/UserControls/Shimmer/Shimmer.cs +++ b/src/FluentHub.App/UserControls/Shimmer/Shimmer.cs @@ -1,5 +1,4 @@ using CommunityToolkit.WinUI.UI; -using CommunityToolkit.WinUI; using CommunityToolkit.WinUI.UI.Animations; using CommunityToolkit.WinUI.UI.Animations.Expressions; using Microsoft.UI.Composition; diff --git a/src/FluentHub.App/UserControls/StepsPanelControl.xaml.cs b/src/FluentHub.App/UserControls/StepsPanelControl.xaml.cs index 2d265dfcb..ce8586544 100644 --- a/src/FluentHub.App/UserControls/StepsPanelControl.xaml.cs +++ b/src/FluentHub.App/UserControls/StepsPanelControl.xaml.cs @@ -1,7 +1,4 @@ -using System.Runtime.InteropServices.WindowsRuntime; -using Windows.Foundation; -using Windows.Foundation.Collections; -using Microsoft.UI.Xaml; +using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; namespace FluentHub.App.UserControls diff --git a/src/FluentHub.App/UserControls/TitleBar.xaml.cs b/src/FluentHub.App/UserControls/TitleBar.xaml.cs index b23f65eb5..caa9633cc 100644 --- a/src/FluentHub.App/UserControls/TitleBar.xaml.cs +++ b/src/FluentHub.App/UserControls/TitleBar.xaml.cs @@ -1,9 +1,4 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.UserControls; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Markup; namespace FluentHub.App.UserControls { diff --git a/src/FluentHub.App/UserControls/UserContributionGraph.xaml.cs b/src/FluentHub.App/UserControls/UserContributionGraph.xaml.cs index e769bf66d..b1503ff29 100644 --- a/src/FluentHub.App/UserControls/UserContributionGraph.xaml.cs +++ b/src/FluentHub.App/UserControls/UserContributionGraph.xaml.cs @@ -1,9 +1,6 @@ -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Markup; namespace FluentHub.App.UserControls { diff --git a/src/FluentHub.App/Utils/UrlHandler.cs b/src/FluentHub.App/Utils/UrlHandler.cs index 52f547d90..bc475975f 100644 --- a/src/FluentHub.App/Utils/UrlHandler.cs +++ b/src/FluentHub.App/Utils/UrlHandler.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; - namespace FluentHub.App.Utils { // TODO: Not supported class diff --git a/src/FluentHub.App/ViewModels/AppSettings/GeneralViewModel.cs b/src/FluentHub.App/ViewModels/AppSettings/GeneralViewModel.cs index c37791bc6..e1cac6b2f 100644 --- a/src/FluentHub.App/ViewModels/AppSettings/GeneralViewModel.cs +++ b/src/FluentHub.App/ViewModels/AppSettings/GeneralViewModel.cs @@ -1,7 +1,7 @@ -using FluentHub.Octokit.Queries.Users; using FluentHub.App.Extensions; using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Users; using Microsoft.UI.Xaml; using System.IO; using System.Windows.Input; diff --git a/src/FluentHub.App/ViewModels/BaseViewModel.cs b/src/FluentHub.App/ViewModels/BaseViewModel.cs index 21ad1c419..130713746 100644 --- a/src/FluentHub.App/ViewModels/BaseViewModel.cs +++ b/src/FluentHub.App/ViewModels/BaseViewModel.cs @@ -1,15 +1,9 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories; -using FluentHub.App.ViewModels.UserControls; -using FluentHub.App.ViewModels.UserControls.Overview; -using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.App.Models; using FluentHub.App.Utils; +using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Users; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media.Imaging; -using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels { diff --git a/src/FluentHub.App/ViewModels/Dialogs/AccountSwitchingDialogViewModel.cs b/src/FluentHub.App/ViewModels/Dialogs/AccountSwitchingDialogViewModel.cs index a615662fc..8576de24a 100644 --- a/src/FluentHub.App/ViewModels/Dialogs/AccountSwitchingDialogViewModel.cs +++ b/src/FluentHub.App/ViewModels/Dialogs/AccountSwitchingDialogViewModel.cs @@ -1,5 +1,4 @@ using FluentHub.App.Utils; -using FluentHub.App.Models; namespace FluentHub.App.ViewModels.Dialogs { diff --git a/src/FluentHub.App/ViewModels/Dialogs/EditPinnedRepositoriesDialogViewModel.cs b/src/FluentHub.App/ViewModels/Dialogs/EditPinnedRepositoriesDialogViewModel.cs index 541123f62..f241cc115 100644 --- a/src/FluentHub.App/ViewModels/Dialogs/EditPinnedRepositoriesDialogViewModel.cs +++ b/src/FluentHub.App/ViewModels/Dialogs/EditPinnedRepositoriesDialogViewModel.cs @@ -1,5 +1,5 @@ -using FluentHub.App.Utils; using FluentHub.App.Models; +using FluentHub.App.Utils; namespace FluentHub.App.ViewModels.Dialogs { diff --git a/src/FluentHub.App/ViewModels/Dialogs/EditUserProfileViewModel.cs b/src/FluentHub.App/ViewModels/Dialogs/EditUserProfileViewModel.cs index 34c06da4f..7799458ab 100644 --- a/src/FluentHub.App/ViewModels/Dialogs/EditUserProfileViewModel.cs +++ b/src/FluentHub.App/ViewModels/Dialogs/EditUserProfileViewModel.cs @@ -1,5 +1,4 @@ using FluentHub.App.Utils; -using FluentHub.App.Models; using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Dialogs diff --git a/src/FluentHub.App/ViewModels/MainPageViewModel.cs b/src/FluentHub.App/ViewModels/MainPageViewModel.cs index 158d11845..482c56a6e 100644 --- a/src/FluentHub.App/ViewModels/MainPageViewModel.cs +++ b/src/FluentHub.App/ViewModels/MainPageViewModel.cs @@ -1,17 +1,8 @@ -using CommunityToolkit.WinUI.UI; -using FluentHub.Octokit.Queries.Users; -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Helpers; -using FluentHub.App.ViewModels.Repositories; -using FluentHub.App.ViewModels.UserControls.Overview; -using FluentHub.App.ViewModels.UserControls.BlockButtons; -using FluentHub.App.Services; using FluentHub.App.Models; using FluentHub.App.Utils; +using FluentHub.Octokit.Queries.Users; using Microsoft.UI.Xaml.Input; using System.Windows.Input; -using Windows.System; -using FluentHub.App.Data.Items; namespace FluentHub.App.ViewModels { diff --git a/src/FluentHub.App/ViewModels/Organizations/OverviewViewModel.cs b/src/FluentHub.App/ViewModels/Organizations/OverviewViewModel.cs index afc276194..658aa261b 100644 --- a/src/FluentHub.App/ViewModels/Organizations/OverviewViewModel.cs +++ b/src/FluentHub.App/ViewModels/Organizations/OverviewViewModel.cs @@ -1,8 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Organizations; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Organizations; using System.Text.RegularExpressions; namespace FluentHub.App.ViewModels.Organizations diff --git a/src/FluentHub.App/ViewModels/Organizations/RepositoriesViewModel.cs b/src/FluentHub.App/ViewModels/Organizations/RepositoriesViewModel.cs index d41068849..47f5adeb5 100644 --- a/src/FluentHub.App/ViewModels/Organizations/RepositoriesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Organizations/RepositoriesViewModel.cs @@ -1,8 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Organizations; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Organizations; using System.Text.RegularExpressions; namespace FluentHub.App.ViewModels.Organizations diff --git a/src/FluentHub.App/ViewModels/Repositories/Codes/DetailsLayoutViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Codes/DetailsLayoutViewModel.cs index e9ef8bef2..f5b5dcd76 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Codes/DetailsLayoutViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Codes/DetailsLayoutViewModel.cs @@ -1,9 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; using FluentHub.App.Models; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.Codes { diff --git a/src/FluentHub.App/ViewModels/Repositories/Codes/TreeLayoutViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Codes/TreeLayoutViewModel.cs index 82309ca4f..06d3d58fb 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Codes/TreeLayoutViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Codes/TreeLayoutViewModel.cs @@ -1,8 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; using FluentHub.App.Models; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls; -using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.Codes { diff --git a/src/FluentHub.App/ViewModels/Repositories/Commits/CommitViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Commits/CommitViewModel.cs index a95b818f8..6571e433a 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Commits/CommitViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Commits/CommitViewModel.cs @@ -1,12 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.ViewModels.UserControls; -using FluentHub.App.ViewModels.UserControls.Overview; -using FluentHub.App.Utils; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.Commits { diff --git a/src/FluentHub.App/ViewModels/Repositories/Commits/CommitsViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Commits/CommitsViewModel.cs index 34373c8b7..d200f6eb7 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Commits/CommitsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Commits/CommitsViewModel.cs @@ -1,12 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; -using FluentHub.App.ViewModels.UserControls.BlockButtons; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; +using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.Commits { diff --git a/src/FluentHub.App/ViewModels/Repositories/Discussions/DiscussionViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Discussions/DiscussionViewModel.cs index 74950a864..fbfe1e158 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Discussions/DiscussionViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Discussions/DiscussionViewModel.cs @@ -1,11 +1,4 @@ using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; namespace FluentHub.App.ViewModels.Repositories.Discussions { diff --git a/src/FluentHub.App/ViewModels/Repositories/Discussions/DiscussionsViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Discussions/DiscussionsViewModel.cs index 2921a3f97..805e99d0b 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Discussions/DiscussionsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Discussions/DiscussionsViewModel.cs @@ -1,12 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; using FluentHub.App.ViewModels.UserControls.BlockButtons; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.Discussions { diff --git a/src/FluentHub.App/ViewModels/Repositories/Issues/IssueViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Issues/IssueViewModel.cs index 23a28dc5a..0683ee0fe 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Issues/IssueViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Issues/IssueViewModel.cs @@ -1,11 +1,4 @@ using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; namespace FluentHub.App.ViewModels.Repositories.Issues { diff --git a/src/FluentHub.App/ViewModels/Repositories/Issues/IssuesViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Issues/IssuesViewModel.cs index ea67659c2..029ee8926 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Issues/IssuesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Issues/IssuesViewModel.cs @@ -1,12 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; using FluentHub.App.ViewModels.UserControls.BlockButtons; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.Issues { diff --git a/src/FluentHub.App/ViewModels/Repositories/Projects/ProjectViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Projects/ProjectViewModel.cs index 9ac433650..7bab6c4a0 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Projects/ProjectViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Projects/ProjectViewModel.cs @@ -1,11 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; using FluentHub.App.ViewModels.UserControls.Overview; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.Projects { diff --git a/src/FluentHub.App/ViewModels/Repositories/Projects/ProjectsViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Projects/ProjectsViewModel.cs index 1d26fa7f7..eed1af10b 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Projects/ProjectsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Projects/ProjectsViewModel.cs @@ -1,13 +1,6 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; using FluentHub.App.ViewModels.UserControls.BlockButtons; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; -using System.Xml.Linq; +using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.Projects { diff --git a/src/FluentHub.App/ViewModels/Repositories/PullRequests/ChecksViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/PullRequests/ChecksViewModel.cs index 0412914ac..68c7a6db6 100644 --- a/src/FluentHub.App/ViewModels/Repositories/PullRequests/ChecksViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/PullRequests/ChecksViewModel.cs @@ -1,8 +1,8 @@ // Copyright (c) 2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Repositories; using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.PullRequests { diff --git a/src/FluentHub.App/ViewModels/Repositories/PullRequests/CommitViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/PullRequests/CommitViewModel.cs index a336a0eb0..415f2ab47 100644 --- a/src/FluentHub.App/ViewModels/Repositories/PullRequests/CommitViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/PullRequests/CommitViewModel.cs @@ -1,9 +1,9 @@ // Copyright (c) 2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Repositories; using FluentHub.App.ViewModels.UserControls; using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.PullRequests { diff --git a/src/FluentHub.App/ViewModels/Repositories/PullRequests/CommitsViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/PullRequests/CommitsViewModel.cs index 84f4a6950..1ea3b21c9 100644 --- a/src/FluentHub.App/ViewModels/Repositories/PullRequests/CommitsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/PullRequests/CommitsViewModel.cs @@ -1,9 +1,9 @@ // Copyright (c) 2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.ViewModels.UserControls.Overview; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.PullRequests { diff --git a/src/FluentHub.App/ViewModels/Repositories/PullRequests/ConversationViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/PullRequests/ConversationViewModel.cs index 95f84f0c2..b3174b7c6 100644 --- a/src/FluentHub.App/ViewModels/Repositories/PullRequests/ConversationViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/PullRequests/ConversationViewModel.cs @@ -1,8 +1,8 @@ // Copyright (c) 2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Repositories; using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.PullRequests { diff --git a/src/FluentHub.App/ViewModels/Repositories/PullRequests/FileChangesViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/PullRequests/FileChangesViewModel.cs index 703b52852..5ffe513ea 100644 --- a/src/FluentHub.App/ViewModels/Repositories/PullRequests/FileChangesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/PullRequests/FileChangesViewModel.cs @@ -1,9 +1,9 @@ // Copyright (c) 2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Repositories; using FluentHub.App.ViewModels.UserControls; using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.PullRequests { diff --git a/src/FluentHub.App/ViewModels/Repositories/PullRequests/PullRequestsViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/PullRequests/PullRequestsViewModel.cs index 29f6fd0c5..a1ad08b78 100644 --- a/src/FluentHub.App/ViewModels/Repositories/PullRequests/PullRequestsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/PullRequests/PullRequestsViewModel.cs @@ -1,12 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; using FluentHub.App.ViewModels.UserControls.BlockButtons; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.Repositories.PullRequests { diff --git a/src/FluentHub.App/ViewModels/Repositories/Releases/ReleaseViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Releases/ReleaseViewModel.cs index b10b382ab..762b71c2c 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Releases/ReleaseViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Releases/ReleaseViewModel.cs @@ -1,12 +1,4 @@ using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Extensions; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.Overview; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; namespace FluentHub.App.ViewModels.Repositories.Releases { @@ -16,7 +8,7 @@ public class ReleaseViewModel : BaseViewModel public Repository Repository { get => _repository; set => SetProperty(ref _repository, value); } private string _tagName; - public string TagName{ get => _tagName; set => SetProperty(ref _tagName, value); } + public string TagName { get => _tagName; set => SetProperty(ref _tagName, value); } private Release _singleRelease; public Release SingleRelease { get => _singleRelease; set => SetProperty(ref _singleRelease, value); } @@ -64,10 +56,10 @@ private async Task LoadRepositoryReleasePageAsync() private async Task LoadRepositorySingleReleaseAsync(string login, string name, string tagName) { - var queries = new ReleaseQueries(); - var response = await queries.GetAsync(login, name, tagName); + var queries = new ReleaseQueries(); + var response = await queries.GetAsync(login, name, tagName); - SingleRelease = response; + SingleRelease = response; } private async Task LoadRepositoryAsync(string owner, string name) diff --git a/src/FluentHub.App/ViewModels/Repositories/Releases/ReleasesViewModel.cs b/src/FluentHub.App/ViewModels/Repositories/Releases/ReleasesViewModel.cs index 6f637400b..f937286bf 100644 --- a/src/FluentHub.App/ViewModels/Repositories/Releases/ReleasesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Repositories/Releases/ReleasesViewModel.cs @@ -1,13 +1,5 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Extensions; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; using FluentHub.App.Views.Repositories.Releases; -using FluentHub.App.ViewModels.UserControls.Overview; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; +using FluentHub.Octokit.Queries.Repositories; using System.Windows.Input; namespace FluentHub.App.ViewModels.Repositories.Releases diff --git a/src/FluentHub.App/ViewModels/Searches/CodeViewModel.cs b/src/FluentHub.App/ViewModels/Searches/CodeViewModel.cs index 67c88dd35..cf863f7ba 100644 --- a/src/FluentHub.App/ViewModels/Searches/CodeViewModel.cs +++ b/src/FluentHub.App/ViewModels/Searches/CodeViewModel.cs @@ -1,12 +1,4 @@ using FluentHub.Octokit.Searches; -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; -using FluentHub.App.ViewModels.UserControls.BlockButtons; -using FluentHub.App.ViewModels.UserControls.Overview; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; namespace FluentHub.App.ViewModels.Searches { diff --git a/src/FluentHub.App/ViewModels/Searches/IssuesViewModel.cs b/src/FluentHub.App/ViewModels/Searches/IssuesViewModel.cs index c9f3b7543..1568a9260 100644 --- a/src/FluentHub.App/ViewModels/Searches/IssuesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Searches/IssuesViewModel.cs @@ -1,10 +1,7 @@ -using FluentHub.Octokit.Searches; -using FluentHub.App.Helpers; using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.Utils; using FluentHub.App.ViewModels.UserControls.BlockButtons; -using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Searches; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media.Imaging; diff --git a/src/FluentHub.App/ViewModels/Searches/RepositoriesViewModel.cs b/src/FluentHub.App/ViewModels/Searches/RepositoriesViewModel.cs index 91b7725be..78e6915da 100644 --- a/src/FluentHub.App/ViewModels/Searches/RepositoriesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Searches/RepositoriesViewModel.cs @@ -1,10 +1,7 @@ -using FluentHub.Octokit.Searches; -using FluentHub.App.Helpers; using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.Utils; using FluentHub.App.ViewModels.UserControls.BlockButtons; -using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Searches; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media.Imaging; diff --git a/src/FluentHub.App/ViewModels/Searches/UsersViewModel.cs b/src/FluentHub.App/ViewModels/Searches/UsersViewModel.cs index e6cb119c2..ddfce0058 100644 --- a/src/FluentHub.App/ViewModels/Searches/UsersViewModel.cs +++ b/src/FluentHub.App/ViewModels/Searches/UsersViewModel.cs @@ -1,10 +1,7 @@ -using FluentHub.Octokit.Searches; -using FluentHub.App.Helpers; using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.Utils; using FluentHub.App.ViewModels.UserControls.BlockButtons; -using FluentHub.App.ViewModels.UserControls.Overview; +using FluentHub.Octokit.Searches; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media.Imaging; diff --git a/src/FluentHub.App/ViewModels/SettingsViewModel.cs b/src/FluentHub.App/ViewModels/SettingsViewModel.cs index 9eb7d78e2..824069f46 100644 --- a/src/FluentHub.App/ViewModels/SettingsViewModel.cs +++ b/src/FluentHub.App/ViewModels/SettingsViewModel.cs @@ -1,6 +1,4 @@ -using FluentHub.App.Helpers; using FluentHub.App.Models; -using FluentHub.App.Utils; using System.Runtime.CompilerServices; using Windows.Globalization; using Windows.Storage; diff --git a/src/FluentHub.App/ViewModels/SignIn/IntroViewModel.cs b/src/FluentHub.App/ViewModels/SignIn/IntroViewModel.cs index 250a5287f..9ea9552e9 100644 --- a/src/FluentHub.App/ViewModels/SignIn/IntroViewModel.cs +++ b/src/FluentHub.App/ViewModels/SignIn/IntroViewModel.cs @@ -1,8 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.Utils; using FluentHub.Octokit.Authorization; using System.Windows.Input; diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/CommitBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/CommitBlockButtonViewModel.cs index 9a8be3cf2..0ca73f970 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/CommitBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/CommitBlockButtonViewModel.cs @@ -1,8 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; -using Microsoft.UI.Xaml.Controls; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class CommitBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/DiscussionBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/DiscussionBlockButtonViewModel.cs index be6cd50d4..d462fe79b 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/DiscussionBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/DiscussionBlockButtonViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class DiscussionBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/IssueBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/IssueBlockButtonViewModel.cs index 93675788a..ca95ecba3 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/IssueBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/IssueBlockButtonViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class IssueBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/NotificationBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/NotificationBlockButtonViewModel.cs index 0b1f98b12..336470926 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/NotificationBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/NotificationBlockButtonViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class NotificationBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/OrgBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/OrgBlockButtonViewModel.cs index 128283c87..2009ffde6 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/OrgBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/OrgBlockButtonViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class OrgBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/PackageBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/PackageBlockButtonViewModel.cs index c67842410..2ac7cff99 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/PackageBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/PackageBlockButtonViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class PackageBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/ProjectBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/ProjectBlockButtonViewModel.cs index c3c29dfad..e05745343 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/ProjectBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/ProjectBlockButtonViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class ProjectBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/PullBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/PullBlockButtonViewModel.cs index b0b2d7ed6..04c8d4c79 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/PullBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/PullBlockButtonViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class PullBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/UserBlockButtonViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/UserBlockButtonViewModel.cs index 68ca54379..bdbafe53c 100644 --- a/src/FluentHub.App/ViewModels/UserControls/BlockButtons/UserBlockButtonViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/BlockButtons/UserBlockButtonViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.BlockButtons { public class UserBlockButtonViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/DiffBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/DiffBlockViewModel.cs index 9a0682086..63415a59a 100644 --- a/src/FluentHub.App/ViewModels/UserControls/DiffBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/DiffBlockViewModel.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Models; -using FluentHub.App.Utils; using System.Text.RegularExpressions; namespace FluentHub.App.ViewModels.UserControls diff --git a/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/ActivityBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/ActivityBlockViewModel.cs index 8b6863898..dc2d66f99 100644 --- a/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/ActivityBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/ActivityBlockViewModel.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Utils; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; namespace FluentHub.App.ViewModels.UserControls.FeedBlocks diff --git a/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleCommentBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleCommentBlockViewModel.cs index 47ad703f7..d7cceac87 100644 --- a/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleCommentBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleCommentBlockViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.FeedBlocks { public class SingleCommentBlockViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleCommitBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleCommitBlockViewModel.cs index 65bac58a9..5036c6145 100644 --- a/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleCommitBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleCommitBlockViewModel.cs @@ -1,7 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.FeedBlocks { public class SingleCommitBlockViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleReleaseBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleReleaseBlockViewModel.cs index 3b2030d10..0870a2e51 100644 --- a/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleReleaseBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/FeedBlocks/SingleReleaseBlockViewModel.cs @@ -1,10 +1,6 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.FeedBlocks { - public class SingleReleaseBlockViewModel :ObservableObject + public class SingleReleaseBlockViewModel : ObservableObject { private ReleaseEventPayload _releaseEventPayload; public ReleaseEventPayload ReleaseEventPayload { get => _releaseEventPayload; set => SetProperty(ref _releaseEventPayload, value); } diff --git a/src/FluentHub.App/ViewModels/UserControls/FileContentBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/FileContentBlockViewModel.cs index 60466d11e..2e64c216d 100644 --- a/src/FluentHub.App/ViewModels/UserControls/FileContentBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/FileContentBlockViewModel.cs @@ -1,12 +1,10 @@ using ColorCode; -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; -using FluentHub.App.Models; using FluentHub.App.Utils; using FluentHub.App.ViewModels.Repositories; -using System.IO; +using FluentHub.Octokit.Queries.Repositories; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Documents; +using System.IO; namespace FluentHub.App.ViewModels.UserControls { diff --git a/src/FluentHub.App/ViewModels/UserControls/FileNavigationBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/FileNavigationBlockViewModel.cs index 59738a612..676b639c2 100644 --- a/src/FluentHub.App/ViewModels/UserControls/FileNavigationBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/FileNavigationBlockViewModel.cs @@ -1,8 +1,7 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; using FluentHub.App.Models; using FluentHub.App.Utils; using FluentHub.App.ViewModels.Repositories; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.UserControls { diff --git a/src/FluentHub.App/ViewModels/UserControls/IssueCommentBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/IssueCommentBlockViewModel.cs index fa1ff319e..0d6737839 100644 --- a/src/FluentHub.App/ViewModels/UserControls/IssueCommentBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/IssueCommentBlockViewModel.cs @@ -1,8 +1,4 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.Utils; -using Microsoft.UI.Xaml.Controls; namespace FluentHub.App.ViewModels.UserControls { diff --git a/src/FluentHub.App/ViewModels/UserControls/LatestCommitBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/LatestCommitBlockViewModel.cs index f96b94d44..003bc21d9 100644 --- a/src/FluentHub.App/ViewModels/UserControls/LatestCommitBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/LatestCommitBlockViewModel.cs @@ -1,8 +1,7 @@ -using FluentHub.Octokit.Queries.Repositories; -using FluentHub.App.Helpers; using FluentHub.App.Models; using FluentHub.App.Utils; using FluentHub.App.ViewModels.Repositories; +using FluentHub.Octokit.Queries.Repositories; namespace FluentHub.App.ViewModels.UserControls { diff --git a/src/FluentHub.App/ViewModels/UserControls/Overview/AppSettingsOverviewViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/Overview/AppSettingsOverviewViewModel.cs index 309401bd9..48a2b7a86 100644 --- a/src/FluentHub.App/ViewModels/UserControls/Overview/AppSettingsOverviewViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/Overview/AppSettingsOverviewViewModel.cs @@ -1,8 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.Overview { public class AppSettingsOverviewViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/Overview/OrganizationProfileOverviewViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/Overview/OrganizationProfileOverviewViewModel.cs index 1fa2cfd7e..0a693f98b 100644 --- a/src/FluentHub.App/ViewModels/UserControls/Overview/OrganizationProfileOverviewViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/Overview/OrganizationProfileOverviewViewModel.cs @@ -1,8 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.Overview { public class OrganizationProfileOverviewViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/Overview/UserProfileOverviewViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/Overview/UserProfileOverviewViewModel.cs index 92594f6f5..f70ffbeb4 100644 --- a/src/FluentHub.App/ViewModels/UserControls/Overview/UserProfileOverviewViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/Overview/UserProfileOverviewViewModel.cs @@ -1,8 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; -using FluentHub.App.Utils; - namespace FluentHub.App.ViewModels.UserControls.Overview { public class UserProfileOverviewViewModel : ObservableObject diff --git a/src/FluentHub.App/ViewModels/UserControls/ReadmeContentBlockViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/ReadmeContentBlockViewModel.cs index 202f48c0f..39b880f4d 100644 --- a/src/FluentHub.App/ViewModels/UserControls/ReadmeContentBlockViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/ReadmeContentBlockViewModel.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Services; using FluentHub.App.Utils; using FluentHub.App.ViewModels.Repositories; using Microsoft.UI.Xaml.Controls; diff --git a/src/FluentHub.App/ViewModels/UserControls/TimelineViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/TimelineViewModel.cs index cfd392a91..e2992e6b9 100644 --- a/src/FluentHub.App/ViewModels/UserControls/TimelineViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/TimelineViewModel.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Models; -using FluentHub.App.Utils; using Microsoft.UI.Xaml.Media; namespace FluentHub.App.ViewModels.UserControls diff --git a/src/FluentHub.App/ViewModels/UserControls/UserContributionGraphViewModel.cs b/src/FluentHub.App/ViewModels/UserControls/UserContributionGraphViewModel.cs index 33e0bc5b7..8c58effcc 100644 --- a/src/FluentHub.App/ViewModels/UserControls/UserContributionGraphViewModel.cs +++ b/src/FluentHub.App/ViewModels/UserControls/UserContributionGraphViewModel.cs @@ -1,7 +1,5 @@ -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Helpers; using FluentHub.App.Models; -using FluentHub.App.Utils; +using FluentHub.Octokit.Queries.Users; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Media; @@ -78,10 +76,10 @@ public string GetProperColor(ContributionLevel level) { return level switch { - ContributionLevel.None => "#EBEDF0", - ContributionLevel.FirstQuartile => "#9BE9A8", + ContributionLevel.None => "#EBEDF0", + ContributionLevel.FirstQuartile => "#9BE9A8", ContributionLevel.SecondQuartile => "#40C463", - ContributionLevel.ThirdQuartile => "#30A14E", + ContributionLevel.ThirdQuartile => "#30A14E", ContributionLevel.FourthQuartile => "#216E39", _ => "#EBEDF0", }; @@ -91,9 +89,9 @@ public string GetProperColor(ContributionLevel level) return level switch { ContributionLevel.None => (Application.Current.Resources["PrimerScaleGray8"] as SolidColorBrush).Color.ToString(), - ContributionLevel.FirstQuartile => "#0E4429", + ContributionLevel.FirstQuartile => "#0E4429", ContributionLevel.SecondQuartile => "#006D32", - ContributionLevel.ThirdQuartile => "#26A641", + ContributionLevel.ThirdQuartile => "#26A641", ContributionLevel.FourthQuartile => "#39D353", _ => (Application.Current.Resources["PrimerScaleGray8"] as SolidColorBrush).Color.ToString(), }; diff --git a/src/FluentHub.App/ViewModels/Users/DiscussionsViewModel.cs b/src/FluentHub.App/ViewModels/Users/DiscussionsViewModel.cs index 936a6b3a7..387a6950c 100644 --- a/src/FluentHub.App/ViewModels/Users/DiscussionsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/DiscussionsViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/FollowersViewModel.cs b/src/FluentHub.App/ViewModels/Users/FollowersViewModel.cs index f56d5cf16..d7de260fb 100644 --- a/src/FluentHub.App/ViewModels/Users/FollowersViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/FollowersViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/FollowingViewModel.cs b/src/FluentHub.App/ViewModels/Users/FollowingViewModel.cs index ef811ac8b..92edcb17b 100644 --- a/src/FluentHub.App/ViewModels/Users/FollowingViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/FollowingViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { @@ -33,7 +32,7 @@ public FollowingViewModel() : base() FollowingItems = new(_followingItems); LoadUserFollowingPageCommand = new AsyncRelayCommand(LoadUserFollowingPageAsync); - LoadUserFollowingFurtherCommand= new AsyncRelayCommand(LoadUserFollowingFurtherAsync); + LoadUserFollowingFurtherCommand = new AsyncRelayCommand(LoadUserFollowingFurtherAsync); } private async Task LoadUserFollowingPageAsync() diff --git a/src/FluentHub.App/ViewModels/Users/IssuesViewModel.cs b/src/FluentHub.App/ViewModels/Users/IssuesViewModel.cs index 1355b5f79..4f34dcbc4 100644 --- a/src/FluentHub.App/ViewModels/Users/IssuesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/IssuesViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/OrganizationsViewModel.cs b/src/FluentHub.App/ViewModels/Users/OrganizationsViewModel.cs index 610d4a0d1..df0aedf28 100644 --- a/src/FluentHub.App/ViewModels/Users/OrganizationsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/OrganizationsViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/OverviewViewModel.cs b/src/FluentHub.App/ViewModels/Users/OverviewViewModel.cs index 5d4902203..402a723f1 100644 --- a/src/FluentHub.App/ViewModels/Users/OverviewViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/OverviewViewModel.cs @@ -1,9 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; using FluentHub.App.ViewModels.Repositories; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/PackagesViewModel.cs b/src/FluentHub.App/ViewModels/Users/PackagesViewModel.cs index bd37265a4..d33710372 100644 --- a/src/FluentHub.App/ViewModels/Users/PackagesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/PackagesViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/ProjectsViewModel.cs b/src/FluentHub.App/ViewModels/Users/ProjectsViewModel.cs index dd43d177c..91133d3b0 100644 --- a/src/FluentHub.App/ViewModels/Users/ProjectsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/ProjectsViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/PullRequestsViewModel.cs b/src/FluentHub.App/ViewModels/Users/PullRequestsViewModel.cs index 4386b0fb2..4b66364df 100644 --- a/src/FluentHub.App/ViewModels/Users/PullRequestsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/PullRequestsViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/RepositoriesViewModel.cs b/src/FluentHub.App/ViewModels/Users/RepositoriesViewModel.cs index 1f7c5113f..4ab3eebb8 100644 --- a/src/FluentHub.App/ViewModels/Users/RepositoriesViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/RepositoriesViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Users/StarredReposViewModel.cs b/src/FluentHub.App/ViewModels/Users/StarredReposViewModel.cs index ef9356b62..27e1b5bbf 100644 --- a/src/FluentHub.App/ViewModels/Users/StarredReposViewModel.cs +++ b/src/FluentHub.App/ViewModels/Users/StarredReposViewModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; -using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Users { diff --git a/src/FluentHub.App/ViewModels/Viewers/DashBoardViewModel.cs b/src/FluentHub.App/ViewModels/Viewers/DashBoardViewModel.cs index b933137d0..1ed2298cd 100644 --- a/src/FluentHub.App/ViewModels/Viewers/DashBoardViewModel.cs +++ b/src/FluentHub.App/ViewModels/Viewers/DashBoardViewModel.cs @@ -134,7 +134,7 @@ private async Task LoadHomeContentsAsync() x.Type == ActivityPayloadType.IssueCommentEvent || x.Type == ActivityPayloadType.IssueEvent || x.Type == ActivityPayloadType.PullRequestComment || - x.Type == ActivityPayloadType.PullRequestEvent|| + x.Type == ActivityPayloadType.PullRequestEvent || //x.Type == ActivityPayloadType.PullRequestReviewEvent|| //x.Type == ActivityPayloadType.PushEvent|| //x.Type == ActivityPayloadType.PushWebhookCommit|| diff --git a/src/FluentHub.App/ViewModels/Viewers/NotificationsViewModel.cs b/src/FluentHub.App/ViewModels/Viewers/NotificationsViewModel.cs index ff3366eb3..4c1e5eb77 100644 --- a/src/FluentHub.App/ViewModels/Viewers/NotificationsViewModel.cs +++ b/src/FluentHub.App/ViewModels/Viewers/NotificationsViewModel.cs @@ -1,9 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.Octokit.Queries.Users; using FluentHub.App.Models; using FluentHub.App.ViewModels.UserControls.BlockButtons; +using FluentHub.Octokit.Queries.Users; namespace FluentHub.App.ViewModels.Viewers { diff --git a/src/FluentHub.App/Views/AppSettings/GeneralPage.xaml.cs b/src/FluentHub.App/Views/AppSettings/GeneralPage.xaml.cs index e76f8ab1a..df486a4f6 100644 --- a/src/FluentHub.App/Views/AppSettings/GeneralPage.xaml.cs +++ b/src/FluentHub.App/Views/AppSettings/GeneralPage.xaml.cs @@ -1,6 +1,4 @@ -using FluentHub.App.Services; using FluentHub.App.ViewModels.AppSettings; -using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.AppSettings diff --git a/src/FluentHub.App/Views/MainPage.xaml.cs b/src/FluentHub.App/Views/MainPage.xaml.cs index 96fdfb524..20b02eef0 100644 --- a/src/FluentHub.App/Views/MainPage.xaml.cs +++ b/src/FluentHub.App/Views/MainPage.xaml.cs @@ -1,10 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Helpers; using FluentHub.App.Models; -using FluentHub.App.ViewModels; using FluentHub.App.Utils; +using FluentHub.App.ViewModels; using Microsoft.UI; using Microsoft.UI.Windowing; using Microsoft.UI.Xaml; diff --git a/src/FluentHub.App/Views/Organizations/DiscussionsPage.xaml.cs b/src/FluentHub.App/Views/Organizations/DiscussionsPage.xaml.cs index 9aa73ef9d..fc5beaf77 100644 --- a/src/FluentHub.App/Views/Organizations/DiscussionsPage.xaml.cs +++ b/src/FluentHub.App/Views/Organizations/DiscussionsPage.xaml.cs @@ -1,9 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; - namespace FluentHub.App.Views.Organizations { public sealed partial class DiscussionsPage : LocatablePage diff --git a/src/FluentHub.App/Views/Organizations/MembershipPage.xaml.cs b/src/FluentHub.App/Views/Organizations/MembershipPage.xaml.cs index 9f74e88d0..1630f46b3 100644 --- a/src/FluentHub.App/Views/Organizations/MembershipPage.xaml.cs +++ b/src/FluentHub.App/Views/Organizations/MembershipPage.xaml.cs @@ -1,9 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; - namespace FluentHub.App.Views.Organizations { public sealed partial class MembershipPage : LocatablePage diff --git a/src/FluentHub.App/Views/Organizations/OverviewPage.xaml.cs b/src/FluentHub.App/Views/Organizations/OverviewPage.xaml.cs index 56a0ae61f..bf45c4790 100644 --- a/src/FluentHub.App/Views/Organizations/OverviewPage.xaml.cs +++ b/src/FluentHub.App/Views/Organizations/OverviewPage.xaml.cs @@ -1,11 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Organizations; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Organizations diff --git a/src/FluentHub.App/Views/Organizations/PackagesPage.xaml.cs b/src/FluentHub.App/Views/Organizations/PackagesPage.xaml.cs index 646025a2b..b5a1b46bc 100644 --- a/src/FluentHub.App/Views/Organizations/PackagesPage.xaml.cs +++ b/src/FluentHub.App/Views/Organizations/PackagesPage.xaml.cs @@ -1,9 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; - namespace FluentHub.App.Views.Organizations { public sealed partial class PackagesPage : LocatablePage diff --git a/src/FluentHub.App/Views/Organizations/ProjectsPage.xaml.cs b/src/FluentHub.App/Views/Organizations/ProjectsPage.xaml.cs index 7a041c5be..e608ac16c 100644 --- a/src/FluentHub.App/Views/Organizations/ProjectsPage.xaml.cs +++ b/src/FluentHub.App/Views/Organizations/ProjectsPage.xaml.cs @@ -1,9 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; - namespace FluentHub.App.Views.Organizations { public sealed partial class ProjectsPage : LocatablePage diff --git a/src/FluentHub.App/Views/Organizations/RepositoriesPage.xaml.cs b/src/FluentHub.App/Views/Organizations/RepositoriesPage.xaml.cs index bebbde9c4..3b3775073 100644 --- a/src/FluentHub.App/Views/Organizations/RepositoriesPage.xaml.cs +++ b/src/FluentHub.App/Views/Organizations/RepositoriesPage.xaml.cs @@ -1,13 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Organizations; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Organizations diff --git a/src/FluentHub.App/Views/Organizations/Settings/GeneralPage.xaml.cs b/src/FluentHub.App/Views/Organizations/Settings/GeneralPage.xaml.cs index d9bf773a6..7f2410fa6 100644 --- a/src/FluentHub.App/Views/Organizations/Settings/GeneralPage.xaml.cs +++ b/src/FluentHub.App/Views/Organizations/Settings/GeneralPage.xaml.cs @@ -1,17 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; -using Windows.Foundation; -using Windows.Foundation.Collections; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Controls.Primitives; -using Microsoft.UI.Xaml.Data; -using Microsoft.UI.Xaml.Input; -using Microsoft.UI.Xaml.Media; -using Microsoft.UI.Xaml.Navigation; // 空白ページの項目テンプレートについては、https://go.microsoft.com/fwlink/?LinkId=234238 を参照してください diff --git a/src/FluentHub.App/Views/Repositories/Code/DetailsLayoutView.xaml.cs b/src/FluentHub.App/Views/Repositories/Code/DetailsLayoutView.xaml.cs index e50fb67cc..73cdbe91d 100644 --- a/src/FluentHub.App/Views/Repositories/Code/DetailsLayoutView.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Code/DetailsLayoutView.xaml.cs @@ -2,10 +2,10 @@ // Licensed under the MIT License. See the LICENSE. using FluentHub.App.Models; +using FluentHub.App.ViewModels.Repositories.Codes; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Navigation; -using FluentHub.App.ViewModels.Repositories.Codes; namespace FluentHub.App.Views.Repositories.Code { diff --git a/src/FluentHub.App/Views/Repositories/Code/TreeLayoutView.xaml.cs b/src/FluentHub.App/Views/Repositories/Code/TreeLayoutView.xaml.cs index 49fa31ff1..acfef2e02 100644 --- a/src/FluentHub.App/Views/Repositories/Code/TreeLayoutView.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Code/TreeLayoutView.xaml.cs @@ -3,11 +3,10 @@ using FluentHub.App.Models; using FluentHub.App.ViewModels.Repositories; +using FluentHub.App.ViewModels.Repositories.Codes; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Navigation; -using Microsoft.UI.Xaml.Media.Imaging; -using FluentHub.App.ViewModels.Repositories.Codes; namespace FluentHub.App.Views.Repositories.Code { diff --git a/src/FluentHub.App/Views/Repositories/Commits/CommitPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Commits/CommitPage.xaml.cs index 16759f27f..c965781c3 100644 --- a/src/FluentHub.App/Views/Repositories/Commits/CommitPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Commits/CommitPage.xaml.cs @@ -1,12 +1,5 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories; using FluentHub.App.ViewModels.Repositories.Commits; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Navigation; -using Microsoft.UI.Xaml.Media.Imaging; -using FluentHub.App.Data.Parameters; namespace FluentHub.App.Views.Repositories.Commits { diff --git a/src/FluentHub.App/Views/Repositories/Commits/CommitsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Commits/CommitsPage.xaml.cs index 1255187b8..a79be948d 100644 --- a/src/FluentHub.App/Views/Repositories/Commits/CommitsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Commits/CommitsPage.xaml.cs @@ -1,12 +1,7 @@ -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories; using FluentHub.App.ViewModels.Repositories.Commits; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Navigation; -using Microsoft.UI.Xaml.Media.Imaging; -using FluentHub.App.Data.Parameters; namespace FluentHub.App.Views.Repositories.Commits { diff --git a/src/FluentHub.App/Views/Repositories/Discussions/DiscussionPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Discussions/DiscussionPage.xaml.cs index 0ac86867f..1480e9327 100644 --- a/src/FluentHub.App/Views/Repositories/Discussions/DiscussionPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Discussions/DiscussionPage.xaml.cs @@ -1,8 +1,4 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.Discussions; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Discussions diff --git a/src/FluentHub.App/Views/Repositories/Discussions/DiscussionsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Discussions/DiscussionsPage.xaml.cs index d1b3f2cde..68f94423d 100644 --- a/src/FluentHub.App/Views/Repositories/Discussions/DiscussionsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Discussions/DiscussionsPage.xaml.cs @@ -1,8 +1,5 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.Discussions; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Discussions diff --git a/src/FluentHub.App/Views/Repositories/Insights/CodeFrequencyPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Insights/CodeFrequencyPage.xaml.cs index 8b3a4ac1a..300011304 100644 --- a/src/FluentHub.App/Views/Repositories/Insights/CodeFrequencyPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Insights/CodeFrequencyPage.xaml.cs @@ -1,8 +1,4 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; -using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Insights { diff --git a/src/FluentHub.App/Views/Repositories/Insights/CommitsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Insights/CommitsPage.xaml.cs index 587e7baaf..6bb5ca6df 100644 --- a/src/FluentHub.App/Views/Repositories/Insights/CommitsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Insights/CommitsPage.xaml.cs @@ -1,8 +1,4 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; -using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Insights { diff --git a/src/FluentHub.App/Views/Repositories/Insights/ContributorsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Insights/ContributorsPage.xaml.cs index fd146b3f2..7385e6013 100644 --- a/src/FluentHub.App/Views/Repositories/Insights/ContributorsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Insights/ContributorsPage.xaml.cs @@ -1,8 +1,4 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; -using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Insights { diff --git a/src/FluentHub.App/Views/Repositories/Insights/InsightsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Insights/InsightsPage.xaml.cs index 3ceeb325e..a96f6d73f 100644 --- a/src/FluentHub.App/Views/Repositories/Insights/InsightsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Insights/InsightsPage.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; diff --git a/src/FluentHub.App/Views/Repositories/Insights/OverviewPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Insights/OverviewPage.xaml.cs index 2c0c70782..fdfa74ef0 100644 --- a/src/FluentHub.App/Views/Repositories/Insights/OverviewPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Insights/OverviewPage.xaml.cs @@ -1,10 +1,4 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels; -using FluentHub.App.ViewModels.Repositories; -using Windows.Services.Maps; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; -using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Insights { diff --git a/src/FluentHub.App/Views/Repositories/Insights/TrafficPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Insights/TrafficPage.xaml.cs index 1d2be12d9..b1ecbb88a 100644 --- a/src/FluentHub.App/Views/Repositories/Insights/TrafficPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Insights/TrafficPage.xaml.cs @@ -1,8 +1,4 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; -using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Insights { diff --git a/src/FluentHub.App/Views/Repositories/Issues/IssuePage.xaml.cs b/src/FluentHub.App/Views/Repositories/Issues/IssuePage.xaml.cs index 27bc0bb44..847cb8b7a 100644 --- a/src/FluentHub.App/Views/Repositories/Issues/IssuePage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Issues/IssuePage.xaml.cs @@ -1,12 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.Issues; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Issues diff --git a/src/FluentHub.App/Views/Repositories/Issues/IssuesPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Issues/IssuesPage.xaml.cs index bb6616aea..26729d9cb 100644 --- a/src/FluentHub.App/Views/Repositories/Issues/IssuesPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Issues/IssuesPage.xaml.cs @@ -1,13 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.Issues; -using System; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; -using FluentHub.App.Data.Parameters; namespace FluentHub.App.Views.Repositories.Issues { diff --git a/src/FluentHub.App/Views/Repositories/Projects/ProjectPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Projects/ProjectPage.xaml.cs index 8f0bf793a..10616c613 100644 --- a/src/FluentHub.App/Views/Repositories/Projects/ProjectPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Projects/ProjectPage.xaml.cs @@ -1,8 +1,4 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.Projects; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Projects diff --git a/src/FluentHub.App/Views/Repositories/Projects/ProjectsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Projects/ProjectsPage.xaml.cs index 83582c1c7..eac7b3f1a 100644 --- a/src/FluentHub.App/Views/Repositories/Projects/ProjectsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Projects/ProjectsPage.xaml.cs @@ -1,8 +1,5 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.Projects; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Projects diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/ChecksPage.xaml.cs b/src/FluentHub.App/Views/Repositories/PullRequests/ChecksPage.xaml.cs index dbc3a3eea..1784cc867 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/ChecksPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/PullRequests/ChecksPage.xaml.cs @@ -1,14 +1,10 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.PullRequests; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Navigation; -using Microsoft.UI.Xaml.Media.Imaging; -using FluentHub.App.Data.Parameters; namespace FluentHub.App.Views.Repositories.PullRequests { diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/CommitPage.xaml.cs b/src/FluentHub.App/Views/Repositories/PullRequests/CommitPage.xaml.cs index a3aab4b04..f7c1f7cb5 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/CommitPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/PullRequests/CommitPage.xaml.cs @@ -1,14 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.PullRequests; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Navigation; -using Microsoft.UI.Xaml.Media.Imaging; -using FluentHub.App.Data.Parameters; namespace FluentHub.App.Views.Repositories.PullRequests { diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/CommitsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/PullRequests/CommitsPage.xaml.cs index 3ca285644..946844d22 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/CommitsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/PullRequests/CommitsPage.xaml.cs @@ -1,12 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.PullRequests; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.PullRequests diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/ConversationPage.xaml.cs b/src/FluentHub.App/Views/Repositories/PullRequests/ConversationPage.xaml.cs index 49d400846..d65140e7d 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/ConversationPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/PullRequests/ConversationPage.xaml.cs @@ -1,12 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.PullRequests; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.PullRequests diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/FileChangesPage.xaml.cs b/src/FluentHub.App/Views/Repositories/PullRequests/FileChangesPage.xaml.cs index 59b9b6fb9..bcac20c65 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/FileChangesPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/PullRequests/FileChangesPage.xaml.cs @@ -1,12 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.PullRequests; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.PullRequests diff --git a/src/FluentHub.App/Views/Repositories/PullRequests/PullRequestsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/PullRequests/PullRequestsPage.xaml.cs index cfcd3a559..2d7993553 100644 --- a/src/FluentHub.App/Views/Repositories/PullRequests/PullRequestsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/PullRequests/PullRequestsPage.xaml.cs @@ -1,11 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.PullRequests; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.PullRequests diff --git a/src/FluentHub.App/Views/Repositories/Releases/ReleasePage.xaml.cs b/src/FluentHub.App/Views/Repositories/Releases/ReleasePage.xaml.cs index e0cbf0c1f..8ceed692a 100644 --- a/src/FluentHub.App/Views/Repositories/Releases/ReleasePage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Releases/ReleasePage.xaml.cs @@ -1,12 +1,5 @@ -using FluentHub.App.Extensions; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.Releases; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Navigation; -using Microsoft.Web.WebView2.Core; -using FluentHub.App.Data.Parameters; namespace FluentHub.App.Views.Repositories.Releases { diff --git a/src/FluentHub.App/Views/Repositories/Releases/ReleasesPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Releases/ReleasesPage.xaml.cs index 830000f5b..1482a70f1 100644 --- a/src/FluentHub.App/Views/Repositories/Releases/ReleasesPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Releases/ReleasesPage.xaml.cs @@ -1,9 +1,5 @@ -using FluentHub.App.Helpers; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Repositories.Releases; -using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Repositories.Releases @@ -18,10 +14,10 @@ public ReleasesPage() InitializeComponent(); ViewModel = Ioc.Default.GetRequiredService(); - _pageLoadCommand = ViewModel.LoadRepositoryReleasesFurtherCommand; - } + _pageLoadCommand = ViewModel.LoadRepositoryReleasesFurtherCommand; + } - protected override void OnNavigatedTo(NavigationEventArgs e) + protected override void OnNavigatedTo(NavigationEventArgs e) { var command = ViewModel.LoadRepositoryReleasesPageCommand; if (command.CanExecute(null)) diff --git a/src/FluentHub.App/Views/Repositories/Settings/GeneralPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Settings/GeneralPage.xaml.cs index c76c125e0..906655f5b 100644 --- a/src/FluentHub.App/Views/Repositories/Settings/GeneralPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Settings/GeneralPage.xaml.cs @@ -1,6 +1,3 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories.Discussions; -using System; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; diff --git a/src/FluentHub.App/Views/Repositories/Settings/SettingsPage.xaml.cs b/src/FluentHub.App/Views/Repositories/Settings/SettingsPage.xaml.cs index 17ea3050b..1dd772843 100644 --- a/src/FluentHub.App/Views/Repositories/Settings/SettingsPage.xaml.cs +++ b/src/FluentHub.App/Views/Repositories/Settings/SettingsPage.xaml.cs @@ -1,5 +1,3 @@ -using FluentHub.App.Services; -using FluentHub.App.ViewModels.Repositories.Discussions; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; diff --git a/src/FluentHub.App/Views/Searches/CodePage.xaml.cs b/src/FluentHub.App/Views/Searches/CodePage.xaml.cs index 815d8ca24..92f14f4e9 100644 --- a/src/FluentHub.App/Views/Searches/CodePage.xaml.cs +++ b/src/FluentHub.App/Views/Searches/CodePage.xaml.cs @@ -1,8 +1,5 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Searches; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Searches diff --git a/src/FluentHub.App/Views/Searches/IssuesPage.xaml.cs b/src/FluentHub.App/Views/Searches/IssuesPage.xaml.cs index 9dd352407..d0b1355be 100644 --- a/src/FluentHub.App/Views/Searches/IssuesPage.xaml.cs +++ b/src/FluentHub.App/Views/Searches/IssuesPage.xaml.cs @@ -1,8 +1,5 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Searches; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Searches diff --git a/src/FluentHub.App/Views/Searches/RepositoriesPage.xaml.cs b/src/FluentHub.App/Views/Searches/RepositoriesPage.xaml.cs index 8ba70018e..025c2708e 100644 --- a/src/FluentHub.App/Views/Searches/RepositoriesPage.xaml.cs +++ b/src/FluentHub.App/Views/Searches/RepositoriesPage.xaml.cs @@ -1,8 +1,5 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Searches; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Searches diff --git a/src/FluentHub.App/Views/Searches/UsersPage.xaml.cs b/src/FluentHub.App/Views/Searches/UsersPage.xaml.cs index 6e3fde865..ef50bc00e 100644 --- a/src/FluentHub.App/Views/Searches/UsersPage.xaml.cs +++ b/src/FluentHub.App/Views/Searches/UsersPage.xaml.cs @@ -1,8 +1,5 @@ -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Searches; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Searches diff --git a/src/FluentHub.App/Views/Users/ContributionsPage.xaml.cs b/src/FluentHub.App/Views/Users/ContributionsPage.xaml.cs index 831bf3cca..c69fdc868 100644 --- a/src/FluentHub.App/Views/Users/ContributionsPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/ContributionsPage.xaml.cs @@ -1,9 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; - namespace FluentHub.App.Views.Users { public sealed partial class ContributionsPage : LocatablePage diff --git a/src/FluentHub.App/Views/Users/DiscussionsPage.xaml.cs b/src/FluentHub.App/Views/Users/DiscussionsPage.xaml.cs index 92e916cd0..bb4c94925 100644 --- a/src/FluentHub.App/Views/Users/DiscussionsPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/DiscussionsPage.xaml.cs @@ -1,11 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Users; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Users diff --git a/src/FluentHub.App/Views/Users/FollowersPage.xaml.cs b/src/FluentHub.App/Views/Users/FollowersPage.xaml.cs index 4a4356b06..fa9498173 100644 --- a/src/FluentHub.App/Views/Users/FollowersPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/FollowersPage.xaml.cs @@ -1,11 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Users; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Users diff --git a/src/FluentHub.App/Views/Users/FollowingPage.xaml.cs b/src/FluentHub.App/Views/Users/FollowingPage.xaml.cs index f11af39ad..96de443e6 100644 --- a/src/FluentHub.App/Views/Users/FollowingPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/FollowingPage.xaml.cs @@ -1,11 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Users; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Users diff --git a/src/FluentHub.App/Views/Users/IssuesPage.xaml.cs b/src/FluentHub.App/Views/Users/IssuesPage.xaml.cs index 084516ba8..43de70254 100644 --- a/src/FluentHub.App/Views/Users/IssuesPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/IssuesPage.xaml.cs @@ -1,11 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Users; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Users diff --git a/src/FluentHub.App/Views/Users/OrganizationsPage.xaml.cs b/src/FluentHub.App/Views/Users/OrganizationsPage.xaml.cs index 14d23f014..d260b8693 100644 --- a/src/FluentHub.App/Views/Users/OrganizationsPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/OrganizationsPage.xaml.cs @@ -1,13 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Services; using FluentHub.App.ViewModels.Users; -using System; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; -using FluentHub.App.Data.Parameters; namespace FluentHub.App.Views.Users { diff --git a/src/FluentHub.App/Views/Users/PackagesPage.xaml.cs b/src/FluentHub.App/Views/Users/PackagesPage.xaml.cs index 8025493f6..7c749640b 100644 --- a/src/FluentHub.App/Views/Users/PackagesPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/PackagesPage.xaml.cs @@ -1,11 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Users; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Users diff --git a/src/FluentHub.App/Views/Users/ProjectsPage.xaml.cs b/src/FluentHub.App/Views/Users/ProjectsPage.xaml.cs index 4a7a962fc..ede99de9f 100644 --- a/src/FluentHub.App/Views/Users/ProjectsPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/ProjectsPage.xaml.cs @@ -1,11 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Users; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Users diff --git a/src/FluentHub.App/Views/Users/PullRequestsPage.xaml.cs b/src/FluentHub.App/Views/Users/PullRequestsPage.xaml.cs index 1462ad1c4..b97e95864 100644 --- a/src/FluentHub.App/Views/Users/PullRequestsPage.xaml.cs +++ b/src/FluentHub.App/Views/Users/PullRequestsPage.xaml.cs @@ -1,11 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using FluentHub.App.Data.Parameters; -using FluentHub.App.Services; using FluentHub.App.ViewModels.Users; using Microsoft.UI.Xaml.Controls; -using Microsoft.UI.Xaml.Media.Imaging; using Microsoft.UI.Xaml.Navigation; namespace FluentHub.App.Views.Users diff --git a/src/FluentHub.App/Views/Viewers/DashBoardPage.xaml.cs b/src/FluentHub.App/Views/Viewers/DashBoardPage.xaml.cs index 0ec95d58f..6c63b264e 100644 --- a/src/FluentHub.App/Views/Viewers/DashBoardPage.xaml.cs +++ b/src/FluentHub.App/Views/Viewers/DashBoardPage.xaml.cs @@ -26,9 +26,9 @@ public DashBoardPage() _navigation.TabView.SelectedItem.NavigationHistory.CurrentItem.Context = _navigation.TabView.SelectedItem.NavigationBar.Context = new() - { - PrimaryText = "Dashboard" - }; + { + PrimaryText = "Dashboard" + }; } protected override void OnNavigatedTo(NavigationEventArgs e) diff --git a/src/FluentHub.App/Views/Viewers/NotificationsPage.xaml.cs b/src/FluentHub.App/Views/Viewers/NotificationsPage.xaml.cs index cb845f790..2d88341a8 100644 --- a/src/FluentHub.App/Views/Viewers/NotificationsPage.xaml.cs +++ b/src/FluentHub.App/Views/Viewers/NotificationsPage.xaml.cs @@ -14,7 +14,7 @@ public sealed partial class NotificationsPage : LocatablePage private readonly INavigationService _navigation; public NotificationsPage() - : base(NavigationPageKind.None, NavigationPageKey.None) + : base(NavigationPageKind.None, NavigationPageKey.None) { InitializeComponent(); @@ -26,7 +26,7 @@ public NotificationsPage() _navigation.TabView.SelectedItem.NavigationBar.Context = new() { PrimaryText = "Notifications" - }; + }; } protected override void OnNavigatedTo(NavigationEventArgs e) diff --git a/src/FluentHub.Core/Extensions/Emoji/EmojiMapping.cs b/src/FluentHub.Core/Extensions/Emoji/EmojiMapping.cs index c92651f1b..9fe26cb15 100644 --- a/src/FluentHub.Core/Extensions/Emoji/EmojiMapping.cs +++ b/src/FluentHub.Core/Extensions/Emoji/EmojiMapping.cs @@ -1,10 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; using System.Collections.Generic; -using System.Text; -using System.Linq; namespace FluentHub.Core.Extensions.Emoji { diff --git a/src/FluentHub.Octicons.Generator/Program.cs b/src/FluentHub.Octicons.Generator/Program.cs index 68419c085..46e990241 100644 --- a/src/FluentHub.Octicons.Generator/Program.cs +++ b/src/FluentHub.Octicons.Generator/Program.cs @@ -1,10 +1,9 @@ -using System.Text; +using Humanizer; using System; using System.IO; -using System.Threading.Tasks; -using System.Xml; using System.Linq; -using Humanizer; +using System.Text; +using System.Xml; namespace FluentHub.Octicons.Generator { diff --git a/src/FluentHub.Octokit.Generator/GeneratedFile.cs b/src/FluentHub.Octokit.Generator/GeneratedFile.cs index 1e697b6f7..fb32d508a 100644 --- a/src/FluentHub.Octokit.Generator/GeneratedFile.cs +++ b/src/FluentHub.Octokit.Generator/GeneratedFile.cs @@ -1,9 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using IoPath = System.IO.Path; - namespace FluentHub.Octokit.ModelGenerator { public class GeneratedFile diff --git a/src/FluentHub.Octokit.Generator/Generators/CodeGenerator.cs b/src/FluentHub.Octokit.Generator/Generators/CodeGenerator.cs index 0e56af5dd..f45c7e619 100644 --- a/src/FluentHub.Octokit.Generator/Generators/CodeGenerator.cs +++ b/src/FluentHub.Octokit.Generator/Generators/CodeGenerator.cs @@ -1,11 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; -using System.IO; using FluentHub.Octokit.ModelGenerator.Models; using Octokit.GraphQL.Core.Introspection; +using System.Collections.Generic; namespace FluentHub.Octokit.ModelGenerator.Generators { diff --git a/src/FluentHub.Octokit.Generator/Generators/DocCommentGenerator.cs b/src/FluentHub.Octokit.Generator/Generators/DocCommentGenerator.cs index 0917dbbe3..f3648cd86 100644 --- a/src/FluentHub.Octokit.Generator/Generators/DocCommentGenerator.cs +++ b/src/FluentHub.Octokit.Generator/Generators/DocCommentGenerator.cs @@ -1,9 +1,7 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; using System.Text; -using System.Xml; namespace FluentHub.Octokit.ModelGenerator.Generators { diff --git a/src/FluentHub.Octokit.Generator/Generators/EntityGenerator.cs b/src/FluentHub.Octokit.Generator/Generators/EntityGenerator.cs index 74c2171dd..78e4ac6cf 100644 --- a/src/FluentHub.Octokit.Generator/Generators/EntityGenerator.cs +++ b/src/FluentHub.Octokit.Generator/Generators/EntityGenerator.cs @@ -1,13 +1,12 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using FluentHub.Octokit.ModelGenerator.Models; using FluentHub.Octokit.ModelGenerator.Utilities; using Octokit.GraphQL.Core.Introspection; +using System; +using System.Linq; +using System.Text; namespace FluentHub.Octokit.ModelGenerator.Generators { @@ -26,7 +25,7 @@ public static string Generate( var pagingConnectionNodeType = GetPagingConnectionNodeType(type); string licenseNotice = string.Empty; - + if (!isStub) { licenseNotice = @"// Copyright (c) 2022-2024 0x5BFA diff --git a/src/FluentHub.Octokit.Generator/Generators/EnumGenerator.cs b/src/FluentHub.Octokit.Generator/Generators/EnumGenerator.cs index f65e4a13d..ec05deb28 100644 --- a/src/FluentHub.Octokit.Generator/Generators/EnumGenerator.cs +++ b/src/FluentHub.Octokit.Generator/Generators/EnumGenerator.cs @@ -1,12 +1,11 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Globalization; -using System.Text; -using Octokit.GraphQL.Core.Utilities; using FluentHub.Octokit.ModelGenerator.Models; using FluentHub.Octokit.ModelGenerator.Utilities; +using Octokit.GraphQL.Core.Utilities; +using System; +using System.Text; namespace FluentHub.Octokit.ModelGenerator.Generators { diff --git a/src/FluentHub.Octokit.Generator/Generators/InputObjectGenerator.cs b/src/FluentHub.Octokit.Generator/Generators/InputObjectGenerator.cs index 4e513dc54..a72124733 100644 --- a/src/FluentHub.Octokit.Generator/Generators/InputObjectGenerator.cs +++ b/src/FluentHub.Octokit.Generator/Generators/InputObjectGenerator.cs @@ -1,11 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Text; using FluentHub.Octokit.ModelGenerator.Models; using FluentHub.Octokit.ModelGenerator.Utilities; -using Octokit.GraphQL.Core.Introspection; +using System.Text; namespace FluentHub.Octokit.ModelGenerator.Generators { diff --git a/src/FluentHub.Octokit.Generator/Generators/InterfaceGenerator.cs b/src/FluentHub.Octokit.Generator/Generators/InterfaceGenerator.cs index 484ad01ab..f0ef4993a 100644 --- a/src/FluentHub.Octokit.Generator/Generators/InterfaceGenerator.cs +++ b/src/FluentHub.Octokit.Generator/Generators/InterfaceGenerator.cs @@ -1,11 +1,11 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Text; using FluentHub.Octokit.ModelGenerator.Models; using FluentHub.Octokit.ModelGenerator.Utilities; using Octokit.GraphQL.Core.Introspection; +using System; +using System.Text; namespace FluentHub.Octokit.ModelGenerator.Generators { diff --git a/src/FluentHub.Octokit.Generator/Generators/UnionGenerator.cs b/src/FluentHub.Octokit.Generator/Generators/UnionGenerator.cs index 4649bc54e..01cac50f3 100644 --- a/src/FluentHub.Octokit.Generator/Generators/UnionGenerator.cs +++ b/src/FluentHub.Octokit.Generator/Generators/UnionGenerator.cs @@ -1,10 +1,9 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Text; using FluentHub.Octokit.ModelGenerator.Models; using FluentHub.Octokit.ModelGenerator.Utilities; +using System.Text; namespace FluentHub.Octokit.ModelGenerator.Generators { diff --git a/src/FluentHub.Octokit.Generator/Models/DirectiveModel.cs b/src/FluentHub.Octokit.Generator/Models/DirectiveModel.cs index 0c017eafc..82354e69a 100644 --- a/src/FluentHub.Octokit.Generator/Models/DirectiveModel.cs +++ b/src/FluentHub.Octokit.Generator/Models/DirectiveModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; using Octokit.GraphQL.Core.Introspection; +using System.Collections.Generic; namespace FluentHub.Octokit.ModelGenerator.Models { diff --git a/src/FluentHub.Octokit.Generator/Models/EnumValueModel.cs b/src/FluentHub.Octokit.Generator/Models/EnumValueModel.cs index ed11bce1d..9a0a7b4f5 100644 --- a/src/FluentHub.Octokit.Generator/Models/EnumValueModel.cs +++ b/src/FluentHub.Octokit.Generator/Models/EnumValueModel.cs @@ -1,8 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; - namespace FluentHub.Octokit.ModelGenerator.Models { public class EnumValueModel diff --git a/src/FluentHub.Octokit.Generator/Models/FieldModel.cs b/src/FluentHub.Octokit.Generator/Models/FieldModel.cs index 9649d57b1..6ef5b2847 100644 --- a/src/FluentHub.Octokit.Generator/Models/FieldModel.cs +++ b/src/FluentHub.Octokit.Generator/Models/FieldModel.cs @@ -1,7 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; using System.Collections.Generic; namespace FluentHub.Octokit.ModelGenerator.Models diff --git a/src/FluentHub.Octokit.Generator/Models/InputValueModel.cs b/src/FluentHub.Octokit.Generator/Models/InputValueModel.cs index f8ce9d857..08ad6f9cb 100644 --- a/src/FluentHub.Octokit.Generator/Models/InputValueModel.cs +++ b/src/FluentHub.Octokit.Generator/Models/InputValueModel.cs @@ -1,8 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; - namespace FluentHub.Octokit.ModelGenerator.Models { public class InputValueModel diff --git a/src/FluentHub.Octokit.Generator/Models/SchemaModel.cs b/src/FluentHub.Octokit.Generator/Models/SchemaModel.cs index 79bdec7fb..6eb61c74e 100644 --- a/src/FluentHub.Octokit.Generator/Models/SchemaModel.cs +++ b/src/FluentHub.Octokit.Generator/Models/SchemaModel.cs @@ -1,7 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; using System.Collections.Generic; namespace FluentHub.Octokit.ModelGenerator.Models diff --git a/src/FluentHub.Octokit.Generator/Models/TypeModel.cs b/src/FluentHub.Octokit.Generator/Models/TypeModel.cs index a0ad3b12b..51b99d5ac 100644 --- a/src/FluentHub.Octokit.Generator/Models/TypeModel.cs +++ b/src/FluentHub.Octokit.Generator/Models/TypeModel.cs @@ -1,9 +1,8 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; using Octokit.GraphQL.Core.Introspection; +using System.Collections.Generic; namespace FluentHub.Octokit.ModelGenerator.Models { diff --git a/src/FluentHub.Octokit.Generator/Program.cs b/src/FluentHub.Octokit.Generator/Program.cs index c6af39d8c..1f19c7275 100644 --- a/src/FluentHub.Octokit.Generator/Program.cs +++ b/src/FluentHub.Octokit.Generator/Program.cs @@ -1,12 +1,12 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. +using FluentHub.Octokit.ModelGenerator.Generators; using Octokit.GraphQL; using System; -using System.Threading.Tasks; using System.IO; -using FluentHub.Octokit.ModelGenerator.Generators; using System.Text; +using System.Threading.Tasks; namespace FluentHub.Octokit.ModelGenerator { diff --git a/src/FluentHub.Octokit.Generator/SchemaReader.cs b/src/FluentHub.Octokit.Generator/SchemaReader.cs index 41e30391a..9a4dbe106 100644 --- a/src/FluentHub.Octokit.Generator/SchemaReader.cs +++ b/src/FluentHub.Octokit.Generator/SchemaReader.cs @@ -1,10 +1,10 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System.Threading.Tasks; using FluentHub.Octokit.ModelGenerator.Models; using Octokit.GraphQL; using Octokit.GraphQL.Core.Introspection; +using System.Threading.Tasks; namespace FluentHub.Octokit.ModelGenerator { diff --git a/src/FluentHub.Octokit.Generator/Utilities/BuildUtilities.cs b/src/FluentHub.Octokit.Generator/Utilities/BuildUtilities.cs index a3d166c53..6ccff64dc 100644 --- a/src/FluentHub.Octokit.Generator/Utilities/BuildUtilities.cs +++ b/src/FluentHub.Octokit.Generator/Utilities/BuildUtilities.cs @@ -1,11 +1,11 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. +using FluentHub.Octokit.ModelGenerator.Models; +using Octokit.GraphQL.Core.Introspection; using System; using System.Collections.Generic; using System.Linq; -using FluentHub.Octokit.ModelGenerator.Models; -using Octokit.GraphQL.Core.Introspection; namespace FluentHub.Octokit.ModelGenerator.Utilities { diff --git a/src/FluentHub.Octokit.Generator/Utilities/TypeUtilities.cs b/src/FluentHub.Octokit.Generator/Utilities/TypeUtilities.cs index 83f34b0d1..2b9a90cd8 100644 --- a/src/FluentHub.Octokit.Generator/Utilities/TypeUtilities.cs +++ b/src/FluentHub.Octokit.Generator/Utilities/TypeUtilities.cs @@ -1,10 +1,10 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; using FluentHub.Octokit.ModelGenerator.Models; using Octokit.GraphQL.Core.Introspection; using Octokit.GraphQL.Core.Utilities; +using System; namespace FluentHub.Octokit.ModelGenerator.Utilities { @@ -69,7 +69,7 @@ internal static object GetArgName(InputValueModel arg) public static bool IsCSharpPrimitive(TypeModel type) { - return type.Kind == TypeKind.Scalar || + return type.Kind == TypeKind.Scalar || type.Kind == TypeKind.Enum || (type.Kind == TypeKind.NonNull && IsCSharpPrimitive(type.OfType)); } @@ -156,8 +156,8 @@ private static bool IsValueType(TypeModel type) return type.Kind == TypeKind.Enum || (type.Kind == TypeKind.Scalar && (type.Name == "Int" || - type.Name == "Float" || - type.Name == "Boolean" || + type.Name == "Float" || + type.Name == "Boolean" || type.Name == "DateTime" || type.Name == "ID")); } diff --git a/src/FluentHub.Octokit/GlobalUsings.cs b/src/FluentHub.Octokit/GlobalUsings.cs index 964aefb98..f92713cc2 100644 --- a/src/FluentHub.Octokit/GlobalUsings.cs +++ b/src/FluentHub.Octokit/GlobalUsings.cs @@ -2,22 +2,20 @@ // Licensed under the MIT License. See the LICENSE. // Default usings -global using global::System; -global using global::System.Collections.Generic; -global using global::System.Linq; -global using global::System.Linq.Expressions; -global using global::System.Runtime.Serialization; -global using global::System.Text; -global using global::System.Threading.Tasks; -global using global::Newtonsoft.Json; -global using global::Newtonsoft.Json.Converters; - // Custom usings global using global::FluentHub.Octokit.Models.v3; global using global::FluentHub.Octokit.Models.v4; global using global::FluentHub.Octokit.Models.v4Custom; global using global::Humanizer; +global using global::Newtonsoft.Json; +global using global::Newtonsoft.Json.Converters; global using global::Octokit.GraphQL; -global using OctokitV3 = global::Octokit; +global using global::System; +global using global::System.Collections.Generic; +global using global::System.Linq; +global using global::System.Runtime.Serialization; +global using global::System.Text; +global using global::System.Threading.Tasks; global using OctokitGraphQLCore = global::Octokit.GraphQL.Core; global using OctokitGraphQLModel = global::Octokit.GraphQL.Model; +global using OctokitV3 = global::Octokit; diff --git a/src/FluentHub.Octokit/Models/v3/Activity.cs b/src/FluentHub.Octokit/Models/v3/Activity.cs index dbbb452ea..1ad4d691e 100644 --- a/src/FluentHub.Octokit/Models/v3/Activity.cs +++ b/src/FluentHub.Octokit/Models/v3/Activity.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class Activity { diff --git a/src/FluentHub.Octokit/Models/v3/ActivityPayload.cs b/src/FluentHub.Octokit/Models/v3/ActivityPayload.cs index 3965aa3f2..49e8134c0 100644 --- a/src/FluentHub.Octokit/Models/v3/ActivityPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/ActivityPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/ActivityPayloadType.cs b/src/FluentHub.Octokit/Models/v3/ActivityPayloadType.cs index 8c12559f6..5920e6de3 100644 --- a/src/FluentHub.Octokit/Models/v3/ActivityPayloadType.cs +++ b/src/FluentHub.Octokit/Models/v3/ActivityPayloadType.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public enum ActivityPayloadType { diff --git a/src/FluentHub.Octokit/Models/v3/ActivityPayloads.cs b/src/FluentHub.Octokit/Models/v3/ActivityPayloads.cs index 3db1b81c9..8cdb54d57 100644 --- a/src/FluentHub.Octokit/Models/v3/ActivityPayloads.cs +++ b/src/FluentHub.Octokit/Models/v3/ActivityPayloads.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class ActivityPayloads { diff --git a/src/FluentHub.Octokit/Models/v3/CheckRunEventPayload.cs b/src/FluentHub.Octokit/Models/v3/CheckRunEventPayload.cs index b57010436..72d8ec60d 100644 --- a/src/FluentHub.Octokit/Models/v3/CheckRunEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/CheckRunEventPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class CheckRunEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/CheckSuiteEventPayload.cs b/src/FluentHub.Octokit/Models/v3/CheckSuiteEventPayload.cs index 751e90f56..365b48b1c 100644 --- a/src/FluentHub.Octokit/Models/v3/CheckSuiteEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/CheckSuiteEventPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class CheckSuiteEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/CommitCommentPayload.cs b/src/FluentHub.Octokit/Models/v3/CommitCommentPayload.cs index bfda17b36..85bdefc3b 100644 --- a/src/FluentHub.Octokit/Models/v3/CommitCommentPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/CommitCommentPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class CommitCommentPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/CreateEventPayload.cs b/src/FluentHub.Octokit/Models/v3/CreateEventPayload.cs index f1b98c693..6f5e250de 100644 --- a/src/FluentHub.Octokit/Models/v3/CreateEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/CreateEventPayload.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class CreateEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/DeleteEventPayload.cs b/src/FluentHub.Octokit/Models/v3/DeleteEventPayload.cs index 2b0d6c1a3..708fa66ce 100644 --- a/src/FluentHub.Octokit/Models/v3/DeleteEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/DeleteEventPayload.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class DeleteEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/ForkEventPayload.cs b/src/FluentHub.Octokit/Models/v3/ForkEventPayload.cs index 47a8666fd..6c0d3ccbd 100644 --- a/src/FluentHub.Octokit/Models/v3/ForkEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/ForkEventPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class ForkEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/IssueCommentPayload.cs b/src/FluentHub.Octokit/Models/v3/IssueCommentPayload.cs index 016dd2c1a..7a438be2d 100644 --- a/src/FluentHub.Octokit/Models/v3/IssueCommentPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/IssueCommentPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class IssueCommentPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/IssueEventPayload.cs b/src/FluentHub.Octokit/Models/v3/IssueEventPayload.cs index f03452e78..ec36aacb4 100644 --- a/src/FluentHub.Octokit/Models/v3/IssueEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/IssueEventPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class IssueEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/Notification.cs b/src/FluentHub.Octokit/Models/v3/Notification.cs index 88ed2f335..11969db62 100644 --- a/src/FluentHub.Octokit/Models/v3/Notification.cs +++ b/src/FluentHub.Octokit/Models/v3/Notification.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class Notification { diff --git a/src/FluentHub.Octokit/Models/v3/NotificationConnection.cs b/src/FluentHub.Octokit/Models/v3/NotificationConnection.cs index 71d12b5a7..890158bca 100644 --- a/src/FluentHub.Octokit/Models/v3/NotificationConnection.cs +++ b/src/FluentHub.Octokit/Models/v3/NotificationConnection.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { /// /// The connection type for Notification. diff --git a/src/FluentHub.Octokit/Models/v3/NotificationEdge.cs b/src/FluentHub.Octokit/Models/v3/NotificationEdge.cs index e7bd29c94..a22a3e685 100644 --- a/src/FluentHub.Octokit/Models/v3/NotificationEdge.cs +++ b/src/FluentHub.Octokit/Models/v3/NotificationEdge.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class NotificationEdge { diff --git a/src/FluentHub.Octokit/Models/v3/PageInfoV3.cs b/src/FluentHub.Octokit/Models/v3/PageInfoV3.cs index aa09b1633..39e725036 100644 --- a/src/FluentHub.Octokit/Models/v3/PageInfoV3.cs +++ b/src/FluentHub.Octokit/Models/v3/PageInfoV3.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class PageInfoV3 { diff --git a/src/FluentHub.Octokit/Models/v3/PullRequestCommentPayload.cs b/src/FluentHub.Octokit/Models/v3/PullRequestCommentPayload.cs index c8d8dd3c9..3aa6ab2d2 100644 --- a/src/FluentHub.Octokit/Models/v3/PullRequestCommentPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/PullRequestCommentPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class PullRequestCommentPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/PullRequestEventPayload.cs b/src/FluentHub.Octokit/Models/v3/PullRequestEventPayload.cs index 7f287017d..f704ed654 100644 --- a/src/FluentHub.Octokit/Models/v3/PullRequestEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/PullRequestEventPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class PullRequestEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/PullRequestReviewEventPayload.cs b/src/FluentHub.Octokit/Models/v3/PullRequestReviewEventPayload.cs index ecdf8257d..0f8327be1 100644 --- a/src/FluentHub.Octokit/Models/v3/PullRequestReviewEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/PullRequestReviewEventPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class PullRequestReviewEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/PushEventPayload.cs b/src/FluentHub.Octokit/Models/v3/PushEventPayload.cs index 4d01034ad..8fed59875 100644 --- a/src/FluentHub.Octokit/Models/v3/PushEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/PushEventPayload.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class PushEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/PushWebhookCommit.cs b/src/FluentHub.Octokit/Models/v3/PushWebhookCommit.cs index d1c5aff57..7dc6355eb 100644 --- a/src/FluentHub.Octokit/Models/v3/PushWebhookCommit.cs +++ b/src/FluentHub.Octokit/Models/v3/PushWebhookCommit.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class PushWebhookCommit { diff --git a/src/FluentHub.Octokit/Models/v3/PushWebhookCommitter.cs b/src/FluentHub.Octokit/Models/v3/PushWebhookCommitter.cs index fffcd9c4c..1fb258a78 100644 --- a/src/FluentHub.Octokit/Models/v3/PushWebhookCommitter.cs +++ b/src/FluentHub.Octokit/Models/v3/PushWebhookCommitter.cs @@ -1,7 +1,4 @@ -using System; -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class PushWebhookCommitter { diff --git a/src/FluentHub.Octokit/Models/v3/PushWebhookPayload.cs b/src/FluentHub.Octokit/Models/v3/PushWebhookPayload.cs index 468c8aa3a..b4631cc35 100644 --- a/src/FluentHub.Octokit/Models/v3/PushWebhookPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/PushWebhookPayload.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class PushWebhookPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/ReleaseEventPayload.cs b/src/FluentHub.Octokit/Models/v3/ReleaseEventPayload.cs index 024f27e23..03ffc8c84 100644 --- a/src/FluentHub.Octokit/Models/v3/ReleaseEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/ReleaseEventPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class ReleaseEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/StarredEventPayload.cs b/src/FluentHub.Octokit/Models/v3/StarredEventPayload.cs index b6f82dd6a..0768b8b45 100644 --- a/src/FluentHub.Octokit/Models/v3/StarredEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/StarredEventPayload.cs @@ -1,6 +1,4 @@ -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class StarredEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/Models/v3/StatusEventPayload.cs b/src/FluentHub.Octokit/Models/v3/StatusEventPayload.cs index 1b1164387..e0c231b61 100644 --- a/src/FluentHub.Octokit/Models/v3/StatusEventPayload.cs +++ b/src/FluentHub.Octokit/Models/v3/StatusEventPayload.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; - -namespace FluentHub.Octokit.Models.v3 +namespace FluentHub.Octokit.Models.v3 { public class StatusEventPayload : ActivityPayload { diff --git a/src/FluentHub.Octokit/OctokitQueryResult.cs b/src/FluentHub.Octokit/OctokitQueryResult.cs index c9b3223ad..1314e3160 100644 --- a/src/FluentHub.Octokit/OctokitQueryResult.cs +++ b/src/FluentHub.Octokit/OctokitQueryResult.cs @@ -1,10 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; -using System.Text; - namespace FluentHub.Octokit { public class OctokitQueryResult diff --git a/src/FluentHub.Octokit/Queries/Repositories/IssueEventQueries.cs b/src/FluentHub.Octokit/Queries/Repositories/IssueEventQueries.cs index 151675945..6ad7238b8 100644 --- a/src/FluentHub.Octokit/Queries/Repositories/IssueEventQueries.cs +++ b/src/FluentHub.Octokit/Queries/Repositories/IssueEventQueries.cs @@ -568,7 +568,7 @@ public async Task> GetAllAsync(string owner, string name, int numbe }) .SingleOrDefault(), }) - .MentionedEvent(y => new MentionedEvent + .MentionedEvent(y => new MentionedEvent { CreatedAt = y.CreatedAt, CreatedAtHumanized = y.CreatedAt.Humanize(null, null), diff --git a/src/FluentHub.Octokit/Queries/Repositories/TreeQueries.cs b/src/FluentHub.Octokit/Queries/Repositories/TreeQueries.cs index c8aa2dc4c..c5e629006 100644 --- a/src/FluentHub.Octokit/Queries/Repositories/TreeQueries.cs +++ b/src/FluentHub.Octokit/Queries/Repositories/TreeQueries.cs @@ -1,8 +1,5 @@ using GraphQL; using Newtonsoft.Json.Linq; -using System.Collections.Generic; -using System.Dynamic; -using System.Globalization; namespace FluentHub.Octokit.Queries.Repositories { diff --git a/src/FluentHub.Octokit/Queries/Users/FollowingQueries.cs b/src/FluentHub.Octokit/Queries/Users/FollowingQueries.cs index 91fa3ecfc..af6597b12 100644 --- a/src/FluentHub.Octokit/Queries/Users/FollowingQueries.cs +++ b/src/FluentHub.Octokit/Queries/Users/FollowingQueries.cs @@ -9,34 +9,34 @@ public async Task GetAllAsync( int? last = null, string? before = null) { - var query = new Query() - .User(login) - .Following(first, after, last, before) - .Select(connection => new FollowingConnection + var query = new Query() + .User(login) + .Following(first, after, last, before) + .Select(connection => new FollowingConnection + { + Edges = connection.Edges.Select(edge => new UserEdge { - Edges = connection.Edges.Select(edge => new UserEdge + Node = edge.Node.Select(x => new User { - Node = edge.Node.Select(x => new User - { - AvatarUrl = x.AvatarUrl(500), - Name = x.Name, - Bio = x.Bio, - Login = x.Login, - Id = x.Id, - }) - .Single() + AvatarUrl = x.AvatarUrl(500), + Name = x.Name, + Bio = x.Bio, + Login = x.Login, + Id = x.Id, }) - .ToList(), - - PageInfo = new() - { - EndCursor = connection.PageInfo.EndCursor, - HasNextPage = connection.PageInfo.HasNextPage, - HasPreviousPage = connection.PageInfo.HasPreviousPage, - StartCursor = connection.PageInfo.StartCursor, - }, + .Single() }) - .Compile(); + .ToList(), + + PageInfo = new() + { + EndCursor = connection.PageInfo.EndCursor, + HasNextPage = connection.PageInfo.HasNextPage, + HasPreviousPage = connection.PageInfo.HasPreviousPage, + StartCursor = connection.PageInfo.StartCursor, + }, + }) + .Compile(); var response = await App.Connection.Run(query); diff --git a/src/FluentHub.Octokit/Queries/Users/NotificationQueries.cs b/src/FluentHub.Octokit/Queries/Users/NotificationQueries.cs index a1f457fde..d520a01fa 100644 --- a/src/FluentHub.Octokit/Queries/Users/NotificationQueries.cs +++ b/src/FluentHub.Octokit/Queries/Users/NotificationQueries.cs @@ -272,27 +272,27 @@ private List MapRepositoriesToNotifications(List not switch (item.Repository.Issue.State) { case IssueState.Open: - { - item.Notification.Subject.Type = NotificationSubjectType.IssueOpen; - break; - } + { + item.Notification.Subject.Type = NotificationSubjectType.IssueOpen; + break; + } case IssueState.Closed: - { - switch (item.Repository.Issue.StateReason) { - case IssueStateReason.Completed: - item.Notification.Subject.Type = NotificationSubjectType.IssueClosedAsCompleted; - break; - case IssueStateReason.Reopened: - case IssueStateReason.NotPlanned: - item.Notification.Subject.Type = NotificationSubjectType.IssueClosedAsNotPlanned; - break; + switch (item.Repository.Issue.StateReason) + { + case IssueStateReason.Completed: + item.Notification.Subject.Type = NotificationSubjectType.IssueClosedAsCompleted; + break; + case IssueStateReason.Reopened: + case IssueStateReason.NotPlanned: + item.Notification.Subject.Type = NotificationSubjectType.IssueClosedAsNotPlanned; + break; + } + break; } - break; - } } } - + break; } case NotificationSubjectType.PullRequest: diff --git a/src/FluentHub.Octokit/Queries/Users/PinnedItemQueries.cs b/src/FluentHub.Octokit/Queries/Users/PinnedItemQueries.cs index ea4b5bba5..ea09f1013 100644 --- a/src/FluentHub.Octokit/Queries/Users/PinnedItemQueries.cs +++ b/src/FluentHub.Octokit/Queries/Users/PinnedItemQueries.cs @@ -138,7 +138,7 @@ public async Task> GetAllPinnableItems(string login) }) .ToList(), }) - + .Compile(); var response = await App.Connection.Run(query); diff --git a/src/FluentHub.Octokit/Wrappers/ActivityWrapper.cs b/src/FluentHub.Octokit/Wrappers/ActivityWrapper.cs index 799aaed3e..eb9bcf97b 100644 --- a/src/FluentHub.Octokit/Wrappers/ActivityWrapper.cs +++ b/src/FluentHub.Octokit/Wrappers/ActivityWrapper.cs @@ -1,11 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; -using System.Text; -using Newtonsoft.Json; - namespace FluentHub.Octokit.Wrappers { internal class ActivityWrapper diff --git a/src/FluentHub.Octokit/Wrappers/NotificationWrapper.cs b/src/FluentHub.Octokit/Wrappers/NotificationWrapper.cs index f6fce5ec9..46d479df8 100644 --- a/src/FluentHub.Octokit/Wrappers/NotificationWrapper.cs +++ b/src/FluentHub.Octokit/Wrappers/NotificationWrapper.cs @@ -1,10 +1,6 @@ // Copyright (c) 2022-2024 0x5BFA // Licensed under the MIT License. See the LICENSE. -using System; -using System.Collections.Generic; -using System.Text; - namespace FluentHub.Octokit.Wrappers { internal class NotificationWrapper