diff --git a/Moonlight/Core/CoreFeature.cs b/Moonlight/Core/CoreFeature.cs index 25ada453..22156ab8 100644 --- a/Moonlight/Core/CoreFeature.cs +++ b/Moonlight/Core/CoreFeature.cs @@ -12,7 +12,7 @@ using Moonlight.Core.Implementations.UI.Admin.AdminColumns; using Moonlight.Core.Implementations.UI.Index; using Moonlight.Core.Interfaces; using Moonlight.Core.Interfaces.Ui.Admin; -using Moonlight.Core.Interfaces.UI.Index; +using Moonlight.Core.Interfaces.UI.User; using Moonlight.Core.Models; using Moonlight.Core.Models.Abstractions; using Moonlight.Core.Models.Abstractions.Feature; @@ -162,7 +162,7 @@ public class CoreFeature : MoonlightFeature // UI await pluginService.RegisterImplementation(new UserCount()); - await pluginService.RegisterImplementation(new GreetingMessages()); + await pluginService.RegisterImplementation(new GreetingMessages()); // Startup job services var startupJobService = app.Services.GetRequiredService(); diff --git a/Moonlight/Core/Implementations/UI/Index/GreetingMessages.cs b/Moonlight/Core/Implementations/UI/Index/GreetingMessages.cs index a0c5c0e8..552ec27f 100644 --- a/Moonlight/Core/Implementations/UI/Index/GreetingMessages.cs +++ b/Moonlight/Core/Implementations/UI/Index/GreetingMessages.cs @@ -1,11 +1,11 @@ using MoonCoreUI.Helpers; -using Moonlight.Core.Interfaces.UI.Index; +using Moonlight.Core.Interfaces.UI.User; using Moonlight.Core.Models.Abstractions; using Moonlight.Core.UI.Components.Cards; namespace Moonlight.Core.Implementations.UI.Index; -public class GreetingMessages : IIndexPageComponent +public class GreetingMessages : IUserDashboardComponent { public Task Get() { diff --git a/Moonlight/Core/Interfaces/UI/Index/IIndexPageComponent.cs b/Moonlight/Core/Interfaces/UI/User/IUserDashboardComponent.cs similarity index 50% rename from Moonlight/Core/Interfaces/UI/Index/IIndexPageComponent.cs rename to Moonlight/Core/Interfaces/UI/User/IUserDashboardComponent.cs index 50ae3976..0f2570db 100644 --- a/Moonlight/Core/Interfaces/UI/Index/IIndexPageComponent.cs +++ b/Moonlight/Core/Interfaces/UI/User/IUserDashboardComponent.cs @@ -1,8 +1,8 @@ using Moonlight.Core.Models.Abstractions; -namespace Moonlight.Core.Interfaces.UI.Index; +namespace Moonlight.Core.Interfaces.UI.User; -public interface IIndexPageComponent +public interface IUserDashboardComponent { public Task Get(); } \ No newline at end of file diff --git a/Moonlight/Core/UI/Views/Index.razor b/Moonlight/Core/UI/Views/Index.razor index bc43335b..e36cf092 100644 --- a/Moonlight/Core/UI/Views/Index.razor +++ b/Moonlight/Core/UI/Views/Index.razor @@ -1,5 +1,5 @@ @page "/" -@using Moonlight.Core.Interfaces.UI.Index +@using Moonlight.Core.Interfaces.UI.User @using Moonlight.Core.Models.Abstractions @using Moonlight.Core.Services @@ -23,7 +23,7 @@ { await arg.SetText("Loading..."); - var implementations = await PluginService.GetImplementations(); + var implementations = await PluginService.GetImplementations(); foreach (var implementation in implementations) {