diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 705030180..803257a2a 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 💬 Discord
- url: https://discord.com/invite/8KtRkjq2Q4
+ url: https://dsc.gg/fluenthub
about: You can discuss products and services on Discord, too!
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 2f2ad0d12..60c3c8e12 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -22,7 +22,7 @@ If an issue already exists with this, you can add the issue link or number-->
- [ ] Were these changes approved in an discussion by the project maintainers to prevent from extra work?
- [ ] Did you build the app and test your changes?
- [ ] Did you check for accessibility? You can use Accessibility Insights for this.
-- [ ] Did you remove any strings from the en-us resource file after seeing if the string wasn't being used?
+- [ ] Did you remove any strings from the en-us resource file after seeing if the string wasn't being used?
- [ ] Did you implement any design changes to an existing feature?
- [ ] Was this change approved?
- [ ] Are there any other steps that were used to validate these changes?
diff --git a/.github/README.md b/.github/README.md
index 94e1d63b2..318d4ca80 100644
--- a/.github/README.md
+++ b/.github/README.md
@@ -18,7 +18,7 @@
-FluentHub is the stylish yet powerful GitHub client for Windows, which enpowers development experience and follows Microsoft Design Language.
+**A stylish yet powerful GitHub client for Windows**, which empowers development experience and follows the Microsoft Design Language.
- **FluentHub UI:** designed with FluentUI and built on WinAppSdk/WinUI3
- **Multitasking:** with FluentHub you can multi-task with ease with tab support built-in to the app
@@ -39,7 +39,7 @@ Your dashboard|Your repos|User profile page
---|---|---
![Dashboard page screenshot](./assets/screenshots/page-dashboard.png)|![Repo page screenshot](./assets/screenshots/page-repo.png)|![User page screenshot](./assets/screenshots/page-user.png)
-## Building the Code
+## Building from source
### 1. Prerequisites
@@ -50,12 +50,12 @@ Your dashboard|Your repos|User profile page
git clone https://github.com/FluentHub/FluentHub
```
-### 2. Prepare OAuth credentials
+### 2. Prepare credentials
See [the documentation](../docs/credentials.md).
> [!WARNING]
-> If you skip this step, Visual Studio will give a fatal error that the `AppCredentials.config` file does not exist.
+> If you skip this step, Visual Studio will fail to build reporting that the `AppCredentials.config` file does not exist.
### 3. Build the project
@@ -65,6 +65,5 @@ See [the documentation](../docs/credentials.md).
## Credit
-- Some application icons were created by [Icons8](https://github.com/icons8).
- Many thanks to [Joseph Beattie](https://github.com/josephbeattie) for creating our current logo.
- Join [Developer Sanctuary](https://dsc.gg/devsanx) to learn more about our project!
diff --git a/.github/SECURITY.md b/.github/SECURITY.md
index 5d87a0745..96e35572e 100644
--- a/.github/SECURITY.md
+++ b/.github/SECURITY.md
@@ -33,7 +33,7 @@ reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
-->
-**Please report security advistiry from "New draft security advisory" in the Security tab**
+**Please use the GitHub Security Advisory "Report a Vulnerability" button to draft a new security vulnerability!**
In order to report a security vulnerability, you can use [GitHub's built-in tool](https://github.com/0x5bfa/FluentHub/security/advisories/new) which easily allows you to calculate an _attack vector/CVSS string_ or attribute to an existing [`CVE`](https://cve.org) code. This allows the FluentHub Team to accurately calculate the severity and/or importance of preventing it.
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/Assets/Icons/Commits.png b/src/FluentHub.App/Assets/Icons/Commits.png
index e7601a4f5..3e0c0d485 100644
Binary files a/src/FluentHub.App/Assets/Icons/Commits.png and b/src/FluentHub.App/Assets/Icons/Commits.png differ
diff --git a/src/FluentHub.App/Assets/Icons/PullRequests.png b/src/FluentHub.App/Assets/Icons/PullRequests.png
index e8667306f..4bb51af82 100644
Binary files a/src/FluentHub.App/Assets/Icons/PullRequests.png and b/src/FluentHub.App/Assets/Icons/PullRequests.png differ
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/Directory.Packages.props b/src/FluentHub.App/Directory.Packages.props
new file mode 100644
index 000000000..55a98d92d
--- /dev/null
+++ b/src/FluentHub.App/Directory.Packages.props
@@ -0,0 +1,25 @@
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
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/Extensions/WebViewExtentions.cs b/src/FluentHub.App/Extensions/WebViewExtensions.cs
similarity index 93%
rename from src/FluentHub.App/Extensions/WebViewExtentions.cs
rename to src/FluentHub.App/Extensions/WebViewExtensions.cs
index 23ade2919..a7050691f 100644
--- a/src/FluentHub.App/Extensions/WebViewExtentions.cs
+++ b/src/FluentHub.App/Extensions/WebViewExtensions.cs
@@ -2,7 +2,7 @@
namespace FluentHub.App.Extensions
{
- public static class WebViewExtentions
+ public static class WebViewExtensions
{
public static async Task HandleResize(this WebView2 webView2)
{
diff --git a/src/FluentHub.App/FluentHub.App.csproj b/src/FluentHub.App/FluentHub.App.csproj
index 794d16834..fe29b7f96 100644
--- a/src/FluentHub.App/FluentHub.App.csproj
+++ b/src/FluentHub.App/FluentHub.App.csproj
@@ -1,4 +1,4 @@
-
+net8.0-windows10.0.22621.0
@@ -12,39 +12,41 @@
x86;x64;arm64Debug;Release;Sideloadwin-x86;win-x64;win-arm64
- TRACE;DEBUG;NETFX_CORE;DISABLE_XAML_GENERATED_MAIN
- TRACE;RELEASE;NETFX_CORE;DISABLE_XAML_GENERATED_MAIN
+ $(DefineConstants);DISABLE_XAML_GENERATED_MAIN
+ $(DefineConstants);RELEASE;DISABLE_XAML_GENERATED_MAINtrue
+ Enable
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/FluentHub.App/GlobalUsings.cs b/src/FluentHub.App/GlobalUsings.cs
index b24bb253f..206edeb34 100644
--- a/src/FluentHub.App/GlobalUsings.cs
+++ b/src/FluentHub.App/GlobalUsings.cs
@@ -1,7 +1,7 @@
// Copyright (c) 2022-2024 0x5BFA
// Licensed under the MIT License. See the LICENSE.
-// Default
+// First party
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Collections.ObjectModel;
@@ -9,8 +9,6 @@
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
@@ -19,11 +17,10 @@
global using global::CommunityToolkit.Mvvm.Input;
global using global::CommunityToolkit.Mvvm.Messaging;
-// FluentHub
+// FluentHub.App
global using global::FluentHub.App.Data.EventArgs;
global using global::FluentHub.App.Data.Factories;
global using global::FluentHub.App.Data.Items;
-//global using global::FluentHub.App.Data.Models;
global using global::FluentHub.App.Data.Parameters;
global using global::FluentHub.App.Helpers;
global using global::FluentHub.App.Services;
@@ -32,6 +29,6 @@
global using global::FluentHub.Octokit.Models.v4;
// Third-party
+global using global::Humanizer;
global using global::Octokit.GraphQL;
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/Strings/README.md b/src/FluentHub.App/Strings/README.md
new file mode 100644
index 000000000..e5dab6551
--- /dev/null
+++ b/src/FluentHub.App/Strings/README.md
@@ -0,0 +1,12 @@
+# 😸 FluentHub Translations
+
+#### These are the translation/i18n resources for FluentHub
+
+---
+
+Before contributing to these string resources, *please please please* read this!
+
+Currently, Crowdin translation is implemented to manage the translation resources for FluentHub. Therefore, you are strongly encouraged, if not required, to translate exclusively on that platform.
+No matter how great, your translation PRs will be declined or rejected if you do not adhere to this.
+You can contribute easily at [crowdin.com/fluenthub](https://crowdin.com/project/fluenthub), which will ensure your translations are implemented.
+If a language is missing and you'd like to contribute a new one, feel free to ask in a new issue or via [the FluentHub Discord server](https://dsc.gg/fluenthub).
diff --git a/src/FluentHub.App/Themes/FluentHub Default.xaml b/src/FluentHub.App/Themes/FluentHub Default.xaml
index 570c3f880..109fbe8e1 100644
--- a/src/FluentHub.App/Themes/FluentHub Default.xaml
+++ b/src/FluentHub.App/Themes/FluentHub Default.xaml
@@ -1,6 +1,4 @@
-
+
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/CustomTabView/CustomTabView.xaml b/src/FluentHub.App/UserControls/CustomTabView/CustomTabView.xaml
index 53433f32f..22f69c5bb 100644
--- a/src/FluentHub.App/UserControls/CustomTabView/CustomTabView.xaml
+++ b/src/FluentHub.App/UserControls/CustomTabView/CustomTabView.xaml
@@ -2,6 +2,7 @@
x:Class="FluentHub.App.UserControls.CustomTabView.CustomTabView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dataitems="using:FluentHub.App.Data.Items"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
@@ -34,6 +35,31 @@
SelectedItem="{x:Bind SelectedItem, Mode=TwoWay}"
TabCloseRequested="OnMainTabViewTabCloseRequested"
TabItemsSource="{x:Bind TabItems, Mode=OneWay}">
+
diff --git a/src/FluentHub.App/UserControls/CustomTabView/CustomTabView.xaml.cs b/src/FluentHub.App/UserControls/CustomTabView/CustomTabView.xaml.cs
index bac44e725..2367ac65e 100644
--- a/src/FluentHub.App/UserControls/CustomTabView/CustomTabView.xaml.cs
+++ b/src/FluentHub.App/UserControls/CustomTabView/CustomTabView.xaml.cs
@@ -2,6 +2,7 @@
// Licensed under the MIT License. See the LICENSE.
using CommunityToolkit.WinUI.UI;
+using FluentHub.App.Views;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Media.Animation;
@@ -10,6 +11,15 @@ namespace FluentHub.App.UserControls.CustomTabView
{
public sealed partial class CustomTabView : UserControl, ITabView
{
+ /*
+ private MainPage _mainPage;
+
+ public MainPage MainPageInstance
+ {
+ get => _mainPage;
+ set => _mainPage = value;
+ } */
+
public ITabViewItem SelectedItem
{
get => (ITabViewItem)GetValue(SelectedItemProperty);
@@ -161,5 +171,11 @@ private void TabViewItem_Loaded(object sender, RoutedEventArgs e)
});
}
}
+
+ /*
+ private void GlobalNavigationButton_Click(object sender, RoutedEventArgs e)
+ {
+ _mainPage.LeftSideNavigationViewOpenerButton_Click(sender, e);
+ } */
}
}
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 b/src/FluentHub.App/UserControls/FileNavigationBlock.xaml
index 7b5aa8a7c..7515ca676 100644
--- a/src/FluentHub.App/UserControls/FileNavigationBlock.xaml
+++ b/src/FluentHub.App/UserControls/FileNavigationBlock.xaml
@@ -1,4 +1,4 @@
-
-
+ IsEnabled="False"
+ PlaceholderText="Go to file" />
+
+
-
+
-
+
@@ -51,7 +51,7 @@
ToolTipService.ToolTip="Copy git clone command">
-
+
@@ -113,25 +113,31 @@
-
+ Click="OpenWithButton_Click">
+
+
+
+
+
+
+
+
+
+
-
+ -->
@@ -140,23 +140,20 @@
+ NavigateUri="https://github.com/0x5BFA/FluentHub" />
-
+ NavigateUri="https://github.com/0x5BFA/FluentHub/blob/main/LICENSE" />
+ NavigateUri="https://github.com/0x5BFA/FluentHub/blob/main/.github/CODE_OF_CONDUCT.md" />
+
+ NavigateUri="https://github.com/0x5BFA/FluentHub/blob/main/.github/SECURITY.md" />
@@ -170,7 +167,7 @@
@@ -139,34 +150,16 @@
-
-
-
@@ -255,29 +264,63 @@
Spacing="8">
-
+ PlaceholderText="Search GitHub" />
-
+
-
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/src/FluentHub.App/Views/MainPage.xaml.cs b/src/FluentHub.App/Views/MainPage.xaml.cs
index 96fdfb524..be8f59f02 100644
--- a/src/FluentHub.App/Views/MainPage.xaml.cs
+++ b/src/FluentHub.App/Views/MainPage.xaml.cs
@@ -1,16 +1,16 @@
// 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;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Navigation;
using Windows.Graphics;
+using FluentHub.App.UserControls.CustomTabView;
namespace FluentHub.App.Views
{
@@ -29,6 +29,8 @@ public MainPage()
ViewModel = Ioc.Default.GetRequiredService();
NavigationService = Ioc.Default.GetRequiredService();
_logger = Ioc.Default.GetRequiredService();
+
+ // CustomCustomTabView.MainPageInstance = this;
}
private void SubscribeEvents()
@@ -131,7 +133,7 @@ private void OnTabViewSelectionChanged(object sender, TabViewSelectionChangedEve
RootFrameBorder.Content = e.NewSelectedItem?.Frame;
}
- private void LeftSideNavigationViewOpenerButton_Click(object sender, RoutedEventArgs e)
+ public void LeftSideNavigationViewOpenerButton_Click(object sender, RoutedEventArgs e)
{
LeftSideNavigationView.IsPaneOpen = true;
LeftSideNavigationView.Visibility = Visibility.Visible;
@@ -151,8 +153,6 @@ private void LeftSideViewerIconMenuFlyoutItem_Click(object sender, RoutedEventAr
{
var mfi = (MenuFlyoutItem)sender;
- var parameter = NavigationService.TabView.SelectedItem.NavigationBar.Context;
-
var navBar = NavigationService.TabView.SelectedItem.NavigationBar;
navBar.Context = new()
{
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 b/src/FluentHub.App/Views/Repositories/Projects/ProjectsPage.xaml
index 0d04cbfc3..793945ad6 100644
--- a/src/FluentHub.App/Views/Repositories/Projects/ProjectsPage.xaml
+++ b/src/FluentHub.App/Views/Repositories/Projects/ProjectsPage.xaml
@@ -92,7 +92,7 @@
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..c0cce6bee 100644
--- a/src/FluentHub.Octicons.Generator/Program.cs
+++ b/src/FluentHub.Octicons.Generator/Program.cs
@@ -1,4 +1,7 @@
-using System.Text;
+// Copyright (c) 2022-2024 0x5BFA
+// Licensed under the MIT License. See the LICENSE.
+
+using System.Text;
using System;
using System.IO;
using System.Threading.Tasks;
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/App.cs b/src/FluentHub.Octokit/App.cs
index 94e7e90fa..7b03302a3 100644
--- a/src/FluentHub.Octokit/App.cs
+++ b/src/FluentHub.Octokit/App.cs
@@ -14,7 +14,6 @@ public class App
public static OctokitV3.GitHubClient Client { get; set; }
= new OctokitV3.GitHubClient(new OctokitV3.ProductHeaderValue("FluentHub"));
-
public static GraphQLHttpClient GraphQLHttpClient { get; set; }
= new("https://api.github.com/graphql", new NewtonsoftJsonSerializer());
diff --git a/src/FluentHub.Octokit/FluentHub.Octokit.csproj b/src/FluentHub.Octokit/FluentHub.Octokit.csproj
index a48845875..ca5baae6d 100644
--- a/src/FluentHub.Octokit/FluentHub.Octokit.csproj
+++ b/src/FluentHub.Octokit/FluentHub.Octokit.csproj
@@ -12,7 +12,7 @@
-
+
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
diff --git a/src/FluentHub.Package/FluentHub.Package.wapproj b/src/FluentHub.Package/FluentHub.Package.wapproj
index 3604e7c11..6d1df7ba6 100644
--- a/src/FluentHub.Package/FluentHub.Package.wapproj
+++ b/src/FluentHub.Package/FluentHub.Package.wapproj
@@ -1,98 +1,89 @@
-
-
- 17.0
-
-
-
- 10.0.22621.0
- 10.0.19041.0
- 8f60fd8e-1921-47d6-97b0-d26d7b3a4999
- net8.0-windows$(TargetPlatformVersion);$(AssetTargetFallback)
- en-US
- False
- False
- 0
- OnApplicationRun
- True
- x64
- False
- True
- Scale|DXFeatureLevel
- Language=en-US;ja-JP
- StoreUpload
- 0
- ..\FluentHub.App\FluentHub.App.csproj
- Always
-
-
-
-
- Debug
- x86
-
-
- Release
- x86
-
-
- Sideload
- x86
-
-
- Debug
- x64
-
-
- Release
- x64
-
-
- Sideload
- x64
-
-
- Debug
- ARM64
-
-
- Release
- ARM64
-
-
- Sideload
- ARM64
-
-
-
-
- $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\
- FluentHub.App\
-
-
-
-
-
-
- Designer
-
-
-
-
-
-
- True
- Properties\PublishProfiles\win-$(Platform).pubxml
- Partial
-
-
-
-
-
-
-
-
-
-
+
+ 17.0
+
+
+ 10.0.22621.0
+ 10.0.19041.0
+ 8f60fd8e-1921-47d6-97b0-d26d7b3a4999
+ net8.0-windows$(TargetPlatformVersion);$(AssetTargetFallback)
+ en-US
+ False
+ False
+ 0
+ OnApplicationRun
+ True
+ x64
+ False
+ True
+ Scale|DXFeatureLevel
+ Language=en-US;ja-JP
+ StoreUpload
+ 0
+ ..\FluentHub.App\FluentHub.App.csproj
+ Always
+
+
+
+ Debug
+ x86
+
+
+ Release
+ x86
+
+
+ Sideload
+ x86
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+ Sideload
+ x64
+
+
+ Debug
+ ARM64
+
+
+ Release
+ ARM64
+
+
+ Sideload
+ ARM64
+
+
+
+ $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\
+ FluentHub.App\
+
+
+
+
+ Designer
+
+
+
+
+
+ True
+ Properties\PublishProfiles\win-$(Platform).pubxml
+ Partial
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/FluentHub.Package/Package.appxmanifest b/src/FluentHub.Package/Package.appxmanifest
index f1229eadd..2afaa9b18 100644
--- a/src/FluentHub.Package/Package.appxmanifest
+++ b/src/FluentHub.Package/Package.appxmanifest
@@ -41,7 +41,7 @@
DisplayName="FluentHub Dev"
Square150x150Logo="Assets\AppTiles\Dev\Square150x150Logo.png"
Square44x44Logo="Assets\AppTiles\Dev\Square44x44Logo.png"
- Description="The stylish yet powerful GitHub client for Windows."
+ Description="A stylish yet powerful GitHub client for Windows"
BackgroundColor="transparent">