Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualFileExplorer testing and resolving some issues #21450

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using Microsoft.AspNetCore.Hosting;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Serilog;
using Serilog.Events;
Expand All @@ -8,7 +10,7 @@ namespace Volo.Abp.VirtualFileExplorer.DemoApp;

public class Program
{
public static int Main(string[] args)
public static async Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
Expand All @@ -19,8 +21,17 @@ public static int Main(string[] args)

try
{
Log.Information("Starting web host.");
CreateHostBuilder(args).Build().Run();
Log.Information("Starting web host.");
var builder = WebApplication.CreateBuilder(args);
builder.Host
.AddAppSettingsSecretsJson()
.UseSerilog()
.UseAutofac()
;
await builder.AddApplicationAsync<AbpVirtualFileExplorerDemoAppModule>();
var app = builder.Build();
await app.InitializeApplicationAsync();
await app.RunAsync();
return 0;
}
catch (Exception ex)
Expand All @@ -33,10 +44,4 @@ public static int Main(string[] args)
Log.CloseAndFlush();
}
}

internal static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
.UseAutofac()
.UseSerilog();
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class VirtualFileExplorerMenuNames
{
public const string GroupName = "AbpVirualFileExplorer";
public const string GroupName = "AbpVirtualFileExplorer";

public const string Index = GroupName + ".Index";
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<a onclick="showContent('@item.FilePath')">@L["FileContent"]</a>
</li>
</ul>
<button class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
<button class="btn btn-primary btn-sm dropdown-toggle" data-bs-toggle="dropdown">
<i class="fa fa-cog me-1"></i>@UiLocalizer["Actions"]
</button>
</div>
Expand Down