Renamed the Implementation
This commit is contained in:
parent
cba98bdf6f
commit
6eedc8aba9
5 changed files with 14 additions and 14 deletions
|
@ -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<IAdminDashboardColumn>(new UserCount());
|
||||
await pluginService.RegisterImplementation<IIndexPageComponent>(new GreetingMessages());
|
||||
await pluginService.RegisterImplementation<IUserDashboardComponent>(new GreetingMessages());
|
||||
|
||||
// Startup job services
|
||||
var startupJobService = app.Services.GetRequiredService<StartupJobService>();
|
||||
|
|
|
@ -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<UiComponent> Get()
|
||||
{
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
using Moonlight.Core.Models.Abstractions;
|
||||
|
||||
namespace Moonlight.Core.Interfaces.UI.Index;
|
||||
|
||||
public interface IIndexPageComponent
|
||||
{
|
||||
public Task<UiComponent> Get();
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
using Moonlight.Core.Models.Abstractions;
|
||||
|
||||
namespace Moonlight.Core.Interfaces.UI.User;
|
||||
|
||||
public interface IUserDashboardComponent
|
||||
{
|
||||
public Task<UiComponent> Get();
|
||||
}
|
|
@ -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<IIndexPageComponent>();
|
||||
var implementations = await PluginService.GetImplementations<IUserDashboardComponent>();
|
||||
|
||||
foreach (var implementation in implementations)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue