diff --git a/docs/Masa.Docs.Core/NavigationManagerExtensions.cs b/docs/Masa.Docs.Core/NavigationManagerExtensions.cs deleted file mode 100644 index 8da3196725..0000000000 --- a/docs/Masa.Docs.Core/NavigationManagerExtensions.cs +++ /dev/null @@ -1,29 +0,0 @@ -namespace Masa.Docs.Core; - -public static class NavigationManagerExtensions -{ - public static void Replace(this NavigationManager navigationManager, string uri) - { - navigationManager.NavigateTo(uri, replace: true); - } - - public static void ReplaceWithHash(this NavigationManager navigationManager, string hash) - { - navigationManager.Replace($"{navigationManager.GetAbsolutePath()}{hash}"); - } - - public static string GetAbsolutePath(this NavigationManager navigationManager) - { - return navigationManager.ToUri().AbsolutePath; - } - - public static string[] GetSegments(this NavigationManager navigationManager) - { - return navigationManager.ToUri().Segments; - } - - private static Uri ToUri(this NavigationManager navigationManager) - { - return new Uri(navigationManager.Uri); - } -} diff --git a/docs/Masa.Docs.Shared/_Imports.cs b/docs/Masa.Docs.Shared/_Imports.cs index 1f24e7692b..a4fd6e501b 100644 --- a/docs/Masa.Docs.Shared/_Imports.cs +++ b/docs/Masa.Docs.Shared/_Imports.cs @@ -1,4 +1,5 @@ -global using Masa.Blazor; +global using BlazorComponent; +global using Masa.Blazor; global using Masa.Docs.Core; global using Masa.Docs.Core.Models; global using Masa.Docs.Core.Services;