From 6eedc8aba99646984f4035a0b6e54dfeae6375cd Mon Sep 17 00:00:00 2001 From: Moritz <101179677+Moritz-Deiaco@users.noreply.github.com> Date: Tue, 21 May 2024 14:12:46 +0200 Subject: [PATCH] Renamed the Implementation --- Moonlight/Core/CoreFeature.cs | 4 ++-- .../Core/Implementations/UI/Index/GreetingMessages.cs | 4 ++-- Moonlight/Core/Interfaces/UI/Index/IIndexPageComponent.cs | 8 -------- .../Core/Interfaces/UI/User/IUserDashboardComponent.cs | 8 ++++++++ Moonlight/Core/UI/Views/Index.razor | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 Moonlight/Core/Interfaces/UI/Index/IIndexPageComponent.cs create mode 100644 Moonlight/Core/Interfaces/UI/User/IUserDashboardComponent.cs diff --git a/Moonlight/Core/CoreFeature.cs b/Moonlight/Core/CoreFeature.cs index 25ada45..22156ab 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 a0c5c0e..552ec27 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/Index/IIndexPageComponent.cs deleted file mode 100644 index 50ae397..0000000 --- a/Moonlight/Core/Interfaces/UI/Index/IIndexPageComponent.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Moonlight.Core.Models.Abstractions; - -namespace Moonlight.Core.Interfaces.UI.Index; - -public interface IIndexPageComponent -{ - public Task Get(); -} \ No newline at end of file diff --git a/Moonlight/Core/Interfaces/UI/User/IUserDashboardComponent.cs b/Moonlight/Core/Interfaces/UI/User/IUserDashboardComponent.cs new file mode 100644 index 0000000..0f2570d --- /dev/null +++ b/Moonlight/Core/Interfaces/UI/User/IUserDashboardComponent.cs @@ -0,0 +1,8 @@ +using Moonlight.Core.Models.Abstractions; + +namespace Moonlight.Core.Interfaces.UI.User; + +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 bc43335..e36cf09 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) {