Enhance documentation with new features: added dark/light/system theme support, instructions page, and application catalog. Updated API and domain model for app management and automatic migrations on startup. Improved frontend structure with new routes and features for user instructions and app management.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace PnvPanel.Infrastructure.Identity;
|
||||
|
||||
public static class DbInitializerExtensions
|
||||
{
|
||||
public static async Task SeedDataAsync(this IServiceProvider services, CancellationToken cancellationToken = default)
|
||||
{
|
||||
await using var scope = services.CreateAsyncScope();
|
||||
var initializer = scope.ServiceProvider.GetRequiredService<DbInitializer>();
|
||||
await initializer.SeedAsync(cancellationToken);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user