Refactored project to module structure
This commit is contained in:
@@ -2,9 +2,9 @@ using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Moonlight.Frontend.Implementations;
|
||||
using Moonlight.Frontend.Interfaces;
|
||||
using Moonlight.Frontend.Services;
|
||||
using Moonlight.Frontend.Infrastructure.Hooks;
|
||||
using Moonlight.Frontend.Infrastructure.Implementations;
|
||||
using Moonlight.Frontend.Infrastructure.Services;
|
||||
|
||||
namespace Moonlight.Frontend.Startup;
|
||||
|
||||
@@ -17,7 +17,7 @@ public partial class Startup
|
||||
builder.Services.AddCascadingAuthenticationState();
|
||||
|
||||
builder.Services.AddSingleton<IPermissionProvider, PermissionProvider>();
|
||||
|
||||
|
||||
builder.Services.AddSingleton<IAuthorizationHandler, PermissionAuthorizationHandler>();
|
||||
builder.Services.AddSingleton<IAuthorizationPolicyProvider, PermissionPolicyProvider>();
|
||||
}
|
||||
|
||||
@@ -2,12 +2,12 @@ using LucideBlazor;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Moonlight.Frontend.Configuration;
|
||||
using Moonlight.Frontend.Implementations;
|
||||
using Moonlight.Frontend.Interfaces;
|
||||
using Moonlight.Frontend.Services;
|
||||
using Moonlight.Frontend.UI;
|
||||
using Moonlight.Frontend.UI.Admin.Settings;
|
||||
using Moonlight.Frontend.Admin.Sys.Settings;
|
||||
using Moonlight.Frontend.Infrastructure.Configuration;
|
||||
using Moonlight.Frontend.Infrastructure.Hooks;
|
||||
using Moonlight.Frontend.Infrastructure.Implementations;
|
||||
using Moonlight.Frontend.Infrastructure.Partials;
|
||||
using Moonlight.Frontend.Shared.Frontend;
|
||||
using ShadcnBlazor;
|
||||
using ShadcnBlazor.Extras;
|
||||
|
||||
|
||||
@@ -14,6 +14,5 @@ public partial class Startup : MoonlightPlugin
|
||||
|
||||
public override void PostBuild(WebAssemblyHost application)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user